So I noticed that when you select a date/time from the “Find Available” dialogue that it brings the date back into the UI in this format: yyyy-mm-dd. And then it fails every time when I try to save it. And by “fails” what I mean is that the appointment date/time we just selected does not show up in the calendar.
I also noticed that if I take the date that was returned from the “Find Available” dialogue, use the calendar widget, and go select that date, that it works fine.
Is there some date format setting somewhere? I don’t see any errors on the server so I don’t think that it’s failing to save anything. It’s just that the data that’s get sent back apparently is not in the expected format?
Here’s the GET request:
/emr/interface/main/calendar/find_appt_popup.php?providerid=1&catid=5&facility=4&startdate=2018-08-28&evdur=45
And apparently this is the eventual POST request to add the calendar event:
/emr/interface/main/calendar/add_edit_event.php?eid=
Here are that request’s parameters:
resname: empty
form_action: save
recurr_affect:
selected_date: 2018-07-01
event_start_date: 2018-07-01
old_repeats: 0
rt2_flag2: 0
form_category: 5
form_date: 2018-08-28
form_allday: 0
form_hour: 12
form_minute: 00
form_ampm: 2
form_title: Therapy Session (45 min)
form_duration: 45
facility: 4
billing_facility: 4
form_patient: Patient, TestNew
form_pid: 46633
form_provider: 1
form_repeat_exdate:
form_apptstatus: -
form_prefcat: 0
form_room:
form_comments:
form_dob:
When I change the format of the date in the calendar widget and pass this to the POST:
resname: empty
form_action: save
recurr_affect:
selected_date: 2018-07-01
event_start_date: 2018-07-01
old_repeats: 0
rt2_flag2: 0
form_category: 5
form_date: 08/30/2018
form_allday: 0
form_hour: 12
form_minute: 00
form_ampm: 2
form_title: Therapy Session (45 min)
form_duration: 45
facility: 4
billing_facility: 4
form_patient: Patient, TestNew
form_pid: 46633
form_provider: 1
form_repeat_exdate:
form_apptstatus: -
form_prefcat: 0
form_room:
form_comments:
form_dob:
I meet with success.
In case it’s not totally clear, the difference is in how we are sending back the form_date variable in the POST.
Also, my Global Settings -> Locale -> Date Display Format value in EMR is MM/DD/YYYY.
So how do I make it so that dates show up appropriately and/or are handled appropriately?