@extends('layouts.main') @section('content')

{{ __('triage.triage_started') }} : {{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}

{{ __('triage.patient_details') }}


{{ __('triage.patient_number') }} {{ $patient->number }}
{{ __('triage.triage_grade') }} severe_grade) ?>
{{ __('triage.clinic_allocation') }} {{ isset($clinics[$triage->clinic_allocation]) ? $clinics[$triage->clinic_allocation] : '' }}
{{ __('triage.referral') }} {{ isset($referral_hospitals[$triage->referral]) ? $referral_hospitals[$triage->referral] : '' }}
{{ __('triage.triage_done_by') }} @php echo get_full_name($triage->created_by, "id", "first_name", "last_name", "users"); @endphp
{{ __('triage.triage_done_on') }} {{ $triage->created_at->format('jS M y \a\t g:ia') }}
{{ __('triage.patient_attendance') }} @if($triage->new_attendance==1) {{ __('triage.new_attendance') }} @elseif($triage->re_attendance==1) {{ __('triage.re_attendance') }} @else {{ __('triage.unknown') }} @endif
{{ __('triage.comment') }} {{ $triage->comments }}

{{ __('triage.observations') }}


@php $observation_explode = explode(",", $triage->observations); @endphp @for ($x = 0; $x < count($observation_explode); $x++) @php $values_explode = explode("=", $observation_explode[$x]); @endphp @foreach ($values_explode as $value) @endforeach @endfor
# {{ __('triage.observation') }} {{ __('triage.value') }}
{{ $x+1 }}{{ $value }}
@if(!are_symptoms_on_consultation())

{{ __('triage.symptoms') }}


@php $symptoms_explode = explode(",", $triage->symptoms); $duration_explode = explode(",", $triage->symptom_duration); @endphp @for ($i = 0; $i < count($symptoms_explode); $i++) @endfor
{{ __('triage.symptoms') }} {{ __('triage.duration') }}
{{ $symptoms[$symptoms_explode[$i]] ?? '' }} {{ $duration_explode[$i] ?? '' }}
@endif @if ($discharge_mortality && between($age_diff_months, 0, 6) && is_smart_discharge_enabled())

Post Discharge Mortality Risk

{{ Form::label('hospital_travel_duration', 'How long did it take you to travel to the hospital?') }} @php $arr = ['1' => '< 30 mins','2' => '30 mins – 1 hour','3' => '1 - 4 hours','4' => '> 4 hours']; @endphp {{ $discharge_mortality->hospital_travel_duration_below_6 ? $arr[$discharge_mortality->hospital_travel_duration_below_6] : "Not Recorded" }}
{{ Form::label('illness_duration', 'What is the duration of the present illness at the time of admission?') }} @php $arr = ['1' => '< 48 hours','2' => '48 hours - 7 days','3' => '7 days - 1 month','4' => 'More than a month']; @endphp {{ $discharge_mortality->illness_duration_at_admission_below_6 ? $arr[$discharge_mortality->illness_duration_at_admission_below_6] : "Not Recorded" }}
@endif @if ($discharge_mortality && $discharge_mortality->child_with_proven_infection == 1 && between($age_diff_months, 7, 60) && is_smart_discharge_enabled())

Post Discharge Mortality Risk

{{ Form::label('last_hospitalization', 'Time since last hospitalization') }} @php $arr = ['1' => 'Less than 7 days ago','2' => '7 to 30 days ago','3' => '30 days to 1 year ago','4' => 'More than 1 year ago','5' => 'Never']; @endphp {{ $discharge_mortality->last_hospitalization ? $arr[$discharge_mortality->last_hospitalization] : "Not Recorded" }}
{{ Form::label('safe_water', 'Do you boil, filter (good sand/ceramic) or disinfect (using bleach/waterguard) all drinking water?') }} @if($discharge_mortality->filter_water == 1) Yes @else No @endif
{{ Form::label('child_mosquito_net', 'Does your child sleep under a mosquito net?') }} @php $arr = ['1' => 'Never','2' => 'Sometimes','3' => 'Always']; @endphp {{ $discharge_mortality->child_mosquito_net ? $arr[$discharge_mortality->child_mosquito_net] : "Not Recorded" }}
{{ Form::label('hospital_travel_duration', 'How long did it take you to travel to the hospital?') }} @php $arr = ['1' => '< 30 mins','2' => '30 mins – 1 hour','3' => '1 - 4 hours','4' => '> 4 hours']; @endphp {{ $discharge_mortality->hospital_travel_duration ? $arr[$discharge_mortality->hospital_travel_duration] : "Not Recorded" }}
{{ Form::label('mother_education_level', 'What is the education level of the child’s mother?') }} @php $arr = ['1' => 'No school','2' => '<= P3','3' => 'P4-P7','4' => 'S1-S6','5' => 'Post secondary (including post S4 technical school)','6' => 'Do not know']; @endphp {{ $discharge_mortality->mother_education_level ? $arr[$discharge_mortality->mother_education_level] : "Not Recorded" }}
Eye movement {{ ['1' => 'Watches or follows','0' => 'Fails to watch or follow'][$discharge_mortality->bcs_eye_movement] ?? '' }}
Best motor response {{ ['0' => 'No response or inappropriate response','1' => 'Withdraws limb from pain stimulus','2' => 'Localizes painful stimulus'][$discharge_mortality->bcs_best_mortal] ?? '' }}
Best verbal response {{ ['0' => 'No vocal response to pain','1' => 'Moan or abnormal cry with pain','2' => 'Cries appropriately with pain (or speaks if verbal)'][$discharge_mortality->bcs_best_verbal] ?? '' }}
Mother's age {{ $discharge_mortality->maternal_age }}
@endif @if ($triage->any_tb_sysmptoms == 1)

