feature: Ward Gateway Service (Local-First Clinical Path)

This commit is contained in:
voltsrage
2026-06-23 16:45:38 +08:00
parent d8e142fffe
commit 1bf8359097
100 changed files with 5474 additions and 4 deletions
@@ -0,0 +1,9 @@
using FluentValidation;
public class AcknowledgeAlertRequestValidator : AbstractValidator<AcknowledgeAlertRequest>
{
public AcknowledgeAlertRequestValidator()
{
RuleFor(x => x.Note).MaximumLength(1000).When(x => x.Note is not null);
}
}
@@ -0,0 +1,13 @@
using FluentValidation;
public class IngestObservationRequestValidator : AbstractValidator<IngestObservationRequest>
{
public IngestObservationRequestValidator()
{
RuleFor(x => x.ObservationCode).NotEmpty().MaximumLength(50);
RuleFor(x => x.Unit).NotEmpty().MaximumLength(20);
RuleFor(x => x.RecordedAt)
.LessThanOrEqualTo(DateTimeOffset.UtcNow.AddMinutes(5))
.WithMessage("RecordedAt cannot be more than 5 minutes in the future.");
}
}