Accept clinician's shift report
POST/api/v2/public/marketplace/shifts/reports/:shiftId/accept
General Information
Accepts the Clinician's shift report
When a facility user accepts the clinician's shift report, they are agreeing with the information provided by the clinician. Therefore, no intervention from Nursa employees will be necessary.
You can use the Get Shift Report endpoint verify if the clinician's shift report is correctIf you believe the report contains incorrect information, you can use the Reject Shift Report endpoint to submit the correct values.
Request
Path Parameters
Nursa ShiftId
- application/json
Body
required
A comment about the clinician
Possible values: >= 1
and <= 5
Rate the clinician from 1 to 5
Responses
- 201
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
data object
Shift start date
Shift end date
Possible values: [Facility
, Nurse
, On Hold
, Other
]
Cancelation Reason
Possible values: [No Call No Show
, Excused Emergency
, Refused to Work
, No Longer Want to Work With This Clinician
]
Comment about the cancelation
Comment of the shift
Bonus to be paid to Clinician
Possible values: [Nurse
, Facility
, Admin
, AdminBilling
]
Type of the report
Break Time for the shift
The date the shift was last updated
Total price of the shift
Comment reviewing the Clinician
Rate given to Clinician
{
"data": {
"from": "2024-10-04T18:30:16.310Z",
"to": "2024-10-04T18:30:16.310Z",
"cancelationReason": "Nurse",
"cancelationComment": "Excused Emergency",
"comment": "Everything was fine :)",
"bonus": 2.5,
"reportType": "Nurse",
"breakTime": "PT45M",
"updateDate": "2024-10-04T18:30:16.311Z",
"totalAmount": 178.8,
"reviewComment": "A comment",
"rate": 5
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
- Shift not Completed
- Already Submitted
- Missing Clinician Report
Schema
Error description
The type of error
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"comment must be a string",
"rate must not be greater than 5",
"rate must not be less than 1",
"rate must be an integer number"
],
"error": "Bad Request",
"statusCode": 400
}
Shift is not completed
{
"message": "Shift must be completed to submit a shift report",
"error": "Bad Request",
"statusCode": 400
}
Shift report already submitted
{
"message": "Facility shift report already submitted",
"error": "Bad Request",
"statusCode": 400
}
Clinician shift report was not submitted
{
"message": "Clinician shift report was not submitted",
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error description
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error description
The type of error
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}