@extends('layouts.main') @push('scripts') @endpush @push('styles') @endpush @section('content')
| Date | Clinic | Primary Diagnosis | Other Diagnoses | Consultation By | |
|---|---|---|---|---|---|
|
{{ $past_episode['start_date'] }}
@if(check_if_episode_is_a_followup($past_episode["episode_id"])) ({{ __('patient_episode.review_from') }} {{ streamline_date(get_name(get_name($past_episode["episode_id"], 'id', 'parent_episode_id', 'patient_episodes'), 'id', 'created_at', 'patient_episodes')) }}) @endif |
{{ $past_episode['clinic'] }} | {{ get_name($past_episode['primary_diagnosis'], 'id', 'name', 'diagnoses') }} |
@if(count($past_episode['other_diagnoses']) > 0 && !(count($past_episode["other_diagnoses"]) == 1 && $past_episode["other_diagnoses"][0] == null))
|
{{ $past_episode['doctor'] }} | Details |
{{ __('consultations.triage_grade_not_determined') }}
@endswitch
@endif
| {{ __('consultations.symptom') }} | {{ __('consultations.duration') }} |
|---|---|
| {{ isset($symptoms[$symptoms_array[$i]]) ? $symptoms[$symptoms_array[$i]] : "" }} | {{ isset($symptoms_duration_array[$i]) ? $symptoms_duration_array[$i] : "" }} |
{{ __('consultations.no_symptom_recorded') }}
@endif
| {{ __('consultations.observation') }} | {{ __('consultations.value') }} | @if(check_if_episode_is_a_followup($episode->id)){{ __('consultations.previous_value') }} | @endif
|---|---|---|
| {{ $item_array[0] }} | {{ $item_array[1] }} | @if(check_if_episode_is_a_followup($episode->id)) @foreach($parent_observation_array as $parent_observation) @php $parent_item_array = isset($parent_triage_details) ? explode('=', $parent_observation) : []; @endphp @if($item_array[0] == $parent_item_array[0]){{ $parent_item_array[1] }} | @endif @endforeach @endif
| {{ __('consultations.observation') }} | {{ __('consultations.value') }} | @if(check_if_episode_is_a_followup($episode->id)){{ __('consultations.previous_value') }} | @endif
|---|---|---|
| {{ isset($item_array[0]) ? $item_array[0] : "" }} | {{ isset($item_array[1]) ? $item_array[1] : "" }} | @if(check_if_episode_is_a_followup($episode->id)) @foreach($parent_observation_array as $parent_observation) @php $parent_item_array = isset($parent_triage_details) ? explode('=', $parent_observation) : []; @endphp @if($item_array[0] == $parent_item_array[0]){{ $parent_item_array[1] }} | @endif @endforeach @endif
Nutritional Status |
|
| {{ $nutrition->text }} | {{ $nutrition->reason }} |
{{ __('consultations.no_observations_recorded') }}| {{ __('consultations.service') }} | {{ __('consultations.quantity') }} | {{ __('consultations.payment_status') }} | Performed By |
|---|---|---|---|
| {{ get_name($service_ids[$i], "id", "name", "services")}} | {{ $service_quantity[$i] }} | {!! $service->payment_status == 0 ? "Not Paid" : "Paid" !!} | @if($service_performed[$i] == 0) {{ Form::hidden('service_perform[]', $service_ids[$i]) }} {{ Form::hidden('service_order_id[]', $service_ids[$i]) }} {{ Form::hidden('service_order_perform[]', $service->id) }} {{ Form::hidden('service_performed_position[]', $i) }} @php $service_performed_counter++ @endphp @else By {{ get_full_name(get_name($service_performed_id_array[$i], 'id', 'performed_by', 'staff_performed_services'), 'id', 'first_name', 'last_name', 'users') }} @endif |
| 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" }} |
| Noticeable 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" }} |
| {{ __('triage.symptoms') }} @if( Auth::user()->can('symptom-create')){{ __('triage.add_new') }} @endif | {{ __('triage.duration') }} | {{ __('triage.prompt') }} | {{ __('triage.reference_text') }} | |
|---|---|---|---|---|
|
|
| {{ __('consultations.psychosis_symptom_scores') }} | |
|---|---|
| {{ __('consultations.hallucinations') }} | {{ Form::number('hallucinations', '', ['class' => 'form-control']) }} |
| {{ __('consultations.delusions') }} | {{ Form::number('delusions', '', ['class' => 'form-control']) }} |
| {{ __('consultations.disorganised_speech') }} | {{ Form::number('disorganised_speech', '', ['class' => 'form-control']) }} |
| {{ __('consultations.abnormal_phychomotor_behaviour') }} | {{ Form::number('abnormal_psychomotor_behaviour', '', ['class' => 'form-control']) }} |
| {{ __('consultations.negative_symptoms') }} | |
|---|---|
| {{ __('consultations.impaired_cognition') }} | {{ Form::number('impaired_cognition', '', ['class' => 'form-control']) }} |
| {{ __('consultations.depression') }} | {{ Form::number('depression', '', ['class' => 'form-control']) }} |
| {{ __('consultations.mania') }} | {{ Form::number('mania', '', ['class' => 'form-control']) }} |
| {{ __('consultations.hamilton_anxiety_score') }} | {{ Form::number('hamilton_anxiety_score', '', ['class' => 'form-control']) }} |
0-17 = no / mild anxiety
18-24 = mild to moderate anxiety
25-30 = moderate to severe anxiety
| {{ __('consultations.alcohol_score') }} | |
|---|---|
| {{ __('consultations.total_score') }} | {{ Form::number('alcohol_screening_score', '', ['class' => 'form-control']) }} |
| {{ __('consultations.satisfaction_score') }} | |
|---|---|
| {{ __('consultations.patient') }} | {{ Form::number('patient_satisfaction_score', '', ['class' => 'form-control']) }} |
| {{ __('consultations.care_giver') }} | {{ Form::number('caregiver_satisfaction_score', '', ['class' => 'form-control']) }} |
1-7 = {{ __('consultations.low_risk') }}
8-19 = {{ __('consultations.harmful_drinking') }}
20 or above = {{ __('consultations.likely_dependency') }}
| {{ __('consultations.history') }} | |||
|---|---|---|---|
| {{ $consultation_note->history_comments ?? '' }} | By {{ get_full_name($consultation_note->created_by, 'id', 'first_name', 'last_name', 'users') }} on {{ streamline_date_time($consultation_note->created_at) ?? '' }} | ||
{{ __('consultations.no_previous_notes') }} | |||
| {{ __('consultations.clinical_examination') }} | |||
|---|---|---|---|
| {{ $consultation_note->clinic_examination_comments ?? '' }} | By {{ get_full_name($consultation_note->created_by, 'id', 'first_name', 'last_name', 'users') }} on {{ streamline_date_time($consultation_note->created_at) ?? '' }} | ||
{{ __('consultations.no_previous_notes') }} | |||
| {{ __('consultations.investigation_and_mgt_plan') }} | |||
|---|---|---|---|
| {{ $consultation_note->investigation_and_management_plan_comments ?? '' }} | By {{ get_full_name($consultation_note->created_by, 'id', 'first_name', 'last_name', 'users') }} on {{ streamline_date_time($consultation_note->created_at) ?? '' }} | ||
{{ __('consultations.no_previous_notes') }} | |||
| {{ __('consultations.PRIMARY_DIAGNOSIS') }} | {{ __('consultations.PROMPT') }} | {{ __('consultations.REFERENCES') }} |
|---|---|---|
|
{{ Form::select('primary_diagnosis', $diagnoses, $parent_consultation_details->primary_diagnosis, ['id'=>'primary_diagnosis', 'class' => 'form-control col-sm-12 compulsory']) }}
(As diagnosed on {{ streamline_date($parent_episode_details->created_at) }}) |
{{ $diagnoses_all->firstWhere('id',$parent_consultation_details->primary_diagnosis)->prompts?? '' }}
|
@if(!is_null($parent_consultation_details->primary_diagnosis))
@php
$reference_names = explode(",", get_name($parent_consultation_details->primary_diagnosis, 'id', 'reference_names', 'diagnoses'));
$reference_areas = explode(",", get_name($parent_consultation_details->primary_diagnosis, 'id', 'reference_areas', 'diagnoses'));
@endphp
@for($i = 0; $i < count($reference_areas); $i++)
@if(isset($reference_areas[$i]) && isset($reference_names[$i]))
{{ $reference_names[$i] }} |
@endif
@endfor
@endif
|
|
{{ Form::select('primary_diagnosis', $diagnoses, '', ['id'=>'primary_diagnosis','class' => 'form-control col-sm-12 compulsory primaryDiagnosis', 'required', 'onchange' => 'get_diagnosis_info(this.value)']) }}
|
||
| {{ __('consultations.add_new_diagnosis') }} | ||
| {{ __('consultations.OTHER_DIAGNOSIS') }} | {{ __('consultations.PROMPT') }} | {{ __('consultations.REFERENCES') }} | |
|---|---|---|---|
| RDT | RBS | |
|---|---|---|
| {{ Form::checkbox('rdt', 1, false, ['id'=>'rdt_pos']) }} | {{ Form::checkbox('rdt', 0, false, ['id'=>'rdt_neg']) }} | {{ Form::text('rbs','',['class'=>'form-control', 'placeholder'=>'(mm/l)']) }} |
| {{ __('investigations.investigation_name') }} | {{ __('investigations.results') }} | {{ __('investigations.normal_ranges') }} | {{ __('investigations.unit') }} | {{ __('investigations.comment') }} |
|---|---|---|---|---|
| {{ __('consultations.investigation_for_episode_of') }} {{ streamline_date($grand_parent_episode_details->created_at) }} | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | @if($investigation->range_type == 1) {{ get_dynamic_normal_range($investigation->id, get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ $investigation->normal_ranges }} @endif | {!! $per_investigation_array[$i] == 0 ? '{{ __("consultations.pending") }}' : $results_values[$i] !!} | {!! $per_investigation_array[$i] == 0 ? '{{ __("consultations.pending") }}' : ($comments[$i] ?? '') !!} | |
| {{ __('consultations.authenticated_by') }} | {{ get_name($result->authenticated_by, 'id', 'first_name', 'users')}} {{ get_name($result->authenticated_by, 'id', 'last_name', 'users')}} | |||
| {{ __('consultations.investigation_for_episode_of') }} {{ streamline_date($grand_parent_episode_details->created_at) }} | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | @if($investigation->range_type == 1) {{ get_dynamic_normal_range($investigation->id, get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ $investigation->normal_ranges }} @endif | {{ __('consultations.pending') }} | {{ $investigation->comments }} | |
| {{ __('consultations.investigation_for_episode_of') }} {{ streamline_date($parent_episode_details->created_at) }} | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | @if($investigation->range_type == 1) {{ get_dynamic_normal_range($investigation->id, get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ $investigation->normal_ranges }} @endif | {!! $per_investigation_array[$i] == 0 ? '{{ __("consultations.pending") }}' : $results_values[$i] !!} | {!! $per_investigation_array[$i] == 0 ? '{{ __("consultations.pending") }}' : $comments[$i] !!} | |
| {{ __('consultations.authenticated_by') }} | {{ get_name($result->authenticated_by, 'id', 'first_name', 'users')}} {{ get_name($result->authenticated_by, 'id', 'last_name', 'users')}} | |||
| {{ __('consultations.investigation_for_episode_of') }} {{ streamline_date($parent_episode_details->created_at) }} | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | @if($investigation->range_type == 1) {{ get_dynamic_normal_range($investigation->id, get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ $investigation->normal_ranges }} @endif | {{ __('consultations.pending') }} | {{ $investigation->comments }} | |
| {{ __('consultations.investigation_for_review') }} ({{ streamline_date($episode->created_at)}}) | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | ||||
| {{ get_name($variable_id_array[$x], 'id', 'name', 'investigation_specialised_variables') }} | {{ $variable_value_array[$x] }} | @if(get_name($variable_id_array[$x], 'id', 'range_type', 'investigation_specialised_variables') == 1) {{ get_dynamic_normal_range_specialized($variable_id_array[$x], get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ get_name($variable_id_array[$x], 'id', 'normal_ranges', 'investigation_specialised_variables') }} @endif | @if(get_name(get_name($variable_id_array[$x], 'id', 'units', 'investigation_specialised_variables'), 'id', 'name', 'unit_of_measure') != "N/A") {{ get_name(get_name($variable_id_array[$x], 'id', 'units', 'investigation_specialised_variables'), 'id', 'name', 'unit_of_measure') }} @endif | {{ $variable_comment_array[$x] }} |
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | @if($per_investigation_array[$i] == 0) {{ __("consultations.pending") }} @else {!! isset($results_values[$i]) ? nl2br(e($results_values[$i])) : "" !!} @endif | @if($investigation->range_type == 1) {{ get_dynamic_normal_range($investigation->id, get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ $investigation->normal_ranges }} @endif | {{ get_name(get_name($investigation->id, 'id', 'units', 'investigations'),'id', 'name', 'unit_of_measure') }} | {!! $per_investigation_array[$i] == 0 ? '{{ __("consultations.pending") }}' : $comments[$i] !!} |
| {{ __('consultations.authenticated_by') }} | {{ get_name($result->authenticated_by, 'id', 'first_name', 'users')}} {{ get_name($result->authenticated_by, 'id', 'last_name', 'users')}} | |||
| {{ __('consultations.investigation_for_review') }} ({{ streamline_date($episode->created_at)}}) | ||||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | @if(($cardio_echo)) View results @else Pending @endif | |||
| @if($investigation->insurance_coverage == 1 && patient_insurance_status($patient_id) == 1) {{ $investigation->name }} @else {{ $investigation->name }} @endif | {{ __('consultations.pending') }} | @if($investigation->range_type == 1) {{ get_dynamic_normal_range($investigation->id, get_patient_age_group($patient_id), get_name($patient_id, 'id', 'gender', 'patients')) }} @else {{ $investigation->normal_ranges }} @endif | {{ $investigation->comments }} | |
{{ __('consultations.investigation_not_ordered') }} {{ check_if_episode_is_a_followup($episode->id) ? __('consultations.during_current_review') : '' }}. |
||||
| {{ __('consultations.SUNDRY') }} | {{ __('consultations.QUANTITY') }} |
|---|---|
| {{ __('consultations.sundries_for_episode_of') }} {{ streamline_date($grand_parent_episode_details->created_at) }} | |
| {{ get_name($sundry_ids[$i], 'id', 'name', 'sundries') }} | {!! $sundry_quantity[$i] !!} |
| {{ __('consultations.sundries_for_episode_of') }} {{ streamline_date($parent_episode_details->created_at) }} | |
| {{ get_name($sundry_ids[$i], 'id', 'name', 'sundries') }} | {!! $sundry_quantity[$i] !!} |
| {{ __('consultations.sundries_for_episode_review') }} ({{ streamline_date($episode->created_at)}}) | |
| {{ get_name($sundry_ids[$i], 'id', 'name', 'sundries') }} | {!! $sundry_quantity[$i] !!} |
{{ __('consultations.no_sundries_ordered') }} {{ check_if_episode_is_a_followup($episode->id) ? __('consultations.during_current_review') : '' }}. |
|
| {{ __('consultations.DRUG_NAME') }} | {{ __('consultations.DOSAGE') }} | {{ __('consultations.DURATION') }} | {{ __('consultations.QUANTITY') }} | {{ __('consultations.STATUS') }} | {{ __('consultations.INSTRUCTION') }} | ||
|---|---|---|---|---|---|---|---|
| {{ __('consultations.treatment_for_episode_of') }} {{ streamline_date($grand_parent_episode_details->created_at) }} | |||||||
| {{ get_name($drugs_array[$x], 'id', "name", 'drugs') }} | {{ $dosage_array[$x] }} {!! $drug_unit !!} {{ $dose2 }} {{ $frequency_name }} | {{ isset($duration_array[$x]) ? $duration_array[$x] : "" }} | {{ isset($quantity_dispensed_array[$x]) ? $quantity_dispensed_array[$x] : 0 }} | @if(isset($purchased_elsewhere_array[$x]) && $purchased_elsewhere_array[$x] == 1)Purchased From Elsewhere | @else @if($treatment->dispense_status == 1){{ __('consultations.dispensed') }} | @else{{ __('consultations.pending') }} | @endif @endif{{ isset($instructions_array[$x]) ? trim($instructions_array[$x]) : 'N/A' }} |
| {{ __('consultations.treatment_for_episode_of') }} {{ streamline_date($parent_episode_details->created_at) }} | |||||||
| {{ get_name($drugs_array[$x], 'id', "name", 'drugs') }} | {{ $dosage_array[$x] }} {!! $drug_unit !!} {{ $dose2 }} {{ $frequency_name }} | {{ isset($duration_array[$x]) ? $duration_array[$x] : "" }} | {{ isset($quantity_dispensed_array[$x]) ? $quantity_dispensed_array[$x] : 0 }} | @if(isset($purchased_elsewhere_array[$x]) && $purchased_elsewhere_array[$x] == 1)Purchased From Elsewhere | @else @if($treatment->dispense_status == 1){{ __('consultations.dispensed') }} | @else{{ __('consultations.pending') }} | @endif @endif{{ isset($instructions_array[$x]) ? trim($instructions_array[$x]) : 'N/A' }} |
| {{ __('consultations.treatment_for_episode_review') }} ({{ streamline_date($episode->created_at)}}) | |||||||
| {{ get_name($drugs_array[$x], 'id', "name", 'drugs') }} @if($treatment->is_treatment_progressive != 0) (Progressive Treatment) @endif | {{ $dosage_array[$x] }} {!! $drug_unit !!} {{ $dose2 }} {{ $frequency_name }} | {{ isset($duration_array[$x]) ? $duration_array[$x] : "" }} | {{ isset($quantity_dispensed_array[$x]) ? $quantity_dispensed_array[$x] : 0 }} | @if(isset($purchased_elsewhere_array[$x]) && $purchased_elsewhere_array[$x] == 1)Purchased From Elsewhere | @else @if($treatment->dispense_status == 1){{ __('consultations.dispensed') }} | @else{{ __('consultations.pending') }} | @endif @endif{{ isset($instructions_array[$x]) ? trim($instructions_array[$x]) : 'N/A' }} |
{{ __('consultations.no_prescription_made_yet') }} {{ check_if_episode_is_a_followup($episode->id) ? 'during current review' : '' }} |
|||||||
| {{ __('consultations.PROCEDURE') }} | {{ __('consultations.STATUS') }} | {{ __('consultations.PERFORMED') }} |
|---|---|---|
| {{ __('consultations.procedures_for_episode_of') }} {{ streamline_date($grand_parent_episode_details->created_at) }} | ||
| {{ get_name($procedure_id[$i], 'id', 'name', 'procedures') }} | {!! $procedure_performed_array[$i] == 1 ? ''.__("consultations.performed").'' : ''. __("consultations.pending").'' !!} | |
| {{ __('consultations.procedures_for_episode_of') }} {{ streamline_date($parent_episode_details->created_at) }} | ||
| {{ get_name($procedure_id[$i], 'id', 'name', 'procedures') }} | {!! $procedure_performed_array[$i] == 1 ? ''.__("consultations.performed").'' : ''. __("consultations.pending").'' !!} | |
| {{ __('consultations.procedures_for_episode_review') }} ({{ streamline_date($episode->created_at)}}) | ||
| {{ get_name($procedure_id[$i], 'id', 'name', 'procedures') }} | {!! $procedure_performed_array[$i] == 1 ? ''.__("consultations.performed").'' : ''. __("consultations.pending").'' !!} | @if($procedure_performed_array[$i] != 1) {{ Form::hidden('perform[]', $procedure_id[$i]) }} {{ Form::hidden('procedure_order_perform[]', $ordered_procedure->id) }} {{ Form::hidden('procedure_performed_position[]', $i) }} @php $procedure_performed_counter++ @endphp @else By {{ get_full_name(get_name($procedure_performed_id_array[$i], 'id', 'performed_by', 'staff_performed_services'), 'id', 'first_name', 'last_name', 'users') }} @endif |
{{ __('consultations.no_procedure_has_been_ordered') }} {{ check_if_episode_is_a_followup($episode->id) ? __('consultations.during_current_review') : '' }}. |
||