tambah keterangan di detail alarm center
This commit is contained in:
@@ -229,7 +229,7 @@ class CorporateMemberController extends Controller
|
|||||||
'service:code,name',
|
'service:code,name',
|
||||||
'files',
|
'files',
|
||||||
])
|
])
|
||||||
->find($request_log_id, ['id', 'submission_date', 'discharge_date', 'member_id', 'service_code', 'organization_id', 'diagnosis']);
|
->find($request_log_id, ['id', 'submission_date', 'discharge_date', 'member_id', 'service_code', 'organization_id', 'diagnosis', 'keterangan', 'catatan']);
|
||||||
|
|
||||||
$dataBenefit = [];
|
$dataBenefit = [];
|
||||||
if (count($data->requestLogBenefits) > 0) {
|
if (count($data->requestLogBenefits) > 0) {
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ class DataServiceMonitoring extends JsonResource
|
|||||||
'name' => $requestLogBenefit->benefit->description,
|
'name' => $requestLogBenefit->benefit->description,
|
||||||
];
|
];
|
||||||
})->all() ?? null,
|
})->all() ?? null,
|
||||||
|
'keterangan' => $this->keterangan ?? null,
|
||||||
|
'catatan' => $this->catatan ?? null,
|
||||||
'benefitTotal' => $this->benefitTotal ?? null,
|
'benefitTotal' => $this->benefitTotal ?? null,
|
||||||
'hospital' => $this->organization->name ?? null,
|
'hospital' => $this->organization->name ?? null,
|
||||||
'admissionDate' => $this->submission_date ?? null,
|
'admissionDate' => $this->submission_date ?? null,
|
||||||
|
|||||||
@@ -203,6 +203,8 @@ type ServiceMonitoringProps = {
|
|||||||
}[];
|
}[];
|
||||||
}>
|
}>
|
||||||
>;
|
>;
|
||||||
|
keterangan: string;
|
||||||
|
catatan: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function ServiceMonitoring() {
|
export default function ServiceMonitoring() {
|
||||||
@@ -591,6 +593,44 @@ export default function ServiceMonitoring() {
|
|||||||
)}
|
)}
|
||||||
</Grid> */}
|
</Grid> */}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
{/* Keterangan */}
|
||||||
|
<Grid item container xs={12} spacing={1.5}>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<Typography variant="subtitle2" color={'grey.600'}>
|
||||||
|
{loading ? <Skeleton animation={'wave'} width={200} /> : 'Keterangan'}
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<Typography variant="subtitle1" color={'grey.800'}>
|
||||||
|
{loading ? (
|
||||||
|
<Skeleton animation={'wave'} width={300} />
|
||||||
|
) : data && data.keterangan ? (
|
||||||
|
data.keterangan
|
||||||
|
) : (
|
||||||
|
'-'
|
||||||
|
)}
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
{/* Catatan */}
|
||||||
|
<Grid item container xs={12} spacing={1.5}>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<Typography variant="subtitle2" color={'grey.600'}>
|
||||||
|
{loading ? <Skeleton animation={'wave'} width={200} /> : 'Catatan'}
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<Typography variant="subtitle1" color={'grey.800'}>
|
||||||
|
{loading ? (
|
||||||
|
<Skeleton animation={'wave'} width={300} />
|
||||||
|
) : data && data.catatan ? (
|
||||||
|
data.catatan
|
||||||
|
) : (
|
||||||
|
'-'
|
||||||
|
)}
|
||||||
|
</Typography>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user