Class HospitalBooking
A patient the dispatcher allocated to a hospital department with the allocation form: occupies one treatment place from the arrival until the approximate end of the treatment. Only allocations made with the form occupy the hospital, a destination set in the patient of the operation desk doesn't.
public class HospitalBooking : IEquatable<HospitalBooking>, IComparable<HospitalBooking>, IComparable
- Inheritance
-
HospitalBooking
- Implements
- Inherited Members
- Extension Methods
Constructors
HospitalBooking()
public HospitalBooking()
Properties
CreatedBy
public IUserInfo? CreatedBy { get; init; }
Property Value
CreatedOn
When the form was sent: the arrival time counts from here.
public required DateTimeOffset CreatedOn { get; init; }
Property Value
Department
The department this booking is assigned to.
public required PoiHospitalDepartment Department { get; init; }
Property Value
End
End of the patient's treatment (exclusive).
public required DateTimeOffset End { get; set; }
Property Value
Form
The form sent to the hospital.
public required HospitalAllocationForm Form { get; set; }
Property Value
HospitalId
public required long HospitalId { get; init; }
Property Value
HospitalName
public string? HospitalName { get; init; }
Property Value
Id
public required Guid Id { get; init; }
Property Value
Patient
The patient of the operation desk whose destination the allocation set; null if none.
public HospitalAllocationPatientReference? Patient { get; init; }
Property Value
Start
Start of the patient's treatment (inclusive): the arrival at the hospital.
public required DateTimeOffset Start { get; set; }
Property Value
Methods
CompareTo(object?)
public int CompareTo(object? obj)
Parameters
objobject
Returns
CompareTo(HospitalBooking?)
public int CompareTo(HospitalBooking? other)
Parameters
otherHospitalBooking
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(HospitalBooking?)
public bool Equals(HospitalBooking? other)
Parameters
otherHospitalBooking
Returns
GetHashCode()
public override int GetHashCode()
Returns
OverlapsWith(DateTimeOffset, DateTimeOffset)
Indicates whether this booking overlaps with the given interval.
public bool OverlapsWith(DateTimeOffset start, DateTimeOffset end)
Parameters
startDateTimeOffsetendDateTimeOffset
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(HospitalBooking?, HospitalBooking?)
public static bool operator ==(HospitalBooking? left, HospitalBooking? right)
Parameters
leftHospitalBookingrightHospitalBooking
Returns
operator >(HospitalBooking?, HospitalBooking?)
public static bool operator >(HospitalBooking? left, HospitalBooking? right)
Parameters
leftHospitalBookingrightHospitalBooking
Returns
operator >=(HospitalBooking?, HospitalBooking?)
public static bool operator >=(HospitalBooking? left, HospitalBooking? right)
Parameters
leftHospitalBookingrightHospitalBooking
Returns
operator !=(HospitalBooking?, HospitalBooking?)
public static bool operator !=(HospitalBooking? left, HospitalBooking? right)
Parameters
leftHospitalBookingrightHospitalBooking
Returns
operator <(HospitalBooking?, HospitalBooking?)
public static bool operator <(HospitalBooking? left, HospitalBooking? right)
Parameters
leftHospitalBookingrightHospitalBooking
Returns
operator <=(HospitalBooking?, HospitalBooking?)
public static bool operator <=(HospitalBooking? left, HospitalBooking? right)
Parameters
leftHospitalBookingrightHospitalBooking