FHIR Chat · bindings.xml · translations

Stream: translations

Topic: bindings.xml


view this post on Zulip Aleksandra Pavlyshina (Mar 19 2016 at 08:45):

Hello everyone, could you please advise something,
I'm trying to translate the file
fhir-svn\source\terminologies\bindings.xml
replacing English text by Russian text, but got this error:
org.hl7.fhir.dstu21.exceptions.FHIRException: Type mismatch: the type Reference was expected, but org.hl7.fhir.dstu21.model.UriType was encountered at org.hl7.fhir.dstu21.model.ElementDefinition$ElementDefinitionBindingComponent.getValueSetReference(ElementDefinition.java:1828)
Travis build: https://travis-ci.org/fhir-ru/fhir-svn/builds/116979745#L844
Last commit: https://github.com/fhir-ru/fhir-svn/commit/661e8c64d959b333eb1654372bb650f27bc4ecf6

view this post on Zulip Grahame Grieve (Mar 19 2016 at 11:23):

you must leave the binding names in english?

view this post on Zulip Aleksandra Pavlyshina (Mar 19 2016 at 16:18):

I don't change binding names, only text descriptions, e.g. I changed EN text
<Cell ss:StyleID="s75"><Data ss:Type="String">SecurityLabels</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Security Labels from the Healthcare Privacy and Security Classification System.</Data></Cell>
with the RU text
<Cell ss:StyleID="s75"><Data ss:Type="String">SecurityLabels</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Метки уровня безопасности от системы классификации медицинской конфиденциальности и уровней безопасности.</Data></Cell>

What is the correct way to translate bindings.xml in order to display RU translation, e.g. on the page http://fhir-ru.github.io/patient.html there is Terminology Bindings table with the text "The gender of a person used for administrative purposes". This text I found in bindings.xml and tried to translate, but got that error org.hl7.fhir.dstu21.exceptions.FHIRException: Type mismatch: the type Reference was expected, but org.hl7.fhir.dstu21.model.UriType was encountered at org.hl7.fhir.dstu21.model.ElementDefinition$ElementDefinitionBindingComponent.getValueSetReference(ElementDefinition.java:1828).

view this post on Zulip Grahame Grieve (Mar 19 2016 at 20:02):

it's certainly not from your change directly

view this post on Zulip Grahame Grieve (Mar 19 2016 at 20:02):

might be a unicode thing

view this post on Zulip Grahame Grieve (Mar 19 2016 at 20:03):

can you show me more stack?

view this post on Zulip Aleksandra Pavlyshina (Mar 20 2016 at 09:05):

Here is it:

[java] ...process profiles (packs) 1.278 40sec 587MB
[java] org.hl7.fhir.dstu21.exceptions.FHIRException: Type mismatch: the type Reference was expected, but org.hl7.fhir.dstu21.model.UriType was encountered
[java] at org.hl7.fhir.dstu21.model.ElementDefinition$ElementDefinitionBindingComponent.getValueSetReference(ElementDefinition.java:1828)
[java] at org.hl7.fhir.dstu21.utils.ProfileUtilities.updateFromDefinition(ProfileUtilities.java:1013)
[java] at org.hl7.fhir.dstu21.utils.ProfileUtilities.processPaths(ProfileUtilities.java:371)
[java] at org.hl7.fhir.dstu21.utils.ProfileUtilities.generateSnapshot(ProfileUtilities.java:308)
[java] at org.hl7.fhir.tools.publisher.Publisher.processProfile(Publisher.java:941)
[java] at org.hl7.fhir.tools.publisher.Publisher.processProfiles(Publisher.java:807)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:604)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:460)
[java] ERROR: Unable to process warnings: Type mismatch: the type Reference was expected, but org.hl7.fhir.dstu21.model.UriType was encountered
[java] This was a Full Build 5.699 45sec 382MB
[java] org.hl7.fhir.dstu21.exceptions.FHIRException: Type mismatch: the type Reference was expected, but org.hl7.fhir.dstu21.model.UriType was encountered
[java] at org.hl7.fhir.dstu21.model.ElementDefinition$ElementDefinitionBindingComponent.getValueSetReference(ElementDefinition.java:1828)
[java] at org.hl7.fhir.dstu21.utils.ProfileUtilities.updateFromDefinition(ProfileUtilities.java:1013)
[java] at org.hl7.fhir.dstu21.utils.ProfileUtilities.processPaths(ProfileUtilities.java:371)
[java] at org.hl7.fhir.dstu21.utils.ProfileUtilities.generateSnapshot(ProfileUtilities.java:308)
[java] at org.hl7.fhir.tools.publisher.Publisher.processProfile(Publisher.java:941)
[java] at org.hl7.fhir.tools.publisher.Publisher.processProfiles(Publisher.java:807)
[java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:604)
[java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:460)
[java] FHIR build failure @ Sat, Mar 19, 2016 14:02+0000 0.11 46sec 382MB
[java] Error: Type mismatch: the type Reference was expected, but org.hl7.fhir.dstu21.model.UriType was encountered


Last updated: Apr 12 2022 at 19:14 UTC