FHIR / sushi

SUSHI (aka "SUSHI Unshortens Short Hand Inputs") is a reference implementation command-line interpreter/compiler for FHIR Shorthand (FSH).
Apache License 2.0
145 stars 44 forks source link

Context unnecessarily uses [url]#[elementid] form for resources in the base specification #1333

Closed cmoesel closed 1 year ago

cmoesel commented 1 year ago

An extension defined with:

Context: Resource

results in:

"context": [
  {
    "expression": "http://hl7.org/fhir/StructureDefinition/Resource#Resource",
    "type": "element"
  }
]

FSH Online

The FHIR spec says:

Element Ids are unique within the base specification, and within a structure definition. The full path for the element is [url]#[elementid]. If there is no #, the Element id is one defined in the base specification

Since Resource is in the base specification, SUSHI should output the expression as Resource, not http://hl7.org/fhir/StructureDefinition/Resource#Resource.