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”/></p>
<p>In BBR A (de definitie van de template)<br>
<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.
Diff:
Diff:
Diff:
Diff:
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)