Project: REST JSON to FHIR JSON Mapping Implementation

Prashadi
Sun, 31 Dec 2017 11:10:25 +0000
Toolkit

Hi @judywawira @sunbiz

I had a discussion with @judywawira to convert the REST API JSON outputs to FHIR JSON output. Just sent me following model.

@judywawira suggest to create a module from scratch that use JSON output of REST module to convert it to the FHIR compatible JSON.

Patient -> Patient REST API JSON Output-> NewModuleConverter JSON to FHIR JSON -> FHIR Patient output

I had look at the rest module of openmrs. There isn’t any service that can obtain the JSON representation. REST module seems it’s defines a representation and then it convert the returning object to JSON representation internally. So we can’t add the module as dependency and access the JSON representation.

Other approach is calling the rest endpoint to get the JSON and then convert it to FHIR compatible resource. But this requires credentials of a user. Would this be a good approach?

Please share your thoughts to achieve this.

Thank you.

39 posts - 10 participants