I’m currently working on the OpenMRS FHIR module and trying to implement import/export FHIR [DiagnosticReport] resource.
I found that it’s hard to figure out how should be the mapping done between FHIR DiagnosticReport resource and OpenMRS API. There isn’t direct mapping in the OpenMRS API for the DiagnosticReport resource(e.g. but some resources like [Person], [Encounter] etc can find a direct mapping).
Following is the mapping that I came up, so far;
DiagnosticReport >> OpenMRS API name (*) :: Encounter->Obs->Concept status (*) :: Encounter->Obs->Concept issued (*) :: Encounter->EncounterDateTime subject (*) :: Encounter->Patient performer (*) :: Encounter->Provider encounter :: identifier :: requestDetail :: serviceCategory :: Encounter->EncounterType diagnosticDateTime (*) :: diagnosticPeriod (*) :: specimen :: result :: imagingStudy :: image :: comment :: link :: conclusion :: codedDiagnosis :: presentedForm ::
Keys: (*) - Required fields A->B - B contains in A
- status and serviceCategory would have pre-defined [FHIR specific value sets].
Thank you in advance !.
cc to @surangak @harsha89 @judy
: http://www.hl7.org/FHIR/2015May/diagnosticreport.html : https://wiki.openmrs.org/display/projects/Person+Resource : https://wiki.openmrs.org/display/projects/Encounter+Resource : Representing FHIR specific value sets in OpenMRS