model.Patient
Represents a patient who has called 999.
Usage
model.Patient(
patient_id,
category,
outcome,
call_timestamp,
)Attributes
patient_id: int-
Unique identifier for the patient.
category: str-
Ambulance response category (“C1”, “C2”, “C3” or “C4”).
outcome: str-
Call outcome (“see_and_convey” or “see_and_treat”).
call_timestamp: float-
Time at which patient called 999.
connect_to_queue_time: float-
Time from call to joining the dispatch queue.
allocation_time: float-
Time from call to ambulance allocation.
mobilisation_time: float-
Time from ambulance allocation to departure.
time_to_scene: float-
Travel time to scene.
response_time: float-
Time from the call to ambulance arrival on scene.
on_scene_time: float-
TIme spent at the scene.
time_to_hospital: float-
Travel time from the scene to the destination.
handover_time: float-
Time spent handing over the patient at the destination.
wrap_up_time: float- Time spent preparing the crew and ambulance for the next call.
Attributes
| Name | Description |
|---|---|
| priority | Numeric priority for resource requests (lower = more urgent). |
priority
Numeric priority for resource requests (lower = more urgent).
priority
Methods
| Name | Description |
|---|---|
| __init__() | Create instance of Patient. |
__init__()
Create instance of Patient.
Usage
__init__(patient_id, category, outcome, call_timestamp)Parameters
patient_id: int-
Unique identifier for the patient.
category: str-
Ambulance response category (“C1”, “C2”, “C3” or “C4”).
outcome: str-
Call outcome (“see_and_convey” or “see_and_treat”).
call_timestamp: float- Time at which patient called 999.