20 lines
529 B
C#
20 lines
529 B
C#
public record AlertResponse(
|
|
Guid Id,
|
|
Guid EncounterId,
|
|
Guid PatientId,
|
|
string AlertType,
|
|
string Severity,
|
|
string Details,
|
|
string Status,
|
|
DateTimeOffset TriggeredAt,
|
|
DateTimeOffset? AcknowledgedAt = null,
|
|
string? AcknowledgedBy = null,
|
|
DateTimeOffset? ResolvedAt = null,
|
|
AlertExplanation? Explanation = null)
|
|
{
|
|
public string DisplaySummary =>
|
|
string.IsNullOrWhiteSpace(Explanation?.NarrativeSummary)
|
|
? Details
|
|
: Explanation!.NarrativeSummary;
|
|
}
|