Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 1.5.3 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cql/ and changes regularly. See the Directory of published versions
{
"library" : {
"identifier" : {
"id" : "ChlamydiaScreening_Common",
"version" : "2"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "System",
"uri" : "urn:hl7-org:elm-types:r1"
}, {
"localIdentifier" : "QUICK",
"uri" : "http://hl7.org/fhir"
} ]
},
"valueSets" : {
"def" : [ {
"name" : "Female Administrative Sex",
"id" : "2.16.840.1.113883.3.560.100.2",
"accessLevel" : "Public"
}, {
"name" : "Other Female Reproductive Conditions",
"id" : "2.16.840.1.113883.3.464.1003.111.12.1006",
"accessLevel" : "Public"
}, {
"name" : "Genital Herpes",
"id" : "2.16.840.1.113883.3.464.1003.110.12.1049",
"accessLevel" : "Public"
}, {
"name" : "Genococcal Infections and Venereal Diseases",
"id" : "2.16.840.1.113883.3.464.1003.112.12.1001",
"accessLevel" : "Public"
}, {
"name" : "Inflammatory Diseases of Female Reproductive Organs",
"id" : "2.16.840.1.113883.3.464.1003.112.12.1004",
"accessLevel" : "Public"
}, {
"name" : "Chlamydia",
"id" : "2.16.840.1.113883.3.464.1003.112.12.1003",
"accessLevel" : "Public"
}, {
"name" : "HIV",
"id" : "2.16.840.1.113883.3.464.1003.120.12.1003",
"accessLevel" : "Public"
}, {
"name" : "Syphilis",
"id" : "2.16.840.1.113883.3.464.1003.112.12.1002",
"accessLevel" : "Public"
}, {
"name" : "Complications of Pregnancy, Childbirth and the Puerperium",
"id" : "2.16.840.1.113883.3.464.1003.111.12.1012",
"accessLevel" : "Public"
}, {
"name" : "Pregnancy Test",
"id" : "2.16.840.1.113883.3.464.1003.111.12.1011",
"accessLevel" : "Public"
}, {
"name" : "Pap Test",
"id" : "2.16.840.1.113883.3.464.1003.108.12.1017",
"accessLevel" : "Public"
}, {
"name" : "Lab Tests During Pregnancy",
"id" : "2.16.840.1.113883.3.464.1003.111.12.1007",
"accessLevel" : "Public"
}, {
"name" : "Lab Tests for Sexually Transmitted Infections",
"id" : "2.16.840.1.113883.3.464.1003.110.12.1051",
"accessLevel" : "Public"
}, {
"name" : "Chlamydia Screening",
"id" : "2.16.840.1.113883.3.464.1003.110.12.1052",
"accessLevel" : "Public"
} ]
},
"statements" : {
"def" : [ {
"name" : "Patient",
"context" : "Patient",
"expression" : {
"type" : "SingletonFrom",
"operand" : {
"dataType" : "{http://hl7.org/fhir}Patient",
"templateId" : "patient-qicore-qicore-patient",
"type" : "Retrieve"
}
}
}, {
"name" : "Conditions Indicating Sexual Activity",
"context" : "Patient",
"accessLevel" : "Public",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Other Female Reproductive Conditions",
"type" : "ValueSetRef"
}
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Genital Herpes",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Genococcal Infections and Venereal Diseases",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Inflammatory Diseases of Female Reproductive Organs",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Chlamydia",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "HIV",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Syphilis",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}Condition",
"templateId" : "condition-qicore-qicore-condition",
"codeProperty" : "code",
"type" : "Retrieve",
"codes" : {
"name" : "Complications of Pregnancy, Childbirth and the Puerperium",
"type" : "ValueSetRef"
}
} ]
}
}, {
"name" : "Laboratory Tests Indicating Sexual Activity",
"context" : "Patient",
"accessLevel" : "Public",
"expression" : {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"type" : "Union",
"operand" : [ {
"dataType" : "{http://hl7.org/fhir}DiagnosticOrder",
"templateId" : "diagnosticorder-qicore-qicore-diagnosticorder",
"codeProperty" : "item[].code",
"type" : "Retrieve",
"codes" : {
"name" : "Pregnancy Test",
"type" : "ValueSetRef"
}
}, {
"dataType" : "{http://hl7.org/fhir}DiagnosticOrder",
"templateId" : "diagnosticorder-qicore-qicore-diagnosticorder",
"codeProperty" : "item[].code",
"type" : "Retrieve",
"codes" : {
"name" : "Pap Test",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}DiagnosticOrder",
"templateId" : "diagnosticorder-qicore-qicore-diagnosticorder",
"codeProperty" : "item[].code",
"type" : "Retrieve",
"codes" : {
"name" : "Lab Tests During Pregnancy",
"type" : "ValueSetRef"
}
} ]
}, {
"dataType" : "{http://hl7.org/fhir}DiagnosticOrder",
"templateId" : "diagnosticorder-qicore-qicore-diagnosticorder",
"codeProperty" : "item[].code",
"type" : "Retrieve",
"codes" : {
"name" : "Lab Tests for Sexually Transmitted Infections",
"type" : "ValueSetRef"
}
} ]
}
}, {
"name" : "Tests Performed For Chlamydia",
"context" : "Patient",
"accessLevel" : "Public",
"expression" : {
"dataType" : "{http://hl7.org/fhir}DiagnosticReport",
"templateId" : "diagnosticreport-qicore-qicore-diagnosticreport",
"codeProperty" : "name",
"type" : "Retrieve",
"codes" : {
"name" : "Chlamydia Screening",
"type" : "ValueSetRef"
}
}
}, {
"name" : "Results Present For Chlamydia Screening",
"context" : "Patient",
"accessLevel" : "Public",
"expression" : {
"type" : "Query",
"source" : [ {
"alias" : "R",
"expression" : {
"dataType" : "{http://hl7.org/fhir}DiagnosticReport",
"templateId" : "diagnosticreport-qicore-qicore-diagnosticreport",
"codeProperty" : "name",
"type" : "Retrieve",
"codes" : {
"name" : "Chlamydia Screening",
"type" : "ValueSetRef"
}
}
} ],
"relationship" : [ ],
"where" : {
"type" : "Not",
"operand" : {
"type" : "IsNull",
"operand" : {
"path" : "result",
"scope" : "R",
"type" : "Property"
}
}
}
}
} ]
}
}
}