Skip to content

Commit d9aca14

Browse files
committed
Merge branch 'master' into BACK-4025-clinic-patient-count
2 parents 979e1f1 + 159c160 commit d9aca14

File tree

9 files changed

+98
-1
lines changed

9 files changed

+98
-1
lines changed

reference/clinic.v1.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,17 @@ paths:
959959
description: Comma-separated list of clinic site IDs
960960
style: form
961961
explode: false
962+
- name: omitNonStandardRanges
963+
description: |
964+
Whether patients whose glycemic ranges selection is *not*
965+
the ADA standard ranges (e.g. as used by the TIDE report)
966+
should be omitted.
967+
schema:
968+
type: boolean
969+
in: query
970+
# Skipping the pointer here ran afoul of https://github.com/oapi-codegen/oapi-codegen/issues/1263
971+
# x-go-type-skip-optional-pointer: true
972+
962973
description: Retrieve a list of patients of a clinic
963974
post:
964975
summary: Create Patient Account
@@ -2398,6 +2409,10 @@ components:
23982409
x-omitzero: true
23992410
items:
24002411
$ref: ./clinic/models/site.v1.yaml
2412+
glycemicRanges:
2413+
$ref: ./clinic/models/glycemicRanges.v1.yaml
2414+
diagnosisType:
2415+
$ref: ./metadata/models/diagnosisType.v1.yaml
24012416
associateClinicianToUser.v1:
24022417
title: Associate Clinician
24032418
type: object
@@ -2596,6 +2611,10 @@ components:
25962611
x-omitzero: true
25972612
items:
25982613
$ref: ./clinic/models/site.v1.yaml
2614+
glycemicRanges:
2615+
$ref: ./clinic/models/glycemicRanges.v1.yaml
2616+
diagnosisType:
2617+
$ref: ./metadata/models/diagnosisType.v1.yaml
25992618
addServiceAccount.v1:
26002619
title: AddServiceAccount
26012620
x-stoplight:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
properties:
2+
type:
3+
type: string
4+
enum:
5+
- preset
6+
- custom
7+
default: preset
8+
custom:
9+
$ref: ./glycemicRangesCustom.v1.yaml
10+
preset:
11+
$ref: ./glycemicRangesPreset.v1.yaml
12+
required:
13+
- type
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type: object
2+
properties:
3+
name:
4+
type: string
5+
minLength: 1
6+
thresholds:
7+
type: array
8+
items:
9+
$ref: ./glycemicRangesThreshold.v1.yaml
10+
minLength: 4
11+
maxLength: 5
12+
required:
13+
- name
14+
- thresholds
15+
x-go-type-skip-optional-pointer: true
16+
x-omitzero: true
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
type: string
2+
minLength: 1
3+
enum:
4+
- adaStandard
5+
- adaPregnancyType1
6+
- adaPregnancyType2
7+
- adaHighRisk
8+
x-enum-varnames:
9+
- ADAStandard
10+
- ADAPregnancyType1
11+
- ADAPregnancyType2
12+
- ADAHighRisk
13+
default: adaStandard
14+
x-go-type-skip-optional-pointer: true
15+
x-omitzero: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
type: object
2+
properties:
3+
name:
4+
type: string
5+
minLength: 1
6+
upperBound:
7+
$ref: ./glycemicRangesThresholdUpperBound.v1.yaml
8+
inclusive:
9+
type: boolean
10+
default: false
11+
x-go-type-skip-optional-pointer: true
12+
required:
13+
- name
14+
- upperBound
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type: object
2+
properties:
3+
value:
4+
type: number
5+
format: float
6+
units:
7+
type: string
8+
enum:
9+
- mg/dL
10+
- mmol/L
11+
required:
12+
- value
13+
- units

reference/clinic/models/patient.v1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ properties:
6868
x-omitzero: true
6969
items:
7070
$ref: ./site.v1.yaml
71+
glycemicRanges:
72+
$ref: ./glycemicRanges.v1.yaml
73+
diagnosisType:
74+
$ref: ../../metadata/models/diagnosisType.v1.yaml
7175
required:
7276
- id
7377
- fullName

reference/metadata/models/diagnosistype.v1.yaml renamed to reference/metadata/models/diagnosisType.v1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ type: string
33
enum:
44
- type1
55
- type2
6+
- type3c
67
- gestational
78
- prediabetes
89
- lada
910
- mody
1011
- other
12+
- notApplicable
13+
- "" # used to clear out an existing value
1114
example: 'type1'

reference/metadata/models/userprofile.v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ properties:
99
type: object
1010
properties:
1111
diagnosisType:
12-
$ref: './diagnosistype.v1.yaml'
12+
$ref: './diagnosisType.v1.yaml'
1313
diagnosisDate:
1414
$ref: '../../common/models/diagnosisdate.v1.yaml'
1515
birthday:

0 commit comments

Comments
 (0)