Encerrado

Write some Software

Hospital Billing

Introduction

A hospital maintains records on doctor's and patients in order to provide effective billing.

Specification of behavior

The following information is tracked.

For each patient:

Patient id: int

First name: string

Last name: string

Date of admission : string (in the form mm/dd/yyyy)

Date of discharge: string (in the form mm/dd/yyyy or --/--/---- if not discharged)

Ailment: string (see below for a list of ailments)

For each doctor:

Doctor id: int

First name: string

Last name: string

Specialty: string

Treatmemt rate: float (amount charged per vist)

Billing info

Date of treatment: string (in the form mm/dd/yyyy)

Patient id: int

Doctor id: int

There are 3 input files:

[url removed, login to view] -- list of doctors at the hospital. Each record occupies a separate line in the following format:

doctor-id first-name last-name rate specialty

[url removed, login to view] -- list of patients served by the hospital Each record occupies a separate line in the following format:

patient-id first-name last-name admission discharge ailment

[url removed, login to view] -- list of services to patients supplied by the hospital Each record occupies a separate line in the following format:

date-of-treatment patient-id doctor-id

Output from the system:

The bill for each discharged patient. Each bill has the following format:

Patient: Name-of-patient Id: Id-of-patient Ailment: Ailment-of-patient

Date of Treatment Treatment Doctor Charge

...

Total total-charge

Notes:

The output should be aligned in columns. The treatment is given by the specialty of the physician.

Only discharged patients should be issued aa bill.

Example input and output

[url removed, login to view]

14 Mr. Spock 40.00 Space sickness

15 Captain Kirk 52.00 Decision paralysis

17 Engineer Scotty 38.00 Transportation sickness

In this data the first names are titles. That's ok.

[url removed, login to view]

13 John Cramer 10/20/2014 10/22/2014 Brain freeze

19 Jill Cramer 10/21/2014 10/24/2014 Frozen fingers

18 Barry Barnstormer 09/20/2014 --/--/---- Diving accident

[url removed, login to view]

10/20/2014 13 15

10/20/2014 13 17

10/21/2014 13 14

10/22/2014 13 14

09/20/2014 18 15

09/25/2014 18 15

10/22/2014 19 17

Expected output

Only two of the three patients have been discharged so there are only two bills to print:

Patient: John Cramer Id: 13 Ailment: Brain freeze

Date of Treatment Treatment Doctor Charge

10/20/2014 Decision paralysis Captain Kirk 52.00

10/20/2014 Transporation sickness Engineer Scotty 38.00

10/21/2014 Space sickness Mr. Spock 40.00

10/21/2014 Space sickness Mr. Spock 40.00

Total 170.00

The second bill:

Patient: Jill Cramer Id: 13 Ailment: Brain freeze

Date of Treatment Treatment Doctor Charge

10/22/2014 Transporation sickness Engineer Scotty 38.00

Total 38.00

Make reasonable assumptions about the format:

The total will not exceed $999,999.99

The doctor specialty will be <= 30 characters

First and last name will be <=15 characters

The ailment will be <= 30 characters

Processing

There are three stages to the is project:

Identify the objects and define the needed classes. It should be clear that the classes will have to be:

Class Attributes

Person Id, First name, Last name

Doctor Id, First name, Last name, Specialty

Patient Id, First name, Last name, Admission date, Discharge date, Ailment

Billing Date of treatment, Patient id, Doctor id

Construct the classes using inheritance

Person Billing

^

|

|

.--------------------.

| |

Doctor Patient

Create sample data file and expected output

Define the operations for each class.

First define getters and setters for each attribute

Add a bool read(istream &fin) operation for each class

Add a write(ostream &fout) operation for each class

Test each operation of each class.

Produce the main program.

Define a vector to hold Patient objects. Write a loop to read Patient objects and store them in your vector.

Define a vector to hold Doctor objects. Write a loop to read Doctor objects and store them in your vector.

Define a vector to hold Billing objects. Write a loop to read patient objects and store them in your vector.

For debugging purposes, write loops for printing all three of your vectors.

Process the vector of Billings for each patient that has been discharged. An algorithm for this would be:

for each patient p in the patients vector

if p has been discharged

print a bill for p

This inner-most step (print a bill for p) should be written as a subroutine, which will be something like:

print a bill for (p) { // p is a patient

total = 0

print the header information for the bill

for each entry b in the vector of billings

if b's person-id matches p's person-id

doctor = search for b's id in the vector of doctors

print the billing line (date, treatment, doctor, charge)

add charge to total

print the total line

}

Clearly to do the main program properly it will be to your advantage to write the following subroutines:

printABill(...) -- this is outlined above

searchForDoctor(...) -- this is outlined above

searchFoPatient(...) -- this is outlined above

Test your program thoroughly. Consider including in your input:

Patients which have been discharged with no billing record.

Patients which have been discharged with a single billing record.

Patients which have been discharged with multiple billing records.

Patients which have not been discharged.

Sample files

Starting files for this project include:

[url removed, login to view] A sample class for recording information about a person

[url removed, login to view] A sample class for a patient record that inherits from a person

[url removed, login to view] A sample class for a doctor record that inherits from a person

