Stream: IG creation
Topic: validation of transaction bundle
Brian Reinhold (Nov 24 2018 at 10:16):
I am getting these warnings on a transaction bundle which I don't think should happen:
Bundle/bundle-continuousnonin: Bundle.entry[6].resource.subject warning URN reference is not locally contained within the bundle Patient/sisansarahId.1.2.3.4.5.6.7.8.10 Bundle/bundle-continuousnonin: Bundle.entry[6].resource.device warning URN reference is not locally contained within the bundle Device/74E8FFFEFF051C00.001C05FFE874
The reason is that those resources have been previously uploaded to the server and do not need to be uploaded again. When the server resolves the transaction the resources will be found. If the resources are not found on the server, the transaction of the bundle will fail in its entirety.
Lloyd McKenzie (Nov 24 2018 at 20:08):
They are warnings, not errors. If the intention is that the referenced instances are external to the bundle, you can add the warnings to the list of messages to suppress
Brian Reinhold (Nov 25 2018 at 13:15):
They are warnings, not errors. If the intention is that the referenced instances are external to the bundle, you can add the warnings to the list of messages to suppress
@Lloyd McKenzie True, but I am getting errors like this:
Unable to resolve resource 'Observation/urn:oid:3.14159.20181120075654'
However, the resource does exist in the Bundle but it is a temporary id and therefore is not present in the id element of the resource but in the fullUrl. That is my understanding of how temp ids in a Bundle are to be. If it is supposed to be in the id element, that is a problem in HAPI FHIR that needs to be fixed. In the code I put the temp id in the id element, and HAPI FHIR removes it and puts it in the fullURL.
Lloyd McKenzie (Nov 25 2018 at 16:44):
"Observation/urn:oid:3.1...." is not a legal FHIR URL. "urn:oid" is the first part of a full URL and you're trying to embed it as part of the id in a relative URL. You need to either say "urn:oid:3.14159...." or "Observation/3.14159....."
Brian Reinhold (Nov 25 2018 at 20:02):
"Observation/urn:oid:3.1...." is not a legal FHIR URL. "urn:oid" is the first part of a full URL and you're trying to embed it as part of the id in a relative URL. You need to either say "urn:oid:3.14159...." or "Observation/3.14159....."
@Lloyd McKenzie Thanks for that. Can you point me to where this is documented. I see the name has been changed from temporary id to conditional id. There are not any Bundle examples that reference a resource with a conditional id that is already in the Bundle. I assume the 'urn:oid:' is still present in order to indicate that it is a conditional id.
Lloyd McKenzie (Nov 25 2018 at 21:49):
If you use Observation/[x], the [x] must be the resource id. That's explained on the references.html. Typically for temporary ids you wouldn't use OIDs, you'd use UUIDs. OIDs are generally more permanent
Last updated: Apr 12 2022 at 19:14 UTC