Potential Drug-Drug Interaction (PDDI) Clinical Decision Support, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/PDDI-CDS/ and changes regularly. See the Directory of published versions
| Page standards status: Informative |
{
"resourceType" : "PlanDefinition",
"id" : "digoxin-cyclosporine-cds-sign",
"language" : "en",
"text" : {
"status" : "extensions",
"div" : "<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\">Digoxin Cyclosporine 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\">Digoxin Cyclosporine 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 sign of a digoxin or cyclosporine</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=\"#digoxincyclosporinecdslogic-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 digoxin (product) and cyclosporine (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 digoxin toxicity. Assess risk and take action if necessary. \nDigoxin toxicity is potentially serious. The clinical consequences may include anorexia, nausea, vomiting, visual changes, and cardiac arrhythmias. \nThe mechanism of this interaction appears to be mediated through P-glycoprotein inhibition by cyclosporine. P-glycoprotein is a major transporter for digoxin efflux. \nunknown. \nunknown.</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<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=\"#digoxincyclosporinecdslogic-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>: action.description\n \n \n \n <br/>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#digoxincyclosporinecdslogic-get-base-detail\">Get Base 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=\"#digoxincyclosporinecdslogic-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 digoxin (product) and cyclosporine (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\">Consultation</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\">Request communication with digoxin prescriber</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=\"#digoxincyclosporinecdslogic-is-context-medication-digoxin\">Is Context medication digoxin</a> \n \n \n </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n create from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad201.html\">ActivityDefinition AD201</a></td>\n\n\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 (Parent Action Title: Potential Drug-Drug Interaction between digoxin (product) and cyclosporine (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\">Consultation</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\">Request communication with cyclosporine prescriber</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=\"#digoxincyclosporinecdslogic-is-context-medication-cyclosporine\">Is Context medication cyclosporine</a> \n \n \n </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n create from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad202.html\">ActivityDefinition AD202</a></td>\n\n\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 (Parent Action Title: Potential Drug-Drug Interaction between digoxin (product) and cyclosporine (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\">Cancel digoxin</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\">Discontinue digoxin order</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=\"#digoxincyclosporinecdslogic-is-context-medication-digoxin\">Is Context medication digoxin</a> \n \n \n </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n remove from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\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 digoxin (product) and cyclosporine (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\">Cancel cyclosporine</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\">Discontinue cyclosporine order</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=\"#digoxincyclosporinecdslogic-is-context-medication-cyclosporine\">Is Context medication cyclosporine</a> \n \n \n </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n remove from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\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 digoxin (product) and cyclosporine (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\">Digoxin Level</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 digoxin trough within 24 hours from initiation</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=\"#digoxincyclosporinecdslogic-is-new-order-for-digoxin\">Is new order for digoxin</a> \n \n \n </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n create from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad203.html\">ActivityDefinition AD203</a></td>\n\n\n</tr>\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\">Patient does (not) have digoxin level within 30 days that is below 0.9 ng/mL (SI: 1.2 nmol/L)</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\">(Digoxin: level and date). \nFor patients with a reliable plasma digoxin concentration in normal range, it is reasonable to anticipate an increase in plasma concentrations after the initiation of cyclosporine. Following initiation, close monitoring and adjusting the digoxin dose as needed is recommended. Initiating cyclosporine is expected to increase digoxin levels. For patients without a reliable plasma digoxin concentration in normal range, use only if benefits outweight risks. Extreme caution and close monitoring is necessary.</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=\"#digoxincyclosporinecdslogic-is-digoxin-in-prefetch\">Is digoxin in prefetch</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=\"#digoxincyclosporinecdslogic-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=\"#digoxincyclosporinecdslogic-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=\"#digoxincyclosporinecdslogic-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 does (not) have digoxin level within 30 days that is below 0.9 ng/mL (SI: 1.2 nmol/L))</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\">Digoxin Level</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 digoxin trough within 24 hours from the initiation of cyclosporine</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://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad203.html\">ActivityDefinition AD203</a></td>\n\n\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 (Parent Action Title: Patient does (not) have digoxin level within 30 days that is below 0.9 ng/mL (SI: 1.2 nmol/L))</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\">New Digoxin</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\">Preemptively reduce digoxin dose with new order</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=\"#digoxincyclosporinecdslogic-need-to-reduce-digoxin-dose\">Need to reduce Digoxin dose</a> \n \n \n </td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n create from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad204.html\">ActivityDefinition AD204</a></td>\n\n\n</tr>\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\">Within 100 days, the patient has had electrolyte and serum creatinine levels checked, and they are not on a potassium sparing or loop diuretic.</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\">(Potassium: level and date)\n (Magnesium: level and date)\n (Calcium: level and date)\n (Serum creatinine: level and date)\n Hypokalemia, hypomagnesemia, and hypercalcemia may potentiate digoxin toxicity. 50-70% of digoxin is excreted unchanged in the urine. Changing renal function may increase serum concentrations and risk of toxicity.</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<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=\"#digoxincyclosporinecdslogic-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=\"#digoxincyclosporinecdslogic-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=\"#digoxincyclosporinecdslogic-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: Within 100 days, the patient has had electrolyte and serum creatinine levels checked, and they are not on a potassium sparing or loop diuretic.)</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\">Serum Creatinine</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 serum creatinine</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://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad205.html\">ActivityDefinition AD205</a></td>\n\n\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 (Parent Action Title: Within 100 days, the patient has had electrolyte and serum creatinine levels checked, and they are not on a potassium sparing or loop diuretic.)</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\">Electrolyte Panel</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 electrolyte panel</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://terminology.hl7.org/7.2.0/CodeSystem-action-type.html\">http://terminology.hl7.org/CodeSystem/action-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"ActivityDefinition-ad206.html\">ActivityDefinition AD206</a></td>\n\n\n</tr>\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 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-DigoxinCyclosporineCDSLogic.html\">Digoxin-cyclosporine 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>: Value set Digoxin\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-digoxin.html\">Digoxin Medications Value Set</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin</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 Cyclosporine\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-cyclosporine.html\">Cyclosporine Medications Value Set</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-cyclosporine</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 Digoxin LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-digoxin-LOINC.html\">LOINC Codes for Digoxin Concentration</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin-LOINC</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<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 Loop Diuretics\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-LOOPDIURETIC.html\">Loop Diuretic Drug Value Set</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-LOOPDIURETIC</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 Potassium LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-potassium-LOINC.html\">LOINC Codes for Serum Potassium</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-potassium-LOINC</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 Magnesium LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-magnesium-LOINC.html\">LOINC Codes for Serum Potassium</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-magnesium-LOINC</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 Calcium LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-calcium-LOINC.html\">LOINC Codes for Serum Calcium</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-calcium-LOINC</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 Renal LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-valueset-renal-LOINC.html\">LOINC Codes for Renal Function</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/pddi/ValueSet/valueset-renal-LOINC</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>Is Context medication cyclosporine</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 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 digoxin in prefetch</td>\n <td>Out</td>\n <td>0..1</td>\n <td>boolean</td>\n <td/>\n </tr>\n \n <tr>\n <td>Is new order for digoxin</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 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>Get Base Detail</td>\n <td>Out</td>\n <td>0..1</td>\n <td>string</td>\n <td/>\n </tr>\n \n <tr>\n <td>Need to reduce Digoxin dose</td>\n <td>Out</td>\n <td>0..1</td>\n <td>boolean</td>\n <td/>\n </tr>\n \n <tr>\n <td>Is Context medication digoxin</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 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 </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-digoxin.html\">Digoxin 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-cyclosporine.html\">Cyclosporine 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-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-LOOPDIURETIC.html\">Loop Diuretic 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.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-digoxin.html\">Digoxin 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-cyclosporine.html\">Cyclosporine 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-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-LOOPDIURETIC.html\">Loop Diuretic 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.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-digoxin.html\">Digoxin 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-cyclosporine.html\">Cyclosporine 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-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-LOOPDIURETIC.html\">Loop Diuretic 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.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-digoxin.html\">Digoxin 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-cyclosporine.html\">Cyclosporine 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-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-LOOPDIURETIC.html\">Loop Diuretic 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.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>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, value\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-potassium-LOINC.html\">LOINC Codes for Serum Potassium</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>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, value\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-magnesium-LOINC.html\">LOINC Codes for Serum Potassium</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>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, value\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-calcium-LOINC.html\">LOINC Codes for Serum Calcium</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>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, value\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-digoxin-LOINC.html\">LOINC Codes for Digoxin Concentration</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>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, value\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-renal-LOINC.html\">LOINC Codes for Renal Function</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-digoxin-prescription\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Digoxin Prescription":\n ContextPrescriptions P\n where P.medication in "Digoxin"\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-context-medication-digoxin\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is Context medication digoxin":\n exists ("Digoxin 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-digoxin-rx\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Digoxin Rx":\n (\n [MedicationRequest: "Digoxin"] MR\n where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n return MR.medication as CodeableConcept\n )\n union (\n [MedicationAdministration: "Digoxin"] MA\n where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MA.medication as CodeableConcept\n )\n union (\n [MedicationDispense: "Digoxin"] MD\n where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n return MD.medication as CodeableConcept\n )\n union (\n [MedicationStatement: "Digoxin"] 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-digoxin-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is digoxin in prefetch":\n exists ("Digoxin 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-continuation-order-for-digoxin\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is continuation order for digoxin":\n "Is Context medication digoxin"\n and "Is digoxin in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-cyclosporine-prescription\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Cyclosporine Prescription":\n ContextPrescriptions P\n where P.medication in "Cyclosporine"\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-context-medication-cyclosporine\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is Context medication cyclosporine":\n exists ("Cyclosporine 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-cyclosporine-rx\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Cyclosporine Rx":\n (\n [MedicationRequest: "Cyclosporine"] MR\n where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n return MR.medication as CodeableConcept\n )\n union (\n [MedicationAdministration: "Cyclosporine"] MA\n where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MA.medication as CodeableConcept\n )\n union (\n [MedicationDispense: "Cyclosporine"] MD\n where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n return MD.medication as CodeableConcept\n )\n union (\n [MedicationStatement: "Cyclosporine"] 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-cyclosporine-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is cyclosporine in prefetch":\n exists ("Cyclosporine 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-continuation-order-for-cyclosporine\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is continuation order for cyclosporine":\n "Is Context medication cyclosporine"\n and "Is cyclosporine in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-normal-digoxin-observation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Normal Digoxin Observation":\n\tLast (\n [Observation: "Digoxin LOINC"] O\n where O.effective.toInterval() during Interval[Today() - 30 days, null]\n and O.value < 0.9 'ng/mL'\n sort by start of effective.toInterval()\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-there-a-normal-digoxin-level-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is there a normal digoxin level in prefetch":\n "Normal Digoxin Observation" is not null</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-loop-diuretics-rx\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Loop Diuretics Rx":\n (\n [MedicationRequest: "Loop Diuretics"] MR\n where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n return MR.medication as CodeableConcept\n )\n union (\n [MedicationAdministration: "Loop Diuretics"] MA\n where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MA.medication as CodeableConcept\n )\n union (\n [MedicationDispense: "Loop Diuretics"] MD\n where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n return MD.medication as CodeableConcept\n )\n union (\n [MedicationStatement: "Loop Diuretics"] 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-are-diuretics-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Are diuretics in prefetch":\n exists ("Aldosterone Antagonists Rx")\n or exists("Loop Diuretics 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-normal-potassium-observation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Normal Potassium Observation":\n Last (\n [Observation: "Potassium LOINC"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 3.5 'meq/L'\n and O.value < 5.0 'meq/L'\n sort by start of effective.toInterval()\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-normal-magnesium-observation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Normal Magnesium Observation":\n Last (\n [Observation: "Magnesium LOINC"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 0.7 'mmol/L'\n and O.value < 1.1 'mmol/L'\n sort by start of effective.toInterval()\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-normal-calcium-observation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Normal Calcium Observation":\n Last (\n [Observation: "Calcium LOINC"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 8.5 'mg/dL'\n and O.value < 10.2 'mg/dL'\n sort by start of effective.toInterval()\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-there-a-normal-electrolyte-observation-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is there a normal electrolyte observation in prefetch":\n "Normal Potassium Observation" is not null\n and "Normal Magnesium Observation" is not null\n and "Normal Calcium Observation" is not null</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-normal-renal-observation\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Normal Renal Observation":\n Last (\n [Observation: "Renal LOINC"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 0.6 'mg/dL'\n and O.value < 1.2 'mg/dL'\n sort by start of effective.toInterval()\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-there-a-normal-renal-observation-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is there a normal renal observation in prefetch":\n "Normal Renal Observation" is not null</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-there-a-normal-electrolyte-and-renal-observation-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is there a normal electrolyte and renal observation in prefetch":\n "Is there a normal electrolyte observation in prefetch"\n and "Is there a normal renal observation in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-are-diuretics-or-abnormal-electrolyte-or-abnormal-renal-observations-in-prefetch\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Are diuretics or abnormal electrolyte or abnormal renal observations in prefetch":\n "Are diuretics in prefetch"\n or not "Is there a normal electrolyte and renal observation in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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 continuation order for digoxin"\n or "Is continuation order for cyclosporine"\n then if "Is there a normal digoxin level in prefetch"\n then if "Are diuretics or abnormal electrolyte or abnormal renal observations in prefetch"\n then 'warning'\n else 'info'\n else 'warning'\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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 "Is there a normal digoxin level in prefetch"\n then 'Patient has digoxin level within 30 days that is below 0.9 ng/mL (SI: 1.2 nmol/L)'\n else 'Patient does not have digoxin level on record within the last 30 days. '</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-inclusion-criteria\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n**\n** Digoxin Cyclosporine CDS Recommendation\n**\n*/\n\ndefine "Inclusion Criteria":\n (\n "Is Context medication cyclosporine"\n and "Is digoxin in prefetch"\n )\n or (\n "Is Context medication digoxin"\n and "Is cyclosporine 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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 "Is there a normal electrolyte and renal observation in prefetch"\n then 'Within 100 days, the patient has had electrolyte and serum creatinine levels checked, and they are not on a potassium sparing or loop diuretic.'\n else 'Within 100 days, the patient has not had an electrolyte panel. The patient does have serum creatinine level and is not on a potassium sparing or loop diuretic.'</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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 if "Is there a normal digoxin level in prefetch"\n then '(Digoxin: '\n + Common.GetLevelAndDate("Normal Digoxin Observation")\n + '). \\nFor patients with a reliable plasma digoxin concentration in normal range, it is reasonable to anticipate an increase in plasma concentrations after the initiation of cyclosporine. Following initiation, close monitoring and adjusting the digoxin dose as needed is recommended'\n else 'Initiating cyclosporine is expected to increase digoxin levels. For patients without a reliable plasma digoxin concentration in normal range, use only if benefits outweight risks. Extreme caution and close monitoring is 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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-new-order-for-digoxin\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is new order for digoxin":\n "Is Context medication digoxin"\n and not "Is digoxin in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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 if "Is there a normal electrolyte and renal observation in prefetch"\n then '(Potassium: '\n + Common.GetLevelAndDate("Normal Potassium Observation")\n + ')\\n (Magnesium: '\n + Common.GetLevelAndDate("Normal Magnesium Observation")\n + ')\\n (Calcium: '\n + Common.GetLevelAndDate("Normal Calcium Observation")\n + ')\\n'\n else ''\n + '(Serum creatinine: '\n + Common.GetLevelAndDate("Normal Renal Observation")\n + ')\\n Hypokalemia, hypomagnesemia, and hypercalcemia may potentiate digoxin toxicity. 50-70% of digoxin is excreted unchanged in the urine. Changing renal function may increase serum concentrations and risk of toxicity.'</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-get-card-3-indicator\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Card 3\ndefine "Get Card 3 Indicator":\n if "Is there a normal electrolyte and renal observation in prefetch"\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-get-base-detail\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Get Base Detail":\n 'Increased risk of digoxin toxicity. Assess risk and take action if necessary. \\nDigoxin toxicity is potentially serious. The clinical consequences may include anorexia, nausea, vomiting, visual changes, and cardiac arrhythmias. \\nThe mechanism of this interaction appears to be mediated through P-glycoprotein inhibition by cyclosporine. P-glycoprotein is a major transporter for digoxin efflux. \\nunknown. \\nunknown.'</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-need-to-reduce-digoxin-dose\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Need to reduce Digoxin dose":\n "Is Context medication cyclosporine"\n or not "Is there a normal digoxin level in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-is-new-order-for-cyclosporine\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Is new order for cyclosporine":\n "Is Context medication cyclosporine"\n and not "Is cyclosporine in prefetch"</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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-get-card-2-indicator\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Card 2\ndefine "Get Card 2 Indicator":\n if "Is new order for cyclosporine"\n then if "Is there a normal digoxin level in prefetch"\n then 'warning'\n else 'critical'\n else if "Is there a normal digoxin level in prefetch"\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> DigoxinCyclosporineCDSLogic</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"digoxincyclosporinecdslogic-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 digoxin ('\n + (\n if "Is Context medication digoxin"\n then Common.GetDrugNames("Digoxin Prescription")\n else Common.GetDrugNames("Digoxin Rx")\n )\n + ') and cyclosporine ('\n + (\n if "Is Context medication cyclosporine"\n then Common.GetDrugNames("Cyclosporine Prescription")\n else Common.GetDrugNames("Cyclosporine Rx")\n )\n + ')'</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<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<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</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<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: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\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\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\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-getlevelanddate\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function GetLevelAndDate(observation Observation):\n if observation is not null\n then ToString(ToQuantity(observation.value as Quantity))\n + ' and ' \n + ToString(observation.effective.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-toquantity\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToQuantity(quantity FHIR.Quantity):\n System.Quantity { value: quantity.value.value, unit: quantity.unit.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> 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<FHIR.CodeableConcept>):\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 \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>"
},
"contained" : [
{
"resourceType" : "Library",
"id" : "effective-data-requirements",
"extension" : [
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Digoxin Prescription"
},
{
"url" : "statement",
"valueString" : "define \"Digoxin Prescription\":\n ContextPrescriptions P\n where P.medication in \"Digoxin\"\n return P.medication as CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 0
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is Context medication digoxin"
},
{
"url" : "statement",
"valueString" : "define \"Is Context medication digoxin\":\n exists (\"Digoxin Prescription\")"
},
{
"url" : "displaySequence",
"valueInteger" : 1
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Digoxin Rx"
},
{
"url" : "statement",
"valueString" : "define \"Digoxin Rx\":\n (\n [MedicationRequest: \"Digoxin\"] MR\n where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n return MR.medication as CodeableConcept\n )\n union (\n [MedicationAdministration: \"Digoxin\"] MA\n where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MA.medication as CodeableConcept\n )\n union (\n [MedicationDispense: \"Digoxin\"] MD\n where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n return MD.medication as CodeableConcept\n )\n union (\n [MedicationStatement: \"Digoxin\"] MS\n where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MS.medication as CodeableConcept\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 2
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is digoxin in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Is digoxin in prefetch\":\n exists (\"Digoxin Rx\")"
},
{
"url" : "displaySequence",
"valueInteger" : 3
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is continuation order for digoxin"
},
{
"url" : "statement",
"valueString" : "define \"Is continuation order for digoxin\":\n \"Is Context medication digoxin\"\n and \"Is digoxin in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 4
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Cyclosporine Prescription"
},
{
"url" : "statement",
"valueString" : "define \"Cyclosporine Prescription\":\n ContextPrescriptions P\n where P.medication in \"Cyclosporine\"\n return P.medication as CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 5
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is Context medication cyclosporine"
},
{
"url" : "statement",
"valueString" : "define \"Is Context medication cyclosporine\":\n exists (\"Cyclosporine Prescription\")"
},
{
"url" : "displaySequence",
"valueInteger" : 6
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Cyclosporine Rx"
},
{
"url" : "statement",
"valueString" : "define \"Cyclosporine Rx\":\n (\n [MedicationRequest: \"Cyclosporine\"] MR\n where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n return MR.medication as CodeableConcept\n )\n union (\n [MedicationAdministration: \"Cyclosporine\"] MA\n where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MA.medication as CodeableConcept\n )\n union (\n [MedicationDispense: \"Cyclosporine\"] MD\n where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n return MD.medication as CodeableConcept\n )\n union (\n [MedicationStatement: \"Cyclosporine\"] MS\n where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MS.medication as CodeableConcept\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 7
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is cyclosporine in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Is cyclosporine in prefetch\":\n exists (\"Cyclosporine Rx\")"
},
{
"url" : "displaySequence",
"valueInteger" : 8
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is continuation order for cyclosporine"
},
{
"url" : "statement",
"valueString" : "define \"Is continuation order for cyclosporine\":\n \"Is Context medication cyclosporine\"\n and \"Is cyclosporine in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 9
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Normal Digoxin Observation"
},
{
"url" : "statement",
"valueString" : "define \"Normal Digoxin Observation\":\n\tLast (\n [Observation: \"Digoxin LOINC\"] O\n where O.effective.toInterval() during Interval[Today() - 30 days, null]\n and O.value < 0.9 'ng/mL'\n sort by start of effective.toInterval()\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 10
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is there a normal digoxin level in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Is there a normal digoxin level in prefetch\":\n \"Normal Digoxin Observation\" is not null"
},
{
"url" : "displaySequence",
"valueInteger" : 11
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Aldosterone Antagonists Rx"
},
{
"url" : "statement",
"valueString" : "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 )"
},
{
"url" : "displaySequence",
"valueInteger" : 12
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Loop Diuretics Rx"
},
{
"url" : "statement",
"valueString" : "define \"Loop Diuretics Rx\":\n (\n [MedicationRequest: \"Loop Diuretics\"] MR\n where MR.authoredOn.toInterval() during Interval[Today() - 100 days, null]\n return MR.medication as CodeableConcept\n )\n union (\n [MedicationAdministration: \"Loop Diuretics\"] MA\n where MA.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MA.medication as CodeableConcept\n )\n union (\n [MedicationDispense: \"Loop Diuretics\"] MD\n where MD.whenHandedOver.toInterval() during Interval[Today() - 100 days, null]\n return MD.medication as CodeableConcept\n )\n union (\n [MedicationStatement: \"Loop Diuretics\"] MS\n where MS.effective.toInterval() overlaps Interval[Today() - 100 days, null]\n return MS.medication as CodeableConcept\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 13
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Are diuretics in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Are diuretics in prefetch\":\n exists (\"Aldosterone Antagonists Rx\")\n or exists(\"Loop Diuretics Rx\")"
},
{
"url" : "displaySequence",
"valueInteger" : 14
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Normal Potassium Observation"
},
{
"url" : "statement",
"valueString" : "define \"Normal Potassium Observation\":\n Last (\n [Observation: \"Potassium LOINC\"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 3.5 'meq/L'\n and O.value < 5.0 'meq/L'\n sort by start of effective.toInterval()\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 15
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Normal Magnesium Observation"
},
{
"url" : "statement",
"valueString" : "define \"Normal Magnesium Observation\":\n Last (\n [Observation: \"Magnesium LOINC\"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 0.7 'mmol/L'\n and O.value < 1.1 'mmol/L'\n sort by start of effective.toInterval()\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 16
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Normal Calcium Observation"
},
{
"url" : "statement",
"valueString" : "define \"Normal Calcium Observation\":\n Last (\n [Observation: \"Calcium LOINC\"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 8.5 'mg/dL'\n and O.value < 10.2 'mg/dL'\n sort by start of effective.toInterval()\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 17
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is there a normal electrolyte observation in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Is there a normal electrolyte observation in prefetch\":\n \"Normal Potassium Observation\" is not null\n and \"Normal Magnesium Observation\" is not null\n and \"Normal Calcium Observation\" is not null"
},
{
"url" : "displaySequence",
"valueInteger" : 18
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Normal Renal Observation"
},
{
"url" : "statement",
"valueString" : "define \"Normal Renal Observation\":\n Last (\n [Observation: \"Renal LOINC\"] O\n where O.effective.toInterval() during Interval[Today() - 365 days, null]\n and O.value > 0.6 'mg/dL'\n and O.value < 1.2 'mg/dL'\n sort by start of effective.toInterval()\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 19
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is there a normal renal observation in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Is there a normal renal observation in prefetch\":\n \"Normal Renal Observation\" is not null"
},
{
"url" : "displaySequence",
"valueInteger" : 20
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is there a normal electrolyte and renal observation in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Is there a normal electrolyte and renal observation in prefetch\":\n \"Is there a normal electrolyte observation in prefetch\"\n and \"Is there a normal renal observation in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 21
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Are diuretics or abnormal electrolyte or abnormal renal observations in prefetch"
},
{
"url" : "statement",
"valueString" : "define \"Are diuretics or abnormal electrolyte or abnormal renal observations in prefetch\":\n \"Are diuretics in prefetch\"\n or not \"Is there a normal electrolyte and renal observation in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 22
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Base Indicator"
},
{
"url" : "statement",
"valueString" : "define \"Get Base Indicator\":\n if \"Is continuation order for digoxin\"\n or \"Is continuation order for cyclosporine\"\n then if \"Is there a normal digoxin level in prefetch\"\n then if \"Are diuretics or abnormal electrolyte or abnormal renal observations in prefetch\"\n then 'warning'\n else 'info'\n else 'warning'\n else 'warning'"
},
{
"url" : "displaySequence",
"valueInteger" : 23
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Card 2 Summary"
},
{
"url" : "statement",
"valueString" : "define \"Get Card 2 Summary\":\n if \"Is there a normal digoxin level in prefetch\"\n then 'Patient has digoxin level within 30 days that is below 0.9 ng/mL (SI: 1.2 nmol/L)'\n else 'Patient does not have digoxin level on record within the last 30 days. '"
},
{
"url" : "displaySequence",
"valueInteger" : 24
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Inclusion Criteria"
},
{
"url" : "statement",
"valueString" : "/*\n**\n** Digoxin Cyclosporine CDS Recommendation\n**\n*/\n\ndefine \"Inclusion Criteria\":\n (\n \"Is Context medication cyclosporine\"\n and \"Is digoxin in prefetch\"\n )\n or (\n \"Is Context medication digoxin\"\n and \"Is cyclosporine in prefetch\"\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 25
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Card 3 Summary"
},
{
"url" : "statement",
"valueString" : "define \"Get Card 3 Summary\":\n if \"Is there a normal electrolyte and renal observation in prefetch\"\n then 'Within 100 days, the patient has had electrolyte and serum creatinine levels checked, and they are not on a potassium sparing or loop diuretic.'\n else 'Within 100 days, the patient has not had an electrolyte panel. The patient does have serum creatinine level and is not on a potassium sparing or loop diuretic.'"
},
{
"url" : "displaySequence",
"valueInteger" : 26
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Card 2 Detail"
},
{
"url" : "statement",
"valueString" : "define \"Get Card 2 Detail\":\n if \"Is there a normal digoxin level in prefetch\"\n then '(Digoxin: '\n + Common.GetLevelAndDate(\"Normal Digoxin Observation\")\n + '). \\nFor patients with a reliable plasma digoxin concentration in normal range, it is reasonable to anticipate an increase in plasma concentrations after the initiation of cyclosporine. Following initiation, close monitoring and adjusting the digoxin dose as needed is recommended'\n else 'Initiating cyclosporine is expected to increase digoxin levels. For patients without a reliable plasma digoxin concentration in normal range, use only if benefits outweight risks. Extreme caution and close monitoring is necessary.'"
},
{
"url" : "displaySequence",
"valueInteger" : 27
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is new order for digoxin"
},
{
"url" : "statement",
"valueString" : "define \"Is new order for digoxin\":\n \"Is Context medication digoxin\"\n and not \"Is digoxin in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 28
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Card 3 Detail"
},
{
"url" : "statement",
"valueString" : "define \"Get Card 3 Detail\":\n if \"Is there a normal electrolyte and renal observation in prefetch\"\n then '(Potassium: '\n + Common.GetLevelAndDate(\"Normal Potassium Observation\")\n + ')\\n (Magnesium: '\n + Common.GetLevelAndDate(\"Normal Magnesium Observation\")\n + ')\\n (Calcium: '\n + Common.GetLevelAndDate(\"Normal Calcium Observation\")\n + ')\\n'\n else ''\n + '(Serum creatinine: '\n + Common.GetLevelAndDate(\"Normal Renal Observation\")\n + ')\\n Hypokalemia, hypomagnesemia, and hypercalcemia may potentiate digoxin toxicity. 50-70% of digoxin is excreted unchanged in the urine. Changing renal function may increase serum concentrations and risk of toxicity.'"
},
{
"url" : "displaySequence",
"valueInteger" : 29
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Card 3 Indicator"
},
{
"url" : "statement",
"valueString" : "// Card 3\ndefine \"Get Card 3 Indicator\":\n if \"Is there a normal electrolyte and renal observation in prefetch\"\n then 'info'\n else 'warning'"
},
{
"url" : "displaySequence",
"valueInteger" : 30
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Base Detail"
},
{
"url" : "statement",
"valueString" : "define \"Get Base Detail\":\n 'Increased risk of digoxin toxicity. Assess risk and take action if necessary. \\nDigoxin toxicity is potentially serious. The clinical consequences may include anorexia, nausea, vomiting, visual changes, and cardiac arrhythmias. \\nThe mechanism of this interaction appears to be mediated through P-glycoprotein inhibition by cyclosporine. P-glycoprotein is a major transporter for digoxin efflux. \\nunknown. \\nunknown.'"
},
{
"url" : "displaySequence",
"valueInteger" : 31
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Need to reduce Digoxin dose"
},
{
"url" : "statement",
"valueString" : "define \"Need to reduce Digoxin dose\":\n \"Is Context medication cyclosporine\"\n or not \"Is there a normal digoxin level in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 32
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Is new order for cyclosporine"
},
{
"url" : "statement",
"valueString" : "define \"Is new order for cyclosporine\":\n \"Is Context medication cyclosporine\"\n and not \"Is cyclosporine in prefetch\""
},
{
"url" : "displaySequence",
"valueInteger" : 33
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Card 2 Indicator"
},
{
"url" : "statement",
"valueString" : "// Card 2\ndefine \"Get Card 2 Indicator\":\n if \"Is new order for cyclosporine\"\n then if \"Is there a normal digoxin level in prefetch\"\n then 'warning'\n else 'critical'\n else if \"Is there a normal digoxin level in prefetch\"\n then 'info'\n else 'warning'"
},
{
"url" : "displaySequence",
"valueInteger" : 34
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "DigoxinCyclosporineCDSLogic"
},
{
"url" : "name",
"valueString" : "Get Base Summary"
},
{
"url" : "statement",
"valueString" : "// Card 1: Base\ndefine \"Get Base Summary\":\n 'Potential Drug-Drug Interaction between digoxin ('\n + (\n if \"Is Context medication digoxin\"\n then Common.GetDrugNames(\"Digoxin Prescription\")\n else Common.GetDrugNames(\"Digoxin Rx\")\n )\n + ') and cyclosporine ('\n + (\n if \"Is Context medication cyclosporine\"\n then Common.GetDrugNames(\"Cyclosporine Prescription\")\n else Common.GetDrugNames(\"Cyclosporine Rx\")\n )\n + ')'"
},
{
"url" : "displaySequence",
"valueInteger" : 35
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToConcept"
},
{
"url" : "statement",
"valueString" : "/*\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 }"
},
{
"url" : "displaySequence",
"valueInteger" : 36
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCode"
},
{
"url" : "statement",
"valueString" : "/*\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 }"
},
{
"url" : "displaySequence",
"valueInteger" : 37
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value string): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 38
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRCommon"
},
{
"url" : "name",
"valueString" : "toInterval"
},
{
"url" : "statement",
"valueString" : "/*\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"
},
{
"url" : "displaySequence",
"valueInteger" : 39
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDateTime"
},
{
"url" : "statement",
"valueString" : "define function ToDateTime(value dateTime): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 40
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToInterval"
},
{
"url" : "statement",
"valueString" : "/*\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]"
},
{
"url" : "displaySequence",
"valueInteger" : 41
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDateTime"
},
{
"url" : "statement",
"valueString" : "define function ToDateTime(value instant): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 42
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDate"
},
{
"url" : "statement",
"valueString" : "define function ToDate(value date): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 43
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToQuantity"
},
{
"url" : "statement",
"valueString" : "/*\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"
},
{
"url" : "displaySequence",
"valueInteger" : 44
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCalendarUnit"
},
{
"url" : "statement",
"valueString" : "/*\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"
},
{
"url" : "displaySequence",
"valueInteger" : 45
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "PDDICDSCommon"
},
{
"url" : "name",
"valueString" : "GetLevelAndDate"
},
{
"url" : "statement",
"valueString" : "define function GetLevelAndDate(observation Observation):\n if observation is not null\n then ToString(ToQuantity(observation.value as Quantity))\n + ' and ' \n + ToString(observation.effective.value)\n else 'NA'"
},
{
"url" : "displaySequence",
"valueInteger" : 46
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "PDDICDSCommon"
},
{
"url" : "name",
"valueString" : "ToQuantity"
},
{
"url" : "statement",
"valueString" : "define function ToQuantity(quantity FHIR.Quantity):\n System.Quantity { value: quantity.value.value, unit: quantity.unit.value }"
},
{
"url" : "displaySequence",
"valueInteger" : 47
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "PDDICDSCommon"
},
{
"url" : "name",
"valueString" : "GetDrugNames"
},
{
"url" : "statement",
"valueString" : "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 )"
},
{
"url" : "displaySequence",
"valueInteger" : 48
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "PDDICDSCommon"
},
{
"url" : "name",
"valueString" : "ToCode"
},
{
"url" : "statement",
"valueString" : "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 }"
},
{
"url" : "displaySequence",
"valueInteger" : 49
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
}
],
"name" : "EffectiveDataRequirements",
"status" : "active",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "module-definition"
}
]
},
"relatedArtifact" : [
{
"type" : "depends-on",
"display" : "FHIR model information",
"resource" : "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library FHIRHelpers",
"resource" : "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library FHIRCommon",
"resource" : "http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"
},
{
"type" : "depends-on",
"display" : "Library Common",
"resource" : "http://hl7.org/fhir/uv/pddi/Library/PDDICDSCommon|1.0.0"
},
{
"type" : "depends-on",
"display" : "Value set Digoxin",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin"
},
{
"type" : "depends-on",
"display" : "Value set Cyclosporine",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-cyclosporine"
},
{
"type" : "depends-on",
"display" : "Value set Digoxin LOINC",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin-LOINC"
},
{
"type" : "depends-on",
"display" : "Value set Aldosterone Antagonists",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"
},
{
"type" : "depends-on",
"display" : "Value set Loop Diuretics",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-LOOPDIURETIC"
},
{
"type" : "depends-on",
"display" : "Value set Potassium LOINC",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-potassium-LOINC"
},
{
"type" : "depends-on",
"display" : "Value set Magnesium LOINC",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-magnesium-LOINC"
},
{
"type" : "depends-on",
"display" : "Value set Calcium LOINC",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-calcium-LOINC"
},
{
"type" : "depends-on",
"display" : "Value set Renal LOINC",
"resource" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-renal-LOINC"
}
],
"parameter" : [
{
"name" : "ContextPrescriptions",
"use" : "in",
"min" : 0,
"max" : "*",
"type" : "MedicationRequest"
},
{
"name" : "Get Base Indicator",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Get Card 2 Summary",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Inclusion Criteria",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Get Card 3 Summary",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Is Context medication cyclosporine",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Get Card 2 Detail",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Is digoxin in prefetch",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Is new order for digoxin",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Get Card 3 Detail",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Get Card 3 Indicator",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Get Base Detail",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Need to reduce Digoxin dose",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Is Context medication digoxin",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Get Card 2 Indicator",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Get Base Summary",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "string"
}
],
"dataRequirement" : [
{
"type" : "Patient",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Patient"
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"medication",
"authoredOn"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin"
}
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"medication",
"authoredOn"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-cyclosporine"
}
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"medication",
"authoredOn"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"
}
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"medication",
"authoredOn"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-LOOPDIURETIC"
}
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"medication.reference",
"medication",
"authoredOn"
]
},
{
"type" : "Medication",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Medication"
],
"mustSupport" : [
"id",
"code"
]
},
{
"type" : "MedicationAdministration",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin"
}
]
},
{
"type" : "MedicationAdministration",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-cyclosporine"
}
]
},
{
"type" : "MedicationAdministration",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"
}
]
},
{
"type" : "MedicationAdministration",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-LOOPDIURETIC"
}
]
},
{
"type" : "MedicationAdministration",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
],
"mustSupport" : [
"medication.reference",
"effective",
"medication"
]
},
{
"type" : "MedicationDispense",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
],
"mustSupport" : [
"medication",
"whenHandedOver"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin"
}
]
},
{
"type" : "MedicationDispense",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
],
"mustSupport" : [
"medication",
"whenHandedOver"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-cyclosporine"
}
]
},
{
"type" : "MedicationDispense",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
],
"mustSupport" : [
"medication",
"whenHandedOver"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"
}
]
},
{
"type" : "MedicationDispense",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
],
"mustSupport" : [
"medication",
"whenHandedOver"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-LOOPDIURETIC"
}
]
},
{
"type" : "MedicationDispense",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
],
"mustSupport" : [
"medication.reference",
"whenHandedOver",
"medication"
]
},
{
"type" : "MedicationStatement",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin"
}
]
},
{
"type" : "MedicationStatement",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-cyclosporine"
}
]
},
{
"type" : "MedicationStatement",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-AAS"
}
]
},
{
"type" : "MedicationStatement",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
],
"mustSupport" : [
"medication",
"effective"
],
"codeFilter" : [
{
"path" : "medication",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-LOOPDIURETIC"
}
]
},
{
"type" : "MedicationStatement",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
],
"mustSupport" : [
"medication.reference",
"effective",
"medication"
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"effective",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-potassium-LOINC"
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"effective",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-magnesium-LOINC"
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"effective",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-calcium-LOINC"
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"effective",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-digoxin-LOINC"
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"effective",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://hl7.org/fhir/uv/pddi/ValueSet/valueset-renal-LOINC"
}
]
}
]
}
],
"extension" : [
{
"extension" : [
{
"url" : "code",
"valueString" : "filter-out-repeated-alerts"
},
{
"url" : "type",
"valueString" : "boolean"
},
{
"url" : "name",
"valueString" : "Filter out repeated alerts"
},
{
"url" : "description",
"valueString" : "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."
}
],
"url" : "http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options"
},
{
"extension" : [
{
"url" : "code",
"valueString" : "alert-non-serious"
},
{
"url" : "type",
"valueString" : "boolean"
},
{
"url" : "name",
"valueString" : "Alert for non-serious potential drug-drug interactions"
},
{
"url" : "description",
"valueString" : "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."
}
],
"url" : "http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options"
},
{
"extension" : [
{
"url" : "code",
"valueString" : "show-evidence-support"
},
{
"url" : "type",
"valueString" : "boolean"
},
{
"url" : "name",
"valueString" : "Show evidence support"
},
{
"url" : "description",
"valueString" : "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."
}
],
"url" : "http://hl7.org/fhir/uv/pddi/StructureDefinition/pddi-cds-configuration-options"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "cds"
},
{
"url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
"valueCanonical" : "#effective-data-requirements"
}
],
"url" : "http://hl7.org/fhir/uv/pddi/PlanDefinition/digoxin-cyclosporine-cds-sign",
"version" : "1.0.0",
"name" : "DigoxinCyclosporineOrderSignRecommendation",
"title" : "Digoxin Cyclosporine Order Sign Recommendation",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
"code" : "eca-rule",
"display" : "ECA Rule"
}
]
},
"status" : "active",
"experimental" : true,
"date" : "2026-06-17T14:03:14+00:00",
"publisher" : "HL7 International / Clinical Decision Support",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/dss"
}
]
}
],
"description" : "Drug-drug interaction recommendation for use on order sign of a digoxin or cyclosporine",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"topic" : [
{
"text" : "Digoxin Cyclosporine Prescribing"
}
],
"relatedArtifact" : [
{
"type" : "documentation",
"display" : "Potential Drug-Drug Interaction Clinical Decision Support",
"url" : "http://hl7.org/fhir/uv/pddi/STU1/",
"document" : {
"url" : "http://hl7.org/fhir/uv/pddi/STU1/"
}
}
],
"library" : [
🔗 "http://hl7.org/fhir/uv/pddi/Library/DigoxinCyclosporineCDSLogic"
],
"action" : [
{
"trigger" : [
{
"type" : "named-event",
"name" : "order-sign"
}
],
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Inclusion Criteria"
}
}
],
"action" : [
{
"title" : "Potential Drug-Drug Interaction between digoxin (product) and cyclosporine (product)",
"description" : "Increased risk of digoxin toxicity. Assess risk and take action if necessary. \nDigoxin toxicity is potentially serious. The clinical consequences may include anorexia, nausea, vomiting, visual changes, and cardiac arrhythmias. \nThe mechanism of this interaction appears to be mediated through P-glycoprotein inhibition by cyclosporine. P-glycoprotein is a major transporter for digoxin efflux. \nunknown. \nunknown.",
"dynamicValue" : [
{
"path" : "action.title",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Base Summary"
}
},
{
"path" : "action.description",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Base Detail"
}
},
{
"path" : "activity.extension",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Base Indicator"
}
}
],
"action" : [
{
"title" : "Consultation",
"description" : "Request communication with digoxin prescriber",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Is Context medication digoxin"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad201"
},
{
"title" : "Consultation",
"description" : "Request communication with cyclosporine prescriber",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Is Context medication cyclosporine"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad202"
},
{
"title" : "Cancel digoxin",
"description" : "Discontinue digoxin order",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Is Context medication digoxin"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "remove"
}
]
}
},
{
"title" : "Cancel cyclosporine",
"description" : "Discontinue cyclosporine order",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Is Context medication cyclosporine"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "remove"
}
]
}
},
{
"title" : "Digoxin Level",
"description" : "Order digoxin trough within 24 hours from initiation",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Is new order for digoxin"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad203"
}
]
},
{
"title" : "Patient does (not) have digoxin level within 30 days that is below 0.9 ng/mL (SI: 1.2 nmol/L)",
"description" : "(Digoxin: level and date). \nFor patients with a reliable plasma digoxin concentration in normal range, it is reasonable to anticipate an increase in plasma concentrations after the initiation of cyclosporine. Following initiation, close monitoring and adjusting the digoxin dose as needed is recommended. Initiating cyclosporine is expected to increase digoxin levels. For patients without a reliable plasma digoxin concentration in normal range, use only if benefits outweight risks. Extreme caution and close monitoring is necessary.",
"documentation" : [
{
"type" : "citation",
"display" : "Dorian et al. Clin Invest Med 1988; 11(2):108-112"
},
{
"type" : "citation",
"display" : "Dorian et al. Transplant Proc. 1987; 19(1):1825-1827"
}
],
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Is digoxin in prefetch"
}
}
],
"dynamicValue" : [
{
"path" : "action.title",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Card 2 Summary"
}
},
{
"path" : "action.description",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Card 2 Detail"
}
},
{
"path" : "activity.extension",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Card 2 Indicator"
}
}
],
"action" : [
{
"title" : "Digoxin Level",
"description" : "Order digoxin trough within 24 hours from the initiation of cyclosporine",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad203"
},
{
"title" : "New Digoxin",
"description" : "Preemptively reduce digoxin dose with new order",
"condition" : [
{
"kind" : "applicability",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Need to reduce Digoxin dose"
}
}
],
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad204"
}
]
},
{
"title" : "Within 100 days, the patient has had electrolyte and serum creatinine levels checked, and they are not on a potassium sparing or loop diuretic.",
"description" : "(Potassium: level and date)\n (Magnesium: level and date)\n (Calcium: level and date)\n (Serum creatinine: level and date)\n Hypokalemia, hypomagnesemia, and hypercalcemia may potentiate digoxin toxicity. 50-70% of digoxin is excreted unchanged in the urine. Changing renal function may increase serum concentrations and risk of toxicity.",
"documentation" : [
{
"type" : "citation",
"display" : "Lip et al. Postgrad Med J. 1993; 69(811):337"
},
{
"type" : "citation",
"display" : "Digoxin-FDA [prescribing information] NDA 20405/S-004"
}
],
"dynamicValue" : [
{
"path" : "action.title",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Card 3 Summary"
}
},
{
"path" : "action.description",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Card 3 Detail"
}
},
{
"path" : "activity.extension",
"expression" : {
"language" : "text/cql-identifier",
"expression" : "Get Card 3 Indicator"
}
}
],
"action" : [
{
"title" : "Serum Creatinine",
"description" : "Order for serum creatinine",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad205"
},
{
"title" : "Electrolyte Panel",
"description" : "Order for electrolyte panel",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/action-type",
"code" : "create"
}
]
},
"definitionCanonical" : "http://hl7.org/fhir/uv/pddi/ActivityDefinition/ad206"
}
]
}
]
}
]
}