-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: hardcode_no_ct
algorithm
#40
Comments
@ramiromagno - Please take a look. If this is ok, I will create similar requirements for assign_ct, assign_no_ct |
@rammprasad : Thank you for the examples. I've quickly prepared some draft code for |
Yes, this is perfect. Please do the same for |
Feature Idea
The
hardcode_no_ct
algorithm will be implemented as a function. As referred in the documentation, this will be used to hardcode a value.Algorithm Description - Mapping a hardcoded value to a target SDTM variable that has no terminology restrictions.
Example mappings -
FA.FASCAT = ‘COVID-19 PROBABLE CASE’
CM.CMTRT = ‘FLUIDS’
CM.CMCAT = 'GENERAL CONCOMITANT MEDICATIONS'
function call
Input:
raw_dataset - R dataframe. Usually, the raw dataset.
raw_variable - A Character string. Name of the variable in the raw dataset
target_sdtm_variable - A Character string. Name of the SDTM variable that has to be derived
target_hardcoded_value - A Character string. The hardcoded text.
target_dataset - Optional parameter. This is the target_dataset that was created in the previous step.
merge_to_topic_by - Optional parameter. A vector with the string that will be used to merge to the target_dataset
Output:
A dataframe with oak_id_vars and target_sdtm_variable if target_dataset & merge_to_topic_by are not provided
target_dataset with one additional variable
target_sdtm_variable
Relevant Input
sdtm spec
raw_datasaet = MD1
raw_variable = "MDRAW"
target_variable = "CMCAT"
target_dataset = cm_inter - Let's assume CMTRT, CMINDC variables are already derived and CMCAT is the third variable being processed
merge_to_topic_by - oak_id_vars
Relevant Output
Option 1 - When the function call is
output dataset from the function
Option 2 - When used without merging
Output dataset
Reproducible Example/Pseudo Code
The text was updated successfully, but these errors were encountered: