This page is part of the Structured Data Capture FHIR IG (v4.0.0-ballot: STU 4 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions
Page standards status: Informative |
{
"resourceType" : "Library",
"id" : "sdc-CHF",
"meta" : {
"profile" : [
🔗 "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-library"
]
},
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">Congestive Heart Failure Logic</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">sdc-CHF</td>\n </tr>\n \n\n \n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">4.0.0-ballot</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"Library-sdc-CHF.html\">Congestive Heart Failure Logic</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n \n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>urn:oid:2.16.840.1.113883.4.642.40.17.28.1</span>\n </p>\n \n </td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Experimental: </b></th>\n <td style=\"padding-left: 4px;\">true</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>logic-library</span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>display: </b> <span>Logic Library</span>\n </p>\n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2020-11-29 15:54:22-0700</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">HL7 International / FHIR Infrastructure</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>Logic for an example congestive heart failure pathway</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Jurisdiction: </b></th>\n <td style=\"padding-left: 4px;\">001</td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Related Artifacts: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p><b>Dependencies</b></p>\n <ul>\n \n <li><a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a></li>\n \n <li><a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a></li>\n \n <li><a href=\"CodeSystem-chf-codes.html\">CHF Codes</a></li>\n \n <li><a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a></li>\n \n <li><a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-condition-ver-status.html\">ConditionVerificationStatus</a></li>\n \n </ul>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Parameters: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>\n \n <tr><th>Encounter</th><th>Encounter</th><th>0</th><th>1</th><th>In</th></tr>\n \n <tr><th>Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>\n \n <tr><th>Body Weight</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Body Weight Change Assertion</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Daily Body Weight</th><th>Resource</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Daily Body Weight Change</th><th>Resource</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Body Weight Change</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Current Body Weight</th><th>Observation</th><th>0</th><th>1</th><th>Out</th></tr>\n \n <tr><th>Previous Body Weight</th><th>Observation</th><th>0</th><th>1</th><th>Out</th></tr>\n \n <tr><th>Current Body Weight Change</th><th>integer</th><th>0</th><th>1</th><th>Out</th></tr>\n \n <tr><th>Urine Output</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Current Urine Output</th><th>Observation</th><th>0</th><th>1</th><th>Out</th></tr>\n \n <tr><th>Net Intake/Output</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Current Net Intake/Output</th><th>Observation</th><th>0</th><th>1</th><th>Out</th></tr>\n \n <tr><th>Jugular Venous Pressure</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Oxygen Saturation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Potassium</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Creatinine</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>eGFR</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n \n <tr><th>Eligibility Criteria</th><th>Condition</th><th>0</th><th>*</th><th>Out</th></tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Data Requirements:</b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"https://loinc.org/\">http://loinc.org</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>29463-7</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://example.org/CodeSystem/chf-codes\">http://example.org/CodeSystem/chf-codes</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>body-weight-change</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"https://loinc.org/\">http://loinc.org</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>9192-6</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://example.org/CodeSystem/chf-codes\">http://example.org/CodeSystem/chf-codes</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>net-intake-output</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://example.org/CodeSystem/chf-codes\">http://example.org/CodeSystem/chf-codes</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>jvp</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"https://loinc.org/\">http://loinc.org</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>2708-6</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"https://loinc.org/\">http://loinc.org</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>86919-8</span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>display: </b> <span>Potassium goal [Moles/volume] Serum or Plasma</span>\n </p>\n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"https://loinc.org/\">http://loinc.org</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>39802-4</span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>display: </b> <span>Creatinine in dialysis fluid/Creatinine in serum or plasma</span>\n </p>\n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Observation</th>\n <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n <th/>\n <th>\n \n <b>code filter: </b>\n \n <br/>\n \n \n <span style=\"padding-left: 4px;\">\n <b>path: </b><span>code</span>\n </span>\n \n <br/>\n \n \n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://example.org/CodeSystem/chf-codes\">http://example.org/CodeSystem/chf-codes</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>egfr</span>\n </p>\n \n \n \n \n </th>\n </tr>\n \n <tr>\n <th>Condition</th>\n <th>http://hl7.org/fhir/StructureDefinition/Condition</th>\n <th/>\n <th>\n \n </th>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n \n <tr>\n <td colspan=\"2\">\n <table>\n <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n <tr><td><pre><code class=\"language-cql\">library CHF version '1.0.0'\r\n\r\nusing FHIR version '4.0.1'\r\n\r\ninclude FHIRHelpers version '4.0.1'\r\n\r\ncodesystem "SNOMED-CT": 'http://snomed.info/sct'\r\ncodesystem "LOINC": 'http://loinc.org'\r\ncodesystem "CHFCodes": 'http://hl7.org/fhir/uv/cpg/CodeSystem/chf-codes'\r\ncodesystem "Condition Clinical Status Code": 'http://terminology.hl7.org/CodeSystem/condition-clinical'\r\ncodesystem "Condition Verification Status Code": 'http://terminology.hl7.org/CodeSystem/condition-ver-status'\r\n\r\ncode "Congestive heart failure": '42343007' from "SNOMED-CT"\r\n\r\ncode "Body weight": '29463-7' from "LOINC"\r\ncode "Body weight change": 'body-weight-change' from "CHFCodes"\r\ncode "Urine output": '9192-6' from "LOINC"\r\ncode "Net intake/output": 'net-intake-output' from "CHFCodes"\r\ncode "Jugular venous pressure": 'jvp' from "CHFCodes"\r\ncode "Oxygen saturation": '2708-6' from "LOINC"\r\ncode "Potassium goal": '86919-8' from "LOINC" display 'Potassium goal [Moles/volume] Serum or Plasma' // meq/L\r\ncode "Creatinine in serum": '39802-4' from "LOINC" display 'Creatinine in serum or plasma' // NOTE: example shows mg/dL, but no LOINC code has those units?\r\ncode "eGFR result": 'egfr' from "CHFCodes" // NOTE: Too many to pick from, needs clinical/terminological SME input, in mol/mm/m2\r\n\r\ncode "Active condition": 'active' from "Condition Clinical Status Code"\r\ncode "Provisional condition": 'provisional' from "Condition Verification Status Code"\r\ncode "Confirmed condition": 'confirmed' from "Condition Verification Status Code"\r\n\r\nparameter Encounter Encounter\r\n\r\ncontext Patient\r\n\r\n// Case Features\r\ndefine "Body Weight":\r\n [Observation: "Body weight"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Body Weight Change Assertion":\r\n [Observation: "Body weight change"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Body Weight Change":\r\n "Daily Body Weight Change" WC\r\n return Observation {\r\n id: id { value: Encounter.id + '-bodyweight-change' + ToString(WC.date) },\r\n extension: {\r\n Extension {\r\n url: url { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-instantiatesCaseFeature' },\r\n value: canonical { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/chf-bodyweight-change' }\r\n },\r\n Extension {\r\n url: url { value: 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-caseFeatureType' },\r\n value: code { value: 'asserted' }\r\n }\r\n },\r\n status: ObservationStatus { value: 'final' },\r\n code: CodeableConcept {\r\n coding: {\r\n Coding {\r\n system: uri { value: 'http://hl7.org/fhir/uv/cpg/CodeSystem/chf-codes' },\r\n code: code { value: 'body-weight-change' }\r\n }\r\n }\r\n },\r\n effective: dateTime { value: WC.date },\r\n issued: instant { value: Now() },\r\n subject: referenceTo(Patient),\r\n encounter: referenceTo(Encounter),\r\n value: Quantity {\r\n value: decimal { value: WC.change.value },\r\n unit: string { value: WC.change.unit },\r\n system: uri { value: 'http://unitsofmeasure.org' },\r\n code: code { value: WC.change.unit }\r\n }\r\n }\r\n\r\ndefine "Daily Body Weight":\r\n (expand Encounter.period per day) Date\r\n let maxWeight: Max("Body Weight" WT where WT.issued same day as Date return WT.value as FHIR.Quantity)\r\n return { date: Date, weight: maxWeight }\r\n\r\ndefine "Daily Body Weight Change":\r\n "Daily Body Weight" WT\r\n let priorWeight: First("Daily Body Weight" PWT where PWT.date < WT.date sort by date descending).weight\r\n return { date: WT.date, weight: WT.weight, priorWeight: priorWeight, change: WT.weight - priorWeight}\r\n\r\ndefine "Current Body Weight":\r\n First("Body Weight" WT where WT.issued same day as Today() sort by issued descending)\r\n\r\ndefine "Previous Body Weight":\r\n First("Body Weight" WT where WT.issued 1 day before day of Today() sort by issued descending)\r\n\r\ndefine "Current Body Weight Change":\r\n "Current Body Weight".value - "Previous Body Weight".value\r\n\r\ndefine "Urine Output":\r\n [Observation: "Urine output"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Current Urine Output":\r\n First("Urine Output" UO where UO.issued same day as Today() sort by issued descending)\r\n\r\ndefine "Net Intake/Output":\r\n [Observation: "Net intake/output"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Current Net Intake/Output":\r\n First("Net Intake/Output" IO where IO.issued same day as Today() sort by issued descending)\r\n\r\ndefine "Jugular Venous Pressure":\r\n [Observation: "Jugular venous pressure"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Oxygen Saturation":\r\n [Observation: "Oxygen saturation"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Potassium":\r\n [Observation: "Potassium goal"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "Creatinine":\r\n [Observation: "Creatinine in serum"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\ndefine "eGFR":\r\n [Observation: "eGFR result"] O\r\n where O.status = 'final'\r\n and references(O.encounter, Encounter)\r\n\r\n\r\n// Eligibility Criteria\r\ndefine "Eligibility Criteria":\r\n [Condition] C\r\n where C.code ~ "Congestive heart failure"\r\n and C.clinicalStatus ~ "Active condition"\r\n and C.verificationStatus ~ "Confirmed condition"\r\n\r\n// TODO: Handle contained references\r\n// TODO: Handle bundle references\r\n// TODO: Handle remote references\r\ndefine function references(reference Reference, encounter Encounter):\r\n EndsWith(reference.reference, '/' + encounter.id)\r\n\r\ndefine function referenceTo(encounter Encounter):\r\n Reference { reference: string { value: 'Encounter/' + encounter.id } }\r\n\r\ndefine function referenceTo(patient Patient):\r\n Reference { reference: string { value: 'Patient/' + patient.id } }\r\n</code></pre></td></tr>\n </table>\n </td>\n </tr>\n \n \n \n </table>\n</div>\n</div>"
},
"url" : "http://hl7.org/fhir/uv/sdc/Library/sdc-CHF",
"identifier" : [
{
"system" : "urn:ietf:rfc:3986",
"value" : "urn:oid:2.16.840.1.113883.4.642.40.17.28.1"
}
],
"version" : "4.0.0-ballot",
"name" : "CHF",
"title" : "Congestive Heart Failure Logic",
"status" : "active",
"experimental" : true,
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "logic-library",
"display" : "Logic Library"
}
]
},
"date" : "2020-11-29T15:54:22-07:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"name" : "HL7 International / FHIR Infrastructure",
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
},
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "Logic for an example congestive heart failure pathway",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001",
"display" : "World"
}
]
}
],
"relatedArtifact" : [
{
"type" : "depends-on",
"display" : "SNOMED CT",
"url" : "http://snomed.info/sct",
"document" : {
"url" : "http://snomed.info/sct"
},
"resource" : "http://snomed.info/sct"
},
{
"type" : "depends-on",
"display" : "LOINC",
"url" : "http://loinc.org",
"document" : {
"url" : "http://loinc.org"
},
"resource" : "http://loinc.org"
},
{
"type" : "depends-on",
"display" : "Congestive heart failure codes",
"url" : "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes",
"document" : {
"url" : "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes"
},
"resource" : "http://hl7.org/fhir/uv/sdc/CodeSystem/chf-codes"
},
{
"type" : "depends-on",
"display" : "Clinical condition codes",
"url" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"document" : {
"url" : "http://terminology.hl7.org/CodeSystem/condition-clinical"
},
"resource" : "http://terminology.hl7.org/CodeSystem/condition-clinical"
},
{
"type" : "depends-on",
"display" : "Condition verification status",
"url" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"document" : {
"url" : "http://terminology.hl7.org/CodeSystem/condition-ver-status"
},
"resource" : "http://terminology.hl7.org/CodeSystem/condition-ver-status"
}
],
"parameter" : [
{
"name" : "Encounter",
"use" : "in",
"min" : 0,
"max" : "1",
"type" : "Encounter"
},
{
"name" : "Patient",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "Patient"
},
{
"name" : "Body Weight",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Body Weight Change Assertion",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Daily Body Weight",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "Daily Body Weight Change",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "Body Weight Change",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Current Body Weight",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "Observation"
},
{
"name" : "Previous Body Weight",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "Observation"
},
{
"name" : "Current Body Weight Change",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "integer"
},
{
"name" : "Urine Output",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Current Urine Output",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "Observation"
},
{
"name" : "Net Intake/Output",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Current Net Intake/Output",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "Observation"
},
{
"name" : "Jugular Venous Pressure",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Oxygen Saturation",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Potassium",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Creatinine",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "eGFR",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Observation"
},
{
"name" : "Eligibility Criteria",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Condition"
}
],
"dataRequirement" : [
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "29463-7"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://example.org/CodeSystem/chf-codes",
"code" : "body-weight-change"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "9192-6"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://example.org/CodeSystem/chf-codes",
"code" : "net-intake-output"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://example.org/CodeSystem/chf-codes",
"code" : "jvp"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "2708-6"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "86919-8",
"display" : "Potassium goal [Moles/volume] Serum or Plasma"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://loinc.org",
"code" : "39802-4",
"display" : "Creatinine in dialysis fluid/Creatinine in serum or plasma"
}
]
}
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Observation"
],
"codeFilter" : [
{
"path" : "code",
"code" : [
{
"system" : "http://example.org/CodeSystem/chf-codes",
"code" : "egfr"
}
]
}
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
]
}
],
"content" : [
{
"contentType" : "text/cql",
"data" : "bGlicmFyeSBDSEYgdmVyc2lvbiAnMS4wLjAnDQoNCnVzaW5nIEZISVIgdmVyc2lvbiAnNC4wLjEnDQoNCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnDQoNCmNvZGVzeXN0ZW0gIlNOT01FRC1DVCI6ICdodHRwOi8vc25vbWVkLmluZm8vc2N0Jw0KY29kZXN5c3RlbSAiTE9JTkMiOiAnaHR0cDovL2xvaW5jLm9yZycNCmNvZGVzeXN0ZW0gIkNIRkNvZGVzIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY2hmLWNvZGVzJw0KY29kZXN5c3RlbSAiQ29uZGl0aW9uIENsaW5pY2FsIFN0YXR1cyBDb2RlIjogJ2h0dHA6Ly90ZXJtaW5vbG9neS5obDcub3JnL0NvZGVTeXN0ZW0vY29uZGl0aW9uLWNsaW5pY2FsJw0KY29kZXN5c3RlbSAiQ29uZGl0aW9uIFZlcmlmaWNhdGlvbiBTdGF0dXMgQ29kZSI6ICdodHRwOi8vdGVybWlub2xvZ3kuaGw3Lm9yZy9Db2RlU3lzdGVtL2NvbmRpdGlvbi12ZXItc3RhdHVzJw0KDQpjb2RlICJDb25nZXN0aXZlIGhlYXJ0IGZhaWx1cmUiOiAnNDIzNDMwMDcnIGZyb20gIlNOT01FRC1DVCINCg0KY29kZSAiQm9keSB3ZWlnaHQiOiAnMjk0NjMtNycgZnJvbSAiTE9JTkMiDQpjb2RlICJCb2R5IHdlaWdodCBjaGFuZ2UiOiAnYm9keS13ZWlnaHQtY2hhbmdlJyBmcm9tICJDSEZDb2RlcyINCmNvZGUgIl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