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

## Resource Profile: CQL Group Result 

 
The CQL Group Result profile defines conformance expectations for the result of evaluating a FHIR Group Definition. This profile is intended to be consistent with and able to be used as an actual group definition in other contexts such as the various evaluate operations defined in clinical reasoning. 

**Usages:**

* Examples for this Profile: [ANCCohort](Group-ANCCohort.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-groupresult.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-groupresult.csv), [Excel](../StructureDefinition-cql-groupresult.xlsx), [Schematron](../StructureDefinition-cql-groupresult.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "cql-groupresult",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 1
  },
  {
    "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-groupresult",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.40.37.42.24"
  }],
  "version" : "3.0.0-ballot",
  "name" : "CQLGroupResult",
  "title" : "CQL Group Result",
  "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 Result profile defines conformance expectations for the result of evaluating a FHIR Group Definition. This profile is intended to be consistent with and able to be used as an actual group definition in other contexts such as the various evaluate operations defined in clinical reasoning.",
  "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:generatedFrom",
      "path" : "Group.extension",
      "sliceName" : "generatedFrom",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/workflow-generatedFrom"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:generatedFrom.value[x]",
      "path" : "Group.extension.value[x]",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "canonical"
      }]
    },
    {
      "id" : "Group.extension:generatedFrom.value[x].extension",
      "path" : "Group.extension.value[x].extension",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/artifact-uriReference"]
      }]
    },
    {
      "id" : "Group.extension:inputParameters",
      "path" : "Group.extension",
      "sliceName" : "inputParameters",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-inputParameters"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.extension:inputParameters.value[x]",
      "path" : "Group.extension.value[x]",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/uv/cql/StructureDefinition/cql-parameters"]
      }]
    },
    {
      "id" : "Group.extension:messages",
      "path" : "Group.extension",
      "sliceName" : "messages",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/cqf-messages"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Group.actual",
      "path" : "Group.actual",
      "fixedBoolean" : true
    },
    {
      "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 Result, membership is explicit",
      "max" : "0"
    },
    {
      "id" : "Group.member",
      "path" : "Group.member",
      "mustSupport" : true
    },
    {
      "id" : "Group.member.entity",
      "path" : "Group.member.entity",
      "mustSupport" : true
    },
    {
      "id" : "Group.member.entity.extension",
      "path" : "Group.member.entity.extension",
      "max" : "*",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/uv/cql/StructureDefinition/cql-evaluatedResource"]
      }],
      "mustSupport" : true
    }]
  }
}

```
