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.ttl

Raw Turtle, JSON-LD

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 xs: <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:Library.moduleMetadata [
     fhir:ModuleMetadata.identifier [
       fhir:index 0;
       fhir:Identifier.use [ fhir:value "official" ];
       fhir:Identifier.value [ fhir:value "CMS146" ]     ];
     fhir:ModuleMetadata.version [ fhir:value "2.0.0" ];
     fhir:ModuleMetadata.title [ fhir:value "Appropriate Testing for Children with Pharyngitis" ];
     fhir:ModuleMetadata.type [ fhir:value "library" ];
     fhir:ModuleMetadata.status [ fhir:value "draft" ];
     fhir:ModuleMetadata.description [ fhir:value "Logic for CMS 146: Appropriate Testing for Children with Pharyngitis" ];
     fhir:ModuleMetadata.publicationDate [ fhir:value "2015-07-22"^^xs:date ]
  ];
  fhir:Library.model [
     fhir:index 0;
     fhir:Library.model.identifier [ fhir:value "QUICK" ]
  ];
  fhir:Library.valueSet [
     fhir:index 0;
     fhir:Library.valueSet.name [ fhir:value "Female Administrative Sex" ];
     fhir:Library.valueSet.identifier [ fhir:value "2.16.840.1.113883.3.560.100.2" ]
  ];
  fhir:Library.dataRequirement [
     fhir:index 0;
     fhir:DataRequirement.type [ fhir:value "Condition" ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "code" ];
       fhir:DataRequirement.codeFilter.valueSetString [ fhir:value "Other Female Reproductive Conditions" ]     ]
  ];
  fhir:Library.dataRequirement [
     fhir:index 1;
     fhir:DataRequirement.type [ fhir:value "Patient" ]
  ];
  fhir:Library.dataRequirement [
     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:DataRequirement.codeFilter [
       fhir:index 1;
       fhir:DataRequirement.codeFilter.path [ fhir:value "clinicalStatus" ];
       fhir:DataRequirement.codeFilter.valueCode [
         fhir:value "confirmed";
         fhir:index 0       ]     ];
     fhir:DataRequirement.codeFilter [
       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:Library.dataRequirement [
     fhir:index 3;
     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:DataRequirement.codeFilter [
       fhir:index 1;
       fhir:DataRequirement.codeFilter.path [ fhir:value "clinicalStatus" ];
       fhir:DataRequirement.codeFilter.valueCode [
         fhir:value "confirmed";
         fhir:index 0       ]     ];
     fhir:DataRequirement.codeFilter [
       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:Library.dataRequirement [
     fhir:index 4;
     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:DataRequirement.codeFilter [
       fhir:index 1;
       fhir:DataRequirement.codeFilter.path [ fhir:value "class" ];
       fhir:DataRequirement.codeFilter.valueCode [
         fhir:value "ambulatory";
         fhir:index 0       ]     ];
     fhir:DataRequirement.codeFilter [
       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:Library.dataRequirement [
     fhir:index 5;
     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:Library.dataRequirement [
     fhir:index 6;
     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:Library.dataRequirement [
     fhir:index 7;
     fhir:DataRequirement.type [ fhir:value "MedicationOrder" ];
     fhir:DataRequirement.codeFilter [
       fhir:index 0;
       fhir:DataRequirement.codeFilter.path [ fhir:value "status" ];
       fhir:DataRequirement.codeFilter.valueCode [
         fhir:value "active";
         fhir:index 0       ]     ];
     fhir:DataRequirement.codeFilter [
       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.dataRequirement [
     fhir:index 8;
     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:DataRequirement.codeFilter [
       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.document [
     fhir:Attachment.contentType [ fhir:value "application/cql+text" ];
     fhir:Attachment.url [ fhir:value "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.