diff --git a/README.md b/README.md index 2382e11..9458d8e 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/input/fsh/examples/Patient.fsh b/input/fsh/examples/Patient.fsh index d72e0e4..c3fb00a 100644 --- a/input/fsh/examples/Patient.fsh +++ b/input/fsh/examples/Patient.fsh @@ -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" diff --git a/input/translations-de/Patient-PetraMeier.po b/input/translations-de/Patient-PetraMeier.po new file mode 100644 index 0000000..4fb2da8 --- /dev/null +++ b/input/translations-de/Patient-PetraMeier.po @@ -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" + diff --git a/input/translations-fr/Patient-PetraMeier.po b/input/translations-fr/Patient-PetraMeier.po new file mode 100644 index 0000000..23420e1 --- /dev/null +++ b/input/translations-fr/Patient-PetraMeier.po @@ -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" diff --git a/sushi-config.yaml b/sushi-config.yaml index 64055d4..682de47 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -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