MedMe Pharmacy Services Implementation Guide
0.9.24 - ci-build
MedMe Pharmacy Services Implementation Guide - Local Development build (v0.9.24) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
This guide explains how to implement multilingual support in MedMe Pharmacy Services using FHIR primitive extensions. While the profiles don't enforce these extensions, they are recommended for better user experience in bilingual Canadian environments.
FHIR allows you to add extensions to primitive types (like string, markdown) by prefixing the field name with an underscore (_). This creates a parallel structure that can hold extensions.
{
"fieldName": "English content",
"_fieldName": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/translation",
"extension": [
{
"url": "lang",
"valueCode": "fr"
},
{
"url": "content",
"valueString": "French content"
}
]
}
]
}
}
The following fields support multilingual content:
| Field | Type | Description | Translation Extension |
|---|---|---|---|
name |
string | Service name | _name |
comment |
string | Service description | _comment |
extraDetails |
markdown | Additional details | _extraDetails |
{
"resourceType": "HealthcareService",
"meta": {
"profile": [
"https://fhir.medmehealth.com/pharmacy-services/StructureDefinition/medme-pharmacy-healthcareservice"
]
},
"identifier": [
{
"system": "https://fhir.medmehealth.com/pharmacy-services/systems/entity/healthcare-service/id",
"value": "vaccination-service-001"
}
],
"name": "COVID-19 Vaccination Service",
"_name": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/translation",
"extension": [
{
"url": "lang",
"valueCode": "fr"
},
{
"url": "content",
"valueString": "Service de vaccination COVID-19"
}
]
}
]
},
"comment": "Professional vaccination service for COVID-19",
"_comment": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/translation",
"extension": [
{
"url": "lang",
"valueCode": "fr"
},
{
"url": "content",
"valueString": "Service professionnel de vaccination contre la COVID-19"
}
]
}
]
},
"extraDetails": "Please bring your health card and wear a mask.",
"_extraDetails": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/translation",
"extension": [
{
"url": "lang",
"valueCode": "fr"
},
{
"url": "content",
"valueMarkdown": "Veuillez apporter votre carte d'assurance-maladie et porter un masque."
}
]
}
]
}
}
The main field should always contain content in the primary language (English):
{
"name": "English content here",
"_name": { /* French translation */ }
}
name, comment): Use valueStringextraDetails): Use valueMarkdownen (though this is usually the primary content)frAlways use the standard HL7 translation extension:
{
"url": "http://hl7.org/fhir/StructureDefinition/translation",
"extension": [
{
"url": "lang",
"valueCode": "fr"
},
{
"url": "content",
"valueString": "French content"
}
]
}
When testing multilingual support:
valueMarkdown for markdown fieldsfr for FrenchUse FHIR validation tools to ensure your resources conform to the profiles:
# Example validation command
fhir validate --profile https://fhir.medmehealth.com/pharmacy-services/StructureDefinition/medme-pharmacy-healthcareservice resource.json