PCC-7/careProvisionEvent
<careProvisionEvent>
<careProvisionEvent classCode='PCPR' moodCode='EVN'>
<replacementOf typeCode='RPLC' contextControlCode='OP' contextConductionInd='false'>
<careProvisionEvent classCode='PCPR' moodCode='EVN'>
<id root=' ' extension=' '/>
</careProvisionEvent>
</replacementOf>
<component typeCode='COMP'>
<carePlan classCode='PCPR' moodCode='INT'>
<definition typeCode='INST' contextControlCode='OP' contextConductionInd='false'>
<guideline classCode='PCPR' moodCode='DEF'>
<id root=' ' extension=' '/>
<title></title>
<text></text>
<statusCode code='active|obsolete'/>
<effectiveTime>
<low value=' '/>
<high value=' '/>
</effectiveTime>
<!-- zero or more components containing acts of care to be monitored -->
<component2 typeCode='COMP'>
</component2>
<!-- zero or more components containing "sub-guidelines" that make up this guideline -->
<component3 typeCode='COMP'>
<!-- The content model for "sub-guidelines" is as for a guideline, with the exception
that it need not contain an id, title, text, statusCode, or effectiveTime element. -->
</component3>
</guideline>
</definition>
</carePlan>
</component>
</careProvisionEvent>
The <careProvisionEvent> elements sent by a Guideline Notification transaction, or returned in a Request Guideline Data transaction represent activations or replacements of guidelines. When a Guideline Notification transaction sends a replacement notification, the <careProvisionEvent> that references the guideline being replaced shall be identified in the <replacementOf> element. The <replacementOf> element shall contain a single <careProvisionEvent> element that shall contain the an <id> element giving the unique identifier of the <careProvisionElement> that was replaced, and which should not contain any other elements.
Guidelines are accessed through the <careProvisionEvent> element in the body of the message. This element references a <carePlan> element beneath the <component> relationship. A <careProvisionEvent> shall have only one <component> element, containing only one <carePlan>. The <carePlan> element shall be empty of all participants and relations with the exception of the <definition> of the <carePlan>. The <definition> element contains one and only one <guideline>. That <guideline> is composed of one or more parts in <compent2> and <component3> relationships.
As such these elements shall not contain any of the following participants:
- The <careProvisionEvent> element SHALL NOT contain a <recordTarget>, as guidelines are not specific to a single patient record.
- The <careProvisionEvent> element SHALL NOT contain a <subject> element, as guidelines are not specific to a device being maintained.
The <careProvisionEvent> may contain other participants not otherwise prohibited above.
Furthermore, these elements shall not contain any of the following relationships which would be only relevant to a single patient:
- The <careProvisionEvent> element SHALL NOT contain a <pertinentInformation2> element.
- The <careProvisionEvent> element SHALL NOT contain a <pertinentInformation3> element.
Furthermore, the <careProvisionEvent> element SHOULD NOT contain a <pertinentInformation1> element, as this information is not directly relevant to the guideline being retrieved.
The <careProvisionEvent> may contain other relationships not otherwise prohibited above, but the use of these elements is not described in this profile.
<rule context='hl7:careProvisionEvent[not(../hl7:replacementOf)]'>
<assert test='count(hl7:component) = 1'>
A careProvisionEvent shall have only one component containing the guideline.
</assert>
<assert test='not(hl7:recordTarget)'>
The careProvisionEvent shall not contain a recordTarget element.
</assert>
<assert test='not(hl7:subject)'>
The careProvisionEvent shall not contain a subject element.
</assert>
<assert test='not(hl7:pertinentInformation1)'>
Warning: The careProvisionEvent should not contain a pertinentInformation1 element.
</assert>
<assert test='not(hl7:pertinentInformation2)'>
The careProvisionEvent shall not contain a pertinentInformation2 element.
</assert>
<assert test='not(hl7:pertinentInformation3)'>
The careProvisionEvent shall not contain a pertinentInformation3 element.
</assert>
</rule>
<rule context='hl7:replacementOf/hl7:careProvisionEvent'>
<assert test='hl7:id'>
The careProvisionEvent that is being replaced shall contain an id element.
</assert>
<assert test='not(hl7:*[local-name() != "id"])'>
Warning: The careProvisionEvent that is being replaced should not contain anything other than an id element.
</assert>
</rule>
<rule context='hl7:careProvisionEvent/hl7:component'>
<assert test='count(hl7:carePlan) = 1'>
The component of the careProvisionEven shall have one and only one carePlan element.
</assert>
</rule>
<rule context='hl7:carePlan'>
<assert test='not(*[local-name() != "definition"])'>
The carePlan element shall be empty of all participants and relations with the exception of the definition element.
</assert>
<assert test='count(hl7:definition) = 1'>
The carePlan element shall have one and only one definition element.
</assert>
</rule>
<rule context='hl7:definition'>
<assert test='count(hl7:guideline) = 1'>
The definition element shall have one and only one guideline element.
</assert>
</rule>