UC100 (UC New)
1 unresolved thread
1 unresolved thread
This PR contains UC New or UC100, which allows a patient to cancel or edit a new appointment (aka requesting a similar one based off of the past details).
Created:
- The ability for the patient to cancel an existing appointment
- The ability for a patient to reschedule an existing appointment (form is pre-populated with current information)
- Additional unit tests for canceling and editing appointments
- Selenium tests
To test in iTrust:
- Log in as a patient
- Click on
Appointments
menu tab, and click onView/Edit Appointments
- Try testing with the new
Edit
andCancel Appointment
buttons.
- Please note that it would not make sense for the patient to have the ability to edit their appointment details without approval from a HCP
To run the tests, do the following:
- First, run
mvn install -DskipTests
to build and deploy the website (this will ensure that the selenium tests work as expected) - Run
mvn test -Dtest=EditApptPatientActionTest
andmvn test -Dtest=CancelApptPatientActionTest
to run the unit tests - Run
mvn test -Dtest=EditApptPatientTest
to run the selenium tests
Merge request reports
Activity
changed milestone to %Iteration 2
I noticed that you committed changes to
.classpath
and.project
. Its probably not an issue, but I'm not sure if it is needed.Edited by adityab371 DateFormat dFormat = new SimpleDateFormat("MM/dd/yyyy"); 72 DateFormat tFormat = new SimpleDateFormat("hhmma"); 73 String hPart = tFormat.format(oldDate).substring(0,2); 74 String mPart = tFormat.format(oldDate).substring(2,4); 75 String aPart = tFormat.format(oldDate).substring(4); 76 77 String lastSchedDate=dFormat.format(oldDate); 78 String lastApptType=original.getComment(); 79 String lastTime1=hPart; 80 String lastTime2=mPart; 81 String lastTime3=aPart; 82 String lastComment=original.getComment(); 83 if(lastComment == null) lastComment=""; 84 85 if (request.getParameter("editAppt") != null && request.getParameter("apptID") != null) { 86 String headerMessage = ""; mentioned in commit 61dd2062
Please register or sign in to reply