""" Page Object Model for interacting with Patients By Ward Page """
from liveobs_ui.page_object_models.desktop.list_view_common import \
BaseListViewPage
from liveobs_ui.page_object_models.desktop.wardboard_common import \
WardBoardPage
from liveobs_ui.selectors.desktop.list_selectors import \
PATIENTS_WITHOUT_BED_PLACEMENT_BUTTON
from liveobs_ui.selectors.desktop.modal_selectors import MODAL_CONTAINER
[docs]class PatientsWithoutBedPage(BaseListViewPage, WardBoardPage):
""" Interaction with Patients Without Bed Page """
[docs] def go_to_patients_without_bed(self):
""" Navigate the user to the Patients Without Bed page """
self.go_to_page('Patients without bed')
[docs] def open_bed_placement_by_name(self, patient_name):
"""
Find the row in the list for the supplied patient then open the
bed placement popup
:param patient_name: Name of patient who we want to place in bed
"""
list_row = self.get_list_item_by_name(patient_name)
self.open_bed_placement_popup(list_row)