Hy Anton, thanks for your reply!
Maybe I totally misunderstood how this should work, but I tried something like this:
I POSTed the following questionnaire to my hapi server (shortened example form):
{
"resourceType":"Questionnaire",
"meta":{
"profile":[
"
http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire|2.7"
]
},
"name":"SDOH Screening Questions",
"title":"Health Screening",
"status":"draft",
"date":"2019-10-01T04:00:00.000Z",
"description":"Original Text.",
"item":[
{
"linkId":"/introduction",
"code":[
{
"system":"Custom",
"code":"introduction",
"display":"Original Text."
}
],
"text":"Original Text.",
"type":"group",
"required":false,
"extension":[
{
"url":"
http://hl7.org/fhir/StructureDefinition/translation",
"extension":[
{
"url":"lang",
"valueCode":"de"
},
{
"url":"content",
"valueString":"deutsch"
}
]
},
{
"url":"
http://hl7.org/fhir/StructureDefinition/translation",
"extension":[
{
"url":"lang",
"valueCode":"it"
},
{
"url":"content",
"valueString":"italiano"
}
]
}
]
}
]
}
Then I executed this request:
And I expected that any of the "Original Text" fields was translated to german, but I got the questionnaire back as-is.
I also tried moving around the translation extension, but always with the same result.
If that is not how the standard is meant, I would highly appreciate a working example or any advice how the multi-language support could be established.
Cheers,
Johanna