Design a form for the Patient Satisfaction Survey for a particular hospital having the following fields:
Patient's name
Patient's File number (Issued by the hospital)
Which Unit of the hospital the patient was admitted Select V (Surgery, Medicine, etc.)
Are you satisfied with overall treatment:
Very Satisfi Satisfied Not Satisfied
Are you satisfied with medical facilities in the hospital:
Very Satisfied Satisfied Not Satisfied
Overall Comments
Submit
Reset
Note : you are required judiciously choose the options for Text Box, Combo Box, Radio Button, Check Box, Buttons etc. for the respective fields required in the form
a) Submit button should enter all the fields’ data to the database.
b) Error message should be shown if a text field is left blank.
c) Reset button resets all the fields to the blank.
d) Use JavaScript to validate the fields
To design the Patient Satisfaction Survey form, I'll outline how the form could be structured in HTML with appropriate form controls such as text boxes, combo boxes, radio buttons, and buttons. Additionally, I'll include JavaScript code for validation, error handling, and resetting the form.
Here’s the structure:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Patient Satisfaction Survey</title>
<script>
// JavaScript function to validate the form
function validateForm() {
var name = document.getElementById("name").value;
var fileNumber = document.getElementById("fileNumber").value;
var unit = document.getElementById("unit").value;
var treatmentSatisfaction = document.querySelector('input[name="treatmentSatisfaction"]:checked');
var medicalFacilitiesSatisfaction = document.querySelector('input[name="medicalFacilitiesSatisfaction"]:checked');
if (name == "" || fileNumber == ______ _____ _________ __________ _________ _____ ______.
___ _____ ________ ________ ___ __________ ___ _______ _____ _________ _____.
________ _______ ___ _______ _____ _________ _________ _______ ______.
_________ ________ ______ __________ ______.
_____ ________ ________ _____ ________.
_______ ________ ____ ___ ________ ______ _______ ____ ______ __________ ______ ______.
________ __________ ______ _____ ____ ______.
______ _______ __________ ________ _______.
_______ _________ ________ ___ _____ _____ ___.
___ _____ _______ ____ ________ _____ ___.
_________ _____ ______ ___ _________ ______.
_____ ________ ___ ____ _________ _____ ___.
_____ ________ _______ ____ ________ __________ ________ ______ ____.
_________ _____ _______ __________ ____ _________ ___ ___ ____ ______.
__________ _____ ________ ______ _____.
___ _________ ________ __________ __________ __________ _________.
____ _________ _______ _____ ______ ________ _____ _______ ____.
________ _______ _________ _______ _____ ______ _________ ______ ___ _________ _________ ____.
_______ ____ ________ _______ _________.
___ ___ __________ __________ _______ ___ _________ _______ _______ ______ ___.
_____ _________ ____ _________ ____ __________ ____ ________ _____ ____.
___ _________ ______ ___ _______ _________ _________.
____ ____ _____ _____ _____ _______ _______ ___ _________ ________ ____.
__________ _________ ___ __________ ____ ____ _________ _________ ________ ________.
_____ __________ __________ _______ _________ ______ _________ ______ __________.
_________ __________ __________ ____ ________ ______.
______ ___ ________ ___ __________ ________ ______ ________.
_________ ____ _______ _________ ___ __________ _________ ______ _______ __________ _____.
____ ______ _____ _______ ___.
_________ _____ __________ ______ ______ ______ _____ ______.
__________ _________ ______ _______ _____ _________ ___.
___ ___ ___ _____ _____ __________ ____ ________ ___ ____ _____.
____ _____ _____ _________ __________ ___ ________.
________ ____ ____ __________ __________ ___ ______ _______ __________ _____ __________ _______.
__________ ___ ______ ______ ______ ______ ________ __________.
___ _______ ___ ___ _________ _______ _________ _______ ____ ___ ______ _____.
_________ _______ ___ ___ ________ ________ __________ ___ __________ ______ ____.
____ __________ ____ ________ ____ ______ ____ ______ ________.
_________ ____ __________ _______ ______ ____ _______ ___ ___ ____ ______.
_____ _____ ___ _________ _________ _______ ___ ______ __________ ___ _____.
________ _________ ____ _________ ________ _____ __________ _____ ___ _________ __________ ______.
________ ___ ____ ________ _________ __________ ________ ___.
__________ ___ ___ _____ _______ ______ _______ _________ ___ __________ ____.
___ ___ _______ __________ ______ _____ ________.
___ ____ _______ _____ ______.
_______ ___ _______ ______ ________ _____ __________ ______.
_____ ______ ________ __________ ______ __________ ________ ________ ___ ______ _________.
____ __________ ___ _________ _____ ________.
__________ ___ ____ _______ __________ __________ __________ _____.
___ ________ ____ ____ ________ __________.
_______ _________ _________ __________ _______ _________ ____ ___ ______.
____ __________ ________ _________ __________ ___ ____ ________ _________ _______ ___ __________.
_____ _________ _________ ___ ___ _______.
___ ________ ______ __________ ________ ___ _________ _____ _________ ____ ___ _________.
___ _____ _________ ____ ________ _______ ____ __________.
_______ _______ ________ _____ _____ ______ _______ __________ ________.
___ __________ _______ ___ __________ _______ __________ __________ ____ ____ __________.
_______ ________ ______ ______ _________ _______.
_____ _____ ___ _______ _____ ______ ____.
___ ______ ____ ____ _______ __________ ___ __________ ________.
_______ ________ __________ _______ ____ ____ ___ _______ ______ _____.
__________ ___ ________ ______ _________ ________ ____ ________.
________ _____ ___ __________ ______ ___ ________ ________.
_________ ___ ____ _____ ________ _________ _____ _________ ________ _____ ___ __________.
________ ____ _______ _____ _____ _________ ____ __________ ____ ____ _____.
________ ______ _________ ________ ______ ________ ______.
_____ _____ ____ _________ ______ __________ ________.
_____ ____ _____ ___ _________ ________ __________ ______ _______ ______.
_____ _______ _________ ____ ______ _______ ___ ______ _______ ___ ___ ___.
______ _______ _____ ___ _____ ____ _________ _________.
_______ _______ __________ _________ _____ _________.
_____ _____ ______ __________ ______ __________ _________.
_________ _____ __________ ____ ______ _________ _______ _______.
________ __________ ________ __________ ______ _________ __________ ____.
_________ _____ _________ ______ _______ _____ _________ ________ ______ _____.
________ _________ ____ __________ _______ ___ ________ _________ ____ _________.
________ __________ ____ _____ ___ ________ ______.
______ ______ _______ _____ ________ __________.
_________ ____ ___ ________ __________ _______ _________ _______ _________ ___.
_____ _______ _____ ______ __________ _____ ___ _______.
___ ___ ___ _____ _____ _______.
_______ _____ _________ _________ ______ __________ ______.
Get Full Answer on WhatsApp