find_nearest_psw_for_client
Ranks active PSWs by distance from their home to the client's service address, helping you identify travel-efficient caregiver assignments.
Instructions
Given a client, rank all active PSWs by how close their home is to the client's service address. Useful for finding the most travel-efficient PSW assignment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of PSWs to return | |
| patient_id | Yes | The client's AlayaCare patient ID | |
| max_distance_km | No | Only return PSWs within this distance in kilometers |