You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"q": "SELECT tnm/data[at0001]/events[at0002]/data[at0003]/items[at0008]/value/value as T, tnm/data[at0001]/events[at0002]/data[at0003]/items[at0009]/value/value as N, tnm/data[at0001]/events[at0002]/data[at0003]/items[at0010]/value/value as M FROM EHR e[ehr_id/value='4b688173-0388-4cf2-9062-694b86b7fbe3'] CONTAINS COMPOSITION c[openEHR-EHR-COMPOSITION.tnm_stage_clinical.v0] CONTAINS OBSERVATION tnm[openEHR-EHR-OBSERVATION.tnm_stage_clinical.v0]"
}
Resultset in XML is basically non standard and there is no provision to support it; that is only JSON result formatting is currently specified. Further, using JSON, since results are referenced in a hash table, order is not relevant and should be resolved at client level.
nr23730
changed the title
Order of columns in AQL resultset are in alphabetic order
Order of columns in AQL resultset are in arbitrary order
Dec 4, 2019
@chevalleyc I agree that the order should be handelt on client level. Hover it make it nicer when a human is working with the endpoint. Since the performance of HashMap and LinkedHashMap are similar I would like to see #69 approved.
When I execute AQL queries the columns of the resultset are in an arbitrary order. I would expect them in the order given in the query, as also shown here: https://specifications.openehr.org/releases/ITS-REST/latest/query.html#query-execute-query-post
Example:
Result:
Is this intended or an issue?
Thanks in advance!
The text was updated successfully, but these errors were encountered: