@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/cpg/Bundle/activity-example-administermedication-bundle> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "activity-example-administermedication-bundle"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:type [ fhir:v "collection"] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-library>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/Library/administermedication-library> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/Bundle/am-scenario7-bundle"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/Bundle/am-scenario7-bundle>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/Bundle/am-scenario7-bundle> )
  ] ) . # 

<http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection> a fhir:Library ;
  fhir:id [ fhir:v "administermedication-asset-collection"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Library_administermedication-asset-collection\"> </a>\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Activity Example - Administer Medication Library Collection</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>Asset collection of artifacts in the Administer Medication activity example</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    asset-collection from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"CodeSystem-cpg-activity-type-cs.html\">CPG Activity Type Code System</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Component</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ActivityDefinition-activity-example-administermedication-ad.html\">Activity Example Administer Medication AD</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Component</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-administermedication-library.html\">Administer Medication Library</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cpg/Library/administermedication-library</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Component</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"PlanDefinition-activity-example-administermedication-pd.html\">Activity Example Administer Medication PD</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd</tt>\n    \n    \n    \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n\n<td class=\"content-container\">None</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "shareable"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "computable"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "publishable"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-asset-collection>
  ] ; # 
  fhir:name [ fhir:v "ActivityExampleAdministerMedicationLibrary"] ; # 
  fhir:title [ fhir:v "Activity Example - Administer Medication Library Collection"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/library-type>
       ] ;
       fhir:code [ fhir:v "asset-collection" ]
     ] )
  ] ; # 
  fhir:description [ fhir:v "Asset collection of artifacts in the Administer Medication activity example"] ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ;
       fhir:l <http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo?version=4.0.1>
     ]
  ] [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
       fhir:l <http://fhir.org/guides/cqf/common/Library/FHIRHelpers?version=4.0.1>
     ]
  ] [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs>
     ]
  ] [
     fhir:type [ fhir:v "composed-of" ] ;
     fhir:resource [
       fhir:v "http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad>
     ]
  ] [
     fhir:type [ fhir:v "composed-of" ] ;
     fhir:resource [
       fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-library>
     ]
  ] [
     fhir:type [ fhir:v "composed-of" ] ;
     fhir:resource [
       fhir:v "http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd>
     ]
  ] ) . # 

