Skip to content
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

Structured query v2 #3

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Structured query v2 #3

wants to merge 11 commits into from

Conversation

geloro94
Copy link
Contributor

No description provided.

Copy link
Contributor

@alexanderkiel alexanderkiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I especially looked at the date-time valueFilter.

"valueFilter": {
"type": "object",
"properties": {
"type": { "enum": ["concept", "quantity-comparator", "quantity-range"]}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date-time-comparator type is missing here?


| Enumeration | Comparator |
| ----------- | ------------- |
| le | less equal |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we use ≥ and ≤ signs instead of less equal and greater equal like above?

## ConceptValueFilter
### DateTime-comperator

A valueFilter of type datetype can be applied to all datetime criterion concepts. It allows to use the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IHMO the type should be called date-time-comparator and not datetype to be on par with the quantity-comparator type name.

@alexanderkiel
Copy link
Contributor

What is the reason for multiple term codes per criteria?

@geloro94
Copy link
Contributor Author

geloro94 commented Dec 1, 2021

Multiple codes per criterion allow us to express synonyms. Similar to https://www.hl7.org/fhir/datatypes.html#CodeableConcept coding. This would allow us to have a single UI representation for i.e. Sleepapnea encoded in ICD-10 and SNOMED and simultaneously query both. Alternatively, we could have used concept mappings. We likely will not use this feature in ABIDE, but in other projects utilizing the structured query.

@alexanderkiel
Copy link
Contributor

I thought that we will use the mapping to expand the criteria concept into multiple synonym codes. At the end we most likely will use value sets for FHIR searches, because using value sets can be potentially more performant and keeps query string short.

But I'm ok if we allow multiple term codes. At the end, more options are good here.

I have one question about the display of the multiple term codes. The FHIR CodeableConcept has an additional text field for the use of displaying one string that is valid for all the codes. Having only the multiple display strings would force an UI to choose one of them. So we may go the full CodeableConcept route if one merged display string would be relevant for us.

@geloro94
Copy link
Contributor Author

geloro94 commented Dec 1, 2021

In the UI Profiles, we already do so, we do not use the display from the TermCode but have a TerminologyEntry with multiple TermCodes and a single display. This is also necessary for unofficial displays like german translations for snomed.
As the display information is only important to the UI I would suggest not adding a display to the criterion.

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

Successfully merging this pull request may close these issues.

3 participants