STU3 Candidate

This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Library-cms146-example.json

Raw JSON (canonical form)

CMS146 Measure Logic

{
  "resourceType": "Library",
  "id": "library-cms146-example",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">CMS 146 Logic</div>"
  },
  "identifier": [
    {
      "use": "official",
      "value": "CMS146"
    }
  ],
  "version": "2.0.0",
  "title": "Appropriate Testing for Children with Pharyngitis",
  "type": {
    "coding": [
      {
        "code": "logic-library"
      }
    ]
  },
  "status": "draft",
  "date": "2015-07-22",
  "description": "Logic for CMS 146: Appropriate Testing for Children with Pharyngitis",
  "relatedArtifact": [
    {
      "type": "depends-on",
      "resource": {
        "reference": "Library/library-quick-model-definition"
      }
    }
  ],
  "dataRequirement": [
    {
      "type": "Condition",
      "codeFilter": [
        {
          "path": "code",
          "valueSetString": "Other Female Reproductive Conditions"
        }
      ]
    },
    {
      "type": "Patient"
    },
    {
      "type": "Condition",
      "codeFilter": [
        {
          "path": "category",
          "valueCode": [
            "diagnosis"
          ]
        },
        {
          "path": "clinicalStatus",
          "valueCode": [
            "confirmed"
          ]
        },
        {
          "path": "code",
          "valueSetString": "2.16.840.1.113883.3.464.1003.102.12.1011"
        }
      ]
    },
    {
      "type": "Condition",
      "codeFilter": [
        {
          "path": "category",
          "valueCode": [
            "diagnosis"
          ]
        },
        {
          "path": "clinicalStatus",
          "valueCode": [
            "confirmed"
          ]
        },
        {
          "path": "code",
          "valueSetString": "2.16.840.1.113883.3.464.1003.102.12.1012"
        }
      ]
    },
    {
      "type": "Encounter",
      "codeFilter": [
        {
          "path": "status",
          "valueCode": [
            "finished"
          ]
        },
        {
          "path": "class",
          "valueCode": [
            "ambulatory"
          ]
        },
        {
          "path": "type",
          "valueSetString": "2.16.840.1.113883.3.464.1003.101.12.1061"
        }
      ]
    },
    {
      "type": "DiagnosticReport",
      "codeFilter": [
        {
          "path": "diagnosis",
          "valueSetString": "2.16.840.1.113883.3.464.1003.198.12.1012"
        }
      ]
    },
    {
      "type": "Medication",
      "codeFilter": [
        {
          "path": "code",
          "valueSetString": "2.16.840.1.113883.3.464.1003.196.12.1001"
        }
      ]
    },
    {
      "type": "MedicationRequest",
      "codeFilter": [
        {
          "path": "status",
          "valueCode": [
            "active"
          ]
        },
        {
          "path": "medication.code",
          "valueSetString": "2.16.840.1.113883.3.464.1003.196.12.1001"
        }
      ]
    },
    {
      "type": "MedicationStatement",
      "codeFilter": [
        {
          "path": "status",
          "valueCode": [
            "completed"
          ]
        },
        {
          "path": "medication.code",
          "valueSetString": "2.16.840.1.113883.3.464.1003.196.12.1001"
        }
      ]
    }
  ],
  "content": [
    {
      "contentType": "text/cql",
      "url": "http://cqlrepository.org/CMS146.cql"
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.