feat: Enhance insurance billing system to support supplementary insurance
- Updated CoverageRule and related entities to include franchise_percent instead of franchise_rials. - Modified Appointment entity to carry supplementary insurance ID alongside base insurance. - Implemented SessionBillingService to ensure finalized invoices for insured patient sessions. - Created InvoiceFinalized event to trigger claims creation upon invoice finalization. - Added BackfillMissingClaimsCommand to generate claims for finalized invoices without existing claims. - Developed tests to validate the new functionality for supplementary insurance handling in appointments and claims.
This commit is contained in:
@@ -84,16 +84,10 @@ parameters:
|
||||
count: 1
|
||||
path: src/Billing/Controller/BillingController.php
|
||||
|
||||
-
|
||||
message: '#^Using nullsafe property access "\?\-\>franchiseRials" on left side of \?\? is unnecessary\. Use \-\> instead\.$#'
|
||||
identifier: nullsafe.neverNull
|
||||
count: 1
|
||||
path: src/Billing/Service/BillingCalculator.php
|
||||
|
||||
-
|
||||
message: '#^Call to protected method getEntityManager\(\) of class Doctrine\\ORM\\EntityRepository\<object\>\.$#'
|
||||
identifier: method.protected
|
||||
count: 1
|
||||
count: 5
|
||||
path: src/Billing/Service/ClaimService.php
|
||||
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user