Create a simplified web-based intranet application

Assignment Help PHP Web Programming
Reference no: EM132312096

Web Application Assignment Details

B(i) - Background information and description

This assignment is an extension of the work you completed in Practical Set 1 for Glebe Family Medical Practice.

In this assignment you will create a simplified web-based Intranet application to support the work of the reception and medical staff in Glebe Family Medical Practice. This Intranet application will be referred to as the Patient Record Application (or PRA). PRA will be used by reception staff to register new patients in the practice, and medical staff (doctors and nurses) to maintain medical history for patients. This is a very simplified system and leaves out many aspects that would be required in a real system for a general practice. Read the Functional Requirements section (section B(ii) of this document) to determine what is specifically required for PRA. The MySQL database that supports the functionality of PRA is named generalPractice. The generalPractice database is described in section B(iii) of this document. You will need to design and create the PHP web pages for this assignment.

B(ii) - Functional Requirements
PRA must
a) be coded using HTML 5, CSS, JavaScript, and PHP as necessary. Note: all four files described below must be PHP files to achieve the server-side functionality.
b) provide easy-to-use navigation for the user as described in the following page descriptions.
c) provide the following page content and functionality for each page as described.

Employee login page (login.php).
Page purpose/description:
The purpose of this page is to provide a login facility for employees of Glebe Family Medical Practice that need to use PRA. No other pages within PRA will be accessible unless the employee has successfully logged in first (see Implementation Note below).

Page content:
The page will have the following content:

1. the following text:

Glebe Family Medical Practice Patient Record Application

Note: This Intranet Application is for the use of employees of Glebe Family Medical Practice only. Patient information accessed via this system is private and confidential. Staff logging into this system are reminded of their legal responsibility to maintain patient confidentiality at all times. Information stored within this system may not be shared with external entities without the consent of the treating doctor. By logging into this system, I agree to be bound by this requirement.

2. An HTML login form which contains
• a text box to capture the employee ID
• a password box to capture the employee's password
• a submit button

3. Appropriate design and instructions for the staff member

4. The provision for displaying error messages as detailed below

Page functionality:
The login page will

1. need to use postback (submit to itself),

2. authenticate the employee credentials (employee id and Password) as supplied by the employee in the login form against the records in the staff table of the generalPractice database

3. allow or deny access to the subsequent pages of PRA depending on the result of authentication as follows:
a. Successful login attempt: Successful authentication should automatically redirect the employee to the Find Patient (findpatient.php) page.
b. Failed login attempt: Unsuccessful authentication should automatically redirect to the login page so that the employee may try to login again. An appropriate error message must be displayed to the employee if the login attempt fails or if the employee tries to access any of the protected pages of PRA. The message display must be implemented using appropriate PHP server-side code; it is not to be a JavaScript alert (or any other browser side component). The message should be displayed in an appropriate location on the login page in a suitable colour. The message must appropriately indicate the problem that caused it to occur.

Employee Login Credentials:
The passwords that are stored in the staff table of the generalPractice database are encrypted using the sha256 algorithm. A list of employee ids and (decrypted) passwords can be found in the Employee Credentials document.

Site Navigation:
The login page will have no direct hypertext links to any other pages of the system. Access to PRA is only possible after successful login.

Find Patient Page (findpatient.php).

Page purpose/description:
This page will act as a search page to find patient records. The logged-in employee will be able to enter key information about a patient in a search form to locate the patient's record within PRA. The employee will then be able to choose a specific patient record to view from the search results.

Page content:
The page will have the following content:

1. Navigation to the other pages of PRA as appropriate including a Log Off link (this link must run the logoff.php page).

2. current server date

3. logged-in employee name

4. An HTML form (the search form) which contains
• a text box for the Patient Surname (mandatory field)
• a text box for the Patient First name
• a text box for the Patient Suburb
• a text box for the Patient Phone number
• a submit button
As indicated above the only field that is mandatory in the search form is the Patient Surname. That is, a search may be performed on the basis of the surname of the patient only. However, this may result in many matches in the database, so any of the other fields may also be entered by the employee to reduce the number of matches to assist the employee to find the patient record more quickly.

5. A search results (Patient List) section that lists patient record(s) that match details from the form.

6. Appropriate design and instructions for the staff member

Page functionality:
The Find Patient page will
1. validate that a Patient surname has been entered in the search form (using client-side JavaScript)
2. use postback (submit to itself) for the search form,

