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

Incorrect calculation of Encounters with procedures #706

Open
aswathikrishnan24 opened this issue Jan 27, 2025 · 0 comments
Open

Incorrect calculation of Encounters with procedures #706

aswathikrishnan24 opened this issue Jan 27, 2025 · 0 comments
Assignees

Comments

@aswathikrishnan24
Copy link

aswathikrishnan24 commented Jan 27, 2025

Describe the bug
Numerator does not take into account Initial population in ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.Population.
This could probably be another assertion logic issue but there is more to the problem.

Initial population of TC : 305b7ed0-25c0-4fdf-96aa-a872a74f17e3 is 0 and Numerator is 1.
In this case, the assertion logic is not applied.

Initial population of TC : bb5e3c95-fbde-4ed7-9099-0dab743355ed is 1 and Numerator is 2.
In this case, final result looks for encounters with suicide assessment procedures. final result is calculated as 2 instead of 1 because the input file has only one encounter and 2 procedures.

Numerator is calculated incorrectly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.Population
  2. Run bb5e3c95-fbde-4ed7-9099-0dab743355ed

Screenshots

Image

Version used

Version: develop-2.0
46d3248

Additional Information
For CesareanBirthFHIR, Test case : 13fc77fb-6db3-4c4d-ae11-2ee08ff9acde
Initial Population calculation is incorrect because of same reason.
Patient has 1 encounter and Initial population is expected to be 1. Encounter calculation also takes into account procedure with code 4504004 and results in 2

@aswathikrishnan24 aswathikrishnan24 changed the title Incorrect Numerator calculation Incorrect calculation of Encounters with procedures Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants