@extends('layouts.main') @push('styles') @endpush @section('content')
{{ __('patient_episode.merge_episodes') }}
| {{ __('patient_episode.episode_date') }} | {{ __('patient_episode.clinic') }} | {{ __('patient_episode.patient_diagnosis') }} | {{ __('patient_episode.consultation_by') }} | {{ __('patient_episode.comments') }} | {{ __('patient_episode.select') }} |
|---|---|---|---|---|---|
|
{{ streamline_date_time($patient_episode->created_at) }}
{{ __('patient_episode.started_by') }} {{ get_full_name($patient_episode->created_by, "id", "first_name", "last_name", "users") }} @if(check_if_episode_is_a_followup($patient_episode->id)) @php $original_episode = \Streamline\Models\PatientEpisode::find($patient_episode->parent_episode_id); @endphp ({{ __('patient_episode.review_from') }} {{ $original_episode ? streamline_date($original_episode->created_at) : '' }}) @endif @if(Auth::user()->can('delete-empty-episode') && is_episode_safe_to_delete($patient_episode->id)) {{ __('patient_episode.remove_episode') }} @endif |
@if( Auth::user()->can('view-patient-episode-clinic-from-patient-home')) {{ $clinic }} @endif |
@if( Auth::user()->can('view-patient-episode-primary-diagnoses'))
@if(is_eye_module_enabled() && $is_patient_in_eye_clinic)
@if(count($right_eye_diagnoses) > 0)
@for($x = 0; $x < count($right_eye_diagnoses); $x++)
{{ get_name(get_name($right_eye_diagnoses[$x], 'id', 'diagnosis_category', 'diagnoses'), 'id', 'name', 'diagnosis_categories') }} - {{ $diagnoses[$right_eye_diagnoses[$x]] ?? '' }} @endfor @endif @else {{ __('patient_episode.primary_diagnosis') . ': ' . $primary_diagnosis }} @endif @endif @if( Auth::user()->can('view-patient-episode-other-diagnoses')) @if(is_eye_module_enabled() && $is_patient_in_eye_clinic) @if(count($left_eye_diagnoses) > 0) @for($x = 0; $x < count($left_eye_diagnoses); $x++) {{ get_name(get_name($left_eye_diagnoses[$x], 'id', 'diagnosis_category', 'diagnoses'), 'id', 'name', 'diagnosis_categories') }} - {{ $diagnoses[$left_eye_diagnoses[$x]] ?? '' }} @endfor @endif @else {!! __('patient_episode.other_diagnosis') . ': ' !!} {!! read_more($other_diagnoses, 'other_diagnoses_short' . $patient_episode->id, 'other_diagnoses_long' . $patient_episode->id) !!} @endif @endif |
@php $consultation_done_by = !empty($anc->created_by)? $anc->created_by :get_doctor_who_completed_episode_consultation($patient_episode->id); @endphp @if(!is_null($consultation_done_by)) {{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }} @endif @if($patient_episode->episode_type == 1) {{ __('patient_flow_monitoring.lab_self_request') }} @endif | {!! read_more($triage_and_consultation_comments, 'short_comment' . $patient_episode->id, 'long_comment' . $patient_episode->id) !!} | |
|
@if($inpatient_info->discharged)
{{ __('patient_episode.discharged') }} on {{ streamline_date($inpatient_info->discharged_on) }}
By {{ get_full_name($inpatient_info->discharged_by, "id", "first_name", "last_name", "users") }} @else {{ __('patient_episode.admitted') }} on {{ streamline_date($inpatient_info->admitted_on) }} By {{ get_full_name($inpatient_info->created_by, "id", "first_name", "last_name", "users") }} @endif |
{{ get_name($inpatient_info->ward_id, "id", "name", "wards") }} | @php $sec_diagnoses = (!is_null($inpatient_info->other_diagnoses) && !is_null(unserialize($inpatient_info->other_diagnoses))) ? array_values(unserialize($inpatient_info->other_diagnoses)) : [] ; $sec_diagnosis = ""; for ($s = 0; $s < count($sec_diagnoses); $s++) $sec_diagnosis .= get_name($sec_diagnoses[$s], "id", "name", "diagnoses") . ", "; @endphp@if( Auth::user()->can('view-patient-episode-primary-diagnoses')) {{ get_name($inpatient_info->primary_diagnosis, "id", "name", "diagnoses") }} @endif @if( Auth::user()->can('view-patient-episode-other-diagnoses')) {!! read_more($sec_diagnosis, 'sec_diagnosis_short' . $episode_id, 'sec_diagnosis_long' . $episode_id) !!} @endif | @php $consultation_done_by = !empty($anc->created_by)? $anc->created_by :get_doctor_who_has_done_episode_consultation($patient_episode->patient_id, $patient_episode->id); @endphp @if(!is_null($consultation_done_by)) {{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }} @endif | {{ $inpatient_info->comments }} | @if(get_name($inpatient_info->ward_id, "id", "slug", "wards") == "maternity") @else @endif |
|
@if($theatre_information['surgery_completed'])
{{ __('patient_episode.surgery_complete') }}
@else
{{ __('patient_episode.surgery_not_complete') }}
@endif
@if($theatre_information['anaesthesia_completed']) {{ __('patient_episode.anaesthesia_complete') }} @else {{ __('patient_episode.anaesthesia_not_complete') }} @endif |
{{ __('patient_episode.procedure') }}: {{ $theatre_information['procedure_name'] }}
{{ __('patient_episode.surgery_type') }}: {{ $theatre_information['surgery_type'] }} |
{{ __('patient_episode.outcome') }}: {{ $theatre_information['outcome'] }} | @php $consultation_done_by = !empty($anc->created_by)? $anc->created_by :get_doctor_who_has_done_episode_consultation($patient_episode->patient_id, $patient_episode->id); @endphp @if(!is_null($consultation_done_by)) {{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }} @endif | {{ $theatre_information['comments'] }} | |
| @if($episode_appointment->appointment_fulfilled == 1) {{ __('patient_episode.follow_up') }} @else {{ __('patient_episode.follow_up_complete') }} @endif | {{ __('patient_episode.clinic') }}: {{ get_name($episode_appointment->clinic_allocation, 'id', 'name', 'clinics') }} |
{{ __('patient_episode.appointment_date') }}: {{ is_null($episode_appointment->appointment_date) ? '' : streamline_date($episode_appointment->appointment_date) }}
{{ __('patient_episode.in_charge') }}: {{ get_full_name($episode_appointment->incharge_id, 'id', 'first_name', 'last_name', 'users') != "ALL STAFF" ? get_full_name($episode_appointment->incharge_id, 'id', 'first_name', 'last_name', 'users') : "N/A" }} |
@php $consultation_done_by = !empty($anc->created_by)? $anc->created_by : get_doctor_who_has_done_episode_consultation($patient_episode->patient_id, $patient_episode->id); @endphp @if(!is_null($consultation_done_by)) {{ get_full_name($consultation_done_by, "id", "first_name", "last_name", "users") }} @endif | {{ $episode_appointment->comments }} |