Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi language IG #2

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ For further information see [here](https://github.com/ahdis/k8s-fhir.ch#publish-

***************************

# Multi-Language IGs

Documentation:
* https://build.fhir.org/ig/FHIR/ig-guidance/languages.html#producing-multi-language-igs
* https://chat.fhir.org/#narrow/stream/380308-Multi-lingual-IGs

TODO:
- translation of codes (coding.code -> not cc.text)

***************************

# Further links
* [IG Publisher Documentation](https://confluence.hl7.org/display/FHIR/IG+Publisher+Documentation)
* [Using the FHIR Validator](https://confluence.hl7.org/display/FHIR/Using+the+FHIR+Validator)
Expand Down
5 changes: 5 additions & 0 deletions input/fsh/examples/Patient.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ Description: "Example for Patient"
* name
* family = "Meier"
* given = "Petra"
* maritalStatus.coding = http://fhir.ch/ig/ch-core/CodeSystem/ech-11-maritalstatus#2 "verheiratet"
* maritalStatus.text = "Married"
* communication.language.text = "German"
* gender = #female
* birthDate = "1990-09-09"
15 changes: 15 additions & 0 deletions input/translations-de/Patient-PetraMeier.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# en -> de

#: CodeableConcept.text
#. A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
msgid "Married"
msgstr "Verheiratet"

#: CodeableConcept.coding.display
msgid "verheiratet"
msgstr "verheiratet"

#: CodeableConcept.text
msgid "German"
msgstr "Deutsch"

14 changes: 14 additions & 0 deletions input/translations-fr/Patient-PetraMeier.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# en -> fr

#: CodeableConcept.text
#. A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
msgid "Married"
msgstr "Marié"

#: CodeableConcept.coding.display
msgid "verheiratet"
msgstr "marié-e"

#: CodeableConcept.text
msgid "German"
msgstr "Allemand"
7 changes: 7 additions & 0 deletions sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,12 @@ parameters:
excludettl: true
allow-extensible-warnings: true
display-warnings: true
i18n-default-lang: en
i18n-lang:
- de
- fr
translation-sources:
- input/translations-de
- input/translations-fr
path-resource:
- input/resources
Loading