You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename createPermissionNumber to approvePermissionNumber
Change to new Request / Response types below
Request:
{
"token": "1234567"
}
in a transaction
query diagnosis_permission_number for token
if result count == 1:
diagnosis_permission_number_id = uuid of returned result
else if result count == 0 or > 1:
- if > 1, log an error because > 1 should never happen
break, reject transaction
find diagnosis_permission_number for token
find positive_diagnosis record by positive_diagnosis_id
update positive_diagnosis record to {"status": "approved"}
update diagnosis_permission_number record to remove "token", "positive_diagnosis_id", "created_timestamp", while adding "approved_timestamp:":
Example updated diagnosis_permission_number
Request:
if result count == 1:
diagnosis_permission_number_id = uuid of returned result
else if result count == 0 or > 1:
- if > 1, log an error because > 1 should never happen
break, reject transaction
Example updated diagnosis_permission_number
If success:
Response:
If fail:
Response:
The text was updated successfully, but these errors were encountered: