Devices are the devices that the PainChek application runs on - i.e. the Android or iOS devices that are used the capture assessments and manage patients.
Field |
Type |
Comment |
---|---|---|
id |
Mandatory Integer |
A sequential identifier |
system |
Mandatory Integer |
1=Android device, 2=iOS device |
is_active |
Mandatory boolean |
Indicates if the device is active and can be used to access PainChek. Defaults to true. |
To list the all Devices in your PainChek instance (in the User Acceptance Environment), you can issue this command:
curl https://ap.ua.painChek.com/api/installation/devices/
Sample return data:
{ "count": 2, "next": null, "previous": null, "results": [{ "id": 149, "device_id": "95CB3AAE-DE29-4949-A246-428C006D536C", "system": 2, "license_name": "A89E0CC1-FD90/PainChek Ltd/2018-12-31", "is_active": true }, { "id": 151, "device_id": "6036F4BB-F118-4F72-92EE-AC93C90D00BF", "system": 2, "license_name": "A89E0CC1-FD90/PainChek Ltd/2018-12-31", "is_active": true }] }