Please enable JavaScript.
Coggle requires JavaScript to display documents.
API - Create AssessmentInvitation, API - Create AssessmentInvitation -…
API - Create AssessmentInvitation
Request
Headers
PWClientIdentifier
Value: <Client Identifier>
Length: 64
Data Type: Text
Status : Mandatory
MessageDatetime
Value: yyyy-MM-dd'T'HH:mm:ss
Length: 64
Data Type: Text
Status : Mandatory
Authorization
Value: <GUID>
Length: 64
Data Type: Text
Status : Mandatory
MessageDatetime
Value: Bearer <access_token>
Length: 64
Data Type: Text
Status : Mandatory
Method: POST
Endpoint: /assessmentinvitations
payload
{
"physioWizardPatientID": string,
"clientPatientID": string,
"caseID": string
}
physioWizardPatientID
necessity: Mandatory
date type: Text
length: 64
remarks:
PhysioWizardPatientID or ClientPatientID required.
clientPatientID
necessity: Mandatory
Data type: Text
length: 64
remarks:
PhysioWizardPatientID or ClientPatientID required..
caseID
necessity: Mandatory/ Unique
Data type: Text
length: 64
Response
Response code: 201
payload
{
"physioWizardPatientInvitationID": string,
"assessmentInvitationURL": string,
"assessmentInvitationStatus": string
}
physioWizardPatientInvitationID
necessity: Mandatory
Data type: Text
length: 64
assessmentInvitationURL
necessity: Mandatory
Data type: Text
length: 256
assessmentInvitationStatus
necessity: Mandatory
Data type: Text
length: 64
remarks: Created/ InProgress/ Completed/ Expired
Error messages
HTTP Error Code 405 Method Not Allowed
If the request was made with any other request method (HTTP verb) than specified above, the request will not be allowed. API will return an error response with 405 Method Not Allowed as response code.
HTTP Error Code 500 - Internal Server Error
If the endpoint returns HTTP error code 500 that means something that has not been anticipated has happened hence the API hasn’t handled that error. Please reach out to support team.
HTTP Error Code 404 – Not Found
Scenario 1: PhysioWizardPatient not found for ID
Sample error message:
{
"PhysioWizardPatientID":
"PhysioWizardPatient not found for ID <PhysioWizardPatientID>."
]
}
Scenario 2: PhysioWizardPatient Not found for the ID <ClientPatientID>.
Sample error message:
{
"ClientPatientID":
"PhysioWizardPatient not found for ID <ClientPatientID>"
]
}
HTTP Error Code 400 - Bad Request
Scenario 1: Missing mandatory value for <parameter/s>. Either PhysioWizardPatientID or ClientPatientID is required.
Sample error message:
{
"ClientPatientID":[:
"Either PhysioWizardPatientID or ClientPatientID is required"
],
"PhysioWizardPatientID":[
"Either PhysioWizardPatientID or ClientPatientID is required"
]
}
HTTP Error Code 409 - Conflict
Scenario 1: CaseID is already in use.
Sample error message:
{
"CaseID":
"Invalid CaseID, CaseID is already in use."
]
}
Scenario 2: ClientPatientID is not matched with PhysioWizardPatientID. <ClientPatientID>.
Sample error message:
{
"ClientPatientID":[:
"PhysioWizardPatientID and ClientPatientID not belongs to same patient."
],
"PhysioWizardPatientID":[
"PhysioWizardPatientID and ClientPatientID not belongs to same patient."
]
}
API - Create AssessmentInvitation