Update get final LOG

This commit is contained in:
ivan-sim
2024-01-25 09:25:28 +07:00
parent 667c08dc0c
commit 08bdea979b

View File

@@ -297,11 +297,7 @@ class RequestLogController extends Controller
'),
'request_logs.submission_date',
DB::raw('
CASE
WHEN service_code = "OP" THEN "Outpatient"
WHEN service_code = "IP" THEN "Inpatient"
ELSE ""
END AS service_type
(SELECT services.name FROM services WHERE services.code = request_logs.service_code LIMIT 1) AS service_type
'),
DB::raw('
(SELECT organizations.name FROM organizations WHERE organizations.id = request_logs.organization_id LIMIT 1) AS provider