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

Is MinAge for time of encounter or at present? #8

Open
sophie-w opened this issue Feb 13, 2020 · 1 comment
Open

Is MinAge for time of encounter or at present? #8

sophie-w opened this issue Feb 13, 2020 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@sophie-w
Copy link

For cohort selection - when I set MinAge, will it filter based on age at the encounter which matches the ECL, or current age (which will not be relevant for historic data)?
Thanks

@kaicode kaicode self-assigned this Feb 13, 2020
@kaicode kaicode added the question Further information is requested label Feb 13, 2020
@kaicode
Copy link
Member

kaicode commented Feb 13, 2020

Hi @sophie-w, thank you for your insightful question!

The minAge parameter in the cohort selection API is the current age of the patient.
The relevant section of code in the 1.2.0 release is here.

Now I think about it I agree that a more relevant selection criterion for longitudinal data would be the age of the patient at the time of the encounter.

It could be useful to have two sets of parameters: currentMinAge & currentMax and alsoencounterMinAge & encounterMaxAge to select patients based on their age at the time of the encounter.
Also the Swagger API page could really do with a short description for each parameter so users are not left guessing.

I'll mark this as an enhancement request. There is no development resources assigned to this tool at the moment but someone in the community may contribute or someone in SNOMED International may find some time.

Kind regards,
Kai

@kaicode kaicode removed their assignment Feb 13, 2020
@kaicode kaicode added the enhancement New feature or request label Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants