This page is part of the Using CQL with FHIR Implementation Guide (v1.0.0: STU1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 2.0.0. For a full list of available versions, see the Directory of published versions
| Patient | ResourcePatient "example" identifier: Medical record number/12345 (use: usual, period: 2001-05-06 --> (ongoing)) active: true name: Peter James Chalmers (Official), Jim Chalmers , Peter James Windsor (Name changed for Marriage) telecom: ph: (03) 5555 6473(WORK), ph: (03) 3410 5613(MOBILE), ph: (03) 5555 8834(OLD) gender: male birthDate: 1974-12-25 deceased: false address: 534 Erewhon St PeasantVille, Utah 84414(home) maritalStatus: Married (MaritalStatus#M) Contacts
| ||||||||||||
| CQLBooleanExample | true | ||||||||||||
| CQLCodeExample | CQL IG Example Code System example-code: Example Code | ||||||||||||
| CQLCodeSystemExample | CQL IG Example Code System | ||||||||||||
| CQLConceptExample | Example Code | ||||||||||||
| CQLDateExample | 2024-01-01 | ||||||||||||
| CQLDateTimeExample | 2024-01-01 10:30:00+0000 | ||||||||||||
| CQLDecimalExample | 10.0 | ||||||||||||
| CQLLongExample | 10 | ||||||||||||
| CQLIntegerExample | 10 | ||||||||||||
| CQLQuantityExample | 10 mg | ||||||||||||
| CQLRatioExample | No display for Ratio | ||||||||||||
| CQLStringExample | John | ||||||||||||
| CQLTimeExample | 10:30:00 | ||||||||||||
| CQLValueSetExample | Example Specific health concern(s) Codes | ||||||||||||
| CQLVocabularyExample | http://example.org/test/npe-preventer | ||||||||||||
| CQLDateIntervalExample | 2024-01-01 --> 2024-01-31 | ||||||||||||
| CQLDateTimeIntervalExample | 2024-01-01 10:30:00+0000 --> 2024-01-31 10:30:00+0000 | ||||||||||||
| CQLTimeIntervalExample | |||||||||||||
| low | 10:30:00 | ||||||||||||
| high | 11:30:00 | ||||||||||||
| CQLIntegerIntervalExample | 5-10 | ||||||||||||
| CQLQuantityIntervalExample | 5-10 | ||||||||||||
| CQLListExample | 1 | ||||||||||||
| CQLListExample | 2 | ||||||||||||
| CQLListExample | 3 | ||||||||||||
| CQLListExample | 4 | ||||||||||||
| CQLListExample | 5 | ||||||||||||
| CQLTupleExample | |||||||||||||
| X | 1 | ||||||||||||
| Y | 1 | ||||||||||||
| CQLChoiceListExample | 1 | ||||||||||||
| CQLChoiceListExample | 1.0 | ||||||||||||
| CQLTupleListExample | |||||||||||||
| X | 1 | ||||||||||||
| Y | 1 | ||||||||||||
| CQLTupleListExample | |||||||||||||
| X | 1 | ||||||||||||
| Y | 2 | ||||||||||||
| CQLTupleListExample | |||||||||||||
| X | 1 | ||||||||||||
| Y | 3 | ||||||||||||
| CQLComplexTupleExample | |||||||||||||
| id | 1 | ||||||||||||
| name | Patrick | ||||||||||||
| address | |||||||||||||
| street | 123 Spinning Ave | ||||||||||||
| city | Dayton | ||||||||||||
| state | OH | ||||||||||||
| CQLComplexTupleListExample | |||||||||||||
| id | 1 | ||||||||||||
| name | Patrick | ||||||||||||
| address | |||||||||||||
| street | 123 Spinning Ave | ||||||||||||
| city | Dayton | ||||||||||||
| state | OH | ||||||||||||
| CQLEmptyListExample | |||||||||||||
| FHIRBooleanExample | true | ||||||||||||
| FHIRStringExample | Chalmers | ||||||||||||
| FHIRQuantityExample | 76.0 mg/dL | ||||||||||||
| FHIRPeriodExample | 1974-12-25 --> (ongoing) | ||||||||||||
| FHIRRangeExample | 40.0-109.0 mg/dL | ||||||||||||
| FHIRObservationExample | Generated Narrative: Observation ResourceObservation "blood-glucose" status: final category: Laboratory (Observation Category Codes#laboratory) code: Glucose Bld-mCnc (LOINC#2339-0) subject: See on this page: Patient/example: Amy Shaw effective: 2005-07-05 value: 76.0 mg/dL ReferenceRanges
| ||||||||||||
| FHIRObservationListExample | Generated Narrative: Observation ResourceObservation "blood-glucose" status: final category: Laboratory (Observation Category Codes#laboratory) code: Glucose Bld-mCnc (LOINC#2339-0) subject: See on this page: Patient/example: Amy Shaw effective: 2005-07-05 value: 76.0 mg/dL ReferenceRanges
| ||||||||||||
| FHIRObservationListExample | Generated Narrative: Observation ResourceObservation "blood-pressure" status: final category: Vital Signs (Observation Category Codes#vital-signs) code: Blood pressure systolic and diastolic (LOINC#85354-9 "Blood pressure panel with all children optional") subject: See on this page: Patient/example: Amy Shaw encounter: : GP Visit effective: 1999-07-02
| ||||||||||||
| FHIRObservationListExample | Generated Narrative: Observation ResourceObservation "bmi" status: final category: Vital Signs (Observation Category Codes#vital-signs) code: BMI (LOINC#39156-5 "Body mass index (BMI) [Ratio]") subject: See on this page: Patient/example: Amy Shaw encounter: : GP Visit effective: 1999-07-02 value: 16.2 kg/m2 (Details: UCUM codekg/m2 = 'kg/m2') | ||||||||||||
| FHIRObservationEmptyListExample |