Clarify patient vs nurse unit placement on nursing charts.
Deploy Ladill Care / deploy (push) Successful in 55s
Deploy Ladill Care / deploy (push) Successful in 55s
The empty state referred to the patient but read like the nurse was unassigned; show duty units and patient-specific copy instead. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -214,6 +214,7 @@ class PatientController extends Controller
|
||||
$nursingAssessments = collect();
|
||||
$activePlacedVisit = null;
|
||||
$latestVitals = null;
|
||||
$nurseDutyUnits = collect();
|
||||
|
||||
if ($canViewAssessments) {
|
||||
$branchScope = app(OrganizationResolver::class)->branchScope($member);
|
||||
@@ -243,10 +244,13 @@ class PatientController extends Controller
|
||||
}
|
||||
|
||||
if ($isNurseStation) {
|
||||
$nurseDutyUnits = app(\App\Services\Care\NurseStationService::class)
|
||||
->dutyUnits($organization, $member, $this->ownerRef($request));
|
||||
|
||||
$activePlacedVisit = $patient->visits()
|
||||
->whereIn('status', [Visit::STATUS_OPEN, Visit::STATUS_IN_PROGRESS])
|
||||
->whereNotNull('care_unit_id')
|
||||
->with(['careUnit', 'bed'])
|
||||
->with(['careUnit.department.branch', 'bed'])
|
||||
->orderByDesc('placed_at')
|
||||
->first();
|
||||
|
||||
@@ -269,6 +273,7 @@ class PatientController extends Controller
|
||||
'canViewPathways' => $canViewPathways,
|
||||
'activePlacedVisit' => $activePlacedVisit,
|
||||
'latestVitals' => $latestVitals,
|
||||
'nurseDutyUnits' => $nurseDutyUnits,
|
||||
'nursingAssessments' => $nursingAssessments,
|
||||
'messagingSmsReady' => $suiteSmsReady || $credential->hasValidSms(),
|
||||
'messagingEmailReady' => $suiteEmailReady || $credential->hasValidBird(),
|
||||
|
||||
Reference in New Issue
Block a user