|
39 | 39 | PolypInterventionModalityOptions, |
40 | 40 | PolypInterventionDeviceOptions, |
41 | 41 | PolypInterventionExcisionTechniqueOptions, |
| 42 | + to_enum_name_or_value, |
42 | 43 | ) |
43 | 44 | from pages.screening_subject_search.advance_fobt_screening_episode_page import ( |
44 | 45 | AdvanceFOBTScreeningEpisodePage, |
@@ -408,32 +409,38 @@ def fill_out_drug_information(self, drug_information: dict) -> None: |
408 | 409 | for key, value in drug_information.items(): |
409 | 410 | if key.startswith("drug_type"): |
410 | 411 | index = key[len("drug_type") :] |
411 | | - logging.info(f"Adding drug type {index}") |
| 412 | + logging.info( |
| 413 | + f"Adding drug type {index}: {to_enum_name_or_value(value)}" |
| 414 | + ) |
412 | 415 | select_locator = f"#UI_BOWEL_PREP_DRUG{index}" |
413 | 416 | self.page.select_option(select_locator, value) |
414 | 417 | elif key.startswith("drug_dose"): |
415 | 418 | index = key[len("drug_dose") :] |
416 | | - logging.info(f"Adding drug dose {index}") |
| 419 | + logging.info(f"Adding drug dose {index}: {value}") |
417 | 420 | input_locator = f"#UI_BOWEL_PREP_DRUG_DOSE{index}" |
418 | 421 | self.page.fill(input_locator, value) |
419 | 422 | elif key.startswith("antibiotic_drug_type"): |
420 | 423 | index = key[len("antibiotic_drug_type") :] |
421 | | - logging.info(f"Adding antibiotic drug type {index}") |
| 424 | + logging.info( |
| 425 | + f"Adding antibiotic drug type {index}: {to_enum_name_or_value(value)}" |
| 426 | + ) |
422 | 427 | select_locator = f"#UI_ANTIBIOTIC{index}" |
423 | 428 | self.page.select_option(select_locator, value) |
424 | 429 | elif key.startswith("antibiotic_drug_dose"): |
425 | 430 | index = key[len("antibiotic_drug_dose") :] |
426 | | - logging.info(f"Adding antibiotic drug dose {index}") |
| 431 | + logging.info(f"Adding antibiotic drug dose {index}: {value}") |
427 | 432 | input_locator = f"#UI_ANTIBIOTIC_DOSE{index}" |
428 | 433 | self.page.fill(input_locator, value) |
429 | 434 | elif key.startswith("other_drug_type"): |
430 | 435 | index = key[len("other_drug_type") :] |
431 | | - logging.info(f"Adding other drug type {index}") |
| 436 | + logging.info( |
| 437 | + f"Adding other drug type {index}: {to_enum_name_or_value(value)}" |
| 438 | + ) |
432 | 439 | select_locator = f"#UI_DRUG{index}" |
433 | 440 | self.page.select_option(select_locator, value) |
434 | 441 | elif key.startswith("other_drug_dose"): |
435 | 442 | index = key[len("other_drug_dose") :] |
436 | | - logging.info(f"Adding other drug dose {index}") |
| 443 | + logging.info(f"Adding other drug dose {index}: {value}") |
437 | 444 | input_locator = f"#UI_DOSE{index}" |
438 | 445 | self.page.fill(input_locator, value) |
439 | 446 |
|
|
0 commit comments