Data Entry Page

The Data Entry Page allows the user to enter data for the observation or escalation task they are doing. It has a floating header that allows the user to access information on the patient while filling out the form.

The page will have some inputs if needed to complete the form but this is not always the case however there will always be at least one button that will allow the user to complete or cancel the task they are doing.

Class Methods:

class liveobs_ui.page_object_models.mobile.data_entry_page.DataEntryPage(driver)[source]

Class that handles interacting with the data entry form

cancel_form()[source]

Press the cancel button on the form (if present)

close_full_patient_info()[source]

Close the full screen patient information popup

close_patient_info()[source]

Close the patient information popup, opened by pressing the button in the floating header

confirm_submit_scored_ob()[source]

Confirm the ‘Submit Score of X for Y, Z’ modal that pops up after first pressing the submit button for scored observations.

get_clinical_risk_in_popup(cli_risk_expected)[source]

Locates and returns the risk from an observation in the confirmation popup :param cli_risk_expected: value expected to be returned :return: string in specified element

get_data_model_from_form()[source]

Get the dataa model for the form so we can use this to determine what to do

static locate_attribute_path(field_input)[source]

Identify the class of the input field and return the specific locator for their attributes

Parameters:field_input – the general locator for the field
Returns:locator for the attribute in the DOM
open_full_patient_info()[source]

Open the full screen patient information popup

open_patient_info()[source]

Open the patient information popup in the floating header

submit_cancellation_reason(cancel_reason)[source]

Select the specified cancellation reason and submit the modal to cancel the task

Parameters:cancel_reason – Name of reason to select
submit_form()[source]

Try to press the submit button on the form. Otherwise scroll down and try again. (Scroll implemented to deal with EOBS-1864)

take_escalation_task()[source]

Take the escalation task presented to the user once an observation that has escalation tasks is submitted

verify_obs_field_displayed(obs_field)[source]

Locates a specific field in an observation form and verifies its visibility

Parameters:obs_field – the observation field to look for
verify_obs_field_not_displayed(obs_field)[source]

Locate a specific field in an observation form and verifies it is not visible

Parameters:obs_field – the observation field to look for
verify_obs_form_displayed(obs_type)[source]

Finds the data-type attribute for the currently open observation form and compares the result to the expected data-type as per the obs_type selected

Parameters:obs_type – the observation selected