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

Small correction to XSD in oet-parser #20

Open
ppazos opened this issue May 24, 2015 · 0 comments
Open

Small correction to XSD in oet-parser #20

ppazos opened this issue May 24, 2015 · 0 comments

Comments

@ppazos
Copy link
Contributor

ppazos commented May 24, 2015

I'm trying to validate the OPTs generated by the Template Designer.

The TD is generating a template_id in the definition element of OPTs and this schema doesn't include that node: https://github.com/openEHR/java-libs/blob/master/oet-parser/src/main/xsd/Template.xsd

Current:

<xs:complexType name="C_ARCHETYPE_ROOT">
  <xs:complexContent>
    <xs:extension base="C_COMPLEX_OBJECT">
      <xs:sequence>
        <xs:element name="archetype_id" type="ARCHETYPE_ID"/>
        <xs:element name="default_values" type="DEFAULT_VALUE" minOccurs="0" maxOccurs="unbounded"/>

Proposed change:

<xs:complexType name="C_ARCHETYPE_ROOT">
  <xs:complexContent>
    <xs:extension base="C_COMPLEX_OBJECT">
      <xs:sequence>
        <xs:element name="archetype_id" type="ARCHETYPE_ID"/>
        <xs:element name="template_id" type="TEMPLATE_ID" minOccurs="0"/>
        <xs:element name="default_values" type="DEFAULT_VALUE" minOccurs="0" maxOccurs="unbounded"/>

Example instance generated by TD: https://github.com/ppazos/cabolabs-ehrserver/blob/master/opts/Encuentro.opt

Problematic portion:

<definition>
...
<archetype_id>
  <value>openEHR-EHR-COMPOSITION.encounter.v1</value>
</archetype_id>
<template_id><!-- TD generated this -->
  <value>Encuentro</value>
</template_id>
<term_definitions code="at0000">
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant