From cd1af0944862e427570015fcb75e8d210ec5e5c0 Mon Sep 17 00:00:00 2001 From: Michaela Ziegler Date: Sun, 19 May 2024 16:42:40 -0500 Subject: [PATCH 1/2] add translation to example --- README.md | 8 ++++++++ input/fsh/examples/Patient.fsh | 1 + input/translations-de/Patient-PetraMeier.po | 7 +++++++ input/translations-fr/Patient-PetraMeier.po | 7 +++++++ sushi-config.yaml | 7 +++++++ 5 files changed, 30 insertions(+) create mode 100644 input/translations-de/Patient-PetraMeier.po create mode 100644 input/translations-fr/Patient-PetraMeier.po diff --git a/README.md b/README.md index 2382e11..d0aa14c 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,14 @@ 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 + +*************************** + # 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..3aef40e 100644 --- a/input/fsh/examples/Patient.fsh +++ b/input/fsh/examples/Patient.fsh @@ -6,3 +6,4 @@ Description: "Example for Patient" * name * family = "Meier" * given = "Petra" +* maritalStatus.text = "Married" \ No newline at end of file diff --git a/input/translations-de/Patient-PetraMeier.po b/input/translations-de/Patient-PetraMeier.po new file mode 100644 index 0000000..0a4464d --- /dev/null +++ b/input/translations-de/Patient-PetraMeier.po @@ -0,0 +1,7 @@ +# 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" + diff --git a/input/translations-fr/Patient-PetraMeier.po b/input/translations-fr/Patient-PetraMeier.po new file mode 100644 index 0000000..d23ec51 --- /dev/null +++ b/input/translations-fr/Patient-PetraMeier.po @@ -0,0 +1,7 @@ +# 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é" + 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 From 20e01d0ab0ff82559eecba30e82d9712f6e48432 Mon Sep 17 00:00:00 2001 From: Michaela Ziegler Date: Fri, 27 Sep 2024 08:08:21 +0200 Subject: [PATCH 2/2] add some test examples --- README.md | 3 +++ input/fsh/examples/Patient.fsh | 6 +++++- input/translations-de/Patient-PetraMeier.po | 8 ++++++++ input/translations-fr/Patient-PetraMeier.po | 7 +++++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d0aa14c..9458d8e 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,9 @@ 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 diff --git a/input/fsh/examples/Patient.fsh b/input/fsh/examples/Patient.fsh index 3aef40e..c3fb00a 100644 --- a/input/fsh/examples/Patient.fsh +++ b/input/fsh/examples/Patient.fsh @@ -6,4 +6,8 @@ Description: "Example for Patient" * name * family = "Meier" * given = "Petra" -* maritalStatus.text = "Married" \ No newline at end of file +* 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 index 0a4464d..4fb2da8 100644 --- a/input/translations-de/Patient-PetraMeier.po +++ b/input/translations-de/Patient-PetraMeier.po @@ -5,3 +5,11 @@ 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 index d23ec51..23420e1 100644 --- a/input/translations-fr/Patient-PetraMeier.po +++ b/input/translations-fr/Patient-PetraMeier.po @@ -5,3 +5,10 @@ msgid "Married" msgstr "Marié" +#: CodeableConcept.coding.display +msgid "verheiratet" +msgstr "marié-e" + +#: CodeableConcept.text +msgid "German" +msgstr "Allemand"