namespace adas_core.Domain.Models; /// /// Represents an alert generated from a patient recording, derived from base patient observation data. /// /// /// Inherits common observation functionality from and specializes it to surface alert conditions associated with patient recordings. /// public class PatientRecordingAlert : BasePatientObservation { public bool IsRecording { get; set; } /// /// Returns a string representation of the PatientRecordingAlert, including the patient identifier, source name when available, recording status, and time. /// /// A formatted string representation of the alert's key properties. 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) + "]"; } }