Stream: shorthand
Topic: any way to insert instances into a bundle
Ryan Crichton (Jan 19 2021 at 13:09):
Hi all, I have a few Instances
already defined. Is there any way to insert existing instances into a Bundle.entry
so that I may create a bundle out of the examples that I already have? I can't find anything in the documentation that seems to support this so far.
Nick Freiter (Jan 19 2021 at 13:32):
If you have an Instance
defined, you can set entries in the Bundle
to specific instances by doing something like the following:
Instance: MyExamplePatient
InstanceOf: Patient
* name.family = "Name"
Instance: MyBundle
InstanceOf: Bundle
* entry[0].resource = MyExamplePatient
Last updated: Apr 12 2022 at 19:14 UTC