diff --git a/reference/clinic.v1.yaml b/reference/clinic.v1.yaml index 3ad43816..f47c650c 100644 --- a/reference/clinic.v1.yaml +++ b/reference/clinic.v1.yaml @@ -989,6 +989,42 @@ paths: $ref: ./clinic/models/patient.v1.yaml tags: - Clinics + '/v1/clinics/{clinicId}/patient_counts/patient_tags': + parameters: + - $ref: '#/components/parameters/clinicId' + get: + summary: List A Clinic's Patient Tags With Patient Counts + operationId: ListClinicPatientTagsWithPatientCounts + responses: + '200': + description: | + A summary of the clinic's patient tags with patient counts. + content: + application/json: + schema: + type: array + items: + $ref: ./clinic/models/patientTagWithPatientCount.v1.yaml + tags: + - Clinics + '/v1/clinics/{clinicId}/patient_counts/sites': + parameters: + - $ref: '#/components/parameters/clinicId' + get: + summary: List A Clinic's Sites With Patient Counts + operationId: ListClinicSitesWithPatientCounts + responses: + '200': + description: | + A summary of the clinic's sites with patient counts. + content: + application/json: + schema: + type: array + items: + $ref: ./clinic/models/siteWithPatientCount.v1.yaml + tags: + - Clinics '/v1/clinics/{clinicId}/patient_tags': parameters: - $ref: '#/components/parameters/clinicId' @@ -1067,7 +1103,7 @@ paths: - $ref: '#/components/parameters/clinicId' - $ref: '#/components/parameters/siteId' post: - summary: Merge two sites + summary: Merge Two Sites operationId: MergeSite responses: '200': diff --git a/reference/clinic/models/patientTagWithPatientCount.v1.yaml b/reference/clinic/models/patientTagWithPatientCount.v1.yaml new file mode 100644 index 00000000..fde6b2ec --- /dev/null +++ b/reference/clinic/models/patientTagWithPatientCount.v1.yaml @@ -0,0 +1,9 @@ +allOf: + - $ref: ./patientTag.v1.yaml + - type: object + properties: + patients: + type: integer + x-go-type-skip-optional-pointer: true + required: + - patients diff --git a/reference/clinic/models/siteWithPatientCount.v1.yaml b/reference/clinic/models/siteWithPatientCount.v1.yaml new file mode 100644 index 00000000..fda72eab --- /dev/null +++ b/reference/clinic/models/siteWithPatientCount.v1.yaml @@ -0,0 +1,9 @@ +allOf: + - $ref: ./site.v1.yaml + - type: object + properties: + patients: + type: integer + x-go-type-skip-optional-pointer: true + required: + - patients