From 86447685da4a8b35d5b7bbfeeda392d8a4f2fbba Mon Sep 17 00:00:00 2001 From: Alexander Diana Date: Tue, 30 Jul 2024 17:07:23 +0000 Subject: [PATCH] add noData category to tide and replace lastUpload with lastData --- reference/clinic.v1.yaml | 16 +++++----------- reference/clinic/models/tide/config.v1.yaml | 8 ++------ .../clinic/models/tide/resultpatient.v1.yaml | 3 +++ reference/clinic/models/tide/results.v1.yaml | 1 + 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/reference/clinic.v1.yaml b/reference/clinic.v1.yaml index 3d4efad..3576ecd 100644 --- a/reference/clinic.v1.yaml +++ b/reference/clinic.v1.yaml @@ -267,14 +267,8 @@ paths: type: string format: date-time in: query - name: cgm.lastUploadDateFrom + name: lastDataCutoff description: Inclusive - - schema: - type: string - format: date-time - in: query - name: cgm.lastUploadDateTo - description: Exclusive '/v1/clinics/{clinicId}/patients': parameters: - $ref: '#/components/parameters/clinicId' @@ -756,13 +750,13 @@ paths: type: string format: date-time in: query - name: cgm.lastUploadDateFrom + name: cgm.lastDataFrom description: Inclusive - schema: type: string format: date-time in: query - name: cgm.lastUploadDateTo + name: cgm.lastDataTo description: Exclusive - schema: @@ -860,13 +854,13 @@ paths: type: string format: date-time in: query - name: bgm.lastUploadDateFrom + name: bgm.lastDataFrom description: Inclusive - schema: type: string format: date-time in: query - name: bgm.lastUploadDateTo + name: bgm.lastDataTo description: Exclusive - schema: type: array diff --git a/reference/clinic/models/tide/config.v1.yaml b/reference/clinic/models/tide/config.v1.yaml index 0c3aeb3..ab14708 100644 --- a/reference/clinic/models/tide/config.v1.yaml +++ b/reference/clinic/models/tide/config.v1.yaml @@ -12,10 +12,7 @@ properties: type: string pattern: ^(1d|7d|14d|30d)$ example: 7d - lastUploadDateFrom: - type: string - format: date-time - lastUploadDateTo: + lastDataCutoff: type: string format: date-time highGlucoseThreshold: @@ -43,8 +40,7 @@ required: - schemaVersion - clinicId - period - - lastUploadDateFrom - - lastUploadDateTo + - lastDataCutoff - highGlucoseThreshold - veryHighGlucoseThreshold - lowGlucoseThreshold diff --git a/reference/clinic/models/tide/resultpatient.v1.yaml b/reference/clinic/models/tide/resultpatient.v1.yaml index bd601c2..45551f9 100644 --- a/reference/clinic/models/tide/resultpatient.v1.yaml +++ b/reference/clinic/models/tide/resultpatient.v1.yaml @@ -62,6 +62,9 @@ properties: type: number example: 200 x-go-type: int + lastData: + type: string + format: date-time patient: $ref: ./patient.v1.yaml diff --git a/reference/clinic/models/tide/results.v1.yaml b/reference/clinic/models/tide/results.v1.yaml index 59bced4..6638cb6 100644 --- a/reference/clinic/models/tide/results.v1.yaml +++ b/reference/clinic/models/tide/results.v1.yaml @@ -8,6 +8,7 @@ required: - timeInTargetPercent - timeCGMUsePercent - meetingTargets + - noData additionalProperties: type: array items: