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

Get Patient Count Settings

Request

Get Patient Count settings

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
curl -i -X GET \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/settings/patient_count' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
hardLimitobject(Patient Count Limit)
softLimitobject(Patient Count Limit)
Response
application/json
{ "hardLimit": { "plan": 0, "startDate": "2017-02-06T02:37:46Z", "endDate": "2017-02-06T02:37:46Z" }, "softLimit": { "plan": 0, "startDate": "2017-02-06T02:37:46Z", "endDate": "2017-02-06T02:37:46Z" } }

Update Patient Count Settings

Request

Update Patient Count Settings

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
Bodyapplication/json
hardLimitobject(Patient Count Limit)
softLimitobject(Patient Count Limit)
curl -i -X PUT \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/settings/patient_count' \
  -H 'Content-Type: application/json' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE' \
  -d '{
    "hardLimit": {
      "plan": 0,
      "startDate": "2017-02-06T02:37:46Z",
      "endDate": "2017-02-06T02:37:46Z"
    },
    "softLimit": {
      "plan": 0,
      "startDate": "2017-02-06T02:37:46Z",
      "endDate": "2017-02-06T02:37:46Z"
    }
  }'

Responses

OK

Get Patient Count

Request

Get Patient Count

Security
sessionToken
Path
clinicIdstring^[a-f0-9]{24}$required
curl -i -X GET \
  'https://tidepool.redocly.app/_mock/reference/clinic.v1/v1/clinics/{clinicId}/patient_count' \
  -H 'x-tidepool-session-token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
totalinteger>= 0required

The count of all patients associated with the clinic, regardless of classification.

demointeger>= 0required

The count of patients associated with the clinic that are classified as demo and do not apply towards the plan-based patient count limit. Currently this is limited to 0 or 1, but allows for future expansion with multiple demo patients if needed.

planinteger>= 0required

The count of patients associated with the clinic classified as applying towards the plan-based patient count limit. This excludes patients classified as demo as well as any other classifications that do not apply towards the plan-based patient count limit for various business reasons.

providersobject

The count of patients associated with the clinic by provider. As each patient may be associated with multiple providers, the sum of all provider counts may exceed the total patient count.

Response
application/json
{ "total": 0, "demo": 0, "plan": 0, "providers": { "property1": { … }, "property2": { … } } }

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