diff --git a/app/Http/Controllers/HealthCareSheetController.php b/app/Http/Controllers/HealthCareSheetController.php index 91421f6..f69d70d 100755 --- a/app/Http/Controllers/HealthCareSheetController.php +++ b/app/Http/Controllers/HealthCareSheetController.php @@ -1003,7 +1003,8 @@ class HealthCareSheetController extends Controller return $q->with(['act:id,code,name'])->where('billed', 0); }, 'prescriptions' => function ($q) { return $q->with(['drug_or_device:id,name'])->where('billed', 0); - }])->where('user_id', $request->input('user_id')); + }])->where('state', InsuranceSubscriptionState::ACCEPTED) + ->where('user_id', $request->input('user_id')); } if (!empty($type)) {