Interface IPatient
- Namespace
- XENBIT.ResQueServe.Abstractions.Interfaces
- Assembly
- RQS.Abstractions.dll
Represents a patient person involved in an operation, including details such as ID, operation ID, insurance number, and destination location.
public interface IPatient : IPerson
- Inherited Members
- Extension Methods
Remarks
The patient of the operation desk is the context between the dispatch center and the units only: the units (and the simulation) follow its destination, the hospitals never see it. A destination set here directly doesn't occupy a hospital; only an allocation with the hospital's allocation form does, and that one sets the destination here too (see docs/HOSPITAL_ALLOCATION.md).
Properties
AssignedUnitIds
Gets or sets the units of the operation that take care of the patient (several possible, e.g. the emergency doctor and the ambulance).
IReadOnlyList<long> AssignedUnitIds { get; set; }
Property Value
Destination
Gets or sets the destination location for the patient.
IGeoReferenced? Destination { get; set; }
Property Value
DestinationDepartment
Gets or sets the department of the destination hospital that takes the patient; null if not set.
PoiHospitalDepartment? DestinationDepartment { get; set; }
Property Value
Id
Guid Id { get; init; }
Property Value
InsuranceNumber
Gets or sets the insurance number of the patient, if available.
string? InsuranceNumber { get; set; }
Property Value
PickupDeadline
Gets or sets the pickup deadline if the transport is time-bound. Null if not applicable.
DateTimeOffset? PickupDeadline { get; set; }
Property Value
Preselection
Gets or sets the hospital the transporting unit prefers ("Vorauswahl"), reported with the PZC; null if the unit preselected none. Only a wish: the unit drives to the destination once it is set.
IGeoReferenced? Preselection { get; set; }
Property Value
Pzc
Gets or sets the PZC (patient condition code) as its 6-digit value: incident code, age, urgency level
(e.g. 232183); null if not set.
int? Pzc { get; set; }
Property Value
- int?
Methods
GetAge(DateTimeOffset?)
Returns the age in full years as of asOf. Uses DateTime.Now if null.
int? GetAge(DateTimeOffset? asOf = null)
Parameters
asOfDateTimeOffset?
Returns
- int?