3. search the generalPractice database for patient records that match details provided by the employee in the search form. The search may find zero, one or many matches depending upon the search terms entered by the employee. The output from the search depends on the number of matches found:
a. One or more records found: generate a summary list of matching patient records underneath the search form. The employee will be able to choose the record they want to view more detail about from this list (see point 4 below). The summary list provides the following details:
i. Surname
ii. First name
iii. Full address
iv. Phone number
v. Email address
b. Zero records found: display an appropriate message underneath the search form instead of a list of results, and provide a link to the Add New Patient page (addpatient.php). This link must only be displayed if no matches are found by the search.
4. enable the employee to choose a specific patient record for viewing from the search results list. To do this, the surname and first name of each patient in the summary list is to be a hypertext link. When clicked, the hypertext link sends the patient_id of the patient to the Patient Record (patientrecord.php) page. The Patient Record page will then display the full details of the chosen patient record (details provided below).

General Page Notes:
• The design of this page is open to your creativity but it must appropriately display all required information in a clearly readable, well organised and usable format.
• This page must only be accessible by a logged-in user. If a user tries to access this page and they are not logged in they must be automatically redirected to the logoff.php page (which redirects to the login page) and then display an appropriate error message on the login page indicating that the error has occurred.

Patient Record page (patientrecord.php).
Page purpose/description:
The purpose of this page is to display to the user the content of the chosen patient record (the choice occurs on the Find Patient page as described above).

Page content:
The page will have the following content:
1. Navigation to the other pages of the system as appropriate including a Log Off link (this link must run the logoff.php page).
2. current server date
3. logged-in employee name
4. for the chosen patient:
a. Patient Personal information: Surname, First name, Date of Birth, Address, email, phone number.
b. Past Consultations: list of each past consultation date and the diagnosis for the patient. Each record in the list will have a hypertext link to the Show Details page (details.php)
c. Consultation: This will be a form (consultation form) with the following fields:
i. Consultation date (automatically filled in with the server date)
ii. Consultation Notes
iii. Diagnosis
iv. Treatment
v. A submit button
5. Appropriate design and instructions for the staff member

Page functionality:

The Patient Record page will

1. obtain data from the generalPractice database to display the content as indicated above in points 4(a) to 4(b) for the chosen patient record. This information cannot be modified by the user. It is likely that separate sql queries will be required to obtain data from the database for 4(a) and 4(b). That is, you should not try to obtain the data using one sql query.

2. need to use postback (submit to itself) for the consultation form,

3. perform server-side input validation as follows for the consultation form:
i. Consultation date
• must have a value
• cleaned to avoid possible sql injection
ii. Consultation Notes
• must have a value,
• cleaned to avoid possible sql injection,
• may only contain alphanumeric ["0" to "9", "a" to "z", "A" to "Z"] characters, spaces [" "], hyphens ["-"], commas [","], period ["."] and exclamation marks ["!"].
Note: Error messages as a result of the above server-side validation must be displayed inline (ie, no alert boxes are to be used). Additionally, the database should not be updated if there is an error with the user input
iii. Diagnosis - cleaned to avoid possible sql injection
iv. Treatment - cleaned to avoid possible sql injection

Note: there is no client-side validation on this form

4. When the consultation form data passes the server-side validation, the details entered in the form will need to be inserted into the consultation table of the generalPractice database.

General Page Notes:
• The design of this page is open to your creativity but it must appropriately display all required information in a clearly readable, well organised and usable format.

• This page must only be accessible by a logged-in user. If a user tries to access this page and they are not logged in they must be automatically redirected to the logoff.php page (which redirects to the login page) and then display an appropriate error message on the login page indicating that the error has occurred.

Logoff page (logoff.php).
The purpose of this page is to log the employee off the system and automatically return them to the login page. The page must not display anything to the user. The page should remove all session variables and end the session (if sessions were used). It should then redirect to the login page. This page can be accessed from any of the pages as detailed above.

Show Details page (details.php).
This page does not need to exist in this version of PRA. In a more complete version of PRA the purpose of this page would be to display to the user the full details of the chosen record from the Patient Record Page. The content displayed on this page may be a record from the patient's Medical History, Medication, or Consultation information etc.

Add New Patient page (addPatient.php).
This page does not need to exist in this version of PRA. In a more complete version of PRA the page would utilise the New Patient form that you created in Prac Set 1 to add a new patient into the database.

B(iii) - Database Description
To connect to the generalPractice database use the following in your php script

$dbConn = new mysqli("localhost", "TWA_student", "TWA_2019_Autumn", "generalPractice"); if($dbConn->connect_error) {
die("Failed to connect to database " . $dbConn->connect_error); }

