|
GET Call for Questionnaire Record
The simplified Json field will have the following fields from the existing questionnaire record:
- name: Name of the questionnaire
- keyword: Keyword of the questionnaire (e.g. Inspection)
- sections: Array of sections with each section having
- number: Section number
- name: Section name
- questions: Array of questions with each question having
- question: The question text
- answer: Answer questionnaire record
- result: Result from the questionnaire record
- answerOptions: Containing an items array containing available result and answer combinations for this question.
- allowNA: If this question or section allows being marked as NA(Not Applicable). Can have value ALLOW or DISALLOW.
- allowAttachments: If this question allows attachments or not. Can have value ALLOW or DISALLOW.
- attachments: Array of attachment unique ids if present
- comments: If any
Example Below
{
"name": "7 Point Fire Check",
"keyword": "Inspection",
"sections": [
{
"number": "",
"allowNA": "DISALLOW",
"name": "Approval Documents",
"questions": [
{
"result": "Checked",
"number": "1",
"allowNA": "DISALLOW",
"attachments": [
"ABqg4fRPtkH2kQjef_T7buiR"
],
"question": "Can all fire exits be opened immediately and easily?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
},
{
"result": "Checked",
"number": "2",
"allowNA": "DISALLOW",
"question": "Is both the interior and the exterior of fire doors clear of obstructions?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
},
{
"result": "Checked",
"number": "3",
"allowNA": "DISALLOW",
"question": "Are escape routes clear?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
},
{
"result": "Checked",
"number": "4",
"allowNA": "DISALLOW",
"question": "Are the emergency lighting fixtures and exit signs in good condition and undamaged?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
},
{
"result": "Checked",
"number": "5",
"allowNA": "DISALLOW",
"question": "Are all fire extinguishers in their correct position and mounted properly?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
},
{
"result": "Checked",
"number": "6",
"allowNA": "DISALLOW",
"question": "Are all fire extinguishers clearly visible and unobstructed?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
},
{
"result": "Checked",
"number": "7",
"allowNA": "DISALLOW",
"question": "Is emergency lighting and sign lighting working correctly?",
"answer": 1,
"type": "checkbox",
"notApplicable": false,
"allowAttachments": "ALLOW",
"answerOptions": {
"items": [
{
"result": "Checked",
"answer": 1
},
{
"result": "Unchecked",
"answer": 0
}
]
}
}
],
"notApplicable": false
}
]
}
|