MedicalController::questions().App\Http\Controllers\Api\V1\Diver\MedicalController::questions()api.v1.diver.medical.questionsAuthorization: Bearer {token}GET/api/v1/diver/medical/questions200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"can_submit": true,
"last_submission": {
"expire_date": "2025-09-29",
"has_condition": false,
"is_expired": true
},
"disclaimer": {
"id": 3,
"policy": "<p><strong>Diver Medical Participant Questionnaire ...</strong></p>..."
},
"questions": [
{
"id": 43,
"question": "I have had problems with my lungs, breathing, heart and/or blood affecting my normal physical or mental performance.",
"has_sub_questions": true,
"sub_questions": [
{ "id": 53, "question": "Chest surgery, heart surgery, heart valve surgery..." }
]
},
{
"id": 45,
"question": "I struggle to perform moderate exercise...",
"has_sub_questions": false,
"sub_questions": []
}
],
"policies": [
{
"id": 1,
"type": "accept_risk",
"title": "Liability Release and Assumption of Risk Agreement",
"excerpt": "<p>I HEREBY ACKNOWLEDGE THAT I HAVE READ AND UNDERSTOOD...</p>",
"policy": "<p>I understand the purpose of signing this document...</p>..."
},
{
"id": 2,
"type": "safe_diving",
"title": "Safe Diving Practices and Statement of Understanding",
"excerpt": "<p>I HEREBY ACKNOWLEDGE THAT I HAVE READ AND UNDERSTOOD...</p>",
"policy": "<p>Your acceptance of this statement is required...</p>..."
}
]
}
}43–52), 7 of which (43, 44, 46, 48, 49, 50, 51) carry between 4 and 6 sub-questions each.| Field | Type | Nullable | Notes |
|---|---|---|---|
can_submit | boolean | No | true when there is no prior medical log, or the prior one's expire_date is in the past |
last_submission | object | Yes | null when the diver has never submitted a medical form |
last_submission.expire_date | string | Yes | Y-m-d |
last_submission.has_condition | boolean | No | |
last_submission.is_expired | boolean | No | Model accessor, independent of can_submit's own date comparison — both were computed from the same expire_date in every case observed |
disclaimer.id | integer | Yes | null if no medical_disclaimer-type policy exists |
disclaimer.policy | string | Yes | Raw HTML |
questions[].id | integer | No | Used as the key in answers when submitting |
questions[].question | string | No | |
questions[].has_sub_questions | boolean | No | |
questions[].sub_questions | array | No | [] when has_sub_questions is false |
questions[].sub_questions[].id | integer | No | Used as the sub-key in group_answers |
questions[].sub_questions[].question | string | No | |
policies[].id | integer | No | Used as p{id} in the policies submission map |
policies[].type | string | No | Enum value, accept_risk or safe_diving |
policies[].title / .excerpt / .policy | string | No | policy is the full HTML document; excerpt is a short HTML summary |
401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}can_submit and the question ids still pays for the full legal text on every call, the same size concern already documented for the profile QR code.active() on MedicalQuestion filters to currently-active questions only — inactive/retired questions are not returned, so a client cannot resolve an old answers key from a previous submission against this endpoint's current question list.docs/api/diver/medical/GET_questions.mdcurl --location 'https://test.diveraid.com/api/v1/diver/medical/questions' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"can_submit": true,
"last_submission": {
"expire_date": "2019-08-24",
"has_condition": true,
"is_expired": true
},
"disclaimer": {
"id": 0,
"policy": "string"
},
"questions": [
{
"id": 0,
"question": "string",
"has_sub_questions": true,
"sub_questions": [
{
"id": 0,
"question": "string"
}
]
}
],
"policies": [
{
"id": 0,
"type": "string",
"title": "string",
"excerpt": "string",
"policy": "string"
}
]
}
}