rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
+15 -8
View File
@@ -1,5 +1,8 @@
namespace adas_core.Domain.Models;
/// <summary>
/// Represents a patient data model associated with the ICCA (IntelliSpace Critical Care and Anesthesia) system.
/// </summary>
public class PatientIcca
{
public PatientLocation Location { get; set; } = new(string.Empty, string.Empty);
@@ -10,13 +13,17 @@ public class PatientIcca
public DateTime AdmitTime { get; set; }
/// <summary>
/// Creates a deep copy of the current <see cref="PatientIcca"/> instance, duplicating the <see cref="Location"/>, <see cref="PatientNumber"/>, and <see cref="PatientId"/> so that modifications to the copy do not affect the original object.
/// </summary>
/// <returns>A new <see cref="PatientIcca"/> instance with independently copied reference-typed members.</returns>
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;
}
{
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;
}
}