473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Need Help (Hospital Database in Java)

Hay Friends...
Here I started a new and interested thread. I hope you also enjoy it. I got a task to creat a Hospital Database in Java. But I don´t have any good clues abouts it. So I also try my best to do it well. But here I posted it for friends too. If you have any perfect idea or correct code about it, so Please send it. I shall wait for your nice comments and help.

Here I also explain about my task..........Hospital Database

Hay friends....I don´t have any good idea about interesting pictures here because I also want to interest some dialogue box pictures.

Objects of Programming
Course Project

Scenario

You are working for a bio-informatics company called unCode GeneTicks. Your project manager has a small hospital database storing information about patients and how severe they are experiencing skin and circulation problems on the arms, legs and head on a scale of 0..3(See addendum Patients.txt) This database also has information about candidate genes responsible for the illnesses. Patients are labelled as having one of gene 1, 2 or 3 (g1, g2, g3) in the hospital database. As your first task for unCode GeneTicks you have been asked to write an analyser program to analyse the data, and to write a report on your findings.

Program Requirements

Program should:
• Produce histogram plots showing patient counts in six divisions, each gene group being separately considered for skin and circulation problem. See the example dialogue in the addenda.

• Allow the user the choice of threshold level (>=0, >=1, >=2, >=3) from a combo box when counting patients e.g. count is registered if the threshold value is equalled or higher for every skin measure (or every circulation measure)

• Define a Patient class in which all data are kept private and readable only through ‘get’ methods. This class must:
o Implement the provided HospitalPatient interface
o Define a toString() method
o Define an equals() method

• Define a Patients class which has a LinkedList of Patients along with necessary methods to create that list and retrieve relevant information from it.

• Define a PatientPanel class which inherits from the JPanel class, and contains the paintComponent method for drawing the histograms.
o Frames with this panel should be able to be closed by the end user without quitting the application.

• Define a ControlPanel class which inherits from the JPanel class. This is the main graphical user interface of the program. It should include the following components:
o A label for instructions to the end user
o A combo box for selecting the threshold level
o A pair of radio buttons for selecting whether head data is to be included
o A button to create a new window with the chosen histogram

• Defina a PatientAnaliser class which is the start point of the program. This class should:
o Create an object of Patients
o Have that object open and read the text file Patients.txt
o If that was successful it should display the main GUI of the program
o If the file was not found it should show a dialog box stating this information
o If there was any problems with reading the file it should show a dialog box stating this information.


Addenda
HospitalPatient.java

public interface HospitalPatient
{
public String getGeneID();
public int getArmsSkin();
public int getArmsCirc();
public int getLegsSkin();
public int getLegsCirc();
public int getHeadSkin();
public int getHeadCirc();
}



Patients.txt

<geneID><arms skin><arms circ><legs skin><legs circ><head skin><head circ>

g1 1 0 1 0 0 0
g1 0 1 0 1 0 1
g1 0 1 0 0 1 1
g1 0 0 0 1 1 1
g1 0 0 1 1 1 1
g1 0 1 1 1 1 1
g1 1 0 1 1 1 1
g1 1 1 1 0 0 0
g1 1 1 0 1 0 0
g1 1 1 1 0 0 0
g1 1 1 1 1 0 0
g1 0 1 1 1 1 0
g1 1 0 1 0 1 0
g1 0 1 0 1 0 1
g2 1 2 1 2 1 1
g2 1 2 1 2 1 2
g2 1 1 1 1 2 2
g2 1 1 1 2 2 2
g2 1 1 2 2 2 2
g2 1 2 2 2 2 2
g2 2 2 2 2 2 2
g2 2 1 1 1 1 1
g2 2 2 1 1 1 1
g2 2 2 2 1 1 1
g2 2 2 2 2 2 1
g2 2 2 2 1 2 2
g2 1 2 1 2 1 2
g2 2 1 2 1 2 1
g3 2 3 3 3 1 1
g3 2 2 2 2 2 3
g3 2 3 2 3 2 2
g3 2 3 2 3 3 2
g3 2 2 2 3 3 3
g3 3 3 2 3 3 2
g3 2 3 3 3 3 3
g3 3 3 2 3 2 2
g3 3 3 2 3 2 2
g3 3 3 2 3 2 2
g3 3 3 2 3 2 2
g3 2 3 3 3 3 2
g3 2 3 3 3 3 2
g3 2 3 3 3 3 2
Apr 1 '07 #1
5 2603
Boy, that question sounds pretty "heavy". Check out this post about the type of question you have. Perhaps if you focused on a smaller part of this problem, and a specific issue you have it, thescripts could help out.
Apr 1 '07 #2
horace1
1,510 Expert 1GB
build the program component by component,, e.g.
1. design, implement and test a Patient class, when it is working
2. design, implement a Patients class
etc etc

in this way you build up to a complete system - by thorough testing as you go along the components should work correctly when they are put together.
Apr 1 '07 #3
Thanks rickumali and horace1 bro.............Thanks alot.......But today i started my practice about my this Hospital Database since from morning..........and Thanks God i succeeded alot but the problem which still have a headache for me is that, that how i make a histogram by reading data from text file.............

I also succeeded in reading data from text file but making is a histogram according to the data in the text file is much difficult..............

If someone have any idea about this stupid histogram............so I shall wait for ur kind replies............
Apr 1 '07 #4
r035198x
13,262 8TB
Thanks rickumali and horace1 bro.............Thanks alot.......But today i started my practice about my this Hospital Database since from morning..........and Thanks God i succeeded alot but the problem which still have a headache for me is that, that how i make a histogram by reading data from text file.............

I also succeeded in reading data from text file but making is a histogram according to the data in the text file is much difficult..............

If someone have any idea about this stupid histogram............so I shall wait for ur kind replies............
As you would do it manually on a piece of paper. Once you get the data nicely scaled you can use swing to draw the histogram or make some representation of it on the console
Apr 2 '07 #5
tkyass
1
hello
i have a project now about doing a db in java for a hospital
so plz if u completed ur project successfuly plz can u send it 2 me it will really be alot of help for me
my email is <removed>
thanx alot
Dec 18 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gary Stollman | last post by:
My Father is a Clone//ETs plotting to overthrow the human race! On August 19, 1987 a gun-carrying Gary Stollman entered the studio of Los Angeles's KNBC television, crashing consumer reporter...
5
by: mr.iali | last post by:
Hi Everyone I would like to get into software developent using a programming language like c++, java or pl/sql for oracle. I have no idea where to start from. Which language is there more...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
3
by: jej1216 | last post by:
I have a form in which a select field lists 5 items pus the option of "Other." I want a text field to be hidden unless the select field value is "Other." The form is HTML, but I am assuming that I...
0
by: ankush143 | last post by:
hiii... i want to make a database for the hospital management in oracle-SQL so please help me can someone give me queries related to this.......
6
by: zaina | last post by:
hi everybody i am nwebie in this forum but i think it is useful for me and the member are helpful my project is about connecting client with the server to start exchanging messages between...
2
by: registry | last post by:
<%@Language="VBSCRIPT" CODEPAGE="1252"%> <html> <head> <title>Registry Network Hospital Detail</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.