Accept OPConsultRecord bundle lookups
This commit is contained in:
parent
b70e88dd75
commit
00c45ea7c4
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user