PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.crmi@1.0.0-ballot
    http://hl7.org/fhir/uv/crmi/Library/moduledefinition-example
{
  "description": "This library is used as an example module definition in the FHIR Quality Measure Implementation Guide",
  "_filename": "example/Library-moduledefinition-example.json",
  "package_name": "hl7.fhir.uv.crmi",
  "date": "2019-09-03",
  "dataRequirement": [ {
    "type": "Patient",
    "profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ],
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern",
      "valueString": "Patient?_id={{context.patientId}}"
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-valueFilter",
      "extension": [ {
        "url": "path",
        "valueString": "url"
      }, {
        "url": "comparator",
        "valueCode": "eq"
      }, {
        "url": "value",
        "valueString": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"
      } ]
    } ]
  }, {
    "type": "Encounter",
    "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern",
      "valueString": "Encounter?status=finished&subject=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
    } ],
    "codeFilter": [ {
      "path": "type",
      "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
    } ]
  }, {
    "type": "Condition",
    "profile": [ "http://hl7.org/fhir/StructureDefinition/Condition" ],
    "codeFilter": [ {
      "path": "id"
    } ]
  }, {
    "type": "Coverage",
    "profile": [ "http://hl7.org/fhir/StructureDefinition/Coverage" ],
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern",
      "valueString": "Coverage?policy-holder=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
    } ],
    "codeFilter": [ {
      "path": "type",
      "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
    } ]
  } ],
  "meta": {
    "profile": [ "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary" ]
  },
  "publisher": "Clinical Decision Support WG",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "EXMLogicModuleDefinition",
  "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/library-type\\\", :code \\\"module-definition\\\"}]}",
  "experimental": "true",
  "resourceType": "Library",
  "title": "Example Logic Library - Module Definition",
  "package_version": "1.0.0-ballot",
  "status": "active",
  "id": "b84a55c7-999f-493e-b0fc-4d830aaef453",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/crmi/Library/moduledefinition-example",
  "identifier": [ {
    "use": "official",
    "value": "EXMLogic",
    "system": "http://example.org/fhir/cqi/ecqm/Library/Identifier"
  } ],
  "version": "1.0.0-ballot",
  "relatedArtifact": [ {
    "type": "depends-on",
    "display": "FHIR model information",
    "resource": "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
  }, {
    "type": "depends-on",
    "display": "Library FHIRHelpers",
    "resource": "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
  }, {
    "type": "depends-on",
    "display": "Code system Diagnosis Role",
    "resource": "http://terminology.hl7.org/CodeSystem/diagnosis-role"
  }, {
    "type": "depends-on",
    "display": "Value set Emergency Department Visit",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
  }, {
    "type": "depends-on",
    "display": "Value set Psychiatric/Mental Health Patient",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299"
  }, {
    "type": "depends-on",
    "display": "Value set Hospital Settings",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126"
  }, {
    "type": "depends-on",
    "display": "Value set ONC Administrative Sex",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1"
  }, {
    "type": "depends-on",
    "display": "Value set Race",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836"
  }, {
    "type": "depends-on",
    "display": "Value set Ethnicity",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837"
  }, {
    "type": "depends-on",
    "display": "Value set Payer",
    "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
  } ],
  "contact": [ {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/dss",
      "system": "url"
    } ]
  } ],
  "parameter": [ {
    "max": "1",
    "min": 0,
    "use": "in",
    "name": "Measurement Period",
    "type": "Period"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "Patient",
    "type": "Patient"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Inpatient Encounter",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Initial Population",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Measure Population",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Stratifier 1",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Stratifier 2",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Stratifier 3",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "Stratifier 4",
    "type": "Encounter"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "SDE Ethnicity",
    "type": "Coding"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "SDE Payer",
    "type": "Resource"
  }, {
    "max": "*",
    "min": 0,
    "use": "out",
    "name": "SDE Race",
    "type": "Coding"
  }, {
    "max": "1",
    "min": 0,
    "use": "out",
    "name": "SDE Sex",
    "type": "Coding"
  } ]
}