You are on page 1of 2

1) Parser Name

Glaucoma_medicine
2) Source Table/s
a) Pharmacy_OP_Issue_Patient_Wise_GST
i) ISSUEDT
b) Patient_Type_Age_wise_final
i) VISIT_DATE
ii) CONTACT_DETAILS
iii) MRD_NO

Source table schema

-will update –

3) Destination Table/s
a) i. glaucoma_medicine

4) Destination table schema


ISSUEDT ,LOCATION_Name,MRNUMBER, ACTUALSALESAMOUNT, DOCTOR_NAME

5) Logic Overview
i) Delete data in destination table for every month
ii) Select mrd, location,actual sales amount from Pharmacy_OP_Issue_Patient_Wise_GST
and select doctor name from Patient_Type_Age_wise_final join on mrd
iii) Select current month data for both tables.
iv) Order by ISSUEDT

6) Generated Report Details (To be updated once parser is complete)

Sno cid Output table


1
2
3

7) Detailed Logic
a) Pre-Steps
na

b) Detailed Logic
Select ISSUEDT,LOCATION_Name,MRNUMBER, ACTUALSALESAMOUNT, DOCTOR_NAME from (select
ISSUEDT,LOCATION_Name,MRNUMBER, ACTUALSALESAMOUNT from
Pharmacy_OP_Issue_Patient_Wise_GST where ITEM_DESCRIPTION IN ('9 PM E/D 2.5
ML','ALPHAGAN P E/D (NA)','ALPHAGAN Z E/D 5 ML','AZOPT E/D','BETABRIM E/D 5ML','BIMAT
LS','BRIMED- T E/D','BRIMOCOM E/D','BRIMOLOL E/D 5 ML','BRIMOSOFT-T E/D 5ML','BRINOLAR
E/D','BRINZOX E/D (NA)','COMBIGAN E/D 5 ML','Cosopt Eye Drop','DORTAS T E/D 5 ML','DORZOX
E/D','DORZOX T E/D 5 ML','GLUCOMOL 0.5% W/V E/D 5 ML','IOTIM 0.5% E/D','LATOPROST RT
0.005% W/V E/D 2.5 ML','LATOPROST RT 0.005% W/V E/D 2.5 ML','LUMIGAN 1 0.01% W/V E/D 3
ML','MISOPT E/D','Saflutan Eye Drop 2.5ml','SE- DORSUN-T E/D','SIMBRINZA E/D 5 ML','SYNCA E/D 5
ML','TIMOLAST E/D','TIMOLET OD E/D','TIMOLET OD E/D','TOVAXO E/D','TOVAXO-T
E/D','TRAVACOM E/D','TRAVATAN 0.04% W/V E/D 2.5 ML','TRAVISIGHT E/D','TRAVATAN 0.04% W/V
E/D 2.5 ML','XALATAN 0.005% W/V E/D 2.5 ML','XALATAN 0.005% W/V E/D 2.5 ML') )tp1 LEFT
JOIN(select MRD_NO,DOCTOR_NAME from Patient_Type_Age_wise_final )tp2 on tp1.
MRNUMBER=tp2.MRD_NO

8) Logic Implemented
a) Sequence of methods used to implement the specified parser/process
i) na

b) Detailed logic/algorithm
na
9) Queries implemented in Code
a) Query for step 9(b) i)
<< add query here>>

b) Query for step 9(b) ii)


<< add queru here >>

10) Source Code Information


a) Source code classes/files names
i) << file name >>
b) Log file names
c) Path at the Target server

You might also like