rama creada apartir de master en j
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
namespace adas_core.Domain.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an alert generated from a patient recording, derived from base patient observation data.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Inherits common observation functionality from <see cref="BasePatientObservation"/> and specializes it to surface alert conditions associated with patient recordings.
|
||||
/// </remarks>
|
||||
public class PatientRecordingAlert : BasePatientObservation
|
||||
{
|
||||
public bool IsRecording { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a string representation of the PatientRecordingAlert, including the patient identifier, source name when available, recording status, and time.
|
||||
/// </summary>
|
||||
/// <returns>A formatted string representation of the alert's key properties.</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var items = ToListString();
|
||||
items.Add($"patientId: {PatientId}");
|
||||
if (!string.IsNullOrEmpty(Name)) items.Add($"source: {Name}");
|
||||
items.Add($"isRecording: {IsRecording}");
|
||||
items.Add($"time: {Time}");
|
||||
|
||||
return "PatientRecordingAlert[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
{
|
||||
var items = ToListString();
|
||||
items.Add($"patientId: {PatientId}");
|
||||
if (!string.IsNullOrEmpty(Name)) items.Add($"source: {Name}");
|
||||
items.Add($"isRecording: {IsRecording}");
|
||||
items.Add($"time: {Time}");
|
||||
|
||||
return "PatientRecordingAlert[" + string.Join(", ", items) + "]";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user