Accept OPConsultRecord bundle lookups

This commit is contained in:
DevSoftTech Server 2026-06-01 13:34:35 +05:30
parent b70e88dd75
commit 00c45ea7c4
2 changed files with 2 additions and 2 deletions

View File

@ -608,7 +608,7 @@ class AbdmGateway extends BaseController
$builder = $this->db->table('opd_fhir_documents') $builder = $this->db->table('opd_fhir_documents')
->where('opd_id', $opdId) ->where('opd_id', $opdId)
->where('bundle_type', 'MedicationRequestBundle'); ->whereIn('bundle_type', ['OPConsultRecord', 'MedicationRequestBundle']);
if ($sessionId > 0) { if ($sessionId > 0) {
$builder->where('opd_session_id', $sessionId); $builder->where('opd_session_id', $sessionId);
} }

View File

@ -383,7 +383,7 @@ class AbdmTaskBoard extends BaseController
$docRows = $this->db->table('opd_fhir_documents') $docRows = $this->db->table('opd_fhir_documents')
->select('id, opd_id, opd_session_id, generated_at') ->select('id, opd_id, opd_session_id, generated_at')
->whereIn('opd_id', $opdIds) ->whereIn('opd_id', $opdIds)
->where('bundle_type', 'MedicationRequestBundle') ->whereIn('bundle_type', ['OPConsultRecord', 'MedicationRequestBundle'])
->orderBy('id', 'DESC') ->orderBy('id', 'DESC')
->get() ->get()
->getResultArray(); ->getResultArray();