2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Extensiondefinition-example-translation

This is the narrative for the resource. See also the XML or JSON format.

General Translation Extension

This is the standard extension for translating content from one language to another within a resource.

There are many ways to manage multi-language requirements when using FHIR, but some use cases mean that there is no choice but to include translations directly in the resource. In aa few places, there is specific support for this in FHIR. Otherwise, implementers can use this extension to carry additional language translations

In XML, the extension looks like this:

  <title value="Test Title">
    <extension url="http://hl7.org/fhir/ExtensionDefinition/translation">
      <extension url="lang">
        <valueCode value="nl"/>
      </extension>
      <extension url="content">
        <valueString value="Testtitel"/>
      </extension>
    </extension>
  </title>
      

In JSON, the extension looks like this:

  {
    "title" : "Test Title",
    "title_" : {
      "http://hl7.org/fhir/ExtensionDefinition/translation" : [{
        "lang" : "nl",
        "content : "Testtitel"
      }]
    }
  }
      

The language is a code taken from BCP 47 (xml:lang). This extension can appear multiple times, once for each language.

 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.