Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Interactions with the Terminology Service

Extracting Translations from ValueSet and CodeSystem

How to determine, say, Danish translations used in ValueSet? The ValueSet as a resource is likely not to contain a proper, displayable value in Danish as the ValueSet can be defined as include of other ValueSet and/or include of entire or partial CodeSystem, and as the display values in the ValueSet are for technical help primarily. Translations, if available, reside in the CodeSystem.

To get translations for at ValueSet, use $expand as follows:

  1. Call $expand on the ValueSet

    1. GET <base-url>/fhir/ValueSet/$expand?url=<ValueSet url>&property=designation

  2. Determine best translation:

    1. Choose designation with “da” (for Danish) if available, otherwise

    2. Choose display (as best alternative - this will be in whatever language the concept is defined with)

      1. In the example below, this is the case for code assessment

Info

Example request and response on $expand on topic-type

Request:

GET <base-url>/fhir/ValueSet/$expand?url=http://ehealth.sundhed.dk/vs/topic-type

Response:

{     "resourceType": "ValueSet",     "status": "active",

            {                 "system": "http://hl7.org/fhir/definition-topic",                 "code": "assessment",                 "display": "Assessment"             }, …

            {                 "system": "http://ehealth.sundhed.dk/cs/topic-type",                 "code": "self-treatment",                 "display": "Self-treatment",                 "designation": [                     {                         "language": "da",                         "value": "Selvbehandling"                     }                 ]             }

Determining the proper code, system and unit for Quantity

...