@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/pddi/PlanDefinition/warfarin-nsaids-cds-sign> a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "warfarin-nsaids-cds-sign"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\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\">Warfarin NSAIDs Order Sign Recommendation</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">1.0.0</td>\n\n\n</tr>\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<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    001 from <a href=\"http://unstats.un.org/unsd/methods/m49/m49.htm\">http://unstats.un.org/unsd/methods/m49/m49.htm</a> \n\n\n</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Topic</th>\n\n\n\n<td class=\"content-container\">Warfarin NSAIDs Prescribing\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">HL7 International / Clinical Decision Support</td>\n\n\n</tr>\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>Drug-drug interaction recommendation for use on order select of a warfarin or NSAID</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\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\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Trigger Type</th>\n\n\n\n<td class=\"content-container\">Named Event</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Trigger Name</th>\n\n\n\n<td class=\"content-container\">order-sign</td>\n\n\n</tr>\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=\"#warfarinnsaidscdslogic-inclusion-criteria\">Inclusion Criteria</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-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\">Potential Drug-Drug Interaction between warfarin (product) and NSAID (product)</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Topical diclofenac has relatively low systemic absorption; in one study a topical gel (16 g/day) produced about 6% of the absorption seen with systemic administration of 150 mg/day. A higher than recommended dose of topical gel (48 g/day) produced 20% of a systemic dose of diclofenac.</td>\n\n\n</tr>\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=\"#warfarinnsaidscdslogic-is-context-medication-topical-diclofenac\">Is context medication topical diclofenac</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-base-summary\">Get Base Summary</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: activity.extension\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-base-indicator\">Get Base Indicator</a>\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\">PlanDefinition Sub-Action (Parent Action Title: Potential Drug-Drug Interaction between warfarin (product) and NSAID (product))</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\">No special precautions</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n    \n  \n\n    \n  \n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-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\">Potential Drug-Drug Interaction between warfarin (product) and NSAID (product)</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Increased risk of bleeding. \nBleeding is a serious potential clinical consequence because it can result in death, life-threatening hospitalization, and disability. \nNon-steroidal anti-inflammatory drugs (NSAIDs) have antiplatelet effects which increase the bleeding risk when combined with oral anticoagulants such as warfarin. The antiplatelet effect of NSAIDs lasts only as long as the NSAID is present in the circulation, unlike aspirin’s antiplatelet effect, which lasts for up to 2 weeks after aspirin is discontinued. NSAIDs also can cause peptic ulcers and most of the evidence for increased bleeding risk with NSAIDs plus warfarin is due to upper gastrointestinal bleeding (UGIB). \nunknown. \n unknown.</td>\n\n\n</tr>\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=\"#warfarinnsaidscdslogic-is-not-context-medication-topical-diclofenac\">Is not context medication topical diclofenac</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-base-summary\">Get Base Summary</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: activity.extension\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-base-indicator\">Get Base Indicator</a>\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\">PlanDefinition Sub-Action (Parent Action Title: Potential Drug-Drug Interaction between warfarin (product) and NSAID (product))</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\">Assess risk and take action if necessary.</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">If the NSAID is being used as an analgesic or antipyretic, it would be prudent to use an alternative such as acetaminophen. In some people, acetaminophen can increase the anticoagulant effect of warfarin, so monitor the INR if acetaminophen is used in doses over 2 g/day for a few days. For more severe pain consider short-term opioids in place of the NSAID.</td>\n\n\n</tr>\n\n\n\n\n\n\n\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    remove from <a href=\"http://hl7.org/fhir/R4/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\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Potential Drug-Drug Interaction between warfarin (product) and NSAID (product))</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\">Substitute NSAID (product) with APAP (product).</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Order for APAP &lt;2g per day (APAP 500 mg every 4-6 hours prn).</td>\n\n\n</tr>\n\n\n\n\n\n\n\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    create from <a href=\"http://hl7.org/fhir/R4/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-ad101.html\">ActivityDefinition AD101</a></td>\n\n\n</tr>\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-base-label-1\">Get Base Label 1</a>\n    \n    \n  </td>\n</tr>\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Potential Drug-Drug Interaction between warfarin (product) and NSAID (product))</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\">Substitute NSAID (product) with APAP (product).</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Order for APAP &lt;2g per day (APAP 500 mg every 4-6 hours prn).</td>\n\n\n</tr>\n\n\n\n\n\n\n\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    create from <a href=\"http://hl7.org/fhir/R4/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-ad102.html\">ActivityDefinition AD102</a></td>\n\n\n</tr>\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-base-label-2\">Get Base Label 2</a>\n    \n    \n  </td>\n</tr>\n\n\n\n    \n  \n\n    \n  \n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-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\">Patient is (not) taking a proton pump inhibitor (product) or misoprostol (product).</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Proton pump inhibitors and misoprostol may reduce the risk of UGIB in patients receiving NSAIDs and warfarin.</td>\n\n\n</tr>\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=\"#warfarinnsaidscdslogic-is-not-context-medication-topical-diclofenac\">Is not context medication topical diclofenac</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-2-summary\">Get Card 2 Summary</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.description\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-2-detail\">Get Card 2 Detail</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: activity.extension\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-2-indicator\">Get Card 2 Indicator</a>\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\">PlanDefinition Sub-Action (Parent Action Title: Patient is (not) taking a proton pump inhibitor (product) or misoprostol (product).)</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\">Assess risk and take action if necessary.</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-2-label\">Get Card 2 Label</a>\n    \n    \n  </td>\n</tr>\n\n\n\n    \n  \n\n    \n  \n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-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\">Patient is (not) 65 y/o and/or does (not) have a history of upper gastrointestinal bleed</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Patients with a history of UGIB or peptic ulcer may have an increased risk of UGIB from this interaction. The extent to which older age is an independent risk factor for UGIB due to these interactions is not firmly established, but UGIB in general is known to increase with age</td>\n\n\n</tr>\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=\"#warfarinnsaidscdslogic-is-not-context-medication-topical-diclofenac\">Is not context medication topical diclofenac</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-3-summary\">Get Card 3 Summary</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.description\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-3-detail\">Get Card 3 Detail</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: activity.extension\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-3-indicator\">Get Card 3 Indicator</a>\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\">PlanDefinition Sub-Action (Parent Action Title: Patient is (not) 65 y/o and/or does (not) have a history of upper gastrointestinal bleed)</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\">Assess risk and take action if necessary.</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-3-label\">Get Card 3 Label</a>\n    \n    \n  </td>\n</tr>\n\n\n\n    \n  \n\n    \n  \n    \n    \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-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\">Patient is (not) concomitantly taking systemic corticosteroids, aldosterone antagonist, or high dose or multiple NSAIDs</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Both corticosteroids and aldosterone antagonists have been shown to subsetantially increase the risk of UGIB in patients on NSAIDs, with relative risks of 12.8 and 11 respectively compared to a risk of 4.3 with NSAIDs alone (Masclee et al. Gastroenterology 2014; 147:784-92.)</td>\n\n\n</tr>\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=\"#warfarinnsaidscdslogic-is-not-context-medication-topical-diclofenac\">Is not context medication topical diclofenac</a> \n    \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-4-summary\">Get Card 4 Summary</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.description\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-4-detail\">Get Card 4 Detail</a>\n    \n    \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: activity.extension\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-4-indicator\">Get Card 4 Indicator</a>\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\">PlanDefinition Sub-Action (Parent Action Title: Patient is (not) concomitantly taking systemic corticosteroids, aldosterone antagonist, or high dose or multiple NSAIDs)</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\">Assess risk and take action if necessary.</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Dynamic Value</th>\n  <td class=\"content-container\">\n    \n    <em>Path</em>: action.title\n    \n    \n    \n    <br/>\n    \n    \n    \n    \n    <em>Logic Definition</em>: <a href=\"#warfarinnsaidscdslogic-get-card-4-label\">Get Card 4 Label</a>\n    \n    \n  </td>\n</tr>\n\n\n\n    \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-WarfarinNSAIDsCDSLogic.html\">Warfarin-NSAIDs CDS Logic</a></td>\n\n\n</tr>\n\n\n\n\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    <em>Description</em>: FHIR model information\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html\">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/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    <em>Description</em>: Library FHIRHelpers\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html\">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/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    <em>Description</em>: Library FHIRCommon\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRCommon.html\">http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</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    <em>Description</em>: Library Common\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-PDDICDSCommon.html\">Potential Drug-Durg Interaction (PDDI) Clinical Decision Support (CDS) Common Logic</a> version: 1.0.0\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/Library/PDDICDSCommon|1.0.0</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    <em>Description</em>: Code system RXNORM\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-rxNorm.html\">RxNorm</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://www.nlm.nih.gov/research/umls/rxnorm</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    <em>Description</em>: Value set Topical Diclofenac\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-topicaldiclofenac.html\">Topical Diclofenac Medications Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-topicaldiclofenac</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    <em>Description</em>: Value set PPIs and Misoprostols\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-PPIS.html\">Proton Pump Inhibitor Drug Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS</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    <em>Description</em>: Value set Warfarins\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-warfarin.html\">Warfarin Medications Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin</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    <em>Description</em>: Value set NSAIDs\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-NSAIDS.html\">Nonsteroidal Anti-inflammatory Drugs Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS</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    <em>Description</em>: Value set History of GI Bleeds\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-Hx-UGIB-snomed.html\">Upper gastrointestinal bleed Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-Hx-UGIB-snomed</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    <em>Description</em>: Value set Systemic Corticosteroids\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-SCS.html\">Systemic Corticosteroid Drug Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS</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    <em>Description</em>: Value set Aldosterone Antagonists\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-valueset-AAS.html\">Aldosterone Antagonists Drug Value Set</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS</tt>\n    \n    \n    \n  </td>\n</tr>\n\n\n  \n  \n  <tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\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>ContextPrescriptions</td>\n          <td>In</td>\n          <td>0..*</td>\n          <td>MedicationRequest</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Base Indicator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 2 Summary</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</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>Get Card 3 Summary</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 4 Summary</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 2 Detail</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Is context medication topical diclofenac</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Base Label 2</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 2 Label</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Base Label 1</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 4 Detail</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 4 Indicator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 3 Detail</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 3 Indicator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Is not context medication topical diclofenac</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 3 Label</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 2 Indicator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Base Summary</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Get Card 4 Label</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>string</td>\n          <td/>\n        </tr>\n      \n      </tbody>\n    </table>\n  </td>\n</tr>\n\n  \n  \n  <tr>\n    <th colspan=\"2\" scope=\"row\" class=\"section-header\"><a name=\"effective-data-requirements\"> </a>PlanDefinition Logic Data Requirements</th>\n  </tr>\n  \n  \n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</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>: 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    <em>Must Support Elements</em>: medication, authoredOn\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-PPIS.html\">Proton Pump Inhibitor Drug Value Set</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>: 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    <em>Must Support Elements</em>: medication, authoredOn\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-warfarin.html\">Warfarin Medications Value Set</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>: 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    <em>Must Support Elements</em>: medication, authoredOn\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-SCS.html\">Systemic Corticosteroid Drug Value Set</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>: 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    <em>Must Support Elements</em>: medication, authoredOn\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-AAS.html\">Aldosterone Antagonists Drug Value Set</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>: 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    <em>Must Support Elements</em>: medication, authoredOn\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-NSAIDS.html\">Nonsteroidal Anti-inflammatory Drugs Value Set</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>: 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    <em>Must Support Elements</em>: medication.reference, medication, authoredOn\n    <br/>\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>: Medication\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id, code\n    <br/>\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    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-PPIS.html\">Proton Pump Inhibitor Drug Value Set</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    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-warfarin.html\">Warfarin Medications Value Set</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    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-SCS.html\">Systemic Corticosteroid Drug Value Set</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    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-AAS.html\">Aldosterone Antagonists Drug Value Set</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    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-NSAIDS.html\">Nonsteroidal Anti-inflammatory Drugs Value Set</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    <em>Must Support Elements</em>: medication.reference, effective, medication\n    <br/>\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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, whenHandedOver\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-PPIS.html\">Proton Pump Inhibitor Drug Value Set</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, whenHandedOver\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-warfarin.html\">Warfarin Medications Value Set</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, whenHandedOver\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-SCS.html\">Systemic Corticosteroid Drug Value Set</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, whenHandedOver\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-AAS.html\">Aldosterone Antagonists Drug Value Set</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, whenHandedOver\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-NSAIDS.html\">Nonsteroidal Anti-inflammatory Drugs Value Set</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference, whenHandedOver, medication\n    <br/>\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>: MedicationStatement\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-PPIS.html\">Proton Pump Inhibitor Drug Value Set</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>: MedicationStatement\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-warfarin.html\">Warfarin Medications Value Set</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>: MedicationStatement\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-SCS.html\">Systemic Corticosteroid Drug Value Set</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>: MedicationStatement\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-AAS.html\">Aldosterone Antagonists Drug Value Set</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>: MedicationStatement\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, effective\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-NSAIDS.html\">Nonsteroidal Anti-inflammatory Drugs Value Set</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>: MedicationStatement\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference, effective, medication\n    <br/>\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>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-valueset-Hx-UGIB-snomed.html\">Upper gastrointestinal bleed Value Set</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n  \n          \n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-topical-diclofenac-prescription\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Topical Diclofenac Prescription\":\n  ContextPrescriptions P\n    where P.medication in \"Topical Diclofenac\"\n    return P.medication as CodeableConcept</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-is-context-medication-topical-diclofenac\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Is context medication topical diclofenac\":\n  exists (\"Topical Diclofenac Prescription\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-base-indicator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Base Indicator\":\n  if \"Is context medication topical diclofenac\"\n    then 'info'\n  else 'warning'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-ppis-and-misoprostols-rx\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"PPIs and Misoprostols Rx\":\n    (\n      [MedicationRequest: \"PPIs and Misoprostols\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"PPIs and Misoprostols\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"PPIs and Misoprostols\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"PPIs and Misoprostols\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-taking-ppi-or-misoprostol\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Taking PPI or misoprostol\":\n  exists (\"PPIs and Misoprostols Rx\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-2-summary\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 2 Summary\":\n  if \"Taking PPI or misoprostol\"\n    then 'Patient is taking a proton pump inhibitor ('\n      + Common.GetDrugNames(\"PPIs and Misoprostols Rx\")\n      + ').'\n  else 'Patient is not taking a proton pump inhibitor or misoprostol.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-warfarin-rx\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Warfarin Rx\":\n    (\n      [MedicationRequest: \"Warfarins\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"Warfarins\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"Warfarins\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"Warfarins\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-is-warfarin-in-prefetch\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Is warfarin in prefetch\":\n  exists (\"Warfarin Rx\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-nsaid-prescription\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"NSAID Prescription\":\n  ContextPrescriptions P\n    where P.medication in \"NSAIDs\"\n    return P.medication as CodeableConcept</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-is-context-medication-systemic-nsaid\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Is context medication systemic NSAID\":\n  exists (\"NSAID Prescription\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-inclusion-criteria\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n**\n** Warfarin NSAID CDS Recommendation\n**\n*/\n\ndefine \"Inclusion Criteria\":\n  if \"Is context medication topical diclofenac\"\n    then \"Is warfarin in prefetch\"\n  else (\n    \"Is context medication systemic NSAID\"\n      and \"Is warfarin in prefetch\"\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-gi-bleeds-condition\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"GI Bleeds Condition\":\n  Last(\n    [Condition: \"History of GI Bleeds\"] C\n      sort by assertedDate().value\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-age->-65-years-or-hx-ugib\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Age &gt; 65 years or Hx UGIB\":\n  \"GI Bleeds Condition\" is not null\n    or AgeInYears() &gt; 65</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-3-summary\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 3 Summary\":\n  if \"Age &gt; 65 years or Hx UGIB\"\n    then 'Patient is 65 y/o or does have a history of upper gastrointestinal bleed (\"'\n      + Common.GetConditionName(\"GI Bleeds Condition\")\n      + '\" and '\n      + Common.GetAssertedDate(\"GI Bleeds Condition\")\n      + ').'\n  else 'Patient is not 65 y/o and does not have a history of upper gastrointestinal bleed.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-systemic-corticosteroids-rx\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Systemic Corticosteroids Rx\":\n    (\n      [MedicationRequest: \"Systemic Corticosteroids\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"Systemic Corticosteroids\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"Systemic Corticosteroids\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"Systemic Corticosteroids\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-has-systemic-corticosteroids\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Systemic Corticosteroids\":\n  exists (\"Systemic Corticosteroids Rx\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-aldosterone-antagonists-rx\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Aldosterone Antagonists Rx\":\n    (\n      [MedicationRequest: \"Aldosterone Antagonists\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"Aldosterone Antagonists\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"Aldosterone Antagonists\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"Aldosterone Antagonists\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-has-aldosterone-antagonists\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Aldosterone Antagonists\":\n  exists (\"Aldosterone Antagonists Rx\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-nsaid-rx\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"NSAID Rx\":\n    (\n      [MedicationRequest: \"NSAIDs\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"NSAIDs\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"NSAIDs\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"NSAIDs\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-has-nsaid\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has NSAID\":\n  exists (\"NSAID Rx\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-taking-cs,-mcra,-or-nsaid\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Taking CS, MCRA, or NSAID\":\n  \"Has Systemic Corticosteroids\"\n    or \"Has Aldosterone Antagonists\"\n    or \"Has NSAID\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-4-summary\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 4 Summary\":\n  if \"Taking CS, MCRA, or NSAID\"\n    then 'Patient is concomitantly taking systemic corticosteroids ('\n      + Common.GetDrugNames(\"Systemic Corticosteroids Rx\")\n      + '), aldosterone antagonist ('\n      + Common.GetDrugNames(\"Aldosterone Antagonists Rx\")\n      + '), or high dose or multiple NSAIDs ('\n      + Common.GetDrugNames(\"NSAID Rx\")\n      + ').'\n  else 'Patient is not concomitantly taking systemic corticosteroids, aldosterone antagonist, or high dose or multiple NSAIDs.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-2-detail\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 2 Detail\":\n  'Proton pump inhibitors and misoprostol may reduce the risk of UGIB in patients receiving NSAIDs and warfarin.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-acetaminophen-500-mg\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Acetaminophen 500 MG\": Code '198440' from \"RXNORM\" display 'Acetaminophen 500 MG Oral Tablet'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-base-label-2\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Base Label 2\":\n  'Substitute NSAID ('\n  + Common.GetDrugNames(\"NSAID Prescription\")\n  + ') with APAP ('\n  + Common.ToString(\"Acetaminophen 500 MG\")\n  + ').'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-2-label\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 2 Label\":\n  if \"Taking PPI or misoprostol\"\n    then 'Assess risk and take action if necessary.'\n  else 'Use only if benefit outweighs risk.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-acetaminophen-325-mg\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Acetaminophen 325 MG\": Code '313782' from \"RXNORM\" display 'Acetaminophen 325 MG Oral Tablet'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-base-label-1\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Base Label 1\":\n  'Substitute NSAID ('\n  + Common.GetDrugNames(\"NSAID Prescription\")\n  + ') with APAP ('\n  + Common.ToString(\"Acetaminophen 325 MG\")\n  + ').'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-4-detail\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 4 Detail\":\n  'Both corticosteroids and aldosterone antagonists have been shown to subsetantially increase the risk of UGIB in patients on NSAIDs, with relative risks of 12.8 and 11 respectively compared to a risk of 4.3 with NSAIDs alone (Masclee et al. Gastroenterology 2014; 147:784-92.)'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-4-indicator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Card 4: Systemic Corticosteroids or Aldosterone Antagonist\ndefine \"Get Card 4 Indicator\":\n  if \"Taking CS, MCRA, or NSAID\"\n    then 'warning'\n  else 'info'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-3-detail\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 3 Detail\":\n  'Patients with a history of UGIB or peptic ulcer may have an increased risk of UGIB from this interaction. The extent to which older age is an independent risk factor for UGIB due to these interactions is not firmly established, but UGIB in general is known to increase with age.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-3-indicator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Card 3: History of UGIB/peptic ulcer or &gt; 65 years old\ndefine \"Get Card 3 Indicator\":\n  if \"Age &gt; 65 years or Hx UGIB\"\n    then 'warning'\n  else 'info'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-is-not-context-medication-topical-diclofenac\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Is not context medication topical diclofenac\":\n  not exists (\"Topical Diclofenac Prescription\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-3-label\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 3 Label\":\n  if \"Taking PPI or misoprostol\"\n    then 'Assess risk and take action if necessary.'\n  else if \"Age &gt; 65 years or Hx UGIB\"\n    then 'Use only if benefit outweighs risk.'\n  else 'Assess risk and take action if necessary.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-2-indicator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Card 2: PPI or misoprostol\ndefine \"Get Card 2 Indicator\":\n  if \"Taking PPI or misoprostol\"\n    then 'info'\n  else 'critical'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-base-summary\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Card 1: Base\ndefine \"Get Base Summary\":\n  'Potential Drug-Drug Interaction between warfarin ('\n    + Common.GetDrugNames(\"Warfarin Rx\")\n    + ') and NSAID ('\n    + Common.GetDrugNames(\"NSAID Prescription\")\n    + ').'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> WarfarinNSAIDsCDSLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"warfarinnsaidscdslogic-get-card-4-label\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Get Card 4 Label\":\n  if \"Taking PPI or misoprostol\"\n    then 'Assess risk and take action if necessary.'\n  else if \"Taking CS, MCRA, or NSAID\"\n    then 'Use only if benefit outweighs risk.'\n  else 'Assess risk and take action if necessary.'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhircommon-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):\n  case\n    when choice is FHIR.dateTime then\n      Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n    when choice is FHIR.Period then\n      FHIRHelpers.ToInterval(choice as FHIR.Period)\n    when choice is FHIR.instant then\n      Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n    when choice is FHIR.Age then\n      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n    when choice is FHIR.Range then\n      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n    when choice is FHIR.Timing then\n      Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n    when choice is FHIR.string then\n      Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n    else\n      null as Interval&lt;DateTime&gt;\n  end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhircommon-ext\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the single extension (if present) on the given resource with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine fluent function ext(domainResource DomainResource, url String):\n  singleton from domainResource.exts(url)</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhircommon-exts\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns any extensions defined on the given resource with the specified url\n*/\ndefine fluent function exts(domainResource DomainResource, url String):\n  domainResource.extension E\n    where E.url = url\n    return E</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-toconcept\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value string): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-todatetime\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value dateTime): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-todatetime\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-todate\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDate(value date): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-toquantity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')\n    end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocalendarunit\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PDDICDSCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pddicdscommon-getdrugnames\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function GetDrugNames(codes List&lt;FHIR.CodeableConcept&gt;):\n  Combine(\n    flatten(\n      codes C\n        return C.coding coding\n          return ToCode(coding).display\n    )\n    ,', '\n  )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PDDICDSCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pddicdscommon-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToCode(coding FHIR.Coding):\n  System.Code {\n    code: coding.code.value,\n    system: coding.system.value,\n    version: coding.version.value,\n    display: coding.display.value\n  }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PDDICDSCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pddicdscommon-asserteddate\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function assertedDate(condition Condition):\n  condition.ext('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').value as dateTime</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PDDICDSCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pddicdscommon-getconditionname\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function GetConditionName(condition Condition):\n  if condition is not null\n    then condition.code.coding[0].display.value\n  else 'NA'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PDDICDSCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pddicdscommon-getasserteddate\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function GetAssertedDate(condition Condition):\n  if condition is not null\n    then ToString(condition.assertedDate().value)\n  else 'NA'</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> PDDICDSCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"pddicdscommon-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value Code): value.display</code></pre>\n  </td>\n\n</tr>\n\n\n\n\n\n  \n  \n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.6-cibuild of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:Library ;
     fhir:id [ fhir:v "effective-data-requirements" ] ;
     fhir:extension ( [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Topical Diclofenac Prescription"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Topical Diclofenac Prescription\":\n  ContextPrescriptions P\n    where P.medication in \"Topical Diclofenac\"\n    return P.medication as CodeableConcept"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 0
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Is context medication topical diclofenac"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Is context medication topical diclofenac\":\n  exists (\"Topical Diclofenac Prescription\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 1
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Base Indicator"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Base Indicator\":\n  if \"Is context medication topical diclofenac\"\n    then 'info'\n  else 'warning'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 2
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PPIs and Misoprostols Rx"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"PPIs and Misoprostols Rx\":\n    (\n      [MedicationRequest: \"PPIs and Misoprostols\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"PPIs and Misoprostols\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"PPIs and Misoprostols\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"PPIs and Misoprostols\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 3
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Taking PPI or misoprostol"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Taking PPI or misoprostol\":\n  exists (\"PPIs and Misoprostols Rx\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 4
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 2 Summary"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 2 Summary\":\n  if \"Taking PPI or misoprostol\"\n    then 'Patient is taking a proton pump inhibitor ('\n      + Common.GetDrugNames(\"PPIs and Misoprostols Rx\")\n      + ').'\n  else 'Patient is not taking a proton pump inhibitor or misoprostol.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 5
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Warfarin Rx"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Warfarin Rx\":\n    (\n      [MedicationRequest: \"Warfarins\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"Warfarins\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"Warfarins\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"Warfarins\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 6
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Is warfarin in prefetch"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Is warfarin in prefetch\":\n  exists (\"Warfarin Rx\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 7
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "NSAID Prescription"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"NSAID Prescription\":\n  ContextPrescriptions P\n    where P.medication in \"NSAIDs\"\n    return P.medication as CodeableConcept"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 8
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Is context medication systemic NSAID"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Is context medication systemic NSAID\":\n  exists (\"NSAID Prescription\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 9
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Inclusion Criteria"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n**\n** Warfarin NSAID CDS Recommendation\n**\n*/\n\ndefine \"Inclusion Criteria\":\n  if \"Is context medication topical diclofenac\"\n    then \"Is warfarin in prefetch\"\n  else (\n    \"Is context medication systemic NSAID\"\n      and \"Is warfarin in prefetch\"\n  )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 10
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "GI Bleeds Condition"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"GI Bleeds Condition\":\n  Last(\n    [Condition: \"History of GI Bleeds\"] C\n      sort by assertedDate().value\n  )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 11
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Age > 65 years or Hx UGIB"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Age > 65 years or Hx UGIB\":\n  \"GI Bleeds Condition\" is not null\n    or AgeInYears() > 65"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 12
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 3 Summary"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 3 Summary\":\n  if \"Age > 65 years or Hx UGIB\"\n    then 'Patient is 65 y/o or does have a history of upper gastrointestinal bleed (\"'\n      + Common.GetConditionName(\"GI Bleeds Condition\")\n      + '\" and '\n      + Common.GetAssertedDate(\"GI Bleeds Condition\")\n      + ').'\n  else 'Patient is not 65 y/o and does not have a history of upper gastrointestinal bleed.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 13
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Systemic Corticosteroids Rx"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Systemic Corticosteroids Rx\":\n    (\n      [MedicationRequest: \"Systemic Corticosteroids\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"Systemic Corticosteroids\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"Systemic Corticosteroids\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"Systemic Corticosteroids\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 14
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Has Systemic Corticosteroids"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Has Systemic Corticosteroids\":\n  exists (\"Systemic Corticosteroids Rx\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 15
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Aldosterone Antagonists Rx"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Aldosterone Antagonists Rx\":\n    (\n      [MedicationRequest: \"Aldosterone Antagonists\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"Aldosterone Antagonists\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"Aldosterone Antagonists\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"Aldosterone Antagonists\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 16
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Has Aldosterone Antagonists"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Has Aldosterone Antagonists\":\n  exists (\"Aldosterone Antagonists Rx\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 17
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "NSAID Rx"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"NSAID Rx\":\n    (\n      [MedicationRequest: \"NSAIDs\"] MR\n        where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n        return MR.medication as CodeableConcept\n    )\n    union (\n      [MedicationAdministration: \"NSAIDs\"] MA\n        where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MA.medication as CodeableConcept\n    )\n    union (\n      [MedicationDispense: \"NSAIDs\"] MD\n        where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n        return MD.medication as CodeableConcept\n    )\n    union (\n      [MedicationStatement: \"NSAIDs\"] MS\n        where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n        return MS.medication as CodeableConcept\n    )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 18
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Has NSAID"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Has NSAID\":\n  exists (\"NSAID Rx\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 19
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Taking CS, MCRA, or NSAID"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Taking CS, MCRA, or NSAID\":\n  \"Has Systemic Corticosteroids\"\n    or \"Has Aldosterone Antagonists\"\n    or \"Has NSAID\""
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 20
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 4 Summary"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 4 Summary\":\n  if \"Taking CS, MCRA, or NSAID\"\n    then 'Patient is concomitantly taking systemic corticosteroids ('\n      + Common.GetDrugNames(\"Systemic Corticosteroids Rx\")\n      + '), aldosterone antagonist ('\n      + Common.GetDrugNames(\"Aldosterone Antagonists Rx\")\n      + '), or high dose or multiple NSAIDs ('\n      + Common.GetDrugNames(\"NSAID Rx\")\n      + ').'\n  else 'Patient is not concomitantly taking systemic corticosteroids, aldosterone antagonist, or high dose or multiple NSAIDs.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 21
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 2 Detail"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 2 Detail\":\n  'Proton pump inhibitors and misoprostol may reduce the risk of UGIB in patients receiving NSAIDs and warfarin.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 22
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Acetaminophen 500 MG"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Acetaminophen 500 MG\": Code '198440' from \"RXNORM\" display 'Acetaminophen 500 MG Oral Tablet'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 23
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Base Label 2"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Base Label 2\":\n  'Substitute NSAID ('\n  + Common.GetDrugNames(\"NSAID Prescription\")\n  + ') with APAP ('\n  + Common.ToString(\"Acetaminophen 500 MG\")\n  + ').'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 24
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 2 Label"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 2 Label\":\n  if \"Taking PPI or misoprostol\"\n    then 'Assess risk and take action if necessary.'\n  else 'Use only if benefit outweighs risk.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 25
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Acetaminophen 325 MG"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Acetaminophen 325 MG\": Code '313782' from \"RXNORM\" display 'Acetaminophen 325 MG Oral Tablet'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 26
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Base Label 1"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Base Label 1\":\n  'Substitute NSAID ('\n  + Common.GetDrugNames(\"NSAID Prescription\")\n  + ') with APAP ('\n  + Common.ToString(\"Acetaminophen 325 MG\")\n  + ').'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 27
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 4 Detail"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 4 Detail\":\n  'Both corticosteroids and aldosterone antagonists have been shown to subsetantially increase the risk of UGIB in patients on NSAIDs, with relative risks of 12.8 and 11 respectively compared to a risk of 4.3 with NSAIDs alone (Masclee et al. Gastroenterology 2014; 147:784-92.)'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 28
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 4 Indicator"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "// Card 4: Systemic Corticosteroids or Aldosterone Antagonist\ndefine \"Get Card 4 Indicator\":\n  if \"Taking CS, MCRA, or NSAID\"\n    then 'warning'\n  else 'info'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 29
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 3 Detail"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 3 Detail\":\n  'Patients with a history of UGIB or peptic ulcer may have an increased risk of UGIB from this interaction. The extent to which older age is an independent risk factor for UGIB due to these interactions is not firmly established, but UGIB in general is known to increase with age.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 30
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 3 Indicator"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "// Card 3: History of UGIB/peptic ulcer or > 65 years old\ndefine \"Get Card 3 Indicator\":\n  if \"Age > 65 years or Hx UGIB\"\n    then 'warning'\n  else 'info'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 31
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Is not context medication topical diclofenac"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Is not context medication topical diclofenac\":\n  not exists (\"Topical Diclofenac Prescription\")"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 32
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 3 Label"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 3 Label\":\n  if \"Taking PPI or misoprostol\"\n    then 'Assess risk and take action if necessary.'\n  else if \"Age > 65 years or Hx UGIB\"\n    then 'Use only if benefit outweighs risk.'\n  else 'Assess risk and take action if necessary.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 33
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 2 Indicator"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "// Card 2: PPI or misoprostol\ndefine \"Get Card 2 Indicator\":\n  if \"Taking PPI or misoprostol\"\n    then 'info'\n  else 'critical'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 34
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Base Summary"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "// Card 1: Base\ndefine \"Get Base Summary\":\n  'Potential Drug-Drug Interaction between warfarin ('\n    + Common.GetDrugNames(\"Warfarin Rx\")\n    + ') and NSAID ('\n    + Common.GetDrugNames(\"NSAID Prescription\")\n    + ').'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 35
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "WarfarinNSAIDsCDSLogic"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Get Card 4 Label"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define \"Get Card 4 Label\":\n  if \"Taking PPI or misoprostol\"\n    then 'Assess risk and take action if necessary.'\n  else if \"Taking CS, MCRA, or NSAID\"\n    then 'Use only if benefit outweighs risk.'\n  else 'Assess risk and take action if necessary.'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 36
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToConcept"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 37
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToCode"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 38
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToString"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToString(value string): value.value"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 39
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "toInterval"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n  case\n    when choice is FHIR.dateTime then\n      Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n    when choice is FHIR.Period then\n      FHIRHelpers.ToInterval(choice as FHIR.Period)\n    when choice is FHIR.instant then\n      Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n    when choice is FHIR.Age then\n      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n    when choice is FHIR.Range then\n      Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n        FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n    when choice is FHIR.Timing then\n      Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n    when choice is FHIR.string then\n      Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n    else\n      null as Interval<DateTime>\n  end"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 40
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToDateTime"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToDateTime(value dateTime): value.value"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 41
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToInterval"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 42
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToDateTime"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToDateTime(value instant): value.value"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 43
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToDate"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToDate(value date): value.value"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 44
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToQuantity"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n    end"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 45
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToCalendarUnit"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 46
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PDDICDSCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "GetDrugNames"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function GetDrugNames(codes List<FHIR.CodeableConcept>):\n  Combine(\n    flatten(\n      codes C\n        return C.coding coding\n          return ToCode(coding).display\n    )\n    ,', '\n  )"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 47
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PDDICDSCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToCode"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToCode(coding FHIR.Coding):\n  System.Code {\n    code: coding.code.value,\n    system: coding.system.value,\n    version: coding.version.value,\n    display: coding.display.value\n  }"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 48
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PDDICDSCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "assertedDate"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define fluent function assertedDate(condition Condition):\n  condition.ext('http://hl7.org/fhir/StructureDefinition/condition-assertedDate').value as dateTime"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 49
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ext"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Returns the single extension (if present) on the given resource with the specified url.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine fluent function ext(domainResource DomainResource, url String):\n  singleton from domainResource.exts(url)"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 50
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "exts"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "/*\n@description: Returns any extensions defined on the given resource with the specified url\n*/\ndefine fluent function exts(domainResource DomainResource, url String):\n  domainResource.extension E\n    where E.url = url\n    return E"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 51
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "FHIRHelpers"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToString"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToString(value uri): value.value"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 52
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PDDICDSCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "GetConditionName"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function GetConditionName(condition Condition):\n  if condition is not null\n    then condition.code.coding[0].display.value\n  else 'NA'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 53
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PDDICDSCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "GetAssertedDate"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function GetAssertedDate(condition Condition):\n  if condition is not null\n    then ToString(condition.assertedDate().value)\n  else 'NA'"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 54
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] [
       fhir:extension ( [
         fhir:url [
           fhir:v "libraryName"^^xsd:anyURI ;
           fhir:l fhir:libraryName
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "PDDICDSCommon"
         ]
       ] [
         fhir:url [
           fhir:v "name"^^xsd:anyURI ;
           fhir:l fhir:name
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "ToString"
         ]
       ] [
         fhir:url [
           fhir:v "statement"^^xsd:anyURI ;
           fhir:l fhir:statement
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "define function ToString(value Code): value.display"
         ]
       ] [
         fhir:url [
           fhir:v "displaySequence"^^xsd:anyURI ;
           fhir:l fhir:displaySequence
         ] ;
         fhir:value [
           a fhir:Integer ;
           fhir:v 55
         ]
       ] ) ;
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>
       ]
     ] ) ;
     fhir:name [ fhir:v "EffectiveDataRequirements" ] ;
     fhir:status [ fhir:v "active" ] ;
     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 "module-definition" ]
       ] )
     ] ;
     fhir:relatedArtifact ( [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "FHIR model information" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo?version=4.0.1>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Library FHIRHelpers" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/cql/Library/FHIRHelpers?version=4.0.1>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Library FHIRCommon" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/cql/Library/FHIRCommon?version=2.0.0>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Library Common" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/Library/PDDICDSCommon|1.0.0"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/Library/PDDICDSCommon?version=1.0.0>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Code system RXNORM" ] ;
       fhir:resource [
         fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
         fhir:l <http://www.nlm.nih.gov/research/umls/rxnorm>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Topical Diclofenac" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-topicaldiclofenac"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-topicaldiclofenac>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set PPIs and Misoprostols" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Warfarins" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set NSAIDs" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set History of GI Bleeds" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-Hx-UGIB-snomed"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-Hx-UGIB-snomed>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Systemic Corticosteroids" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Aldosterone Antagonists" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS>
       ]
     ] ) ;
     fhir:parameter ( [
       fhir:name [ fhir:v "ContextPrescriptions" ] ;
       fhir:use [ fhir:v "in" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type [ fhir:v "MedicationRequest" ]
     ] [
       fhir:name [ fhir:v "Get Base Indicator" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 2 Summary" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       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 "Get Card 3 Summary" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 4 Summary" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 2 Detail" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Is context medication topical diclofenac" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "boolean" ]
     ] [
       fhir:name [ fhir:v "Get Base Label 2" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 2 Label" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Base Label 1" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 4 Detail" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 4 Indicator" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 3 Detail" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 3 Indicator" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Is not context medication topical diclofenac" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "boolean" ]
     ] [
       fhir:name [ fhir:v "Get Card 3 Label" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 2 Indicator" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Base Summary" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Get Card 4 Label" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v 0 ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] ) ;
     fhir:dataRequirement ( [
       fhir:type [ fhir:v "Patient" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "authoredOn" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "authoredOn" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "authoredOn" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "authoredOn" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "authoredOn" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication.reference" ] [ fhir:v "medication" ] [ fhir:v "authoredOn" ] )
     ] [
       fhir:type [ fhir:v "Medication" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/Medication>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "id" ] [ fhir:v "code" ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS>
         ]
       ] )
     ] [
       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:mustSupport ( [ fhir:v "medication.reference" ] [ fhir:v "effective" ] [ fhir:v "medication" ] )
     ] [
       fhir:type [ fhir:v "MedicationDispense" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "whenHandedOver" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationDispense" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "whenHandedOver" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationDispense" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "whenHandedOver" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationDispense" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "whenHandedOver" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationDispense" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "whenHandedOver" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationDispense" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication.reference" ] [ fhir:v "whenHandedOver" ] [ fhir:v "medication" ] )
     ] [
       fhir:type [ fhir:v "MedicationStatement" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-PPIS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationStatement" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-warfarin>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationStatement" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-SCS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationStatement" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationStatement" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication" ] [ fhir:v "effective" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "medication" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-NSAIDS>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "MedicationStatement" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "medication.reference" ] [ fhir:v "effective" ] [ fhir:v "medication" ] )
     ] [
       fhir:type [ fhir:v "Condition" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "code" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "code" ] ;
         fhir:valueSet [
           fhir:v "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-Hx-UGIB-snomed"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ValueSet/valueset-Hx-UGIB-snomed>
         ]
       ] )
     ] )
  ] ) ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "code"^^xsd:anyURI ;
         fhir:l fhir:code
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "filter-out-repeated-alerts"
       ]
     ] [
       fhir:url [
         fhir:v "type"^^xsd:anyURI ;
         fhir:l fhir:type
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "boolean"
       ]
     ] [
       fhir:url [
         fhir:v "name"^^xsd:anyURI ;
         fhir:l fhir:name
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Filter out repeated alerts"
       ]
     ] [
       fhir:url [
         fhir:v "description"^^xsd:anyURI ;
         fhir:l fhir:description
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Only works if both this configuration option is set to 'true' and  cache-for-order-sign-filtering was set to 'true' in an order-select request. Uses information about this CDS call to filter aparently repititious card. Currently, this only supports filtering out cards that were triggered by the same knowledge artifact when the physician reference display, encounter id, and patient id match between the order-select and order-sign requests."
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options>
     ]
  ] [
     fhir:extension ( [
       fhir:url [
         fhir:v "code"^^xsd:anyURI ;
         fhir:l fhir:code
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "alert-non-serious"
       ]
     ] [
       fhir:url [
         fhir:v "type"^^xsd:anyURI ;
         fhir:l fhir:type
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "boolean"
       ]
     ] [
       fhir:url [
         fhir:v "name"^^xsd:anyURI ;
         fhir:l fhir:name
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Alert for non-serious potential drug-drug interactions"
       ]
     ] [
       fhir:url [
         fhir:v "description"^^xsd:anyURI ;
         fhir:l fhir:description
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Serious potential drug-drug interactions could result in death; requires hospitalization or extension of hospital stay; results in persistent or significant disability or incapacity; is life-threatening (see https://www.w3.org/2019/05/pddi/index.html). If set to True, this configuration option tells the CDS service to alerts for potential drug-drug interactions that do not meet this criterion."
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options>
     ]
  ] [
     fhir:extension ( [
       fhir:url [
         fhir:v "code"^^xsd:anyURI ;
         fhir:l fhir:code
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "show-evidence-support"
       ]
     ] [
       fhir:url [
         fhir:v "type"^^xsd:anyURI ;
         fhir:l fhir:type
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "boolean"
       ]
     ] [
       fhir:url [
         fhir:v "name"^^xsd:anyURI ;
         fhir:l fhir:name
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "Show evidence support"
       ]
     ] [
       fhir:url [
         fhir:v "description"^^xsd:anyURI ;
         fhir:l fhir:description
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "If this options is set to True, CDS response cards will provide more complete information about the evidence that supports the potential drug-drug interaction alert."
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options>
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "cds"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements>
     ] ;
     fhir:value [
       a fhir:Canonical ;
       fhir:v "#effective-data-requirements"^^xsd:anyURI ;
       fhir:l <#effective-data-requirements>
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/pddi/PlanDefinition/warfarin-nsaids-cds-sign"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/pddi/PlanDefinition/warfarin-nsaids-cds-sign>
  ] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "WarfarinNSAIDsOrderSignRecommendation"] ; # 
  fhir:title [ fhir:v "Warfarin NSAIDs Order Sign Recommendation"] ; # 
  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:display [ fhir:v "ECA Rule" ]
     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2026-06-11T13:43:59+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Decision Support"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Drug-drug interaction recommendation for use on order select of a warfarin or NSAID"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ]
     ] )
  ] ) ; # 
  fhir:topic ( [
     fhir:text [ fhir:v "Warfarin NSAIDs Prescribing" ]
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "documentation" ] ;
     fhir:display [ fhir:v "Warfarin-NSAIDs clinical decision support algorithm" ] ;
     fhir:url [
       fhir:v "https://ddi-cds.org/warfarin-nsaids/"^^xsd:anyURI ;
       fhir:l <https://ddi-cds.org/warfarin-nsaids/>
     ] ;
     fhir:document [
       fhir:url [
         fhir:v "https://ddi-cds.org/warfarin-nsaids/"^^xsd:anyURI ;
         fhir:l <https://ddi-cds.org/warfarin-nsaids/>
       ]
     ]
  ] ) ; # 
  fhir:library ( [
     fhir:v "http://hl7.org/fhir/uv/pddi/Library/WarfarinNSAIDsCDSLogic"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/pddi/Library/WarfarinNSAIDsCDSLogic>
  ] ) ; # 
  fhir:action ( [
     fhir:trigger ( [
       fhir:type [ fhir:v "named-event" ] ;
       fhir:name [ fhir:v "order-sign" ]
     ] ) ;
     fhir:condition ( [
       fhir:kind [ fhir:v "applicability" ] ;
       fhir:expression [
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "Inclusion Criteria" ]
       ]
     ] ) ;
     fhir:action ( [
       fhir:title [ fhir:v "Potential Drug-Drug Interaction between warfarin (product) and NSAID (product)" ] ;
       fhir:description [ fhir:v "Topical diclofenac has relatively low systemic absorption; in one study a topical gel (16 g/day) produced about 6% of the absorption seen with systemic administration of 150 mg/day. A higher than recommended dose of topical gel (48 g/day) produced 20% of a systemic dose of diclofenac." ] ;
       fhir:condition ( [
         fhir:kind [ fhir:v "applicability" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Is context medication topical diclofenac" ]
         ]
       ] ) ;
       fhir:dynamicValue ( [
         fhir:path [ fhir:v "action.title" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Base Summary" ]
         ]
       ] [
         fhir:path [ fhir:v "activity.extension" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Base Indicator" ]
         ]
       ] ) ;
       fhir:action ( [
         fhir:title [ fhir:v "No special precautions" ]
       ] )
     ] [
       fhir:title [ fhir:v "Potential Drug-Drug Interaction between warfarin (product) and NSAID (product)" ] ;
       fhir:description [ fhir:v "Increased risk of bleeding. \nBleeding is a serious potential clinical consequence because it can result in death, life-threatening hospitalization, and disability. \nNon-steroidal anti-inflammatory drugs (NSAIDs) have antiplatelet effects which increase the bleeding risk when combined with oral anticoagulants such as warfarin. The antiplatelet effect of NSAIDs lasts only as long as the NSAID is present in the circulation, unlike aspirin’s antiplatelet effect, which lasts for up to 2 weeks after aspirin is discontinued. NSAIDs also can cause peptic ulcers and most of the evidence for increased bleeding risk with NSAIDs plus warfarin is due to upper gastrointestinal bleeding (UGIB). \nunknown. \n unknown." ] ;
       fhir:condition ( [
         fhir:kind [ fhir:v "applicability" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Is not context medication topical diclofenac" ]
         ]
       ] ) ;
       fhir:dynamicValue ( [
         fhir:path [ fhir:v "action.title" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Base Summary" ]
         ]
       ] [
         fhir:path [ fhir:v "activity.extension" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Base Indicator" ]
         ]
       ] ) ;
       fhir:action ( [
         fhir:title [ fhir:v "Assess risk and take action if necessary." ] ;
         fhir:description [ fhir:v "If the NSAID is being used as an analgesic or antipyretic, it would be prudent to use an alternative such as acetaminophen. In some people, acetaminophen can increase the anticoagulant effect of warfarin, so monitor the INR if acetaminophen is used in doses over 2 g/day for a few days. For more severe pain consider short-term opioids in place of the NSAID." ] ;
         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 "remove" ]
           ] )
         ]
       ] [
         fhir:title [ fhir:v "Substitute NSAID (product) with APAP (product)." ] ;
         fhir:description [ fhir:v "Order for APAP <2g per day (APAP 500 mg every 4-6 hours prn)." ] ;
         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/pddi/ActivityDefinition/ad101"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad101>
         ] ;
         fhir:dynamicValue ( [
           fhir:path [ fhir:v "action.title" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql-identifier" ] ;
             fhir:expression [ fhir:v "Get Base Label 1" ]
           ]
         ] )
       ] [
         fhir:title [ fhir:v "Substitute NSAID (product) with APAP (product)." ] ;
         fhir:description [ fhir:v "Order for APAP <2g per day (APAP 500 mg every 4-6 hours prn)." ] ;
         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/pddi/ActivityDefinition/ad102"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad102>
         ] ;
         fhir:dynamicValue ( [
           fhir:path [ fhir:v "action.title" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql-identifier" ] ;
             fhir:expression [ fhir:v "Get Base Label 2" ]
           ]
         ] )
       ] )
     ] [
       fhir:title [ fhir:v "Patient is (not) taking a proton pump inhibitor (product) or misoprostol (product)." ] ;
       fhir:description [ fhir:v "Proton pump inhibitors and misoprostol may reduce the risk of UGIB in patients receiving NSAIDs and warfarin." ] ;
       fhir:condition ( [
         fhir:kind [ fhir:v "applicability" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Is not context medication topical diclofenac" ]
         ]
       ] ) ;
       fhir:dynamicValue ( [
         fhir:path [ fhir:v "action.title" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 2 Summary" ]
         ]
       ] [
         fhir:path [ fhir:v "action.description" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 2 Detail" ]
         ]
       ] [
         fhir:path [ fhir:v "activity.extension" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 2 Indicator" ]
         ]
       ] ) ;
       fhir:action ( [
         fhir:title [ fhir:v "Assess risk and take action if necessary." ] ;
         fhir:dynamicValue ( [
           fhir:path [ fhir:v "action.title" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql-identifier" ] ;
             fhir:expression [ fhir:v "Get Card 2 Label" ]
           ]
         ] )
       ] )
     ] [
       fhir:title [ fhir:v "Patient is (not) 65 y/o and/or does (not) have a history of upper gastrointestinal bleed" ] ;
       fhir:description [ fhir:v "Patients with a history of UGIB or peptic ulcer may have an increased risk of UGIB from this interaction. The extent to which older age is an independent risk factor for UGIB due to these interactions is not firmly established, but UGIB in general is known to increase with age" ] ;
       fhir:condition ( [
         fhir:kind [ fhir:v "applicability" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Is not context medication topical diclofenac" ]
         ]
       ] ) ;
       fhir:dynamicValue ( [
         fhir:path [ fhir:v "action.title" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 3 Summary" ]
         ]
       ] [
         fhir:path [ fhir:v "action.description" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 3 Detail" ]
         ]
       ] [
         fhir:path [ fhir:v "activity.extension" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 3 Indicator" ]
         ]
       ] ) ;
       fhir:action ( [
         fhir:title [ fhir:v "Assess risk and take action if necessary." ] ;
         fhir:dynamicValue ( [
           fhir:path [ fhir:v "action.title" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql-identifier" ] ;
             fhir:expression [ fhir:v "Get Card 3 Label" ]
           ]
         ] )
       ] )
     ] [
       fhir:title [ fhir:v "Patient is (not) concomitantly taking systemic corticosteroids, aldosterone antagonist, or high dose or multiple NSAIDs" ] ;
       fhir:description [ fhir:v "Both corticosteroids and aldosterone antagonists have been shown to subsetantially increase the risk of UGIB in patients on NSAIDs, with relative risks of 12.8 and 11 respectively compared to a risk of 4.3 with NSAIDs alone (Masclee et al. Gastroenterology 2014; 147:784-92.)" ] ;
       fhir:condition ( [
         fhir:kind [ fhir:v "applicability" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Is not context medication topical diclofenac" ]
         ]
       ] ) ;
       fhir:dynamicValue ( [
         fhir:path [ fhir:v "action.title" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 4 Summary" ]
         ]
       ] [
         fhir:path [ fhir:v "action.description" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 4 Detail" ]
         ]
       ] [
         fhir:path [ fhir:v "activity.extension" ] ;
         fhir:expression [
           fhir:language [ fhir:v "text/cql-identifier" ] ;
           fhir:expression [ fhir:v "Get Card 4 Indicator" ]
         ]
       ] ) ;
       fhir:action ( [
         fhir:title [ fhir:v "Assess risk and take action if necessary." ] ;
         fhir:dynamicValue ( [
           fhir:path [ fhir:v "action.title" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql-identifier" ] ;
             fhir:expression [ fhir:v "Get Card 4 Label" ]
           ]
         ] )
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

