Skip to content

Commit

Permalink
add noData category to tide and replace lastUpload with lastData
Browse files Browse the repository at this point in the history
  • Loading branch information
Roukoswarf committed Jul 30, 2024
1 parent df738ac commit 8644768
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
16 changes: 5 additions & 11 deletions reference/clinic.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions reference/clinic/models/tide/config.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -43,8 +40,7 @@ required:
- schemaVersion
- clinicId
- period
- lastUploadDateFrom
- lastUploadDateTo
- lastDataCutoff
- highGlucoseThreshold
- veryHighGlucoseThreshold
- lowGlucoseThreshold
Expand Down
3 changes: 3 additions & 0 deletions reference/clinic/models/tide/resultpatient.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ properties:
type: number
example: 200
x-go-type: int
lastData:
type: string
format: date-time
patient:
$ref: ./patient.v1.yaml

Expand Down
1 change: 1 addition & 0 deletions reference/clinic/models/tide/results.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ required:
- timeInTargetPercent
- timeCGMUsePercent
- meetingTargets
- noData
additionalProperties:
type: array
items:
Expand Down

0 comments on commit 8644768

Please sign in to comment.