Using Synthea i have generated 10 patient information. I have an azure account where i have setup "Azure API for FHIR" service. i did all the setup and tried pushing a sample patient (as mentioned in the official docs). i am able to retrieve the patient information by patient id as well.
However, the generated resource from Synthea are not just one resource type.. It has many entries like Patient, Organization, Claim etc.. everything bundled under one resource - bundle
Something like this.. but having more than 100 resource types for a patient. Its good that, it covers entire journey of the patient.
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
.....
{
....
"resourceType": "patient"
....
},
{
....
"resourceType": "organization"
....
},
]
}
Using post man i tried to insert this bundle with api below
https://XXXXXX.azurehealthcareapis.com/Bundle/
i was able to insert multiple bundles.. However, when i query the patients using the following api
https://XXXXXX.azurehealthcareapis.com/Patient/
All the patient information are not getting retrieved.
Here are my questions.
- Inserting bundle by bundle - Is that the right approach.. or
- Insert resource by resource .. Patient, Organization , Patient , Organization... But this looks meaningless. Because, if i need to find entire journey of a patient how would i be mapping it
- Is There any way i can convert this each bundle as CSV files.. i would like to extract information and run a machine learning model on it.