I created an archetype with the RM type C_DV_QUANTITY using the Better Archetype Designer tool.
Then I created a template based on the above archetype and tried to validate it using the ehrbase-openehr-sdk Java library. However, I got this error:
Element not allowed: units_system in element list
This is the code segment in the OPT file that triggered the error.
I was unable to find units_system and units_display_name in the official openEHR schema specification.
Are these custom elements introduced by the Better Archetype Designer tool?
If so, how can I validate my OPT file against the openEHR standards?
It seems that the new changes introduced in RM Release 1.1.0 have not yet been incorporated into the stable ITS release. I believe that’s why the openEHR_SDK v2.26.0 Java library is still using the older 1.0.2 XSDs.
As a result, I’m still getting the 1.0.2 stable XSDs from the ITS release.
Do you have any idea why openEHR hasn’t released updated XSDs with the latest RM changes in the ITS releases?
So the conclusion basically is that the XSD models refer to an old version, while not explicitly stating that. Our plan is to add a note/statement to that accord ASAP, and then soon after that bring the XSD up to date. Thank you for noting the discrepancy!
Thanks for the clarification! That sounds like a good plan . Do you also have an estimated timeline for updating the SDK Java library accordingly (ITS release)?
However, it is not available in the latest ITS release. The stable XML schemas are still marked as version 1.0.2, and the openEHR_SDK v2.26.0 Java library is still using these older 1.0.2 XSDs.
Do we have any updates or plans to bring the XSDs up to date and update the SDK Java library accordingly (ITS release)? @matijap, @vidi42 , @ian.mcnicoll