Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion reference/clinic.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,17 @@ paths:
- TIDEPOOL_ADMIN
- CLINIC_ADMIN
- CLINIC_CLINICIAN
parameters: []
parameters:
- name: includeCounts
in: query
description: |
Include counts of patients in tags and sites.

This will add the optional "patients" field to the
clinic's sites and patient_tags fields which will indicate
the number of patients associated with each.
schema:
type: boolean
put:
summary: Update Clinic
operationId: UpdateClinic
Expand Down
4 changes: 4 additions & 0 deletions reference/clinic/models/patientTag.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ properties:
minLength: 1
maxLength: 20
pattern: '^[\p{L}\p{N}_+><-]{1}[\p{L}\p{N}\s_+><-]*$'
patients:
type: integer
description: The number of patients tagged.
x-go-type-skip-optional-pointer: true
required:
- id
- name
4 changes: 4 additions & 0 deletions reference/clinic/models/site.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ properties:
$ref: ./siteId.v1.yaml
name:
$ref: ./siteName.v1.yaml
patients:
type: integer
description: The number of patients associated with the site.
x-go-type-skip-optional-pointer: true
required:
- id
- name