Skip to content

Clinics API (1.0)

Web service that stores information about clinics, clinicians and their patients

Download OpenAPI description
Languages
Servers
Mock server

https://tidepool.redocly.app/_mock/reference/clinic.v1/

integration

https://external.integration.tidepool.org/

production

https://api.tidepool.org/

dev1

https://dev1.dev.tidepool.org/

qa1

https://qa1.development.tidepool.org/

qa2

https://qa2.development.tidepool.org/

Clinics

Manage clinics, clinians and patients.

Operations

Request

Update existing clinician

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
clinicianIdstring^([0-9a-f]{10}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-...required
Bodyapplication/json
inviteIdstring

The id of the invite if it hasn't been accepted

emailstring(email)required
namestringnon-empty

The name of the clinician

rolesArray of strings(Clinician Permissions)non-emptyuniquerequired
Items Enum"CLINIC_ADMIN""CLINIC_MEMBER""PRESCRIBER"
curl -i -X PUT \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/clinicians/{clinicianId}' \
  -H 'Content-Type: application/json' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
  -d '{
    "inviteId": "string",
    "email": "user@example.com",
    "name": "string",
    "roles": [
      "CLINIC_ADMIN"
    ]
  }'

Responses

OK

Request

Removes a clinician from a clinic

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
clinicianIdstring^([0-9a-f]{10}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-...required
curl -i -X DELETE \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/clinicians/{clinicianId}' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE'

Responses

OK

Request

Retrieve a patient of clinic given their user id

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
patientIdstring^([0-9a-f]{10}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-...required
curl -i -X GET \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/patients/{patientId}' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
idstring(Tidepool User ID)^([0-9a-f]{10}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-...read-onlyrequired

String representation of a Tidepool User ID. Old style IDs are 10-digit strings consisting of only hexadeximcal digits. New style IDs are 36-digit UUID v4

emailstring(email)
fullNamestringnon-emptyrequired

The full name of the patient

birthDatestring(date)required
Example: "2012-08-30"
mrnstringnon-empty

The medical record number of the patient

tagsArray of strings or null(Patient Tag ID List)unique
targetDevicesArray of strings
permissionsobject(Patient Permissions)
createdTimestring(date-time)read-onlyrequired
updatedTimestring(date-time)read-onlyrequired
attestationSubmittedboolean
dataSourcesArray of objects or null(Patient data source)
lastUploadReminderTimestring(date-time)read-only
summaryobject(patientsummary.v1)

A summary of a patients recent data

reviewsArray of objects or null(patientreview.v1)
connectionRequestsobject(providerconnectionrequests.v1)read-onlyrequired
connectionRequests.​twiistArray of objects(Provider Connection Request)required
connectionRequests.​twiist[].​createdTimestring(date-time)required
connectionRequests.​twiist[].​providerNamestring(Third-Party Data Providers)required
Enum"dexcom""twiist""abbott"
connectionRequests.​dexcomArray of objects(Provider Connection Request)required
connectionRequests.​dexcom[].​createdTimestring(date-time)required
connectionRequests.​dexcom[].​providerNamestring(Third-Party Data Providers)required
Enum"dexcom""twiist""abbott"
connectionRequests.​abbottArray of objects(Provider Connection Request)required
connectionRequests.​abbott[].​createdTimestring(date-time)required
connectionRequests.​abbott[].​providerNamestring(Third-Party Data Providers)required
Enum"dexcom""twiist""abbott"
sitesArray of objects(Site)
Response
application/json
{ "id": "string", "email": "user@example.com", "fullName": "string", "birthDate": "2012-08-30", "mrn": "string", "tags": [ "stringstringstringstring" ], "targetDevices": [ "string" ], "permissions": { "custodian": {}, "view": {}, "note": {}, "upload": {} }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "attestationSubmitted": true, "dataSources": [ { … } ], "lastUploadReminderTime": "2019-08-24T14:15:22Z", "summary": { "cgmStats": { … }, "bgmStats": { … } }, "reviews": [ { … } ], "connectionRequests": { "twiist": [ … ], "dexcom": [ … ], "abbott": [ … ] }, "sites": [ { … } ] }

Confirmations

Manage confirmations for account creation, sharing invites, etc.

Operations

Internal

APIs intended for internal use by Tidepool.

Operations

Redox

Public endpoints invoked by Redox.

Operations