AMPATH / openmrs-module-interop

The OpenMRS Interoperability Module with FHIR is an extension to the OpenMRS platform that allows it to integrate with other healthcare systems using the Fast Healthcare Interoperability Resources (FHIR) standard.
Other
5 stars 12 forks source link

IM-04: NHDD mapping prototype #9

Open jecihjoy opened 1 year ago

jecihjoy commented 1 year ago

This PR is a proof of concept. Am extending fhir2 class ConceptTranslatorImpl that translates Concept in OpenMRS to a CodeableConcept in fhir. I have extended the class with InteropConceptTranslatorImpl which is marked as the primary bean and will be loaded instead of ConceptTranslatorImpl.

I am using csv as the mapping file.

Here is an exmple of a code with ciel code 1054 in the initial implementation with ConceptTranslatorImpl

        "coding": [
            {
                "code": "1054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
                "display": "Civil status"
            },
            {
                "system": "https://openconceptlab.org/orgs/CIEL/sources/CIEL",
                "code": "1054",
                "display": "Civil status"
            },
            {
                "system": "http://snomed.info/sct",
                "code": "365581002",
                "display": "Civil status"
            }
        ],
        "text": "Civil status"
    }

Here is the equivaent code after nhdd mapping done here ConceptTranslatorImpl

        "coding": [
            {
                "system": "https://nhdd.health.go.ke/",
                "code": "49315",
                "display": "Civil status"
            }
        ],
        "text": "Civil status"
    }

(Here am only generating the NHDD code but we can decide whether to also retain CIEL code)