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

Plot all intervals from initial event on same line #85

Open
Masswear opened this issue Mar 30, 2019 · 0 comments
Open

Plot all intervals from initial event on same line #85

Masswear opened this issue Mar 30, 2019 · 0 comments

Comments

@Masswear
Copy link
Collaborator

With compute_event_duration, it's possible to have multiple "secondary events" created from the same primary medication event, e.g. in case of dosage changes, treatment interruptions, or special intervals like hospitalizations etc (see #84 ). Secondary events never overlap. Therefore, it would be useful to plot all secondary events on the same line as the primary event.

The output of compute_event_duration provides a column with the primary event date (same for all secondary events) and another column with a start date and duration for each secondary event. Plotting could use the primary event date for the y-axis and secondary start dates and durations for the x-axis.

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