darwin-eu-dev / PatientProfiles

https://darwin-eu-dev.github.io/PatientProfiles/
Apache License 2.0
6 stars 5 forks source link

Overwriting column when "addAge" twice #654

Closed ajoedicke closed 3 months ago

ajoedicke commented 3 months ago

Hi all,

When running these 2 chunks of code, an error message occurs that you are overwriting "provider_id". I was expecting that "age" would be overwritten. Can we check if this a bug or a wrong error message?

cdm$sinusitis |>

  • addAge()

cdm$condition_occurrence |>

  • addAge(indexDate = "condition_end_date") |>
  • glimpse()

Warning message: The following columns will be overwritten: provider_id

catalamarti commented 3 months ago

thanks @ajoedicke, this is a wrong error message, in principle solved in the v1.0 release #651 Will add a test to check whether this is true

catalamarti commented 3 months ago

checked with the new release and the message does not appear any more, thanks @ajoedicke