TB SCREENING

A cough for more than two weeks ? {{ $triage->cough_for_2_weeks == 1 ? "Yes" : "No" }}
Persistent fevers for 2 weeks or more ? {{ $triage->fever_for_2_weeks == 1 ? "Yes" : "No" }}
Noticable weight loss of more than 3 Kg? {{ $triage->tb_weight_loss == 1 ? "Yes" : "No" }}
Poor weight gain in the last one month ? {{ $triage->tb_poor_weight_gain == 1 ? "Yes" : "No" }}
Excessive night sweats for three weeks or more ? {{ $triage->tb_excessive_night_sweats == 1 ? "Yes" : "No" }}
Contact with a person with pulmonary TB or chronic cough ? {{ $triage->tb_contact_with_tb_person == 1 ? "Yes" : "No" }}
@endif @if(is_smart_triage_enabled() && $nutrition)

Nutritional Status

{{ $nutrition->text }} {{ $nutrition->reason }}
@endif
@if(!$triage_without_etat) @if (between($years, 16, 50) && $triage->fp_too_sick == 0)

{{ __('triage.family_planning') }}

@if(is_null($triage->fp_too_sick)) @else @endif @if(is_null($triage->sexually_active)) @else @endif @if(is_null($triage->pregnant)) @else @endif @if(is_null($triage->menopause)) @else @endif
1 {{ __('triage.too_sick') }} N/A{{ ($triage->fp_too_sick == 1) ? __('triage.yes') : __('triage.no') }}
2 {{ __('triage.sexually_active') }} N/A{{ ($triage->sexually_active == 1) ? __('triage.yes') : __('triage.no') }}
3 {{ __('triage.pregnant') }} N/A{{ ($triage->pregnant == 1) ? __('triage.yes') : __('triage.no') }}
4 {{ __('triage.menopause') }} N/A{{ ($triage->menopause == 1) ? __('triage.yes') : __('triage.no') }}
5 {{ __('triage.family_planning_method') }} {{ isset($triage->fp_method) ? $family_planning_methods[$triage->fp_method] : "N/A" }}
6 {{ __('triage.action') }} {{ isset($triage->fp_action) ? $triage->fp_action : "N/A" }}
@endif @if (between($years, 0, 12))

{{ __('triage.emergency_signs') }}


@foreach($airway as $key => $value) @endforeach @foreach($circulation as $key => $value) @endforeach @foreach($neurological as $key => $value) @endforeach @foreach($dehydration as $key => $value) @endforeach
{{ __('triage.airway') }}
{{ $key }} {{ ucfirst($value) }}
{{ __('triage.circulation') }}
{{ $key }} {{ ucfirst($value) }}
{{ __('triage.neurological') }}
{{ $key }} {{ ucfirst($value) }}
{{ __('triage.dehydration') }}
{{ $key }} {{ ucfirst($value) }}
@endif @if (between($years, 0, 12) && count($priority_signs) > 0)

{{ __('layout.priority_signs') }}


@foreach($priority_signs as $priority_sign) @endforeach
{{ $priority_sign }}
@endif @else

Notes


{{ __('triage.choose_blood_group') }} {{ $triage->blood_group }}
{{ __('triage.rhesus_factor') }} @if($triage->rhesus_factor == 1) {{ __('triage.positive') }} @elseif($triage->rhesus_factor == 2) {{ __('triage.negative') }} @else {{ __('triage.unknown') }} @endif
{{ __('triage.observation_notes') }} {{ ($triage->observation_notes) ?? "No notes available" }}
{{ __('triage.nursing_notes') }} {{ ($triage->nursing_notes) ?? "No notes available" }}
@endif

@php $clinic_slug = get_name($triage->clinic_allocation, "id", "slug", "clinics"); @endphp @if($clinic_slug == "diabetes") {{ Form::open(['route' => 'diabetes_clinic.clinic_registration']) }} {{ Form::button(__('triage.go_to_diabetes'),['type'=>'submit','class'=>'btn btn-success btn-block']) }} {{ Form::close() }} @endif
@if(Auth::user()->can('edit-patient-triage')) Modify Triage @endif
@endsection @push('scripts') @endpush