update
This commit is contained in:
@@ -22,7 +22,15 @@ class LivechatResource extends JsonResource
|
|||||||
$diagnosis = $prescription ? $prescription->icd_code : '';
|
$diagnosis = $prescription ? $prescription->icd_code : '';
|
||||||
$hospital = $prescription ? $prescription->organization_id : '';
|
$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 = [
|
$livechat = [
|
||||||
'id' => $this->nID,
|
'id' => $this->nID,
|
||||||
|
|||||||
Reference in New Issue
Block a user