Hello,

we have created a template with the Template Designer (Version 2.4). It 
contains the Report archetype (openEHR-EHR-COMPOSITION.report.v1) that 
is built as a composition that allows to put generic content in it. We 
put e.g. some Lab-Data in.

When we export the "Template Data Schema" we get a schema file that 
seems not to be compatible with the openEHR information model.
Please have a look at the code snippet i provide below the text!
A compostition must have a content element. In the schema definition 
that we get from the Template Designer the "content" element definition 
is missing. Instead we get an definition for "Laboratory_findings" that 
in my eyes is wrong. It simply should be named content and the label 
"Laboratory findings" should show up only in the "name" element of the 
"content" element (as it does anyway).

Moreover there are no "items" elements within the schema. Here it is the 
same as for the "content" element - the names of the nodes are placed 
instead.

We have discovered this as a problem while trying to apply the openEHR 
base.xslt stylesheet that did not fit to data that we generated while 
using the schema obtained from the Template Designer.
Am i misinterpreting the definitions or is this a bug in the Template 
Designer?

hope to get help from the experts on the list ;-)
brgds
Demski


code snippet begin ------------------------------
    <xs:element name="Report">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="name">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="value" type="xs:string" 
default="Report"/>
                            <xs:element name="mappings" 
type="oe:TERM_MAPPING" minOccurs="0" maxOccurs="unbounded"/>
                            <xs:element name="defining_code" 
type="oe:CODE_PHRASE" minOccurs="0"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
       .
       .
       .
                <xs:element name=*"Laboratory_findings"* minOccurs="0" 
maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name=*"name"*>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="value" 
type="xs:string" fixed=*"Laboratory findings"*/>
                                        <xs:element name="mappings" 
type="oe:TERM_MAPPING" minOccurs="0" maxOccurs="unbounded"/>
                                        <xs:element name="defining_code" 
type="oe:CODE_PHRASE" minOccurs="0"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>

code snippet end --------------------------------
code snippet begin ------------------------------
    <xs:element name="data">
        <xs:complexType>
            <xs:sequence>                                               
                       
                <xs:element name="HbA1c">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="name">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="value" 
type="xs:string" default="HbA1c"/>
                                        <xs:element name="mappings" 
type="oe:TERM_MAPPING" minOccurs="0" maxOccurs="unbounded"/>
                                        <xs:element name="defining_code" 
type="oe:CODE_PHRASE" minOccurs="0"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
    .
    .
    .
            <xs:attribute name="archetype_node_id" 
type="oe:archetypeNodeId" use="required" fixed="at0003"/>
            <xs:attribute name="type" use="required" fixed="ITEM_TREE"/>
        </xs:complexType>
    </xs:element>
code snippet end --------------------------------

Reply via email to