FHIR Chat · Extensions on profiles · shorthand

Stream: shorthand

Topic: Extensions on profiles


view this post on Zulip Elliot Silver (Dec 10 2020 at 21:25):

I just noticed that generated profiles (and some other resources) have extensions on them:

"extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "individual"
    }
  ],

What are these for? How are the values selected, and what is the vocabulary? And why are they generated for some resources and not others?

view this post on Zulip David Hay (Dec 10 2020 at 21:44):

Do they come from the base resource you are profiling?

view this post on Zulip David Hay (Dec 10 2020 at 21:45):

I believe that sushi copies these across (or used to...)

view this post on Zulip Elliot Silver (Dec 10 2020 at 21:57):

Ah, that's interesting. I'd buy that.

And I was wrong, it's only the profiles that have this.

view this post on Zulip Elliot Silver (Dec 10 2020 at 22:10):

Although, I'm not clear why this is being done.

view this post on Zulip Chris Moesel (Dec 10 2020 at 22:50):

Are you seeing this before or after running the IG Publisher? SUSHI doesn't do anything that would add these extensions if they weren't already on the base resource. But I could imagine the IG Publisher doing something tricky like that.

view this post on Zulip Elliot Silver (Dec 10 2020 at 22:51):

I'm seeing it in fsh-generated.

view this post on Zulip Elliot Silver (Dec 10 2020 at 22:53):

I buy @David Hay's explanation that it is copied from the base resource. But that just changes the question from "how did it get there?" to "why is it there?"

view this post on Zulip Chris Moesel (Dec 10 2020 at 23:01):

So... by default, extensions are inherited from the base resource (and regenerated in the profile snapshot). This has been a topic in the past, and currently there are about 6 extensions identified as "do not inherit". See https://jira.hl7.org/browse/FHIR-27535. The (duplicate) issue https://jira.hl7.org/browse/FHIR-28441 proposes a more programmatic approach to this and some "candidates" to be considered -- so this behavior should become more consistent in the future.

view this post on Zulip Elliot Silver (Dec 10 2020 at 23:59):

I assume that this would also explain where I'm getting RIM mappings from, despite me not specifying them. (On second thought, maybe that's from the snapshot, bringing in the base resource.)

view this post on Zulip Chris Moesel (Dec 11 2020 at 13:37):

Yeah, the RIM mappings are getting inherited too.


Last updated: Apr 12 2022 at 19:14 UTC