From ad1e9365914f60797029e4be466beaa633b4f9a0 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 8 Oct 2026 11:10:25 +0530 Subject: [PATCH] fix(abdm): support GET/POST fallbacks in AbdmFhirInspector::previewBundle --- app/Controllers/AbdmFhirInspector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/AbdmFhirInspector.php b/app/Controllers/AbdmFhirInspector.php index 60772f6..eda87a8 100644 --- a/app/Controllers/AbdmFhirInspector.php +++ b/app/Controllers/AbdmFhirInspector.php @@ -131,9 +131,9 @@ class AbdmFhirInspector extends BaseController */ public function previewBundle() { - $ref = trim((string) ($this->request->getGet('ref') ?? '')); - $patientId = (int) ($this->request->getGet('patient_id') ?? 0); - $abha = trim((string) ($this->request->getGet('abha') ?? '')); + $ref = trim((string) ($this->request->getGet('ref') ?? $this->request->getPost('ref') ?? $_GET['ref'] ?? $_REQUEST['ref'] ?? '')); + $patientId = (int) ($this->request->getGet('patient_id') ?? $this->request->getPost('patient_id') ?? $_GET['patient_id'] ?? $_REQUEST['patient_id'] ?? 0); + $abha = trim((string) ($this->request->getGet('abha') ?? $this->request->getPost('abha') ?? $_GET['abha'] ?? $_REQUEST['abha'] ?? '')); if ($ref === '') { return $this->response->setStatusCode(400)->setJSON(['ok' => 0, 'error_text' => 'Care Context Reference is required']);