I’m currently working on the OpenMRS FHIR module and trying to implement import/export FHIR [DiagnosticReport][1] 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][2], [Encounter][3] 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
Notes:
- status and serviceCategory would have pre-defined [FHIR specific value sets][4].
Thank you in advance !.
cc to @surangak @harsha89 @judy
[1]: http://www.hl7.org/FHIR/2015May/diagnosticreport.html
[2]: https://wiki.openmrs.org/display/projects/Person+Resource
[3]: https://wiki.openmrs.org/display/projects/Encounter+Resource
[4]: Representing FHIR specific value sets in OpenMRS