Clinical Practice Guidelines
2.0.0-ballot - ballot International flag

This page is part of the Clinical Guidelines (v2.0.0-ballot: STU2 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

: activity-example-administermedication-bundle - XML Representation

Raw xml | Download



<Bundle xmlns="http://hl7.org/fhir">
  <id value="activity-example-administermedication-bundle"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-artifactbundle"/>
  </meta>
  <type value="collection"/>
  <entry>
    <fullUrl
             value="http://example.org/Library/activity-example-administermedication-1"/>
    <resource>
      <Library>
        <id value="activity-example-administermedication-1"/>
        <meta>
          <profile
                   value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-assetcollection"/>
        </meta>
        <text>
          <status value="extensions"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Library</b><a name="activity-example-administermedication-1"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Library &quot;activity-example-administermedication-1&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-cpg-assetcollection.html">CPG Asset Collection</a></p></div><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>CQF knowledge representation level</b>: structured</p><p><b>url</b>: <code>http://hl7.org/fhir/uv/cpg/Library/activity-example-administermedication-1</code></p><p><b>version</b>: 2.0.0</p><p><b>name</b>: ActivityExampleAdministerMedication</p><p><b>title</b>: Activity Example - Administer Medication Collection</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>type</b>: Asset Collection <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-library-type.html">LibraryType</a>#asset-collection)</span></p><p><b>publisher</b>: HL7 International / Clinical Decision Support</p><p><b>description</b>: Asset collection of artifacts in the Administer Medication activity example</p><h3>RelatedArtifacts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Resource</b></td></tr><tr><td style="display: none">*</td><td>depends-on</td><td><a href="http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo">http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</a></td></tr><tr><td style="display: none">*</td><td>depends-on</td><td><a href="http://fhir.org/guides/cqf/common/Library/FHIRHelpers">http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</a></td></tr><tr><td style="display: none">*</td><td>depends-on</td><td><a href="CodeSystem-cpg-activity-type-cs.html">CPG Activity Type Code System</a></td></tr><tr><td style="display: none">*</td><td>composed-of</td><td><a href="ActivityDefinition-activity-example-administermedication-ad.html">Activity Example Administer Medication AD</a></td></tr><tr><td style="display: none">*</td><td>composed-of</td><td><a href="Library-administermedication-library.html">Administer Medication Library</a></td></tr><tr><td style="display: none">*</td><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>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel">
          <valueCode value="structured"/>
        </extension>
        <url
             value="http://hl7.org/fhir/uv/cpg/Library/activity-example-administermedication-1"/>
        <version value="2.0.0"/>
        <name value="ActivityExampleAdministerMedication"/>
        <title value="Activity Example - Administer Medication Collection"/>
        <status value="draft"/>
        <experimental value="true"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/library-type"/>
            <code value="asset-collection"/>
          </coding>
        </type>
        <publisher value="HL7 International / Clinical Decision Support"/>
        <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://example.org/Library/AdministerMedication"/>
    <resource>
      <Library>
        <id value="AdministerMedication"/>
        <text>
          <status value="extensions"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Library</b><a name="AdministerMedication"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Library &quot;AdministerMedication&quot; </p></div><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>CQF knowledge representation level</b>: structured</p><p><b>url</b>: <code>http://hl7.org/fhir/uv/cpg/Library/AdministerMedication</code></p><p><b>version</b>: 2.0.0</p><p><b>name</b>: AdministerMedication</p><p><b>title</b>: Administer Medication</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>type</b>: Logic Library <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-library-type.html">LibraryType</a>#logic-library)</span></p><p><b>publisher</b>: HL7 International / Clinical Decision Support</p><p><b>description</b>: Logic for an example recommendation to administer a medication</p><h3>RelatedArtifacts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Resource</b></td></tr><tr><td style="display: none">*</td><td>depends-on</td><td><a href="http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo">http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</a></td></tr><tr><td style="display: none">*</td><td>depends-on</td><td><a href="http://fhir.org/guides/cqf/common/Library/FHIRHelpers">http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</a></td></tr><tr><td style="display: none">*</td><td>depends-on</td><td><a href="CodeSystem-cpg-activity-type-cs.html">CPG Activity Type Code System</a></td></tr></table><h3>Parameters</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Name</b></td><td><b>Use</b></td><td><b>Min</b></td><td><b>Max</b></td><td><b>Type</b></td></tr><tr><td style="display: none">*</td><td>Patient</td><td>out</td><td>0</td><td>1</td><td>Patient</td></tr><tr><td style="display: none">*</td><td>Medication Proposal</td><td>out</td><td>0</td><td>*</td><td>MedicationRequest</td></tr><tr><td style="display: none">*</td><td>Medication Not Proposed</td><td>out</td><td>0</td><td>*</td><td>MedicationRequest</td></tr><tr><td style="display: none">*</td><td>Inclusion Criteria</td><td>out</td><td>0</td><td>1</td><td>boolean</td></tr><tr><td style="display: none">*</td><td>Active or Completed Medication Administration</td><td>out</td><td>0</td><td>*</td><td>MedicationAdministration</td></tr><tr><td style="display: none">*</td><td>Medication Administration Not Done</td><td>out</td><td>0</td><td>*</td><td>MedicationAdministration</td></tr><tr><td style="display: none">*</td><td>Administer Proposal</td><td>out</td><td>0</td><td>*</td><td>Task</td></tr><tr><td style="display: none">*</td><td>Administer Proposal Rejected</td><td>out</td><td>0</td><td>*</td><td>Task</td></tr><tr><td style="display: none">*</td><td>Is Recommendation Applicable</td><td>out</td><td>0</td><td>1</td><td>boolean</td></tr></table><h3>DataRequirements</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Profile</b></td></tr><tr><td style="display: none">*</td><td>MedicationRequest</td><td><a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a></td></tr><tr><td style="display: none">*</td><td>MedicationRequest</td><td><a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a></td></tr><tr><td style="display: none">*</td><td>MedicationAdministration</td><td><a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a></td></tr><tr><td style="display: none">*</td><td>MedicationAdministration</td><td><a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a></td></tr><tr><td style="display: none">*</td><td>Task</td><td><a href="http://hl7.org/fhir/R4/task.html">Task</a></td></tr><tr><td style="display: none">*</td><td>Task</td><td><a href="http://hl7.org/fhir/R4/task.html">Task</a></td></tr></table><h3>Contents</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ContentType</b></td><td><b>Data</b></td></tr><tr><td style="display: none">*</td><td>text/cql</td><td>(base64 data - 2710 bytes)</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>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel">
          <valueCode value="structured"/>
        </extension>
        <url value="http://hl7.org/fhir/uv/cpg/Library/AdministerMedication"/>
        <version value="2.0.0"/>
        <name value="AdministerMedication"/>
        <title value="Administer Medication"/>
        <status value="draft"/>
        <experimental value="true"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/library-type"/>
            <code value="logic-library"/>
          </coding>
        </type>
        <publisher value="HL7 International / Clinical Decision Support"/>
        <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="bGlicmFyeSBBZG1pbmlzdGVyTWVkaWNhdGlvbgoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMScKCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnCgpjb2Rlc3lzdGVtICJBY3Rpdml0eSBUeXBlIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY3BnLWFjdGl2aXR5LXR5cGUtY3MnCgpjb2RlICJBZG1pbmlzdGVyIG1lZGljYXRpb24iOiAnYWRtaW5pc3Rlci1tZWRpY2F0aW9uJyBmcm9tICJBY3Rpdml0eSBUeXBlIgoKY29udGV4dCBQYXRpZW50CgovKiBSZWNvbW1lbmRhdGlvbiB0byBhZG1pbmlzdGVyIGFuIGV4aXN0aW5nIG9yZGVyIGZvciBhIG1lZGljYXRpb24gKi8KCi8qClBvc2l0aXZlIHJlY29tb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VkJywgJ2FjY2VwdGVkJywgJ3JlYWR5JyB9CiAgICAgIGFuZCBub3QgQ29hbGVzY2UoZG9Ob3RQZXJmb3JtKFIpLCBmYWxzZSkKCmRlZmluZSAiQWRtaW5pc3RlciBQcm9wb3NhbCBSZWplY3RlZCI6CiAgW1Rhc2tdIFIKICAgIHdoZXJlIFIuY29kZSB+ICJBZG1pbmlzdGVyIG1lZGljYXRpb24iCiAgICAgIGFuZCBSLnN0YXR1cyBpbiB7ICdyZWplY3RlZCcgfQogICAgICBhbmQgbm90IENvYWxlc2NlKGRvTm90UGVyZm9ybShSKSwgZmFsc2UpCgpkZWZpbmUgIklzIFJlY29tbWVuZGF0aW9uIEFwcGxpY2FibGUiOgogICJJbmNsdXNpb24gQ3JpdGVyaWEiCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBY3RpdmUgb3IgQ29tcGxldGVkIE1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24iCiAgICAgICAgdW5pb24gIk1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24gTm90IERvbmUiCiAgICApCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBZG1pbmlzdGVyIFByb3Bvc2FsIgogICAgICAgIHVuaW9uICJBZG1pbmlzdGVyIFByb3Bvc2FsIFJlamVjdGVkIgogICAgKQoKZGVmaW5lIGZ1bmN0aW9uIGRvTm90UGVyZm9ybSh0YXNrIFRhc2spOgogIHNpbmdsZXRvbiBmcm9tICgKICAgIHRhc2subW9kaWZpZXJFeHRlbnNpb24gRQogICAgICB3aGVyZSBFLnVybCA9ICdodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vcmVxdWVzdC1kb05vdFBlcmZvcm0nCiAgKS52YWx1ZSBhcyBib29sZWFuCg=="/>
        </content>
      </Library>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="http://example.org/PlanDefinition/activity-example-administermedication-2"/>
    <resource>
      <PlanDefinition>
        <id value="activity-example-administermedication-2"/>
        <meta>
          <profile
                   value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition"/>
        </meta>
        <text>
          <status value="extensions"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: PlanDefinition</b><a name="activity-example-administermedication-2"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource PlanDefinition &quot;activity-example-administermedication-2&quot; </p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-cpg-computableplandefinition.html">CPG Computable Plan Definition</a></p></div><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>CQF knowledge representation level</b>: structured</p><p><b>url</b>: <code>http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-2</code></p><p><b>version</b>: 2.0.0</p><p><b>name</b>: ActivityExampleAdministerMedication</p><p><b>title</b>: Activity Example Administer Medication</p><p><b>type</b>: ECA Rule <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-plan-definition-type.html">PlanDefinitionType</a>#eca-rule)</span></p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2023-11-02</p><p><b>publisher</b>: HL7 International / Clinical Decision Support</p><p><b>description</b>: Example Plan Definition for a recommendation to administer a medication</p><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>text/cql</td><td>Is Recommendation Applicable</td></tr></table></blockquote><p><b>type</b>: Create <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.3.0/CodeSystem-action-type.html">ActionType</a>#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>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel">
          <valueCode value="structured"/>
        </extension>
        <url
             value="http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-2"/>
        <version value="2.0.0"/>
        <name value="ActivityExampleAdministerMedication"/>
        <title value="Activity Example Administer Medication"/>
        <type>
          <coding>
            <system
                    value="http://terminology.hl7.org/CodeSystem/plan-definition-type"/>
            <code value="eca-rule"/>
          </coding>
        </type>
        <status value="draft"/>
        <experimental value="true"/>
        <date value="2023-11-02"/>
        <publisher value="HL7 International / Clinical Decision Support"/>
        <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://example.org/Bundle/am-scenario7-inline-bundle"/>
    <resource>
      <Bundle>
        <id value="am-scenario7-inline-bundle"/>
        <meta>
          <profile
                   value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-testcasebundle"/>
        </meta>
        <type value="collection"/>
        <entry>
          <fullUrl
                   value="http://example.org/GuidanceResponse/am-scenario7-1"/>
          <resource>
            <GuidanceResponse>
              <id value="am-scenario7-1"/>
              <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://example.org/MedicationAdministration/am-scenario7-2"/>
          <resource>
            <MedicationAdministration>
              <id value="am-scenario7-2"/>
              <status value="not-done"/>
              <medicationCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct"/>
                  <code value="333919005"/>
                  <display
                           value="Fentanyl 25micrograms/hour patch (product)"/>
                </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://example.org/MedicationRequest/am-scenario7-3"/>
          <resource>
            <MedicationRequest>
              <id value="am-scenario7-3"/>
              <status value="active"/>
              <intent value="order"/>
              <priority value="routine"/>
              <medicationCodeableConcept>
                <coding>
                  <system value="http://snomed.info/sct"/>
                  <code value="333919005"/>
                  <display
                           value="Fentanyl 25micrograms/hour patch (product)"/>
                </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://example.org/Patient/am-scenario7-4"/>
          <resource>
            <Patient>
              <id value="am-scenario7-4"/>
              <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://example.org/Task/request-am-scenario7-5"/>
          <resource>
            <Task>
              <id value="request-am-scenario7-5"/>
              <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>