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

Unfinished therapies #65

Open
3 tasks
peterdutey opened this issue Jul 6, 2021 · 0 comments
Open
3 tasks

Unfinished therapies #65

peterdutey opened this issue Jul 6, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@peterdutey
Copy link
Collaborator

peterdutey commented Jul 6, 2021

Prescriptions with 'active' status (still open) may not have a stop date. Most systems allow to keep prescriptions open indefinitely.
Currently validate_prescriptions() requires that a prescription_end value is provided in order to avoid problems with the therapy episode creation.
The current way for users to work around this is to enforce an arbitrary prescription end date, or to exclude unfinished prescriptions from the dataset.

  • This should be documented in validate_prescriptions

In the future there could be an enhancement to support active prescriptions with no end date.

  • test and if necessary improve the union find/transitive closure to work with prescriptions with no end date. The therapy_end value should then become NA/NULL
  • work out a way to build a therapy table for a therapy with no end date.
@peterdutey peterdutey added the bug Something isn't working label Jul 6, 2021
@peterdutey peterdutey added this to the v0.4.0 milestone Jul 6, 2021
@peterdutey peterdutey modified the milestones: v0.4.0, v0.5.0 Jul 6, 2021
@peterdutey peterdutey added enhancement New feature or request and removed bug Something isn't working labels Aug 2, 2022
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

1 participant