Skip to content

durationEra is incorrect when eras are collapsed #13

@katy-sadowski

Description

@katy-sadowski

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:

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions