Check the health of the server
The Health Check is successful
The Health Check is not successful
curl -i -X GET \ https://vitals.ecg-api.com/healthcheck
{- "status": "ok",
- "info": {
- "database": {
- "status": "up"
}
}, - "error": { },
- "details": {
- "database": {
- "status": "up"
}
}
}
Permissions - vitalAdmin, ecgApiKey
{- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "code": "sys",
- "units": [
- {
- "name": "millimetres of mercury",
- "displayName": "millimetres of mercury",
- "code": "mmHg"
}
], - "defaultUnitCode": "mmHg"
}
{- "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "code": "sys",
- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}, - "units": [
- {
- "name": "Millimeters of mercury",
- "displayName": "mmHg",
- "code": "mmhg",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "defaultUnitCode": "mmHg",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/vital-signs?name=string&code=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/vital-signs/{vitalSignId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "code": "sys",
- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}, - "units": [
- {
- "name": "Millimeters of mercury",
- "displayName": "mmHg",
- "code": "mmhg",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "defaultUnitCode": "mmHg",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - vitalAdmin
{- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "code": "sys",
- "units": [
- {
- "name": "Millimeters of mercury",
- "displayName": "mmHg",
- "code": "mmhg"
}
], - "defaultUnitCode": "mmHg"
}
{- "result": true
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/vital-signs/{vitalSignId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-signs/{vitalSignId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-signs/{vitalSignId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-signs/{vitalSignId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-signs/{vitalSignId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - vitalAdmin
{- "locale": "en-US",
- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "units": [
- {
- "name": "millimetres of mercury",
- "displayName": "millimetres of mercury",
- "code": "mmHg"
}
]
}
{- "value": true
}
Permissions - vitalAdmin
[- {
- "value": "new_value",
- "path": "/path",
- "op": "replace"
}
]
{- "value": true
}
Create vital sign assignment for a given organization
{- "vitalSignIds": [
- "string"
]
}
{- "result": true,
- "vitalSignAssignmentId": "62e72663-5a9c-464d-935e-a3490918a09c"
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-sign-assignments/{vitalSignAssignmentId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "value": true
}
Permissions - vitalSettingAdmin
required | Array of objects (VitalAssignment) Array of vital assignment objects |
{- "vitalSigns": [
- {
- "id": "3e5cd1e3-1f9a-487c-9727-626b12fe4caf",
- "code": "bpm"
}
]
}
{- "result": true
}
Permissions - vitalSettingRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-sign-assignments' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "assignedVitalSigns": [
- {
- "code": "blood-pressure",
- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}, - "units": [
- {
- "name": "Millimeters of mercury",
- "displayName": "mmHg",
- "code": "mmhg",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "defaultUnitCode": "mmHg",
- "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "active": true,
- "archived": true
}
], - "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "organizationId": "'24aaae39-cc1c-4ee5-bb71-93c66e43771c',"
}
Permissions - vitalSettingAdmin
required | object Vital Assignment object |
{- "vitalSign": {
- "id": "3e5cd1e3-1f9a-487c-9727-626b12fe4caf",
- "code": "bpm"
}
}
{- "result": true
}
Permissions - vitalSettingAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - vitalSettingAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - vitalSettingAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - vitalSettingAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "vitalSignIds": [
- "string"
]
}
{- "result": true,
- "vitalSignAssignmentId": "62e72663-5a9c-464d-935e-a3490918a09c"
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-sign-assignments/{vitalSignAssignmentId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "value": true
}
Permissions - subscriberPhiAdmin, ecgApiKey
required | Array of objects (VitalAssignment) Array of vital assignment objects |
{- "vitalSigns": [
- {
- "id": "3e5cd1e3-1f9a-487c-9727-626b12fe4caf",
- "code": "bpm"
}
]
}
{- "result": true
}
Permissions - subscriberPhiRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-sign-assignments' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "assignedVitalSigns": [
- {
- "code": "blood-pressure",
- "name": "Systolic Blood Pressure",
- "displayName": "SYS",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}, - "units": [
- {
- "name": "Millimeters of mercury",
- "displayName": "mmHg",
- "code": "mmhg",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "defaultUnitCode": "mmHg",
- "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "active": true,
- "archived": true
}
], - "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "subscriberId": "'24aaae39-cc1c-4ee5-bb71-93c66e43771c',"
}
Permissions - subscriberPhiAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiAdmin
curl -i -X PATCH \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-sign-assignments/{vitalSignAssignmentId}/vital-signs/{vitalSignId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - vitalSettingAdmin, ecgApiKey
{- "thresholds": [
- {
- "severity": 1,
- "direction": "low",
- "limit": 96
}
], - "normalLow": 97,
- "normalHigh": 100.5,
- "acceptedDisclaimers": [
- "string"
]
}
{- "vitalSignId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "organizationId": "24aaae39-cc1c-4ee5-bb71-93c66e43771c",
- "subscriberId": "952d927f-99e7-4a47-bd85-7ac3607089be",
- "thresholds": [
- {
- "severity": 1,
- "direction": "low",
- "limit": 96
}
], - "normalLow": 97,
- "normalHigh": 100.5,
- "acceptedDisclaimers": [
- "string"
], - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
Permissions - vitalSettingAdmin
{- "thresholds": [
- {
- "severity": 1,
- "direction": "low",
- "limit": 96
}
], - "normalLow": 97,
- "normalHigh": 100.5,
- "acceptedDisclaimers": [
- "string"
]
}
{- "result": true
}
Permissions - vitalSettingAdmin
curl -i -X DELETE \ 'https://vitals.ecg-api.com/organizations/{organizationId}/vital-signs/{vitalSignId}/thresholds' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - vitalSettingRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/thresholds?vitalSignId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - subscriberPhiAdmin, ecgApiKey
{- "thresholds": [
- {
- "severity": 1,
- "direction": "low",
- "limit": 96
}
], - "normalLow": 97,
- "normalHigh": 100.5,
- "acceptedDisclaimers": [
- "string"
]
}
{- "vitalSignId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "organizationId": "24aaae39-cc1c-4ee5-bb71-93c66e43771c",
- "subscriberId": "952d927f-99e7-4a47-bd85-7ac3607089be",
- "thresholds": [
- {
- "severity": 1,
- "direction": "low",
- "limit": 96
}
], - "normalLow": 97,
- "normalHigh": 100.5,
- "acceptedDisclaimers": [
- "string"
], - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
Permissions - subscriberPhiAdmin
{- "thresholds": [
- {
- "severity": 1,
- "direction": "low",
- "limit": 96
}
], - "normalLow": 97,
- "normalHigh": 100.5,
- "acceptedDisclaimers": [
- "string"
]
}
{- "result": true
}
Permissions - subscriberPhiAdmin
curl -i -X DELETE \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-signs/{vitalSignId}/thresholds' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/thresholds?vitalSignId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ https://vitals.ecg-api.com/reminder-message-types \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - setupDataAdmin
{- "localeKey": "en-US",
- "messages": [
- {
- "messageTypeId": "reminder",
- "message": "It is time to take your medicine"
}
]
}
{- "result": true
}
Retrieve all default ECG reminder messages
curl -i -X GET \ 'https://vitals.ecg-api.com/reminder-messages?locale=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - organizationAdmin
{- "localeKey": "en-US",
- "messages": [
- {
- "messageTypeId": "reminder",
- "message": "It is time to take your medicine"
}
]
}
{- "result": true
}
Permissions - organizationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organization/{organizationId}/reminder-messages?locale=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - organizationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organization/{organizationId}/reminder-messages/available-translations' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Find reminder messages by a given reminder Id
curl -i -X GET \ 'https://vitals.ecg-api.com/reminder-messages/{reminderMessageId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "organizationId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "vitalSignId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "messageType": {
- "id": "reminder",
- "name": "Reminder Message",
- "description": "This message is played when it is time to take Vitals readings.",
- "displayOrder": 1
}, - "localeKey": "en-US",
- "message": "It is time to take your medicine",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
Permissions - setupDataAdmin
{- "vitalSignId": "96321a9c-dade-4fd4-a8b2-d3e99da50b40",
- "messageTypeId": "reminder",
- "message": "It is time to take your medicine",
- "localeKey": "en-US"
}
{- "result": true
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/reminder-messages/{reminderMessageId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - organizationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organization/{organizationId}/reminder-messages/{reminderMessageId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "organizationId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "vitalSignId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "messageType": {
- "id": "reminder",
- "name": "Reminder Message",
- "description": "This message is played when it is time to take Vitals readings.",
- "displayOrder": 1
}, - "localeKey": "en-US",
- "message": "It is time to take your medicine",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
Permissions - organizationAdmin
{- "vitalSignId": "96321a9c-dade-4fd4-a8b2-d3e99da50b40",
- "messageTypeId": "reminder",
- "message": "It is time to take your medicine",
- "localeKey": "en-US"
}
{- "result": true
}
Permissions - organizationAdmin
curl -i -X DELETE \ 'https://vitals.ecg-api.com/organization/{organizationId}/reminder-messages/{reminderMessageId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiAdmin, ecgApiKey
In the preceding JSON:
{- "schedule": {
- "frequency": "daily",
- "interval": 1,
- "time": "14:00",
- "weekdays": [
- "sun"
], - "months": [
- 1
], - "daysOfMonth": [
- 1
]
}, - "startDate": "2020-12-14",
- "endDate": "2021-12-14",
- "presetId": "fab5ea70-dd02-41a4-b36a-235f6576b793",
- "messageId": "fab5ea70-dd02-41a4-b36a-235f6576b793",
- "reminderTypeId": "fab5ea70-dd02-41a4-b36a-235f6576b793",
- "locale": "en-US",
- "customReminderMessage": "this is a custom reminder message",
- "savePreset": true,
- "preset": {
- "name": "Default Schedule",
- "description": "Generic schedule"
}, - "organizationId": "fab5ea70-dd02-41a4-b36a-235f6576b793",
- "description": "Morning Blood Pressure Reminder",
- "vitalSignIds": [
- "string"
]
}
{- "result": true
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-reminders?include=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/vital-reminders/{reminderId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "49da07ab-403d-430e-8159-d2b0e695827f",
- "subscriberId": "49da07ab-403d-430e-8159-d2b0e695827f",
- "reminderTypeId": "5cce2fee-3a6a-408b-9c7c-6996ca0d444c",
- "locale": "en-US",
- "message": {
- "id": "49da07ab-403d-430e-8159-d2b0e695827f",
- "message": "this is a reminder message"
}, - "preset": {
- "id": "49da07ab-403d-430e-8159-d2b0e695827f",
- "name": "Preset Name",
- "description": "Preset Description"
}, - "customReminderMessage": "This is a custom message",
- "description": "This is a description",
- "schedule": {
- "frequency": "daily",
- "interval": 1,
- "time": "14:00",
- "weekdays": [
- "sun"
], - "months": [
- 1
], - "daysOfMonth": [
- 1
]
}, - "vitalSignIds": [
- "string"
], - "syncs": [
- {
- "isSynced": true,
- "deviceId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "deviceType": "ecg.addison.EXAMPLE.device",
- "scheduleId": "41045351-fe5b-455a-bca8-0a055d6d7ff8"
}
], - "eventId": "string"
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/vital-reminders/{reminderId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-reminders/event/{eventId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "49da07ab-403d-430e-8159-d2b0e695827f",
- "subscriberId": "49da07ab-403d-430e-8159-d2b0e695827f",
- "reminderTypeId": "5cce2fee-3a6a-408b-9c7c-6996ca0d444c",
- "locale": "en-US",
- "message": {
- "id": "49da07ab-403d-430e-8159-d2b0e695827f",
- "message": "this is a reminder message"
}, - "preset": {
- "id": "49da07ab-403d-430e-8159-d2b0e695827f",
- "name": "Preset Name",
- "description": "Preset Description"
}, - "customReminderMessage": "This is a custom message",
- "description": "This is a description",
- "schedule": {
- "frequency": "daily",
- "interval": 1,
- "time": "14:00",
- "weekdays": [
- "sun"
], - "months": [
- 1
], - "daysOfMonth": [
- 1
]
}, - "vitalSignIds": [
- "string"
], - "syncs": [
- {
- "isSynced": true,
- "deviceId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "deviceType": "ecg.addison.EXAMPLE.device",
- "scheduleId": "41045351-fe5b-455a-bca8-0a055d6d7ff8"
}
], - "eventId": "string"
}
Permissions - subscriberPhiAdmin
In the preceding JSON:
{- "schedule": {
- "frequency": "daily",
- "interval": 1,
- "time": "14:00",
- "weekdays": [
- "sun"
], - "months": [
- 1
], - "daysOfMonth": [
- 1
]
}, - "reminderTypeId": "vitals-reminder",
- "locale": "en-US",
- "presetId": "fc2de2db-e24e-4448-a709-37be9f07fb9b",
- "customReminderMessage": "This is a custom reminder message",
- "messageId": "9fa8f6c6-799d-4acd-bd02-6210a15e6577",
- "description": "This is a reminder shcedule",
- "startDate": "2020-12-14",
- "endDate": "2021-12-14",
- "vitalSignIds": [
- "string"
], - "eventId": "string"
}
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-reminders/{reminderScheduleId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-reminders/{reminderScheduleId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-reminders/{reminderScheduleId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-reminders/{reminderScheduleId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - organizationAdmin
{- "schedule": {
- "frequency": "daily",
- "interval": 1,
- "time": "14:00",
- "weekdays": [
- "sun"
], - "months": [
- 1
], - "daysOfMonth": [
- 1
]
}, - "name": "Preset Name",
- "description": "Preset Description"
}
{- "result": true
}
Permissions - organizationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/reminder-presets' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - organizationAdmin
{- "name": "Glucose Reminder",
- "description": "Morning Reminder",
- "schedule": {
- "frequency": "daily",
- "interval": 1,
- "time": "14:00",
- "weekdays": [
- "sun"
], - "months": [
- 1
], - "daysOfMonth": [
- 1
]
}
}
{- "result": true
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/organizations/{organizationId}/reminder-presets/{presetId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X GET \ 'https://vitals.ecg-api.com/reminder-types?code=vitals-reminder' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/reminder-types/{reminderTypeId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "6eb6e4ca-04db-47ef-9bff-1f021a95f8af",
- "title": "Vitals Reminder",
- "code": "vitals-reminder",
- "description": "Allows sending a reminder to take vitals."
}
curl -i -X GET \ 'https://vitals.ecg-api.com/vital-reminders/{reminderId}/sync-status?order_by=ASC&skip=0&take=25&isSynced=true' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - vitalAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/vital-reminders/{reminderId}/device/{deviceId}/sync' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "isSynced": true,
- "lastSyncedAt": "2020-12-16T20:15:09.351Z",
- "deviceId": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "deviceType": "ecg.addison.EXAMPLE.device",
- "scheduleId": "41045351-fe5b-455a-bca8-0a055d6d7ff8",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
Permissions - vitalAdmin, ecgApiKey
curl -i -X POST \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vital-reminders/sync-all' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Find audit trail records
curl -i -X GET \ 'https://vitals.ecg-api.com/audit-trails?take=25&skip=0&entity=activity-alert&action=CREATE&organizationId=string&to=string&from=string&dateRangeType=custom&orderBy=ASC' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - subscriberPhiAdmin, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/person-ref/{subscriberId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}
Permissions - ecgApiKey
{- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "organizationId": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}
{- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/person-ref/{personId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}
Permissions - setupDataAdmin
{- "locale": "en-US",
- "disclaimerType": "a6579733-ff9f-4b36-9b93-98a99260cde7",
- "disclaimer": "hello",
- "translations": [
- {
- "locale": "ko-KR",
- "disclaimer": "안녕하세요"
}
]
}
{- "result": true
}
curl -i -X GET \ 'https://vitals.ecg-api.com/disclaimers?include=string&locale=string&type=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/disclaimers/{disclaimerId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "c1987379-44d3-4038-9499-ebdcbdd1dcb0",
- "locale": "en-US",
- "disclaimerType": "Threshold Settings Disclaimer",
- "disclaimer": "threshold-settings",
- "translations": [
- {
- "locale": "ko-KR",
- "disclaimer": "안녕하세요"
}
], - "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "c1987379-44d3-4038-9499-ebdcbdd1dcb0"
}
Permissions - setupDataAdmin
{- "disclaimerText": "This is an example disclaimer.",
- "locale": "en-US",
- "disclaimerType": "a5f397e6-1b54-424b-b55b-5c308ae3ba7e",
- "parentDisclaimerId": "9bea34e7-055e-4e22-ad70-e9cacb0c5223",
- "translations": [
- {
- "locale": "ko-KR",
- "disclaimer": "안녕하세요"
}
]
}
{- "result": true
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/disclaimers/{disclaimerId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/disclaimers/{disclaimerId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/disclaimers/{disclaimerId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
{- "name": "Threshold Settings Disclaimer",
- "code": "threshold-settings"
}
{- "name": "Threshold Settings Disclaimer",
- "code": "threshold-settings"
}
Permissions - setupDataAdmin, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/disclaimer-types?name=string&code=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/disclaimer-types/{disclaimerType}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "5f58ad8a-dbb5-4607-93cf-96e8c7f490d9",
- "name": "Threshold Settings Disclaimer",
- "code": "threshold-settings"
}
Permissions - setupDataAdmin
{- "name": "Threshold Settings Disclaimer",
- "code": "threshold-settings"
}
{- "result": true
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/disclaimer-types/{disclaimerType}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Checks the onboarding status of a given organization
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/on-boarding' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "vitalSignAssignments": {
- "complete": true,
- "message": "This must be done in order to be marked as complete"
}, - "vitalThresholds": {
- "complete": true,
- "message": "This must be done in order to be marked as complete"
}, - "reminderMessages": {
- "complete": true,
- "message": "This must be done in order to be marked as complete"
}, - "alertDeliveryRules": {
- "complete": true,
- "message": "This must be done in order to be marked as complete"
}
}
{- "step": "vitalSignAssignments"
}
{- "result": true
}
Permissions - subscriberPhiAdmin
{- "observations": [
- {
- "vitalSignId": "14e13f99-6b17-45b1-9c7a-6090132296b2",
- "reading": "99",
- "unit": "f"
}
], - "timestamp": "2019-08-24T14:15:22Z",
- "generateAudioResponse": true,
- "performThresholdDetection": true
}
{- "executionId": "1accecab-5da6-48bf-982d-4f71ca10d8c4",
- "media": {
- "audioURL": "string",
- "ssmlURL": "string"
}, - "items": [
- {
- "threshold": {
- "severityRange": "high",
- "severityLevel": 1,
- "delta": 0
}, - "vitalReading": {
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "rawRecordId": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "organizationId": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "subscriberId": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "vitalSign": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "delta": 5,
- "normalHigh": 100,
- "normalLow": 50,
- "thresholdLimit": 105,
- "reading": 75,
- "unit": "bpm",
- "recordedAt": "2022-08-05T19:20:02.879Z"
}
}
], - "totalRecords": 0
}
Permissions - subscriberPhiAdmin
curl -i -X GET \ 'https://vitals.ecg-api.com/manual-observations/executions/{executionId}/status' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "status": "SUCCEEDED",
- "vitalReadingIds": [
- "47a17c41-c599-4617-8fab-898883b00d15"
], - "errors": [
- null
]
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vitals-observations?order_by=ASC&skip=0&take=25&vitalSignId=string&organizationId=string&thresholdSeverity=0&dateRangeType=custom&to=string&from=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "subscriber": {
- "metadata": {
- "key": "value"
}, - "id": "56a89d6b-1e78-4af7-8879-f38256b7e0dd",
- "firstName": "John",
- "lastname": "Doe",
- "organizationId": "c9eae816-9516-4cec-888e-ef97c015857c"
}, - "observations": {
- "items": [
- {
- "vitalSign": {
- "name": "Blood Pressure",
- "code": "blood-pressure"
}, - "readings": [
- {
- "inference": {
- "normalRange": {
- "from": null,
- "to": null
}, - "severity": 1,
- "delta": 5
}, - "id": "18516119-764b-4f41-abdc-96e624f4d0e7",
- "code": "sys",
- "value": 85,
- "unit": "mmHg"
}
], - "id": "2d59dc26-1747-49b0-b92d-20efa35b23ae",
- "recordedAt": "2022-03-15T17:20:03.493Z",
- "createdAt": "2022-03-15T17:20:03.493Z"
}
], - "totalRecords": 10,
- "totalPages": 10,
- "recordsPerPage": 1,
- "currentPageNumber": 1
}
}
Permissions - vitalSettingAdmin, ecgApiKey
{- "rawLogId": "0305b470-aa4f-4661-8180-c58fa6a2c6a1",
- "errorCode": "string",
- "errorMessage": "string",
- "stackTrace": "string"
}
{- "result": true
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vital-observations/statistics?dateRangeType=custom&from=string&to=string&observationType=vital-reading&subscriberId=string&organizationId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "fromDate": "2022-11-11T06:04:50.613Z",
- "toDate": "2022-11-11T06:04:50.613Z",
- "data": {
- "observationType": "vital-reading|phone-log|reminder-acknowledgement",
- "total": 1
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vital-observations/statistics/chart?dateRangeType=custom&from=string&to=string&vitalSignId=string&subscriberId=string&organizationId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "title": "string",
- "XAxis": {
- "title": "string",
- "dataType": "string",
- "description": "string",
- "formatting": "string",
- "color": "string"
}, - "YAxis": {
- "title": "string",
- "dataType": "string",
- "description": "string",
- "formatting": "string",
- "color": "string"
}, - "metadata": {
- "metadata": "any"
}, - "SeriesData": [
- {
- "X": "date",
- "Y": {
- "normalLow": 100,
- "normalHigh": 200,
- "reading": 150
}
}
], - "summary": "string",
- "dateRange": {
- "from": "2022-11-11T06:04:50.701Z",
- "to": "2022-11-11T06:04:50.701Z"
}
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
{- "metadata": {
- "key": "value"
}, - "id": "d5a5e2f0-300c-4820-a1b6-32c6d20a6a9e",
- "rawRecordId": "58b652af-22d7-4cb7-aa16-24858b56694a",
- "organizationId": "bbfdd353-2770-411c-9c2e-00529014fd5b",
- "subscriberId": "927defd9-7666-455f-a5dc-b77746148ab1",
- "vitalSign": "cd0fb3a1-484d-47c2-9522-aabcf35d648a",
- "delta": 4,
- "normalHigh": 99,
- "normalLow": 95,
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "thresholdLimit": 100,
- "unit": "bpm",
- "reading": 100,
- "recordedAt": "2022-08-22T19:16:40.869Z",
- "media": {
- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "rawRecordId": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "organizationId": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "subscriberId": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "vitalSign": "dc9a92c1-d887-4c70-a7a3-3b7dfea73e99",
- "delta": 5,
- "normalHigh": 100,
- "normalLow": 50,
- "thresholdLimit": 105,
- "reading": 75,
- "unit": "bpm",
- "recordedAt": "2022-08-05T19:20:02.879Z"
}
{- "metadata": {
- "key": "value"
}, - "id": "d5a5e2f0-300c-4820-a1b6-32c6d20a6a9e",
- "rawRecordId": "58b652af-22d7-4cb7-aa16-24858b56694a",
- "organizationId": "bbfdd353-2770-411c-9c2e-00529014fd5b",
- "subscriberId": "927defd9-7666-455f-a5dc-b77746148ab1",
- "vitalSign": "cd0fb3a1-484d-47c2-9522-aabcf35d648a",
- "delta": 4,
- "normalHigh": 99,
- "normalLow": 95,
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "thresholdLimit": 100,
- "unit": "bpm",
- "reading": 100,
- "recordedAt": "2022-08-22T19:16:40.869Z",
- "media": {
- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/vital-readings?order_by=ASC&skip=0&take=25&organizationId=string&subscriberIds=string&vitalSignIds=string&readingLowerBound=string&readingUpperBound=string&unit=string&dateRangeType=custom&to=string&from=string&search=string&format=FHIR' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "items": [
- {
- "resourceType": "Observation",
- "code": { },
- "meta": { },
- "id": "string",
- "status": "string",
- "effectiveDateTime": "2019-08-24T14:15:22Z",
- "component": [
- { }
], - "identifier": [
- { }
], - "category": { },
- "subject": { }
}
], - "currentPageNumber": 0,
- "recordsPerPage": 0,
- "totalRecords": 0,
- "totalPages": 0
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/vital-readings-grouped?order_by=ASC&skip=0&take=25&organizationId=string&subscriberIds=string&vitalSignIds=string&readingLowerBound=string&readingUpperBound=string&unit=string&dateRangeType=custom&to=string&from=string&search=string&format=FHIR' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "items": [
- {
- "resourceType": "Observation",
- "code": { },
- "meta": { },
- "id": "string",
- "status": "string",
- "effectiveDateTime": "2019-08-24T14:15:22Z",
- "component": [
- { }
], - "identifier": [
- { }
], - "category": { },
- "subject": { }
}
], - "currentPageNumber": 0,
- "recordsPerPage": 0,
- "totalRecords": 0,
- "totalPages": 0
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/insights/vitals-reading-summary?dateRangeType=custom&from=string&to=string&vitalSignId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "fromDate": "2022-11-11T06:04:50.614Z",
- "toDate": "2022-11-11T06:04:50.614Z",
- "observationCount": 0
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/vitals-health-report?dateRangeType=custom&from=string&to=string&vitalSignId=string&organizationId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "data": [
- {
- "vitalSigns": [
- {
- "date": "Jan 1,2021",
- "vitalSigns": [
- {
- "vitalSignId": "a8c54544-cf69-4ae8-beda-859a99e591d7",
- "reading": "100",
- "normalRangeLow": "100",
- "normalRangeHigh": "100",
- "delta": "10",
- "severity": "1"
}
]
}
], - "vitalSignData": [
- {
- "vitalSignId": "244c0580-2801-4bda-952f-aac1036e73b6",
- "name": "vital-sign-name",
- "code": "vital-sign-code",
- "unit": "vital-sign-unit"
}
]
}
]
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "lastDeliveredTime": "2020-12-16T20:15:09.351Z",
- "deliverRuleId": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "alertCount": 1,
}
{- "id": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "lastDeliveredTime": "2020-12-16T20:15:09.351Z",
- "deliverRuleId": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "alertCount": 1,
- "organizationId": "b6f842c2-8119-11eb-99b1-00155d6fd13d"
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-activity?order_by=ASC&skip=0&take=25' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-activity/latest' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "lastDeliveredTime": "2020-12-16T20:15:09.351Z",
- "deliverRuleId": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "alertCount": 1,
- "organizationId": "b6f842c2-8119-11eb-99b1-00155d6fd13d"
}
Permissions - subscriberPhiRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/deliver-rule/{deliveryRuleId}/alert-delivery-activity/latest' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "lastDeliveredTime": "2020-12-16T20:15:09.351Z",
- "deliverRuleId": "b6f842c2-8119-11eb-99b1-00155d6fd13d",
- "alertCount": 1,
- "organizationId": "b6f842c2-8119-11eb-99b1-00155d6fd13d"
}
Permissions - organizationAdmin
{- "name": "Severity 3 Alerts - every 10mins",
- "description": "This allows us to get all Level 3 alerts, every 10mins",
- "criteria": {
- "alertCategory": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "severity": 1
}, - "schedule": {
- "frequency": "weekly",
- "time": "1500",
- "weekdays": [
- "sun"
], - "interval": 1
}, - "delivery": {
- "contacts": [
- {
- "email": "test@email.com",
- "id": "37d4830a-1519-4f75-a831-79f1c8a01a35"
}
], - "message": {
- "subject": "URGENT ALERT - Your ECG Alerts",
- "message": "These are LEVEL 3 alerts"
}
}
}
{- "id": "8700707e-3c35-4aef-997f-36345d2b3ae1",
- "organizationId": "8700707e-3c35-4aef-997f-36345d2b3ae1",
- "name": "Severity 3 Alerts - every 10mins",
- "description": "This allows us to get all Level 3 alerts, every 10mins",
- "criteria": {
- "alertCategory": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "severity": 1
}, - "schedule": {
- "frequency": "weekly",
- "time": "1500",
- "weekdays": [
- "sun"
], - "interval": 1
}, - "delivery": {
- "contacts": [
- {
- "email": "test@email.com",
- "id": "37d4830a-1519-4f75-a831-79f1c8a01a35"
}
], - "message": {
- "subject": "URGENT ALERT - Your ECG Alerts",
- "message": "These are LEVEL 3 alerts"
}
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - organizationRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-rules?skip=0&take=25&frequency=weekly&alertCategory=string&severity=0' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - organizationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-rules/{alertDeliveryRuleId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "8700707e-3c35-4aef-997f-36345d2b3ae1",
- "organizationId": "8700707e-3c35-4aef-997f-36345d2b3ae1",
- "name": "Severity 3 Alerts - every 10mins",
- "description": "This allows us to get all Level 3 alerts, every 10mins",
- "criteria": {
- "alertCategory": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "severity": 1
}, - "schedule": {
- "frequency": "weekly",
- "time": "1500",
- "weekdays": [
- "sun"
], - "interval": 1
}, - "delivery": {
- "contacts": [
- {
- "email": "test@email.com",
- "id": "37d4830a-1519-4f75-a831-79f1c8a01a35"
}
], - "message": {
- "subject": "URGENT ALERT - Your ECG Alerts",
- "message": "These are LEVEL 3 alerts"
}
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - organizationAdmin
[- {
- "value": "new_value",
- "path": "/path",
- "op": "replace"
}
]
{- "result": true
}
Permissions - organizationRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/alert-delivery-rules?skip=0&take=25&frequency=weekly' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X POST \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-rules/{alertDeliveryRuleId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-rules/{alertDeliveryRuleId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-rules/{alertDeliveryRuleId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/organizations/{organizationId}/alert-delivery-rules/{alertDeliveryRuleId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "organizationId": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "rawLogId": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "subscriberId": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "categoryId": "d3d303be-0bcb-49b9-aa44-43529321de76",
- "vitalReading": {
- "id": "d3d303be-0bcb-49b9-aa44-43529321de76"
}, - "miscAlert": {
- "metadata": { }
}
}
{- "id": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "organizationId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "subscriberId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "alertCategory": {
- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "addressed": false,
- "addressedBy": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "addressedByPersonRef": {
- "id": "aed73bee-af4e-11eb-9994-00155ddf91f4",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "5acb9fb6-12b4-4f0c-a358-72dbae5f4817"
}, - "addressedAt": "2022-06-01T16:30:28.964Z",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "vitalReading": {
- "metadata": {
- "key": "value"
}, - "id": "d5a5e2f0-300c-4820-a1b6-32c6d20a6a9e",
- "rawRecordId": "58b652af-22d7-4cb7-aa16-24858b56694a",
- "organizationId": "bbfdd353-2770-411c-9c2e-00529014fd5b",
- "subscriberId": "927defd9-7666-455f-a5dc-b77746148ab1",
- "vitalSign": "cd0fb3a1-484d-47c2-9522-aabcf35d648a",
- "delta": 4,
- "normalHigh": 99,
- "normalLow": 95,
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "thresholdLimit": 100,
- "unit": "bpm",
- "reading": 100,
- "recordedAt": "2022-08-22T19:16:40.869Z",
- "media": {
- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
}, - "alertMetadata": { }
}
curl -i -X POST \ 'https://vitals.ecg-api.com/vitals-alerts/{alertId}/address' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "organizationId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "subscriberId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "alertCategory": {
- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "addressed": false,
- "addressedBy": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "addressedByPersonRef": {
- "id": "aed73bee-af4e-11eb-9994-00155ddf91f4",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "5acb9fb6-12b4-4f0c-a358-72dbae5f4817"
}, - "addressedAt": "2022-06-01T16:30:28.964Z",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "vitalReading": {
- "metadata": {
- "key": "value"
}, - "id": "d5a5e2f0-300c-4820-a1b6-32c6d20a6a9e",
- "rawRecordId": "58b652af-22d7-4cb7-aa16-24858b56694a",
- "organizationId": "bbfdd353-2770-411c-9c2e-00529014fd5b",
- "subscriberId": "927defd9-7666-455f-a5dc-b77746148ab1",
- "vitalSign": "cd0fb3a1-484d-47c2-9522-aabcf35d648a",
- "delta": 4,
- "normalHigh": 99,
- "normalLow": 95,
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "thresholdLimit": 100,
- "unit": "bpm",
- "reading": 100,
- "recordedAt": "2022-08-22T19:16:40.869Z",
- "media": {
- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
}, - "alertMetadata": { }
}
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vitals-alerts/{alertId}?include=true' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "organizationId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "subscriberId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "alertCategory": {
- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "addressed": false,
- "addressedBy": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "addressedByPersonRef": {
- "id": "aed73bee-af4e-11eb-9994-00155ddf91f4",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "5acb9fb6-12b4-4f0c-a358-72dbae5f4817"
}, - "addressedAt": "2022-06-01T16:30:28.964Z",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "vitalReading": {
- "metadata": {
- "key": "value"
}, - "id": "d5a5e2f0-300c-4820-a1b6-32c6d20a6a9e",
- "rawRecordId": "58b652af-22d7-4cb7-aa16-24858b56694a",
- "organizationId": "bbfdd353-2770-411c-9c2e-00529014fd5b",
- "subscriberId": "927defd9-7666-455f-a5dc-b77746148ab1",
- "vitalSign": "cd0fb3a1-484d-47c2-9522-aabcf35d648a",
- "delta": 4,
- "normalHigh": 99,
- "normalLow": 95,
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "thresholdLimit": 100,
- "unit": "bpm",
- "reading": 100,
- "recordedAt": "2022-08-22T19:16:40.869Z",
- "media": {
- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
}, - "alertMetadata": { }
}
Permissions - subscriberPhiRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vitals-alerts?order_by=ASC&skip=0&take=25&organizationId=string&subscriberIds=string&addressed=true&alertCategories=string&alertTypes=misc-alert&vitalSignIds=string&severities=0&dateRangeType=custom&to=string&from=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vitals-metrics/alert-categories/statistics?subscriberId=string&organizationId=string&dateRangeType=custom&from=string&to=string&alertCategoryCode=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "fromDate": "2022-06-01T16:30:28.964Z",
- "toDate": "2022-06-01T16:30:28.964Z",
- "alertData": [
- {
- "categoryCode": "CAT_CODE",
- "total": 1
}
]
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vitals-metrics/addressable-alerts-metrics?subscriberId=string&organizationId=string&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "fromDate": "2022-11-11T06:04:50.705Z",
- "toDate": "2022-11-11T06:04:50.705Z",
- "alertData": {
- "total": 1,
- "addressed": 1,
- "addressed_percentage": 1
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vitals-metrics/vital-readings/chart?organizationId=string&dateRangeType=custom&from=string&to=string&subscriberId=string&vitalSignId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "title": "string",
- "XAxis": {
- "title": "string",
- "dataType": "string",
- "description": "string",
- "formatting": "string",
- "color": "string"
}, - "YAxis": {
- "title": "string",
- "dataType": "string",
- "description": "string",
- "formatting": "string",
- "color": "string"
}, - "metadata": {
- "metadata": "any"
}, - "SeriesData": [
- {
- "X": "date",
- "Y": {
- "normalLow": 100,
- "normalHigh": 200,
- "reading": 150
}
}
], - "summary": "string",
- "dateRange": {
- "from": "2022-11-11T06:04:50.701Z",
- "to": "2022-11-11T06:04:50.701Z"
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/insights/vitals-metrics/vital-readings/statistics?subscriberId=string&organizationId=string&vitalSignId=string&mode=count&severity=string&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "fromDate": "2022-06-01T16:30:28.964Z",
- "toDate": "2022-06-01T16:30:28.964Z",
- "alertData": [
- {
- "severity": 1,
- "count": 1
}
]
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/insights/subscriber-severity-report?severity=string&take=0&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "criteria": {
- "dateRange": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z"
}, - "severity": 1
}, - "subscribers": {
- "currentPageNumber": 0,
- "recordsPerPage": 0,
- "totalRecords": 0,
- "totalPages": 0,
- "items": [
- { }
]
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/insights/reporting?organizationId=string&subscriberId=string&mode=csv&reportType=vitals-alert&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "url": "string"
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "subscriberId": "0ce5c9c0-a894-4a57-90be-7811a33f9605",
- "organizationId": "5b655ccd-57b3-40bd-bcb9-07f368364182",
- "deviceId": "bb211d77-c52a-4986-9e4e-cad02c7c2a78",
- "deviceSerialNumber": "AN[Z,S]1234",
- "deviceTypeId": "30fa08aa-01d6-4403-b910-398441a7a12f"
}
{- "id": "8ce869e0-0831-45ca-ab82-92876e98f43a",
- "subscriberId": "fc3ed76f-efe4-4ef5-9ff9-5b2925065538",
- "organizationId": "6da81d16-1707-4b0a-bdee-045df8e4e805",
- "deviceId": "c4afe209-4334-483f-9314-79a78fe7efba",
- "deviceSerialNumber": "AN*****",
- "deviceTypeId": "3f48c73c-29c1-456e-80f2-05920568a001",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - organizationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/organizations/{organizationId}/subscriber-devices?take=0&skip=0&orderBy=ASC' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/subscriber-devices?take=0&skip=0&orderBy=ASC' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/subscriber-devices/{deviceSerialNumber}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "8ce869e0-0831-45ca-ab82-92876e98f43a",
- "subscriberId": "fc3ed76f-efe4-4ef5-9ff9-5b2925065538",
- "organizationId": "6da81d16-1707-4b0a-bdee-045df8e4e805",
- "deviceId": "c4afe209-4334-483f-9314-79a78fe7efba",
- "deviceSerialNumber": "AN*****",
- "deviceTypeId": "3f48c73c-29c1-456e-80f2-05920568a001",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - subscriberPhiAdmin
{- "deviceId": "450fa29f-102a-4b3f-ad1f-032d2e2f08ad",
- "deviceSerialNumber": "AN*****",
- "deviceTypeId": "681c1f74-5982-45eb-ac20-a46a1bf771ba"
}
{- "result": true
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/subscriber-devices/{subscriberDeviceId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/subscriber-devices/{subscriberDeviceId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
curl -i -X POST \ 'https://vitals.ecg-api.com/subscriber-devices/{subscriberDeviceId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "result": true
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/subscribers/{subscriberId}/on-boarding' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "vitalSignAssignments": {
- "complete": true,
- "message": "Severity Threshold Settings must be setup"
}, - "vitalThresholds": {
- "complete": true,
- "message": "Severity Threshold Settings must be setup"
}, - "reminderSchedules": {
- "complete": true,
- "message": "Severity Threshold Settings must be setup"
}
}
Permissions - subscriberPhiRead
{- "step": "vitalSignAssignments"
}
{- "result": true
}
Permissions - setupDataAdmin, ecgApiKey
{- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategoryId": "f2eafd04-2bd6-4f4a-b8c5-fb1111906015"
}
{- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - setupDataRead, ecgApiKey
curl -i -X GET \ 'https://vitals.ecg-api.com/api/alert-categories?order_by=ASC&skip=0&take=25&include=parent&sort_by=string&code=string&rrms_code=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/api/alert-categories/{alertCategoryId}?include=parent' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - setupDataAdmin, ecgApiKey
[- {
- "value": "new_value",
- "path": "/path",
- "op": "replace"
}
]
{- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - setupDataRead, ecgApiKey
curl -i -X POST \ 'https://vitals.ecg-api.com/api/alert-categories/{alertCategoryId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "value": true
}
Permissions - setupDataAdmin, ecgApiKey
curl -i -X POST \ 'https://vitals.ecg-api.com/api/alert-categories/{alertCategoryId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "value": true
}
Permissions - subscriberPhiAdmin, ecgApiKey
{- "note": "This is an alert note"
}
{- "alert": {
- "id": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "organizationId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "subscriberId": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "alertCategory": {
- "parentCategory": {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "childCategories": {
- "items": [
- {
- "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "category-name",
- "code": "ALT_CAT_CODE",
- "description": "description",
- "rrmsCode": "rrms-code",
- "parentCategory": "parent-category",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
], - "totalPages": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "currentPageNumber": 0
}, - "id": "fbad63cb-2a05-4904-b5e1-9e1eb02fbd53",
- "name": "name",
- "code": "code",
- "description": "description",
- "rrmsCode": "rrmsCode",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "addressed": false,
- "addressedBy": "75baa19d-f6d2-40c7-922c-b237c786ee24",
- "addressedByPersonRef": {
- "id": "aed73bee-af4e-11eb-9994-00155ddf91f4",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "5acb9fb6-12b4-4f0c-a358-72dbae5f4817"
}, - "addressedAt": "2022-06-01T16:30:28.964Z",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "vitalReading": {
- "metadata": {
- "key": "value"
}, - "id": "d5a5e2f0-300c-4820-a1b6-32c6d20a6a9e",
- "rawRecordId": "58b652af-22d7-4cb7-aa16-24858b56694a",
- "organizationId": "bbfdd353-2770-411c-9c2e-00529014fd5b",
- "subscriberId": "927defd9-7666-455f-a5dc-b77746148ab1",
- "vitalSign": "cd0fb3a1-484d-47c2-9522-aabcf35d648a",
- "delta": 4,
- "normalHigh": 99,
- "normalLow": 95,
- "thresholdSeverity": 1,
- "thresholdDirection": "high",
- "thresholdLimit": 100,
- "unit": "bpm",
- "reading": 100,
- "recordedAt": "2022-08-22T19:16:40.869Z",
- "media": {
- "audioURL": "audio.url",
- "ssmlURL": "ssml.url",
- "locale": "en-US"
}
}, - "alertMetadata": { }
}, - "id": "30eed248-3574-45b6-8271-c8b2a8360643",
- "notes": "name",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
curl -i -X GET \ 'https://vitals.ecg-api.com/api/alerts/{alertId}/notes?order_by=ASC&skip=0&take=25&include=true&sort_by=string&searchTerm=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X DELETE \ 'https://vitals.ecg-api.com/api/alerts/{alertId}/notes/{noteId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
true
curl -i -X GET \ https://vitals.ecg-api.com/api/seed-data/dosage-time-interval-types \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
curl -i -X GET \ https://vitals.ecg-api.com/api/seed-data/route-types \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
curl -i -X GET \ https://vitals.ecg-api.com/api/seed-data/action-types \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
curl -i -X GET \ https://vitals.ecg-api.com/api/seed-data/amount-types \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Permissions - medicationAdmin
{- "organizationId": "0c154335-b9cd-4916-8320-5f40e0d85ab9",
- "genericName": "ACETAMINOPHEN",
- "brandName": "Tylenol Extra Strength Caplet",
- "dosageForm": "tablet",
- "strength": "500 mg/1",
- "brandNameBase": "Tylenol Extra Strength",
- "labelerName": "Jones Healthcare Group - Packaging Services, Inc",
- "ndcDrugCode": "some.ndc.drug.code",
- "description": "description for the medication"
}
{- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}
}
Permissions - medicationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/medications?skip=0&take=0&order_by=ASC&sort_by=productNdc&searchTerm=productNdc&searchTermValue=string&source=NDC&organizationId=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Permissions - medicationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/medications-sentences?amount=string&amountType=tsp&actionType=take&route=by-mouth&medicationName=string&medicationFor=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "simpleDescription": "string",
- "moderateDescription": "string",
- "fullDescription": "string",
- "choiceDescription": "string"
}
Permissions - medicationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/speech?message=string&locale=en-US' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "type": "Buffer",
- "data": [
- 0
]
}
Permissions - medicationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/ndc-codes?skip=0&take=0&searchTerm=product_ndc&searchTermValue=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Permissions - medicationAdmin
{- "description": "string"
}
{- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}
curl -i -X GET \ 'https://vitals.ecg-api.com/api/medications/{medicationId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}
Permissions - medicationAdmin
{- "description": "string"
}
{- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}
Permissions - medicationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/medications/{medicationId}/polly-url' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "url": "string"
}
Permissions - subscriberPhiAdmin
{- "organizationId": "16eb6faa-a704-4130-8cc6-6cf3c122542d",
- "medicationMasterId": "daf1b206-7ca4-4674-8f73-329103a28f46",
- "medicationFor": "Blood Pressure",
- "effectiveFrom": "2022-08-22T17:00:31.270Z",
- "effectiveTo": "2022-08-22T17:00:31.270Z",
- "route": "by-month",
- "actionType": "take"
}
{- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications?order_by=ASC&skip=0&take=25&include=medicationMaster&includeArchived=true&includeActive=true&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}?include=medicationMaster' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - subscriberPhiAdmin
curl -i -X DELETE \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
Array of objects (JsonPatchDocumentDto) |
null
{- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Add Activity Notes
{- "note": "string"
}
{- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
curl -i -X DELETE \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medication-activities/{activityId}/notes/{noteId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Adds the medication-activity information for a given subscriber
required | Array of objects (MedicationActivityDto) |
{- "activities": [
- {
- "alertSentAt": "2022-11-11T06:04:51.067Z",
- "status": "missed",
- "activityAt": "2022-11-11T06:04:51.067Z",
- "scheduleId": "a188aba4-f68f-4d27-aeff-326b6ef52987"
}
]
}
null
Lists the Medication Activities information for a given Subscriber Returns Paginated Response of MedicationActivityDisplayModel
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medication-activities?order_by=ASC&skip=0&take=25&status=missed&dateRangeType=custom&from=string&to=string&include=MedicationSchedule' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Retrieves Medication Activity information for a given Subscriber
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medication-activities/{activityId}?include=MedicationSchedule' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": {
- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- { }
]
}, - "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
Updates the Medication Activity information for a given Subscriber.
Array of objects (JsonPatchDocumentDto) |
null
{- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": {
- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- { }
]
}, - "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
Reviews the Medication Activity information for a given Subscriber.
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medication-activities/{activityId}/review' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": {
- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- { }
]
}, - "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
Pre-Signed URL to Upload Video for the Medication Activity.
{- "activities": [
- "f713481e-2ea8-4996-9ad7-09e1d1f29aa9"
]
}
{- "value": "string"
}
Gets pre-signed Video URL for the Medication Activity.
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medication-activities/{activityId}/videos' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": "string"
}
counts the Medication Activities for a given organization based on status and date-time range
curl -i -X GET \ 'https://vitals.ecg-api.com/api/organizations/{organizationId}/medication-activities/count?status=missed&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "medicationActivityStatus": "missed",
- "total": 1
}
Permissions - subscriberPhiAdmin
{- "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue"
], - "dosageTimeInterval": "evening",
- "amount": 1,
- "amountType": "tablet",
- "simpleDescription": "1 tablet of Metformin",
- "moderateDescription": "Please take 1 tablet of Metformin",
- "fullDescription": "Please take 1 tablet of Metformin by mouth with food for diabetes",
- "choiceDescription": "Are you planning to take 1 tablet of Metformin by mouth with food for diabetes ?"
}
{- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": { },
- "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": null
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": null
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
]
}
Permissions - subscriberPhiAdmin
Array of objects (JsonPatchDocumentDto) |
null
{- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": { },
- "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": null
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": null
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
]
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}?include=subscriberMedication&status=missed' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": { },
- "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": null
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": null
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
]
}
Permissions - subscriberPhiAdmin
curl -i -X DELETE \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}/activate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}/deactivate' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}/archive' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - subscriberPhiAdmin
curl -i -X POST \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}/restore' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "value": true
}
Permissions - medicationRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medications/{medicationId}/schedules/{scheduleId}/polly-url' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
{- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/medication-schedules?order_by=ASC&skip=0&take=25&include=subscriberMedication&includeArchived=true&includeActive=true&status=missed&date=2019-08-24T14%3A15%3A22Z&subscriberMedicationId=string&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Permissions - subscriberPhiAdmin
{- "simpleDescription": "1 tablet of Metformin",
- "moderateDescription": "Please take 1 tablet of Metformin",
- "fullDescription": "Please take 1 tablet of Metformin by mouth with food for diabetes",
- "choiceDescription": "Are you planning to take 1 tablet of Metformin by mouth with food for diabetes ?"
}
{- "id": "05eb62e7-4cbf-45fc-8b12-fe3748459375",
- "subscriberMedication": {
- "id": "dfd10d4e-3d43-45ee-bb8d-b888a877d205",
- "subscriber": {
- "id": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "organizationId": "f7352d3f-bb6b-40b4-8c55-62a179fb5045",
- "firstName": "John",
- "lastName": "Doe",
- "salutation": "Mr",
- "active": true,
- "sub": "bec0c69b-8ed1-4970-950d-018bd85d31bc"
}, - "organizationId": "a32a7a5f-47db-4539-952e-bced14ccf416",
- "medicationFor": "string",
- "color": "string",
- "route": "by-mouth",
- "actionType": "take",
- "effectiveFrom": "2022-11-11T06:04:51.064Z",
- "effectiveTo": "2022-11-11T06:04:51.064Z",
- "medicationMaster": {
- "id": "f6b5c8ff-0a97-45eb-b0f8-6688ad2bc640",
- "organizationId": "1b73413a-450b-4d40-8017-3568b8da54d6",
- "source": "NDC",
- "description": "string",
- "genericName": "string",
- "labelerName": "string",
- "brandName": "string",
- "brandNameBase": "string",
- "dosageForm": "string",
- "strength": "string",
- "ndcDrugCode": "string",
- "audioURLs": {
- "locale": "string",
- "url": "string",
- "message": "string"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "productNdc": "string",
- "route": [
- "string"
], - "activeIngredients": [
- {
- "name": "string",
- "strength": "string"
}
], - "ndcPayload": { }
}, - "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}
}, - "reminderTime": "6:4",
- "daysOfTheWeek": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
], - "dosageTimeInterval": "once-a-day",
- "reminderInfo": [
- {
- "locale": "en-US",
- "simple": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "moderate": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "full": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}, - "choice": {
- "message": "string",
- "audioURL": "string",
- "ssmlURL": "string"
}
}
], - "amount": 1,
- "amountType": "tablet",
- "activeInfo": {
- "active": true,
- "activeStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "archiveInfo": {
- "archived": true,
- "archivedStatusChangedAt": "2020-12-16T20:15:09.351Z"
}, - "medicationActivities": [
- {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": "string"
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": "6eaa00bb-d5ca-4ffb-8cef-6bbd9036a76d"
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}, - "medicationSchedule": { },
- "activityNotes": [
- {
- "id": "de2ee5d6-8305-44c2-b688-4f334fb06239",
- "notes": "string",
- "auditInfo": {
- "createdAt": "2020-12-16T20:15:09.351Z",
- "createdBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493",
- "updatedAt": "2020-12-16T20:15:09.351Z",
- "updatedBy": "315ff1ec-5a1f-49f7-9c47-41ab4ee02493"
}, - "medicationActivity": {
- "id": "4066b2c1-8100-4b66-a13b-64ef03faf4a4",
- "subscriberId": "03646088-6ac0-46b4-87ff-2a55fd38cf11",
- "status": "missed",
- "alertSentAt": "2022-11-11T06:04:51.066Z",
- "activityAt": "2022-11-11T06:04:51.066Z",
- "media": [
- {
- "videoUrl": null
}
], - "review": {
- "reviewed": true,
- "reviewer": {
- "id": null
}, - "reviewedAt": "2022-11-11T06:04:51.066Z"
}
}
}
]
}
]
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/subscribers/{subscriberId}/addison-timeline?status=missed&dateRangeType=custom&from=string&to=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'accept-language: en-US'
null
Permissions - subscriberPhiAdmin
{- "organizationId": "9e7535fb-c986-4660-a609-cdc1037aeb72",
- "deliveryChannels": [
- {
- "deviceId": "a4989bdf-780c-4438-abfa-3efb32a40814",
- "name": "pro-health"
}
], - "locale": "en-US",
- "message": "string",
- "description": "string"
}
{- "id": "string",
- "result": true,
- "data": {
- "organizationId": "9e7535fb-c986-4660-a609-cdc1037aeb72",
- "deliveryChannels": [
- "pro-health"
], - "response": [
- {
- "eventType": "NoAcknowledgementReceived",
- "eventTimestamp": "2019-08-24T14:15:22Z",
- "rawRecordId": "string"
}
], - "locale": "en-US",
- "message": "string",
- "description": "string"
}
}
Permissions - subscriberPhiRead
curl -i -X GET \ 'https://vitals.ecg-api.com/api/{subscriberId}/instant-messages?dateRangeType=custom&fromDate=2019-08-24T14%3A15%3A22Z&toDate=2019-08-24T14%3A15%3A22Z&searchTerm=string&organizationId=string&channel=pro-health&skip=0&take=10' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
null
curl -i -X GET \ 'https://vitals.ecg-api.com/api/instant-messages/events/{eventId}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "id": "string",
- "data": {
- "organizationId": "9e7535fb-c986-4660-a609-cdc1037aeb72",
- "deliveryChannels": [
- "pro-health"
], - "response": [
- {
- "eventType": "NoAcknowledgementReceived",
- "eventTimestamp": "2019-08-24T14:15:22Z",
- "rawRecordId": "string"
}
], - "locale": "en-US",
- "message": "string",
- "description": "string"
}
}