Skip to content

Commit

Permalink
HTML-842: Add Appointments Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoodrich committed May 24, 2024
1 parent 1df138d commit 7ce0acf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public void setupRequest(MockHttpServletRequest request, Map<String, String> wid
request.setParameter(widgets.get("Location:"), "2");
request.setParameter(widgets.get("Provider:"), "502");
request.setParameter(widgets.get("Appointments:"), "05f2ad92-1cc8-4cec-bf54-9cac0200746d");
request.setParameter(widgets.get("Appointments:").replace("_05f2ad92-1cc8-4cec-bf54-9cac0200746d",
"_75504r42-3ca8-11e3-bf2b-0800271c1111"), "75504r42-3ca8-11e3-bf2b-0800271c1111");
request.setParameter(widgets.get("Appointments:").replace("_1",
"_2"), "75504r42-3ca8-11e3-bf2b-0800271c1111");
}

@Override
Expand Down Expand Up @@ -167,8 +167,8 @@ public String[] widgetLabelsForEdit() {

public void setupEditRequest(MockHttpServletRequest request, Map<String, String> widgets) {
request.setParameter(widgets.get("Appointments:"), "");
request.setParameter(widgets.get("Appointments:").replace("_05f2ad92-1cc8-4cec-bf54-9cac0200746d",
"_75504r42-3ca8-11e3-bf2b-0800271c1111"), "75504r42-3ca8-11e3-bf2b-0800271c1111");
request.setParameter(widgets.get("Appointments:").replace("_1",
"_2"), "75504r42-3ca8-11e3-bf2b-0800271c1111");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ && new DateTime(appointment.getStartDateTime()).withTimeAtStartOfDay()
&& appointment.getFulfillingEncounters().contains(context.getExistingEncounter())) {
checkboxWidget.setInitialValue(appointment.getUuid());
}
context.registerWidget(checkboxWidget, fieldName + "_" + appointment.getUuid());
context.registerWidget(checkboxWidget, fieldName + "_" + appointment.getId());
checkboxWidgets.add(checkboxWidget);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<appointment_speciality speciality_id="1" name="Ortho" uuid="c36006e5-9fbb-4f20-866b-0ece245615a1" creator="1"/>
<appointment_service appointment_service_id="1" name="Consultation" description="Consultation" start_time="09:00:00" end_time="17:00:00" location_id="1"
speciality_id="1" max_appointments_limit="4" duration_mins="30" creator="1" uuid="c36006e5-9fbb-4f20-866b-0ece245615a6" voided="false"/>
<patient_appointment patient_appointment_id="1" patient_id ="2" appointment_service_id="1" start_date_time="2024-08-15 12:00:00.0" end_date_time="2024-08-15 13:00:00.0" status="Scheduled" appointment_kind="Scheduled" creator="1" location_id="2" date_created="2108-08-10 15:57:09.0" voided="false" void_reason="" uuid="75504r42-3ca8-11e3-bf2b-0800271c1111"/>
<patient_appointment_provider patient_appointment_provider_id="1" provider_id="1" patient_appointment_id="1" date_created="2005-09-22 00:00:00.0" creator="1" voided="false" void_reason="" uuid="f716177b-82ca-49e7-8394-cfe7c8d21f80"/>
<patient_appointment patient_appointment_id="2" patient_id ="2" appointment_service_id="1" start_date_time="2024-08-16 13:00:00.0" end_date_time="2024-08-16 14:00:00.0" status="Scheduled" appointment_kind="Scheduled" creator="1" location_id="3" date_created="2108-08-10 15:57:09.0" voided="false" void_reason="" uuid="05f2ad92-1cc8-4cec-bf54-9cac0200746d"/>
<patient_appointment patient_appointment_id="1" patient_id ="2" appointment_service_id="1" start_date_time="2024-08-16 13:00:00.0" end_date_time="2024-08-16 14:00:00.0" status="Scheduled" appointment_kind="Scheduled" creator="1" location_id="3" date_created="2108-08-10 15:57:09.0" voided="false" void_reason="" uuid="05f2ad92-1cc8-4cec-bf54-9cac0200746d"/>
<patient_appointment_provider patient_appointment_provider_id="2" provider_id="1" patient_appointment_id="2" date_created="2005-09-22 00:00:00.0" creator="1" voided="false" void_reason="" uuid="f7b1c999-6d25-4939-b6ad-effafaaeb0f6"/>
<patient_appointment patient_appointment_id="2" patient_id ="2" appointment_service_id="1" start_date_time="2024-08-15 12:00:00.0" end_date_time="2024-08-15 13:00:00.0" status="Scheduled" appointment_kind="Scheduled" creator="1" location_id="2" date_created="2108-08-10 15:57:09.0" voided="false" void_reason="" uuid="75504r42-3ca8-11e3-bf2b-0800271c1111"/>
<patient_appointment_provider patient_appointment_provider_id="1" provider_id="1" patient_appointment_id="1" date_created="2005-09-22 00:00:00.0" creator="1" voided="false" void_reason="" uuid="f716177b-82ca-49e7-8394-cfe7c8d21f80"/>
</dataset>

0 comments on commit 7ce0acf

Please sign in to comment.