LinuxForHealth FHIR Implementation Guide
8.0.0 - draft United States of America flag

LinuxForHealth FHIR Implementation Guide - Local Development build (v8.0.0). See the Directory of published versions

: CDM Library Example - JSON Representation

Draft as of 2015-07-22

Raw json | Download


{
  "resourceType" : "Library",
  "id" : "CDMLibraryInstance",
  "meta" : {
    "profile" : [
      "http://linuxforhealth.org/fhir/cdm/StructureDefinition/cdm-library"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>Related Artifacts</h2><table class=\"grid\"><tr><td>depends-on</td><td>FHIR Helpers</td><td><code>https://www.hl7.org/fhir/library-fhir-helpers.html</code></td></tr></table><h2>Parameters</h2><table class=\"grid\"><tr><td>measurePeriod</td><td>out</td><td></td><td></td><td>Period</td></tr><tr><td>complianceDisplayName</td><td>out</td><td></td><td></td><td>string</td></tr><tr><td>complianceFrequency</td><td>out</td><td></td><td></td><td>string</td></tr></table><h2>Data Requirements</h2><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a></td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>category</td><td>One of these codes: <a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-condition-category.html#condition-category-encounter-diagnosis\">Condition Category Codes</a> encounter-diagnosis: Encounter Diagnosis</td></tr><tr><td>clinicalStatus</td><td>One of these codes: <a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-condition-clinical.html#condition-clinical-active\">Condition Clinical Status Codes</a> active: Active</td></tr><tr><td>code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.102.12.1011</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>category</td><td>One of these codes: <a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-condition-category.html#condition-category-encounter-diagnosis\">Condition Category Codes</a> encounter-diagnosis: Encounter Diagnosis</td></tr><tr><td>clinicalStatus</td><td>One of these codes: <a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-condition-clinical.html#condition-clinical-active\">Condition Clinical Status Codes</a> active: Active</td></tr><tr><td>code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.102.12.1012</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>status</td><td>One of these codes: <a href=\"http://hl7.org/fhir/R4/codesystem-encounter-status.html#encounter-status-finished\">EncounterStatus</a> finished: Finished</td></tr><tr><td>class</td><td>One of these codes: <a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB\">ActCode</a> AMB: ambulatory</td></tr><tr><td>type</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.101.12.1061</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/diagnosticreport.html\">DiagnosticReport</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>diagnosis</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.198.12.1012</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001</td></tr></table><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>status</td><td>One of these codes: <a href=\"http://hl7.org/fhir/R4/codesystem-medicationrequest-status.html#medicationrequest-status-active\">Medicationrequest  status</a> active: Active</td></tr><tr><td>medication.code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001</td></tr></table><h2>Contents</h2><p>CMS146 Example CQL: <code>No Content</code> (<code>text/cql</code>)</p></div>"
  },
  "url" : "http://linuxforhealth.org/fhir/cdm/Library/CDMLibraryInstance",
  "identifier" : [
    {
      "use" : "official",
      "type" : {
        "coding" : [
          {
            "system" : "http://linuxforhealth.org/fhir/cdm/CodeSystem/identifier-type",
            "code" : "SSRI"
          }
        ]
      },
      "system" : "http://linuxforhealth.org/platform/cql-library",
      "value" : "sample-library-CMS146",
      "assigner" : {
        "display" : "HDC"
      }
    }
  ],
  "version" : "8.0.0",
  "name" : "CMS146_Sample_Cql_Logic_Library",
  "title" : "Sample CQL Logic Library for CMS146",
  "status" : "draft",
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2015-07-22",
  "publisher" : "LinuxForHealth Team",
  "description" : "Sample CMS146 library for sample measures used to illustrate LinuxForHealth CDM IG usage",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US"
        }
      ]
    }
  ],
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "display" : "FHIR Helpers",
      "resource" : "https://www.hl7.org/fhir/library-fhir-helpers.html"
    }
  ],
  "parameter" : [
    {
      "name" : "measurePeriod",
      "use" : "out",
      "type" : "Period"
    },
    {
      "extension" : [
        {
          "url" : "http://linuxforhealth.org/fhir/cdm/StructureDefinition/default-value",
          "valueString" : "Pharyngitis Testing"
        }
      ],
      "name" : "complianceDisplayName",
      "use" : "out",
      "type" : "string"
    },
    {
      "extension" : [
        {
          "url" : "http://linuxforhealth.org/fhir/cdm/StructureDefinition/default-value",
          "valueString" : "Once yearly"
        }
      ],
      "name" : "complianceFrequency",
      "use" : "out",
      "type" : "string"
    }
  ],
  "dataRequirement" : [
    {
      "type" : "Patient"
    },
    {
      "type" : "Condition",
      "codeFilter" : [
        {
          "path" : "category",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/condition-category",
              "code" : "encounter-diagnosis"
            }
          ]
        },
        {
          "path" : "clinicalStatus",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code" : "active"
            }
          ]
        },
        {
          "path" : "code",
          "valueSet" : "urn:oid:2.16.840.1.113883.3.464.1003.102.12.1011"
        }
      ]
    },
    {
      "type" : "Condition",
      "codeFilter" : [
        {
          "path" : "category",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/condition-category",
              "code" : "encounter-diagnosis"
            }
          ]
        },
        {
          "path" : "clinicalStatus",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code" : "active"
            }
          ]
        },
        {
          "path" : "code",
          "valueSet" : "urn:oid:2.16.840.1.113883.3.464.1003.102.12.1012"
        }
      ]
    },
    {
      "type" : "Encounter",
      "codeFilter" : [
        {
          "path" : "status",
          "code" : [
            {
              "system" : "http://hl7.org/fhir/encounter-status",
              "code" : "finished"
            }
          ]
        },
        {
          "path" : "class",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
              "code" : "AMB"
            }
          ]
        },
        {
          "path" : "type",
          "valueSet" : "urn:oid:2.16.840.1.113883.3.464.1003.101.12.1061"
        }
      ]
    },
    {
      "type" : "DiagnosticReport",
      "codeFilter" : [
        {
          "path" : "diagnosis",
          "valueSet" : "urn:oid:2.16.840.1.113883.3.464.1003.198.12.1012"
        }
      ]
    },
    {
      "type" : "Medication",
      "codeFilter" : [
        {
          "path" : "code",
          "valueSet" : "urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"
        }
      ]
    },
    {
      "type" : "MedicationRequest",
      "codeFilter" : [
        {
          "path" : "status",
          "code" : [
            {
              "system" : "http://hl7.org/fhir/CodeSystem/medicationrequest-status",
              "code" : "active"
            }
          ]
        },
        {
          "path" : "medication.code",
          "valueSet" : "urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"
        }
      ]
    }
  ],
  "content" : [
    {
      "contentType" : "text/cql",
      "title" : "CMS146 Example CQL"
    }
  ]
}