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
AQL to get the boolean value :
{
"q": " SELECT c/context/start_time/value as time , c/content[openEHR-EHR-OBSERVATION.problem_screening.v0,
'Medical History']/data[at0001]/events[at0002]/data[at0003]/items[at0022, 'One Eyed']/items[at0005]/value/value as data from
EHR e CONTAINS COMPOSITION c WHERE c/archetype_details/template_id/value='aarthy.screening.v0'"
}
Actual result
The result that we get when the above aql is performed :
The aql is returning value if we do a upper level query :
{
"q": " SELECT c/context/start_time/value as time, c/content[openEHR-EHR-OBSERVATION.problem_screening.v0, 'Medical History']/data[at0001]/events[at0002]/data[at0003]/items[at0022, 'One Eyed']/items[at0005]/value as data from EHR e CONTAINS COMPOSITION c WHERE c/archetype_details/template_id/value='aarthy.screening.v0'"
}
I could also reproduce it.
It doesn't happen if that template is the only one in EHRBase as there will be no UNION. As soon as there are more templates it fails:
SQL has cast(ehr.aql_node_name_predicate([...] as boolean) for that template but ehr.aql_node_name_predicate( for the others
Configuration information
Steps to reproduce
OPT file : aarthy.screening.v0.txt
Composition to POST : aarthy.screening.v0-composition.txt
AQL to get the boolean value :
{
"q": " SELECT c/context/start_time/value as time , c/content[openEHR-EHR-OBSERVATION.problem_screening.v0,
'Medical History']/data[at0001]/events[at0002]/data[at0003]/items[at0022, 'One Eyed']/items[at0005]/value/value as data from
EHR e CONTAINS COMPOSITION c WHERE c/archetype_details/template_id/value='aarthy.screening.v0'"
}
Actual result
The result that we get when the above aql is performed :
The aql is returning value if we do a upper level query :
{
"q": " SELECT c/context/start_time/value as time, c/content[openEHR-EHR-OBSERVATION.problem_screening.v0, 'Medical History']/data[at0001]/events[at0002]/data[at0003]/items[at0022, 'One Eyed']/items[at0005]/value as data from EHR e CONTAINS COMPOSITION c WHERE c/archetype_details/template_id/value='aarthy.screening.v0'"
}
The result for upper query :
Expected result (Acceptance Criteria)
Definition of Done
The text was updated successfully, but these errors were encountered: