# Class PatientLocation

Namespace
  adas_core.Domain.Models

Assembly
  adas-core.Domain.dll

Represents the location of a patient within a healthcare or clinical context. Implements IEquatable<T> to provide type-specific equality comparison between patient location instances.

    public class PatientLocation : IEquatable<PatientLocation>

Inheritance
  object
  PatientLocation

Implements
  IEquatable<PatientLocation>

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Constructors

### PatientLocation()

    public PatientLocation()

### PatientLocation(string?, string?)

    public PatientLocation(string? unitName, string? bed)

#### Parameters

`unitName` string
`bed` string

### PatientLocation(string?, string?, string?)

    public PatientLocation(string? unitName, string? bed, string? room)

#### Parameters

`unitName` string
`bed` string
`room` string

## Properties

### Bed

    public string? Bed { get; set; }

#### Property Value

string

### Room

    public string? Room { get; init; }

#### Property Value

string

### UnitName

    public string? UnitName { get; init; }

#### Property Value

string

## Methods

### Equals(PatientLocation?)

Determines whether the specified PatientLocation is equal to the current instance by comparing the `UnitName`, `Bed`, and `Room` properties.

    public bool Equals(PatientLocation? other)

#### Parameters

`other` PatientLocation

  The PatientLocation to compare with the current instance.

#### Returns

bool

  true when all three properties (`UnitName`, `Bed`, and `Room`) match; otherwise, false. Returns false if `other` is null.

### IsEmpty()

Determines whether the current instance is considered empty by checking that both the UnitName and Bed values are null or empty strings.

    public bool IsEmpty()

#### Returns

bool

  true if both `UnitName` and `Bed` are null or empty; otherwise, false.

### IsFullEmpty()

Determines whether the unit name, bed, and room fields are all null or empty, indicating the entity is fully empty.

    public bool IsFullEmpty()

#### Returns

bool

  `true` if UnitName, Bed, and Room are all null or empty; otherwise, `false`.

### ToString()

Returns a human-readable string representation of the PatientLocation, including the unit name, room, and bed.

    public override string ToString()

#### Returns

string

  A formatted string in the form "PatientLocation[Unit: {UnitName},room: {Room} ,bed: {Bed}]".