<http://hl7.org/fhir/uv/cpg/Library/administermedication-library> a fhir:Library ;
  fhir:id [ fhir:v "administermedication-library"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Library_administermedication-library\"> </a>\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Administer Medication Library</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>Logic for an example recommendation to administer a medication</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    logic-library from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"CodeSystem-cpg-activity-type-cs.html\">CPG Activity Type Code System</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs</tt>\n    \n    \n    \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationAdministration\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Task\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/task.html\">Task</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n  <td class=\"content-container\">\n    <table>\n      <thead>\n        <tr>\n          <td><em>Name</em></td>\n          <td><em>Use</em></td>\n          <td><em>Card.</em></td>\n          <td><em>Type</em></td>\n          <td><em>Documentation</em></td>\n        </tr>\n      </thead>\n      <tbody>\n      \n        <tr>\n          <td>Patient</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Patient</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Medication Proposal</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>MedicationRequest</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Medication Not Proposed</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>MedicationRequest</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Inclusion Criteria</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Active or Completed Medication Administration</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>MedicationAdministration</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Medication Administration Not Done</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>MedicationAdministration</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Administer Proposal</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Task</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Administer Proposal Rejected</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Task</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Is Recommendation Applicable</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n      </tbody>\n    </table>\n  </td>\n</tr>\n\n\n\n\n\n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Library Content</th>\n\n\n</tr>\n  \n    \n    <tr>\n      <th scope=\"row\" class=\"row-header\">CQL Content</th>\n      <td>\n        <a name=\"cql-content\"> </a>\n        <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">library AdministerMedication\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\n\ncodesystem \"Activity Type\": 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs'\n\ncode \"Administer medication\": 'administer-medication' from \"Activity Type\"\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 \"Inclusion Criteria\":\n  Patient.active\n    and exists (\"Medication Order\")\n\ndefine \"Active or Completed Medication Administration\":\n  [MedicationAdministration] M\n    where M.status in { 'in-progress', 'on-hold', 'completed' }\n\ndefine \"Medication Administration Not Done\":\n  [MedicationAdministration] M\n    where M.status in { 'not-done', 'stopped' } // TODO: Is 'stopped' appropriate here?\n\ndefine \"Medication Order\":\n  [MedicationRequest] M\n    where M.status in { 'active' }\n      and M.intent = 'order'\n      and M.doNotPerform is not true\n\ndefine \"Administer Proposal\":\n  [Task] R\n    where R.code ~ \"Administer medication\"\n      and R.status in { 'draft', 'requested', 'received', 'accepted', 'ready' }\n      and doNotPerform(R) is not true\n\ndefine \"Administer Proposal Rejected\":\n  [Task] R\n    where R.code ~ \"Administer medication\"\n      and R.status in { 'rejected' }\n      and doNotPerform(R) is not true\n\ndefine \"Is Recommendation Applicable\":\n  \"Inclusion Criteria\"\n    and not exists (\n      \"Active or Completed Medication Administration\"\n        union \"Medication Administration Not Done\"\n    )\n    and not exists (\n      \"Administer Proposal\"\n        union \"Administer Proposal Rejected\"\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>\n      </td>\n    </tr>\n    \n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "shareable"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "computable"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "publishable"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-library>
  ] ; # 
  fhir:name [ fhir:v "AdministerMedicationLibrary"] ; # 
  fhir:title [ fhir:v "Administer Medication Library"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/library-type>
       ] ;
       fhir:code [ fhir:v "logic-library" ]
     ] )
  ] ; # 
  fhir:description [ fhir:v "Logic for an example recommendation to administer a medication"] ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ;
       fhir:l <http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo?version=4.0.1>
     ]
  ] [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
       fhir:l <http://fhir.org/guides/cqf/common/Library/FHIRHelpers?version=4.0.1>
     ]
  ] [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs>
     ]
  ] ) ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "Patient" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:type [ fhir:v "Patient" ]
  ] [
     fhir:name [ fhir:v "Medication Proposal" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:type [ fhir:v "MedicationRequest" ]
  ] [
     fhir:name [ fhir:v "Medication Not Proposed" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:type [ fhir:v "MedicationRequest" ]
  ] [
     fhir:name [ fhir:v "Inclusion Criteria" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:type [ fhir:v "boolean" ]
  ] [
     fhir:name [ fhir:v "Active or Completed Medication Administration" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:type [ fhir:v "MedicationAdministration" ]
  ] [
     fhir:name [ fhir:v "Medication Administration Not Done" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:type [ fhir:v "MedicationAdministration" ]
  ] [
     fhir:name [ fhir:v "Administer Proposal" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:type [ fhir:v "Task" ]
  ] [
     fhir:name [ fhir:v "Administer Proposal Rejected" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "*" ] ;
     fhir:type [ fhir:v "Task" ]
  ] [
     fhir:name [ fhir:v "Is Recommendation Applicable" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:type [ fhir:v "boolean" ]
  ] ) ; # 
  fhir:dataRequirement ( [
     fhir:type [ fhir:v "MedicationRequest" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationRequest>
     ] )
  ] [
     fhir:type [ fhir:v "MedicationRequest" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationRequest>
     ] )
  ] [
     fhir:type [ fhir:v "MedicationAdministration" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationAdministration>
     ] )
  ] [
     fhir:type [ fhir:v "MedicationAdministration" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationAdministration>
     ] )
  ] [
     fhir:type [ fhir:v "Task" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Task"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Task>
     ] )
  ] [
     fhir:type [ fhir:v "Task" ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/Task"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/Task>
     ] )
  ] ) ; # 
  fhir:content ( [
     fhir:contentType [ fhir:v "text/cql" ] ;
     fhir:data [ fhir:v "bGlicmFyeSBBZG1pbmlzdGVyTWVkaWNhdGlvbgoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMScKCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnCgpjb2Rlc3lzdGVtICJBY3Rpdml0eSBUeXBlIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY3BnLWFjdGl2aXR5LXR5cGUtY3MnCgpjb2RlICJBZG1pbmlzdGVyIG1lZGljYXRpb24iOiAnYWRtaW5pc3Rlci1tZWRpY2F0aW9uJyBmcm9tICJBY3Rpdml0eSBUeXBlIgoKY29udGV4dCBQYXRpZW50CgovKiBSZWNvbW1lbmRhdGlvbiB0byBhZG1pbmlzdGVyIGFuIGV4aXN0aW5nIG9yZGVyIGZvciBhIG1lZGljYXRpb24gKi8KCi8qClBvc2l0aXZlIHJlY29tbWVuZGF0aW9uOgoKSWYgdGhlIG1lZGljYXRpb24gaGFzIGJlZW4gb3JkZXJlZCBidXQgaGFzIG5vdCBiZWVuIGFkbWluaXN0ZXJlZAogIFByb3Bvc2UgYWRtaW5pc3RlcmluZyB0aGUgbWVkaWNhdGlvbgoKR2l2ZW4gYSBwcm9wb3NhbCwgdGhlIHVzZXIgY2FuOgogIEFjY2VwdCB0aGUgcHJvcG9zYWwKICBJZ25vcmUgdGhlIHByb3Bvc2FsCiAgUmVqZWN0IHRoZSBwcm9wb3NhbCB3aXRob3V0IHJlYXNvbgogIFJlamVjdCB0aGUgcHJvcG9zYWwgd2l0aCByZWFzb24KClNjZW5hcmlvIDE6IE5vIGV2ZW50LCBubyByZXF1ZXN0LCBkZWNpc2lvbiBzdXBwb3J0IHNob3VsZCBwcm9wb3NlClNjZW5hcmlvIDI6IE5vIGV2ZW50LCBhY3RpdmUgcHJvcG9zYWwsIGRlY2lzaW9uIHN1cHBvcnQgc2hvdWxkIG5vdCBwcm9wb3NlClNjZW5hcmlvIDM6IE5vIGV2ZW50LCByZWplY3RlZCBwcm9wb3NhbCwgZGVjaXNpb24gc3VwcG9ydCBzaG91bGQgbm90IHByb3Bvc2UKU2NlbmFyaW8gNDogRXZlbnQsIG5vIHJlcXVlc3QsIGRlY2lzaW9uIHN1cHBvcnQgc2hvdWxkIG5vdCBwcm9wb3NlClNjZW5hcmlvIDU6IEV2ZW50LCBhY3RpdmUgcHJvcG9zYWwsIGRlY2lzaW9uIHN1cHBvcnQgc2hvdWxkIG5vdCBwcm9wb3NlClNjZW5hcmlvIDY6IEV2ZW50IG5vdCBkb25lLCBubyByZXF1ZXN0LCBkZWNpc2lvbiBzdXBwb3J0IHNob3VsZCBub3QgcHJvcG9zZQpTY2VuYXJpbyA3OiBFdmVudCBub3QgZG9uZSwgYWN0aXZlIHByb3Bvc2FsLCBkZWNpc2lvbiBzdXBwb3J0IHNob3VsZCBub3QgcHJvcG9zZQoKKi8KCmRlZmluZSAiSW5jbHVzaW9uIENyaXRlcmlhIjoKICBQYXRpZW50LmFjdGl2ZQogICAgYW5kIGV4aXN0cyAoIk1lZGljYXRpb24gT3JkZXIiKQoKZGVmaW5lICJBY3RpdmUgb3IgQ29tcGxldGVkIE1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24iOgogIFtNZWRpY2F0aW9uQWRtaW5pc3RyYXRpb25dIE0KICAgIHdoZXJlIE0uc3RhdHVzIGluIHsgJ2luLXByb2dyZXNzJywgJ29uLWhvbGQnLCAnY29tcGxldGVkJyB9CgpkZWZpbmUgIk1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24gTm90IERvbmUiOgogIFtNZWRpY2F0aW9uQWRtaW5pc3RyYXRpb25dIE0KICAgIHdoZXJlIE0uc3RhdHVzIGluIHsgJ25vdC1kb25lJywgJ3N0b3BwZWQnIH0gLy8gVE9ETzogSXMgJ3N0b3BwZWQnIGFwcHJvcHJpYXRlIGhlcmU/CgpkZWZpbmUgIk1lZGljYXRpb24gT3JkZXIiOgogIFtNZWRpY2F0aW9uUmVxdWVzdF0gTQogICAgd2hlcmUgTS5zdGF0dXMgaW4geyAnYWN0aXZlJyB9CiAgICAgIGFuZCBNLmludGVudCA9ICdvcmRlcicKICAgICAgYW5kIE0uZG9Ob3RQZXJmb3JtIGlzIG5vdCB0cnVlCgpkZWZpbmUgIkFkbWluaXN0ZXIgUHJvcG9zYWwiOgogIFtUYXNrXSBSCiAgICB3aGVyZSBSLmNvZGUgfiAiQWRtaW5pc3RlciBtZWRpY2F0aW9uIgogICAgICBhbmQgUi5zdGF0dXMgaW4geyAnZHJhZnQnLCAncmVxdWVzdGVkJywgJ3JlY2VpdmVkJywgJ2FjY2VwdGVkJywgJ3JlYWR5JyB9CiAgICAgIGFuZCBkb05vdFBlcmZvcm0oUikgaXMgbm90IHRydWUKCmRlZmluZSAiQWRtaW5pc3RlciBQcm9wb3NhbCBSZWplY3RlZCI6CiAgW1Rhc2tdIFIKICAgIHdoZXJlIFIuY29kZSB+ICJBZG1pbmlzdGVyIG1lZGljYXRpb24iCiAgICAgIGFuZCBSLnN0YXR1cyBpbiB7ICdyZWplY3RlZCcgfQogICAgICBhbmQgZG9Ob3RQZXJmb3JtKFIpIGlzIG5vdCB0cnVlCgpkZWZpbmUgIklzIFJlY29tbWVuZGF0aW9uIEFwcGxpY2FibGUiOgogICJJbmNsdXNpb24gQ3JpdGVyaWEiCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBY3RpdmUgb3IgQ29tcGxldGVkIE1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24iCiAgICAgICAgdW5pb24gIk1lZGljYXRpb24gQWRtaW5pc3RyYXRpb24gTm90IERvbmUiCiAgICApCiAgICBhbmQgbm90IGV4aXN0cyAoCiAgICAgICJBZG1pbmlzdGVyIFByb3Bvc2FsIgogICAgICAgIHVuaW9uICJBZG1pbmlzdGVyIFByb3Bvc2FsIFJlamVjdGVkIgogICAgKQoKZGVmaW5lIGZ1bmN0aW9uIGRvTm90UGVyZm9ybSh0YXNrIFRhc2spOgogIHNpbmdsZXRvbiBmcm9tICgKICAgIHRhc2subW9kaWZpZXJFeHRlbnNpb24gRQogICAgICB3aGVyZSBFLnVybCA9ICdodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vcmVxdWVzdC1kb05vdFBlcmZvcm0nCiAgKS52YWx1ZSBhcyBib29sZWFuCg=="^^xsd:base64Binary ]
  ] ) . # 

