Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Catch selected concepts element not part of value filter #39

Open
juliangruendner opened this issue Feb 24, 2023 · 0 comments
Open

Catch selected concepts element not part of value filter #39

juliangruendner opened this issue Feb 24, 2023 · 0 comments
Assignees

Comments

@juliangruendner
Copy link
Collaborator

If an SQ is sent which does not include selectedConcepts in a value filter if the value filter is not of type "concept" flare should be able to process this and not throw an exception

Example sq:

{
"termCodes": [
{
"code": "718-7",
"system": "http://loinc.org",
"display": "Hämoglobin"
}
],
"valueFilter": {
"type": "quantity-comparator",
"comparator": "gt",
"unit": {
"code": "mg/dL",
"display": "mg/dL"
},
"value": 0.0
}
}

where it brakes in the code:
https://github.com/rwth-imi/flare-query/blob/master/mapping/src/main/java/de/rwth/imi/flare/mapping/expansion/QueryExpander.java#L116

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants