mekomsolutions / openmrs-module-initializer

The OpenMRS Initializer module is an API-only module that processes the content of the configuration folder when it is found inside OpenMRS' application data directory.
MIT License
23 stars 79 forks source link

Add domain for FHIR ObservationCategoryMaps #201

Open ibacher opened 2 years ago

ibacher commented 2 years ago

See this comment for details about this PR's rationale.

ibacher commented 4 months ago

So, FHIR Observations have a category property that tries to cover "what kind" of observation that they are. In OMRS, the same concept is usually represented by "concept class" for the concept associated with the observation. This provides a way of mapping between the FHIR category field and the concept's concept class because, wherever possible, we want to use the standard FHIR value set, but OMRS's ConceptClasses don't necessarily always align with those categories.

Basically, we use this field to power the "lab results viewer" and could use it for other things, like vital signs, but we need a way of allowing custom mappings to accommodate this flexibly.

ibacher commented 3 months ago

I still need to move the actual logic into the FHIR2 module, so this remains pending.