Stream: implementers
Topic: Constraining complex extension (translation)
Sadiq Saleh (Jun 16 2017 at 15:45):
Hi,
i am trying to constrain the complex extension (http://hl7.org/fhir/StructureDefinition/translation) within a containing profile. Specifically I would like to set a specific code for language and a specific string for content. However the IG builder is not cooperating (likely due to my inappropriate input in the differential of the JSON file). I would appreciate any feedback that could be provided. This is what I am entering in the differential section:
{
"id": "Observation.code.extension:translation",
"path": "Observation.code.extension",
"sliceName": "translation",
"min": 1,
"max": "1",
"type": [{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/translation"
}],
"mustSupport": false,
"isModifier": false
},
{
"id": "Observation.code.extension:translation.extension:lang",
"path": "Observation.code.extension.extension",
"sliceName": "Language",
"type": [{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/translation#lang"
}]
},
{
"id": "Observation.code.extension:translation.extension:lang.valueCode",
"path": "Observation.code.extension.extension.valueCode",
"type": [{
"code": "code"
}],
"fixedCode" : "en-CA"
},
{
"id": "Observation.code.extension:translation.extension:content",
"path": "Observation.code.extension.extension",
"sliceName": "Content",
"type": [{
"code": "Extension",
"profile": "http://hl7.org/fhir/StructureDefinition/translation#content"
}]
},
{
"id": "Observation.code.extension:translation.extension:content.value[x]",
"path": "Observation.code.extension.extension.value[x]",
"type": [{
"code": "string"
}],
"fixedString": "Title"
}
and the output looks like this:
Differential:
pasted image
Snapshot:
pasted image
Help would be appreciated.
Sadiq Saleh (Jun 19 2017 at 20:34):
Figured it out. Please ignore.
Grahame Grieve (Jun 19 2017 at 21:44):
ok great
Last updated: Apr 12 2022 at 19:14 UTC