Skip to content

Conversation

@sadchla-codes
Copy link
Collaborator

Issue

Closes #755

Description

This PR removes hardcoded use of DOSEA in the PKNCA object creation workflow. The dose amount variable is now taken from the app’s column-mapping configuration (data$dose$columns$dose) and used consistently when building the PKNCAdose/PKNCAdata objects and any downstream joins/plots that rely on the dose column.

This keeps existing behavior for standard ADNCA inputs while enabling datasets where the dose amount column is not named DOSEA (e.g., DOSEAMT, EXDOSE), as long as the user maps the correct dose column in the app.

Change description.

Definition of Done

  • Remove hardcoding of DOSEA (dose amount) in the app workflow and underlying helpers.

  • Ensure the PKNCA dose variable is created using the mapped DOSE column name (from column mapping).

  • No functional change for existing workflows where the dose amount column is already DOSEA

Definition of done, preferably copied from the issue.

How to test

How to test features not covered by unit tests.

Contributor checklist

  • Code passes lintr checks
  • Code passes all unit tests
  • New logic covered by unit tests
  • New logic is documented
  • App or package changes are reflected in NEWS
  • Package version is incremented

Notes to reviewer

  • Primary change is replacing direct "DOSEA" usage with the mapped dose column (data$dose$columns$dose) when constructing the PKNCAdose/PKNCAdata objects.

  • Downstream code already uses pknca_data$dose$columns$dose in places (e.g., joins), so once the PKNCA dose column is set correctly, the rest of the workflow should behave the same.

  • Backward compatibility is preserved for standard ADNCA inputs where the dose amount column is DOSEA.

Anything that the reviewer should know before tacking the pull request?

@sadchla-codes sadchla-codes marked this pull request as draft January 19, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Remove hardcoding of DOSEA in app workflow

2 participants