FHIR Transaction Bundles: how to properly form urn patient id?
Hi folks!
Researching FHIR bundle transactions.
The idea is that you can post a bundle to a FHIR server with a set of resources. And you can send it as a transaction, so only all the resources will be published or neither.
E.g. I send a bundle of two resources: patient and its observation.
The observation resource should reference an existing patient. But it probably doesn't exist yet on the server and goes within the same bundle.
For this purpose there is a way to have a temporary id in the bundle, to let resources reference ids.
Here is the bundle I use:
I create a temporary id for Patient resource as "fullUrl": "urn:uuid:patient", parameter.
urn-uuid is the form of setting temporary id within the FHIR bunde.
I send this POST request to IRIS FHIR server and get the following error:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "<HSFHIRErr>MalformedRelativeReference",
"details": {
"text": "The reference value 'urn:uuid:patient' in property (subject) of Type 'Observation' is malformed"
},
"expression": [
"Observation.subject"
]
}
]
}
It works with HAPI FHIR though. I'm following this video.
What do I do wrong? How to properly setup the internal id with InterSystems FHIR server?