<http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd> a fhir:PlanDefinition ;
  fhir:id [ fhir:v "activity-example-administermedication-pd"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition>
     ] [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"PlanDefinition_activity-example-administermedication-pd\"> </a>\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Activity Example Administer Medication PD</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>Example Plan Definition for a recommendation to administer a medication</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    eca-rule from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Collect date of patient last visit</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Condition</th>\n  <td class=\"content-container\">\n  <em>Kind</em>: Applicability\n  \n    <br/>\n    \n      \n      <em>Logic Definition</em>: <a href=\"#administermedication-library-is-recommendation-applicable\">Is Recommendation Applicable</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    create from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-activity-example-administermedication-ad.html\">Activity Example Administer Medication AD</a></td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n\n<td class=\"content-container\"><a href=\"Library-administermedication-library.html\">Administer Medication Library</a></td>\n\n\n</tr>\n\n\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "shareable"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "computable"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "publishable"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/cpg/PlanDefinition/activity-example-administermedication-pd>
  ] ; # 
  fhir:name [ fhir:v "ActivityExampleAdministerMedicationPD"] ; # 
  fhir:title [ fhir:v "Activity Example Administer Medication PD"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/plan-definition-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/plan-definition-type>
       ] ;
       fhir:code [ fhir:v "eca-rule" ]
     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:description [ fhir:v "Example Plan Definition for a recommendation to administer a medication"] ; # 
  fhir:library ( [
     fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-library>
  ] ) ; # 
  fhir:action ( [
     fhir:title [ fhir:v "Collect date of patient last visit" ] ;
     fhir:condition ( [
       fhir:kind [ fhir:v "applicability" ] ;
       fhir:expression [
         fhir:language [ fhir:v "text/cql" ] ;
         fhir:expression [ fhir:v "Is Recommendation Applicable" ]
       ]
     ] ) ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/action-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/action-type>
         ] ;
         fhir:code [ fhir:v "create" ]
       ] )
     ] ;
     fhir:definition [
       a fhir:Canonical ;
       fhir:v "http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad>
     ]
  ] ) . # 

