FHIR Chat · Extensions with SUSHI · shorthand

Stream: shorthand

Topic: Extensions with SUSHI


view this post on Zulip Diana_Ovelgoenne (Mar 26 2021 at 14:20):

Hi all,
I am trying to define a simple extension within Imaging Study, at this level I am able to compile without errors. As soon as I put the definition for instance level aka instance.extension[myExtension] it fails.
Does any one have any hints of what I am doing wrong? As far as I know I am following the syntax on the mCODE examples from the FSH School.

  • extension contains MyExtension named myExtension 1..1 MS
  • extension[myExtension] ^short = "My Extension"
  • extension[myExtension] ^definition = "Defines for my Extension"
    versus

  • instance.extension contains MyExtension named myExtension 1..1 MS

  • instance.extension[myExtension] ^short = "My Extension"
  • instance.extension[myExtension] ^definition = "Defines for my Extension"

Thanks!

view this post on Zulip Nick Freiter (Mar 26 2021 at 15:43):

I am seeing that on the ImagingStudy Profile, instance.extension is nested within series, so the path should be:

* series.instance.extension contains MyExtension named myExtension 1..1 MS
* series.instance.extension[myExtension] ^short = "My Extension"

view this post on Zulip Nick Freiter (Mar 26 2021 at 15:43):

Does that fix the issue?

view this post on Zulip Diana_Ovelgoenne (Apr 12 2021 at 07:23):

Yes it helped. I thought I was doing something else wrong. This was a very simple error. Thanks a lot @Nick Freiter


Last updated: Apr 12 2022 at 19:14 UTC