{

"resourceType": "Library",
"id": "library-cms146-example",
"identifier": [
  {
    "use": "official",
    "value": "CMS146"
  }
],
"version": "2.0.0",
"title": "Appropriate Testing for Children with Pharyngitis",
"status": "draft",
"type": {
  "coding": [
    {
      "code": "logic-library"
    }
  ]
},
"date": "2015-07-22",
"description": "Logic for CMS 146: Appropriate Testing for Children with Pharyngitis",
"relatedArtifact": [
  {
    "type": "depends-on",
    "resource": "Library/library-quick-model-definition"
  }
],
"dataRequirement": [
  {
    "type": "Patient"
  },
  {
    "type": "Condition",
    "codeFilter": [
      {
        "path": "category",
        "code": [
          {
            "code": "diagnosis"
          }
        ]
      },
      {
        "path": "clinicalStatus",
        "code": [
          {
            "code": "confirmed"
          }
        ]
      },
      {
        "path": "code",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.102.12.1011"
      }
    ]
  },
  {
    "type": "Condition",
    "codeFilter": [
      {
        "path": "category",
        "code": [
          {
            "code": "diagnosis"
          }
        ]
      },
      {
        "path": "clinicalStatus",
        "code": [
          {
            "code": "confirmed"
          }
        ]
      },
      {
        "path": "code",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.102.12.1012"
      }
    ]
  },
  {
    "type": "Encounter",
    "codeFilter": [
      {
        "path": "status",
        "code": [
          {
            "code": "finished"
          }
        ]
      },
      {
        "path": "class",
        "code": [
          {
            "code": "ambulatory"
          }
        ]
      },
      {
        "path": "type",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.101.12.1061"
      }
    ]
  },
  {
    "type": "DiagnosticReport",
    "codeFilter": [
      {
        "path": "diagnosis",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.198.12.1012"
      }
    ]
  },
  {
    "type": "Medication",
    "codeFilter": [
      {
        "path": "code",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"
      }
    ]
  },
  {
    "type": "MedicationRequest",
    "codeFilter": [
      {
        "path": "status",
        "code": [
          {
            "code": "active"
          }
        ]
      },
      {
        "path": "medication.code",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"
      }
    ]
  },
  {
    "type": "MedicationStatement",
    "codeFilter": [
      {
        "path": "status",
        "code": [
          {
            "code": "completed"
          }
        ]
      },
      {
        "path": "medication.code",
        "valueSet": "urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"
      }
    ]
  }
],
"content": [
  {
    "contentType": "text/cql",
    "url": "library-cms146-example-content.cql"
  }
],
"meta": {
  "tag": [
    {
      "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
      "code": "HTEST",
      "display": "test health data"
    }
  ]
}

}