Attachment:- Technologies for Web Applications.rar

Verified Expert

In this assignment,we have designed webpages to retrieve data from the database.The database we have used is MySQL in which we have arranged the data properly.The web page designed also have the feature of login and logoff for the users.

Reference no: EM132312096

Questions Cloud

Explain advantages student linguistic background might offer : Post an explanation of at least two potential challenges this student might face. Further explain the advantages this student's linguistic background might.
Describe the best and fastest way : Describe the best and fastest way to write final thesis in management?
Evaluation of a subordinate in the break room : Your peer (a first line supervisor at a major retail store) is conducting a performance evaluation of a subordinate in the break room, where numerous
How to read ms-drg reports : How to read MS-DRG Reports and compare to Quartly reports that show how one hospital compares to another?
Create a simplified web-based intranet application : 300582 - Technologies for Web Applications - Western Sydney University - create a simplified web-based Intranet application
Success of an international expansion : What factors help managers determine which type of distance is most likely to affect the success of an international expansion?
How diversity shapes and influences developmental processes : For this Discussion, you will explore how diversity shapes and influences cognitive and social-emotional developmental processes.
Identify an issue of current relevance to the discipline : SRR720– CONSTRUCTION RESEARCH FRONTIERS Deakin University Australia- Prepare a research design that outlines the problem they have identified.
Implementation of structural change : How and why do wicked problems occur during the implementation of structural change?

Reviews

len2312096

5/26/2019 11:36:15 PM

As part of the submission, you will be prompted for your TWA website username and password. You will then be asked to read the WSU policy on plagiarism and certify that work submitted by you is your own work. This action will be logged in a database for future reference and is deemed to be evidence that you claim that your work is original. Next, you will need to select from a drop down list the Assessment you are submitting, eg, Assignment 1, and click the ”Submit Assessment” button. The web page will then display a listing of the files you have submitted along with a receipt number. You should print this page for proof of submission.

len2312096

5/26/2019 11:36:01 PM

d) Design the web pages with ease of navigation and operation, attractiveness and accessibility in mind. Images other than those provided in the assignment zip file (if any) may also be used in the assignment. e) All assignment files are to be uploaded to the Assignment1 folder of your TWA web site prior to the due date and time. You may create subfolders within this folder if you wish. f) The submission script must then be used to submit your work once all work is on your TWA website. Failure to use this script will result in a non-submission. See section D of this document for submission details. g) All styling and page layout must be achieved using CSS.

len2312096

5/26/2019 11:35:48 PM

a) ALL instructions given in this document MUST be followed in order to be eligible for full marks for the Web Application Assignment. This document has four (4) pages. b) This assignment is NOT a group assignment; collusion, plagiarism, cheating of any kind is not acceptable. As part of your submission you MUST certify that all work submitted is your own. If you cannot honestly certify that the work is your own then do not submit the assignment. Breaches of the Misconduct Rule will be dealt with according to the university policy (see the learning guide for more information).

Write a Review

PHP Web Programming Questions & Answers

  Random integral numbers based on normal distribution

Prepare a system to generate random integral numbers based on normal distribution. Study Data Generator's structure and extend number generation type to activate normal distribution.

  Shopping cart program for web applications class

Shopping Cart program for web applications class. Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for all items.

  Create a web site for an apple farm

Create a web site for an apple farm. Create an HTML5 form allowing visitors to create an account with the site. Account details are to be stored in your MySQL database. Information should be stored in a secure way.

  Develop a dynamic website open university

Develop a dynamic website Open University

  Sample website project

This website consists of three sections: a narrative, a storyboard, and a business Website.

  Online banking application

Designing and developing a web applications The company you are working has secured a contract with a local banking group to develop an ONLINE BANKING APPLICATION using PHP and MySQL.

  Design a dynamic database

Design a dynamic database using Mangodb, html , and php.

  Show the accessibility and usability of website

The webpage must have several menus about country Azerbaijan such as "About Azerbaijan" "History" "Geography" "Landscape" and "Accessibility" menu.

  Implement a web application

Implement a web application called CS320Starter, which is similar to the crowd funding platform Kickstarter where people raise funds for their projects.

  Prepare an ajax enabled web form

Prepare an AJAX enabled web form utilising a ListView control that will allow logged-in staff to list, edit, delete, insert magazine details for magazines from a selected magazine category.

  Create a very simple order system as a web application

Create a very simple Order System as a web application.

  Which of the following jsp expressions is valid

A JSP expression can contain any Java expression that evaluates to a String object, Java object, primitive type, primitive type or Java object

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd