Stream: conformance
Topic: Element ID
Grahame Grieve (Apr 03 2020 at 07:10):
We have a rule that element ids must be unique with an element. We specifically state that this applies to contained resources within the resource that contains them
Grahame Grieve (Apr 03 2020 at 07:11):
what we do not really state clearly is whether this space includes the resource itself. E.g. is this legal:
{ "resourceType" : "Patient", "id" : "a1", "name" : [{ "id" : "a1", ]} }
Grahame Grieve (Apr 03 2020 at 07:13):
this is presently happening in the base StructureDefinitions e.g .http://hl7.org/fhir/patient.profile.json.html - search for "id" : "Patient"
Lloyd McKenzie (Apr 03 2020 at 17:01):
Differential and snapshot largely must have the same ids. Also, I think the resource.id and the element.id exist at different levels. http://whatever/foo#foo is totally legal - the first 'foo' is the id of the resource, the latter is the id of something within that resource.
Grahame Grieve (Apr 03 2020 at 19:06):
Differential and snapshot largely must have the same ids
indeed though that is illegal according to the spec. That's a tension in the spec we have to resolve somehow
Lloyd McKenzie (Apr 03 2020 at 19:21):
We either carve out an exception for that space, or perhaps a more generic "unless specific rules are defined for a particular resource"
Last updated: Apr 12 2022 at 19:14 UTC