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

ECL should be usable to count semantic tags with a description filter such as {{term = wild:"*(morphologic abnormality)", type = fsn}} #12

Open
fmacary opened this issue Apr 9, 2024 · 2 comments
Assignees

Comments

@fmacary
Copy link

fmacary commented Apr 9, 2024

parentheses within a regex of a string to count semantic tags, for instance, is not possible:
<123037004 |Body structure (body structure)| {{term = wild:"*morphologic abnormality)", type = fsn}}
--> Results: [es/search] failed: [search_phase_execution_exception] all shards failed

Putting the complete semantig tag with both parentheses, does not provoke an error, but yelds zero concepts:
<123037004 |Body structure (body structure)| {{term = wild:"*(morphologic abnormality)", type = fsn}}
--> Results: Found 0 concepts

The parentheses should not be interpreted as special characters in the wildchar expression.
This is a bug, as discussed previously.

@kaicode kaicode self-assigned this Apr 9, 2024
@kaicode
Copy link
Member

kaicode commented Apr 9, 2024

Hi @fmacary,
Here is a workaround for this issue:

<123037004 |Body structure (body structure)| {{ term = "(morphologic abnormality)", type = fsn }}

@kaicode
Copy link
Member

kaicode commented Apr 9, 2024

Using the Jan 2024 International Edition I get the following results:

<123037004 |Body structure (body structure)| {{ term = "(morphologic abnormality)", type = fsn }}
count = 5098

<< 118956008 |Body structure, altered from its original anatomical structure (morphologic abnormality)|
count = 5181

<< 118956008 |Body structure, altered from its original anatomical structure (morphologic abnormality)| {{ term = "(cell)", type = fsn }}
count = 83

It looks like all the "(morphologic abnormality)" concepts are descendants of 118956008 |Body structure, altered from its original anatomical structure (morphologic abnormality)|, but that also includes 83 "(cell)" concepts.

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

No branches or pull requests

2 participants