post https://example.com/device/v1/devices//usage-sessions/usage-type/
Create a new Usage Session by usageType
If patient is null in the request, the patient id will be read from the device entity.
The below table describes the request parameters:
Parameter | Type | Mandatory | Description |
---|---|---|---|
deviceId | String | true | |
usageType | String | true | The usage session name |
_startTime | DateTime | true | ISO 8601. The start time of the session |
_endTime | DateTime | false | ISO 8601. The end time of the session |
_state | String | true | The session state. Possible values: ACTIVE, DONE, PAUSED, ACTIVATING, PAUSING, RESUMING, STOPPING |
_configuration.{configurationCustomAttribute1} | {configurationCustomAttributes1Type} | false | configuration custom attribute 1 value |
_configuration.{configurationCustomAttributeN} | {configurationCustomAttributesNType} | false | configuration custom attribute N value |
_summary._stopReason | String | false | |
_summary._stopReasonCode | String | false | Supported values are: COMPLETION, GENERAL_DEVICE_ERROR, TIMEOUT |
_summary.{summaryCustomAttribute1} | {summaryCustomAttributes1Type} | false | summary custom attribute 1 value |
_summary.{summaryCustomAttributeN} | {summaryCustomAttributesNType} | false | summary custom attribute N value |