@When(
     "the receptionist looks up a pacient name '$name' or cpf '$cpf' or phone '$phone' or gender '$gender' or birth '$birth'")
 public void whenTheReceptionistLooksUpPacient(
     String name, String cpf, String phone, String gender, String birth) {
   endUser.search_enter_name(name);
   endUser.search_enter_cpf(cpf);
   endUser.search_enter_phone(phone);
   endUser.search_enter_gender(gender);
   endUser.search_enter_birth(birth);
   endUser.search_submit();
 }
 @When(
     "the doctor looks up a patient name '$name' or cpf '$cpf' or phone '$phone' or gender '$gender' or birth '$birth'")
 public void whenTheDoctorLooksUpPacient(
     String name, String cpf, String phone, String gender, String birth) {
   if (name != "") endUser.search_enter_name(name);
   if (cpf != "") endUser.search_enter_cpf(cpf);
   if (phone != "") endUser.search_enter_phone(phone);
   if (gender != "") endUser.search_enter_gender(gender);
   if (birth != "") endUser.search_enter_birth(birth);
   endUser.search_submit();
 }
 @When("the doctor looks up field '$name'")
 public void whenTheDoctorLooksUpField(String name) {
   endUser.search_enter_name(name);
   endUser.search_submit();
 }
 @When("the user insert the symptomatic interrogation '$str'")
 public void whenTheUserInsertSymptomaticInterrogation(String str) {
   endUser.inserts_symptomatic(str);
 }
 @When("the user insert the main complaint '$str'")
 public void whenTheUserInsertTheMainComplaint(String str) {
   endUser.inserts_main_complaint(str);
 }
 @Given("the user is doctor")
 public void givenTheUserIsDoctor() {
   assert (endUser.is_doctor());
 }
 @Given("the user is on the subjective data page")
 public void givenTheUserIsOnSubjectiveDataPage() {
   endUser.is_the_subjective_data_page();
   ;
 }
 @Given("the user is on the insertion page")
 public void givenTheUserIsOnInsertionPage() {
   endUser.is_the_insertion_page();
 }
 @Then("a error message '$message' should be sent to the user on registration page")
 public void thenAErrorMessageInsertedIsSentToTheUserOnRegistrationPage(String message) {
   endUser.should_see_error_message_registration(message);
 }
 @When("the user insert the patient's gender '$gender'")
 public void whenTheUserInsertPatientGender(String gender) {
   endUser.inserts_patient_gender(gender);
 }
 // Registration - when
 @When("the user insert the patient's name '$name'")
 public void whenTheUserInsertPatientName(String name) {
   endUser.inserts_patient_name(name);
 }
 @When("the user click the register patient button")
 public void whenTheUserClickTheInsertPatientButton() {
   endUser.click_register_patient_button();
 }
 @Given("the user is on the registration page")
 public void givenTheUserIsOnTheRegistrationPage() {
   endUser.is_on_the_registration_page();
 }
 @Then("they should see a list of patients that met that criteria")
 public void thenTheyShouldSeeListPacientsMetCriteria() {
   endUser.shoud_see_list_pacients_met_criteria();
 }
 @Then("a success message '$message' should be sent to the user on registration page")
 public void thenASuccessMessageInsertedIsSentToTheUserOnRegistrationPage(String message) {
   endUser.should_see_success_message_registration(message);
 }
 @When("the user insert the patient's cpf '$cpf'")
 public void whenTheUserInsertPatientCPF(String cpf) {
   endUser.inserts_patient_cpf(cpf);
 }
 @Then("a success message '$message' should be sent to the user on subjective data page")
 public void thenASuccessMessageInsertedIsSentToTheUserOnSubjectiveDataPage(String message) {
   endUser.should_see_success_message_subjective_data(message);
 }
 @When("the user insert the patient's birth date '$birth'")
 public void whenTheUserInsertPatientBirth(String birth) {
   endUser.inserts_patient_birth(birth);
 }
 @Then("a error message '$message' should be sent to the user on search page")
 public void thenAErrorMessageInsertedIsSentToTheUserOnSearchPage(String message) {
   endUser.should_see_error_message_search(message);
 }
 @When("the user insert the patient's health insurance plan '$plan'")
 public void whenTheUserInsertHealthInsurancePlan(String plan) {
   endUser.inserts_patient_plan(plan);
 }
 @Given("the user is on the search page")
 public void givenTheUserIsOnSearchPage() {
   endUser.is_the_search_page();
   ;
 }
 @When("the user insert the patient's phone '$phone'")
 public void whenTheUserInsertPatientPhone(String phone) {
   endUser.inserts_patient_phone("192222222");
 }
 @Given("the user is receptionist")
 public void givenTheUserIsReceptionist() {
   assert (endUser.is_receptionist());
 }
 @When("the user confirm the submission")
 public void whenTheUserConfirmSubmission() {
   endUser.confirm_patient_registration();
 }
 @Given("the user is receptionist or doctor")
 public void givenTheUserIsReceptionistOrDoctor() {
   assert (endUser.is_receptionist() || endUser.is_doctor());
 }
 @When("the user click on \"Register a patient")
 public void whenTheUserClickOnRegisterPatient() {
   endUser.click_register_patient();
 }
 @When("the user insert the history of present illness '$str'")
 public void whenTheUserInsertHistoryIllness(String str) {
   endUser.inserts_history_illness(str);
 }
 @Given("the user is on buscar paciente page")
 public void givenTheUserIsOnBuscarPacientePage() {
   // endUser.is_the_buscar_paciente_page();
   endUser.is_the_patient_page();
 }
 @When("the user insert the personal and family history '$str'")
 public void whenTheUserInsertPersonalFamilyHistory(String str) {
   endUser.inserts_personal_family_history(str);
 }
 @When("the doctor looks up a patient name '$name'")
 public void whenTheDoctorLooksUpPacientName(String name) {
   endUser.search_enter_name(name);
   endUser.search_submit();
 }