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 Supplemental Data Elements CQL (Experimental)

Official URL: https://atrius.in/fhir/r4/atrius-in/Library/AtriusSupplementalDataElements Version: 0.1.0
Draft as of 2026-09-21 Computable Name: AtriusSupplementalDataElements
Other Identifiers: OID:1.3.6.1.4.1.66219.1.28.28

India supplemental data elements. Ports SDE Sex and SDE Payer; replaces US race/ethnicity with state/district and urban-rural.

Metadata
Title Atrius Supplemental Data Elements CQL
Version 0.1.0
Identifier urn:oid:1.3.6.1.4.1.66219.1.28.28
Status Draft
Experimental true
Steward (Publisher) Atrius
Steward Contact Atrius
Description

India supplemental data elements. Ports SDE Sex and SDE Payer; replaces US race/ethnicity with state/district and urban-rural.

Type Logic Library
Description: SupplementalDataElements 5.1.000
Resource: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
Canonical URL: https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
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: Code System SNOMEDCT
Resource: SNOMED CT (all versions)
Canonical URL: http://snomed.info/sct
Dependency Description: Value Set Payer Type
Resource: Atrius India Core Coverage Payer Type (ValueSet) version: 0.1.0
Canonical URL: https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-in-coverage-type|0.1.0
Data Requirement Type: Coverage
Profile(s): Coverage version: 4.0.1
Code Filter(s):
Path: type
ValueSet: Atrius India Core Coverage Payer Type (ValueSet) version: 0.1.0
Parameters
Name Use Card. Type Documentation
Patient Out 0..1 Patient
Preferred Address Out 0..1 Address
SDE Sex Out 0..1 Coding
SDE Payer Out 0..* Resource
SDE Residence Out 0..1 Resource
SDE Urban Rural Out 0..1 Coding
Library Content
CQL Content
/*
  --- dqm provenance ---
  Upstream: SupplementalDataElements 5.1.000
  Source package: CMS165FHIR-v1.0.000 (2026-05-14)
  Port date: 2026-09-21
  Kind: reimplementation
  Divergences: input/cql/dqm-divergence-registry.json
  ---

  India supplemental data (§5). Sex and Payer have analogues.
  State/district + urban-rural replace US Core race/ethnicity.
*/
library AtriusSupplementalDataElements version '0.1.0'

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

include FHIRHelpers version '4.4.000' called FHIRHelpers

codesystem "SNOMEDCT": 'http://snomed.info/sct'

valueset "Payer Type": 'https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-in-coverage-type'

code "Male (finding)": '248153007' from "SNOMEDCT" display 'Male'
code "Female (finding)": '248152002' from "SNOMEDCT" display 'Female'

context Patient

define "Preferred Address":
  Coalesce(
    First(Patient.address A
        where A.use = 'home'
    ),
    First(Patient.address)
  )

define "SDE Sex":
  case
    when Patient.gender = 'male' then "Male (finding)"
    when Patient.gender = 'female' then "Female (finding)"
    else null
  end

define "SDE Payer":
  [Coverage: "Payer Type"] Payer
    return {
      code: Payer.type,
      period: Payer.period
    }

define "SDE Residence":
  "Preferred Address" A
    return Tuple {
      state: A.state,
      district: A.district
    }

define "SDE Urban Rural":
  "Preferred Address" A
    return singleton from (
      A.extension E
        where E.url = 'https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-address-urban-rural'
        return E.value as FHIR.Coding
    )
ELM XML Content
Encoded data 
ELM JSON Content
Encoded data 
Generated using version 0.5.4 of the sample-content-ig Liquid templates