@extends('layouts.main') @push('styles') @endpush @section('content')

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

@include('patients::allergies.header')
@include('flash::message')
{{ __('triage.triage') }} ({{ $age_group_display }}) {{ __('triage.for_episode') }} : {{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}

{{ Form::open(['route' => 'triage.store', 'data-toggle' => 'validator', 'id' => 'triageForm']) }} {{ Form::hidden('episode_id', $episode_id, ['id' => 'episode_id']) }} {{ Form::hidden('patient_id', $patient_id, ['id' => 'patient_id']) }} {{ Form::hidden('age_diff_months', $age_diff_months, ['id' => 'age_diff_months']) }} {{ Form::hidden('gender', get_name($patient_id, 'id', 'gender', 'patients'), ['id' => 'gender']) }} @php $age = 0; $alert1 = '
' . __('triage.sick_children_warning') . '
'; $alert2 = '
' . __('triage.poison_warning') . '
'; @endphp @php $option_symptoms = ''; $option_symptoms_periods = ''; @endphp @if (!are_symptoms_on_consultation())
@php foreach ($symptoms as $key => $value) { $option_symptoms .= "'; } foreach ($symptoms_periods as $key => $value) { $option_symptoms_periods .= ""; } @endphp
{{ __('triage.symptoms') }} @if (Auth::user()->can('symptom-create')) {{ __('triage.add_new') }} @endif {{ __('triage.duration') }} {{ __('triage.prompt') }} {{ __('triage.reference_text') }}
{{ __('triage.add_row') }}
@endif @if (is_tuberculosis_screening_enabled()) @include('patients::triage.tb_screening') @endif @if (is_hiv_and_gbv_screening_tool_enabled()) @include('patients::triage.hiv_gbv_screening') @endif @if (is_hiv_screening_tool_enabled()) @include('patients::triage.hiv_screening') @endif @if (is_gbv_screening_tool_enabled()) @include('patients::triage.gbv_screening') @endif
@if ($age_group == 5) @else @endif @include('patients::triage.observations_changed')
{{ __('triage.observation') }} {{ __('triage.value') }} {{ __('triage.normal_range') }}KEWS NEWSKEWS

@if($triage_without_etat)
{{ __('triage.choose_blood_group') }} {{ __('triage.rhesus_factor') }}
{{ Form::radio('blood_group', 'Unknown', false) }} {{ Form::radio('blood_group', 'A', false) }} {{ Form::radio('blood_group', 'B', false) }} {{ Form::radio('blood_group', 'O', false) }} {{ Form::radio('blood_group', 'AB', false) }} {{ Form::radio('rhesus_factor', 1, false) }} {{ Form::radio('rhesus_factor', 2, false) }} {{ Form::radio('rhesus_factor', 0, false) }}
@endif @if (between($years, 16, 50) && !$triage_without_etat) @include('patients::triage.family_planning_questions') @endif @if (between($years, 0, 12) && !$triage_without_etat) @include('patients::triage.emergency_signs') @php $age = 1 @endphp @endif @if (between($age_diff_months, 0, 5) && is_smart_discharge_enabled() && !$triage_without_etat)

Social Health Indicators

{{ Form::label('child_with_proven_infection', 'Does the child have a proven or suspected infection e.g is the child having fever, cough, diarrhoea?') }} {{ Form::radio('child_with_proven_infection', 1, false, ['onclick' => 'show_proven_infection_questions()']) }} Yes     {{ Form::radio('child_with_proven_infection', 0, false, ['onclick' => 'hide_proven_infection_questions()']) }} No
@endif @if (between($age_diff_months, 6, 60) && is_smart_discharge_enabled() && !$triage_without_etat)

Social Health Indicators

{{ Form::label('child_with_proven_infection', 'Does the child have a proven or suspected infection e.g is the child having fever, cough, diarrhoea?') }} {{ Form::radio('child_with_proven_infection', 0, false, ['onclick' => 'show_proven_infection_questions()']) }} Yes {{ Form::radio('child_with_proven_infection', 0, false, ['onclick' => 'hide_proven_infection_questions()']) }} No
@endif
@if ($age_group == 1 || $age_group == 2) @else @endif
@if (!is_add_attendance_to_consultation_enabled())
{{ __('triage.patient_attendance') }}
{{ __('triage.re_attendance_or_new') }}
{{ __('triage.new_attendance') }} {{ __('triage.re_attendance') }}
@endif @if (between($years, 0, 12) && !$triage_without_etat) @include('patients::triage.priority_signs') @endif
@if(is_smart_triage_enabled() && !$triage_without_etat) @endif

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


{{ Form::radio('triage_grade', 1, false, ['required', 'id' => 'triage_grade_green']) }} {{ __('triage.green') }}
{{ Form::radio('triage_grade', 2, false, ['required', 'id' => 'triage_grade_yellow']) }} {{ __('triage.yellow') }}
{{ Form::radio('triage_grade', 3, false, ['required', 'id' => 'triage_grade_red']) }} {{ __('triage.red') }}

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

{{ Form::label('referral_hospital', __('triage.referred_by')) }} {{ Form::select('referral_hospital', $referral_hospitals, '1', ['class' => 'form-control compulsory', 'required', 'id' => 'referral_hospital']) }} {{ __('triage.add_new') }}
{{ Form::label('clinic_allocation', __('triage.clinic_allocation')) }} @if(is_numeric(get_name($episode_id, 'id', 'clinic_id', 'patient_episodes'))) {{ Form::select('clinic_allocation', $clinics, get_name($episode_id, 'id', 'clinic_id', 'patient_episodes'), ['class' => 'form-control col-sm-12 compulsory clinic_allocation', 'required']) }} @else {{ Form::select('clinic_allocation', $clinics, '', ['class' => 'form-control col-sm-12 compulsory clinic_allocation', 'required']) }} @endif
@if($triage_without_etat)

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


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

@else

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

@endif

{{ Form::button(__('triage.submit_triage'), ['type' => 'submit', 'class' => 'btn btn-success col-sm-12', 'id' => 'submit_triage']) }}

{{ __('triage.triage_done_by') }} : {{ ucwords(Auth::user()->first_name) . ' ' . ucwords(Auth::user()->last_name) }}
{{ Form::close() }}
@endsection @push('scripts') @endpush