Implement owner-scoped Observation lifecycle with serialized patches

This commit is contained in:
Steffen committed 2026-10-14 11:46:03 +02:00
1 parent bfe6ebf5af
commit 3a70e3e296
37 files changed
+31249 -9

No files matched your search

@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace HealthApp.Contracts;
public sealed record MeasurementContext
{
[AllowedValues("Home", "Clinic", "Other", "Unknown", null)]
public string? Setting { get; init; } = "Unknown";
[AllowedValues("AtRest", "DuringActivity", "AfterActivity", "Unknown", null)]
public string? ActivityCondition { get; init; } = "Unknown";
[Range(0, double.MaxValue)]
public decimal? RestDurationMinutes { get; init; }
public string? BodyPosition { get; init; }
public string? MeasuredArm { get; init; }
public string? DeviceDetails { get; init; }
public string? CuffDetails { get; init; }
public string? AdditionalCircumstances { get; init; }
}