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

Do not expand Abstract Term Code Tree Nodes #7

Open
geloro94 opened this issue Sep 20, 2022 · 0 comments
Open

Do not expand Abstract Term Code Tree Nodes #7

geloro94 opened this issue Sep 20, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@geloro94
Copy link
Contributor

Querying ICD-10 Codes that are not terminal i.e. C50-C50 results in querying the code itself and all subconcepts. As sites are only allowed to document terminal ICD-10 Codes we should only query terminal ICD-10 Codes to improve the performance:

library Retrieve
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0'

codesystem icd10: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'

context Patient

define InInitialPopulation:
  exists [Condition: Code 'C50-C50' from icd10] or
  exists [Condition: Code 'C50' from icd10] or
  exists [Condition: Code 'C50.8' from icd10] or
  exists [Condition: Code 'C50.9' from icd10] or
  exists [Condition: Code 'C50.0' from icd10] or
  exists [Condition: Code 'C50.2' from icd10] or
  exists [Condition: Code 'C50.4' from icd10] or
  exists [Condition: Code 'C50.6' from icd10] or
  exists [Condition: Code 'C50.3' from icd10] or
  exists [Condition: Code 'C50.5' from icd10] or
  exists [Condition: Code 'C50.1' from icd10]

should be:

library Retrieve
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0'

codesystem icd10: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'

context Patient

define InInitialPopulation:
  exists [Condition: Code 'C50.8' from icd10] or
  exists [Condition: Code 'C50.9' from icd10] or
  exists [Condition: Code 'C50.0' from icd10] or
  exists [Condition: Code 'C50.2' from icd10] or
  exists [Condition: Code 'C50.4' from icd10] or
  exists [Condition: Code 'C50.6' from icd10] or
  exists [Condition: Code 'C50.3' from icd10] or
  exists [Condition: Code 'C50.5' from icd10] or
  exists [Condition: Code 'C50.1' from icd10]
alexanderkiel added a commit to medizininformatik-initiative/flare that referenced this issue Jun 7, 2023
I introduced a new property called "abstract" to the term code tree node
that will not return it's term code in the expansion. The behaviour on
the current tree files will not change but new tree files can use that
"abstract" property.

See also: medizininformatik-initiative/sq2cql#7
@juliangruendner juliangruendner changed the title Only consider terminal ICD-10 Codes Do not exand Abstract Term Code Tree Nodes Jul 2, 2024
@juliangruendner juliangruendner added this to the v0.4.0 milestone Jul 2, 2024
@juliangruendner juliangruendner changed the title Do not exand Abstract Term Code Tree Nodes Do not expand Abstract Term Code Tree Nodes Jul 11, 2024
@juliangruendner juliangruendner added the enhancement New feature or request label Jul 11, 2024
@juliangruendner juliangruendner modified the milestones: v0.4.0, v0.5.0 Jul 17, 2024
@alexanderkiel alexanderkiel modified the milestones: v0.5.0, v0.6.0 Sep 4, 2024
@alexanderkiel alexanderkiel modified the milestones: v0.6.0, v0.7.0 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants