Stream: implementers
Topic: validity of resources in test.hir.org
Georg Fette (Jan 29 2019 at 13:08):
Hello,
How valid are the resources that are stored in the test server http://test.fhir.org/r3/ ?
The resource http://test.fhir.org/r3/Appointment/16 for example contains a strange participant-actor ("Patient/[object Object]"), which looks like it does not represent a valid reference.
Or perhaps I again missed some documentation.
Greetings
Lloyd McKenzie (Jan 29 2019 at 15:50):
Maintaining referential integrity in FHIR is optional (and somewhat hard to do). Systems are allowed to check references and enforce that they're valid on create and/or enforce they remain valid over the lifetime of the source and target objects, but there's no requirement to do so. In a real system, if you choose to delete a resource that is referenced by another resource, the appropriate action may vary based on the type of resource and the type of reference. Maintaining referential integrity for cross-server references is nigh impossible - the owner of the referenced resource may have no clue what references it.
Grahame Grieve (Jan 29 2019 at 20:43):
test.fhir.org doesn't enforce referential integrity. The example you quote is not valid. test.fhir.org let's any one post anything, and though it does validate, obviously that slipped through somehow
Georg Fette (Jan 30 2019 at 08:10):
okay, thank you for the clarifications
Last updated: Apr 12 2022 at 19:14 UTC