Clinical Practice Guidelines
2.0.0 - STU2 International flag

This page is part of the Clinical Guidelines (v2.0.0: STU2) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. 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",
  "type" : "collection",
  "entry" : [
    {
      "fullUrl" : "http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection",
      "resource" : {
        "resourceType" : "Library",
        "id" : "administermedication-asset-collection",
        "text" : {
          "status" : "generated",
          "div" : "<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>"
        },
        "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/uv/cpg/Library/administermedication-asset-collection",
        "name" : "ActivityExampleAdministerMedicationLibrary",
        "title" : "Activity Example - Administer Medication Library Collection",
        "status" : "active",
        "experimental" : true,
        "type" : {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/library-type",
              "code" : "asset-collection"
            }
          ]
        },
        "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://hl7.org/fhir/uv/cpg/Library/administermedication-library",
      "resource" : {
        "resourceType" : "Library",
        "id" : "administermedication-library",
        "text" : {
          "status" : "generated",
          "div" : "<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\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\n\ncodesystem &quot;Activity Type&quot;: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs'\n\ncode &quot;Administer medication&quot;: 'administer-medication' from &quot;Activity Type&quot;\n\ncontext Patient\n\n/* Recommendation to administer an existing order for a medication */\n\n/*\nPositive recommendation:\n\nIf the medication has been ordered but has not been administered\n  Propose administering the medication\n\nGiven a proposal, the user can:\n  Accept the proposal\n  Ignore the proposal\n  Reject the proposal without reason\n  Reject the proposal with reason\n\nScenario 1: No event, no request, decision support should propose\nScenario 2: No event, active proposal, decision support should not propose\nScenario 3: No event, rejected proposal, decision support should not propose\nScenario 4: Event, no request, decision support should not propose\nScenario 5: Event, active proposal, decision support should not propose\nScenario 6: Event not done, no request, decision support should not propose\nScenario 7: Event not done, active proposal, decision support should not propose\n\n*/\n\ndefine &quot;Inclusion Criteria&quot;:\n  Patient.active\n    and exists (&quot;Medication Order&quot;)\n\ndefine &quot;Active or Completed Medication Administration&quot;:\n  [MedicationAdministration] M\n    where M.status in { 'in-progress', 'on-hold', 'completed' }\n\ndefine &quot;Medication Administration Not Done&quot;:\n  [MedicationAdministration] M\n    where M.status in { 'not-done', 'stopped' } // TODO: Is 'stopped' appropriate here?\n\ndefine &quot;Medication Order&quot;:\n  [MedicationRequest] M\n    where M.status in { 'active' }\n      and M.intent = 'order'\n      and M.doNotPerform is not true\n\ndefine &quot;Administer Proposal&quot;:\n  [Task] R\n    where R.code ~ &quot;Administer medication&quot;\n      and R.status in { 'draft', 'requested', 'received', 'accepted', 'ready' }\n      and doNotPerform(R) is not true\n\ndefine &quot;Administer Proposal Rejected&quot;:\n  [Task] R\n    where R.code ~ &quot;Administer medication&quot;\n      and R.status in { 'rejected' }\n      and doNotPerform(R) is not true\n\ndefine &quot;Is Recommendation Applicable&quot;:\n  &quot;Inclusion Criteria&quot;\n    and not exists (\n      &quot;Active or Completed Medication Administration&quot;\n        union &quot;Medication Administration Not Done&quot;\n    )\n    and not exists (\n      &quot;Administer Proposal&quot;\n        union &quot;Administer Proposal Rejected&quot;\n    )\n\ndefine function doNotPerform(task Task):\n  singleton from (\n    task.modifierExtension E\n      where E.url = 'http://hl7.org/fhir/StructureDefinition/request-doNotPerform'\n  ).value as boolean\n</code></pre></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/uv/cpg/Library/administermedication-library",
        "name" : "AdministerMedicationLibrary",
        "title" : "Administer Medication Library",
        "status" : "active",
        "experimental" : true,
        "type" : {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/library-type",
              "code" : "logic-library"
            }
          ]
        },
        "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" : "bGlicmFyeSBBZG1pbmlzdGVyTWVkaWNhdGl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ZpZXJFeHRlbnNpb24gRQogICAgICB3aGVyZSBFLnVybCA9ICdodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vcmVxdWVzdC1kb05vdFBlcmZvcm0nCiAgKS52YWx1ZSBhcyBib29sZWFuCg=="
          }
        ]
      }
    },
    {
      "fullUrl" : "http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd",
      "resource" : {
        "resourceType" : "PlanDefinition",
        "id" : "activity-example-administermedication-pd",
        "meta" : {
          "profile" : [
            🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"🔗 ,
            "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition"
          ]
        },
        "text" : {
          "status" : "extensions",
          "div" : "<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>\n</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>"
        },
        "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/uv/cpg/PlanDefinition/activity-example-administermedication-pd",
        "name" : "ActivityExampleAdministerMedicationPD",
        "title" : "Activity Example Administer Medication PD",
        "type" : {
          "coding" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
              "code" : "eca-rule"
            }
          ]
        },
        "status" : "active",
        "experimental" : true,
        "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://hl7.org/fhir/uv/cpg/Bundle/am-scenario7-bundle",
      "resource" : {
        "resourceType" : "Bundle",
        "id" : "am-scenario7-bundle",
        "type" : "collection",
        "entry" : [
          {
            "fullUrl" : "http://hl7.org/fhir/uv/cpg/GuidanceResponse/am-scenario7-gr",
            "resource" : {
              "resourceType" : "GuidanceResponse",
              "id" : "am-scenario7-gr",
              "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://hl7.org/fhir/uv/cpg/MedicationAdministration/am-scenario7",
            "resource" : {
              "resourceType" : "MedicationAdministration",
              "id" : "am-scenario7",
              "meta" : {
                "profile" : [
                  🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationadministration"
                ]
              },
              "status" : "not-done",
              "medicationCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "769510009",
                    "display" : "Product containing precisely fentanyl 25 microgram/1 hour prolonged-release transdermal patch (clinical drug)"
                  }
                ]
              },
              "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://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr",
            "resource" : {
              "resourceType" : "MedicationRequest",
              "id" : "am-scenario7-mr",
              "meta" : {
                "profile" : [
                  🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"
                ]
              },
              "status" : "active",
              "intent" : "order",
              "priority" : "routine",
              "medicationCodeableConcept" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "769510009",
                    "display" : "Product containing precisely fentanyl 25 microgram/1 hour prolonged-release transdermal patch (clinical drug)"
                  }
                ]
              },
              "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://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient",
            "resource" : {
              "resourceType" : "Patient",
              "id" : "am-scenario7-patient",
              "meta" : {
                "profile" : [
                  🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-patient"
                ]
              },
              "active" : true,
              "name" : [
                {
                  "use" : "usual",
                  "text" : "Example Patient",
                  "family" : "Patient",
                  "given" : [
                    "Example"
                  ]
                }
              ],
              "gender" : "female",
              "birthDate" : "1990-10-01",
              "deceasedBoolean" : false
            }
          },
          {
            "fullUrl" : "http://hl7.org/fhir/uv/cpg/Task/request-am-scenario7",
            "resource" : {
              "resourceType" : "Task",
              "id" : "request-am-scenario7",
              "meta" : {
                "profile" : [
                  🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-administermedicationtask"🔗 ,
                  "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-task"
                ]
              },
              "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"
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ]
}