Clinical Practice Guidelines, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-recommendations/ and changes regularly. See the Directory of published versions
<Bundle xmlns="http://hl7.org/fhir">
<id value="activity-example-administermedication-bundle"/>
<type value="collection"/>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection"/>
<resource>
<Library>
<id value="administermedication-asset-collection"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><a name="Library_administermedication-asset-collection"> </a><p class="res-header-id"><b>Generated Narrative: Library administermedication-asset-collection</b></p><a name="administermedication-asset-collection"> </a><a name="hcadministermedication-asset-collection"> </a><a name="administermedication-asset-collection-en-US"> </a><h2>Related Artifacts</h2><table class="grid"><tr><td>Depends On</td><td><code>http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</code></td></tr><tr><td>Depends On</td><td><code>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</code></td></tr><tr><td>Depends On</td><td><a href="CodeSystem-cpg-activity-type-cs.html">CPG Activity Type Code System</a></td></tr><tr><td>Composed Of</td><td><a href="ActivityDefinition-activity-example-administermedication-ad.html">Activity Example Administer Medication AD</a></td></tr><tr><td>Composed Of</td><td><a href="Library-administermedication-library.html">Administer Medication Library</a></td></tr><tr><td>Composed Of</td><td><a href="PlanDefinition-activity-example-administermedication-pd.html">Activity Example Administer Medication PD</a></td></tr></table></div>
</text>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="shareable"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="computable"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="publishable"/>
</extension>
<url
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection"/>
<name value="ActivityExampleAdministerMedicationLibrary"/>
<title
value="Activity Example - Administer Medication Library Collection"/>
<status value="active"/>
<experimental value="true"/>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="asset-collection"/>
</coding>
</type>
<description
value="Asset collection of artifacts in the Administer Medication activity example"/>
<relatedArtifact>
<type value="depends-on"/>
<resource
value="http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<resource
value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<resource
value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
</relatedArtifact>
<relatedArtifact>
<type value="composed-of"/>
<resource
value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"/>
</relatedArtifact>
<relatedArtifact>
<type value="composed-of"/>
<resource
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-library"/>
</relatedArtifact>
<relatedArtifact>
<type value="composed-of"/>
<resource
value="http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"/>
</relatedArtifact>
</Library>
</resource>
</entry>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-library"/>
<resource>
<Library>
<id value="administermedication-library"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><a name="Library_administermedication-library"> </a><p class="res-header-id"><b>Generated Narrative: Library administermedication-library</b></p><a name="administermedication-library"> </a><a name="hcadministermedication-library"> </a><a name="administermedication-library-en-US"> </a><h2>Related Artifacts</h2><table class="grid"><tr><td>Depends On</td><td><code>http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</code></td></tr><tr><td>Depends On</td><td><code>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</code></td></tr><tr><td>Depends On</td><td><a href="CodeSystem-cpg-activity-type-cs.html">CPG Activity Type Code System</a></td></tr></table><h2>Parameters</h2><table class="grid"><tr><td>Patient</td><td>out</td><td>0</td><td>1</td><td>Patient</td></tr><tr><td>Medication Proposal</td><td>out</td><td>0</td><td>*</td><td>MedicationRequest</td></tr><tr><td>Medication Not Proposed</td><td>out</td><td>0</td><td>*</td><td>MedicationRequest</td></tr><tr><td>Inclusion Criteria</td><td>out</td><td>0</td><td>1</td><td>boolean</td></tr><tr><td>Active or Completed Medication Administration</td><td>out</td><td>0</td><td>*</td><td>MedicationAdministration</td></tr><tr><td>Medication Administration Not Done</td><td>out</td><td>0</td><td>*</td><td>MedicationAdministration</td></tr><tr><td>Administer Proposal</td><td>out</td><td>0</td><td>*</td><td>Task</td></tr><tr><td>Administer Proposal Rejected</td><td>out</td><td>0</td><td>*</td><td>Task</td></tr><tr><td>Is Recommendation Applicable</td><td>out</td><td>0</td><td>1</td><td>boolean</td></tr></table><h2>Data Requirements</h2><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a> (<a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a> (<a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a> (<a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a> (<a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/task.html">Task</a> (<a href="http://hl7.org/fhir/R4/task.html">Task</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/task.html">Task</a> (<a href="http://hl7.org/fhir/R4/task.html">Task</a>)</td></tr></table><h2>Contents</h2><p><code>text/cql</code></p><pre><code class="language-sql">library AdministerMedication
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
codesystem "Activity Type": 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs'
code "Administer medication": 'administer-medication' from "Activity Type"
context Patient
/* Recommendation to administer an existing order for a medication */
/*
Positive recommendation:
If the medication has been ordered but has not been administered
Propose administering the medication
Given a proposal, the user can:
Accept the proposal
Ignore the proposal
Reject the proposal without reason
Reject the proposal with reason
Scenario 1: No event, no request, decision support should propose
Scenario 2: No event, active proposal, decision support should not propose
Scenario 3: No event, rejected proposal, decision support should not propose
Scenario 4: Event, no request, decision support should not propose
Scenario 5: Event, active proposal, decision support should not propose
Scenario 6: Event not done, no request, decision support should not propose
Scenario 7: Event not done, active proposal, decision support should not propose
*/
define "Inclusion Criteria":
Patient.active
and exists ("Medication Order")
define "Active or Completed Medication Administration":
[MedicationAdministration] M
where M.status in { 'in-progress', 'on-hold', 'completed' }
define "Medication Administration Not Done":
[MedicationAdministration] M
where M.status in { 'not-done', 'stopped' } // TODO: Is 'stopped' appropriate here?
define "Medication Order":
[MedicationRequest] M
where M.status in { 'active' }
and M.intent = 'order'
and M.doNotPerform is not true
define "Administer Proposal":
[Task] R
where R.code ~ "Administer medication"
and R.status in { 'draft', 'requested', 'received', 'accepted', 'ready' }
and doNotPerform(R) is not true
define "Administer Proposal Rejected":
[Task] R
where R.code ~ "Administer medication"
and R.status in { 'rejected' }
and doNotPerform(R) is not true
define "Is Recommendation Applicable":
"Inclusion Criteria"
and not exists (
"Active or Completed Medication Administration"
union "Medication Administration Not Done"
)
and not exists (
"Administer Proposal"
union "Administer Proposal Rejected"
)
define function doNotPerform(task Task):
singleton from (
task.modifierExtension E
where E.url = 'http://hl7.org/fhir/StructureDefinition/request-doNotPerform'
).value as boolean
</code></pre></div>
</text>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="shareable"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="computable"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="publishable"/>
</extension>
<url
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-library"/>
<name value="AdministerMedicationLibrary"/>
<title value="Administer Medication Library"/>
<status value="active"/>
<experimental value="true"/>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="logic-library"/>
</coding>
</type>
<description
value="Logic for an example recommendation to administer a medication"/>
<relatedArtifact>
<type value="depends-on"/>
<resource
value="http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<resource
value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<resource
value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
</relatedArtifact>
<parameter>
<name value="Patient"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="Patient"/>
</parameter>
<parameter>
<name value="Medication Proposal"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationRequest"/>
</parameter>
<parameter>
<name value="Medication Not Proposed"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationRequest"/>
</parameter>
<parameter>
<name value="Inclusion Criteria"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="boolean"/>
</parameter>
<parameter>
<name value="Active or Completed Medication Administration"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationAdministration"/>
</parameter>
<parameter>
<name value="Medication Administration Not Done"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationAdministration"/>
</parameter>
<parameter>
<name value="Administer Proposal"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Task"/>
</parameter>
<parameter>
<name value="Administer Proposal Rejected"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Task"/>
</parameter>
<parameter>
<name value="Is Recommendation Applicable"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="boolean"/>
</parameter>
<dataRequirement>
<type value="MedicationRequest"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
</dataRequirement>
<dataRequirement>
<type value="MedicationRequest"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
</dataRequirement>
<dataRequirement>
<type value="MedicationAdministration"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
</dataRequirement>
<dataRequirement>
<type value="MedicationAdministration"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
</dataRequirement>
<dataRequirement>
<type value="Task"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Task"/>
</dataRequirement>
<dataRequirement>
<type value="Task"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Task"/>
</dataRequirement>
<content>
<contentType value="text/cql"/>
<data
value="bGlicmFyeSBBZG1pbmlzdGVyTWVkaWNhdGlvbgoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMScKCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnCgpjb2Rlc3lzdGVtICJBY3Rpdml0eSBUeXBlIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY3BnLWFjdGl2aXR5LXR5cGUtY3MnCgpjb2RlICJBZG1pbmlzdGVyIG1lZGljYXRpb24iOiAnYWRtaW5pc3Rlci1tZWRpY2F0aW9uJyBmcm9tICJBY3Rpdml0eSBUeXBlIgoKY29udGV4dCBQYXRpZW50CgovKiBSZWNvbW1lbmRhdGlvbi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RydWUKCmRlZmluZSAiQWRtaW5pc3RlciBQcm9wb3NhbCBSZWplY3RlZCI6CiAgW1Rhc2tdIFIKICAgIHdoZXJlIFIuY29kZSB+ICJBZG1pbmlzdGVyIG1lZGljYXRpb24iCiAgICAgIGFuZCBSLnN0YXR1cyBpbiB7ICdyZWplY3RlZCcgfQogICAgICBhbmQgZG9Ob3RQZXJmb3JtKFIpIGlzIG5vdCB0cnVlCgpkZWZpbmUgIklzIFJlY29tbWVuZGF0aW9uIEFwcGxpY2FibGUiOgogICJJbmNsdXNpb24gQ3JpdGVyaWEiCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBY3RpdmUgb3IgQ29tcGxldGVkIE1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24iCiAgICAgICAgdW5pb24gIk1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24gTm90IERvbmUiCiAgICApCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBZG1pbmlzdGVyIFByb3Bvc2FsIgogICAgICAgIHVuaW9uICJBZG1pbmlzdGVyIFByb3Bvc2FsIFJlamVjdGVkIgogICAgKQoKZGVmaW5lIGZ1bmN0aW9uIGRvTm90UGVyZm9ybSh0YXNrIFRhc2spOgogIHNpbmdsZXRvbiBmcm9tICgKICAgIHRhc2subW9kaWZpZXJFeHRlbnNpb24gRQogICAgICB3aGVyZSBFLnVybCA9ICdodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vcmVxdWVzdC1kb05vdFBlcmZvcm0nCiAgKS52YWx1ZSBhcyBib29sZWFuCg=="/>
</content>
</Library>
</resource>
</entry>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"/>
<resource>
<PlanDefinition>
<id value="activity-example-administermedication-pd"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"/>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition"/>
</meta>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml"><a name="PlanDefinition_activity-example-administermedication-pd"> </a><p class="res-header-id"><b>Generated Narrative: PlanDefinition activity-example-administermedication-pd</b></p><a name="activity-example-administermedication-pd"> </a><a name="hcactivity-example-administermedication-pd"> </a><a name="activity-example-administermedication-pd-en-US"> </a><p><b>CQF Knowledge capability</b>: shareable</p><p><b>CQF Knowledge capability</b>: computable</p><p><b>CQF Knowledge capability</b>: publishable</p><p><b>url</b>: <a href="PlanDefinition-activity-example-administermedication-pd.html">PlanDefinition Activity Example Administer Medication PD</a></p><p><b>name</b>: ActivityExampleAdministerMedicationPD</p><p><b>title</b>: Activity Example Administer Medication PD</p><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/plan-definition-type eca-rule}">ECA Rule</span></p><p><b>status</b>: Active</p><p><b>experimental</b>: true</p><p><b>description</b>: </p><div><p>Example Plan Definition for a recommendation to administer a medication</p>
</div><p><b>library</b>: <a href="Library-administermedication-library.html">Administer Medication Library</a></p><blockquote><p><b>action</b></p><p><b>title</b>: Collect date of patient last visit</p><blockquote><p><b>condition</b></p><p><b>kind</b>: Applicability</p><h3>Expressions</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style="display: none">*</td><td>CQL</td><td>Is Recommendation Applicable</td></tr></table></blockquote><p><b>type</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/action-type create}">Create</span></p><p><b>definition</b>: <a href="ActivityDefinition-activity-example-administermedication-ad.html">Activity Example Administer Medication AD</a></p></blockquote></div>
</text>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="shareable"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="computable"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability">
<valueCode value="publishable"/>
</extension>
<url
value="http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"/>
<name value="ActivityExampleAdministerMedicationPD"/>
<title value="Activity Example Administer Medication PD"/>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/plan-definition-type"/>
<code value="eca-rule"/>
</coding>
</type>
<status value="active"/>
<experimental value="true"/>
<description
value="Example Plan Definition for a recommendation to administer a medication"/>
<library
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-library"/>
<action>
<title value="Collect date of patient last visit"/>
<condition>
<kind value="applicability"/>
<expression>
<language value="text/cql"/>
<expression value="Is Recommendation Applicable"/>
</expression>
</condition>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/action-type"/>
<code value="create"/>
</coding>
</type>
<definitionCanonical
value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"/>
</action>
</PlanDefinition>
</resource>
</entry>
<entry>
<fullUrl value="http://hl7.org/fhir/uv/cpg/Bundle/am-scenario7-bundle"/>
<resource>
<Bundle>
<id value="am-scenario7-bundle"/>
<type value="collection"/>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/GuidanceResponse/am-scenario7-gr"/>
<resource>
<GuidanceResponse>
<id value="am-scenario7-gr"/>
<contained>
<Parameters>
<id value="output"/>
<parameter>
<name value="Inclusion Criteria"/>
<valueBoolean value="true"/>
</parameter>
<parameter>
<name value="Is Recommendation Applicable"/>
<valueBoolean value="false"/>
</parameter>
</Parameters>
</contained>
<moduleCanonical
value="http://hl7.org/fhir/uv/cpg/Library/administermedication-library"/>
<status value="success"/>
<subject>🔗
<reference value="Patient/am-scenario7-patient"/>
</subject>
<outputParameters>
<reference value="#output"/>
</outputParameters>
</GuidanceResponse>
</resource>
</entry>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/MedicationAdministration/am-scenario7"/>
<resource>
<MedicationAdministration>
<id value="am-scenario7"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationadministration"/>
</meta>
<status value="not-done"/>
<medicationCodeableConcept>
<coding>
<system value="http://snomed.info/sct"/>
<code value="769510009"/>
<display
value="Product containing precisely fentanyl 25 microgram/1 hour prolonged-release transdermal patch (clinical drug)"/>
</coding>
</medicationCodeableConcept>
<subject>🔗
<reference value="Patient/am-scenario7-patient"/>
</subject>
<effectivePeriod>
<start value="2015-01-15T22:03:00+01:00"/>
<end value="2015-01-16T02:03:00+01:00"/>
</effectivePeriod>
<request>🔗
<reference value="MedicationRequest/am-scenario7-mr"/>
</request>
<dosage>
<text value="apply one patch three times per week"/>
<dose>
<value value="1"/>
<unit value="patch"/>
<system
value="http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"/>
<code value="PATCH"/>
</dose>
</dosage>
</MedicationAdministration>
</resource>
</entry>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr"/>
<resource>
<MedicationRequest>
<id value="am-scenario7-mr"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"/>
</meta>
<status value="active"/>
<intent value="order"/>
<priority value="routine"/>
<medicationCodeableConcept>
<coding>
<system value="http://snomed.info/sct"/>
<code value="769510009"/>
<display
value="Product containing precisely fentanyl 25 microgram/1 hour prolonged-release transdermal patch (clinical drug)"/>
</coding>
</medicationCodeableConcept>
<subject>🔗
<reference value="Patient/am-scenario7-patient"/>
</subject>
<dosageInstruction>
<sequence value="1"/>
<text value="apply one patch three times per week"/>
<timing>
<repeat>
<frequency value="3"/>
<period value="1"/>
<periodUnit value="wk"/>
</repeat>
</timing>
<doseAndRate>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
<code value="ordered"/>
<display value="Ordered"/>
</coding>
</type>
<doseQuantity>
<value value="1"/>
<unit value="patch"/>
<system
value="http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"/>
<code value="PATCH"/>
</doseQuantity>
</doseAndRate>
</dosageInstruction>
<dispenseRequest>
<validityPeriod>
<start value="2015-01-15"/>
<end value="2016-01-15"/>
</validityPeriod>
<quantity>
<value value="6"/>
<unit value="patch"/>
<system
value="http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"/>
<code value="PATCH"/>
</quantity>
<expectedSupplyDuration>
<value value="14"/>
<unit value="days"/>
<system value="http://unitsofmeasure.org"/>
<code value="d"/>
</expectedSupplyDuration>
</dispenseRequest>
</MedicationRequest>
</resource>
</entry>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient"/>
<resource>
<Patient>
<id value="am-scenario7-patient"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-patient"/>
</meta>
<active value="true"/>
<name>
<use value="usual"/>
<text value="Example Patient"/>
<family value="Patient"/>
<given value="Example"/>
</name>
<gender value="female"/>
<birthDate value="1990-10-01"/>
<deceasedBoolean value="false"/>
</Patient>
</resource>
</entry>
<entry>
<fullUrl
value="http://hl7.org/fhir/uv/cpg/Task/request-am-scenario7"/>
<resource>
<Task>
<id value="request-am-scenario7"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-administermedicationtask"/>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-task"/>
</meta>
<instantiatesCanonical
value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"/>
<status value="in-progress"/>
<intent value="order"/>
<code>
<coding>
<system
value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
<code value="administer-medication"/>
<display value="Administer a medication"/>
</coding>
</code>
<for>🔗
<reference value="Patient/am-scenario7-patient"/>
</for>
<input>
<type>
<coding>
<system
value="http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"/>
<code value="administer-medication"/>
<display value="Administer a medication"/>
</coding>
</type>
<valueReference>🔗
<reference value="MedicationRequest/am-scenario7-mr"/>
</valueReference>
</input>
</Task>
</resource>
</entry>
</Bundle>
</resource>
</entry>
</Bundle>