Skip to content

Commit

Permalink
add noData tide category, add lastDataCutoff filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Roukoswarf committed Oct 2, 2024
1 parent 5fa9abf commit 18c5093
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 50 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ build
.idea/
/node_modules/
/tools/
.env
.envrc
.nvmrc
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ install_npm_pkgs:
# When using --no-save, any dependencies not included will be deleted, so one
# has to install all the packages all at the same time. But it saves us from
# having to muck with packages.json.
npm i --prefix $(CURDIR) --no-save --local $(NPM_PKG_SPECS)
npm i --no-save --local $(NPM_PKG_SPECS)

.PHONY: install_tools
install_tools: $(GO_TOOLS) $(NPM_TOOLS)
Expand Down
46 changes: 6 additions & 40 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 @@ -855,18 +849,18 @@ paths:
in: query
name: bgm.totalRecordsDelta
description: Delta of total record count

- schema:
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 Expand Up @@ -2069,24 +2063,6 @@ paths:
- Clinics
- Internal
x-internal: true
'/v1/clinics/{clinicId}/reports/merge':
parameters:
- $ref: '#/components/parameters/clinicId'
post:
summary: Generate Clinic Merge Report
operationId: GenerateMergeReport
responses:
'200':
description: OK
description: Generates a spreadsheet report for merging two clinics
tags:
- Clinics
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateMergeReport'
description: ''
components:
schemas:
Error:
Expand Down Expand Up @@ -2458,16 +2434,6 @@ components:
- client_secret
ScheduledReports:
$ref: ./clinic/models/scheduledreports.v1.yaml
GenerateMergeReport:
title: GenerateMergeReport
x-stoplight:
id: 3oq18sasrzo0o
type: object
properties:
sourceId:
$ref: ./clinic/models/clinicid.v1.yaml
required:
- sourceId
securitySchemes:
sessionToken:
name: x-tidepool-session-token
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 18c5093

Please sign in to comment.