22 lines
519 B
C#
22 lines
519 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ObservationService.Contracts;
|
|
|
|
public sealed record RecordObservationRequest
|
|
{
|
|
[Required]
|
|
public DateTime? MeasuredAt { get; init; }
|
|
|
|
[Required, Range(1, int.MaxValue)]
|
|
public int? Systolic { get; init; }
|
|
|
|
[Required, Range(1, int.MaxValue)]
|
|
public int? Diastolic { get; init; }
|
|
|
|
[Required, Range(1, int.MaxValue)]
|
|
public int? Pulse { get; init; }
|
|
|
|
public string? Context { get; init; }
|
|
public string? Note { get; init; }
|
|
}
|