=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===

This commit is contained in:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -4,6 +4,7 @@
/// Represents the location of a patient within a healthcare or clinical context.
/// Implements <see cref="IEquatable{PatientLocation}"/> to provide type-specific equality comparison between patient location instances.
/// </summary>
/// <!-- aidoc:v1 sig=6e6501a -->
public class PatientLocation : IEquatable<PatientLocation>
{
/// <summary>
@@ -53,6 +54,7 @@ public class PatientLocation : IEquatable<PatientLocation>
/// </summary>
/// <param name="other">The <see cref="PatientLocation"/> to compare with the current instance.</param>
/// <returns><see langword="true"/> when all three properties (<c>UnitName</c>, <c>Bed</c>, and <c>Room</c>) match; otherwise, <see langword="false"/>. Returns <see langword="false"/> if <paramref name="other"/> is <see langword="null"/>.</returns>
/// <!-- aidoc:v1 sig=29defab body=9b8e1aa -->
public bool Equals(PatientLocation? other)
{
return UnitName == other?.UnitName && Bed == other?.Bed && Room == other?.Room;
@@ -62,6 +64,7 @@ public class PatientLocation : IEquatable<PatientLocation>
/// Determines whether the current instance is considered empty by checking that both the <see cref="UnitName"/> and <see cref="Bed"/> values are null or empty strings.
/// </summary>
/// <returns><see langword="true"/> if both <c>UnitName</c> and <c>Bed</c> are null or empty; otherwise, <see langword="false"/>.</returns>
/// <!-- aidoc:v1 sig=1112d99 body=46ea0dd -->
public bool IsEmpty()
{
return string.IsNullOrEmpty(UnitName) && string.IsNullOrEmpty(Bed);
@@ -71,6 +74,7 @@ public class PatientLocation : IEquatable<PatientLocation>
/// Determines whether the unit name, bed, and room fields are all null or empty, indicating the entity is fully empty.
/// </summary>
/// <returns><c>true</c> if <see cref="UnitName"/>, <see cref="Bed"/>, and <see cref="Room"/> are all null or empty; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=b4be47a body=0369139 -->
public bool IsFullEmpty()
{
return string.IsNullOrEmpty(UnitName) && string.IsNullOrEmpty(Bed) && string.IsNullOrEmpty(Room);
@@ -80,6 +84,7 @@ public class PatientLocation : IEquatable<PatientLocation>
/// Returns a human-readable string representation of the PatientLocation, including the unit name, room, and bed.
/// </summary>
/// <returns>A formatted string in the form "PatientLocation[Unit: {UnitName},room: {Room} ,bed: {Bed}]".</returns>
/// <!-- aidoc:v1 sig=d27f326 body=bf03a9b -->
public override string ToString()
{
return "PatientLocation[Unit: " + UnitName + ",room: " + Room + " ,bed: " + Bed + "]";