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
This page shows the AQL query that returns a persisted IPS composition - the response returns the whole composition in CANONICAL format.
The block below uses the aql highlighter; syntax is openEHR AQL.
SELECT c as Composition,
c/context/start_time/value as start_time
FROM EHR e[ehr_id/value = '']
CONTAINS VERSION v
CONTAINS COMPOSITION c
WHERE c/archetype_details/template_id/value = ''
ORDER BY c/context/start_time/value DESC
LIMIT 1
{ ...
"rows": [
[
{
"_type": "COMPOSITION",
"archetype_node_id": "openEHR-EHR-COMPOSITION.health_summary.v1",
"name": {
"_type": "DV_TEXT",
"value": "International Patient Summary"
},
"uid": {
"_type": "OBJECT_VERSION_ID",
"value": "dd784954-dc68-4790-ae7f-67b9b97172b0::com.freshehr.ehrbase::1"
},
"archetype_details": {
"archetype_id": {
"value": "openEHR-EHR-COMPOSITION.health_summary.v1"
},
"rm_version": "1.1.0",
"template_id": {
"value": "International Patient Summary"
}
},...