0% found this document useful (0 votes)
7 views3 pages

Hospital Medicine Management System

The document outlines a simple hospital management system that allows users to log in, view available medicines, and create bills for purchases. It includes functions for displaying medicine details, processing bills, and handling user login with predefined credentials. The system prompts users to select options for viewing medicine lists or billing, and it provides feedback based on user input.

Uploaded by

mauryabalmiki73
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Hospital Medicine Management System

The document outlines a simple hospital management system that allows users to log in, view available medicines, and create bills for purchases. It includes functions for displaying medicine details, processing bills, and handling user login with predefined credentials. The system prompts users to select options for viewing medicine lists or billing, and it provides feedback based on user input.

Uploaded by

mauryabalmiki73
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

print("--------ASK HOSPITAL-------------")

print("-----:)WELCOME TO HOSPITAL(:-----")
print("*****HAVE A NICE DAY!*******")
print()
print("Enter details to login to system")
l=("ravi","suman","shraddha")
a=0
dic={"ravi":"ravi123", "suman":"suman123", "shraddha":"shraddha123"}
def medicine():
dic={}
dic2={}
l=(1,2,3,4,5,6,7,8,9,10,)

o=("paracetemol","hydrocodone","Metformine","Losartan","Albuteral","Antihistamins",
"antibiotic","albuteral","gabapentin","omeprazole",)
qyt=(9,8,6,4,7,4,23,45,67,67,)
print("[Link]","Name of medicine","qty available")
for i in range(10):
dic[l]=o[i]
dic2[l]=qyt[i]
print(l[i] ,":",o[i],":", qyt[i])
return

def medicineee():
if 1==a:
print("Paracetemol")
print('''This medicine is basicially used in
:fever
painkiller
''')

#OPTIONS
def options(a):

c=int(input("choose your option"))


if 1==c:
medicine()

elif 2==c:
medicine()
bill()
else:
print("abort")

def bill():#bill function


num=int(input("enter no. of medicines you want to purchase"))

dic={1:1,2:2,3:3}
dic2={}
d=0
for i in range(num):
H=int(input("enter serial no. of medicine from list"))
h=int(input("enter qty of medicine you want to purchase"))
i=dic[h]
s=i*H
d+=s
dic2[H]=h
total=d
print("list of medicine you have purchased given below::::::")
print(dic2)
print("total amount of medicine purchase:",d)
print("bill completed")

#listt
def lis():
g='''given below is the options
select service you want----;

1. For list of medicine [1]


2. For bill making [2]
3. To seek information about medicine [3]'''
print(g)

#end

for i in range (2):


y=input("user name:")
z=input("password:")
if z==dic[y]:
print("succesful login to sysem",)
print()
print()
print()
lis()
value=int(input("press the key: "))
if 1==value:
medicine()
choice=str(input("Want to exit? (press y): "))
if 'n'==choice:
a='n'
lis()
options(a)
else:
print()

elif 2==value:#bill
medicine()
bill()
n=input("do you want to make another bill / exit (press y/n)")
if n==y:
bill()
else:
lis()
a=("do you want to exit?")
options()
else:
medicine()
a=int(input("enter no. of medicine"))

#END OF BILL SECCTION

break
elif a==1:
print("INCORRECT PASSWORD CAN'T LOGIN TO SYSTEM ")
break
else:
print("incorrect password")
a+=1

continue

You might also like