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
@@ -5,6 +5,12 @@ using MongoDB.Bson.Serialization.Attributes;
namespace adas_core.Domain.Models;
/// <summary>
/// Represents a patient observation, extending the base patient observation value functionality.
/// </summary>
/// <remarks>
/// This class serves as a concrete implementation of patient observation data, inheriting common observation value behavior from <see cref="BasePatientObservationValue"/>.
/// </remarks>
public class PatientObservation : BasePatientObservationValue
{
private string? _result;
@@ -48,6 +54,10 @@ public class PatientObservation : BasePatientObservationValue
set => _result = value == "F" ? null : value;
}
/// <summary>
/// Returns a string representation of the <see cref="PatientObservation"/>, including its value, optional min/max/warning thresholds, result, status, expiration, and persistence settings. Optional properties are only included in the output when they have non-null or, for strings, non-empty values.
/// </summary>
/// <returns>A formatted string in the form <c>PatientObservation[property1: value1, ...]</c> containing the populated properties of the observation.</returns>
public override string ToString()
{
var items = ToListString();
@@ -65,6 +75,10 @@ public class PatientObservation : BasePatientObservationValue
return "PatientObservation[" + string.Join(", ", items) + "]";
}
/// <summary>
/// Creates a copy of the current <see cref="PatientObservation"/> instance by performing a shallow copy via MemberwiseClone and casting the cloned object back to <see cref="PatientObservation"/>.
/// </summary>
/// <returns>A <see cref="PatientObservation"/> instance that is a shallow copy of the current object.</returns>
public PatientObservation DeepCopy()
{
return (PatientObservation)MemberwiseClone();