Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Back End Development

Work on billing resource has been started.

Billing table has the following fields:

  • bill_Id - id of the bill[auto increment]
  • bill_status - keeping status of the bill( pending, paid, partially paid, approved)[not null]
  • patient_id - id of the patient whose bill is being created.[not null]
  • provider_id: id of the provider [ not null]
  • other stndard OpenMRS fields.

DAO has the following functions

 public Billing saveBill(Billing bill) ;                                            for saving the bill.  
 
 public void deleteBill(Billing bill);                                              deleting a bill, might be required in case of an mistake.
 
 public Billing getBillByPatientUuid(String uuid)                          retrieving bill using the uuid of the patient.
 
 public List<Billing> getAllBills() ;                                             retrieving all the bills.
 
 public List<Billing> getAllBillsByStatus(String status);              retrieving bills by status of the bill(might want to get the bills which are unpaid or partially paid)      
 
 public Billing updateBill(Billing bill);                                          updating the bill (if some other tests or medicines/drug to be added to the bill)
 
 public List<Billing> getAllBillsByProvider(Integer providerId);       retrieving bills by provider of the bill