openhealthcare / cedar

Clinical Event Detection And Response
2 stars 2 forks source link

Advanced intersection #29

Open rossjones opened 9 years ago

rossjones commented 9 years ago

Originally from #13

Intersections of drugs in particular can be more complicated For example Allergy = Co-Amoxiclav Should trigger an alert if drug ==Any penicillin Might trigger an alert if drug==any cephlasporin or any carbapenem

rossjones commented 9 years ago

We may need some special form of API for keyword expansion, so we can easily determine all penicillin drug names, for instance.

We could implement this with vars and phrases like...

when "allergies.name" intersections "@paracetamol_names"

but this is a bit specific and would require a lot of rules.

Need to think about this some more.

michaeledwardmarks commented 9 years ago

For drugs at least I would consider meta-categories/groups? e.g All penicillins belong to group X (trivial to do for a clinician or by scraping the BNF ala OPENBNF) Repeat

davidmiller commented 9 years ago

This is another case of openhealthcare/elcid#447 - taxonomies for coded lists. The short term thing to do is allow arrays as variables and have user defined ones for the subset that are actually in use.

Mediumer term, we need coordinated taxonomies for coded data, which should be a coherent approach across all of our projects.

Perhaps we need something that provides this as a service? https://github.com/openhealthcare/dmdd or an elixir version? I'd want to be able to answer taxonomical questions, or at least ask for a point in the graph and get all subnodes for a given dimension.

Maybe we want a graph database + API + some ETL for DMDD/SNOMED CT/TRUD/ICD10/Something else (this is not currently my area of expertise)

rossjones commented 9 years ago

+1 for Elixir. Unsure about a graphdb, or whether to use mnesia/digraph. We probably do want a DAG though to represent it.

davidmiller commented 9 years ago

mnesia + / or digraph !

rossjones commented 9 years ago

https://github.com/bobsh/erlang-mdigraph

davidmiller commented 9 years ago

Looks like it could work :)

Maybe that can be a project to hack on at Elixirconf.eu ?