Reputation: 365
Azure FHIR Service does not enforce referential integrity. I would like to query all resources that have broken links.
E.g. a MedicationDispense references a non-existing patient:
"resource": {
"resourceType": "MedicationDispense",
"id": "5d3c2805cb6a01d06982c955c344548839b0a80a",
"subject": {
"reference": "Patient/231fcf59d1872005d7943e85e3ceaea05d3765c1"
}
}
However, in the FHIR service no Patient resource with id 231fcf59d1872005d7943e85e3ceaea05d3765c1
exists.
How would I query the MedicationDispense above?
Upvotes: 0
Views: 84
Reputation: 6803
You could try MedicationDispense?patient._id:missing=true. How that'll behave on Azure, I can't say though.
Upvotes: 0