R
Rathtap
I am writing an assembly that calculates an expected payment based on
a patient's diagnosis and service lines performed in the hospital and
the contract set up for the payer -- all this info is retrieved from
the database. The calculation class has to be able to process multiple
claims at the same time so that I do not have to reload contract data
for each payer (insurance) into memory since they will be the same for
all the claims being processed in the batch. After calculating, the
expected payment has to be written back into the same table that holds
the service information. Based on the type of service (at present
there are 20), calculations are done differently.
My questions are on design.
1. Should I have separate Claim, Claims and Calculation Classes?
2. How should I declare services that are performed on the patient?
Should it be a class by itself or an updateable Dataset in the Claim
class. Payment is calculated on each service line and there is an epay
column in the Services table that needs to be updated once payment for
that line is calculated. An overall Expected Payment is also stored in
the Master Patient Table.
3. Overall scenario that I envision is:
a) A Calculation class that receives a batch of claims that need
calculating. It will have a number of methods that will actually do
the calculations.
b) A Claims class (collection?, properties?, methods?)
c) A Claim class (collection?, properties?, methods?)
d) Some means of retrieving and updating info in the database.
Thanks for the help.
a patient's diagnosis and service lines performed in the hospital and
the contract set up for the payer -- all this info is retrieved from
the database. The calculation class has to be able to process multiple
claims at the same time so that I do not have to reload contract data
for each payer (insurance) into memory since they will be the same for
all the claims being processed in the batch. After calculating, the
expected payment has to be written back into the same table that holds
the service information. Based on the type of service (at present
there are 20), calculations are done differently.
My questions are on design.
1. Should I have separate Claim, Claims and Calculation Classes?
2. How should I declare services that are performed on the patient?
Should it be a class by itself or an updateable Dataset in the Claim
class. Payment is calculated on each service line and there is an epay
column in the Services table that needs to be updated once payment for
that line is calculated. An overall Expected Payment is also stored in
the Master Patient Table.
3. Overall scenario that I envision is:
a) A Calculation class that receives a batch of claims that need
calculating. It will have a number of methods that will actually do
the calculations.
b) A Claims class (collection?, properties?, methods?)
c) A Claim class (collection?, properties?, methods?)
d) Some means of retrieving and updating info in the database.
Thanks for the help.