-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not entire AQL which is defined in Criteria will be executed by Retrieve Data #348
Comments
Hi I think we were able to find the specific line of code which does not work. It seems the AQL query gets passed correctly to the following method But after executing the following statement. You can see that the AqlDto-Object is not correct
|
I have checked, just in case, that the AQL was parsed correctly by the grammar.
The grammar is here https://github.com/ehrbase/ehrbase/blob/develop/service/src/main/antlr4/org/ehrbase/aql/parser/Aql.g4
Output: Everything seems to be parsed correctly, it should be some transformation that happens after the parsing where the issue is located. Around here: |
The only change between those versions in the method that seems to generate the issue is the error handler, I don't think that will solve this but you can try updating the dependency. |
Yes, it seems the update doesn't change anything in this regard. I did that and there were some inconsistencies at different parts of the code. I just somehow managed to get it running again, but it didn't change anything regarding this issue. Should an issue be created in openEHR_SDK? This seems to be a high-priority bug if AQL Queries don't work properly. |
@smnrdln that seemed to me when I did the code review, the updates in the SDK don't seem to be related with this issue. Please raise an issue on the SDK repo, this query could be a good test case to add to the project. |
Hi Guys,
we installed num-portal and num-portal-webapp at UKSH to experiment the features and getting connected to our current OpenEHR infrastructure.
Currently, we faced the following issue. After starting a project, by navigating to Data Retrieval and clicking on Retrieve Data, the filter which is defined at Criteria will not be applied correctly.
for example, although the AQL in Criteria is defined like this:
the UI will send this AQL to num-portal:
which doesn't contain " code_string LIKE 'I50*' " part and all data will be shown which is not desired. For this example we defined a Criteria, and it will be used for defining a project. But after staring the project, all the data which contains a specific "template_id" (here KDS_Diagnose) will be returned and the other filters will be ignored.
Could you please let us know if this is the way it supposed to behave or where could be the problem.
Thanks!
The text was updated successfully, but these errors were encountered: