Stream: implementers
Topic: Referencing on data element of a resource
Maria Hu (Jan 07 2019 at 18:00):
If I want to reference ONE data element of another resource, can I just reference the data element by itself? e.g. resource DetectedIssue.implicated, it has a data type of reference, I want to reference resource Substance.code only. Can I reference it as "reference.code" of resource Substance?
Lloyd McKenzie (Jan 07 2019 at 18:37):
You can point to a particular element in a StructureDefinition by using the canonical URL of the resource followed by "#" and the element path. There is no mechanism to point to a particular element in other resource instances. If you're implicating a Substance, you're implicating the entire resource. The code is just helping to describe the substance. Pointing to the code alone would be meaningless. E.g. imagine in the Substance.code said "custom formulation". You'd need the ingredients to fully understand what you're dealing with.
Maria Hu (Jan 08 2019 at 00:30):
Thanks Lloyd !
Last updated: Apr 12 2022 at 19:14 UTC