Stream: implementers
Topic: Array to FHIR Json Format
Shyju K P (Apr 01 2021 at 09:20):
How can I converts my patient data to the FHIR resource json format?
Shyju K P (Apr 01 2021 at 09:21):
Can you help me, I am struggling with this issue for couple of days
Tilo Christ (Apr 01 2021 at 09:25):
Shyju K P said:
Can you help me, I am struggling with this issue for couple of days
There are many ways to go about this, but one general approach is to locate a FHIR SDK for the programming language you are using, filling up the data structures for the resources, such as the Patient resource, and then using the SDK's "serialisation" capabilities to convert the data structures to JSON.
SDKs are listed here: https://confluence.hl7.org/display/FHIR/Open+Source+Implementations
Shyju K P (Apr 01 2021 at 09:28):
I already working with a HAPI server with restful APIs. But there are we put the resource data with the corresponding structure of the given resource type. But I don't know how to prepare the post data
Tilo Christ (Apr 01 2021 at 09:30):
Shyju K P said:
I already working with a HAPI server with restful APIs. But there are we put the resource data with the corresponding structure of the given resource type. But I don't know how to prepare the post data
My previous response is a way how to prepare the POST data. You create the objects locally, serialise them into JSON and then use that as the body to your POST request. Most SDKs already come with a RESTful client for FHIR as well, so you can use these SDKs both for data prep and sending.
Shyju K P (Apr 01 2021 at 09:30):
@Tilo Christ Thanks for your reply, I should go through your feedback
Last updated: Apr 12 2022 at 19:14 UTC