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

Longitudinal table abx dose prescribed/administered feature #66

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

Longitudinal table abx dose prescribed/administered feature #66

peterdutey opened this issue Jul 6, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed therapy-table-features
Milestone

Comments

@peterdutey
Copy link
Collaborator

peterdutey commented Jul 6, 2021

Longitudinal tables can currently be enriched with clinical features using clinical_features_X() functions.

Additional functions are needed for the following medication features:

  1. dose administered between t_start and t_end in wide format: dose_administered_XXX
  2. daily dose prescribed as of t_start in wide format: daily_dose_prescribed_XXX
  3. cumulative dose administered in the last H hours: cum_dose_administered_Hh_XXX where H is set by function argument hours

where XXX is provided by drug_prescriptions.drug_code.

Antifungal and antibacterial prescription dosing is most commonly expressed in

  • mass (easily convertible into grams) - this is the preferred unit
  • IU (eg nystatin, colistin) - this may be accommodated by conversion functions
  • number of table/capsule/etc: this may need to be disallowed by validate_prescription in future releases
  • volume of solution: this may need to be disallowed by validate_prescriptions() in future releases.

In the event users need to preserve all types of units as currently possible, the alternative solution would be to introduce a mandatory dose_gram field in the drug_prescriptions schema definition.

Views are welcome - please contribute!

@peterdutey peterdutey added this to the v0.5.0 milestone Jul 6, 2021
@peterdutey peterdutey changed the title TDM administration feature Therapy table administration feature Jul 29, 2021
@peterdutey peterdutey added enhancement New feature or request help wanted Extra attention is needed labels Jul 29, 2021
@peterdutey peterdutey pinned this issue Jul 29, 2021
@peterdutey peterdutey changed the title Therapy table administration feature Therapy table abx dose prescribed/administered feature Jul 29, 2021
@peterdutey peterdutey mentioned this issue Jul 11, 2022
5 tasks
@peterdutey peterdutey mentioned this issue Aug 5, 2022
16 tasks
@peterdutey peterdutey changed the title Therapy table abx dose prescribed/administered feature Longitudinal table abx dose prescribed/administered feature Aug 5, 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 help wanted Extra attention is needed therapy-table-features
Projects
None yet
Development

No branches or pull requests

1 participant