summariseDrugExposureDuration function

Summarise drug exposure record durations