You are on page 1of 15

HOSPITAL BLLING SYSTEM

A Course Project Report in the course

Problem Solving with Programming

Computer Science& Engineering

By

Roll No:18K41A05A0 KARTHEEK

Roll No:18K41A05B5 KARTHIKEYAN

Roll No:18K41A05B8 RAHUL REDDY

Roll No:18K41A05 SRIHARSHA

Under the Guidance of

Dr. VIJAYA PRAKASH

Submitted to March, 2019

1|Page
DSC-PROJECT

HOSPITAL BILLING SYSTEM

SECTION-B(BATCH-)

CONTENTS Pg.no
1. ABSTRACT 3-4

5-6
2. PROJECT REQUIRMENTS

7-8
3. PROJECT DOCUMENTATION

4. CODE 9-16

5. OUTPUTS 17-19

HOSPITAL BILLING SYSTEM

2|Page
ABSTRACT:

This project is about “HOSPITAL BILLING SYSTEM ” of a


supermarket, it’s a automatic receipt generated software
with every essential details.
This is based on a concept to generate all the details of
some purchasing details .
This includes name of the Item Name,Company Name (by
which it is manufactured) ,MRP,Net weight ,units & total
bill.
For an individual item the following details we provide are:
 Item Name
 Company Name
 MRP
 Net Weight & Units ………
The item details are printed from the system.
In order to make it simple, we have developed a code using
c programming language.
Structures and switch cases are used in this code.

This code includes:

 ENTER
 ADD CUSTOMER
 BILL
 DISPLAY BILL
3|Page
This code provides simplest and the best way to print

PROJECT REQUIREMENTS:

 SOFTWARE : DEV C++

Dev-C++ is a free full-featured integrated development


environment distributed under the GNU General Public
License for programming in C and C++. It is written in

4|Page
Delphi. It is bundled with, and uses, the MinGW or TDM-
GCC 64bit port of the GCC as its compiler.

Written in: Object Pascal


Developer(s): Bloodshed Software until 2005, Orwell
(Johan Mes) since 2011
License: GNU General Public License
Stable release: 5.11 / April 27, 2015; 3 years ago
Operating system: Microsoft Windows, Linux (alpha
only)

5|Page
Project Documentation:

In this code we have used switch cases and structures:


Structures:
o It combines datatypes of different kinds.
o Structures are used to represent a record

In CASE 1:
We are reading the details of the items (i.e, ITEM NAME,
COMPANY NAME, MRP, NET WEIGHT, UNITS)Of a store.

In CASE 2:
We are adding the details of customer (i.e, customer name,
customer mobile no, customer address).

In CASE 3:
We are billing the items using customer id i.e, “strcmpr”

In case 4:
We are displaying the bill.

6|Page
PRINTING THE DETAILS OF PATIENT
FEE IN
HOSPITAL
Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node
{
int type,age,room;
char name[50],no[50];
int time,stime;
int bills,dd,mm,yy,etime,mmm,yyy,ddd,d=1;
int tot,j;
struct node *link;
char
father_name[10],blood_group[10],disease[20];
int roomno,registration_no,days,d1,m1,y1;
float room_charges,test_fees,total;

};
typedef struct node node1;
node1 *f=NULL,*s=NULL;
int k=1,z;
char x[20];
7|Page
node1 *enter()
{
node1 *t;
t=(node1*)malloc(sizeof(node1));
printf("Enter the name of the patient ");
scanf("%s",&t->name);
printf("\n Enter age of the patient :");
scanf("%d",&t->age);
printf("Enter Room no. :");
scanf("%d",&t->room);
printf("Enter Registration no. :");
scanf("%s",&t->no);
printf("Enter the date of joining in 'DATE'in
(dd/mm/yy) format : ");
scanf("%d%d%d",&t->dd,&t->mm,&t->yy);
printf("\n enter bloodgroup");
scanf("\n %s",&t->blood_group);
printf("\n enter disease");
scanf("\n %s",&t->disease);
t->link=NULL;
if(f==NULL)
f=t;
else
s->link=t;
s=t;
return f;
}
void bill(node1 *t)
{
8|Page
node1 *r;
printf("\n enter discharging patient registration no :");
scanf("%s",&x);

r=f;
while(r!=NULL)
{
z=strcmp(r->no,x);
if(z==0)
{

printf("\n enter no of days");


scanf("\n %d",&r->days);
printf("\n enter room charge");
scanf("\n %f",&r->room_charges);
printf("\n enter test charges");
scanf("\n %f",&r->test_fees);
printf("\n enter date of discharge");
scanf("\n %d%d%d",&r->d1,&r->m1,&r->y1);
r->total=(r->days*r->room_charges)+r-
>test_fees;
printf("\n APOLLO hospital");
printf("\nsecunderabad.");
printf("\n\t\t\t\t date:%d %d %d",r-
>dd,r->mm,r->yy);
printf("\n-------------------------------------
--------------");
printf("\n patient name :%s",r-
>name);
9|Page
printf("\n\n no of days stayed :%d",r-
>days);
printf("\n room charges :%f",r-
>room_charges);
printf("\n test charges :%f",r-
>test_fees);
printf("\n __________________");
printf("\n total charges :%f",r-
>total);
printf("\n __________________");
}

else
printf("\n'NO PATIENT FOUND'
\n");
r=r->link;
}
}
void display(node1 *t)
{
node1 *p;
p=t;
printf("\n");
while(p!=NULL)
{
printf("\n-----------------------------------");
printf("\n\t\tBILL\n");
printf(" \t APOLLO\n");
printf(" \t HASANPARTHY");
10 | P a g e
printf("\n-----------------------------------");
printf("\n APOLLO hospital");
printf("\nsecunderabad.");
printf("\n\t\t\t\t date:%d %d %d",p-
>dd,p->mm,p->yy);
printf("\n-------------------------------------
--------------");
printf("\n patient name :%s",p-
>name);
printf("\n\n no of days stayed :%d",p-
>days);
printf("\n room charges :%f",p-
>room_charges);
printf("\n test charges :%f",p-
>test_fees);
printf("\n __________________");
printf("\n total charges :%f",p-
>total);
printf("\n __________________");
}

p=p->link;
}

int main()
{
int ch;
while(1)
{
11 | P a g e
printf(" \tWELCOME TO 'APOLLO HOSPITAL'\t\n");
printf("\n 1-ENTER\n2-BILL\n3-DETAILS OF
PATIENT\n0-EXIT");
printf("\n enter your choice");
scanf("%d",&ch);
switch(ch)
{
case 1:f=enter();
break;
case 3:display(f);
break;
case 2:bill(f);
break;
case 0:exit(0);
break;
}

}
}

12 | P a g e
OUTPUT:
Entering the details:

Printing:

13 | P a g e
Searching the item:

Deleting an item :

Adding one more item to the formatted details:

14 | P a g e
15 | P a g e

You might also like