Could we add to the description of this category the suggestion to format all posted AQL queries before posting a new topic? This way it’s much easier for people to read and respond to the question.
Example:
SELECT c FROM COMPOSITION c[openEHR-EHR-COMPOSITION.report.v1] CONTAINS EVALUATION d[openEHR-EHR-EVALUATION.problem_diagnosis.v1] WHERE d/name/value = 'Primary diagnosis' AND (d/data[at0001]/items[at0002 and name/value='Diagnosis']/value/defining_code/code_string = 'C50' OR d/data[at0001]/items[at0002 and name/value='Diagnosis']/value/defining_code/code_string = 'C18')
vs
SELECT
c
FROM
COMPOSITION c[openEHR-EHR-COMPOSITION.report.v1]
CONTAINS EVALUATION d[openEHR-EHR-EVALUATION.problem_diagnosis.v1]
WHERE
d/name/value = 'Primary diagnosis'
AND (d/data[at0001]/items[at0002 and name/value='Diagnosis']/value/defining_code/code_string = 'C50'
OR d/data[at0001]/items[at0002 and name/value='Diagnosis']/value/defining_code/code_string = 'C18')
(Also, is it possible to add ADL and AQL syntax highlighting to Discourse?)