Appointments
Posted: Wed Sep 04, 2024 10:18 am
We're trying to show Appointments in our app but finding some oddities when it comes to clinics. When we make the call for appointments, the ClinicNum associated appears to be the one associated with the patient, not where the appointment is. E.g. if a patient who was registered under ClinicNum 1 goes to ClinicNum 0 for an appointment, we're told the appointment is ClinicNum 1. Are we missing something or doing something wrong that we're overlooking? Thanks.
Here's an example response:
[
{
"AptNum": 151,
"PatNum": 33,
"AptStatus": "Scheduled",
"Pattern": "//XX//",
"Confirmed": 19,
"confirmed": "Unconfirmed",
"Op": 1,
"Note": "",
"ProvNum": 1,
"provAbbr": "DOC1", <- this doc is in the default clinic 0
"ProvHyg": 0,
"AptDateTime": "2024-09-04 11:30:00",
"NextAptNum": 0,
"UnschedStatus": 0,
"unschedStatus": "",
"ProcDescript": "Flo",
"ClinicNum": 1, <- I made the appointment in clinic 0, not 1
"IsHygiene": "False",
"DateTStamp": "2024-09-04 09:24:19",
"DateTimeArrived": "2024-09-04 00:00:00",
"DateTimeSeated": "2024-09-04 00:00:00",
"DateTimeDismissed": "2024-09-04 00:00:00",
"AppointmentTypeNum": 0,
"eServiceLogType": "None",
"serverDateTime": "2024-09-04 10:17:24"
},
{
"AptNum": 150,
"PatNum": 33,
"AptStatus": "Scheduled",
"Pattern": "//XXXX//",
"Confirmed": 19,
"confirmed": "Unconfirmed",
"Op": 7,
"Note": "",
"ProvNum": 5,
"provAbbr": "C1 Doc1",
"ProvHyg": 0,
"AptDateTime": "2024-09-04 11:40:00",
"NextAptNum": 0,
"UnschedStatus": 0,
"unschedStatus": "",
"ProcDescript": "PA, 4-BWX",
"ClinicNum": 1,
"IsHygiene": "False",
"DateTStamp": "2024-09-04 09:24:03",
"DateTimeArrived": "2024-09-04 00:00:00",
"DateTimeSeated": "2024-09-04 00:00:00",
"DateTimeDismissed": "2024-09-04 00:00:00",
"AppointmentTypeNum": 0,
"eServiceLogType": "None",
"serverDateTime": "2024-09-04 10:17:24"
}
]
What I see in OD for clinic 1 (the other appointment shows up when I toggle to clinic 0):
Here's an example response:
[
{
"AptNum": 151,
"PatNum": 33,
"AptStatus": "Scheduled",
"Pattern": "//XX//",
"Confirmed": 19,
"confirmed": "Unconfirmed",
"Op": 1,
"Note": "",
"ProvNum": 1,
"provAbbr": "DOC1", <- this doc is in the default clinic 0
"ProvHyg": 0,
"AptDateTime": "2024-09-04 11:30:00",
"NextAptNum": 0,
"UnschedStatus": 0,
"unschedStatus": "",
"ProcDescript": "Flo",
"ClinicNum": 1, <- I made the appointment in clinic 0, not 1
"IsHygiene": "False",
"DateTStamp": "2024-09-04 09:24:19",
"DateTimeArrived": "2024-09-04 00:00:00",
"DateTimeSeated": "2024-09-04 00:00:00",
"DateTimeDismissed": "2024-09-04 00:00:00",
"AppointmentTypeNum": 0,
"eServiceLogType": "None",
"serverDateTime": "2024-09-04 10:17:24"
},
{
"AptNum": 150,
"PatNum": 33,
"AptStatus": "Scheduled",
"Pattern": "//XXXX//",
"Confirmed": 19,
"confirmed": "Unconfirmed",
"Op": 7,
"Note": "",
"ProvNum": 5,
"provAbbr": "C1 Doc1",
"ProvHyg": 0,
"AptDateTime": "2024-09-04 11:40:00",
"NextAptNum": 0,
"UnschedStatus": 0,
"unschedStatus": "",
"ProcDescript": "PA, 4-BWX",
"ClinicNum": 1,
"IsHygiene": "False",
"DateTStamp": "2024-09-04 09:24:03",
"DateTimeArrived": "2024-09-04 00:00:00",
"DateTimeSeated": "2024-09-04 00:00:00",
"DateTimeDismissed": "2024-09-04 00:00:00",
"AppointmentTypeNum": 0,
"eServiceLogType": "None",
"serverDateTime": "2024-09-04 10:17:24"
}
]
What I see in OD for clinic 1 (the other appointment shows up when I toggle to clinic 0):