This commit is contained in:
2024-05-02 08:21:56 +07:00
parent 9168af67b6
commit 04b0b2943d

View File

@@ -22,7 +22,15 @@ class LivechatResource extends JsonResource
$diagnosis = $prescription ? $prescription->icd_code : '';
$hospital = $prescription ? $prescription->organization_id : '';
$prescriptionItem = $prescription ? PrescriptionItem::where('prescription_id', $prescription->id)->get() : [];
$prescriptionItem = $prescription ? PrescriptionItem::where('prescription_id', $prescription->id)->get() : [
[
'drug_id' => 0,
'qty' => 0,
'signa' => '',
'unit_id' => 0,
'note' => '', // input to database
]
];
$livechat = [
'id' => $this->nID,