Stream: implementers
Topic: Data types for Reference.reference and Reference.type
Paul Lynch (Oct 09 2020 at 13:27):
It looks to me like Reference.reference ("Literal reference, Relative, internal or absolute URL"), should have type 'uri', but it is 'string'. Also, it looks like Reference.type (e.g. "Patient") should have type 'string', but it is 'uri'. Was this an editing mistake? (https://www.hl7.org/fhir/references.html#Reference)
Lloyd McKenzie (Oct 09 2020 at 13:30):
It's not formally a uri because it can be a relative reference, and it doesn't follow the rules for an HTTP relative reference. I.e. If you're looking at http://somewhere.org/Patient/123 and the reference says "Observation/abc", the target is http://somewhere.org/Observation/abc, not http://somewhere.org/Patient/123 /Observation/abc.
Paul Lynch (Oct 09 2020 at 13:48):
Okay. Also, in case someone else has this question, my second question about the data type of Reference.type is answered at https://www.hl7.org/fhir/references.html#type: 'In order to support Logical Models, the type element has the type of "uri"'
Grahame Grieve (Oct 12 2020 at 05:40):
it is meant to be a type. The definition of ElementDefinition.type.code should help clarify
Last updated: Apr 12 2022 at 19:14 UTC