Stream: implementers
Topic: Create Bundle for Connectathon
Angie Romano (Aug 24 2018 at 20:09):
Hello,
I have resources mocked up on our internal FHIR server that we have used to test code we are planning to bring to the Connectathon. How do I export out a bundle of those resources so that they can be loaded onto a public server?
Thank you!
Lloyd McKenzie (Aug 24 2018 at 22:28):
You could query for them and then tweak your Bundle to turn it into a Batch or Transaction.
Angie Romano (Aug 27 2018 at 19:10):
Thank you @Lloyd McKenzie! I'm working on tweaking a Bundle to a transaction. I have a couple of questions. I have a number of resource types in my dataset. Many of the resources contain references to other resources. Can I specify the resource _id like I can with the PUT command so my references don't break?
Second question: For the "fullurl" for each entry. I found an example on the hl7 site that reference urn:uuid. Do I just generate a uuid for each record?
Angie Romano (Aug 27 2018 at 19:44):
Hi again @Lloyd McKenzie! I answered my own questions and I think I'm good. Thank you!
Lloyd McKenzie (Aug 27 2018 at 21:09):
@Angie Romano Great! If you like, you can post your answers here so anyone who comes across this question when searching the forum can benefit from your work too :)
Angie Romano (Aug 29 2018 at 19:34):
Sure @Lloyd McKenzie!
I queried my FHIR server to create a bundle of the resources I needed. Then I tweaked that bundle to create a bundle-transaction using the example found here:
https://www.hl7.org/fhir/bundle-transaction.json.html
I generated uuid's for the fullURL of each resource
I also wanted each resource to use a specific id so I had to change the request section from:
"request": {
"method": "POST",
"url": "Organization"
to:
"request": {
"method": "PUT",
"url": "Organization/xxxx11111"
Lloyd McKenzie (Aug 29 2018 at 19:40):
That works - but only if the server allows client id assignment. (Many do not...)
Georg Fette (Aug 30 2018 at 08:25):
Hello, @Angie Romano, how many patients with how many other resource instances does your mockup include ? I am currently looking for something like such a mockup. Do you plan to publish your bundle/transaction after the connectathon ?
Greetings
Angie Romano (Aug 30 2018 at 13:02):
Hi @Georg Fette! It's a small dataset built exclusively for the Clinical Trial RWE use case that we will be working on at the Connectathon in September. We will make the data available publicly and it will be loaded on an HSPC sandbox. It consists of 5 Organizations, 5 Patients, 3 Practitioners, 1 ResearchStudy, 4 ResearchSubjects, 3 Encounters, and 14 Observations records. When we have them published, I'll reply with the Github information. Thank you! Angie
Angie Romano (Sep 04 2018 at 19:40):
Thanks @Lloyd McKenzie .Good point!..in the real world I wouldn't need the ID's to be hard coded, but I do for the test data I'm generating for the Connectathon since they are all tied together and don't have time to write an API to look them up before adding them :)
Last updated: Apr 12 2022 at 19:14 UTC