STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). 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>CMS 146 Logic</div>"
  },
  "moduleMetadata": {
    "identifier": [
      {
        "use": "official",
        "value": "CMS146"
      }
    ],
    "version": "2.0.0",
    "title": "Appropriate Testing for Children with Pharyngitis",
    "type": "library",
    "status": "draft",
    "description": "Logic for CMS 146: Appropriate Testing for Children with Pharyngitis",
    "publicationDate": "2015-07-22"
  },
  "model": [
    {
      "identifier": "QUICK"
    }
  ],
  "valueSet": [
    {
      "name": "Female Administrative Sex",
      "identifier": "2.16.840.1.113883.3.560.100.2"
    }
  ],
  "dataRequirement": [
    {
      "fhir_comments": [
        "  ... other value sets as defined in the library  "
      ],
      "type": "Condition",
      "codeFilter": [
        {
          "path": "code",
          "valueSetString": "Other Female Reproductive Conditions"
        }
      ]
    },
    {
      "fhir_comments": [
        "  ... other data requirements as defined in the library  "
      ],
      "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": "MedicationOrder",
      "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"
        }
      ]
    }
  ],
  "document": {
    "contentType": "application/cql+text",
    "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.