Skip to content

Commit d557d73

Browse files
committed
Constraint for record type (category) moved to invariant
#127
1 parent a9f4b46 commit d557d73

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

resources/dh-composition-acts-1.xml

+7-9
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,18 @@
3030
<path value="Composition"/>
3131
<short value="Aged Care Transfer Summary"/>
3232
<definition value="A transfer summary includes critical information for exchange of information between providers of care when a patient moves between health care settings."/>
33+
<constraint>
34+
<key value="inv-dh-acts-01"/>
35+
<severity value="error"/>
36+
<human value="One record type (category) shall be Transfer summary note '18761-7' 'http://loinc.org'"/>
37+
<expression value="category.coding.where(system='http://loinc.org' and code='18761-7').exists()"/>
38+
<source value="http://ns.electronichealth.net.au/fhir/StructureDefinition/dh-composition-acts-1"/>
39+
</constraint>
3340
</element>
3441
<element id="Composition.status">
3542
<path value="Composition.status"/>
3643
<patternCode value="final"/>
3744
</element>
38-
<element id="Composition.category">
39-
<path value="Composition.category"/>
40-
<patternCodeableConcept>
41-
<coding>
42-
<system value="http://loinc.org"/>
43-
<code value="60591-5"/>
44-
</coding>
45-
</patternCodeableConcept>
46-
</element>
4745
<element id="Composition.author">
4846
<path value="Composition.author"/>
4947
<type>

0 commit comments

Comments
 (0)