This page is part of the Using CQL with FHIR Implementation Guide (v3.0.0-ballot: STU 3 Ballot) based on FHIR (HL7® FHIR® Standard) R4. This version is a pre-release. The current official version is 2.0.0. For a full list of available versions, see the Directory of published versions
| Official URL: http://hl7.org/fhir/uv/cql/OperationDefinition/cql-group-evaluate | Version: 3.0.0-ballot | ||||
| Standards status: Trial-use | Maturity Level: 1 | Computable Name: CQLGroupEvaluate | |||
| Other Identifiers: OID:2.16.840.1.113883.4.642.40.37.33.3 | |||||
Evaluates the membership criteria of a group definition returns the results as an actual Group resource. The Group is expected to use the characteristicsExpression extension to define membership criteria.
Language: en
URL: [base]/Group/$evaluate
URL: [base]/Group/[id]/$evaluate
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | url | 0..1 | canonical | The canonical url (with optional version) of the group to be evaluated. This parameter is only used when the operation is invoked at the type level, and is exclusive with the group parameter. | ||
| IN | group | 0..1 | Group | The group to be evaluated, provided as an input. This parameter is only used when the operation is invoked at the type level, and is exclusive with the url parameter. | ||
| IN | subject | 0..1 | string (reference) | Subject(s) for which the group definition will be evaluated. This corresponds to the context in which the group will be evaluated and is represented as a relative FHIR id (e.g. Patient/123), which establishes both the context and context value for the evaluation. This MAY be a reference to a Group, in which case the membership criteria is evaluated for every member of the subject group. This parameter cannot be used with the subjectGroup parameter. If no subject or subjectGroup is provided, the group definition is evaluated for all potential subjects. | ||
| IN | subjectGroup | 0..1 | Group | A Group of subjects for which the group definition will be evaluated, provided directly as a Group resource. This parameter cannot be used with the subject parameter. If no subject or subjectGroup is provided, the group definition is evaluated for all potential subjects. | ||
| IN | parameters | 0..1 | Parameters | Any input parameters to the evaluation. The Parameters resource provided in this input SHALL conform to the CQLParameters profile. Parameters defined in this input will be bound by name to the evaluation context. If the membership criteria is a CQL expression, these parameters will be available to the expression. If the membership criteria is a CQL identifier, these parameters will be bound by name to the parameters defined in the CQL library (or included libraries, recursively). Parameter types are mapped to CQL as specified in the Using CQL section of this implementation guide. If a parameter appears more than once in the input Parameters resource, it is represented with a List in the input CQL. If a parameter has parts, it is represented as a Tuple in the input CQL. Note that parameters may be arbitrarily nested, for example, a list of tuples, or tuples that have list or interval valued elements. If parameter names are qualified, the parameter will be bound only to parameters in the library with the qualifier name, and the qualifier name must be the name of a library included by the library being evaluated (or an included library, recursively). | ||
| IN | artifactEndpointConfiguration | 0..* | Configuration information to resolve canonical artifacts
Processing semantics: Create a canonical-like reference (e.g.
Rank each
NOTE: For evenly ranked | |||
| IN | artifactEndpointConfiguration.artifactRoute | 0..1 | uri | |||
| IN | artifactEndpointConfiguration.endpointUri | 0..1 | uri | |||
| IN | artifactEndpointConfiguration.endpoint | 0..1 | Endpoint | |||
| IN | timestamp | 0..1 | dateTime | The timestamp of the evaluation request. | ||
| OUT | return | 1..1 | Group | The results of the group evaluation, returned as an actual Group resource with members as determined by the evaluation of the membership criteria against the data present in the server. |