Atrius India Core FHIR Implementation Guide
0.1.0 - ci-build

Atrius India Core FHIR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Library: Atrius Preventive Care CQL (Experimental)

Official URL: https://atrius.in/fhir/r4/atrius-in/Library/AtriusPreventiveCare Version: 0.1.0
Draft as of 2026-07-24 Computable Name: AtriusPreventiveCare
Other Identifiers: OID:1.3.6.1.4.1.66219.1.28.16

Preventive care reminders: colorectal screening and influenza vaccination due

Metadata
Title Atrius Preventive Care CQL
Version 0.1.0
Identifier urn:oid:1.3.6.1.4.1.66219.1.28.16
Status Draft
Experimental true
Steward (Publisher) Atrius
Steward Contact Atrius
Description

Preventive care reminders: colorectal screening and influenza vaccination due

Type Logic Library
Dependency Description: Model AtriusIn
Resource: Atrius India Core Model Definition version: 0.1.0
Canonical URL: https://atrius.in/fhir/r4/atrius-in/Library/AtriusIn-ModelInfo|0.1.0
Dependency Description: Library FHIRHelpers
Resource: https://atrius.in/fhir/r4/atrius-in/Library/FHIRHelpers|4.4.000
Canonical URL: https://atrius.in/fhir/r4/atrius-in/Library/FHIRHelpers|4.4.000
Dependency Description: Library AtriusCommon
Resource: Atrius Common CQL version: 0.1.0
Canonical URL: https://atrius.in/fhir/r4/atrius-in/Library/AtriusCommon|0.1.0
Dependency Description: Code System LOINC
Resource: Logical Observation Identifiers, Names and Codes (LOINC)
Canonical URL: http://loinc.org
Dependency Description: Code System SNOMEDCT
Resource: SNOMED CT (all versions)
Canonical URL: http://snomed.info/sct
Dependency Description: Code System CVX
Resource: Vaccine Administered Code Set (CVX)
Canonical URL: http://hl7.org/fhir/sid/cvx
Data Requirement Type: Procedure
Profile(s): Procedure version: 4.0.1
Code Filter(s):
Path: code
Code(s): SNOMED CT: 73761001 (Colonoscopy)
Data Requirement Type: Observation
Profile(s): Observation version: 4.0.1
Data Requirement Type: Immunization
Profile(s): Immunization version: 4.0.1
Parameters
Name Use Card. Type Documentation
Patient Out 0..1 Patient
Influenza Vaccine Codes Out 0..* Coding
In Colorectal Screening Age Range Out 0..1 boolean
Colonoscopy In Last 10 Years Out 0..1 boolean
Stool Based Screening In Last Year Out 0..1 boolean
Colorectal Screening Due Out 0..1 boolean
Influenza Immunizations In Last Year Out 0..* Immunization
Influenza Vaccine In Last Year Out 0..1 boolean
Influenza Vaccine Due Out 0..1 boolean
Preventive Care Reminder Needed Out 0..1 boolean
Library Content
CQL Content
/*
  Preventive care reminders — non-interruptive patient-view rule.

  v0.1 reminders (hand-curated codes; upgrade path is the ValueSet layer):
    Colorectal cancer screening due — age 45–75, no colonoscopy in the last
    10 years and no stool-based screening (FIT/FOBT) in the last year.
    Influenza vaccination due — adult with no influenza vaccine in the last
    12 months (rolling season approximation; no fixed season anchor).
*/
library AtriusPreventiveCare version '0.1.0'

using FHIR version '4.0.1'
using AtriusIn version '0.1.0'

include FHIRHelpers version '4.4.000' called FHIRHelpers
include AtriusCommon version '0.1.0'

codesystem "LOINC": 'http://loinc.org'
codesystem "SNOMEDCT": 'http://snomed.info/sct'
codesystem "CVX": 'http://hl7.org/fhir/sid/cvx'

code "Colonoscopy": '73761001' from "SNOMEDCT" display 'Colonoscopy'
code "FIT": '29771-3' from "LOINC" display 'Hemoglobin.gastrointestinal.lower [Presence] in Stool by Immunoassay'
code "FOBT": '2335-8' from "LOINC" display 'Hemoglobin.gastrointestinal [Presence] in Stool'

code "Influenza unspecified": '88' from "CVX" display 'influenza virus vaccine, unspecified formulation'
code "Influenza IIV4 injectable": '150' from "CVX" display 'influenza, injectable, quadrivalent, preservative free'
code "Influenza IIV4": '158' from "CVX" display 'influenza, injectable, quadrivalent'
code "Influenza IIV3": '140' from "CVX" display 'Influenza, seasonal, injectable, preservative free'
code "Influenza IIV3 injectable": '141' from "CVX" display 'Influenza, seasonal, injectable'
code "Influenza LAIV4": '149' from "CVX" display 'influenza, live, intranasal, quadrivalent'
code "Influenza ccIIV4": '171' from "CVX" display 'Influenza, injectable, MDCK, preservative free, quadrivalent'
code "Influenza RIV4": '185' from "CVX" display 'Seasonal, quadrivalent, recombinant, injectable influenza vaccine, preservative free'

context Patient

define "Influenza Vaccine Codes":
  {
    "Influenza unspecified",
    "Influenza IIV4 injectable",
    "Influenza IIV4",
    "Influenza IIV3",
    "Influenza IIV3 injectable",
    "Influenza LAIV4",
    "Influenza ccIIV4",
    "Influenza RIV4"
  }

define "In Colorectal Screening Age Range":
  AgeInYearsAt(Today()) between 45 and 75

define "Colonoscopy In Last 10 Years":
  exists (
    [Procedure: "Colonoscopy"] P
      where P.status = 'completed'
        and end of P.performed.toPerformedInterval() on or after (Today() - 10 years)
  )

define "Stool Based Screening In Last Year":
  exists (
    [Observation] O
      where O.status in { 'final', 'amended', 'corrected' }
        and (O.code ~ "FIT" or O.code ~ "FOBT")
        and end of O.effective.toObservationEffectiveInterval() on or after (Today() - 1 year)
  )

define "Colorectal Screening Due":
  "In Colorectal Screening Age Range"
    and not "Colonoscopy In Last 10 Years"
    and not "Stool Based Screening In Last Year"

define "Influenza Immunizations In Last Year":
  [Immunization] I
    where I.status = 'completed'
      and exists ("Influenza Vaccine Codes" C where I.vaccineCode ~ C)
      and I.occurrence is FHIR.dateTime
      and FHIRHelpers.ToDateTime(I.occurrence as FHIR.dateTime) on or after (Today() - 1 year)

define "Influenza Vaccine In Last Year":
  exists "Influenza Immunizations In Last Year"

define "Influenza Vaccine Due":
  AgeInYearsAt(Today()) >= 18
    and not "Influenza Vaccine In Last Year"

define "Preventive Care Reminder Needed":
  "Colorectal Screening Due"
    or "Influenza Vaccine Due"
ELM JSON Content
Encoded data 
Generated using version 0.5.4 of the sample-content-ig Liquid templates