Skip to content

Commit f859a71

Browse files
committed
wip
1 parent 38bc5e3 commit f859a71

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

pages/datasets/investigation_dataset_page.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def __init__(self, page: Page):
3232
self.show_contrast_tagging_and_drug_information = self.page.locator(
3333
"#anchorContrastTaggingDrug"
3434
)
35+
self.show_radiology_information = self.page.locator("#anchorRadiology")
3536
self.aspirant_endoscopist_link = self.page.locator(
3637
"#UI_ASPIRANT_ENDOSCOPIST_PIO_SELECT_LINK"
3738
)
@@ -202,6 +203,13 @@ def click_show_contrast_tagging_and_drug_information(self) -> None:
202203
"""
203204
self.click(self.show_contrast_tagging_and_drug_information)
204205

206+
def click_show_radiology_information(self) -> None:
207+
"""
208+
This method is designed to click on the show radiology information link.
209+
It clicks on the show radiology information link.
210+
"""
211+
self.click(self.show_radiology_information)
212+
205213
def select_aspirant_endoscopist_option(self, option: str) -> None:
206214
"""
207215
This method is designed to select an aspirant endoscopist from the aspirant endoscopist options.
@@ -1187,7 +1195,7 @@ class DrugTypeOptions(StrEnum):
11871195
MOVIPREP = "200536~Sachet(s)"
11881196
CITRAMAG = "200538~Sachet(s)"
11891197
MANNITOL = "200539~Litre(s)"
1190-
GASTROGRAFIN = "200540~Mls Solution"
1198+
GASTROGRAFIN = "200540~Mls Solution~204334"
11911199
PHOSPHATE_ENEMA = "200528~Sachet(s)"
11921200
MICROLAX_ENEMA = "200529~Sachet(s)"
11931201
OSMOSPREP = "203063~Tablet(s)"

utils/investigation_dataset.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -340,16 +340,23 @@ def complete_dataset_with_args(
340340
extracolonic_summary_code: Optional[str] = None,
341341
intracolonic_summary_code: Optional[str] = None,
342342
) -> None:
343-
"""This method completes the investigation dataset with the provided dictionaries.
343+
"""
344+
Completes the investigation dataset using the provided dictionaries for each section.
345+
344346
Args:
345-
general_information (dict): A dictionary containing the general information to be filled in the form.
346-
drug_information (dict): A dictionary containing the drug information to be filled in the form.
347-
endoscopy_information (dict): A dictionary containing the endoscopy information to be filled in the form.
348-
failure_information (dict): A dictionary containing the failure information to be filled in the form.
349-
completion_information (Optional[dict]): An optional dictionary containing the completion information to be filled in the form.
350-
polyp_information (Optional[list]): An optional list containing the polyp information to be filled in the form.
351-
polyp_intervention (Optional[list]): An optional list containing the polyp intervention to be filled in the form.
352-
polyp_histology (Optional[list]): An optional list containing the polyp histology to be filled in the form.
347+
general_information (Optional[dict]): General dataset fields (site, practitioner, clinician, etc.).
348+
drug_information (Optional[dict]): Drug types and dosages for the main drug section.
349+
endoscopy_information (Optional[dict]): Endoscopy procedure details and related fields.
350+
failure_information (Optional[dict]): Failure reasons and related information.
351+
completion_information (Optional[dict]): Completion proof parameters.
352+
polyp_information (Optional[list[dict]]): List of polyp information dictionaries.
353+
polyp_intervention (Optional[list[dict] or list[list[dict]]]): List of interventions per polyp, or lists of interventions for each polyp.
354+
polyp_histology (Optional[list[dict]]): List of polyp histology dictionaries.
355+
contrast_tagging_and_drug (Optional[dict]): Contrast, tagging agent, and drug information.
356+
tagging_agent_given_drug_information (Optional[dict]): Tagging agent drug types and doses.
357+
radiology_information (Optional[dict]): Radiology section fields.
358+
extracolonic_summary_code (Optional[str]): Extracolonic summary code value.
359+
intracolonic_summary_code (Optional[str]): Intracolonic summary code value.
353360
"""
354361
logging.info("Completing investigation dataset with the provided dictionaries")
355362
# Investigation Dataset
@@ -615,6 +622,8 @@ def fill_out_radiology_information(self, radiology_data: dict) -> None:
615622
"""
616623
logging.info("Filling out Radiology Information")
617624

625+
self.investigation_datasets_pom.click_show_radiology_information()
626+
618627
# Define mapping for each radiology field and its selector
619628
radiology_map = {
620629
"examination_quality": "#UI_EXAM_QUALITY",

0 commit comments

Comments
 (0)