Skip to content
Merged
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
41 changes: 41 additions & 0 deletions reference/clinic.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,28 @@
description: 'Delete a Site'
tags:
- Clinics
'/v1/clinics/{clinicId}/sites/{siteId}/merge':
parameters:
- $ref: '#/components/parameters/clinicId'
- $ref: '#/components/parameters/siteId'
post:
summary: Merge two sites
operationId: MergeSite
responses:
'200':
description: The merged clinic site
content:
application/json:
schema:
$ref: ./clinic/models/site.v1.yaml
description: Merge a site, identified in the request body, into the site identified in the URL.
requestBody:
content:
application/json:
schema:
$ref: ./clinic/models/siteById.v1.yaml
tags:
- Clinics
'/v1/clinics/{clinicId}/clinicians/{clinicianId}':
parameters:
- $ref: '#/components/parameters/clinicId'
Expand Down Expand Up @@ -1143,6 +1165,25 @@
description: Removes a patient tag from a clinic and tagged patients
tags:
- Clinics
'/v1/clinics/{clinicId}/patient_tags/{patientTagId}/site':
parameters:
- $ref: '#/components/parameters/clinicId'
- $ref: '#/components/parameters/patientTagId'
post:
summary: Convert Patient Tag to Site
operationId: ConvertPatientTagToSite
responses:
'200':
description: The newly converted site.
content:
application/json:
schema:
$ref: ./clinic/models/site.v1.yaml
'409':
description: Cannot convert the tag to a site. This could occur for example when the maximum number of sites has already been reached.
description: Convert a patient tag to a site.
tags:
- Clinics
'/v1/clinics/{clinicId}/invites/clinicians':
parameters:
- $ref: '#/components/parameters/clinicId'
Expand Down Expand Up @@ -2066,7 +2107,7 @@

https://sandbox.xealth.io/app/api-docs#tag/Digital-Care/paths/preorder/post
/v1/xealth/programs:
put:

Check warning on line 2110 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

operation-description Operation "description" must be present and non-empty string.
summary: Get Programs
operationId: XealthGetPrograms
responses:
Expand All @@ -2083,7 +2124,7 @@
responses:
'200':
description: OK
description: ''

Check warning on line 2127 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

operation-description Operation "description" must be present and non-empty string.
tags:
- Clinics
- Internal
Expand All @@ -2095,7 +2136,7 @@
responses:
'200':
description: OK
description: ''

Check warning on line 2139 in reference/clinic.v1.yaml

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

operation-description Operation "description" must be present and non-empty string.
tags:
- Clinics
- Internal
Expand Down
8 changes: 8 additions & 0 deletions reference/clinic/models/siteById.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: object
title: SiteById
description: "A clinic's physical or logical location—id only."
properties:
id:
$ref: ../../../reference/common/models/objectid.v1.yaml
required:
- id
Loading