[url removed, login to view] A sample starting point for the main program

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Desenvolvimento de Software

Ver mais: write names, vector vector string, vector vector int, vector string, vector int int, vector int, transportation engineer, transportation algorithm example, string vector, string search algorithm c, string search algorithm, string processing in c, string processing algorithm, some search string, Software Test Engineer, software engineer search, search for a c++ software engineer, search algorithm example, sample data entry test, program data vector, patient point, patient data entry software, on line data entry test, introduction of algorithm, define system architecture

Acerca do Empregador:
( 0 comentários ) United States

ID do Projeto: #6780264

19 freelancers estão ofertando em média $640 para este trabalho

hits

We are a team of designers and developers with expertise and experience in Web designing, HTML, CSS, PHP, AJAX, JQuery, XML, Wordpress, Bootstrap, CodeIgniter and MySql. We have developed many custom sites and applicat Mais

$263 USD in 3 dias
(920 Comentários)
8.9
kchg

Hi, We have designed and built websites for various types of businesses very successfully. now my ranking on freelancer is 8th. We work with all of our clients individually to easily synchronize and to keep track Mais

$2061 USD in 30 dias
(225 Comentários)
8.5
nuked24

Hi, We are expert in designing as well in development. We will provide you quality of work. We will provide you our [url removed, login to view] want long term relationship with you. Please choose us and provide a chance to work wi Mais

$2105 USD in 45 dias
(105 Comentários)
8.0
buraqtech

1. Vollks Australian Online Store In these days we are complete re-designing and reimplementing an online store for our Australian client in which we are using X-Cart latest stable release to implement his all require Mais

$247 USD in 7 dias
(90 Comentários)
8.0
rinsadsl

A proposal has not yet been provided

$421 USD in 10 dias
(443 Comentários)
7.6
srinichal

I am an expert in delivering custom software and willing to discuss further about the project needs .

$357 USD in 5 dias
(128 Comentários)
7.3
shihan033010

Hi I am very much interested in your project. Please allow me to work on the project. Thanks Shihan

$333 USD in 10 dias
(253 Comentários)
6.5
rexzetsolutions

Have a look to my reviews i am a php expert and if you need such web based software than i will not take more than 7 days to get it done, have a look to my reviews, i always provide cheap, fast and best services

$300 USD in 7 dias
(89 Comentários)
5.7
rana100

Hi, I am very much interested to work in your project. Pls look at some portfolio E-commerce [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] http:/ Mais

$555 USD in 10 dias
(18 Comentários)
4.8
phamtech211

Dear Sir/ Madam, My name is Henry from PHAMTECH Co. My team is fascinated in this project as it is exactly within our scope of expertise: We are an 8-year experienced web/ app design and production group. We are Mais

$1888 USD in 30 dias
(8 Comentários)
4.5
sunnysmile911

Hi. Thanks for your careful description and examples. Very very clear what you need. I am now ready to work with you. I have much experiences in building websites and high skills for HTML/JS/CSS, JQuery, [url removed, login to view], W Mais

$1052 USD in 10 dias
(2 Comentários)
3.0
webdev212

Sir i am ready to start work immediatelly on your Project , i will provide you quality result and complete your all requirements . Please give me a chance to serve [url removed, login to view]

$133 USD in 3 dias
(3 Comentários)
2.9
uneekin

hi sir, i read your project description carefully, and i am ready to start work with you, i am honest to work and complete work professionally, i am available 24 hrs, any time u can catch me, i am expert in "Gr Mais

$147 USD in 2 dias
(2 Comentários)
1.6
tandonshailendra

Understand you need Access 2010 based offline solution. About Myself Good Day!. Let me introduce myself for building your confidence in me. Worked at Sr. position with experience of marketing, Service, Producti Mais

$500 USD in 10 dias
(1 Comentário)
1.4
applnetcode1221

Dear Sir. Thank you for your post. I am Java/Web expert have many experiences of 10 years old. I have professional experiences of developing the website building/customizing. Here are 2 websites of my experienc Mais

$166 USD in 5 dias
(3 Comentários)
1.3
peterham1227

A proposal has not yet been provided

$155 USD in 3 dias
(2 Comentários)
1.2
inetacad

Hello, I'm very happy to receive the description of your project. I have experience of code development by PHP, MYSQL. I have a team of competent developers behind who are full of skills for a variety of web developm Mais

$111 USD in 3 dias
(2 Comentários)
1.0
merchandize

Dear Sir/ Mam;m We are FutureTech Solution Pvt Ltd Company. We are having Hospital management Systems as our Core product but your requirement is limited that why we can provide you your part of project. we ar Mais

$200 USD in 15 dias
(0 Comentários)
0.0
davidrudd

I can set up your CUSTOM Hospital Billing database application on a production Transaction Editor (TEd) cloud server within a week for just $250. Users can Test Drive the application online for two months. During the Mais

$277 USD in 3 dias
(0 Comentários)
0.0
leduc91

Hi there, Look like you need help for your assignment. I was teaching C++ before. For this type of assignment, I know by heart expectation from lecturers. Hope we can proceed further. Regards, Duc Le

$77 USD in 2 dias
(0 Comentários)
0.0