Table of Contents

Class HospitalBooking

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll

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

IUserInfo

CreatedOn

When the form was sent: the arrival time counts from here.

public required DateTimeOffset CreatedOn { get; init; }

Property Value

DateTimeOffset

Department

The department this booking is assigned to.

public required PoiHospitalDepartment Department { get; init; }

Property Value

PoiHospitalDepartment

End

End of the patient's treatment (exclusive).

public required DateTimeOffset End { get; set; }

Property Value

DateTimeOffset

Form

The form sent to the hospital.

public required HospitalAllocationForm Form { get; set; }

Property Value

HospitalAllocationForm

HospitalId

public required long HospitalId { get; init; }

Property Value

long

HospitalName

public string? HospitalName { get; init; }

Property Value

string

Id

public required Guid Id { get; init; }

Property Value

Guid

Patient

The patient of the operation desk whose destination the allocation set; null if none.

public HospitalAllocationPatientReference? Patient { get; init; }

Property Value

HospitalAllocationPatientReference

Start

Start of the patient's treatment (inclusive): the arrival at the hospital.

public required DateTimeOffset Start { get; set; }

Property Value

DateTimeOffset

Methods

CompareTo(object?)

public int CompareTo(object? obj)

Parameters

obj object

Returns

int

CompareTo(HospitalBooking?)

public int CompareTo(HospitalBooking? other)

Parameters

other HospitalBooking

Returns

int

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(HospitalBooking?)

public bool Equals(HospitalBooking? other)

Parameters

other HospitalBooking

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

OverlapsWith(DateTimeOffset, DateTimeOffset)

Indicates whether this booking overlaps with the given interval.

public bool OverlapsWith(DateTimeOffset start, DateTimeOffset end)

Parameters

start DateTimeOffset
end DateTimeOffset

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HospitalBooking?, HospitalBooking?)

public static bool operator ==(HospitalBooking? left, HospitalBooking? right)

Parameters

left HospitalBooking
right HospitalBooking

Returns

bool

operator >(HospitalBooking?, HospitalBooking?)

public static bool operator >(HospitalBooking? left, HospitalBooking? right)

Parameters

left HospitalBooking
right HospitalBooking

Returns

bool

operator >=(HospitalBooking?, HospitalBooking?)

public static bool operator >=(HospitalBooking? left, HospitalBooking? right)

Parameters

left HospitalBooking
right HospitalBooking

Returns

bool

operator !=(HospitalBooking?, HospitalBooking?)

public static bool operator !=(HospitalBooking? left, HospitalBooking? right)

Parameters

left HospitalBooking
right HospitalBooking

Returns

bool

operator <(HospitalBooking?, HospitalBooking?)

public static bool operator <(HospitalBooking? left, HospitalBooking? right)

Parameters

left HospitalBooking
right HospitalBooking

Returns

bool

operator <=(HospitalBooking?, HospitalBooking?)

public static bool operator <=(HospitalBooking? left, HospitalBooking? right)

Parameters

left HospitalBooking
right HospitalBooking

Returns

bool