namespace adas_core.Domain.Models;
///
/// Represents a patient data model associated with the ICCA (IntelliSpace Critical Care and Anesthesia) system.
///
public class PatientIcca
{
public PatientLocation Location { get; set; } = new(string.Empty, string.Empty);
public string? PatientNumber { get; set; }
public string? PatientId { get; set; }
public DateTime AdmitTime { get; set; }
///
/// Creates a deep copy of the current instance, duplicating the , , and so that modifications to the copy do not affect the original object.
///
/// A new instance with independently copied reference-typed members.
public PatientIcca DeepCopy()
{
var other = (PatientIcca)MemberwiseClone();
other.Location = new PatientLocation(Location.UnitName, Location.Bed);
other.PatientNumber = new string(PatientNumber);
other.PatientId = new string(PatientId);
other.AdmitTime = AdmitTime;
return other;
}
}