Structured Data Capture
3.0.0 - STU 3 International flag

This page is part of the Structured Data Capture FHIR IG (v3.0.0: STU 3) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: Congestive Heart Failure Logic - TTL Representation

Page standards status: Informative

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Library;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "sdc-CHF"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>Related Artifacts</h2><table class=\"grid\"><tr><td>depends-on</td><td><code>http://hl7.org/fhir/Library/FHIR-ModelInfo|4.0.1</code></td></tr><tr><td>depends-on</td><td><code>http://hl7.org/fhir/Library/FHIRHelpers|4.0.1</code></td></tr><tr><td>depends-on</td><td><a href=\"http://terminology.hl7.org/2.0.0/CodeSystem-v3-snomed-CT.html\">SNOMED and CT International Edition</a></td></tr><tr><td>depends-on</td><td><a href=\"http://terminology.hl7.org/2.0.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a></td></tr><tr><td>depends-on</td><td><a href=\"CodeSystem-chf-codes.html\">CHF Codes</a></td></tr><tr><td>depends-on</td><td><a href=\"http://terminology.hl7.org/2.0.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a></td></tr><tr><td>depends-on</td><td><a href=\"http://terminology.hl7.org/2.0.0/CodeSystem-condition-ver-status.html\">ConditionVerificationStatus</a></td></tr></table><h2>Parameters</h2><table class=\"grid\"><tr><td>Encounter</td><td>in</td><td>0</td><td>1</td><td>Encounter</td></tr><tr><td>Patient</td><td>out</td><td>0</td><td>1</td><td>Patient</td></tr><tr><td>Body Weight</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Body Weight Change Assertion</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Daily Body Weight</td><td>out</td><td>0</td><td>*</td><td>Any</td></tr><tr><td>Daily Body Weight Change</td><td>out</td><td>0</td><td>*</td><td>Any</td></tr><tr><td>Body Weight Change</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Current Body Weight</td><td>out</td><td>0</td><td>1</td><td>Observation</td></tr><tr><td>Previous Body Weight</td><td>out</td><td>0</td><td>1</td><td>Observation</td></tr><tr><td>Current Body Weight Change</td><td>out</td><td>0</td><td>1</td><td>integer</td></tr><tr><td>Urine Output</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Current Urine Output</td><td>out</td><td>0</td><td>1</td><td>Observation</td></tr><tr><td>Net Intake/Output</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Current Net Intake/Output</td><td>out</td><td>0</td><td>1</td><td>Observation</td></tr><tr><td>Jugular Venous Pressure</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Oxygen Saturation</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Potassium</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Creatinine</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>eGFR</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>Eligibility Criteria</td><td>out</td><td>0</td><td>*</td><td>Condition</td></tr></table><h2>Data Requirements</h2><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"https://loinc.org/\">LOINC</a> 29463-7: Body weight</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"CodeSystem-chf-codes.html\">http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes</a> body-weight-change: Body weight change</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"https://loinc.org/\">LOINC</a> 9192-6: Urine output 24 hour</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"CodeSystem-chf-codes.html\">http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes</a> net-intake-output: Net intake/output</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"CodeSystem-chf-codes.html\">http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes</a> jvp: Jugular venous pressure</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"https://loinc.org/\">LOINC</a> 2708-6: Oxygen saturation in Arterial blood</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"https://loinc.org/\">LOINC</a> 86919-8: Potassium goal [Moles/volume] Serum or Plasma</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"https://loinc.org/\">LOINC</a> 39802-4: Creatinine in dialysis fluid/Creatinine in serum or plasma</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> (<a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>)</td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>One of these codes: <a href=\"CodeSystem-chf-codes.html\">http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes</a> egfr: eGFR result</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a> (<a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>)</td></tr></table><h2>Contents</h2><p><code>text/cql</code></p><pre><code class=\"language-sql\">library CHF version '1.0.0'\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\n\ncodesystem &quot;SNOMED-CT&quot;: 'http://snomed.info/sct'\ncodesystem &quot;LOINC&quot;: 'http://loinc.org'\ncodesystem &quot;CHFCodes&quot;: 'http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes'\ncodesystem &quot;Condition Clinical Status Code&quot;: 'http://terminology.hl7.org/CodeSystem/condition-clinical'\ncodesystem &quot;Condition Verification Status Code&quot;: 'http://terminology.hl7.org/CodeSystem/condition-ver-status'\n\ncode &quot;Congestive heart failure&quot;: '42343007' from &quot;SNOMED-CT&quot;\n\ncode &quot;Body weight&quot;: '29463-7' from &quot;LOINC&quot;\ncode &quot;Body weight change&quot;: 'body-weight-change' from &quot;CHFCodes&quot;\ncode &quot;Urine output&quot;: '9192-6' from &quot;LOINC&quot;\ncode &quot;Net intake/output&quot;: 'net-intake-output' from &quot;CHFCodes&quot;\ncode &quot;Jugular venous pressure&quot;: 'jvp' from &quot;CHFCodes&quot;\ncode &quot;Oxygen saturation&quot;: '2708-6' from &quot;LOINC&quot;\ncode &quot;Potassium goal&quot;: '86919-8' from &quot;LOINC&quot; display 'Potassium goal [Moles/volume] Serum or Plasma' // meq/L\ncode &quot;Creatinine in serum&quot;: '39802-4' from &quot;LOINC&quot; display 'Creatinine in serum or plasma' // NOTE: example shows mg/dL, but no LOINC code has those units?\ncode &quot;eGFR result&quot;: 'egfr' from &quot;CHFCodes&quot; // NOTE: Too many to pick from, needs clinical/terminological SME input, in mol/mm/m2\n\ncode &quot;Active condition&quot;: 'active' from &quot;Condition Clinical Status Code&quot;\ncode &quot;Provisional condition&quot;: 'provisional' from &quot;Condition Verification Status Code&quot;\ncode &quot;Confirmed condition&quot;: 'confirmed' from &quot;Condition Verification Status Code&quot;\n\nparameter Encounter Encounter\n\ncontext Patient\n\n// Case Features\ndefine &quot;Body Weight&quot;:\n  [Observation: &quot;Body weight&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;Body Weight Change Assertion&quot;:\n  [Observation: &quot;Body weight change&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;Body Weight Change&quot;:\n  &quot;Daily Body Weight Change&quot; WC\n    return Observation {\n      id: id { value: Encounter.id + '-bodyweight-change' + ToString(WC.date) },\n      extension: {\n        Extension {\n          url: url { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-instantiatesCaseFeature' },\n          value: canonical { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/chf-bodyweight-change' }\n        },\n        Extension {\n          url: url { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-caseFeatureType' },\n          value: code { value: 'asserted' }\n        }\n      },\n      status: ObservationStatus { value: 'final' },\n      code: CodeableConcept {\n        coding: {\n          Coding {\n            system: uri { value: 'http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes' },\n            code: code { value: 'body-weight-change' }\n          }\n        }\n      },\n      effective: dateTime { value: WC.date },\n      issued: instant { value: Now() },\n      subject: referenceTo(Patient),\n      encounter: referenceTo(Encounter),\n      value: Quantity {\n        value: decimal { value: WC.change.value },\n        unit: string { value: WC.change.unit },\n        system: uri { value: 'http://unitsofmeasure.org' },\n        code: code { value: WC.change.unit }\n      }\n    }\n\ndefine &quot;Daily Body Weight&quot;:\n  (expand Encounter.period per day) Date\n    let maxWeight: Max(&quot;Body Weight&quot; WT where WT.issued same day as Date return WT.value as FHIR.Quantity)\n    return { date: Date, weight: maxWeight }\n\ndefine &quot;Daily Body Weight Change&quot;:\n  &quot;Daily Body Weight&quot; WT\n    let priorWeight: First(&quot;Daily Body Weight&quot; PWT where PWT.date &lt; WT.date sort by date descending).weight\n    return { date: WT.date, weight: WT.weight, priorWeight: priorWeight, change: WT.weight - priorWeight}\n\ndefine &quot;Current Body Weight&quot;:\n  First(&quot;Body Weight&quot; WT where WT.issued same day as Today() sort by issued descending)\n\ndefine &quot;Previous Body Weight&quot;:\n  First(&quot;Body Weight&quot; WT where WT.issued 1 day before day of Today() sort by issued descending)\n\ndefine &quot;Current Body Weight Change&quot;:\n  &quot;Current Body Weight&quot;.value - &quot;Previous Body Weight&quot;.value\n\ndefine &quot;Urine Output&quot;:\n  [Observation: &quot;Urine output&quot;] O\n    where O.status = 'final'\n    and references(O.encounter, Encounter)\n\ndefine &quot;Current Urine Output&quot;:\n  First(&quot;Urine Output&quot; UO where UO.issued same day as Today() sort by issued descending)\n\ndefine &quot;Net Intake/Output&quot;:\n  [Observation: &quot;Net intake/output&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;Current Net Intake/Output&quot;:\n  First(&quot;Net Intake/Output&quot; IO where IO.issued same day as Today() sort by issued descending)\n\ndefine &quot;Jugular Venous Pressure&quot;:\n  [Observation: &quot;Jugular venous pressure&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;Oxygen Saturation&quot;:\n  [Observation: &quot;Oxygen saturation&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;Potassium&quot;:\n  [Observation: &quot;Potassium goal&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;Creatinine&quot;:\n  [Observation: &quot;Creatinine in serum&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\ndefine &quot;eGFR&quot;:\n  [Observation: &quot;eGFR result&quot;] O\n    where O.status = 'final'\n      and references(O.encounter, Encounter)\n\n\n// Eligibility Criteria\ndefine &quot;Eligibility Criteria&quot;:\n  [Condition] C\n    where C.code ~ &quot;Congestive heart failure&quot;\n      and C.clinicalStatus ~ &quot;Active condition&quot;\n      and C.verificationStatus ~ &quot;Confirmed condition&quot;\n\n// TODO: Handle contained references\n// TODO: Handle bundle references\n// TODO: Handle remote references\ndefine function references(reference Reference, encounter Encounter):\n  EndsWith(reference.reference, '/' + encounter.id)\n\ndefine function referenceTo(encounter Encounter):\n  Reference { reference: string { value: 'Encounter/' + encounter.id } }\n\ndefine function referenceTo(patient Patient):\n  Reference { reference: string { value: 'Patient/' + patient.id } }\n</code></pre></div>"
  ];
  fhir:Library.url [ fhir:value "http://hl7.org/fhir/uv/sdc/Library/sdc-CHF"];
  fhir:Library.version [ fhir:value "3.0.0"];
  fhir:Library.name [ fhir:value "CHF"];
  fhir:Library.title [ fhir:value "Congestive Heart Failure Logic"];
  fhir:Library.status [ fhir:value "draft"];
  fhir:Library.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:Library.type [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/library-type" ];
       fhir:Coding.code [ fhir:value "logic-library" ];
       fhir:Coding.display [ fhir:value "Logic Library" ]     ]
  ];
  fhir:Library.date [ fhir:value "2020-11-29T15:54:22-07:00"^^xsd:dateTime];
  fhir:Library.publisher [ fhir:value "HL7 International - FHIR Infrastructure Work Group"];
  fhir:Library.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/Special/committees/fiwg" ]     ]
  ];
  fhir:Library.description [ fhir:value "Logic for an example congestive heart failure pathway"];
  fhir:Library.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
       fhir:Coding.code [ fhir:value "001" ]     ]
  ];
  fhir:Library.relatedArtifact [
     fhir:index 0;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ];
     fhir:RelatedArtifact.display [ fhir:value "SNOMED CT" ];
     fhir:RelatedArtifact.url [ fhir:value "http://snomed.info/sct" ];
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "http://snomed.info/sct" ]     ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://snomed.info/sct";
       fhir:link <http://snomed.info/sct>     ]
  ], [
     fhir:index 1;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ];
     fhir:RelatedArtifact.display [ fhir:value "LOINC" ];
     fhir:RelatedArtifact.url [ fhir:value "http://loinc.org" ];
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "http://loinc.org" ]     ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://loinc.org";
       fhir:link <http://loinc.org>     ]
  ], [
     fhir:index 2;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ];
     fhir:RelatedArtifact.display [ fhir:value "Congestive heart failure codes" ];
     fhir:RelatedArtifact.url [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes" ];
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes" ]     ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes";
       fhir:link <http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes>     ]
  ], [
     fhir:index 3;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ];
     fhir:RelatedArtifact.display [ fhir:value "Clinical condition codes" ];
     fhir:RelatedArtifact.url [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ];
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ]     ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical";
       fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical>     ]
  ], [
     fhir:index 4;
     fhir:RelatedArtifact.type [ fhir:value "depends-on" ];
     fhir:RelatedArtifact.display [ fhir:value "Condition verification status" ];
     fhir:RelatedArtifact.url [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-ver-status" ];
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-ver-status" ]     ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://terminology.hl7.org/CodeSystem/condition-ver-status";
       fhir:link <http://terminology.hl7.org/CodeSystem/condition-ver-status>     ]
  ];
  fhir:Library.parameter [
     fhir:index 0;
     fhir:ParameterDefinition.name [ fhir:value "Encounter" ];
     fhir:ParameterDefinition.use [ fhir:value "in" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "Encounter" ]
  ], [
     fhir:index 1;
     fhir:ParameterDefinition.name [ fhir:value "Patient" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "Patient" ]
  ], [
     fhir:index 2;
     fhir:ParameterDefinition.name [ fhir:value "Body Weight" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 3;
     fhir:ParameterDefinition.name [ fhir:value "Body Weight Change Assertion" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 4;
     fhir:ParameterDefinition.name [ fhir:value "Daily Body Weight" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Any" ]
  ], [
     fhir:index 5;
     fhir:ParameterDefinition.name [ fhir:value "Daily Body Weight Change" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Any" ]
  ], [
     fhir:index 6;
     fhir:ParameterDefinition.name [ fhir:value "Body Weight Change" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 7;
     fhir:ParameterDefinition.name [ fhir:value "Current Body Weight" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 8;
     fhir:ParameterDefinition.name [ fhir:value "Previous Body Weight" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 9;
     fhir:ParameterDefinition.name [ fhir:value "Current Body Weight Change" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "integer" ]
  ], [
     fhir:index 10;
     fhir:ParameterDefinition.name [ fhir:value "Urine Output" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 11;
     fhir:ParameterDefinition.name [ fhir:value "Current Urine Output" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 12;
     fhir:ParameterDefinition.name [ fhir:value "Net Intake/Output" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 13;
     fhir:ParameterDefinition.name [ fhir:value "Current Net Intake/Output" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "1" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 14;
     fhir:ParameterDefinition.name [ fhir:value "Jugular Venous Pressure" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 15;
     fhir:ParameterDefinition.name [ fhir:value "Oxygen Saturation" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 16;
     fhir:ParameterDefinition.name [ fhir:value "Potassium" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 17;
     fhir:ParameterDefinition.name [ fhir:value "Creatinine" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 18;
     fhir:ParameterDefinition.name [ fhir:value "eGFR" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Observation" ]
  ], [
     fhir:index 19;
     fhir:ParameterDefinition.name [ fhir:value "Eligibility Criteria" ];
     fhir:ParameterDefinition.use [ fhir:value "out" ];
     fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ];
     fhir:ParameterDefinition.max [ fhir:value "*" ];
     fhir:ParameterDefinition.type [ fhir:value "Condition" ]
  ];
  fhir:Library.dataRequirement [
     fhir:index 0;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         a loinc:29463-7;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "29463-7" ]       ]     ]
  ], [
     fhir:index 1;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes" ];
         fhir:Coding.code [ fhir:value "body-weight-change" ]       ]     ]
  ], [
     fhir:index 2;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         a loinc:9192-6;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "9192-6" ]       ]     ]
  ], [
     fhir:index 3;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes" ];
         fhir:Coding.code [ fhir:value "net-intake-output" ]       ]     ]
  ], [
     fhir:index 4;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes" ];
         fhir:Coding.code [ fhir:value "jvp" ]       ]     ]
  ], [
     fhir:index 5;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         a loinc:2708-6;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "2708-6" ]       ]     ]
  ], [
     fhir:index 6;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         a loinc:86919-8;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "86919-8" ];
         fhir:Coding.display [ fhir:value "Potassium goal [Moles/volume] Serum or Plasma" ]       ]     ]
  ], [
     fhir:index 7;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         a loinc:39802-4;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "39802-4" ];
         fhir:Coding.display [ fhir:value "Creatinine in dialysis fluid/Creatinine in serum or plasma" ]       ]     ]
  ], [
     fhir:index 8;
     fhir:DataRequirement.type [ fhir:value "Observation" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.code [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes" ];
         fhir:Coding.code [ fhir:value "egfr" ]       ]     ]
  ], [
     fhir:index 9;
     fhir:DataRequirement.type [ fhir:value "Condition" ];
     fhir:DataRequirement.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/Condition";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>     ]
  ];
  fhir:Library.content [
     fhir:index 0;
     fhir:Attachment.contentType [ fhir:value "text/cql" ];
     fhir:Attachment.data [ fhir:value "bGlicmFyeSBDSEYgdmVyc2lvbiAnMS4wLjAnDQoNCnVzaW5nIEZISVIgdmVyc2lvbiAnNC4wLjEnDQoNCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnDQoNCmNvZGVzeXN0ZW0gIlNOT01FRC1DVCI6ICdodHRwOi8vc25vbWVkLmluZm8vc2N0Jw0KY29kZXN5c3RlbSAiTE9JTkMiOiAnaHR0cDovL2xvaW5jLm9yZycNCmNvZGVzeXN0ZW0gIkNIRkNvZGVzIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY2hmLWNvZGVzJw0KY29kZXN5c3RlbSAiQ29uZGl0aW9uIENsaW5pY2FsIFN0YXR1cyBDb2RlIjogJ2h0dHA6Ly90ZXJtaW5vbG9neS5obDcub3JnL0NvZGVTeXN0ZW0vY29uZGl0aW9uLWNsaW5pY2FsJw0KY29kZXN5c3RlbSAiQ29uZGl0aW9uIFZlcmlmaWNhdGlvbiBTdGF0dXMgQ29kZSI6ICdodHRwOi8vdGVybWlub2xvZ3kuaGw3Lm9yZy9Db2RlU3lzdGVtL2NvbmRpdGlvbi12ZXItc3RhdHVzJw0KDQpjb2RlICJDb25nZXN0aXZlIGhlYXJ0IGZha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W5lICJFbGlnaWJpbGl0eSBDcml0ZXJpYSI6DQogIFtDb25kaXRpb25dIEMNCiAgICB3aGVyZSBDLmNvZGUgfiAiQ29uZ2VzdGl2ZSBoZWFydCBmYWlsdXJlIg0KICAgICAgYW5kIEMuY2xpbmljYWxTdGF0dXMgfiAiQWN0aXZlIGNvbmRpdGlvbiINCiAgICAgIGFuZCBDLnZlcmlmaWNhdGlvblN0YXR1cyB+ICJDb25maXJtZWQgY29uZGl0aW9uIg0KDQovLyBUT0RPOiBIYW5kbGUgY29udGFpbmVkIHJlZmVyZW5jZXMNCi8vIFRPRE86IEhhbmRsZSBidW5kbGUgcmVmZXJlbmNlcw0KLy8gVE9ETzogSGFuZGxlIHJlbW90ZSByZWZlcmVuY2VzDQpkZWZpbmUgZnVuY3Rpb24gcmVmZXJlbmNlcyhyZWZlcmVuY2UgUmVmZXJlbmNlLCBlbmNvdW50ZXIgRW5jb3VudGVyKToNCiAgRW5kc1dpdGgocmVmZXJlbmNlLnJlZmVyZW5jZSwgJy8nICsgZW5jb3VudGVyLmlkKQ0KDQpkZWZpbmUgZnVuY3Rpb24gcmVmZXJlbmNlVG8oZW5jb3VudGVyIEVuY291bnRlcik6DQogIFJlZmVyZW5jZSB7IHJlZmVyZW5jZTogc3RyaW5nIHsgdmFsdWU6ICdFbmNvdW50ZXIvJyArIGVuY291bnRlci5pZCB9IH0NCg0KZGVmaW5lIGZ1bmN0aW9uIHJlZmVyZW5jZVRvKHBhdGllbnQgUGF0aWVudCk6DQogIFJlZmVyZW5jZSB7IHJlZmVyZW5jZTogc3RyaW5nIHsgdmFsdWU6ICdQYXRpZW50LycgKyBwYXRpZW50LmlkIH0gfQ0K"^^xsd:base64Binary ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.