<http://hl7.org/fhir/uv/cpg/Bundle/am-scenario7-bundle> a fhir:Bundle ;
  fhir:id [ fhir:v "am-scenario7-bundle"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:type [ fhir:v "collection"] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/GuidanceResponse/am-scenario7-gr"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/GuidanceResponse/am-scenario7-gr>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/GuidanceResponse/am-scenario7-gr> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/MedicationAdministration/am-scenario7"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/MedicationAdministration/am-scenario7>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/MedicationAdministration/am-scenario7> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient> )
  ] [
     fhir:fullUrl [
       fhir:v "http://hl7.org/fhir/uv/cpg/Task/request-am-scenario7"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/Task/request-am-scenario7>
     ] ;
     fhir:resource ( <http://hl7.org/fhir/uv/cpg/Task/request-am-scenario7> )
  ] ) . # 

<http://hl7.org/fhir/uv/cpg/GuidanceResponse/am-scenario7-gr> a fhir:GuidanceResponse ;
  fhir:id [ fhir:v "am-scenario7-gr"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:contained ( [
     a fhir:Parameters ;
     fhir:id [ fhir:v "output" ] ;
     fhir:parameter ( [
       fhir:name [ fhir:v "Inclusion Criteria" ] ;
       fhir:value [
         a fhir:Boolean ;
         fhir:v true
       ]
     ] [
       fhir:name [ fhir:v "Is Recommendation Applicable" ] ;
       fhir:value [
         a fhir:Boolean ;
         fhir:v false
       ]
     ] )
  ] ) ; # 
  fhir:module [
     a fhir:Canonical ;
     fhir:v "http://hl7.org/fhir/uv/cpg/Library/administermedication-library"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/cpg/Library/administermedication-library>
  ] ; # 
  fhir:status [ fhir:v "success"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient> ;
     fhir:reference [ fhir:v "Patient/am-scenario7-patient" ]
  ] ; # 
  fhir:outputParameters [
     fhir:l <#output> ;
     fhir:reference [ fhir:v "#output" ]
  ] . # 

<http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient> a fhir:Uv, fhir:Patient ;
  fhir:id [ fhir:v "am-scenario7-patient"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-patient"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-patient>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:use [ fhir:v "usual" ] ;
     fhir:text [ fhir:v "Example Patient" ] ;
     fhir:family [ fhir:v "Patient" ] ;
     fhir:given ( [ fhir:v "Example" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:birthDate [ fhir:v "1990-10-01"^^xsd:date] ; # 
  fhir:deceased [
     a fhir:Boolean ;
     fhir:v false
  ] . # 

<http://hl7.org/fhir/uv/cpg/MedicationAdministration/am-scenario7> a fhir:MedicationAdministration ;
  fhir:id [ fhir:v "am-scenario7"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationadministration"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationadministration>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:status [ fhir:v "not-done"] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       a sct:769510009 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "769510009" ] ;
       fhir:display [ fhir:v "Product containing precisely fentanyl 25 microgram/1 hour prolonged-release transdermal patch (clinical drug)" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient> ;
     fhir:reference [ fhir:v "Patient/am-scenario7-patient" ]
  ] ; # 
  fhir:effective [
     a fhir:Period ;
     fhir:start [ fhir:v "2015-01-15T22:03:00+01:00"^^xsd:dateTime ] ;
     fhir:end [ fhir:v "2015-01-16T02:03:00+01:00"^^xsd:dateTime ]
  ] ; # 
  fhir:request [
     fhir:l <http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr> ;
     fhir:reference [ fhir:v "MedicationRequest/am-scenario7-mr" ]
  ] ; # 
  fhir:dosage [
     fhir:text [ fhir:v "apply one patch three times per week" ] ;
     fhir:dose [
       fhir:value [ fhir:v "1"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "patch" ] ;
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
       ] ;
       fhir:code [ fhir:v "PATCH" ]
     ]
  ] . # 

<http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr> a fhir:Uv, fhir:MedicationRequest ;
  fhir:id [ fhir:v "am-scenario7-mr"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequest>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:priority [ fhir:v "routine"] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       a sct:769510009 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "769510009" ] ;
       fhir:display [ fhir:v "Product containing precisely fentanyl 25 microgram/1 hour prolonged-release transdermal patch (clinical drug)" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient> ;
     fhir:reference [ fhir:v "Patient/am-scenario7-patient" ]
  ] ; # 
  fhir:dosageInstruction ( [
     fhir:sequence [ fhir:v 1 ] ;
     fhir:text [ fhir:v "apply one patch three times per week" ] ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "3"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "wk" ]
       ]
     ] ;
     fhir:doseAndRate ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
           ] ;
           fhir:code [ fhir:v "ordered" ] ;
           fhir:display [ fhir:v "Ordered" ]
         ] )
       ] ;
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "1"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "patch" ] ;
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
         ] ;
         fhir:code [ fhir:v "PATCH" ]
       ]
     ] )
  ] ) ; # 
  fhir:dispenseRequest [
     fhir:validityPeriod [
       fhir:start [ fhir:v "2015-01-15"^^xsd:date ] ;
       fhir:end [ fhir:v "2016-01-15"^^xsd:date ]
     ] ;
     fhir:quantity [
       fhir:value [ fhir:v "6"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "patch" ] ;
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
       ] ;
       fhir:code [ fhir:v "PATCH" ]
     ] ;
     fhir:expectedSupplyDuration [
       fhir:value [ fhir:v "14"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "days" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "d" ]
     ]
  ] . # 

<http://hl7.org/fhir/uv/cpg/Task/request-am-scenario7> a fhir:Task ;
  fhir:id [ fhir:v "request-am-scenario7"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-administermedicationtask"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-administermedicationtask>
     ] [
       fhir:v "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-task"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-task>
     ] )
  ] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:instantiatesCanonical [
     fhir:v "http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-administermedication-ad>
  ] ; # 
  fhir:status [ fhir:v "in-progress"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs>
       ] ;
       fhir:code [ fhir:v "administer-medication" ] ;
       fhir:display [ fhir:v "Administer a medication" ]
     ] )
  ] ; # 
  fhir:for [
     fhir:l <http://hl7.org/fhir/uv/cpg/Patient/am-scenario7-patient> ;
     fhir:reference [ fhir:v "Patient/am-scenario7-patient" ]
  ] ; # 
  fhir:input ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs>
         ] ;
         fhir:code [ fhir:v "administer-medication" ] ;
         fhir:display [ fhir:v "Administer a medication" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:l <http://hl7.org/fhir/uv/cpg/MedicationRequest/am-scenario7-mr> ;
       fhir:reference [ fhir:v "MedicationRequest/am-scenario7-mr" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

