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 - JSON Representation

Raw json | Download


{
  "resourceType" : "Bundle",
  "id" : "activity-example-administermedication-bundle",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-artifactbundle"
    ]
  },
  "type" : "collection",
  "entry" : [
    {
      "fullUrl" : "http://example.org/Library/activity-example-administermedication-1",
      "resource" : {
        "resourceType" : "Library",
        "id" : "activity-example-administermedication-1",
        "meta" : {
          "profile" : [
            🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-assetcollection"
          ]
        },
        "text" : {
          "status" : "extensions",
          "div" : "<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>"
        },
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "shareable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "computable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "publishable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel",
            "valueCode" : "structured"
          }
        ],
        "url" : "http://hl7.org/fhir/uv/cpg/Library/activity-example-administermedication-1",
        "version" : "2.0.0",
        "name" : "ActivityExampleAdministerMedication",
        "title" : "Activity Example - Administer Medication Collection",
        "status" : "draft",
        "experimental" : true,
        "type" : {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/library-type",
              "code" : "asset-collection"
            }
          ]
        },
        "publisher" : "HL7 International / Clinical Decision Support",
        "description" : "Asset collection of artifacts in the Administer Medication activity example",
        "relatedArtifact" : [
          {
            "type" : "depends-on",
            "resource" : "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
          },
          {
            "type" : "depends-on",
            "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
          },
          {
            "type" : "depends-on",
            "resource" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"
          },
          {
            "type" : "composed-of",
            "resource" : "http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"
          },
          {
            "type" : "composed-of",
            "resource" : "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"
          },
          {
            "type" : "composed-of",
            "resource" : "http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/Library/AdministerMedication",
      "resource" : {
        "resourceType" : "Library",
        "id" : "AdministerMedication",
        "text" : {
          "status" : "extensions",
          "div" : "<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>"
        },
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "shareable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "computable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "publishable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel",
            "valueCode" : "structured"
          }
        ],
        "url" : "http://hl7.org/fhir/uv/cpg/Library/AdministerMedication",
        "version" : "2.0.0",
        "name" : "AdministerMedication",
        "title" : "Administer Medication",
        "status" : "draft",
        "experimental" : true,
        "type" : {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/library-type",
              "code" : "logic-library"
            }
          ]
        },
        "publisher" : "HL7 International / Clinical Decision Support",
        "description" : "Logic for an example recommendation to administer a medication",
        "relatedArtifact" : [
          {
            "type" : "depends-on",
            "resource" : "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
          },
          {
            "type" : "depends-on",
            "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
          },
          {
            "type" : "depends-on",
            "resource" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"
          }
        ],
        "parameter" : [
          {
            "name" : "Patient",
            "use" : "out",
            "min" : 0,
            "max" : "1",
            "type" : "Patient"
          },
          {
            "name" : "Medication Proposal",
            "use" : "out",
            "min" : 0,
            "max" : "*",
            "type" : "MedicationRequest"
          },
          {
            "name" : "Medication Not Proposed",
            "use" : "out",
            "min" : 0,
            "max" : "*",
            "type" : "MedicationRequest"
          },
          {
            "name" : "Inclusion Criteria",
            "use" : "out",
            "min" : 0,
            "max" : "1",
            "type" : "boolean"
          },
          {
            "name" : "Active or Completed Medication Administration",
            "use" : "out",
            "min" : 0,
            "max" : "*",
            "type" : "MedicationAdministration"
          },
          {
            "name" : "Medication Administration Not Done",
            "use" : "out",
            "min" : 0,
            "max" : "*",
            "type" : "MedicationAdministration"
          },
          {
            "name" : "Administer Proposal",
            "use" : "out",
            "min" : 0,
            "max" : "*",
            "type" : "Task"
          },
          {
            "name" : "Administer Proposal Rejected",
            "use" : "out",
            "min" : 0,
            "max" : "*",
            "type" : "Task"
          },
          {
            "name" : "Is Recommendation Applicable",
            "use" : "out",
            "min" : 0,
            "max" : "1",
            "type" : "boolean"
          }
        ],
        "dataRequirement" : [
          {
            "type" : "MedicationRequest",
            "profile" : [
              🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
            ]
          },
          {
            "type" : "MedicationRequest",
            "profile" : [
              🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
            ]
          },
          {
            "type" : "MedicationAdministration",
            "profile" : [
              🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
            ]
          },
          {
            "type" : "MedicationAdministration",
            "profile" : [
              🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
            ]
          },
          {
            "type" : "Task",
            "profile" : [
              🔗 "http://hl7.org/fhir/StructureDefinition/Task"
            ]
          },
          {
            "type" : "Task",
            "profile" : [
              🔗 "http://hl7.org/fhir/StructureDefinition/Task"
            ]
          }
        ],
        "content" : [
          {
            "contentType" : "text/cql",
            "data" : "bGlicmFyeSBBZG1pbmlzdGVyTWVkaWNhdGlvbgoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMScKCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnCgpjb2Rlc3lzdGVtICJBY3Rpdml0eSBUeXBlIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY3BnLWFjdGl2aXR5LXR5cGUtY3MnCgpjb2RlICJBZG1pbmlzdGVyIG1lZGljYXRpb24iOiAnYWRtaW5pc3Rlci1tZWRpY2F0aW9uJyBmcm9tICJBY3Rpdml0eSBUeXBlIgoKY29udGV4dCBQYXRpZW50CgovKiBSZWNvbW1lbmRhdGlvbiB0byBhZG1pbmlzdGVyIGFuIGV4aXN0aW5nIG9yZGVyIGZvciBhIG1lZGljYXRpb24gKi8KCi8qClBvc2l0aXZlIHJlY29tbWVuZGF0aW9uOgoKSWYgdGhlIG1lZGljYXRpb24gaGFzIGJlZW4gb3JkZXJlZCBidXQgaGFzIG5vdCBiZWVuIGFkbWluaXN0ZXJlZAogIFByb3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SAiQWRtaW5pc3RlciBQcm9wb3NhbCBSZWplY3RlZCI6CiAgW1Rhc2tdIFIKICAgIHdoZXJlIFIuY29kZSB+ICJBZG1pbmlzdGVyIG1lZGljYXRpb24iCiAgICAgIGFuZCBSLnN0YXR1cyBpbiB7ICdyZWplY3RlZCcgfQogICAgICBhbmQgbm90IENvYWxlc2NlKGRvTm90UGVyZm9ybShSKSwgZmFsc2UpCgpkZWZpbmUgIklzIFJlY29tbWVuZGF0aW9uIEFwcGxpY2FibGUiOgogICJJbmNsdXNpb24gQ3JpdGVyaWEiCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBY3RpdmUgb3IgQ29tcGxldGVkIE1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24iCiAgICAgICAgdW5pb24gIk1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24gTm90IERvbmUiCiAgICApCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBZG1pbmlzdGVyIFByb3Bvc2FsIgogICAgICAgIHVuaW9uICJBZG1pbmlzdGVyIFByb3Bvc2FsIFJlamVjdGVkIgogICAgKQoKZGVmaW5lIGZ1bmN0aW9uIGRvTm90UGVyZm9ybSh0YXNrIFRhc2spOgogIHNpbmdsZXRvbiBmcm9tICgKICAgIHRhc2subW9kaWZpZXJFeHRlbnNpb24gRQogICAgICB3aGVyZSBFLnVybCA9ICdodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vcmVxdWVzdC1kb05vdFBlcmZvcm0nCiAgKS52YWx1ZSBhcyBib29sZWFuCg=="
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/PlanDefinition/activity-example-administermedication-2",
      "resource" : {
        "resourceType" : "PlanDefinition",
        "id" : "activity-example-administermedication-2",
        "meta" : {
          "profile" : [
            🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition"
          ]
        },
        "text" : {
          "status" : "extensions",
          "div" : "<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>"
        },
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "shareable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "computable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
            "valueCode" : "publishable"
          },
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel",
            "valueCode" : "structured"
          }
        ],
        "url" : "http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-2",
        "version" : "2.0.0",
        "name" : "ActivityExampleAdministerMedication",
        "title" : "Activity Example Administer Medication",
        "type" : {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
              "code" : "eca-rule"
            }
          ]
        },
        "status" : "draft",
        "experimental" : true,
        "date" : "2023-11-02",
        "publisher" : "HL7 International / Clinical Decision Support",
        "description" : "Example Plan Definition for a recommendation to administer a medication",
        "library" : [
          🔗 "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"
        ],
        "action" : [
          {
            "title" : "Collect date of patient last visit",
            "condition" : [
              {
                "kind" : "applicability",
                "expression" : {
                  "language" : "text/cql",
                  "expression" : "Is Recommendation Applicable"
                }
              }
            ],
            "type" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/action-type",
                  "code" : "create"
                }
              ]
            },
            "definitionCanonical" : "http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/Bundle/am-scenario7-inline-bundle",
      "resource" : {
        "resourceType" : "Bundle",
        "id" : "am-scenario7-inline-bundle",
        "meta" : {
          "profile" : [
            🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-testcasebundle"
          ]
        },
        "type" : "collection",
        "entry" : [
          {
            "fullUrl" : "http://example.org/GuidanceResponse/am-scenario7-1",
            "resource" : {
              "resourceType" : "GuidanceResponse",
              "id" : "am-scenario7-1",
              "contained" : [
                {
                  "resourceType" : "Parameters",
                  "id" : "output",
                  "parameter" : [
                    {
                      "name" : "Inclusion Criteria",
                      "valueBoolean" : true
                    },
                    {
                      "name" : "Is Recommendation Applicable",
                      "valueBoolean" : false
                    }
                  ]
                }
              ],
              "moduleCanonical" : "http://hl7.org/fhir/uv/cpg/Library/administermedication-library",
              "status" : "success",
              "subject" : {
                🔗 "reference" : "Patient/am-scenario7-patient"
              },
              "outputParameters" : {
                "reference" : "#output"
              }
            }
          },
          {
            "fullUrl" : "http://example.org/MedicationAdministration/am-scenario7-2",
            "resource" : {
              "resourceType" : "MedicationAdministration",
              "id" : "am-scenario7-2",
              "status" : "not-done",
              "medicationCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "333919005",
                    "display" : "Fentanyl 25micrograms/hour patch (product)"
                  }
                ]
              },
              "subject" : {
                🔗 "reference" : "Patient/am-scenario7-patient"
              },
              "effectivePeriod" : {
                "start" : "2015-01-15T22:03:00+01:00",
                "end" : "2015-01-16T02:03:00+01:00"
              },
              "request" : {
                🔗 "reference" : "MedicationRequest/am-scenario7-mr"
              },
              "dosage" : {
                "text" : "apply one patch three times per week",
                "dose" : {
                  "value" : 1,
                  "unit" : "patch",
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                  "code" : "PATCH"
                }
              }
            }
          },
          {
            "fullUrl" : "http://example.org/MedicationRequest/am-scenario7-3",
            "resource" : {
              "resourceType" : "MedicationRequest",
              "id" : "am-scenario7-3",
              "status" : "active",
              "intent" : "order",
              "priority" : "routine",
              "medicationCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "333919005",
                    "display" : "Fentanyl 25micrograms/hour patch (product)"
                  }
                ]
              },
              "subject" : {
                🔗 "reference" : "Patient/am-scenario7-patient"
              },
              "dosageInstruction" : [
                {
                  "sequence" : 1,
                  "text" : "apply one patch three times per week",
                  "timing" : {
                    "repeat" : {
                      "frequency" : 3,
                      "period" : 1,
                      "periodUnit" : "wk"
                    }
                  },
                  "doseAndRate" : [
                    {
                      "type" : {
                        "coding" : [
                          {
                            "system" : "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                            "code" : "ordered",
                            "display" : "Ordered"
                          }
                        ]
                      },
                      "doseQuantity" : {
                        "value" : 1,
                        "unit" : "patch",
                        "system" : "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                        "code" : "PATCH"
                      }
                    }
                  ]
                }
              ],
              "dispenseRequest" : {
                "validityPeriod" : {
                  "start" : "2015-01-15",
                  "end" : "2016-01-15"
                },
                "quantity" : {
                  "value" : 6,
                  "unit" : "patch",
                  "system" : "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
                  "code" : "PATCH"
                },
                "expectedSupplyDuration" : {
                  "value" : 14,
                  "unit" : "days",
                  "system" : "http://unitsofmeasure.org",
                  "code" : "d"
                }
              }
            }
          },
          {
            "fullUrl" : "http://example.org/Patient/am-scenario7-4",
            "resource" : {
              "resourceType" : "Patient",
              "id" : "am-scenario7-4",
              "active" : true,
              "name" : [
                {
                  "use" : "usual",
                  "text" : "Example Patient",
                  "family" : "Patient",
                  "given" : [
                    "Example"
                  ]
                }
              ],
              "gender" : "female",
              "birthDate" : "1990-10-01",
              "deceasedBoolean" : false
            }
          },
          {
            "fullUrl" : "http://example.org/Task/request-am-scenario7-5",
            "resource" : {
              "resourceType" : "Task",
              "id" : "request-am-scenario7-5",
              "instantiatesCanonical" : "http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad",
              "status" : "in-progress",
              "intent" : "order",
              "code" : {
                "coding" : [
                  {
                    "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs",
                    "code" : "administer-medication",
                    "display" : "Administer a medication"
                  }
                ]
              },
              "for" : {
                🔗 "reference" : "Patient/am-scenario7-patient"
              },
              "input" : [
                {
                  "type" : {
                    "coding" : [
                      {
                        "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs",
                        "code" : "administer-medication",
                        "display" : "Administer a medication"
                      }
                    ]
                  },
                  "valueReference" : {
                    🔗 "reference" : "MedicationRequest/am-scenario7-mr"
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ]
}