forked from darwin-eu-dev/TreatmentPatterns
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Describe the bug
I have the following output in the patient level treatment hx table. durationEra is 29 but it should be longer. I checked the raw cohort data and this is a collapsed era of 2 overlapping events.
eventStartDate|eventEndDate|durationEra
2022-11-07 | 2023-01-06|29
To Reproduce
Run computePathways and specify an eraCollapseSize. Then inspect the output for a patient with collapsed eras.
Expected behavior
durationEra should represent the difference between era start and end for collapsed eras.
I think code needs to be added to doEraCollapse to recompute the duration:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels