Clinical Practice Guidelines (CPG) on EBMonFHIR
1.0.2 - ci-build
Clinical Practice Guidelines (CPG) on EBMonFHIR, published by Universitätsmedizin Greifswald. This guide is not an authorized publication; it is the continuous build for version 1.0.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/CEOsys/cpg-on-ebm-on-fhir/ and changes regularly. See the Directory of published versions
Draft as of 2024-05-22 |
XML representation of the procedure-action resource profile.
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="procedure-action"/>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition procedure-action</b></p><a name="procedure-action"> </a><a name="hcprocedure-action"> </a><a name="procedure-action-en-US"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-procedure-action-definitions.html#ActivityDefinition">ActivityDefinition</a><a name="ActivityDefinition"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-recommendation-action.html">RecommendationAction</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-procedure-action-definitions.html#ActivityDefinition.kind">kind</a><a name="ActivityDefinition.kind"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Kind of resource</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">ServiceRequest</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-procedure-action-definitions.html#ActivityDefinition.code">code</a><a name="ActivityDefinition.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Detail type of activity</span><br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-vs-procedures.html" title="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/ValueSet/vs-procedures">Procedures</a> (<a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-procedure-action-definitions.html#ActivityDefinition.timing[x]">timing[x]</a><a name="ActivityDefinition.timing_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#Timing">Timing</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">When activity is to occur</span></td></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">product[x]</span><a name="ActivityDefinition.product_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">quantity</span><a name="ActivityDefinition.quantity"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <span style="text-decoration:line-through">dosage</span><a name="ActivityDefinition.dosage"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
</text>
<url
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/StructureDefinition/procedure-action"/>
<version value="0.1.0"/>
<name value="ProcedureAction"/>
<title value="Procedure Action"/>
<status value="draft"/>
<date value="2024-05-22"/>
<publisher value="Netzwerk Universitätsmedizin (NUM)"/>
<contact>
<telecom>
<system value="url"/>
<value value="https://www.netzwerk-universitaetsmedizin.de"/>
</telecom>
</contact>
<description value="Definition of a procedure action."/>
<fhirVersion value="5.0.0"/>
<mapping>
<identity value="rim"/>
<uri value="http://hl7.org/v3"/>
<name value="RIM Mapping"/>
</mapping>
<mapping>
<identity value="workflow"/>
<uri value="http://hl7.org/fhir/workflow"/>
<name value="Workflow Pattern"/>
</mapping>
<mapping>
<identity value="w5"/>
<uri value="http://hl7.org/fhir/fivews"/>
<name value="FiveWs Pattern Mapping"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<uri value="http://hl7.org/fhir/object-implementation"/>
<name value="Object Implementation Information"/>
</mapping>
<kind value="resource"/>
<abstract value="false"/>
<type value="ActivityDefinition"/>
<baseDefinition
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/StructureDefinition/recommendation-action"/>
<derivation value="constraint"/>
<snapshot>
<element id="ActivityDefinition">
<path value="ActivityDefinition"/>
<short
value="The definition of a specific activity to be taken, independent of any particular patient or context"/>
<definition
value="This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition"/>
<min value="0"/>
<max value="*"/>
</base>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"/>
</extension>
<key value="adf-0"/>
<severity value="warning"/>
<human
value="Name should be usable as an identifier for the module by machine processing applications such as code generation"/>
<expression value="name.matches('[A-Z]([A-Za-z0-9_]){0,254}')"/>
<source
value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="not(parent::f:contained and f:contained)"/>
</extension>
<key value="dom-2"/>
<severity value="error"/>
<human
value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
<expression value="contained.contained.empty()"/>
<source
value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"/>
</extension>
<key value="dom-3"/>
<severity value="error"/>
<human
value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
<expression
value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"/>
<source
value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
</extension>
<key value="dom-4"/>
<severity value="error"/>
<human
value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
<expression
value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
<source
value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="not(exists(f:contained/*/f:meta/f:security))"/>
</extension>
<key value="dom-5"/>
<severity value="error"/>
<human
value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
<expression value="contained.meta.security.empty()"/>
<source
value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
<valueBoolean value="true"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
<valueMarkdown
value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
</extension>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="exists(f:text/h:div)"/>
</extension>
<key value="dom-6"/>
<severity value="warning"/>
<human
value="A resource should have narrative for robust management"/>
<expression value="text.`div`.exists()"/>
<source
value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
</constraint>
<constraint>
<key value="no-timing-if-dosage-specified"/>
<severity value="error"/>
<human
value="If a dosage is specified, there SHALL be no timing element at the same level (instead the timing element of dosage should be used)"/>
<expression value="dosage.exists() implies timing.exists().not()"/>
<source
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/StructureDefinition/recommendation-action"/>
</constraint>
<mustSupport value="false"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="Entity. Role, or Act,Act[classCode=ACT; moodCode=DEFN]"/>
</mapping>
<mapping>
<identity value="workflow"/>
<map value="Definition"/>
</mapping>
</element>
<element id="ActivityDefinition.id">
<path value="ActivityDefinition.id"/>
<short value="Logical id of this artifact"/>
<definition
value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
<comment
value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Resource.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.meta">
<path value="ActivityDefinition.meta"/>
<short value="Metadata about the resource"/>
<definition
value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Resource.meta"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Meta"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.meta.id">
<path value="ActivityDefinition.meta.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.meta.extension">
<path value="ActivityDefinition.meta.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.meta.versionId">
<path value="ActivityDefinition.meta.versionId"/>
<short value="Version specific identifier"/>
<definition
value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/>
<comment
value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Meta.versionId"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="id"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.meta.lastUpdated">
<path value="ActivityDefinition.meta.lastUpdated"/>
<short value="When the resource version last changed"/>
<definition
value="When the resource last changed - e.g. when the version changed."/>
<comment
value="This element is generally omitted in instances submitted in a PUT or POST. Instead, it is populated in the response instance and when retrieving information using a GET. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R5/http.html#read) interaction."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Meta.lastUpdated"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="instant"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.meta.source">
<path value="ActivityDefinition.meta.source"/>
<short value="Identifies where the resource comes from"/>
<definition
value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R5/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/>
<comment
value="The exact use of the source (and the possible implied Provenance.entity.role and agent.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. The source may correspond to Provenance.entity.what[x] or Provenance.agent.who[x], though it may be a more general or abstract reference.
This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Meta.source"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.meta.profile">
<path value="ActivityDefinition.meta.profile"/>
<short value="Profiles this resource claims to conform to"/>
<definition
value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R5/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R5/structuredefinition-definitions.html#StructureDefinition.url)."/>
<comment
value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."/>
<min value="1"/>
<max value="*"/>
<base>
<path value="Meta.profile"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="canonical"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.meta.security">
<path value="ActivityDefinition.meta.security"/>
<short value="Security Labels applied to this resource"/>
<definition
value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/>
<comment
value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Meta.security"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Coding"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SecurityLabels"/>
</extension>
<strength value="extensible"/>
<description
value="Security Labels from the Healthcare Privacy and Security Classification System."/>
<valueSet value="http://hl7.org/fhir/ValueSet/security-labels"/>
</binding>
</element>
<element id="ActivityDefinition.meta.tag">
<path value="ActivityDefinition.meta.tag"/>
<short value="Tags applied to this resource"/>
<definition
value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
<comment
value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Meta.tag"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Coding"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Tags"/>
</extension>
<strength value="example"/>
<description
value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"."/>
<valueSet value="http://hl7.org/fhir/ValueSet/common-tags"/>
</binding>
</element>
<element id="ActivityDefinition.implicitRules">
<path value="ActivityDefinition.implicitRules"/>
<short value="A set of rules under which this content was created"/>
<definition
value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."/>
<comment
value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Resource.implicitRules"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation"/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.language">
<path value="ActivityDefinition.language"/>
<short value="Language of the resource content"/>
<definition
value="The base language in which the resource is written."/>
<comment
value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Resource.language"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
<valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Language"/>
</extension>
<strength value="preferred"/>
<description value="A human language."/>
<valueSet value="http://hl7.org/fhir/ValueSet/languages"/>
</binding>
</element>
<element id="ActivityDefinition.text">
<path value="ActivityDefinition.text"/>
<short value="Text summary of the resource, for human interpretation"/>
<definition
value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
<comment
value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later."/>
<alias value="narrative"/>
<alias value="html"/>
<alias value="xhtml"/>
<alias value="display"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="DomainResource.text"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Narrative"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="Act.text?"/>
</mapping>
</element>
<element id="ActivityDefinition.contained">
<path value="ActivityDefinition.contained"/>
<short value="Contained, inline Resources"/>
<definition
value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
<comment
value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels."/>
<alias value="inline resources"/>
<alias value="anonymous resources"/>
<alias value="contained resources"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="DomainResource.contained"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Resource"/>
</type>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.extension">
<path value="ActivityDefinition.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<ordered value="false"/>
<rules value="open"/>
</slicing>
<short value="Extension"/>
<definition value="An Extension"/>
<min value="2"/>
<max value="*"/>
<base>
<path value="DomainResource.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.extension:knowledgeCapability">
<path value="ActivityDefinition.extension"/>
<sliceName value="knowledgeCapability"/>
<short value="shareable | computable | publishable | executable"/>
<definition
value="Defines a knowledge capability afforded by this knowledge artifact."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="DomainResource.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"/>
</type>
<condition value="ele-1"/>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
</element>
<element id="ActivityDefinition.extension:knowledgeCapability.id">
<path value="ActivityDefinition.extension.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.extension:knowledgeCapability.extension">
<path value="ActivityDefinition.extension.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Extension"/>
<definition value="An Extension"/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.extension:knowledgeCapability.url">
<path value="ActivityDefinition.extension.url"/>
<representation value="xmlAttr"/>
<short value="identifies the meaning of the extension"/>
<definition
value="Source of the definition for the extension code - a logical name or a URL."/>
<comment
value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Extension.url"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<fixedUri
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.extension:knowledgeCapability.value[x]">
<path value="ActivityDefinition.extension.value[x]"/>
<short value="Value of extension"/>
<definition
value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Extension.value[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<patternCode value="computable"/>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<strength value="required"/>
<description
value="A knowledge capability provided by a knowledge artifact"/>
<valueSet
value="http://hl7.org/fhir/uv/cpg/ValueSet/cpg-knowledge-capability"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.extension:knowledgeRepresentationLevel">
<path value="ActivityDefinition.extension"/>
<sliceName value="knowledgeRepresentationLevel"/>
<short value="narrative | semi-structured | structured | executable"/>
<definition
value="Defines a knowledge representation level provided by this knowledge artifact."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="DomainResource.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel"/>
</type>
<condition value="ele-1"/>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
</element>
<element
id="ActivityDefinition.extension:knowledgeRepresentationLevel.id">
<path value="ActivityDefinition.extension.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element
id="ActivityDefinition.extension:knowledgeRepresentationLevel.extension">
<path value="ActivityDefinition.extension.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Extension"/>
<definition value="An Extension"/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element
id="ActivityDefinition.extension:knowledgeRepresentationLevel.url">
<path value="ActivityDefinition.extension.url"/>
<representation value="xmlAttr"/>
<short value="identifies the meaning of the extension"/>
<definition
value="Source of the definition for the extension code - a logical name or a URL."/>
<comment
value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Extension.url"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<fixedUri
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element
id="ActivityDefinition.extension:knowledgeRepresentationLevel.value[x]">
<path value="ActivityDefinition.extension.value[x]"/>
<short value="Value of extension"/>
<definition
value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Extension.value[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<patternCode value="structured"/>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<strength value="required"/>
<description
value="A level of knowledge representation provided by this artifact"/>
<valueSet
value="http://hl7.org/fhir/uv/cpg/ValueSet/cpg-knowledge-representation-level"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.modifierExtension">
<path value="ActivityDefinition.modifierExtension"/>
<short value="Extensions that cannot be ignored"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<requirements
value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension)."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="DomainResource.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.url">
<path value="ActivityDefinition.url"/>
<short
value="Canonical identifier for this activity definition, represented as a URI (globally unique)"/>
<definition
value="An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers."/>
<comment
value="Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version.
The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](http://hl7.org/fhir/resource.html#versions).
In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](http://hl7.org/fhir/resource.html#meta) element to indicate where the current master source of the resource can be found."/>
<requirements
value="Allows the activity definition to be referenced by a single globally unique identifier."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.url"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="uri"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.url"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.identifier"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".identifier[scope=BUSN;reliability=ISS]"/>
</mapping>
</element>
<element id="ActivityDefinition.identifier">
<path value="ActivityDefinition.identifier"/>
<short value="Additional identifier for the activity definition"/>
<definition
value="A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance."/>
<comment
value="Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this activity definition outside of FHIR, where it is not possible to use the logical URI."/>
<requirements
value="Allows externally provided and/or usable business identifiers to be easily associated with the module."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.identifier"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Identifier"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.identifier"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.identifier"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".identifier"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<map value="no-gen-base"/>
</mapping>
</element>
<element id="ActivityDefinition.version">
<path value="ActivityDefinition.version"/>
<short value="Business version of the activity definition"/>
<definition
value="The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets."/>
<comment
value="There may be different activity definition instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the activity definition with the format [url]|[version]."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.version"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.version"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.version"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
</element>
<element id="ActivityDefinition.name">
<path value="ActivityDefinition.name"/>
<short value="Name for this activity definition (computer friendly)"/>
<definition
value="A natural language name identifying the activity definition. This name should be usable as an identifier for the module by machine processing applications such as code generation."/>
<comment
value="The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly."/>
<requirements value="Support human navigation and code generation."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.name"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<condition value="inv-0"/>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.title">
<path value="ActivityDefinition.title"/>
<short value="Name for this activity definition (human friendly)"/>
<definition
value="A short, descriptive, user-friendly title for the activity definition."/>
<comment
value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.title"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.title"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".title"/>
</mapping>
</element>
<element id="ActivityDefinition.subtitle">
<path value="ActivityDefinition.subtitle"/>
<short value="Subordinate title of the activity definition"/>
<definition
value="An explanatory or alternate title for the activity definition giving additional information about its content."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.subtitle"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.status">
<path value="ActivityDefinition.status"/>
<short value="draft | active | retired | unknown"/>
<definition
value="The status of this activity definition. Enables tracking the life-cycle of the content."/>
<comment
value="Allows filtering of activity definitions that are appropriate for use versus not."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.status"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="PublicationStatus"/>
</extension>
<strength value="required"/>
<description value="The lifecycle status of an artifact."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/publication-status|4.0.1"/>
</binding>
<mapping>
<identity value="workflow"/>
<map value="Definition.status {different ValueSet}"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.status"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".status"/>
</mapping>
</element>
<element id="ActivityDefinition.experimental">
<path value="ActivityDefinition.experimental"/>
<short value="For testing purposes, not real usage"/>
<definition
value="A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."/>
<comment
value="Allows filtering of activity definitions that are appropriate for use versus not."/>
<requirements
value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level activity definition."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.experimental"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="boolean"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.experimental"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.class"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
</element>
<element id="ActivityDefinition.subject[x]">
<path value="ActivityDefinition.subject[x]"/>
<short
value="Type of individual the activity definition is intended for"/>
<definition
value="A code or group definition that describes the intended subject of the activity being defined."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.subject[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<meaningWhenMissing value="Patient"/>
<patternCodeableConcept>
<coding>
<system value="http://hl7.org/fhir/fhir-types"/>
<code value="Patient"/>
</coding>
</patternCodeableConcept>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SubjectType"/>
</extension>
<strength value="extensible"/>
<description
value="The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization, Location, etc.)."/>
<valueSet value="http://hl7.org/fhir/ValueSet/subject-type"/>
</binding>
<mapping>
<identity value="workflow"/>
<map value="Definition.subject"/>
</mapping>
</element>
<element id="ActivityDefinition.date">
<path value="ActivityDefinition.date"/>
<short value="Date last changed"/>
<definition
value="The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes."/>
<comment
value="Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource."/>
<alias value="Revision Date"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.date"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="dateTime"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.date"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.recorded"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=AUT].time"/>
</mapping>
</element>
<element id="ActivityDefinition.publisher">
<path value="ActivityDefinition.publisher"/>
<short value="Name of the publisher (organization or individual)"/>
<definition
value="The name of the organization or individual that published the activity definition."/>
<comment
value="Usually an organization but may be an individual. The publisher (or steward) of the activity definition is the organization or individual primarily responsible for the maintenance and upkeep of the activity definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the activity definition. This item SHOULD be populated unless the information is available from context."/>
<requirements
value="Helps establish the "authority/credibility" of the activity definition. May also allow for contact."/>
<alias value="steward"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.publisher"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map
value="Definition.publisher {as string instead of CodeableConcept}"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.witness"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=AUT].role"/>
</mapping>
</element>
<element id="ActivityDefinition.contact">
<path value="ActivityDefinition.contact"/>
<short value="Contact details for the publisher"/>
<definition
value="Contact details to assist a user in finding and communicating with the publisher."/>
<comment
value="May be a web site, an email address, a telephone number, etc."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.contact"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="ContactDetail"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.contact"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=CALLBCK].role"/>
</mapping>
</element>
<element id="ActivityDefinition.description">
<path value="ActivityDefinition.description"/>
<short value="Natural language description of the activity definition"/>
<definition
value="A free text natural language description of the activity definition from a consumer's perspective."/>
<comment
value="This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the activity definition is presumed to be the predominant language in the place the activity definition was created)."/>
<alias value="scope"/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.description"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="markdown"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.description"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".text"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.useContext">
<path value="ActivityDefinition.useContext"/>
<short value="The context that the content is intended to support"/>
<definition
value="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate activity definition instances."/>
<comment
value="When multiple useContexts are specified, there is no expectation that all or any of the contexts apply."/>
<requirements value="Assist in searching for appropriate content."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.useContext"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="UsageContext"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.useContext"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
</element>
<element id="ActivityDefinition.jurisdiction">
<path value="ActivityDefinition.jurisdiction"/>
<short
value="Intended jurisdiction for activity definition (if applicable)"/>
<definition
value="A legal or geographic region in which the activity definition is intended to be used."/>
<comment
value="It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.jurisdiction"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Jurisdiction"/>
</extension>
<strength value="extensible"/>
<description
value="Countries and regions within which this artifact is targeted for use."/>
<valueSet value="http://hl7.org/fhir/ValueSet/jurisdiction"/>
</binding>
<mapping>
<identity value="workflow"/>
<map value="Definition.jurisdiction"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
</element>
<element id="ActivityDefinition.purpose">
<path value="ActivityDefinition.purpose"/>
<short value="Why this activity definition is defined"/>
<definition
value="Explanation of why this activity definition is needed and why it has been designed as it has."/>
<comment
value="This element does not describe the usage of the activity definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this activity definition."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.purpose"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="markdown"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.purpose"/>
</mapping>
<mapping>
<identity value="w5"/>
<map value="FiveWs.why[x]"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".reasonCode.text"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<map value="no-gen-base"/>
</mapping>
</element>
<element id="ActivityDefinition.usage">
<path value="ActivityDefinition.usage"/>
<short value="Describes the clinical usage of the activity definition"/>
<definition
value="A detailed description of how the activity definition is used from a clinical perspective."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.usage"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
</element>
<element id="ActivityDefinition.copyright">
<path value="ActivityDefinition.copyright"/>
<short value="Use and/or publishing restrictions"/>
<definition
value="A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition."/>
<requirements
value="Consumers must be able to determine any legal restrictions on the use of the activity definition and/or its content."/>
<alias value="License"/>
<alias value="Restrictions"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.copyright"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="markdown"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.copyright"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<map value="no-gen-base"/>
</mapping>
</element>
<element id="ActivityDefinition.approvalDate">
<path value="ActivityDefinition.approvalDate"/>
<short value="When the activity definition was approved by publisher"/>
<definition
value="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage."/>
<comment
value="The 'date' element may be more recent than the approval date because of minor changes or editorial corrections."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.approvalDate"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="date"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.approvalDate"/>
</mapping>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode="SUBJ"].act[classCode=CACT;moodCode=EVN;code="approval"].effectiveTime"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<map value="no-gen-base"/>
</mapping>
</element>
<element id="ActivityDefinition.lastReviewDate">
<path value="ActivityDefinition.lastReviewDate"/>
<short value="When the activity definition was last reviewed"/>
<definition
value="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date."/>
<comment
value="If specified, this date follows the original approval date."/>
<requirements
value="Gives a sense of how "current" the content is. Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.lastReviewDate"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="date"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.lastReviewDate"/>
</mapping>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode="SUBJ"; subsetCode="RECENT"].act[classCode=CACT;moodCode=EVN;code="review"].effectiveTime"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<map value="no-gen-base"/>
</mapping>
</element>
<element id="ActivityDefinition.effectivePeriod">
<path value="ActivityDefinition.effectivePeriod"/>
<short value="When the activity definition is expected to be used"/>
<definition
value="The period during which the activity definition content was or is planned to be in active use."/>
<comment
value="The effective period for a activity definition determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015."/>
<requirements
value="Allows establishing a transition before a resource comes into effect and also allows for a sunsetting process when new versions of the activity definition are or are expected to be used instead."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.effectivePeriod"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Period"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="workflow"/>
<map value="Definition.effectivePeriod"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
<mapping>
<identity value="objimpl"/>
<map value="no-gen-base"/>
</mapping>
</element>
<element id="ActivityDefinition.topic">
<path value="ActivityDefinition.topic"/>
<short value="E.g. Education, Treatment, Assessment, etc."/>
<definition
value="Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching."/>
<requirements
value="Repositories must be able to determine how to categorize the activity definition so that it can be found by topical searches."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.topic"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="DefinitionTopic"/>
</extension>
<strength value="example"/>
<description
value="High-level categorization of the definition, used for searching, sorting, and filtering."/>
<valueSet value="http://hl7.org/fhir/ValueSet/definition-topic"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="N/A (to add?)"/>
</mapping>
</element>
<element id="ActivityDefinition.author">
<path value="ActivityDefinition.author"/>
<short value="Who authored the content"/>
<definition
value="An individiual or organization primarily involved in the creation and maintenance of the content."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.author"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="ContactDetail"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=AUT]"/>
</mapping>
</element>
<element id="ActivityDefinition.editor">
<path value="ActivityDefinition.editor"/>
<short value="Who edited the content"/>
<definition
value="An individual or organization primarily responsible for internal coherence of the content."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.editor"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="ContactDetail"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.reviewer">
<path value="ActivityDefinition.reviewer"/>
<short value="Who reviewed the content"/>
<definition
value="An individual or organization primarily responsible for review of some aspect of the content."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.reviewer"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="ContactDetail"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map
value=".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"/>
</mapping>
</element>
<element id="ActivityDefinition.endorser">
<path value="ActivityDefinition.endorser"/>
<short value="Who endorsed the content"/>
<definition
value="An individual or organization responsible for officially endorsing the content for use in some setting."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.endorser"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="ContactDetail"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map
value=".participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}"/>
</mapping>
</element>
<element id="ActivityDefinition.relatedArtifact">
<path value="ActivityDefinition.relatedArtifact"/>
<short value="Additional documentation, citations, etc."/>
<definition
value="Related artifacts such as additional documentation, justification, or bibliographic references."/>
<comment
value="Each related artifact is either an attachment, or a reference to another resource, but not both."/>
<requirements
value="Activity definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.relatedArtifact"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="RelatedArtifact"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}"/>
</mapping>
</element>
<element id="ActivityDefinition.library">
<path value="ActivityDefinition.library"/>
<short value="Logic used by the activity definition"/>
<definition
value="A reference to a Library resource containing any formal logic used by the activity definition."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.library"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="canonical"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/Library"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]"/>
</mapping>
</element>
<element id="ActivityDefinition.kind">
<path value="ActivityDefinition.kind"/>
<short value="Kind of resource"/>
<definition
value="A description of the kind of resource the activity definition is representing. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. Typically, but not always, this is a Request resource."/>
<comment value="May determine what types of extensions are permitted."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.kind"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<patternCode value="ServiceRequest"/>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ActivityDefinitionKind"/>
</extension>
<strength value="required"/>
<description
value="The kind of activity the definition is describing."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/request-resource-types|4.0.1"/>
</binding>
<mapping>
<identity value="rim"/>
<map value=".classCode"/>
</mapping>
</element>
<element id="ActivityDefinition.profile">
<path value="ActivityDefinition.profile"/>
<short value="What profile the resource needs to conform to"/>
<definition
value="A profile to which the target of the activity definition is expected to conform."/>
<requirements
value="Allows profiles to be used to describe the types of activities that can be performed within a workflow, protocol, or order set."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.profile"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="canonical"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.code">
<path value="ActivityDefinition.code"/>
<short value="Detail type of activity"/>
<definition
value="Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter."/>
<comment
value="Tends to be less relevant for activities involving particular products."/>
<requirements
value="Allows matching performed to planned as well as validation against protocols."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.code"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<strength value="required"/>
<valueSet
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/ValueSet/vs-procedures"/>
</binding>
<mapping>
<identity value="rim"/>
<map value=".code"/>
</mapping>
</element>
<element id="ActivityDefinition.intent">
<path value="ActivityDefinition.intent"/>
<short
value="proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option"/>
<definition
value="Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.intent"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="RequestIntent"/>
</extension>
<strength value="required"/>
<description
value="Codes indicating the degree of authority/intentionality associated with a request."/>
<valueSet value="http://hl7.org/fhir/ValueSet/request-intent|4.0.1"/>
</binding>
</element>
<element id="ActivityDefinition.priority">
<path value="ActivityDefinition.priority"/>
<short value="routine | urgent | asap | stat"/>
<definition
value="Indicates how quickly the activity should be addressed with respect to other requests."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.priority"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="RequestPriority"/>
</extension>
<strength value="required"/>
<description
value="Identifies the level of importance to be assigned to actioning the request."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/request-priority|4.0.1"/>
</binding>
</element>
<element id="ActivityDefinition.doNotPerform">
<path value="ActivityDefinition.doNotPerform"/>
<short value="True if the activity should not be performed"/>
<definition
value="Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action."/>
<comment
value="This element is not intended to be used to communicate a decision support response to cancel an order in progress. That should be done with the "remove" type of a PlanDefinition or RequestGroup."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.doNotPerform"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="boolean"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="true"/>
<isModifierReason
value="If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur."/>
<isSummary value="true"/>
</element>
<element id="ActivityDefinition.timing[x]">
<path value="ActivityDefinition.timing[x]"/>
<short value="When activity is to occur"/>
<definition
value="The period, timing or frequency upon which the described activity is to occur."/>
<requirements
value="Allows prompting for activities and detection of missed planned activities."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.timing[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Timing"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="code-xor-repeat"/>
<severity value="error"/>
<human
value="Either a code or a repeat structure should be defined, but not both"/>
<expression value="code.empty() or repeat.empty()"/>
<source
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/StructureDefinition/recommendation-action"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value=".effectiveTime"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].id">
<path value="ActivityDefinition.timing[x].id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].extension">
<path value="ActivityDefinition.timing[x].extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].extension:relativeTime">
<path value="ActivityDefinition.timing[x].extension"/>
<sliceName value="relativeTime"/>
<short value="Timing in which the characteristic is determined"/>
<definition value="Timing in which the characteristic is determined."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
<profile
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/StructureDefinition/relative-time"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.timing[x].modifierExtension">
<path value="ActivityDefinition.timing[x].modifierExtension"/>
<short value="Extensions that cannot be ignored even if unrecognized"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<requirements
value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension)."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneType.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].event">
<path value="ActivityDefinition.timing[x].event"/>
<short value="When the event occurs"/>
<definition value="Identifies specific times when the event occurs."/>
<requirements
value="In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.event"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="dateTime"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="QLIST<TS>"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat">
<path value="ActivityDefinition.timing[x].repeat"/>
<short value="When the event is to occur"/>
<definition
value="A set of rules that describe when the event is scheduled."/>
<requirements
value="Many timing schedules are determined by regular repetitions."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Timing.repeat"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Element"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="tim-1"/>
<severity value="error"/>
<human
value="if there's a duration, there needs to be duration units"/>
<expression value="duration.empty() or durationUnit.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-2"/>
<severity value="error"/>
<human value="if there's a period, there needs to be period units"/>
<expression value="period.empty() or periodUnit.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-4"/>
<severity value="error"/>
<human value="duration SHALL be a non-negative value"/>
<expression value="duration.exists() implies duration >= 0"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-5"/>
<severity value="error"/>
<human value="period SHALL be a non-negative value"/>
<expression value="period.exists() implies period >= 0"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-6"/>
<severity value="error"/>
<human value="If there's a periodMax, there must be a period"/>
<expression value="periodMax.empty() or period.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-7"/>
<severity value="error"/>
<human value="If there's a durationMax, there must be a duration"/>
<expression value="durationMax.empty() or duration.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-8"/>
<severity value="error"/>
<human value="If there's a countMax, there must be a count"/>
<expression value="countMax.empty() or count.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-9"/>
<severity value="error"/>
<human
value="If there's an offset, there must be a when (and not C, CM, CD, CV)"/>
<expression
value="offset.empty() or (when.exists() and when.select($this in ('C' | 'CM' | 'CD' | 'CV')).allFalse())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-10"/>
<severity value="error"/>
<human
value="If there's a timeOfDay, there cannot be a when, or vice versa"/>
<expression value="timeOfDay.empty() or when.empty()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="Implies PIVL or EIVL"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.id">
<path value="ActivityDefinition.timing[x].repeat.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.extension">
<path value="ActivityDefinition.timing[x].repeat.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.bounds[x]">
<path value="ActivityDefinition.timing[x].repeat.bounds[x]"/>
<short value="Length/Range of lengths, or (Start and/or end) limits"/>
<definition
value="Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Timing.repeat.bounds[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Duration"/>
</type>
<type>
<code value="Range"/>
</type>
<type>
<code value="Period"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="IVL(TS) used in a QSI"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.count">
<path value="ActivityDefinition.timing[x].repeat.count"/>
<short value="Minimal number of times this event should be repeated"/>
<definition
value="A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values."/>
<comment
value="If you have both bounds and count, then this should be understood as within the bounds period, until count times happens."/>
<requirements
value="Repetitions may be limited by end time or total occurrences."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.count"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<condition value="tim-8"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.count"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.countMax">
<path value="ActivityDefinition.timing[x].repeat.countMax"/>
<short value="Maximum number of times this event should be repeated"/>
<definition
value="If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.countMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<condition value="tim-8"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.count"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.duration">
<path value="ActivityDefinition.timing[x].repeat.duration"/>
<short value="Minimal duration this event should last"/>
<definition
value="How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration."/>
<comment
value="For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise)."/>
<requirements
value="Some activities are not instantaneous and need to be maintained for a period of time."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.duration"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-7"/>
<condition value="tim-1"/>
<condition value="tim-4"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.durationMax">
<path value="ActivityDefinition.timing[x].repeat.durationMax"/>
<short value="Maximal duration this event should last"/>
<definition
value="If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length."/>
<comment
value="For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise)."/>
<requirements
value="Some activities are not instantaneous and need to be maintained for a period of time."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.durationMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-7"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.durationUnit">
<path value="ActivityDefinition.timing[x].repeat.durationUnit"/>
<short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
<definition
value="The units of time for the duration, in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.durationUnit"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<condition value="tim-1"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="UnitsOfTime"/>
</extension>
<strength value="required"/>
<description value="A unit of time (units from UCUM)."/>
<valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase.unit"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.frequency">
<path value="ActivityDefinition.timing[x].repeat.frequency"/>
<short
value="Indicates the minimal number of repetitions that should occur within a period. I.e. Event occurs frequency times per period"/>
<definition
value="The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.frequency"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<meaningWhenMissing
value="If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.frequencyMax">
<path value="ActivityDefinition.timing[x].repeat.frequencyMax"/>
<short
value="Indicates the maximum number of repetitions that should occur within a period. I.e. Event occurs frequency times per period"/>
<definition
value="If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.frequencyMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.period">
<path value="ActivityDefinition.timing[x].repeat.period"/>
<short
value="The minimal duration to which the frequency applies. I.e. Event occurs frequency times per period"/>
<definition
value="Indicates the duration of time over which repetitions are to occur; e.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.period"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-6"/>
<condition value="tim-5"/>
<condition value="tim-2"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.periodMax">
<path value="ActivityDefinition.timing[x].repeat.periodMax"/>
<short
value="The maximum duration to which the frequency applies. I.e. Event occurs frequency times per period"/>
<definition
value="If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.periodMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-6"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.periodUnit">
<path value="ActivityDefinition.timing[x].repeat.periodUnit"/>
<short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
<definition
value="The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.periodUnit"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<condition value="tim-2"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="UnitsOfTime"/>
</extension>
<strength value="required"/>
<description value="A unit of time (units from UCUM)."/>
<valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase.unit"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.dayOfWeek">
<path value="ActivityDefinition.timing[x].repeat.dayOfWeek"/>
<short value="mon | tue | wed | thu | fri | sat | sun"/>
<definition
value="If one or more days of week is provided, then the action happens only on the specified day(s)."/>
<comment
value="If no days are specified, the action is assumed to happen every day as otherwise specified."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.repeat.dayOfWeek"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="DayOfWeek"/>
</extension>
<strength value="required"/>
<valueSet value="http://hl7.org/fhir/ValueSet/days-of-week|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.timeOfDay">
<path value="ActivityDefinition.timing[x].repeat.timeOfDay"/>
<short value="Time of day for action"/>
<definition value="Specified time of day for action to take place."/>
<comment
value="When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. If there's a timeOfDay, there cannot be a when, or vice versa."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.repeat.timeOfDay"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="time"/>
</type>
<condition value="tim-10"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.when">
<path value="ActivityDefinition.timing[x].repeat.when"/>
<short value="Code for time period of occurrence"/>
<definition
value="An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur."/>
<comment
value="When more than one event is listed, the event is tied to the union of the specified events."/>
<requirements
value="Timings are frequently determined by occurrences such as waking, eating and sleep."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.repeat.when"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="code"/>
</type>
<condition value="tim-9"/>
<condition value="tim-10"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="EventTiming"/>
</extension>
<strength value="required"/>
<description value="Real-world event relating to the schedule."/>
<valueSet value="http://hl7.org/fhir/ValueSet/event-timing|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="EIVL.event"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].repeat.offset">
<path value="ActivityDefinition.timing[x].repeat.offset"/>
<short value="Minutes from event (before or after)"/>
<definition
value="The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.offset"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="unsignedInt"/>
</type>
<condition value="tim-9"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="EIVL.offset"/>
</mapping>
</element>
<element id="ActivityDefinition.timing[x].code">
<path value="ActivityDefinition.timing[x].code"/>
<short value="C | BID | TID | QID | AM | PM | QD | QOD | +"/>
<definition
value="A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code)."/>
<comment
value="BID etc. are defined as 'at institutionally specified times'. For example, an institution may choose that BID is "always at 7am and 6pm". If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.code"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="TimingAbbreviation"/>
</extension>
<strength value="preferred"/>
<description value="Code for a known / defined timing pattern."/>
<valueSet value="http://hl7.org/fhir/ValueSet/timing-abbreviation"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="QSC.code"/>
</mapping>
</element>
<element id="ActivityDefinition.location">
<path value="ActivityDefinition.location"/>
<short value="Where it should happen"/>
<definition
value="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc."/>
<comment
value="May reference a specific clinical location or may just identify a type of location."/>
<requirements value="Helps in planning of activity."/>
<alias value="facility"/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.location"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Reference"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/Location"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=LOC].role"/>
</mapping>
</element>
<element id="ActivityDefinition.participant">
<path value="ActivityDefinition.participant"/>
<short value="Who should participate in the action"/>
<definition
value="Indicates who should participate in performing the action described."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.participant"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=PFM]"/>
</mapping>
</element>
<element id="ActivityDefinition.participant.id">
<path value="ActivityDefinition.participant.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.participant.extension">
<path value="ActivityDefinition.participant.extension"/>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.participant.modifierExtension">
<path value="ActivityDefinition.participant.modifierExtension"/>
<short value="Extensions that cannot be ignored even if unrecognized"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<requirements
value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension)."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.participant.type">
<path value="ActivityDefinition.participant.type"/>
<short value="patient | practitioner | related-person | device"/>
<definition value="The type of participant in the action."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.participant.type"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ActivityParticipantType"/>
</extension>
<strength value="required"/>
<description value="The type of participant in the activity."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1"/>
</binding>
<mapping>
<identity value="rim"/>
<map value=".role.classCode"/>
</mapping>
</element>
<element id="ActivityDefinition.participant.role">
<path value="ActivityDefinition.participant.role"/>
<short value="E.g. Nurse, Surgeon, Parent, etc."/>
<definition
value="The role the participant should play in performing the described action."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.participant.role"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ActivityParticipantRole"/>
</extension>
<strength value="example"/>
<description
value="Defines roles played by participants for the action."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/action-participant-role"/>
</binding>
<mapping>
<identity value="rim"/>
<map value=".role.code"/>
</mapping>
</element>
<element id="ActivityDefinition.product[x]">
<path value="ActivityDefinition.product[x]"/>
<short value="What's administered/supplied"/>
<definition
value="Identifies the food, drug or other product being consumed or supplied in the activity."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="ActivityDefinition.product[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Reference"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/Medication"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/Substance"/>
</type>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="ActivityProduct"/>
</extension>
<strength value="example"/>
<description
value="Code describing the type of substance or medication."/>
<valueSet value="http://hl7.org/fhir/ValueSet/medication-codes"/>
</binding>
<mapping>
<identity value="rim"/>
<map value=".participation[typeCode=CSM].role"/>
</mapping>
</element>
<element id="ActivityDefinition.quantity">
<path value="ActivityDefinition.quantity"/>
<short value="How much is administered/consumed/supplied"/>
<definition
value="Identifies the quantity expected to be consumed at once (per dose, per meal, etc.)."/>
<alias value="dose"/>
<min value="0"/>
<max value="0"/>
<base>
<path value="ActivityDefinition.quantity"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Quantity"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value=".quantity {for classCode=SPLY}"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage">
<path value="ActivityDefinition.dosage"/>
<short value="Detailed dosage instructions"/>
<definition
value="Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources."/>
<comment
value="If a dosage instruction is used, the definition should not specify timing or quantity."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="ActivityDefinition.dosage"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Dosage"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.id">
<path value="ActivityDefinition.dosage.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.extension">
<path value="ActivityDefinition.dosage.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.modifierExtension">
<path value="ActivityDefinition.dosage.modifierExtension"/>
<short value="Extensions that cannot be ignored even if unrecognized"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<requirements
value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension)."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneType.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.sequence">
<path value="ActivityDefinition.dosage.sequence"/>
<short value="The order of the dosage instructions"/>
<definition
value="Indicates the order in which the dosage instructions should be applied or interpreted."/>
<requirements
value="If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent. If the sequence number is different, then the Dosages are intended to be sequential."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.sequence"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="integer"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="TQ1-1"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".text"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.text">
<path value="ActivityDefinition.dosage.text"/>
<short value="Free text dosage instructions e.g. SIG"/>
<definition value="Free text dosage instructions e.g. SIG."/>
<requirements
value="Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing. Additional information about administration or preparation of the medication should be included as text."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.text"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="RXO-6; RXE-21"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".text"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.additionalInstruction">
<path value="ActivityDefinition.dosage.additionalInstruction"/>
<short
value="Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness""/>
<definition
value="Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps")."/>
<comment
value="Information about administration or preparation of the medication (e.g. "infuse as rapidly as possibly via intraperitoneal port" or take "immediately following drug x") should be populated in dosage.text."/>
<requirements
value="Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, "Swallow with plenty of water" which might or might not be coded."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Dosage.additionalInstruction"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="AdditionalInstruction"/>
</extension>
<strength value="example"/>
<description
value="A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery"."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/additional-instruction-codes"/>
</binding>
<mapping>
<identity value="v2"/>
<map value="RXO-7"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".text"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.patientInstruction">
<path value="ActivityDefinition.dosage.patientInstruction"/>
<short value="Patient or consumer oriented instructions"/>
<definition
value="Instructions in terms that are understood by the patient or consumer."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.patientInstruction"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="RXO-7"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".text"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing">
<path value="ActivityDefinition.dosage.timing"/>
<short value="When medication should be administered"/>
<definition value="When medication should be administered."/>
<comment
value="This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing."/>
<requirements
value="The timing schedule for giving the medication to the patient. This data type allows many different expressions. For example: "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.timing"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Timing"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="code-xor-repeat"/>
<severity value="error"/>
<human
value="Either a code or a repeat structure should be defined, but not both"/>
<expression value="code.empty() or repeat.empty()"/>
<source
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/StructureDefinition/recommendation-action"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value=".effectiveTime"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.id">
<path value="ActivityDefinition.dosage.timing.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.extension">
<path value="ActivityDefinition.dosage.timing.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.modifierExtension">
<path value="ActivityDefinition.dosage.timing.modifierExtension"/>
<short value="Extensions that cannot be ignored even if unrecognized"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<requirements
value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension)."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneType.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.event">
<path value="ActivityDefinition.dosage.timing.event"/>
<short value="When the event occurs"/>
<definition value="Identifies specific times when the event occurs."/>
<requirements
value="In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.event"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="dateTime"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="QLIST<TS>"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat">
<path value="ActivityDefinition.dosage.timing.repeat"/>
<short value="When the event is to occur"/>
<definition
value="A set of rules that describe when the event is scheduled."/>
<requirements
value="Many timing schedules are determined by regular repetitions."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Element"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="tim-1"/>
<severity value="error"/>
<human
value="if there's a duration, there needs to be duration units"/>
<expression value="duration.empty() or durationUnit.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-2"/>
<severity value="error"/>
<human value="if there's a period, there needs to be period units"/>
<expression value="period.empty() or periodUnit.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-4"/>
<severity value="error"/>
<human value="duration SHALL be a non-negative value"/>
<expression value="duration.exists() implies duration >= 0"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-5"/>
<severity value="error"/>
<human value="period SHALL be a non-negative value"/>
<expression value="period.exists() implies period >= 0"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-6"/>
<severity value="error"/>
<human value="If there's a periodMax, there must be a period"/>
<expression value="periodMax.empty() or period.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-7"/>
<severity value="error"/>
<human value="If there's a durationMax, there must be a duration"/>
<expression value="durationMax.empty() or duration.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-8"/>
<severity value="error"/>
<human value="If there's a countMax, there must be a count"/>
<expression value="countMax.empty() or count.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-9"/>
<severity value="error"/>
<human
value="If there's an offset, there must be a when (and not C, CM, CD, CV)"/>
<expression
value="offset.empty() or (when.exists() and when.select($this in ('C' | 'CM' | 'CD' | 'CV')).allFalse())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<constraint>
<key value="tim-10"/>
<severity value="error"/>
<human
value="If there's a timeOfDay, there cannot be a when, or vice versa"/>
<expression value="timeOfDay.empty() or when.empty()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="Implies PIVL or EIVL"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.id">
<path value="ActivityDefinition.dosage.timing.repeat.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.extension">
<path value="ActivityDefinition.dosage.timing.repeat.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.bounds[x]">
<path value="ActivityDefinition.dosage.timing.repeat.bounds[x]"/>
<short value="Length/Range of lengths, or (Start and/or end) limits"/>
<definition
value="Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Timing.repeat.bounds[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Duration"/>
</type>
<type>
<code value="Range"/>
</type>
<type>
<code value="Period"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="IVL(TS) used in a QSI"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.count">
<path value="ActivityDefinition.dosage.timing.repeat.count"/>
<short value="Minimal number of times this event should be repeated"/>
<definition
value="A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values."/>
<comment
value="If you have both bounds and count, then this should be understood as within the bounds period, until count times happens."/>
<requirements
value="Repetitions may be limited by end time or total occurrences."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.count"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<condition value="tim-8"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.count"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.countMax">
<path value="ActivityDefinition.dosage.timing.repeat.countMax"/>
<short value="Maximum number of times this event should be repeated"/>
<definition
value="If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.countMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<condition value="tim-8"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.count"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.duration">
<path value="ActivityDefinition.dosage.timing.repeat.duration"/>
<short value="Minimal duration this event should last"/>
<definition
value="How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration."/>
<comment
value="For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise)."/>
<requirements
value="Some activities are not instantaneous and need to be maintained for a period of time."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.duration"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-7"/>
<condition value="tim-1"/>
<condition value="tim-4"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.durationMax">
<path value="ActivityDefinition.dosage.timing.repeat.durationMax"/>
<short value="Maximal duration this event should last"/>
<definition
value="If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length."/>
<comment
value="For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise)."/>
<requirements
value="Some activities are not instantaneous and need to be maintained for a period of time."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.durationMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-7"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.durationUnit">
<path value="ActivityDefinition.dosage.timing.repeat.durationUnit"/>
<short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
<definition
value="The units of time for the duration, in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.durationUnit"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<condition value="tim-1"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="UnitsOfTime"/>
</extension>
<strength value="required"/>
<description value="A unit of time (units from UCUM)."/>
<valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase.unit"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.frequency">
<path value="ActivityDefinition.dosage.timing.repeat.frequency"/>
<short
value="Indicates the minimal number of repetitions that should occur within a period. I.e. Event occurs frequency times per period"/>
<definition
value="The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.frequency"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<meaningWhenMissing
value="If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.frequencyMax">
<path value="ActivityDefinition.dosage.timing.repeat.frequencyMax"/>
<short
value="Indicates the maximum number of repetitions that should occur within a period. I.e. Event occurs frequency times per period"/>
<definition
value="If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.frequencyMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="positiveInt"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.period">
<path value="ActivityDefinition.dosage.timing.repeat.period"/>
<short
value="The minimal duration to which the frequency applies. I.e. Event occurs frequency times per period"/>
<definition
value="Indicates the duration of time over which repetitions are to occur; e.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.period"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-6"/>
<condition value="tim-5"/>
<condition value="tim-2"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.periodMax">
<path value="ActivityDefinition.dosage.timing.repeat.periodMax"/>
<short
value="The maximum duration to which the frequency applies. I.e. Event occurs frequency times per period"/>
<definition
value="If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.periodMax"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="decimal"/>
</type>
<condition value="tim-6"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.periodUnit">
<path value="ActivityDefinition.dosage.timing.repeat.periodUnit"/>
<short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
<definition
value="The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.periodUnit"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="code"/>
</type>
<condition value="tim-2"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="UnitsOfTime"/>
</extension>
<strength value="required"/>
<description value="A unit of time (units from UCUM)."/>
<valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="PIVL.phase.unit"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.dayOfWeek">
<path value="ActivityDefinition.dosage.timing.repeat.dayOfWeek"/>
<short value="mon | tue | wed | thu | fri | sat | sun"/>
<definition
value="If one or more days of week is provided, then the action happens only on the specified day(s)."/>
<comment
value="If no days are specified, the action is assumed to happen every day as otherwise specified."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.repeat.dayOfWeek"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="code"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="DayOfWeek"/>
</extension>
<strength value="required"/>
<valueSet value="http://hl7.org/fhir/ValueSet/days-of-week|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.timeOfDay">
<path value="ActivityDefinition.dosage.timing.repeat.timeOfDay"/>
<short value="Time of day for action"/>
<definition value="Specified time of day for action to take place."/>
<comment
value="When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. If there's a timeOfDay, there cannot be a when, or vice versa."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.repeat.timeOfDay"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="time"/>
</type>
<condition value="tim-10"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.when">
<path value="ActivityDefinition.dosage.timing.repeat.when"/>
<short value="Code for time period of occurrence"/>
<definition
value="An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur."/>
<comment
value="When more than one event is listed, the event is tied to the union of the specified events."/>
<requirements
value="Timings are frequently determined by occurrences such as waking, eating and sleep."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Timing.repeat.when"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="code"/>
</type>
<condition value="tim-9"/>
<condition value="tim-10"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="EventTiming"/>
</extension>
<strength value="required"/>
<description value="Real-world event relating to the schedule."/>
<valueSet value="http://hl7.org/fhir/ValueSet/event-timing|5.0.0"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="EIVL.event"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.repeat.offset">
<path value="ActivityDefinition.dosage.timing.repeat.offset"/>
<short value="Minutes from event (before or after)"/>
<definition
value="The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.repeat.offset"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="unsignedInt"/>
</type>
<condition value="tim-9"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="EIVL.offset"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.timing.code">
<path value="ActivityDefinition.dosage.timing.code"/>
<short value="C | BID | TID | QID | AM | PM | QD | QOD | +"/>
<definition
value="A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code)."/>
<comment
value="BID etc. are defined as 'at institutionally specified times'. For example, an institution may choose that BID is "always at 7am and 6pm". If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times)."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Timing.code"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="TimingAbbreviation"/>
</extension>
<strength value="preferred"/>
<description value="Code for a known / defined timing pattern."/>
<valueSet value="http://hl7.org/fhir/ValueSet/timing-abbreviation"/>
</binding>
<mapping>
<identity value="rim"/>
<map value="QSC.code"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.asNeeded">
<path value="ActivityDefinition.dosage.asNeeded"/>
<short value="Take "as needed""/>
<definition
value="Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option)."/>
<comment
value="Can express "as needed" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.asNeeded"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="boolean"/>
</type>
<condition value="dos-1"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="TQ1-9"/>
</mapping>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.asNeededFor">
<path value="ActivityDefinition.dosage.asNeededFor"/>
<short value="Take "as needed" (for x)"/>
<definition
value="Indicates whether the Medication is only taken based on a precondition for taking the Medication (CodeableConcept)."/>
<comment
value="Can express "as needed" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be False, then the dose is given according to the schedule and is not "prn" or "as needed"."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Dosage.asNeededFor"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<condition value="dos-1"/>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAsNeededReason"/>
</extension>
<strength value="example"/>
<description
value="A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/medication-as-needed-reason"/>
</binding>
<mapping>
<identity value="v2"/>
<map value="TQ1-9"/>
</mapping>
<mapping>
<identity value="rim"/>
<map
value=".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.site">
<path value="ActivityDefinition.dosage.site"/>
<short value="Body site to administer to"/>
<definition value="Body site to administer to."/>
<comment
value="If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [http://hl7.org/fhir/StructureDefinition/bodySite](http://hl7.org/fhir/extensions/StructureDefinition-bodySite.html). May be a summary code, or a reference to a very precise definition of the location, or both."/>
<requirements
value="A coded specification of the anatomic site where the medication first enters the body."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.site"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationSite"/>
</extension>
<strength value="example"/>
<description
value="A coded concept describing the site location the medicine enters into or onto the body."/>
<valueSet value="http://hl7.org/fhir/ValueSet/approach-site-codes"/>
</binding>
<mapping>
<identity value="v2"/>
<map value="RXR-2"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".approachSiteCode"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.route">
<path value="ActivityDefinition.dosage.route"/>
<short value="How drug should enter body"/>
<definition value="How drug should enter body."/>
<requirements
value="A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.route"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="RouteOfAdministration"/>
</extension>
<strength value="example"/>
<description
value="A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject."/>
<valueSet value="http://hl7.org/fhir/ValueSet/route-codes"/>
</binding>
<mapping>
<identity value="v2"/>
<map value="RXR-1"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".routeCode"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.method">
<path value="ActivityDefinition.dosage.method"/>
<short value="Technique for administering medication"/>
<definition value="Technique for administering medication."/>
<comment
value="Terminologies used often pre-coordinate this term with the route and or form of administration."/>
<requirements
value="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.method"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationMethod"/>
</extension>
<strength value="example"/>
<description
value="A coded concept describing the technique by which the medicine is administered."/>
<valueSet
value="http://hl7.org/fhir/ValueSet/administration-method-codes"/>
</binding>
<mapping>
<identity value="v2"/>
<map value="RXR-4"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value="SubstanceAdministration.methodCode"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.doseAndRate">
<path value="ActivityDefinition.dosage.doseAndRate"/>
<short
value="Amount of medication administered, to be administered or typical amount to be administered"/>
<definition
value="Depending on the resource,this is the amount of medication administered, to be administered or typical amount to be administered."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Dosage.doseAndRate"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Element"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="TQ1-2"/>
</mapping>
<mapping>
<identity value="rim"/>
<map
value="SubstanceAdministration.doseQuantity; SubstanceAdministration.RateQuantity"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.doseAndRate.id">
<path value="ActivityDefinition.dosage.doseAndRate.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<condition value="ele-1"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.doseAndRate.extension">
<path value="ActivityDefinition.dosage.doseAndRate.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.doseAndRate.type">
<path value="ActivityDefinition.dosage.doseAndRate.type"/>
<short value="The kind of dose or rate specified"/>
<definition
value="The kind of dose or rate specified, for example, ordered or calculated."/>
<requirements
value="If the type is not populated, assume to be "ordered"."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.doseAndRate.type"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="DoseAndRateType"/>
</extension>
<strength value="example"/>
<description value="The kind of dose or rate specified."/>
<valueSet value="http://terminology.hl7.org/ValueSet/dose-rate-type"/>
</binding>
<mapping>
<identity value="v2"/>
<map value="RXO-21; RXE-23"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.doseAndRate.dose[x]">
<path value="ActivityDefinition.dosage.doseAndRate.dose[x]"/>
<short value="Amount of medication per dose"/>
<definition value="Amount of medication per dose."/>
<comment
value="Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours."/>
<requirements
value="The amount of therapeutic or other substance given at one administration event."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.doseAndRate.dose[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Range"/>
</type>
<type>
<code value="Quantity"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="RXO-2, RXE-3"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".doseQuantity"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.doseAndRate.rate[x]">
<path value="ActivityDefinition.dosage.doseAndRate.rate[x]"/>
<short value="Amount of medication per unit of time"/>
<definition value="Amount of medication per unit of time."/>
<comment
value="It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate.
It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammar where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."/>
<requirements
value="Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.doseAndRate.rate[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Ratio"/>
</type>
<type>
<code value="Range"/>
</type>
<type>
<code value="Quantity"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="RXE22, RXE23, RXE-24"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".rateQuantity"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.maxDosePerPeriod">
<path value="ActivityDefinition.dosage.maxDosePerPeriod"/>
<short value="Upper limit on medication per unit of time"/>
<definition value="Upper limit on medication per unit of time."/>
<comment
value="This is intended for use as an adjunct to the dosage when there is an upper cap. For example "2 tablets every 4 hours to a maximum of 8/day"."/>
<requirements
value="The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Dosage.maxDosePerPeriod"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Ratio"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="v2"/>
<map value="RXO-23, RXE-19"/>
</mapping>
<mapping>
<identity value="rim"/>
<map value=".maxDoseQuantity"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.maxDosePerAdministration">
<path value="ActivityDefinition.dosage.maxDosePerAdministration"/>
<short value="Upper limit on medication per administration"/>
<definition value="Upper limit on medication per administration."/>
<comment
value="This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg."/>
<requirements
value="The maximum total quantity of a therapeutic substance that may be administered to a subject per administration."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.maxDosePerAdministration"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Quantity"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="not supported"/>
</mapping>
</element>
<element id="ActivityDefinition.dosage.maxDosePerLifetime">
<path value="ActivityDefinition.dosage.maxDosePerLifetime"/>
<short value="Upper limit on medication per lifetime of the patient"/>
<definition
value="Upper limit on medication per lifetime of the patient."/>
<requirements
value="The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Dosage.maxDosePerLifetime"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Quantity"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="not supported"/>
</mapping>
</element>
<element id="ActivityDefinition.bodySite">
<path value="ActivityDefinition.bodySite"/>
<short value="What part of body to perform on"/>
<definition
value="Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites)."/>
<comment
value="Only used if not implicit in the code found in ServiceRequest.type."/>
<requirements
value="Knowing where the procedure is made is important for tracking if multiple sites are possible."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.bodySite"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="CodeableConcept"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<binding>
<extension
url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="BodySite"/>
</extension>
<strength value="example"/>
<description value="A code that identifies the anatomical location."/>
<valueSet value="http://hl7.org/fhir/ValueSet/body-site"/>
</binding>
<mapping>
<identity value="rim"/>
<map value=".targetSiteCode {for classCode=PROC, SBADM}"/>
</mapping>
</element>
<element id="ActivityDefinition.specimenRequirement">
<path value="ActivityDefinition.specimenRequirement"/>
<short value="What specimens are required to perform this action"/>
<definition
value="Defines specimen requirements for the action to be performed, such as required specimens for a lab test."/>
<requirements value="Needed to represent lab order definitions."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.specimenRequirement"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Reference"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/SpecimenDefinition"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.observationRequirement">
<path value="ActivityDefinition.observationRequirement"/>
<short value="What observations are required to perform this action"/>
<definition
value="Defines observation requirements for the action to be performed, such as body weight or surface area."/>
<requirements value="Needed to represent observation definitions."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.observationRequirement"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Reference"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.observationResultRequirement">
<path value="ActivityDefinition.observationResultRequirement"/>
<short value="What observations must be produced by this action"/>
<definition
value="Defines the observations that are expected to be produced by the action."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.observationResultRequirement"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Reference"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/ObservationDefinition"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="ActivityDefinition.transform">
<path value="ActivityDefinition.transform"/>
<short value="Transform to apply the template"/>
<definition
value="A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input."/>
<comment
value="Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.transform"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="canonical"/>
<targetProfile
value="http://hl7.org/fhir/StructureDefinition/StructureMap"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.dynamicValue">
<path value="ActivityDefinition.dynamicValue"/>
<short value="Dynamic aspects of the definition"/>
<definition
value="Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result."/>
<comment
value="Dynamic values are applied in the order in which they are defined in the ActivityDefinition. Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform."/>
<min value="0"/>
<max value="*"/>
<base>
<path value="ActivityDefinition.dynamicValue"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="BackboneElement"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.dynamicValue.id">
<path value="ActivityDefinition.dynamicValue.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition
value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="string"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dynamicValue.extension">
<path value="ActivityDefinition.dynamicValue.extension"/>
<short value="Additional content defined by implementations"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<alias value="extensions"/>
<alias value="user content"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="ActivityDefinition.dynamicValue.modifierExtension">
<path value="ActivityDefinition.dynamicValue.modifierExtension"/>
<short value="Extensions that cannot be ignored even if unrecognized"/>
<definition
value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
<comment
value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
<requirements
value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/extensibility.html#modifierExtension)."/>
<alias value="extensions"/>
<alias value="user content"/>
<alias value="modifiers"/>
<min value="0"/>
<max value="*"/>
<base>
<path value="BackboneElement.modifierExtension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString
value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])"/>
</extension>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="true"/>
<isModifierReason
value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
<isSummary value="true"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.dynamicValue.path">
<path value="ActivityDefinition.dynamicValue.path"/>
<short value="The path to the element to be set dynamically"/>
<definition
value="The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](http://hl7.org/fhir/fhirpath.html#simple) for full details)."/>
<comment
value="The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/fhirpath.html#simple) that allows path traversal, but not calculation."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.dynamicValue.path"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="string"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="ActivityDefinition.dynamicValue.expression">
<path value="ActivityDefinition.dynamicValue.expression"/>
<short
value="An expression that provides the dynamic value for the customization"/>
<definition
value="An expression specifying the value of the customized element."/>
<comment
value="The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="ActivityDefinition.dynamicValue.expression"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<code value="Expression"/>
</type>
<constraint>
<extension
url="http://hl7.org/fhir/4.0/StructureDefinition/extension-ElementDefinition.constraint.xpath">
<valueString value="@value|f:*|h:div"/>
</extension>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression
value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<mustSupport value="true"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
</snapshot>
<differential>
<element id="ActivityDefinition.kind">
<path value="ActivityDefinition.kind"/>
<patternCode value="ServiceRequest"/>
</element>
<element id="ActivityDefinition.code">
<path value="ActivityDefinition.code"/>
<binding>
<strength value="required"/>
<valueSet
value="https://www.netzwerk-universitaetsmedizin.de/fhir/cpg-on-ebm-on-fhir/ValueSet/vs-procedures"/>
</binding>
</element>
<element id="ActivityDefinition.timing[x]">
<path value="ActivityDefinition.timing[x]"/>
<min value="1"/>
</element>
<element id="ActivityDefinition.product[x]">
<path value="ActivityDefinition.product[x]"/>
<max value="0"/>
</element>
<element id="ActivityDefinition.quantity">
<path value="ActivityDefinition.quantity"/>
<max value="0"/>
</element>
<element id="ActivityDefinition.dosage">
<path value="ActivityDefinition.dosage"/>
<max value="0"/>
</element>
</differential>
</StructureDefinition>