FHIR Chat · Determine a StructureDefinition inherits from FHIR standard · IG creation

Stream: IG creation

Topic: Determine a StructureDefinition inherits from FHIR standard


view this post on Zulip Corey Spears (Mar 04 2022 at 17:03):

There are a number of IGs (most notable CDA related) that are creating StructureDefinitions where kind = "resource".

Is there a simple way to determine if the resource StructureDefinition ultimately inherits from the FHIR Standard set of resource types without having to know all of the FHIR Standard resource types upfront? If not, is there a programatic way of getting the full set of resources for a particular FHIR version?

view this post on Zulip John Moehrke (Mar 04 2022 at 17:06):

http://hl7.org/fhir/ValueSet/all-types

view this post on Zulip John Moehrke (Mar 04 2022 at 17:08):

I had not noticed the change in the definition of "resource" kind. I had previously understood it was forbidden for anyone outside HL7 to defined "resource" kind.

view this post on Zulip John Moehrke (Mar 04 2022 at 17:09):

I think a element defined as Reference(Any) is limited to pointing at formally HL7 defined resources... right?

view this post on Zulip Lloyd McKenzie (Mar 04 2022 at 17:13):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Mar 08 2022 at 00:15):

well, it's a good question about Reference(Any). I don't know that we've talked about it.

view this post on Zulip Grahame Grieve (Mar 08 2022 at 00:15):

and it's also a good question whether anyone outside HL7 can define resources - we've never come to consensus about it

view this post on Zulip Grahame Grieve (Mar 08 2022 at 00:16):

but it's sure true that we should not be defining structure definitions with kind = resource outside the base spec in HL7 IGs

view this post on Zulip Grahame Grieve (Mar 08 2022 at 00:16):

@Corey Spears where's an example?

view this post on Zulip Corey Spears (Mar 09 2022 at 05:21):

@Grahame Grieve , I have seen them in CDA related specifications. Perhaps that is special? Looks like these are profiles with a base definition of a StructureDefinition of kind "logical". Here is one example: https://build.fhir.org/ig/HL7/cda-ccda-2.2/StructureDefinition-2.16.840.1.113883.10.20.22.5.1.profile.json.html
I think this is the base definition here: https://build.fhir.org/ig/HL7/CDA-core-2.0/StructureDefinition-PN.profile.json.html
This seems to create a resource type of PN, which is not a resource defined by FHIR.
It is more confusing in this example as I believe patient name is meant to be a complex type. Maybe it is just because I have not worked in this area of the spec much and not familiar with this CDA work.

I was just curious if there was a quick way to determine if an SD derives from a FHIR standard resource or something outside, without having to know and compare against all known FHIR resources. It is not a huge task, just another set of data I have to collect, store, and test against.

view this post on Zulip Grahame Grieve (Mar 09 2022 at 05:22):

they should be Element not Resource. My mistake, I presume. but you need to look at the combination of kind and heritage.


Last updated: Apr 12 2022 at 19:14 UTC