@extends('layouts.main') @section('content')
| {{ __('patients.patient_number') }} | {{ $patient->number }} |
|---|---|
| Code |
{{ getDNS1DBarcodePNGOtherOption(sprintf("%04u", $patient->id)) }}
{{ sprintf("%04u", $patient->id) }} |
| {{ __('patients.full_names') }} | {{ $patient->first_name }} {{ $patient->last_name }} |
| {{ __('patients.gender') }} | {{ $patient->gender == 1 ? 'Male' : 'Female' }} |
| {{ __('patients.age') }} | {{ get_patients_age($patient->date_of_birth) }} |
| {{ __('patients.phone') }} | {{ $patient->phone }} |
|---|---|
| {{ __('patients.occupation') }} | {{ isset($occupations[$patient->occupation_id]) ? $occupations[$patient->occupation_id] : '' }} |
| {{ __('patients.insurance') }} | {{ $patient->insurance_status == 1 ? __('patients.yes') : __('patients.no') }} |
| {{ __('patients.religion') }} | {{ isset($religions[$patient->religion_id]) ? $religions[$patient->religion_id] : '' }} |
| {{__('patients.next_of_kin')}} | {{ $patient->next_of_kin }} |
| {{ __('patients.next_of_kin_relationship') }} | {{ isset($relationships[$patient->next_of_kin_relationship]) ? $relationships[$patient->next_of_kin_relationship] : '' }} |
| {{__('patients.phone_of_next_of_kin')}} | {{ $patient->phone_of_next_of_kin }} |
| {{ __('patients.district') }} | {{ isset($districts[$patient->district_id]) ? $districts[$patient->district_id] : '' }} |
|---|---|
| {{ __('patients.county') }} | {{ isset($counties[$patient->county_id]) ? $counties[$patient->county_id] : '' }} |
| {{ __('patients.sub_county') }} | {{ isset($subcounties[$patient->subcounty_id]) ? $subcounties[$patient->subcounty_id] : '' }} |
| {{ __('patients.parish') }} | {{ isset($parishes[$patient->parish_id]) ? $parishes[$patient->parish_id] : '' }} |
| {{ __('patients.village') }} | {{ isset($villages[$patient->village_id]) ? $villages[$patient->village_id] : '' }} |
| {{ __('patients.last_patient_visit') }} : |
@if(!is_null($last_episode))
@php
$diagnosis = null;
$primary_diagnosis_id = get_name($last_episode->id, 'episode_id', 'primary_diagnosis', 'consultations');
if($primary_diagnosis_id != "N/A" && $primary_diagnosis_id != ""){
$diagnosis = \Streamline\Models\Diagnosis::withTrashed()->find($primary_diagnosis_id);
}
@endphp
{{ __('patients.primary_diagnosis') }} : {{ !is_null($diagnosis) ? $diagnosis->name : '' }} {{ __('patients.comments') }} : {{ get_name($last_episode->id, 'episode_id', 'comments', 'consultations') }} @endif {{ __('patients.date') }} : {{ !is_null($last_episode) ? streamline_date($last_episode->created_at) : __('patients.no_visit_yet') }} |
|---|---|
| {{ __('patients.date_registered') }} : | {{streamline_date($patient->created_at) }} |
| {{ __('patients.created_by') }} : | {{ get_full_name($patient->created_by, "id", "first_name", "last_name", "users") }} |
| {{ __('patients.mother_name') }}: | {{ get_full_name($mother_id, "id", "first_name", "last_name", "patients") }} ({{ get_name($mother_id, "id", "number", "patients") }}) |
| {{ __('patients.children') }}: |
|