This page is part of the FHIR Specification (v3.0.2: STU 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
Clinical Decision Support Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Not linked to any defined compartments |
CMS146 Measure Logic
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir/Library/library-cms146-example> a fhir:Library; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "library-cms146-example"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Id: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">Library/library-cms146-example</td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Identifier: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <b>value: </b>\n <span>CMS146</span>\n </td>\n </tr>\n </table>\n <p/>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Version: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">2.0.0</td>\n </tr>\n </table>\n <p/>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Title: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">Appropriate Testing for Children with Pharyngitis</td>\n </tr>\n </table>\n <p/>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Type: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-right: 25px;\">\n <span>\n <span>\n <span style=\"padding-left: 25px;\">\n <b>code: </b>\n <span>logic-library</span>\n </span>\n </span>\n </span>\n </td>\n </tr>\n </table>\n <p/>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Status: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">draft</td>\n </tr>\n </table>\n <p/>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Description: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">Logic for CMS 146: Appropriate Testing for Children with Pharyngitis</td>\n </tr>\n </table>\n <p/>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Related: </b>\n </td>\n </tr>\n <tr style=\"vertical-align: top;\">\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>depends-on</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>Resource: </b>\n <br/>\n <span>\n <span style=\"padding-left: 25px;\">\n <b>reference: </b>\n <span>Library/library-quick-model-definition</span>\n </span>\n </span>\n </p>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>Patient</span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>Condition</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>category</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>diagnosis</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>clinicalStatus</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>confirmed</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>code</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.102.12.1011</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>Condition</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>category</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>diagnosis</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>clinicalStatus</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>confirmed</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>code</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.102.12.1012</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>Encounter</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>status</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>finished</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>class</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>ambulatory</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>type</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.101.12.1061</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>DiagnosticReport</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>diagnosis</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.198.12.1012</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>Medication</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>code</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.196.12.1001</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>MedicationRequest</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>status</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>active</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>medication.code</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.196.12.1001</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Data Requirements: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <div>\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>MedicationStatement</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>status</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>code:</b>\n <span>completed</span>\n </span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>code filter:</b>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>path: </b>\n <span>medication.code</span>\n </span>\n <br/>\n <span style=\"padding-left: 25px;\">\n <b>valueset: </b>\n <span>2.16.840.1.113883.3.464.1003.196.12.1001</span>\n </span>\n </p>\n </div>\n </td>\n </tr>\n </table>\n <table class=\"grid dict\">\n <tr>\n <td>\n <b>Content: </b>\n </td>\n </tr>\n <tr>\n <td style=\"padding-left: 25px; padding-right: 25px;\">\n <p style=\"margin-bottom: 5px;\">\n <b>type: </b>\n <span>text/cql</span>\n </p>\n <p style=\"margin-bottom: 5px;\">\n <b>url: </b>\n <span>library-cms146-example-content.cql</span>\n </p>\n </td>\n </tr>\n </table>\n </div>" ]; fhir:Library.identifier [ fhir:index 0; fhir:Identifier.use [ fhir:value "official" ]; fhir:Identifier.value [ fhir:value "CMS146" ] ]; fhir:Library.version [ fhir:value "2.0.0"]; fhir:Library.title [ fhir:value "Appropriate Testing for Children with Pharyngitis"]; fhir:Library.status [ fhir:value "draft"]; fhir:Library.type [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.code [ fhir:value "logic-library" ] ] ]; fhir:Library.date [ fhir:value "2015-07-22"^^xsd:date]; fhir:Library.description [ fhir:value "Logic for CMS 146: Appropriate Testing for Children with Pharyngitis"]; fhir:Library.relatedArtifact [ fhir:index 0; fhir:RelatedArtifact.type [ fhir:value "depends-on" ]; fhir:RelatedArtifact.resource [ fhir:link <http://hl7.org/fhir/Library/library-quick-model-definition>; fhir:Reference.reference [ fhir:value "Library/library-quick-model-definition" ] ] ]; fhir:Library.dataRequirement [ fhir:index 0; fhir:DataRequirement.type [ fhir:value "Patient" ] ], [ fhir:index 1; fhir:DataRequirement.type [ fhir:value "Condition" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "category" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "diagnosis"; fhir:index 0 ] ], [ fhir:index 1; fhir:DataRequirement.codeFilter.path [ fhir:value "clinicalStatus" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "confirmed"; fhir:index 0 ] ], [ fhir:index 2; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.102.12.1011" ] ] ], [ fhir:index 2; fhir:DataRequirement.type [ fhir:value "Condition" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "category" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "diagnosis"; fhir:index 0 ] ], [ fhir:index 1; fhir:DataRequirement.codeFilter.path [ fhir:value "clinicalStatus" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "confirmed"; fhir:index 0 ] ], [ fhir:index 2; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.102.12.1012" ] ] ], [ fhir:index 3; fhir:DataRequirement.type [ fhir:value "Encounter" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "status" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "finished"; fhir:index 0 ] ], [ fhir:index 1; fhir:DataRequirement.codeFilter.path [ fhir:value "class" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "ambulatory"; fhir:index 0 ] ], [ fhir:index 2; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.101.12.1061" ] ] ], [ fhir:index 4; fhir:DataRequirement.type [ fhir:value "DiagnosticReport" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "diagnosis" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.198.12.1012" ] ] ], [ fhir:index 5; fhir:DataRequirement.type [ fhir:value "Medication" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.196.12.1001" ] ] ], [ fhir:index 6; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "status" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "active"; fhir:index 0 ] ], [ fhir:index 1; fhir:DataRequirement.codeFilter.path [ fhir:value "medication.code" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.196.12.1001" ] ] ], [ fhir:index 7; fhir:DataRequirement.type [ fhir:value "MedicationStatement" ]; fhir:DataRequirement.codeFilter [ fhir:index 0; fhir:DataRequirement.codeFilter.path [ fhir:value "status" ]; fhir:DataRequirement.codeFilter.valueCode [ fhir:value "completed"; fhir:index 0 ] ], [ fhir:index 1; fhir:DataRequirement.codeFilter.path [ fhir:value "medication.code" ]; fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "2.16.840.1.113883.3.464.1003.196.12.1001" ] ] ]; fhir:Library.content [ fhir:index 0; fhir:Attachment.contentType [ fhir:value "text/cql" ]; fhir:Attachment.url [ fhir:value "library-cms146-example-content.cql" ] ] . <http://hl7.org/fhir/Library/library-quick-model-definition> a fhir:Library . # - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/Library/library-cms146-example.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://hl7.org/fhir/STU3/Library/library-cms146-example.ttl> . # -------------------------------------------------------------------------------------
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.