EHDS openEHR Test IG
0.2.0 - ci-build

EHDS openEHR Test IG - Local Development build (v0.2.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

AQL Queries

AQL Queries

openEHR Archetype Query Language (AQL) queries for retrieving clinical data from an openEHR Clinical Data Repository (CDR).

AQL uses a SQL-like syntax with openEHR-specific path expressions and archetype identifiers. Query parameters are passed at runtime — parameters prefixed with : use named binding (e.g. :ehrId), while `` notation denotes template placeholders to be substituted before sending.

Query Archetype Description Parameters
Lab Tests for Patient openEHR-EHR-OBSERVATION.laboratory_test_result.v1 Returns all lab test compositions for a patient within a date range. Ordered by composition date descending. :ehrId :dateFrom :dateTo
Lab Results by Composition openEHR-EHR-CLUSTER.laboratory_test_analyte.v1 Returns analyte-level results for a single laboratory report composition identified by its UID. :compositionIdLab
IPS Composition openEHR-EHR-COMPOSITION.health_summary.v1 Returns the most recent persisted IPS composition in CANONICAL format for a given EHR and template. {{ehrId}} {{templateId}}