SAFEHR-data / emap

Near real-time clinical database for research and innovation
2 stars 1 forks source link

Database and core proc #49

Closed jeremyestein closed 2 months ago

jeremyestein commented 2 months ago

Implements #35

Find the location visit from the time and place associated with the waveform data, as this information is not given to us directly.

Pass both original (source) and interpreted (mapped) location strings to the core proc. Mapped location string is used to look up the location visit and ultimately to find out who the patient is.

Pass both original (source) and interpreted (mapped) stream description strings to the core proc, which stores them as an Visit Observation Type.

github-actions[bot] commented 2 months ago

PR checklist

Default guide for a PR (if multiple PRs for the work, only keep one version of it and link to it on the other PRs)

jeremyestein commented 2 months ago

Are we actually going to be able to link to a visit?

That's the idea, although the waveform HL7 uses a different location string schema than what we have in Emap from the main HL7 ADT feed, so it would require some (potentially very trivial) mapping. @stefpiatek thinks we should delay that feature in favour of getting this out quicker. Beyond location string mapping, we will only know exactly how well it works when we have real data, because we might find the waveform time+location doesn't correspond with real location visits as neatly as I'd hoped.