Menu

#208 Template Assocs not possible on BBR templates

2015
closed
2014-11-23
2014-11-23
No

If a project references a template from a BBR you cannot make new element ids in the mapping dialog which is ok as you are not the owner of the template and element ids must be assigned beforehand by the owner. But you can also not make template associations even if the owner has created element ids for the respective template. Creating them by hand gives schema errors (schematron).

Example

In project X (manually created, this is as it should look like)
<templateassociation templateid="1.2.276.0.76.10.90006" effectivedate="2014-09-17T00:00:00">
<concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectivedate="2014-10-27T00:00:00" elementid="2.16.840.1.113883.2.6.77.9.12">
</concept></templateassociation>
<template ref="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayname="CDA effectiveTime”/&gt;&lt;/p&gt; &lt;p&gt;In BBR A (de definitie van de template)&lt;br&gt; &lt;template id=" 1.2.276.0.76.10.90006"="" effectivedate="2012-12-12T00:00:00" statuscode="draft">
<desc language="en-US">Date report was created, precise to the second</desc>
<classification type="cdaheaderlevel">
<element name="hl7:effectiveTime" minimummultiplicity="1" maximummultiplicity="1" ismandatory="true" datatype="TS.DATETIME.MIN" id="user-content-2.16.840.1.113883.2.6.77.9.12">
</element></classification></template>

It should be possible to associate elements from BBR templates with own project concepts.

Discussion

  • Kai U. Heitmann

    Kai U. Heitmann - 2014-11-23
    • labels: --> ART, Templates
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,17 +3,17 @@
     Example
    
     In project X (manually created, this is as it should look like)
    -<templateAssociation templateId="1.2.276.0.76.10.90006" effectiveDate="2014-09-17T00:00:00">
    -    <concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectiveDate="2014-10-27T00:00:00" elementId="2.16.840.1.113883.2.6.77.9.12"/>
    -</templateAssociation>
    -<template ref="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayName="CDA effectiveTime”/>
    +    <templateAssociation templateId="1.2.276.0.76.10.90006" effectiveDate="2014-09-17T00:00:00">
    +        <concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectiveDate="2014-10-27T00:00:00" elementId="2.16.840.1.113883.2.6.77.9.12"/>
    +    </templateAssociation>
    +    <template ref="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayName="CDA effectiveTime”/>
    
     In BBR A (de definitie van de template)
    -<template id="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayName="CDA effectiveTime" effectiveDate="2012-12-12T00:00:00" statusCode="draft">
    -    <desc language="en-US">Date report was created, precise to the second</desc>
    -    <classification type="cdaheaderlevel"/>
    -    <element name="hl7:effectiveTime" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="TS.DATETIME.MIN" id="2.16.840.1.113883.2.6.77.9.12"/>
    -</template>
    +    <template id="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayName="CDA effectiveTime" effectiveDate="2012-12-12T00:00:00" statusCode="draft">
    +        <desc language="en-US">Date report was created, precise to the second</desc>
    +        <classification type="cdaheaderlevel"/>
    +        <element name="hl7:effectiveTime" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="TS.DATETIME.MIN" id="2.16.840.1.113883.2.6.77.9.12"/>
    +    </template>
    
     It should be possible to associate elements from BBR templates with own project concepts.
         <element name="hl7:effectiveTime" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="TS.DATETIME.MIN" id="2.16.840.1.113883.2.6.77.9.12"/>
    
     
  • Kai U. Heitmann

    Kai U. Heitmann - 2014-11-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,7 @@
    
     In project X (manually created, this is as it should look like)
         <templateAssociation templateId="1.2.276.0.76.10.90006" effectiveDate="2014-09-17T00:00:00">
    -        <concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectiveDate="2014-10-27T00:00:00" elementId="2.16.840.1.113883.2.6.77.9.12"/>
    +      <concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectiveDate="2014-10-27T00:00:00" elementId="2.16.840.1.113883.2.6.77.9.12"/>
         </templateAssociation>
         <template ref="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayName="CDA effectiveTime”/>
    
     
  • Kai U. Heitmann

    Kai U. Heitmann - 2014-11-23
     
  • Kai U. Heitmann

    Kai U. Heitmann - 2014-11-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -16,5 +16,3 @@
         </template>
    
     It should be possible to associate elements from BBR templates with own project concepts.
    -    <element name="hl7:effectiveTime" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="TS.DATETIME.MIN" id="2.16.840.1.113883.2.6.77.9.12"/>
    -</template>
    
     
  • Kai U. Heitmann

    Kai U. Heitmann - 2014-11-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,7 @@
    
     In project X (manually created, this is as it should look like)
         <templateAssociation templateId="1.2.276.0.76.10.90006" effectiveDate="2014-09-17T00:00:00">
    -      <concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectiveDate="2014-10-27T00:00:00" elementId="2.16.840.1.113883.2.6.77.9.12"/>
    +        <concept ref="2.16.840.1.113883.2.60.4.2.1.5060" effectiveDate="2014-10-27T00:00:00" elementId="2.16.840.1.113883.2.6.77.9.12"/>
         </templateAssociation>
         <template ref="1.2.276.0.76.10.90006" name="CDAeffectiveTime" displayName="CDA effectiveTime”/>
    
     
  • Alexander Henket

    • status: open --> closed
    • assigned_to: Alexander Henket
     
  • Alexander Henket

    Fixed errors from DECOR.xsd and fixed bug that prevented template associations. Also fixed behavior of template association form that offered to add element id's on referenced template (which would not work if button was clicked)

     

Log in to post a comment.