This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-21
Channels
- # adventofcode (27)
- # announcements (2)
- # babashka (1)
- # beginners (111)
- # calva (11)
- # cider (82)
- # clara (6)
- # clojure (44)
- # clojure-dev (5)
- # clojure-europe (27)
- # clojure-nl (5)
- # clojure-spec (3)
- # clojure-uk (3)
- # clojurescript (29)
- # core-async (5)
- # cursive (4)
- # datalevin (1)
- # datomic (39)
- # exercism (4)
- # figwheel-main (1)
- # fulcro (32)
- # graalvm (7)
- # gratitude (1)
- # integrant (4)
- # jobs (1)
- # lein-figwheel (3)
- # leiningen (4)
- # lsp (3)
- # luminus (3)
- # meander (2)
- # nextjournal (1)
- # off-topic (10)
- # other-languages (26)
- # pathom (14)
- # polylith (9)
- # re-frame (16)
- # remote-jobs (1)
- # shadow-cljs (4)
- # specter (2)
- # sql (6)
- # timbre (2)
- # tools-build (12)
- # xtdb (9)
Hi, I have a design problem: We’re (very happily) using clara in a medical coding application. So far, we’ve had to deal with a single ICD-10 version and a single body of legislation around it. Since we’re loading all of ICD-10, with all the internal exclusions, references, etc, the rule set is pretty big. But starting january first, a new icd-10 version and a new set of other rules needs to be used for new hospital stays, but the old one for older stays. So now I have to choose between creating two separate rule bases for the two versions, or adding the rule version as input to all rules. What would be your choice?
Probably personal taste here, but imo i would maintain two separate rule bases. Mainly because it should serve to separate concerns, for instance, if you wouldn’t expect a scenario where both were needed simultaneously then you wouldn’t need to run both(together) simultaneously.
thanks @ethanc, they would need to be "active" at the same time, though: loading it all takes far too long to load it on demand, and I don't know in advance which version will be active. I was thinking about it some more, and maybe a more concrete question: 99% of the rules in the two versions will be the same, except for the different version fact as input. Will the rule engine somehow share most of the memory in that case?