diff --git a/data/dummy/facility.json b/data/dummy/facility.json index f2a1113659..22908ab01e 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -7377,5 +7377,741 @@ "created_by": 2, "last_edited_by": 2 } + }, + { + "model": "facility.shiftingrequest", + "pk": 2, + "fields": { + "external_id": "b1e6df81-35a2-4dc2-89cf-1b78a968e456", + "created_date": "2023-05-12T09:18:40.123Z", + "modified_date": "2023-11-20T14:55:30.987Z", + "deleted": false, + "origin_facility": 3, + "shifting_approving_facility": 4, + "assigned_facility_type": 1, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 2, + "emergency": false, + "is_up_shift": false, + "reason": "Scheduled transfer for further treatment", + "vehicle_preference": "Car", + "preferred_vehicle_choice": 40, + "comments": "No special instructions", + "refering_facility_contact_name": "Alice Johnson", + "refering_facility_contact_number": "+1122334455", + "is_kasp": true, + "status": 20, + "breathlessness_level": 15, + "is_assigned_to_user": true, + "assigned_to": 3, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 4, + "last_edited_by": 3 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 3, + "fields": { + "external_id": "c2d8ab92-15e3-4f67-8d36-9a5175f83467", + "created_date": "2023-07-18T15:40:20.789Z", + "modified_date": "2023-10-30T11:25:55.321Z", + "deleted": false, + "origin_facility": 2, + "shifting_approving_facility": 1, + "assigned_facility_type": 3, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 3, + "emergency": true, + "is_up_shift": true, + "reason": "Patient needs immediate ICU admission", + "vehicle_preference": "All double chambered Ambulance with EMT", + "preferred_vehicle_choice": 20, + "comments": "", + "refering_facility_contact_name": "Emily Clark", + "refering_facility_contact_number": "+9988776655", + "is_kasp": false, + "status": 40, + "breathlessness_level": 40, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "Michael Johnson", + "ambulance_phone_number": "+3344556677", + "ambulance_number": "", + "created_by": 1, + "last_edited_by": 1 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 4, + "fields": { + "external_id": "d3e9bcf3-6a7f-4c7e-ba5f-5c1f98535d82", + "created_date": "2023-08-24T13:55:10.422Z", + "modified_date": "2023-11-15T16:30:45.123Z", + "deleted": false, + "origin_facility": 4, + "shifting_approving_facility": 3, + "assigned_facility_type": null, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 4, + "emergency": false, + "is_up_shift": true, + "reason": "Patient needs to be shifted to a specialized facility", + "vehicle_preference": "Auto-rickshaw", + "preferred_vehicle_choice": 50, + "comments": "", + "refering_facility_contact_name": "David Smith", + "refering_facility_contact_number": "+7788990011", + "is_kasp": true, + "status": 80, + "breathlessness_level": 20, + "is_assigned_to_user": true, + "assigned_to": 2, + "ambulance_driver_name": "Sarah Brown", + "ambulance_phone_number": "+6655443322", + "ambulance_number": "", + "created_by": 3, + "last_edited_by": 4 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 5, + "fields": { + "external_id": "e4f5cd6e-8b0d-4b68-86d3-2f3f51c4af90", + "created_date": "2023-10-01T09:30:45.654Z", + "modified_date": "2023-12-05T14:20:30.987Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": null, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 5, + "emergency": true, + "is_up_shift": false, + "reason": "Patient requires transfer for specialized surgery", + "vehicle_preference": "", + "preferred_vehicle_choice": null, + "comments": "Urgent transfer needed", + "refering_facility_contact_name": "Jennifer Lee", + "refering_facility_contact_number": "+1122334455", + "is_kasp": false, + "status": 15, + "breathlessness_level": null, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 1, + "last_edited_by": 2 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 6, + "fields": { + "external_id": "550e8400-e29b-41d4-a716-446655440000", + "created_date": "2023-11-15T10:20:30.123Z", + "modified_date": "2023-12-06T08:00:15.789Z", + "deleted": false, + "origin_facility": 3, + "shifting_approving_facility": 1, + "assigned_facility_type": 1, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 6, + "emergency": false, + "is_up_shift": false, + "reason": "Scheduled transfer for follow-up treatment", + "vehicle_preference": "D Level Ambulance", + "preferred_vehicle_choice": 10, + "comments": "", + "refering_facility_contact_name": "Mark Taylor", + "refering_facility_contact_number": "+3344556677", + "is_kasp": true, + "status": 70, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "Emma White", + "ambulance_phone_number": "+9988776655", + "ambulance_number": "", + "created_by": 4, + "last_edited_by": 3 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 7, + "fields": { + "external_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", + "created_date": "2023-12-06T08:30:45.987Z", + "modified_date": "2023-12-06T08:30:45.987Z", + "deleted": false, + "origin_facility": 2, + "shifting_approving_facility": null, + "assigned_facility_type": null, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 7, + "emergency": true, + "is_up_shift": true, + "reason": "Urgent transfer for advanced treatment", + "vehicle_preference": "Car", + "preferred_vehicle_choice": 40, + "comments": "", + "refering_facility_contact_name": "Sophia Garcia", + "refering_facility_contact_number": "+5566778899", + "is_kasp": false, + "status": 60, + "breathlessness_level": 15, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 1 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 8, + "fields": { + "external_id": "123e4567-e89b-12d3-a456-426614174000", + "created_date": "2023-12-06T08:47:55.705Z", + "modified_date": "2023-12-06T08:47:55.705Z", + "deleted": false, + "origin_facility": 4, + "shifting_approving_facility": 3, + "assigned_facility_type": 3, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 8, + "emergency": false, + "is_up_shift": true, + "reason": "Patient needs specialized care", + "vehicle_preference": "", + "preferred_vehicle_choice": null, + "comments": "Patient requires specific equipment", + "refering_facility_contact_name": "Oliver Brown", + "refering_facility_contact_number": "+9988776655", + "is_kasp": true, + "status": 100, + "breathlessness_level": 40, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 3, + "last_edited_by": 4 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 9, + "fields": { + "external_id": "09876543-210e-4567-a890-1234567890ab", + "created_date": "2023-12-06T09:00:00.000Z", + "modified_date": "2023-12-06T09:00:00.000Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 9, + "emergency": true, + "is_up_shift": false, + "reason": "Patient needs immediate attention", + "vehicle_preference": "Ambulance without EMT", + "preferred_vehicle_choice": 30, + "comments": "Critical condition, prioritize", + "refering_facility_contact_name": "Liam Wilson", + "refering_facility_contact_number": "+9988776655", + "is_kasp": false, + "status": 20, + "breathlessness_level": 20, + "is_assigned_to_user": true, + "assigned_to": 1, + "ambulance_driver_name": "Ethan Davis", + "ambulance_phone_number": "+1122334455", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 1 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 11, + "fields": { + "external_id": "abcdef01-2345-6789-abcd-ef0123456789", + "created_date": "2023-08-19T16:40:55.743Z", + "modified_date": "2023-11-30T10:20:05.214Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 11, + "emergency": true, + "is_up_shift": false, + "reason": "Patient needs immediate care", + "vehicle_preference": "Ambulance without EMT", + "preferred_vehicle_choice": 30, + "comments": "Contact family members", + "refering_facility_contact_name": "John Doe", + "refering_facility_contact_number": "+9988776655", + "is_kasp": true, + "status": 20, + "breathlessness_level": 20, + "is_assigned_to_user": true, + "assigned_to": 1, + "ambulance_driver_name": "Ethan Davis", + "ambulance_phone_number": "+1122334455", + "ambulance_number": "AMB1122", + "created_by": 2, + "last_edited_by": 1 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 12, + "fields": { + "external_id": "a0b1c2d3-e4f5-6789-abcd-0123456789ab", + "created_date": "2023-04-15T14:30:20.990Z", + "modified_date": "2023-10-25T08:55:15.789Z", + "deleted": false, + "origin_facility": 2, + "shifting_approving_facility": null, + "assigned_facility_type": null, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 12, + "emergency": false, + "is_up_shift": true, + "reason": "Patient needs specialized care", + "vehicle_preference": "Car", + "preferred_vehicle_choice": 40, + "comments": "Coordinate with receiving facility", + "refering_facility_contact_name": "Jane Smith", + "refering_facility_contact_number": "+5566778899", + "is_kasp": false, + "status": 60, + "breathlessness_level": 15, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 1, + "last_edited_by": 2 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 13, + "fields": { + "external_id": "e3a2dc83-82e1-422a-9c4f-86b4c1f0c2d3", + "created_date": "2023-11-10T11:05:45.372Z", + "modified_date": "2023-12-03T16:25:35.948Z", + "deleted": false, + "origin_facility": 3, + "shifting_approving_facility": 1, + "assigned_facility_type": 1, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 13, + "emergency": true, + "is_up_shift": false, + "reason": "Patient requires transfer for specialized surgery", + "vehicle_preference": "Auto-rickshaw", + "preferred_vehicle_choice": 50, + "comments": "Ensure medical records are transferred", + "refering_facility_contact_name": "Jennifer Lee", + "refering_facility_contact_number": "+1122334455", + "is_kasp": true, + "status": 15, + "breathlessness_level": null, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 1 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 15, + "fields": { + "external_id": "98765432-10e2-40f1-a0b9-876543210abc", + "created_date": "2023-09-05T22:50:10.221Z", + "modified_date": "2023-12-04T14:30:45.501Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 15, + "emergency": true, + "is_up_shift": true, + "reason": "Test", + "vehicle_preference": "", + "preferred_vehicle_choice": 10, + "comments": "", + "refering_facility_contact_name": "Someone at Facility", + "refering_facility_contact_number": "+914455666777", + "is_kasp": false, + "status": 100, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 14, + "fields": { + "external_id": "f0e1d2c3-b4a5-6789-cdef-0123456789ab", + "created_date": "2023-06-20T18:15:30.125Z", + "modified_date": "2023-12-02T09:40:55.801Z", + "deleted": false, + "origin_facility": 4, + "shifting_approving_facility": 3, + "assigned_facility_type": 3, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 14, + "emergency": false, + "is_up_shift": true, + "reason": "Scheduled transfer for follow-up treatment", + "vehicle_preference": "D Level Ambulance", + "preferred_vehicle_choice": 10, + "comments": "Provide discharge summary", + "refering_facility_contact_name": "Mark Taylor", + "refering_facility_contact_number": "+3344556677", + "is_kasp": true, + "status": 70, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "Emma White", + "ambulance_phone_number": "+9988776655", + "ambulance_number": "", + "created_by": 4, + "last_edited_by": 3 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 15, + "fields": { + "external_id": "98765432-10e2-40f1-a0b9-876543210abc", + "created_date": "2023-09-05T22:50:10.221Z", + "modified_date": "2023-12-04T14:30:45.501Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": null, + "patient": 15, + "emergency": true, + "is_up_shift": true, + "reason": "Test", + "vehicle_preference": "", + "preferred_vehicle_choice": 10, + "comments": "", + "refering_facility_contact_name": "Someone at Facility", + "refering_facility_contact_number": "+914455666777", + "is_kasp": false, + "status": 100, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.resourcerequest", + "pk": 1, + "fields": { + "origin_facility": 1, + "approving_facility": 2, + "assigned_facility": 3, + "emergency": false, + "title": "Oxygen Cylinder Request", + "reason": "Insufficient oxygen supply", + "refering_facility_contact_name": "Dr. Smith", + "refering_facility_contact_number": "+1234567890", + "status": 10, + "category": 100, + "sub_category": 120, + "priority": null, + "requested_quantity": 5, + "assigned_quantity": 0, + "is_assigned_to_user": false, + "assigned_to": null, + "created_by": 1, + "last_edited_by": 1, + "created_date": "2023-09-05T22:50:10.221Z", + "modified_date": "2023-09-05T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 2, + "fields": { + "origin_facility": 1, + "approving_facility": 5, + "assigned_facility": 8, + "emergency": true, + "title": "Oxygen Cylinder Request", + "reason": "Urgent need for oxygen supply", + "refering_facility_contact_name": "Dr. John", + "refering_facility_contact_number": "+987654321", + "status": 15, + "category": 100, + "sub_category": 130, + "priority": 1, + "requested_quantity": 10, + "assigned_quantity": 2, + "is_assigned_to_user": true, + "assigned_to": 3, + "created_by": 2, + "last_edited_by": 2, + "created_date": "2023-09-06T22:50:10.221Z", + "modified_date": "2023-09-06T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 3, + "fields": { + "origin_facility": 7, + "approving_facility": 2, + "assigned_facility": 3, + "emergency": false, + "title": "Medical Supplies Request", + "reason": "Need for surgical supplies", + "refering_facility_contact_name": "Dr. Emily", + "refering_facility_contact_number": "+1122334455", + "status": 20, + "category": 200, + "sub_category": 1000, + "priority": null, + "requested_quantity": 20, + "assigned_quantity": 10, + "is_assigned_to_user": false, + "assigned_to": null, + "created_by": 3, + "last_edited_by": 3, + "created_date": "2023-09-07T22:50:10.221Z", + "modified_date": "2023-09-07T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 4, + "fields": { + "origin_facility": 9, + "approving_facility": 1, + "assigned_facility": 4, + "emergency": true, + "title": "Oxygen Cylinder Request", + "reason": "Critical shortage of oxygen", + "refering_facility_contact_name": "Dr. Patel", + "refering_facility_contact_number": "+9988776655", + "status": 30, + "category": 100, + "sub_category": 110, + "priority": 2, + "requested_quantity": 15, + "assigned_quantity": 0, + "is_assigned_to_user": false, + "assigned_to": null, + "created_by": 4, + "last_edited_by": 4, + "created_date": "2023-09-08T22:50:10.221Z", + "modified_date": "2023-09-08T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 5, + "fields": { + "origin_facility": 5, + "approving_facility": 6, + "assigned_facility": 7, + "emergency": false, + "title": "Medical Supplies Request", + "reason": "Need for bandages and gauze", + "refering_facility_contact_name": "Dr. Lee", + "refering_facility_contact_number": "+3344556677", + "status": 55, + "category": 200, + "sub_category": 1000, + "priority": null, + "requested_quantity": 30, + "assigned_quantity": 20, + "is_assigned_to_user": false, + "assigned_to": null, + "created_by": 5, + "last_edited_by": 5, + "created_date": "2023-09-09T22:50:10.221Z", + "modified_date": "2023-09-09T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 6, + "fields": { + "origin_facility": 12, + "approving_facility": 9, + "assigned_facility": 1, + "emergency": true, + "title": "Oxygen Cylinder Request", + "reason": "Urgent need for oxygen supply", + "refering_facility_contact_name": "Dr. Chang", + "refering_facility_contact_number": "+5566778899", + "status": 80, + "category": 100, + "sub_category": 120, + "priority": 1, + "requested_quantity": 8, + "assigned_quantity": 8, + "is_assigned_to_user": true, + "assigned_to": 6, + "created_by": 6, + "last_edited_by": 6, + "created_date": "2023-09-10T22:50:10.221Z", + "modified_date": "2023-09-10T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 7, + "fields": { + "origin_facility": 10, + "approving_facility": 11, + "assigned_facility": 9, + "emergency": false, + "title": "Medical Supplies Request", + "reason": "Need for disposable gloves", + "refering_facility_contact_name": "Dr. Johnson", + "refering_facility_contact_number": "+1122334455", + "status": 70, + "category": 200, + "sub_category": 1000, + "priority": null, + "requested_quantity": 50, + "assigned_quantity": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "created_by": 7, + "last_edited_by": 7, + "created_date": "2023-09-11T22:50:10.221Z", + "modified_date": "2023-09-11T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 8, + "fields": { + "origin_facility": 15, + "approving_facility": 7, + "assigned_facility": 6, + "emergency": true, + "title": "Oxygen Cylinder Request", + "reason": "Critical need for oxygen cylinders", + "refering_facility_contact_name": "Dr. Rodriguez", + "refering_facility_contact_number": "+3344556677", + "status": 80, + "category": 100, + "sub_category": 120, + "priority": 2, + "requested_quantity": 12, + "assigned_quantity": 10, + "is_assigned_to_user": true, + "assigned_to": 8, + "created_by": 8, + "last_edited_by": 8, + "created_date": "2023-09-12T22:50:10.221Z", + "modified_date": "2023-09-12T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 9, + "fields": { + "origin_facility": 3, + "approving_facility": 9, + "assigned_facility": 1, + "emergency": false, + "title": "Medical Supplies Request", + "reason": "Need for IV fluids", + "refering_facility_contact_name": "Dr. Wang", + "refering_facility_contact_number": "+5566778899", + "status": 70, + "category": 200, + "sub_category": 1000, + "priority": null, + "requested_quantity": 40, + "assigned_quantity": 25, + "is_assigned_to_user": false, + "assigned_to": null, + "created_by": 9, + "last_edited_by": 9, + "created_date": "2023-09-13T22:50:10.221Z", + "modified_date": "2023-09-13T22:50:10.221Z" + } + }, + { + "model": "facility.resourcerequest", + "pk": 10, + "fields": { + "origin_facility": 10, + "approving_facility": 1, + "assigned_facility": 5, + "emergency": true, + "title": "Oxygen Cylinder Request", + "reason": "Urgent need for oxygen supply", + "refering_facility_contact_name": "Dr. Park", + "refering_facility_contact_number": "+1122334455", + "status": 10, + "category": 100, + "sub_category": 140, + "priority": 1, + "requested_quantity": 20, + "assigned_quantity": 15, + "is_assigned_to_user": true, + "assigned_to": 10, + "created_by": 10, + "last_edited_by": 10, + "created_date": "2023-09-14T22:50:10.221Z", + "modified_date": "2023-09-14T22:50:10.221Z" + } } ]