Sunday 13 December 2015

NIIT CORE JAVA ASSIGNMENT

NemCare is a leading health care provider in the US and has multispecialty hospitals in seven cities nationwide. In its effort to reach out to people who do not have access to medical facilities, NemCare has decided to operate Out Patient Clinics. Each NemCare clinic will have a qualified medical team that provides consultations to patients visiting the clinic. NemCare has already started work to make two clinics operational within six months. Having realized the need to automate the operations of the clinics, the management of NemCare has hired ProDev, an IT consultancy firm, to design and automate the processes common to each clinic. In the first phase, NemCare has assigned ProDev to create Patient Management System (PMS). 
You have been assigned to lead a team to design and develop PMS. Based on the initial requirement, you have documented that each clinic will initially have the following departments with more departments likely to be added in a phased manner:
       General Medicine
       Cardiology
       Neurology
       Gastroenterology 
Each department will have a team of doctors with different consultancy timings. 
In subsequent meetings, you have gathered the requirements of PMS. Initially, PMS will be a single user application that allows an employee of a clinic to register a new patient visiting the clinic and generate a unique patient ID for the patient. The clinic will provide a printed registration card to the patient. During subsequent visits to the clinic, the patient will be required to provide the registration card for appointments or any other transactions.


The system should allow an employee to create an appointment for a registered patient with a doctor. The system should create a unique appointment file for each patient that will be updated when the patient revisits the clinic. Each appointment file should be stored categorically by the departments of the clinic. For a revisiting patient, the system should allow an employee to view the appointment file of the patient.     Being the team leader at ProDev, you have been assigned the task of analyzing the scenario and lead the team in creating PMS. 



QUESTION 1


You need to analyze the object and information structure in the given scenario and perform the following tasks: 
1.  Identify the primary classes and their relationships. The primary classes should model the departments, doctor, and patient.  

2.  Create the primary classes with their required fields and methods. 




QUESTION 2

Once the primary classes are created, you need to perform the following tasks: 
Create the database tables in Derby and populate the tables with the sample data. The following figure shows the structures of the tables that you need to create.



                                            
                                              The Structure of the Tables

Implement the following classes that use JDBC to interact with the database tables:  
  Implement a class that inserts the registration record of a new patient into the PAITENT table.  
  Implement a class that queries the record of a doctor from the DOCTOR and DEPARTMENT tables based on the department name and doctor's name. 




QUESTION 3

After creating the JDBC classes, you need to implement the appointment management module of the application. To implement this module, you need to perform the following tasks:
1.  Create a class to model the appointment file of the patient. This file contains the details of each appointment that a patient takes in the clinic. 
2.  Create a class that manages the appointments of a patient by implementing the following functions: 

  For an appointment of a new patient, the class should create and serialize an object representing the patient's appointment file to the file system in the following directory structure format: 

NemCare/<department name>/<patient ID>.ser

In the preceding format:
  <Department Name>:  Name of the department of the doctor for which a patient takes an appointment. 
  <patient ID>: The unique patient ID provided to the patient during registration.
  For an appointment of a revisiting patient, the class should search the file system for the appointment file of the patient and add the new appointment details to it. 
  For querying previous appointments of a patient, the class should search the file system for the appointment file of the patient and should output the recorded appointment details. 






QUESTION 4

You need to test and debug the application. You need to use the console to input test data and verify the outputs based on the requirements of the system. You also need to validate that the input data conforms to the data format used in the application. 

4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Replies
    1. This comment has been removed by the author.

      Delete