Stream: implementers
Topic: Canonical URI for an element
Josh Mandel (May 29 2018 at 17:06):
If I need to refer to a specific element in a FHIR resource unambiguously (e.g., Observation.category
), how do I construct a URI to name the element for this purpose? Would I say http://hl7.org/fhir/StructureDefinition/Observation#Observation.category
?
Grahame Grieve (May 29 2018 at 20:05):
you'll see that construct in a few places in the spec and more in the tools
Grahame Grieve (May 29 2018 at 20:05):
yes
Ewout Kramer (May 30 2018 at 07:21):
This is informal though?
Grahame Grieve (May 30 2018 at 08:07):
I don't know that it's formally documented but it falls out of web definitions naturally
Alexander Henket (May 30 2018 at 19:01):
Could be a nice touch if that link would go to http://hl7.org/fhir/observation-definitions.html#Observation.category which is exactly right, as opposed to http://hl7.org/fhir/observation.html#Observation.category which is almost right.
Would the formal unambiguous thing given the conclusions on population of Resource.meta in Cologne not have to be:
http://hl7.org/fhir/4.0/StructureDefinition/Observation#Observation.category
Note the 4.0 in the uri
Grahame Grieve (May 30 2018 at 20:08):
you can choose whether to be version specific or not
Grahame Grieve (May 30 2018 at 20:09):
I'll think about that redirect. If you just ask for http://hl7.org/fhir/StructureDefinition/Observation you should get redirected to http://hl7.org/fhir/StructureDefinition/Observation
Chris Grenz (Jun 01 2018 at 22:01):
@Ewout Kramer Not informal. See the last line of this section: http://build.fhir.org/elementdefinition.html#id
may be used as the target of external references into the definition, where necessary
Ewout Kramer (Jun 06 2018 at 15:06):
@Ewout Kramer Not informal. See the last line of this section: http://build.fhir.org/elementdefinition.html#id
may be used as the target of external references into the definition, where necessary
Yes, but this talks about the id element of an ElementDefinition - it's quite implicit that you could use this after the # in a (canonical?) url to point to an element. And one could also assume the part after the # is the path - though that would not necessarily be unique in a profile of course.
Last updated: Apr 12 2022 at 19:14 UTC