Clinical Sync Batch Engine: first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace VigilCare.ClinicalContracts.Sync;
|
||||
|
||||
public record ClinicalSyncBatchRequest(
|
||||
Guid BatchReference,
|
||||
Guid GatewayId,
|
||||
Guid SiteId,
|
||||
DateTimeOffset CapturedAtUtc,
|
||||
IReadOnlyList<SyncedObservation> Observations,
|
||||
IReadOnlyList<SyncedAlertEvent> AlertEvents,
|
||||
IReadOnlyList<SyncedAlertAcknowledgment> AlertAcknowledgments,
|
||||
IReadOnlyList<SyncedAlertResolution> AlertResolutions);
|
||||
@@ -0,0 +1,4 @@
|
||||
public record GatewayHeartbeatRequest(
|
||||
string Status, // ONLINE | DEGRADED | OFFLINE
|
||||
int BufferDepth,
|
||||
DateTimeOffset ReportedAtUtc);
|
||||
@@ -0,0 +1,6 @@
|
||||
public record SyncedAlertAcknowledgment(
|
||||
Guid ClientRef,
|
||||
Guid ClientAlertId,
|
||||
string ClinicianId,
|
||||
DateTimeOffset AcknowledgedAt,
|
||||
string? Note);
|
||||
@@ -0,0 +1,7 @@
|
||||
public record SyncedAlertEvent(
|
||||
Guid ClientAlertId,
|
||||
Guid EncounterId,
|
||||
string AlertType,
|
||||
string Severity,
|
||||
string Details,
|
||||
DateTimeOffset GeneratedAt);
|
||||
@@ -0,0 +1,6 @@
|
||||
public record SyncedAlertResolution(
|
||||
Guid ClientRef,
|
||||
Guid ClientAlertId,
|
||||
string ClinicianId,
|
||||
DateTimeOffset ResolvedAt,
|
||||
string? Note);
|
||||
@@ -0,0 +1,9 @@
|
||||
public record SyncedObservation(
|
||||
Guid ClientRef,
|
||||
string IdempotencyKey,
|
||||
Guid EncounterId,
|
||||
string ObservationCode,
|
||||
decimal Value,
|
||||
string? Unit,
|
||||
string Source,
|
||||
DateTimeOffset RecordedAt);
|
||||
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>VigilCare.ClinicalContracts</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user