@ugandaemr/esm-patient-appointments-app
Version:
Patient appointments microfrontend for the OpenMRS SPA
553 lines (551 loc) • 15.2 kB
text/typescript
export const mockAppointmentsData = {
data: [
{
uuid: "0d54aa56-0411-47f9-9ce9-23d702965881",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1628598900000,
endDateTime: 1628599020000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: null,
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "0f445395-74a7-4d8b-a6ae-8f5195cc172e",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1628598900000,
endDateTime: 1628599020000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: null,
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "c5f4fdab-2d48-4412-adf4-ee26a6b0816f",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1628599800000,
endDateTime: 1628600100000,
appointmentKind: "Scheduled",
status: "Scheduled",
comments: null,
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "7cd38a6d-377e-491b-8284-b04cf8b8c6d8",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1630326900000,
endDateTime: 1630327200000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Walk in appointments",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "e10ce4e3-0e91-4b97-bc6c-9b5068e58428",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631278200000,
endDateTime: 1631278560000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some additional notes",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "8671c6bf-4305-48e4-8d25-bdf227d5f7af",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631367600000,
endDateTime: 1631368800000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: null,
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "cdb0676f-0805-4c3e-bfef-7757a005e892",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631537400000,
endDateTime: 1631537760000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some additional notes",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "66565d8b-4849-4b7c-966a-554d6073f80c",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: null,
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631605800000,
endDateTime: 1631606100000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some additional notes",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "45dcc19d-dd14-4a07-95c6-afa264972a34",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: {
duration: 15,
name: "Chemotherapy",
uuid: "53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1",
},
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631623800000,
endDateTime: 1631624160000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some additional notes",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "fa4657ad-db46-487d-8e2e-a3858c906ae6",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: {
duration: 15,
name: "Chemotherapy",
uuid: "53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1",
},
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631712720000,
endDateTime: 1631713080000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some value",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "45dcc19d-dd14-4a07-95c6-afa264972a35",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: {
duration: 15,
name: "Chemotherapy",
uuid: "53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1",
},
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631623800000,
endDateTime: 1631624160000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some additional notes",
additionalInfo: null,
providers: [],
recurring: false,
},
{
uuid: "fa4657ad-db46-487d-8e2e-a3858c906ae7",
appointmentNumber: "0000",
patient: {
identifier: "100GEJ",
name: "John Wilson",
uuid: "8673ee4f-e2ab-4077-ba55-4980f408773e",
},
service: {
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startTime: "",
endTime: "",
maxAppointmentsLimit: null,
durationMins: null,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
},
serviceType: {
duration: 15,
name: "Chemotherapy",
uuid: "53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1",
},
provider: null,
location: {
name: "Isolation Ward",
uuid: "2131aff8-2e2a-480a-b7ab-4ac53250262b",
},
startDateTime: 1631712720000,
endDateTime: 1631713080000,
appointmentKind: "WalkIn",
status: "Scheduled",
comments: "Some value",
additionalInfo: null,
providers: [],
recurring: false,
},
],
};
export const mockUseAppointmentServiceData = [
{
appointmentServiceId: 1,
name: "Outpatient",
description: null,
speciality: {},
startDateTime: new Date().toISOString(),
endTime: "",
maxAppointmentsLimit: null,
durationMins: 15,
location: {},
uuid: "e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90",
color: "#006400",
initialAppointmentStatus: "Scheduled",
creatorName: null,
weeklyAvailability: [
{
dayOfWeek: "MONDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "7c7c53c8-c104-40cc-9926-50fc6fe4c4c1",
},
{
dayOfWeek: "TUESDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "7683b94e-6c48-4132-b402-54837a8c0fb2",
},
{
dayOfWeek: "SUNDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "00be8427-0037-4984-8875-6a5a2bc57e8e",
},
{
dayOfWeek: "FRIDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "af6b8d5b-be05-4e24-8601-30573f848bec",
},
{
dayOfWeek: "THURSDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "eb35e91b-6909-41fe-9d09-750b83fb3b9c",
},
{
dayOfWeek: "SATURDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "7f6347fd-c514-4fd2-ab79-d7fd760bf82f",
},
{
dayOfWeek: "WEDNESDAY",
startTime: "07:00:00",
endTime: "20:00:00",
maxAppointmentsLimit: null,
uuid: "dad83f54-a0a2-4ba9-819b-01e906c89b69",
},
],
serviceTypes: [
{
duration: 15,
name: "Chemotherapy",
uuid: "53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1",
},
],
},
];