Batch Creation of Linked Resources
# support
j
How do reference a resource within another resource if both are being created within the same Bundle? e.g. if I have a
CarePlan
and a
Task
that is focused on that
CarePlan
, how would I reference the
CarePlan
if both are created within the same bundle?
Okay — I see this (https://cloud.google.com/healthcare-api/docs/how-tos/fhir-bundles), will assume this is the way to go unless I get flagged otherwise!
n
@jasonwa.ng I take it you're referring to the 'resolving references' section https://cloud.google.com/healthcare-api/docs/how-tos/fhir-bundles#resolving_references_to_resources_created_in_a_bundle It's important to note that Medplum doesn't necessarily exhaustively implement all of the FHIR spec and you should be careful about relying on docs from another FHIR implementation (Google's healthcare api). However, in this case, resolving references in bundles is a core FHIR concept https://build.fhir.org/bundle.html#references and AFAICT it should work in the same way outlined by that google healthcare api doc!
r
j
Ah, that's perfect @rahul1 — thank you!
156 Views