Skip to content
Snippets Groups Projects

UC100 (UC New)

Merged htmoss2 requested to merge UC100 into master
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:

  1. Log in as a patient
  2. Click on Appointments menu tab, and click on View/Edit Appointments
  3. Try testing with the new Edit and Cancel 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:

  1. First, run mvn install -DskipTests to build and deploy the website (this will ensure that the selenium tests work as expected)
  2. Run mvn test -Dtest=EditApptPatientActionTest and mvn test -Dtest=CancelApptPatientActionTest to run the unit tests
  3. Run mvn test -Dtest=EditApptPatientTest to run the selenium tests

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
71 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 = "";
  • GUI functionality works. All tests are passing. I added a few small comments, but otherwise it looks good to merge.

  • adityab3 approved this merge request

    approved this merge request

  • merged

  • adityab3 mentioned in commit 61dd2062

    mentioned in commit 61dd2062

  • Author Owner

    Thanks for the comments on the .classpath and .project, I'll be more careful on that in the future

  • Please register or sign in to reply
    Loading