Prescription service for Tidepool Loop
Prescriptions API (1.0)
https://tidepool.redocly.app/_mock/reference/prescription.v1/
https://external.integration.tidepool.org/
https://api.tidepool.org/
https://dev1.dev.tidepool.org/
https://qa1.development.tidepool.org/
https://qa2.development.tidepool.org/
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions
- integration
https://external.integration.tidepool.org/v1/clinics/{clinicId}/prescriptions
- production
https://api.tidepool.org/v1/clinics/{clinicId}/prescriptions
- dev1
https://dev1.dev.tidepool.org/v1/clinics/{clinicId}/prescriptions
- qa1
https://qa1.development.tidepool.org/v1/clinics/{clinicId}/prescriptions
- qa2
https://qa2.development.tidepool.org/v1/clinics/{clinicId}/prescriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions?id=string&patientUserId=string&patientEmail=user%40example.com&state=string&createdAfter=2019-08-24T14%3A15%3A22Z&createdBefore=2019-08-24T14%3A15%3A22Z&modifiedAfter=2019-08-24T14%3A15%3A22Z&modifiedBefore=2019-08-24T14%3A15%3A22Z' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
OK
String representation of a resource id
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
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
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
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
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
Clinic identifier.
[ { "id": "stringstringstringstring", "patientUserId": "string", "state": "draft", "expirationTime": "2017-02-06T02:37:46Z", "prescriberUserId": "string", "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "latestRevision": { … }, "clinicId": "2fe2488217ee43e1b2e83c2f" } ]
An email address, as specified by RFC 5322.
Canonicalized and SHA-512-encrypted hex output of the sent revision payload
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions
- integration
https://external.integration.tidepool.org/v1/clinics/{clinicId}/prescriptions
- production
https://api.tidepool.org/v1/clinics/{clinicId}/prescriptions
- dev1
https://dev1.dev.tidepool.org/v1/clinics/{clinicId}/prescriptions
- qa1
https://qa1.development.tidepool.org/v1/clinics/{clinicId}/prescriptions
- qa2
https://qa2.development.tidepool.org/v1/clinics/{clinicId}/prescriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"firstName": "string",
"lastName": "string",
"birthday": "2012-08-30",
"mrn": "string",
"email": "example@tidepool.org",
"sex": "male",
"weight": {
"value": 0,
"units": "string"
},
"yearOfDiagnosis": 1900,
"phoneNumber": {
"countryCode": "string",
"number": "string"
},
"initialSettings": {
"bloodGlucoseUnits": "mg/dL",
"basalRateSchedule": [
{
"rate": 20,
"start": 0
}
],
"bloodGlucoseTargetSchedule": [
{
"high": 180,
"low": 80,
"start": 86400000
}
],
"carbohydrateRatioSchedule": [
{
"start": 86400000,
"amount": 250
}
],
"insulinSensitivitySchedule": [
{
"amount": 105,
"start": 86400000
}
],
"basalRateMaximum": {
"units": "Units/hour",
"value": 100
},
"bolusAmountMaximum": {
"units": "Units",
"value": 100
},
"bloodGlucoseSuspendThreshold": {
"units": "mg/dL",
"value": 105
},
"insulinModel": "rapidAdult",
"pumpId": "6c959a5b-72ed-42d2-b9cd-0943e9536d18",
"cgmId": "fdcf79e5-bf1b-4255-aa02-cde99493e17e",
"bloodGlucoseTargetPhysicalActivity": {
"high": 180,
"low": 80
},
"bloodGlucoseTargetPreprandial": {
"high": 180,
"low": 80
}
},
"training": "inPerson",
"therapySettings": "initial",
"prescriberTermsAccepted": true,
"state": "draft",
"calculator": {
"method": "weight",
"weight": 0.1,
"weightUnits": "kg",
"totalDailyDoseScaleFactor": 1,
"totalDailyDose": 0.1,
"recommendedBasalRate": 0.1,
"recommendedInsulinSensitivity": 0.1,
"recommendedCarbohydrateRatio": 0.1
},
"revisionHash": "string",
"caregiverFirstName": "string",
"caregiverLastName": "string",
"accountType": "patient"
}'
Created
String representation of a resource id
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
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
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
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
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
{ "id": "stringstringstringstring", "patientUserId": "string", "state": "draft", "expirationTime": "2017-02-06T02:37:46Z", "prescriberUserId": "string", "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "latestRevision": { "revisionId": 0, "attributes": { … } }, "clinicId": "2fe2488217ee43e1b2e83c2f" }
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- integration
https://external.integration.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- production
https://api.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- dev1
https://dev1.dev.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- qa1
https://qa1.development.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- qa2
https://qa2.development.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions/{prescriptionId}' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
OK
String representation of a resource id
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
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
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
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
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
{ "id": "stringstringstringstring", "patientUserId": "string", "state": "draft", "expirationTime": "2017-02-06T02:37:46Z", "prescriberUserId": "string", "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "latestRevision": { "revisionId": 0, "attributes": { … } }, "clinicId": "2fe2488217ee43e1b2e83c2f" }
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- integration
https://external.integration.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- production
https://api.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- dev1
https://dev1.dev.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- qa1
https://qa1.development.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- qa2
https://qa2.development.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions/{prescriptionId}' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
An email address, as specified by RFC 5322.
Canonicalized and SHA-512-encrypted hex output of the sent revision payload
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions
- integration
https://external.integration.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions
- production
https://api.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions
- dev1
https://dev1.dev.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions
- qa1
https://qa1.development.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions
- qa2
https://qa2.development.tidepool.org/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/clinics/{clinicId}/prescriptions/{prescriptionId}/revisions' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"firstName": "string",
"lastName": "string",
"birthday": "2012-08-30",
"mrn": "string",
"email": "example@tidepool.org",
"sex": "male",
"weight": {
"value": 0,
"units": "string"
},
"yearOfDiagnosis": 1900,
"phoneNumber": {
"countryCode": "string",
"number": "string"
},
"initialSettings": {
"bloodGlucoseUnits": "mg/dL",
"basalRateSchedule": [
{
"rate": 20,
"start": 0
}
],
"bloodGlucoseTargetSchedule": [
{
"high": 180,
"low": 80,
"start": 86400000
}
],
"carbohydrateRatioSchedule": [
{
"start": 86400000,
"amount": 250
}
],
"insulinSensitivitySchedule": [
{
"amount": 105,
"start": 86400000
}
],
"basalRateMaximum": {
"units": "Units/hour",
"value": 100
},
"bolusAmountMaximum": {
"units": "Units",
"value": 100
},
"bloodGlucoseSuspendThreshold": {
"units": "mg/dL",
"value": 105
},
"insulinModel": "rapidAdult",
"pumpId": "6c959a5b-72ed-42d2-b9cd-0943e9536d18",
"cgmId": "fdcf79e5-bf1b-4255-aa02-cde99493e17e",
"bloodGlucoseTargetPhysicalActivity": {
"high": 180,
"low": 80
},
"bloodGlucoseTargetPreprandial": {
"high": 180,
"low": 80
}
},
"training": "inPerson",
"therapySettings": "initial",
"prescriberTermsAccepted": true,
"state": "draft",
"calculator": {
"method": "weight",
"weight": 0.1,
"weightUnits": "kg",
"totalDailyDoseScaleFactor": 1,
"totalDailyDose": 0.1,
"recommendedBasalRate": 0.1,
"recommendedInsulinSensitivity": 0.1,
"recommendedCarbohydrateRatio": 0.1
},
"revisionHash": "string",
"caregiverFirstName": "string",
"caregiverLastName": "string",
"accountType": "patient"
}'
{ "revisionId": 0, "attributes": { "firstName": "string", "lastName": "string", "birthday": "2012-08-30", "mrn": "string", "email": "example@tidepool.org", "sex": "male", "weight": { … }, "yearOfDiagnosis": 1900, "phoneNumber": { … }, "initialSettings": { … }, "training": "inPerson", "therapySettings": "initial", "prescriberTermsAccepted": true, "state": "draft", "calculator": { … }, "revisionHash": "string", "createdUserId": "string", "caregiverFirstName": "string", "caregiverLastName": "string", "accountType": "patient", "createdTime": "2017-02-06T02:37:46Z" } }
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions
- integration
https://external.integration.tidepool.org/v1/patients/{userId}/prescriptions
- production
https://api.tidepool.org/v1/patients/{userId}/prescriptions
- dev1
https://dev1.dev.tidepool.org/v1/patients/{userId}/prescriptions
- qa1
https://qa1.development.tidepool.org/v1/patients/{userId}/prescriptions
- qa2
https://qa2.development.tidepool.org/v1/patients/{userId}/prescriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions' \
-H 'Content-Type: application/json' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE' \
-d '{
"accessCode": "string",
"birthday": "2012-08-30"
}'
OK
String representation of a resource id
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
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
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
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
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
{ "id": "stringstringstringstring", "patientUserId": "string", "state": "draft", "expirationTime": "2017-02-06T02:37:46Z", "prescriberUserId": "string", "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "latestRevision": { "revisionId": 0, "attributes": { … } }, "clinicId": "2fe2488217ee43e1b2e83c2f" }
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions
- integration
https://external.integration.tidepool.org/v1/patients/{userId}/prescriptions
- production
https://api.tidepool.org/v1/patients/{userId}/prescriptions
- dev1
https://dev1.dev.tidepool.org/v1/patients/{userId}/prescriptions
- qa1
https://qa1.development.tidepool.org/v1/patients/{userId}/prescriptions
- qa2
https://qa2.development.tidepool.org/v1/patients/{userId}/prescriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions/{prescriptionId}
- integration
https://external.integration.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- production
https://api.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- dev1
https://dev1.dev.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- qa1
https://qa1.development.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- qa2
https://qa2.development.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions/{prescriptionId}' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
OK
String representation of a resource id
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
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
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
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
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
{ "id": "stringstringstringstring", "patientUserId": "string", "state": "draft", "expirationTime": "2017-02-06T02:37:46Z", "prescriberUserId": "string", "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "latestRevision": { "revisionId": 0, "attributes": { … } }, "clinicId": "2fe2488217ee43e1b2e83c2f" }
- Mock server
https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions/{prescriptionId}
- integration
https://external.integration.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- production
https://api.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- dev1
https://dev1.dev.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- qa1
https://qa1.development.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- qa2
https://qa2.development.tidepool.org/v1/patients/{userId}/prescriptions/{prescriptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://tidepool.redocly.app/_mock/reference/prescription.v1/v1/patients/{userId}/prescriptions/{prescriptionId}' \
-H 'X-Tidepool-Session-Token: YOUR_API_KEY_HERE'
OK
String representation of a resource id
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
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
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
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
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
{ "id": "stringstringstringstring", "patientUserId": "string", "state": "draft", "expirationTime": "2017-02-06T02:37:46Z", "prescriberUserId": "string", "createdTime": "2017-02-06T02:37:46Z", "createdUserId": "string", "deletedTime": "2017-02-06T02:37:46Z", "deletedUserId": "string", "modifiedTime": "2017-02-06T02:37:46Z", "modifiedUserId": "string", "latestRevision": { "revisionId": 0, "attributes": { … } }, "clinicId": "2fe2488217ee43e1b2e83c2f" }