<?php

declare(strict_types=1);

require_once dirname(__DIR__) . '/app/bootstrap.php';

use App\Services\InpatientDailyRevenueRulesQaService;

header('Content-Type: application/json; charset=utf-8');
$result = (new InpatientDailyRevenueRulesQaService())->run();
http_response_code(($result['status'] ?? 'FAIL') === 'PASS' ? 200 : 500);
echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), PHP_EOL;
