...
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:
Call
$expand
on the ValueSetGET <base-url>/fhir/ValueSet/$expand?url=<ValueSet url>&property=designation
Determine best translation:
Choose designation with “da” (for Danish) if available, otherwise
Choose display (as best alternative - this will be in whatever language the concept is defined with)
In the example below, this is the case for code assessment
Info |
---|
Example request and response on $expand on topic-type Request:
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
...