# CQL Group Definition - Using CQL With FHIR v3.0.0-ballot

## Resource Profile: CQL Group Definition 

 
The CQL Group Definition profile defines conformance expectations for the use of a FHIR Group resource as a cohort definition using Clinical Quality Language (CQL) to define membership criteria. This profile is intended to be consistent with and able to be used as a cohort definition in other similar efforts including clinical trial eligibility in the Evidence-based Medicine on FHIR space, as well as the Bulk Cohort API cohort definition profile. 

**Usages:**

* Examples for this Profile: [ANCCohortDefinition](Group-ANCCohortDefinition.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/resource/hl7.fhir.uv.cql|current/StructureDefinition/StructureDefinition-cql-groupdefinition.json)

### Formal Views of Profile Content

 [Description Differentials, Snapshots, and other representations](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](../StructureDefinition-cql-groupdefinition.csv), [Excel](../StructureDefinition-cql-groupdefinition.xlsx), [Schematron](../StructureDefinition-cql-groupdefinition.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "cql-groupdefinition",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cds"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use"
  }],
  "url" : "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-groupdefinition",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.40.37.42.23"
  }],
  "version" : "3.0.0-ballot",
  "name" : "CQLGroupDefiition",
  "title" : "CQL Group Definition",
  "status" : "active",
  "experimental" : false,
  "date" : "2026-08-14T03:31:27+10:00",
  "publisher" : "HL7 International / Clinical Decision Support",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/dss"
    }]
  }],
  "description" : "The CQL Group Definition profile defines conformance expectations for the use of a FHIR Group resource as a cohort definition using Clinical Quality Language (CQL) to define membership criteria. This profile is intended to be consistent with and able to be used as a cohort definition in other similar efforts including clinical trial eligibility in the Evidence-based Medicine on FHIR space, as well as the Bulk Cohort API cohort definition profile.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "objimpl",
    "uri" : "http://hl7.org/fhir/object-implementation",
    "name" : "Object Implementation Information"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Group",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Group",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Group",
      "path" : "Group",
      "mustSupport" : false
    },
    {
      "id" : "Group.extension:url",
      "path" : "Group.extension",
      "sliceName" : "url",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/artifact-url"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:version",
      "path" : "Group.extension",
      "sliceName" : "version",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/artifact-version"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:cqlOptions",
      "path" : "Group.extension",
      "sliceName" : "cqlOptions",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:cqlOptions.value[x]",
      "path" : "Group.extension.value[x]",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/uv/cql/StructureDefinition/cql-options"]
      }]
    },
    {
      "id" : "Group.extension:cqlLibrary",
      "path" : "Group.extension",
      "sliceName" : "cqlLibrary",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-library"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:cqlLibrary.value[x]",
      "path" : "Group.extension.value[x]",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library"]
      }]
    },
    {
      "id" : "Group.extension:characteristicExpression",
      "path" : "Group.extension",
      "sliceName" : "characteristicExpression",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/characteristicExpression"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:characteristicExpression.value[x]",
      "path" : "Group.extension.value[x]",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Expression"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.actual",
      "path" : "Group.actual",
      "fixedBoolean" : false
    },
    {
      "id" : "Group.code",
      "path" : "Group.code",
      "short" : "Type of individual the cohort is made up of",
      "definition" : "Identifies the types of individuals that can be members of the cohort (e.g. Patient, Practitioner, Location, etc.). If no type is specified, the cohort is assumed to be Patients.",
      "mustSupport" : true,
      "binding" : {
        "strength" : "extensible",
        "valueSet" : "http://hl7.org/fhir/ValueSet/subject-type"
      }
    },
    {
      "id" : "Group.characteristic",
      "path" : "Group.characteristic",
      "short" : "Not allowed",
      "definition" : "In a CQL Group Definition, membership criteria are specified with the characteristicExpression extension, rather than using structured representation of characteristics",
      "max" : "0"
    },
    {
      "id" : "Group.member",
      "path" : "Group.member",
      "short" : "Not allowed",
      "definition" : "In a definitional group, members are not allowed to be enumerated, as they are defined dynamically by membership criteria.",
      "max" : "0"
    }]
  }
}

```
