darwin-eu-dev / DrugUtilisation

https://darwin-eu-dev.github.io/DrugUtilisation/
Apache License 2.0
3 stars 1 forks source link

add initialDuration argument to `addDrugUtilisation` #374

Open tiozab opened 8 months ago

tiozab commented 8 months ago

how can I tell the package that i only want to look at one exposure at a time, i.e. no collapsing of exposures into eras! gapEra = 0 will still collapse two exposures with one stopping on the same date as the other starting, right? So question is how can I prevent collapsing of drug exposures into eras?

Will it take gapEra = NA to prevent any collapsing of exposures?

tiozab commented 7 months ago

@edward-burn burn told me that the package does not allow overlapping cohorts, therefore the joints are made. he suggested further to filter the exposures I want beforehand, but the way it looks to me I can just use limit = "first"? "first" we only consider the first observable era of each individual that fulfills the criteria provided in previous parameters. In this case each individual can not contribute with multiple rows

hmm, it says "era" not exposure... :(

@catalamarti would you consider to make a feature enhancement at some point to allow just looking at the first exposure that fulfills all criteria? or would gapera also take a negative value as parameter?

catalamarti commented 5 months ago

Why would you need to consider only the first exposure? @tiozab

tiozab commented 5 months ago

I guess it is covered in the characteristics of "initial quantity", "initial dose", can we maybe add "initial duration" as well ? because what I am interested in and why I asked to only look at the first exposure is really to know what was initially prescribed.