STU 3 Ballot

This page is part of the FHIR Specification (v1.6.0: STU 3 Ballot 4). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R4B R4 R3

Extension: Langauge Translation

URL for this extension:

http://hl7.org/fhir/StructureDefinition/translation

Status: draft. Extension maintained by: Health Level Seven International (FHIR Infrastructure)

Language translation from base language of resource to another language.

Context of Use: Use on data type: string, code

usage info: insert a list of places where this extension is used

Extension Content

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/translation
Langauge Translation: Language translation from base language of resource to another language.
Use on data type: string, code
... lang1..1codeCode for Language.
... content1..1stringContent in other Language.

doco Documentation for this format

Fulle Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/translation
Langauge Translation: Language translation from base language of resource to another language.
Use on data type: string, code
... extension 1..1ExtensionCode for Language
.... extension 0..0
.... url 1..1uri"lang"
.... valueCode 1..1codeValue of extension
Binding: Common Languages (extensible)
... extension 1..1ExtensionContent in other Language
.... extension 0..0
.... url 1..1uri"content"
.... valueString 1..1stringValue of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/translation"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- Langauge Translation -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/translation" >
 <-- extension sliced by url  in the specified orderOpen-->
 <extension url="lang"> 1..1 Extension  <!-- 1..1 Code for Language -->
  <valueCode value="[code]"/><!-- 1..1 Value of extension -->
 </extension>
 <extension url="content"> 1..1 Extension  <!-- 1..1 Content in other Language -->
  <valueString value="[string]"/><!-- 1..1 Value of extension -->
 </extension>
</extension>

JSON Template

{ // Langauge Translation
    "extension" : [ //  sliced by url  in the specified orderOpen
      { // Code for Language // R! 
        // from Element: extension
        "url" : "lang", // R! 
        "valueCode" : "<code>" // R! Value of extension
      },
      { // Content in other Language // R! 
        // from Element: extension
        "url" : "content", // R! 
        "valueString" : "<string>" // R! Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/translation", // R! 
// value[x]: Value of extension. One of these 38:
  }

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/translation
Langauge Translation: Language translation from base language of resource to another language.
Use on data type: string, code
... lang1..1codeCode for Language.
... content1..1stringContent in other Language.

doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/translation
Langauge Translation: Language translation from base language of resource to another language.
Use on data type: string, code
... extension 1..1ExtensionCode for Language
.... extension 0..0
.... url 1..1uri"lang"
.... valueCode 1..1codeValue of extension
Binding: Common Languages (extensible)
... extension 1..1ExtensionContent in other Language
.... extension 0..0
.... url 1..1uri"content"
.... valueString 1..1stringValue of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/translation"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- Langauge Translation -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/translation" >
 <-- extension sliced by url  in the specified orderOpen-->
 <extension url="lang"> 1..1 Extension  <!-- 1..1 Code for Language -->
  <valueCode value="[code]"/><!-- 1..1 Value of extension -->
 </extension>
 <extension url="content"> 1..1 Extension  <!-- 1..1 Content in other Language -->
  <valueString value="[string]"/><!-- 1..1 Value of extension -->
 </extension>
</extension>

JSON Template

{ // Langauge Translation
    "extension" : [ //  sliced by url  in the specified orderOpen
      { // Code for Language // R! 
        // from Element: extension
        "url" : "lang", // R! 
        "valueCode" : "<code>" // R! Value of extension
      },
      { // Content in other Language // R! 
        // from Element: extension
        "url" : "content", // R! 
        "valueString" : "<string>" // R! Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/translation", // R! 
// value[x]: Value of extension. One of these 38:
  }

 

Constraints

  • ele-1: All FHIR elements must have a @value or children (xpath: @value|f:*|h:div)
  • ext-1: Must have either extensions or value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]))