-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACK-2693] Enforce patient count limit
- Add patient count APIs - Add patient count settings APIs - https://tidepool.atlassian.net/browse/BACK-2693
- Loading branch information
1 parent
31103a5
commit 29e3d93
Showing
4 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title: Patient Count | ||
type: object | ||
properties: | ||
patientCount: | ||
description: The patient count for a clinic | ||
type: integer | ||
minimum: 0 | ||
required: | ||
- patientCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
title: Patient Count Limit | ||
type: object | ||
properties: | ||
patientCount: | ||
description: The patient count limit | ||
type: integer | ||
minimum: 0 | ||
startDate: | ||
description: The start date when the patient count limit should be applied | ||
$ref: '../../common/models/datetime.v1.yaml' | ||
endDate: | ||
description: The end date when the patient count limit should no longer be applied | ||
$ref: '../../common/models/datetime.v1.yaml' | ||
required: | ||
- patientCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title: Patient Count Settings | ||
type: object | ||
properties: | ||
hardLimit: | ||
description: The hard limit for the clinic patient count where new patients cannot be created | ||
$ref: './patientcountlimit.v1.yaml' | ||
softLimit: | ||
description: The soft limit for the clinic patient count where new patients may still be created | ||
$ref: './patientcountlimit.v1.yaml' |