Hi guys,
I am little confused how to work "reference" properties in fhir resources because sometimes when I try reference non-existing resource fhir server check if referenced resource exist and if not return suitable response. This is correct.
However I found cases when referential integrity is not check.
For example:
Work incorrectly
Bundle was uploaded but referential integrity rules were violated because Organization doesn't exist.
"contact": [
{
"organization": {
"reference": "Organization/NonExist45"
}
}
]
Work properly
Upload fail like expected because we reference non-existing Organization resource.
"managingOrganization": [
{
"reference": "Organization/NonExist45"
}
]
Result
In my assumption current implementation of Hapi server doesn't check referential integrity for each possible cross references that FHIR standard support.
Michal,
Dátum: štvrtok 25. februára 2021, čas: 15:12:16 UTC+1, odosielateľ: Michal Kormaňák