Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to send connection request for multiple providers #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
45 changes: 28 additions & 17 deletions reference/clinic.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1616,23 +1616,6 @@
description: Sends upload reminder to the patient
tags:
- Clinics
'/v1/clinics/{clinicId}/patients/{patientId}/send_dexcom_connect_request':
parameters:
- $ref: '#/components/parameters/clinicId'
- $ref: '#/components/parameters/patientId'
post:
summary: Resend Dexcom connect request email
operationId: SendDexcomConnectRequest
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Patient'
description: Resend Dexcom connect request to the email address of the patient
tags:
- Clinics
'/v1/clinics/{clinicId}/patients/assign_tag/{patientTagId}':
parameters:
- $ref: '#/components/parameters/clinicId'
Expand Down Expand Up @@ -1962,7 +1945,7 @@

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

Check warning on line 1948 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 @@ -1979,7 +1962,7 @@
responses:
'200':
description: OK
description: ''

Check warning on line 1965 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 @@ -1991,7 +1974,7 @@
responses:
'200':
description: OK
description: ''

Check warning on line 1977 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 Expand Up @@ -2098,6 +2081,21 @@
- Internal
x-internal: true
description: 'Merges tags, patients, clinicians, invites and share codes of the source clinic'
'/v1/clinics/{clinicId}/patients/{patientId}/connect/{providerId}':
parameters:
- $ref: '#/components/parameters/clinicId'
- $ref: '#/components/parameters/patientId'
- $ref: '#/components/parameters/providerId'
post:
summary: ''
operationId: ConnectProvider
responses:
'204':
description: No Content
tags:
- Clinics
- Internal
description: Send a new request to the patient to connect a data provider
components:
schemas:
Error:
Expand All @@ -2122,11 +2120,11 @@
$ref: ./clinic/models/patient.v1.yaml
PatientTag:
$ref: ./clinic/models/patienttag.v1.yaml
PatientTags:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
type: array
items:
$ref: '#/components/schemas/PatientTag'
DateTime:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./common/models/datetime.v1.yaml
DataSource:
$ref: ./clinic/models/datasource.v1.yaml
Expand All @@ -2147,13 +2145,13 @@
minItems: 1
maxItems: 1000
uniqueItems: true
ClinicianRoles:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/clinicianroles.v1.yaml
PhoneNumber:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/phonenumber.v1.yaml
PatientPermissions:
$ref: ./clinic/models/patientpermissions.v1.yaml
Id:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/clinicid.v1.yaml
PatientClinicRelationship:
title: PatientClinicRelationship
Expand Down Expand Up @@ -2260,7 +2258,7 @@
$ref: ./clinic/models/migrationstatus.v1.yaml
required:
- status
MigrationStatus:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/migrationstatus.v1.yaml
Meta:
title: Meta
Expand Down Expand Up @@ -2296,7 +2294,7 @@
type: boolean
PatientTagIds:
$ref: ./clinic/models/patienttagids.v1.yaml
TideConfig:

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

View workflow job for this annotation

GitHub Actions / check / check (check_specs)

oas3-unused-component Potentially unused component has been detected.
$ref: ./clinic/models/tide/config.v1.yaml
TideFilters:
$ref: ./clinic/models/tide/filters.v1.yaml
Expand Down Expand Up @@ -2521,6 +2519,12 @@
description: Optional action to be performed when a unique match has been found
required:
- criteria
ProviderConnectionRequest:
$ref: ./clinic/models/providerconnectionrequest.v1.yaml
ProviderConnectionRequests:
$ref: ./clinic/models/providerconnectionrequests.v1.yaml
ProviderId:
$ref: ./clinic/models/provider.v1.yaml
securitySchemes:
sessionToken:
name: x-tidepool-session-token
Expand Down Expand Up @@ -2639,6 +2643,13 @@
schema:
type: boolean
description: Retrieve clinics with enabled EHR integration
providerId:
name: providerId
in: path
required: true
schema:
$ref: '#/components/schemas/ProviderId'
description: Provider ID
tags:
- name: Clinics
description: 'Manage clinics, clinians and patients.'
Expand Down
14 changes: 8 additions & 6 deletions reference/clinic/models/patient.v1.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
type: object
title: Patient
description: ''
properties:
id:
$ref: ../../common/models/tidepooluserid.yaml
Expand Down Expand Up @@ -43,10 +42,6 @@ properties:
nullable: true
items:
$ref: ./datasource.v1.yaml
lastRequestedDexcomConnectTime:
type: string
format: date-time
readOnly: true
lastUploadReminderTime:
type: string
format: date-time
Expand All @@ -58,10 +53,17 @@ properties:
nullable: true
x-go-type-skip-optional-pointer: true
items:
$ref: "./patientreview.v1.yaml"
$ref: ./patientreview.v1.yaml
connectionRequests:
$ref: ./providerconnectionrequests.v1.yaml
x-stoplight:
id: 502rliv0l2tyy
description: Requests for each provider are listed in reverse chronological order
readOnly: true
required:
- id
- fullName
- birthDate
- createdTime
- updatedTime
- connectionRequests
8 changes: 8 additions & 0 deletions reference/clinic/models/provider.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Third-Party Data Providers
x-stoplight:
id: fdmfczqym3ocn
type: string
enum:
- dexcom
- twiist
- abbott
17 changes: 17 additions & 0 deletions reference/clinic/models/providerconnectionrequest.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
title: Provider Connection Request
x-stoplight:
id: nim4cceb0lu0w
type: object
properties:
createdTime:
type: string
x-stoplight:
id: efcvyea5slw36
format: date-time
providerName:
$ref: ./provider.v1.yaml
x-stoplight:
id: ej94kmuykpg1k
required:
- createdTime
- providerName
34 changes: 34 additions & 0 deletions reference/clinic/models/providerconnectionrequests.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title: providerconnectionrequests.v1
x-stoplight:
id: c8q7wrz5rtge5
type: object
readOnly: true
properties:
twiist:
type: array
x-stoplight:
id: 7ve65jmart7pj
items:
$ref: ./providerconnectionrequest.v1.yaml
x-stoplight:
id: 47ez7wiccxdut
dexcom:
type: array
x-stoplight:
id: 7ve65jmart7pj
items:
$ref: ./providerconnectionrequest.v1.yaml
x-stoplight:
id: 913pgkbkz62eq
abbott:
type: array
x-stoplight:
id: u9rfvrr2njlcq
items:
$ref: ./providerconnectionrequest.v1.yaml
x-stoplight:
id: 47ez7wiccxdut
required:
- twiist
- dexcom
- abbott
Loading