EtherCIS Clinical Query - Ian to explain what Rob can do to support "friendly API wrapper around the JSON AQL
Closed this issue · 12 comments
@freshehr Please could I ask for an update on this, thanks
Linked with ethercis/ethercis#25 and ethercis/ethercis#26
Clinical query middle tier is done - awaiting UI and Ethercis issues to be sorted out
@freshehr @ethercis
Can we get an update on these 2 issues please;
ethercis/ethercis#25 and ethercis/ethercis#26
This fix is dependent on them
thanks
T
I have posted a new aql-processor lib on the test server. It should address these two issues. Please note though that re ethercis/ethercis#25 requires more work to be addressed properly (please see #25 for more on this)
Christian - it's still not working correctly. The following query should return 9999999000 but I get an empty resultSet coming back:
select
e/ehr_id/value as ehrId,
e/ehr_status/subject/external_ref/id/value as nhsNo
from EHR e
contains COMPOSITION a
contains EVALUATION a_a[openEHR-EHR-EVALUATION.adverse_reaction_risk.v1]
where a/name/value='Adverse reaction list'
and
a_a/data[at0001]/items[at0002]/value/value like 'Peanut'
eg 9999999000 has a number of allergy records where cause is "Allergy to Peanut Butter". The pattern match should be case insensitive, so
a_a/data[at0001]/items[at0002]/value/value like 'peanut'
should also work
The text formatting has removed the * from around "Peanut" .... should be '{asterisk}Peanut{asterisk} ' where {asterisk} = *
Actually it appears that % works on both Ethercis and Marand now. So I'll use % around the "likes" instead of * I guess Ian gave me the wrong info :-)