update bugs fix
This commit is contained in:
@@ -143,9 +143,9 @@ class DataServiceMonitoring extends JsonResource
|
||||
'subject' => $requestLogDailyMonitoring->subject ?? null,
|
||||
'object' => $requestLogDailyMonitoring->object ?? null,
|
||||
'bodyTemperature' => $requestLogDailyMonitoring->body_temperature ?? null,
|
||||
'sistole' => $requestLogDailyMonitoring->sistole . 'mm[Hg]' ?? null,
|
||||
'diastole' => $requestLogDailyMonitoring->diastole . 'mm[Hg]' ?? null,
|
||||
'respirationRate' => $requestLogDailyMonitoring->respiration_rate . '/min' ?? null,
|
||||
'sistole' => $requestLogDailyMonitoring->sistole ?? null,
|
||||
'diastole' => $requestLogDailyMonitoring->diastole ?? null,
|
||||
'respirationRate' => $requestLogDailyMonitoring->respiration_rate ?? null,
|
||||
'analysis' => $requestLogDailyMonitoring->analysis ?? null,
|
||||
'complaints' => $requestLogDailyMonitoring->complaints ?? null,
|
||||
'plans' => $this->when($requestLogDailyMonitoring->requestLogMedicalPlans, collect($requestLogDailyMonitoring->requestLogMedicalPlans)
|
||||
|
||||
@@ -115,7 +115,7 @@ class DailyMonitoringController extends Controller
|
||||
'message' => "success",
|
||||
'data' => [
|
||||
'detail_list'=> $detail_list,
|
||||
'organization_id' => $request_logs->organization_id
|
||||
'organization_id' => $request_logs ? $request_logs->organization_id : 0
|
||||
]
|
||||
],200);
|
||||
}
|
||||
|
||||
@@ -32,25 +32,25 @@ class RequestDailyMonitoring extends Model
|
||||
|
||||
protected $appends = ['medical_plan', 'non_medikamentosa_plan', 'document', 'discharge_date'];
|
||||
|
||||
public function getBodyTemperatureAttribute()
|
||||
{
|
||||
return round($this->attributes['body_temperature'], 0);
|
||||
}
|
||||
// public function getBodyTemperatureAttribute()
|
||||
// {
|
||||
// return round($this->attributes['body_temperature'], 0);
|
||||
// }
|
||||
|
||||
public function getSistoleAttribute()
|
||||
{
|
||||
return round($this->attributes['sistole'], 0);
|
||||
}
|
||||
// public function getSistoleAttribute()
|
||||
// {
|
||||
// return round($this->attributes['sistole'], 0);
|
||||
// }
|
||||
|
||||
public function getDiastoleAttribute()
|
||||
{
|
||||
return round($this->attributes['diastole'], 0);
|
||||
}
|
||||
// public function getDiastoleAttribute()
|
||||
// {
|
||||
// return round($this->attributes['diastole'], 0);
|
||||
// }
|
||||
|
||||
public function getRespirationRateAttribute()
|
||||
{
|
||||
return round($this->attributes['respiration_rate'], 0);
|
||||
}
|
||||
// public function getRespirationRateAttribute()
|
||||
// {
|
||||
// return round($this->attributes['respiration_rate'], 0);
|
||||
// }
|
||||
|
||||
public function getMedicalPlanAttribute()
|
||||
{
|
||||
|
||||
@@ -965,7 +965,7 @@ export default function ServiceMonitoring() {
|
||||
<Stack>
|
||||
<Typography variant="subtitle1">
|
||||
{dailyMonitoring.bodyTemperature > 0
|
||||
? dailyMonitoring.bodyTemperature
|
||||
? dailyMonitoring.bodyTemperature + ' C'
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
@@ -981,7 +981,7 @@ export default function ServiceMonitoring() {
|
||||
<Stack>
|
||||
<Typography variant="subtitle1">
|
||||
{dailyMonitoring.sistole > 0
|
||||
? dailyMonitoring.sistole
|
||||
? dailyMonitoring.sistole + ' mm[Hg]'
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
@@ -997,7 +997,7 @@ export default function ServiceMonitoring() {
|
||||
<Stack>
|
||||
<Typography variant="subtitle1">
|
||||
{dailyMonitoring.diastole > 0
|
||||
? dailyMonitoring.diastole
|
||||
? dailyMonitoring.diastole + ' mm[Hg]'
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
@@ -1015,13 +1015,13 @@ export default function ServiceMonitoring() {
|
||||
<Stack>
|
||||
<Typography variant="subtitle1">
|
||||
{dailyMonitoring.respirationRate > 0
|
||||
? dailyMonitoring.respirationRate
|
||||
? dailyMonitoring.respirationRate + ' / min'
|
||||
: '-'}
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Stack>
|
||||
<Stack direction={'row'} sx={{ paddingY: 1 }} spacing={2}>
|
||||
{/* <Stack direction={'row'} sx={{ paddingY: 1 }} spacing={2}>
|
||||
<Grid item xs={6} lg={6} md={6}>
|
||||
<Stack>
|
||||
<Typography variant="inherit">Complaints</Typography>
|
||||
@@ -1036,7 +1036,7 @@ export default function ServiceMonitoring() {
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Stack>
|
||||
</Stack> */}
|
||||
<Stack spacing={1}>
|
||||
<Typography variant="h6" sx={{ paddingTop: 2 }}>
|
||||
Analysis
|
||||
|
||||
Reference in New Issue
Block a user