This function creates system guidelines using a provided dataframe (master_df) with details of each guideline. Note that it is recommended to use the get_system_guidelines_list function to obtain the guideline IDs. The function will return the original master_df with a new column named "result" that contains the response from each request. The function logs information about its progress and any errors that occur during execution.

create_system_guidelines(master_df)

Arguments

master_df

A dataframe containing details of each guideline to be created, with the following columns:

  • "analyte_name"

  • "comparison_operation"

  • "guideline_id"

  • "reference"

  • "value"

  • "unit"

  • "value_type"

Value

A dataframe with the same columns as master_df and an additional column named "result" that contains the response from each request.