mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
resolved conflicts
This commit is contained in:
+719
@@ -0,0 +1,719 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16"
|
||||
href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Streamline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('elite/bootstrap/dist/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
<!-- Custom CSS -->
|
||||
<link href="{{ asset('elite/css/style.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<style>
|
||||
thead {
|
||||
display: table-header-group;
|
||||
background-color: rgba(0, 0, 0, 0.075) !important;
|
||||
}
|
||||
thead>tr>th[colspan]{
|
||||
text-align: center !important;
|
||||
font-weight: bold !important;
|
||||
|
||||
}
|
||||
.heading {
|
||||
background-color: rgba(0, 0, 0, 0.075) !important;
|
||||
font-weight: bold !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid !important;
|
||||
}
|
||||
.table {
|
||||
border-collapse: collapse;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
|
||||
border-radius: 3px !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="white-box">
|
||||
<img style="max-width: 300px; max-height: 100px;" src="{{ asset('uploads/streamline_images/coat_of_arms.png') }}" class="mx-auto d-block mx-3" alt="Responsive image">
|
||||
<p class="h6 text-center mt-0 font-weight-bold">Ministry of Health</p>
|
||||
<h3 class="heading" style="text-align: center; text-decoration: underline;">{{ __('antenatal.ant_card') }}</h3>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2">Health Unit: {{ $hospitalInfo->name }}</td>
|
||||
<td colspan="2"> Reg no: {{ $hospitalInfo->code }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name: {{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
<td>NIN: {{ strtoupper($patient->national_id) }}</td>
|
||||
<td>Phone No: {{ $patient->phone }}</td>
|
||||
<td>Age: {{ get_patients_age($patient->date_of_birth) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Village: {{ $patient->village }}</td>
|
||||
<td>Parish: {{ $patient->parish }}</td>
|
||||
<td>Sub-county: {{ $patient->subcounty }}</td>
|
||||
<td>District: {{ $patient->district }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Occupation: {{ $patient->occupation }}</td>
|
||||
<td>Religion: {{ $patient->religion }}</td>
|
||||
<td>Education level: ________</td>
|
||||
<td>Tribe: __________</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">Marital Status: {{ $patient->marital_status }}</td>
|
||||
</tr>
|
||||
<tr class="heading">
|
||||
<td colspan="4">Next of Kin</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name: {{ $patient->next_of_kin }}</td>
|
||||
<td>Phone No: {{ $patient->phone_of_next_of_kin }}</td>
|
||||
<td>Relationship: {{ $patient->family_relation }}</td>
|
||||
<td>Address: __________</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
Gravida: {{ $anc_registration_details->gravida }}
|
||||
</div>
|
||||
<div class="col">
|
||||
Para: {{ $anc_registration_details->para }}
|
||||
</div>
|
||||
<div class="col">
|
||||
Abortions: {{ $anc_registration_details->abortion }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col"><br>
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="5">PRESENT PREGNANCY</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Complaints</th>
|
||||
<th>LNMP</th>
|
||||
<th>EDD</th>
|
||||
<th>Weeks of Amenorrhea</th>
|
||||
<th>Complications</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ streamline_date($anc_registration_details->lmp) }}</td>
|
||||
<td>{{ streamline_date($anc_registration_details->edd) }}</td>
|
||||
<td>{!! $anc_registration_details->woa_weeks !!}</td>
|
||||
<td>
|
||||
@php
|
||||
$complications = explode(',', $anc_registration_details->complications);
|
||||
$menses = ['1' => __('antenatal.heavy'), '2' => __('antenatal.normal')];
|
||||
@endphp
|
||||
@if (!empty($complications))
|
||||
@if (in_array(1,$complications)) <li> {{ __('antenatal.bleeding') }} </li> @endif
|
||||
@if (in_array(2,$complications)) <li> {{ __('antenatal.excessive_vomiting') }} </li> @endif
|
||||
@if (in_array(3,$complications)) <li> {{ __('antenatal.others') }} : {{ $anc_registration_details->other_complications }} </li> @endif
|
||||
@else
|
||||
None
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col"><br>
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">MENSTRUAL AND CONTRACEPTIVE HISTORY</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Length of menses</th>
|
||||
<th>Amount</th>
|
||||
<th>Family Planning Method</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ $mother_history->menses_length?? '' }}</td>
|
||||
<td>{{ !empty($mother_history->menses_amount)? $menses[$mother_history->menses_amount]: '' }}</td>
|
||||
<td>{{ !empty($mother_history->family_planning)? $family_planning_methods[$mother_history->family_planning]: '' }} <br> Date Discontinued: {{ !empty($mother_history->date_discontinued)? streamline_date(Carbon\Carbon::createFromFormat('d/m/Y', $mother_history->date_discontinued)->toDateString()):'' }} <br> Reason: {{ $mother_history->why_stop_family_planning?? '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">PREVIOUS ILLNESS</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Presentations for over 2 weeks</th>
|
||||
<th>Medical</th>
|
||||
<th>Medications</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@php
|
||||
$medical_presentations = !empty($mother_history->medical_presentations)? explode(',', $mother_history->medical_presentations):[];
|
||||
$any_medications = !empty($mother_history->any_medications)? explode(',', $mother_history->any_medications):[];
|
||||
$surgical_history =!empty($mother_history->surgical_history)? explode(',', $mother_history->surgical_history):[];
|
||||
$obs_gyn =!empty($mother_history->obs_gyn)? explode(',', $mother_history->obs_gyn):[];
|
||||
$family_history =!empty($mother_history->family_history)? explode(',', $mother_history->family_history):[];
|
||||
$fractures =!empty($mother_history->fractures)? explode(',', $mother_history->fractures):[];
|
||||
$fracture_details = !empty($mother_history->fracture_details)? json_decode($mother_history->fracture_details, true):[];
|
||||
$uterine_surgeries = !empty($mother_history->uterine_surgeries)? json_decode($mother_history->uterine_surgeries, true):[];
|
||||
$other_surgeries = !empty($mother_history->other_surgeries)? json_decode($mother_history->other_surgeries, true):[];
|
||||
$condition_names = [
|
||||
1=> __('antenatal.sti'), 2=> __('antenatal.cardiac_disease'), 3=> __('antenatal.asthma'), 4=> __('antenatal.sickel_cell'), 5=> __('antenatal.kidney_disease'),
|
||||
6=> __('antenatal.diabetes'), 7=> __('antenatal.hypertension'), 8=> __('antenatal.ted'), 9=> __('antenatal.epilepsy'), 10=> __('antenatal.tb'),11=> __('antenatal.polio'),
|
||||
12=> __('antenatal.anaemia'), 13=> __('antenatal.herpes'), 14=> __('antenatal.hiv'), 15=> __('antenatal.oral_thrush'), 16=> __('antenatal.l_glands'),
|
||||
17=> __('antenatal.herpes_simplex'), 18=> __('antenatal.dermatitis'), 19=> __('antenatal.others')
|
||||
];
|
||||
@endphp
|
||||
<td></td>
|
||||
<td>
|
||||
<ul>
|
||||
@forelse ($medical_presentations as $previous_medical_condition)
|
||||
@if ($previous_medical_condition == 19)
|
||||
<li>{{ $condition_names[$previous_medical_condition]?? '' }}: {{ $mother_history->medical_presentations_others_input }}</li>
|
||||
@else
|
||||
<li>{{ $condition_names[$previous_medical_condition]?? '' }}</li>
|
||||
@endif
|
||||
@empty
|
||||
None
|
||||
@endforelse
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($any_medications))
|
||||
@if (in_array(1,$any_medications)) <li> {{ __('antenatal.arv') }} </li> @endif
|
||||
@if (in_array(2,$any_medications)) <li> {{ __('antenatal.others') }} : {{ $mother_history->other_any_medications }} </li> @endif
|
||||
@else
|
||||
None
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col">
|
||||
<table class="table table-sm color-table table-bordered">
|
||||
<tbody>
|
||||
<tr class="heading">
|
||||
<td colspan="3">Surgical</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
@if (!empty($surgical_history))
|
||||
@if (in_array(1,$surgical_history)) <li> {{ __('antenatal.operations') }} : {{ $mother_history->surgical_history_operations }} </li> @endif
|
||||
@if (in_array(2,$surgical_history)) <li> {{ __('antenatal.blood_transfusion') }} had : {{ $mother_history->surgical_history_blood_transfusion }} </li> @endif
|
||||
@else
|
||||
None
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="heading">
|
||||
<td>{{ __('antenatal.fractures') }}</td>
|
||||
<td>{{ __('antenatal.date') }}</td>
|
||||
<td>{{ __('antenatal.details') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@forelse ($fractures as $fracture)
|
||||
<tr>
|
||||
@php
|
||||
if (!empty($fracture_details[$fracture-1]['date'])) {
|
||||
$date = Carbon\Carbon::createFromFormat('d/m/Y', $fracture_details[$fracture-1]['date'])->toDateString();
|
||||
}
|
||||
@endphp
|
||||
<td>
|
||||
@if ($fracture == 1)
|
||||
{{ __('antenatal.pelvis') }}
|
||||
@elseif ($fracture == 2)
|
||||
{{ __('antenatal.spine') }}
|
||||
@elseif ($fracture == 3)
|
||||
{{ __('antenatal.femur') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ streamline_date($date)?? '' }}</td>
|
||||
<td>{{ $fracture_details[$fracture-1]['details']?? '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="3"><code>No {{ __('antenatal.fractures') }} Recorded</code></td></tr>
|
||||
@endforelse
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>OBS/GYN</th>
|
||||
<th>Social History</th>
|
||||
<th>Risk of S/GBV</th>
|
||||
<th>Family History</th>
|
||||
<th>Health of the Husband/partner</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
@php
|
||||
$observations = !empty($triage)? explode(",", $triage->observations):[];
|
||||
@endphp
|
||||
@if (in_array('Alcohol use=High', $observations) || in_array('Alcohol use=Moderate', $observations) || in_array('Alcohol use=Low', $observations))
|
||||
Alcohol <br>
|
||||
@endif
|
||||
@if (in_array('Tobacco use=High', $observations) || in_array('Tobacco use=Moderate', $observations) || in_array('Tobacco use=Low', $observations))
|
||||
Smoking
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($mother_history->sgbv) && $mother_history->sgbv == 1)
|
||||
@php
|
||||
$risks =!empty($mother_history->sgbv_risk)? explode(',', $mother_history->sgbv_risk):[];
|
||||
@endphp
|
||||
@foreach ($risks as $risk)
|
||||
<li>{{ $gender_based_violence[$risk] }}</li>
|
||||
@endforeach
|
||||
@else
|
||||
<li>No</li>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($family_history))
|
||||
@if (in_array(1,$family_history)) <li> {{ __('antenatal.diabetes') }} </li> @endif
|
||||
@if (in_array(2,$family_history)) <li> {{ __('antenatal.sickel_cell') }} </li> @endif
|
||||
@if (in_array(3,$family_history)) <li> {{ __('antenatal.hypertension') }} </li> @endif
|
||||
@if (in_array(4,$family_history)) <li> {{ __('antenatal.twins') }} </li> @endif
|
||||
@if (in_array(5,$family_history)) <li> {{ __('antenatal.others') }} </li> @endif
|
||||
@else
|
||||
None
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $mother_history->husband_health?? '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<th colspan="2">PHYSICAL EXAMINATION</th>
|
||||
</thead>
|
||||
@php
|
||||
$physical_exam = !empty($latest_anc_visit)? json_decode($latest_anc_visit->physical_exam, true):[];
|
||||
$height = '';
|
||||
if(!empty($physical_exam['height'])) $height = ($physical_exam['height'] < 4)? $physical_exam['height'] * 100 .'cm': $physical_exam['height'].'cm';
|
||||
$temp = !empty($physical_exam['temperature'])? $physical_exam['temperature'].'<sup>o</sup>C':'Unknown';
|
||||
$pregnancy_comments = [];
|
||||
@endphp
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Gait: {{ $physical_exam['gait']?? 'Unknown' }} </td>
|
||||
<td>Height: {{ $height?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Weight: {{ !empty($physical_exam['weight'])? $physical_exam['weight'].'kg':'Unknown' }}</td>
|
||||
<td>BP: {{ !empty($physical_exam['bp'])? $physical_exam['bp'].'mmHg':'Unknown' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pulse: {{ $physical_exam['pulse']?? 'Unknown' }}</td>
|
||||
<td>Temperature: {!! $temp !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>MUAC: {{ $physical_exam['muac']?? 'Unknown' }}</td>
|
||||
<td>Nutritional status: {{ $physical_exam['nut_status']?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr class="heading">
|
||||
<td colspan="4">Examine and Comment on the following</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Oral thrush: {{ $physical_exam['oral']?? 'Unknown' }}</td>
|
||||
<td>Anaemia: {{ $physical_exam['anaemia']?? 'Unknown' }}</td>
|
||||
<td>Teeth: {{ $physical_exam['teeth']?? 'Unknown' }}</td>
|
||||
<td>Eyes: {{ $physical_exam['eyes']?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Neck: {{ $physical_exam['neck']?? 'Unknown' }}</td>
|
||||
<td>Nails: {{ $physical_exam['nails']?? 'Unknown' }}</td>
|
||||
<td>Breasts: {{ $physical_exam['breasts']?? 'Unknown' }}</td>
|
||||
<td>Palms: {{ $physical_exam['palms']?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Legs: {{ $physical_exam['legs']?? 'Unknown' }}</td>
|
||||
<td>Jaundice: {{ $physical_exam['jaundice']?? 'Unknown' }}</td>
|
||||
<td>Deformities: {{ $physical_exam['deformities']?? 'Unknown' }}</td>
|
||||
<td>Heart: {{ $physical_exam['heart']?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Lymph Nodes: {{ $physical_exam['lymph']?? 'Unknown' }}</td>
|
||||
<td>Lungs: {{ $physical_exam['lungs']?? 'Unknown' }}</td>
|
||||
<td colspan="2">Herpes zooster: {{ $physical_exam['herpes']?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
<tr class="heading">
|
||||
<td colspan="4">Pelvic Examination</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Vulva: {{ $physical_exam['vulva']?? 'Unknown' }}</td>
|
||||
<td>Cervix: {{ $physical_exam['cervix']?? 'Unknown' }}</td>
|
||||
<td>Vagina: {{ $physical_exam['vagina']?? 'Unknown' }}</td>
|
||||
<td>Abnormal vaginal discharge: {{ $physical_exam['vaginal_discharge']?? 'Unknown' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="15">PREVIOUS OBSTETRIC HISTORY</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"></th>
|
||||
<th colspan="2">ABORTIONS</th>
|
||||
<th colspan="6">DETAILS OF DELIVERIES</th>
|
||||
<th colspan="5">CHILD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pregnancy</th>
|
||||
<th>Year</th>
|
||||
<th>Below 12 wks</th>
|
||||
<th>Above 12 wks</th>
|
||||
<th>Pre-mature</th>
|
||||
<th>Full-term</th>
|
||||
<th>Type of Delivery</th>
|
||||
<th>Place of Delivery</th>
|
||||
<th>Third Stage</th>
|
||||
<th>Puerperium</th>
|
||||
<th>Alive SB/NN</th>
|
||||
<th>Sex</th>
|
||||
<th>Birth Weight</th>
|
||||
<th>{{ __('antenatal.child_immunisation_status') }}</th>
|
||||
<th>{{ __('antenatal.health_condition') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($obstetric_history_details as $key => $obstetric_history)
|
||||
@php
|
||||
$children =[];
|
||||
if(!empty($obstetric_history->children)) $children = json_decode($obstetric_history->children);
|
||||
$full_term = [37,38,39, 40,41,42];
|
||||
$delivery_types = ['1' => __('antenatal.vaginal_delivery'), '2' => __('antenatal.vacuum_delivery'), '3' => __('antenatal.forceps_delivery'), '4' => __('antenatal.c_section'),'5' => __('antenatal.vbac')];
|
||||
$imunisation = ['1' => __('antenatal.not_started'), '2' => __('antenatal.ongoing'), '3' => __('antenatal.completed')];
|
||||
if(!empty($obstetric_history->comments)) $pregnancy_comments[] = $obstetric_history->comments;
|
||||
@endphp
|
||||
<tr>
|
||||
<td rowspan="{{ count($children) + 1 }}">{{ $key + 1 }}</td>
|
||||
<td rowspan="{{ count($children) + 1 }}">{{ streamline_date($obstetric_history->obstetric_date) }}</td>
|
||||
<td rowspan="{{ count($children) + 1 }}">
|
||||
@if ($obstetric_history->gestation < 12 && $obstetric_history->outcome == 5)
|
||||
Yes
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
<td rowspan="{{ count($children) + 1 }}">
|
||||
@if ($obstetric_history->gestation > 12 && $obstetric_history->outcome == 5)
|
||||
Yes
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
<td rowspan="{{ count($children) + 1 }}">
|
||||
@if ($obstetric_history->gestation < 37 && ($obstetric_history->outcome == 1 || $obstetric_history->outcome == 2))
|
||||
Yes
|
||||
@else
|
||||
No
|
||||
@endif
|
||||
</td>
|
||||
<td rowspan="{{ count($children) + 1 }}">
|
||||
@if (in_array($obstetric_history->gestation, $full_term) && ($obstetric_history->outcome == 1 || $obstetric_history->outcome == 2))
|
||||
Yes
|
||||
@else
|
||||
No
|
||||
@endif
|
||||
</td>
|
||||
<td rowspan="{{ count($children) + 1 }}">{{ !empty($delivery_types[$obstetric_history->delivery_type])? $delivery_types[$obstetric_history->delivery_type]:'' }}</td>
|
||||
<td rowspan="{{ count($children) + 1 }}"></td>
|
||||
<td rowspan="{{ count($children) + 1 }}"></td>
|
||||
<td rowspan="{{ count($children) + 1 }}">{{ $obstetric_history->puerperium?? '' }}</td>
|
||||
@if (empty($children))
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
@endif
|
||||
</tr>
|
||||
@forelse ($children as $child)
|
||||
<tr>
|
||||
<td>Alive</td>
|
||||
<td>{{ ($child->gender == '1')? 'Male':'Female' }}</td>
|
||||
<td>{{ $child->birth_weight.'kg' }}</td>
|
||||
<td>{{ !empty($child->immunisation_status)? $imunisation[$child->immunisation_status]:'' }}</td>
|
||||
<td>{{ $child->health_condition?? '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
@endforelse
|
||||
@empty
|
||||
<tr><td colspan="15"><code>No {{ __('antenatal.past_obstetric_history') }} Recorded</code></td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Comment(s) about previous pregnancies:
|
||||
<ul>
|
||||
@forelse ($pregnancy_comments as $pregnancy_comment)
|
||||
<li>{{ $pregnancy_comment }}</li>
|
||||
@empty
|
||||
None
|
||||
@endforelse
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="18">ANTENATAL PROGRESS EXAMINATION</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>WOA</th>
|
||||
<th>Fundal Height</th>
|
||||
<th>Presentation</th>
|
||||
<th>Position / Lie</th>
|
||||
<th>Relation (PP/Brim)</th>
|
||||
<th>Foetal Heart rate</th>
|
||||
<th>Weight (kg)</th>
|
||||
<th>BP (mmHg)</th>
|
||||
<th>Varicose (V) / Oedema (O)</th>
|
||||
<th>Urine test (Glucose, Protein, gram stain)</th>
|
||||
<th>HB</th>
|
||||
<th>Iron / Folic Acid (No. of Pills)</th>
|
||||
<th>IPT</th>
|
||||
<th>Net Use</th>
|
||||
<th>Complaints and Remarks</th>
|
||||
<th>Return Date</th>
|
||||
<th>Name of Examiner and Cadre</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($anc_visits as $anc_visit)
|
||||
@php
|
||||
$physical_exam = json_decode($anc_visit->physical_exam);
|
||||
$checklist = [];
|
||||
if (!empty($anc_visit->checklist)) {
|
||||
$checklist = json_decode($anc_visit->checklist, true);
|
||||
if(empty($checklist)) $checklist = @unserialize($anc_visit->checklist);
|
||||
if(!is_array($checklist)) $checklist = [];
|
||||
}
|
||||
$other_physicals = explode(',', $anc_visit->other_physicals);
|
||||
$pp_brim = ['1' => '1/5', '2' => '2/5', '3' => '3/5', '4' => '4/5', '5' => '5/5'];
|
||||
$lmp_date = Carbon\Carbon::parse($anc_registration_details->lmp);
|
||||
$visit_date = Carbon\Carbon::parse($anc_visit->ante_natal_clinic_date);
|
||||
$days = $lmp_date->diffInDays($visit_date);
|
||||
$weeks = floor($days / 7);
|
||||
$dayRemainder = $days % 7;
|
||||
$woa_weeks = $weeks.'<sup>'.$dayRemainder.'</sup>';
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ streamline_date($anc_visit->ante_natal_clinic_date) }}</td>
|
||||
<td>{!! $woa_weeks !!}</td>
|
||||
<td>{{ $anc_visit->fundal_height }}</td>
|
||||
<td>{{ $anc_presentations[$anc_visit->presentation] ?? '' }}</td>
|
||||
<td>{{ $anc_positions[$anc_visit->position] ?? '' }} / {{ $anc_lies[$anc_visit->lie] ?? '' }}</td>
|
||||
<td>{{ $pp_brim[$anc_visit->pp_brim] ?? '' }}</td>
|
||||
<td>{{ $anc_visit->foetal_heart_rate }}</td>
|
||||
<td>{{ $physical_exam->weight?? '' }}</td>
|
||||
<td>{{ $physical_exam->bp }}</td>
|
||||
<td>
|
||||
@if (in_array(1, $other_physicals) || in_array(3, $other_physicals))
|
||||
V and O
|
||||
@elseif (in_array(1, $other_physicals))
|
||||
O
|
||||
@elseif (in_array(3, $other_physicals))
|
||||
V
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
<td>Urine</td>
|
||||
<td>HB</td>
|
||||
<td>
|
||||
@if (in_array("Iron/Folic", $checklist))
|
||||
Yes
|
||||
@else
|
||||
Unknown
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (in_array("First Dose IPT", $checklist))
|
||||
{{ __('antenatal.first_dose_ipt') }} <br>
|
||||
@endif
|
||||
@if (in_array("Second Dose IPT", $checklist))
|
||||
{{ __('antenatal.second_dose_ipt') }} <br>
|
||||
@endif
|
||||
@if (in_array("Third Dose IPT", $checklist))
|
||||
{{ __('antenatal.third_dose_ipt') }} <br>
|
||||
@endif
|
||||
@if (in_array("Fourth Dose IPT", $checklist))
|
||||
{{ __('antenatal.fourth_dose_ipt') }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (in_array("Bednet", $checklist))
|
||||
Yes
|
||||
@else
|
||||
Unknown
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $anc_visit->history_comments?? '' }} <hr> {{ $anc_visit->clinic_examination_comments?? '' }}</td>
|
||||
<td>{{ !empty($anc_visit->followup_when)? streamline_date($anc_visit->followup_when):'' }}</td>
|
||||
<td>{{ $users[$anc_visit->created_by]?? '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="18"><code>Antenatal Progress is not recorded.</code></td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr><th colspan="6">INVESTIGATIONS</th></tr>
|
||||
<tr>
|
||||
<th>Blood Test</th>
|
||||
<th>Hep-B</th>
|
||||
<th>Sickle Cell Screening Report</th>
|
||||
<th>Random Blood Sugar</th>
|
||||
<th>Syphilis Test Results</th>
|
||||
<th>B/S for MPs / RDT for Malaria</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Group: <br>Rh: </td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>{{ ucwords($malaria_inv_result) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-sm table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="6">ULTRASOUND REPORTS</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Gestational Age</th>
|
||||
<th>Placenta (site and Maturity)</th>
|
||||
<th>Amniotic Fluid</th>
|
||||
<th>Complication / Abnormality</th>
|
||||
<th>Comments</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($obs_scan_results as $obs_scan_result)
|
||||
<tr>
|
||||
<td>{{ streamline_date($obs_scan_result->scan_date) }}</td>
|
||||
<td>{{ $obs_scan_result->average_gestational_age?? '' }}</td>
|
||||
<td>{{ $obs_scan_result->placental_site?? '' }}</td>
|
||||
<td>{{ $obs_scan_result->liquor_volume?? '' }}</td>
|
||||
<td>Complication</td>
|
||||
<td>{{ $obs_scan_result->comments?? '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="6"><code>No {{ __('investigations.obstetric_ultrasound_results') }} recorded.</code></td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4>Notes / {{ __('consultations.treatment_given') }}</h4>
|
||||
{{ $anc_registration_details->other_comments }}
|
||||
@php
|
||||
$all_treatments = [];
|
||||
@endphp
|
||||
@foreach ($treatments as $treatment)
|
||||
@php
|
||||
$drugs_array = explode(",", $treatment->drugs);
|
||||
$dosage_array = explode(",", $treatment->doses);
|
||||
$frequencies_array = explode(",", $treatment->frequencies);
|
||||
$duration_array = explode(",", $treatment->durations);
|
||||
@endphp
|
||||
@foreach ($drugs_array as $key => $drug)
|
||||
@php
|
||||
$all_treatments[] = $drugs[$drug].' to be taken '. $dosage_frequencies[$frequencies_array[$key]].' for '.$duration_array[$key];
|
||||
@endphp
|
||||
@endforeach
|
||||
@endforeach
|
||||
<ul>
|
||||
@forelse ($all_treatments as $treatment_given)
|
||||
<li>{{ $treatment_given }}</li>
|
||||
@empty
|
||||
<code>{{ __('consultations.no_prescription_made_yet') }}</code>
|
||||
@endforelse
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Executable
+2455
File diff suppressed because it is too large
Load Diff
+423
@@ -0,0 +1,423 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-7">
|
||||
<h4 class="page-title">{{ __('antenatal.view_anc_visit_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('home.dashboard') }}</a></li>
|
||||
<li><a href="{{ url('/ante_natal_clinic_menu') }}">{{ __('antenatal.anc_menu') }}</a></li>
|
||||
<li class="active">{{ __('antenatal.view_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
<h4 class="text-center"><b>{{ __('antenatal.details_of_anc_visit_of_episode') }}</b> <font color="blue">{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}.</font></h4><br>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.visit_date') }}</th>
|
||||
<td>{{ streamline_date($visit_record_details->ante_natal_clinic_date) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.visit_number') }}</th>
|
||||
<td>{{ $visit_record_details->ante_natal_clinic_visit_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.anc_registration_id') }}</th>
|
||||
<td>{{ $visit_record_details->ante_natal_clinic_registration_id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.fundal_height') }}</th>
|
||||
<td>{{ $visit_record_details->fundal_height }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.scan_edd') }}</th>
|
||||
<td>{{ $visit_record_details->scan_edd }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.gestation_from_edd') }}</th>
|
||||
<td>
|
||||
<div class="input-group form-control border-0">{!! $visit_record_details->gestation_from_edd !!}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.gestation_from_scan') }}</th>
|
||||
<td>{{ $visit_record_details->gestation_from_scan }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.gestation_from_fundal_height') }}</th>
|
||||
<td>{{ $visit_record_details->gestation_from_fundal }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.lie') }}</th>
|
||||
<td>{{ $anc_lies[$visit_record_details->lie] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.presentation') }}</th>
|
||||
<td>{{ $anc_presentations[$visit_record_details->presentation] ?? '' }}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.position') }}</th>
|
||||
<td>{{ $anc_positions[$visit_record_details->position] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.engagement') }}</th>
|
||||
<td>{{ $anc_engagements[$visit_record_details->engagement] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.foetal_heart_rate') }}</th>
|
||||
<td>{{ $visit_record_details->foetal_heart_rate }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.foetal_heart_regularity') }}</th>
|
||||
<td>{{ $visit_record_details->foetal_heart_regularity }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.completion_status') }}</th>
|
||||
<td>{{ $visit_record_details->completion_status }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.aph') }}</th>
|
||||
<td>{{ ($visit_record_details->aph== '1')? 'Yes':'No' }}</td>
|
||||
</tr>
|
||||
@if (!empty($visit_record_details->aph))
|
||||
<tr>
|
||||
<th>{{ __('antenatal.aph_details') }}</th>
|
||||
<td>{{ $visit_record_details->aph_details }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>{{ __('antenatal.fits') }}</th>
|
||||
<td>{{ ($visit_record_details->fits == '1')? 'Yes':'No' }}</td>
|
||||
</tr>
|
||||
@if (!empty($visit_record_details->fits))
|
||||
<tr>
|
||||
<th>{{ __('antenatal.fits_details') }}</th>
|
||||
<td>{{ $visit_record_details->fits_details }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>{{ __('patients.primary_diagnosis') }}</th>
|
||||
<td>{{ isset($diagnoses[$visit_record_details->primary_diagnosis]) ? $diagnoses[$visit_record_details->primary_diagnosis] : "" }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('hmis_reports.other_diagnoses') }}</th>
|
||||
<td>
|
||||
@php
|
||||
$list = [];
|
||||
$other_diagnoses_array = !empty($visit_record_details->other_diagnoses)? explode(',',$visit_record_details->other_diagnoses):[];
|
||||
foreach($other_diagnoses_array as $diagnosis) if(!empty($diagnosis)) $list[]=$diagnoses[$diagnosis];
|
||||
$other_diagnoses = !empty($list)? implode(', ', $list):'';
|
||||
echo $other_diagnoses;
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('inpatient.history') }}</th>
|
||||
<td>{{ $visit_record_details->history_comments }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('consultations.clinical_examination') }}</th>
|
||||
<td>{{ $visit_record_details->clinic_examination_comments }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('consultations.investigation_and_mgt_plan') }}</th>
|
||||
<td>{{ $visit_record_details->investigation_and_management_plan_comments }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.bp') }}</th>
|
||||
<td>{{ $visit_record_details->bp }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.scan') }}</th>
|
||||
<td>{{ $visit_record_details->scan }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.checklist') }}</th>
|
||||
<td>
|
||||
<ul>
|
||||
@php
|
||||
$checklist_array = json_decode($visit_record_details->checklist, true);
|
||||
if (is_array($checklist_array)) {
|
||||
for($i=0; $i < count($checklist_array) ; $i++){
|
||||
if($checklist_array[$i] != ""){
|
||||
echo "<li>". $checklist_array[$i] ."</li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('antenatal.outcome') }}</th>
|
||||
<td>{{ isset($outcomes[$visit_record_details->outcome_id]) ? $outcomes[$visit_record_details->outcome_id] : "" }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="text-center">Delivery Plan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.live_in_support') }}</td>
|
||||
<td>{{ $delivery_plan->live_in_support?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.emergency_support') }}</td>
|
||||
<td>{{ $delivery_plan->emergency_support?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.facility_stay') }}</td>
|
||||
<td>{{ $delivery_plan->facility_stay?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@php
|
||||
$means = ['1' => __('antenatal.foot'), '2' => __('antenatal.car'), '3' => __('antenatal.bike'), '4' => __('antenatal.public_means')];
|
||||
$health_screening = !empty($delivery_plan->health_screening)? explode(',',$delivery_plan->health_screening):[];
|
||||
$health_screening_options = ['1' => __('antenatal.syphillis'), '2' => __('antenatal.sickel_cell'), '3' => __('antenatal.hiv'), '4' => __('antenatal.hepatitis')];
|
||||
foreach ($health_screening as $value) $health_checks[] = $health_screening_options[$value];
|
||||
@endphp
|
||||
<td>{{ __('antenatal.transport_means') }}</td>
|
||||
<td>{{ !empty($delivery_plan->transport_means)? $means[$delivery_plan->transport_means]: '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.home_keeper') }}</td>
|
||||
<td>{{ $delivery_plan->home_keeper?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.delivery_method') }}</td>
|
||||
<td>{{ $delivery_plan->delivery_method?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.family_planning_method_before_next_pregnancy') }}</td>
|
||||
<td>{{ $delivery_plan->family_planning_method?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('antenatal.health_screening') }}</td>
|
||||
<td>{{ !empty($health_checks)? implode(', ', $health_checks):'' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- physical examination --}}
|
||||
@php
|
||||
$physical_exam = json_decode($visit_record_details->physical_exam, true);
|
||||
// isset($physical_exam['oral']) ? ''
|
||||
@endphp
|
||||
|
||||
|
||||
|
||||
{{-- Physical examination --}}
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" class="text-center">Physical Examination Details </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
</table>
|
||||
<div class="row">
|
||||
<div class="col-12 col-md">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th>Oral thrush</th>
|
||||
<td> {{ isset($physical_exam['oral']) ? $physical_exam['oral'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Breasts</th>
|
||||
<td> {{ isset($physical_exam['breasts']) ? $physical_exam['breasts'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Lymph nodes</th>
|
||||
<td>{{ isset($physical_exam['lymph']) ? $physical_exam['lymph'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Eyes</th>
|
||||
<td>{{ isset($physical_exam['eyes']) ? $physical_exam['eyes'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Jaundice</th>
|
||||
<td>{{ isset($physical_exam['jaundice']) ? $physical_exam['jaundice'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-12 col-md">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th>Teeth</th>
|
||||
<td>{{ isset($physical_exam['teeth']) ? $physical_exam['teeth'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Legs</th>
|
||||
<td>{{ isset($physical_exam['legs']) ? $physical_exam['legs'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Herpes zoster</th>
|
||||
<td>{{ isset($physical_exam['herpes']) ? $physical_exam['herpes'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nails</th>
|
||||
<td>{{ isset($physical_exam['nails']) ? $physical_exam['nails'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Heart</th>
|
||||
<td>{{ isset($physical_exam['heart']) ? $physical_exam['heart'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-12 col-md">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th>Neck</th>
|
||||
<td>{{ isset($physical_exam['neck']) ? $physical_exam['neck'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Deformities</th>
|
||||
<td>{{ isset($physical_exam['deformities']) ? $physical_exam['deformities'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Anaemia</th>
|
||||
<td>{{ isset($physical_exam['anaemia']) ? $physical_exam['anaemia'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Palms</th>
|
||||
<td>{{ isset($physical_exam['palms']) ? $physical_exam['palms'] : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Lungs</th>
|
||||
<td>{{ isset($physical_exam['lungs']) ? $physical_exam['lungs'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{{-- pelvic examination --}}
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" class="text-center">Pelvic Examination </th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th style="width:30%">Vulva </th>
|
||||
<td> {{ isset($physical_exam['vulva']) ? $physical_exam['vulva'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="width:30%">Vagina </th>
|
||||
<td> {{ isset($physical_exam['vagina']) ? $physical_exam['vagina'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="width:30%">Cervix </th>
|
||||
<td> {{ isset($physical_exam['cervix']) ? $physical_exam['cervix'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="width:30%">Abnormal Vaginal Discharge </th>
|
||||
<td> {{ isset($physical_exam['vaginal_discharge']) ? $physical_exam['vaginal_discharge'] : '' }}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h4>{{ __('patient_episode.started_by') }}</h4>
|
||||
<span style="color: #009933; display: inline">
|
||||
{!! "<b>".get_name($visit_record_details->created_by, 'id', 'first_name', 'users')."</b>" !!} {!! "<b>".get_name($visit_record_details->created_by, "id", 'last_name', "users")."</b>" !!} on {{ streamline_date_time($visit_record_details->created_at) }}
|
||||
</span>
|
||||
@if(!empty($visit_record_details->updated_by))
|
||||
<br><br>
|
||||
<h4>{{ __('antenatal.updated_by') }}</h4>
|
||||
<span style="color: #009933; display: inline">
|
||||
{!! "<b>".get_name($visit_record_details->updated_by, 'id', 'first_name', 'users')."</b>" !!} {!! "<b>".get_name($visit_record_details->updated_by, "id", 'last_name', "users")."</b>" !!} on {{ streamline_date_time($visit_record_details->updated_at) }}
|
||||
</span>
|
||||
@endif
|
||||
@if(Auth::user()->can('edit-patient-consultation'))
|
||||
<br><br>
|
||||
<a href="/anc_visits/{{ $visit_record_details->id }}/edit" class="btn btn-inverse" style="border-radius: 5px;"><span class="glyphicon glyphicon-edit"></span> {{ __('antenatal.edit_anc_visit') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
@endpush
|
||||
docker/statistics/Modules/Antenatal/Resources/views/ante_natal_clinic/antenatal_visit_edit.blade.php
Executable
+2412
File diff suppressed because it is too large
Load Diff
+2505
File diff suppressed because it is too large
Load Diff
+2776
File diff suppressed because it is too large
Load Diff
+100
@@ -0,0 +1,100 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Ante Natal Clinic</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="{{ url('/ante_natal_clinic_menu') }}">Ante Natal Menu</a></li>
|
||||
<li class="active">Pregnancy registrations</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Pregnancy registered on</th>
|
||||
<th>Number of Visits</th>
|
||||
<th>LMP Date</th>
|
||||
<th>E.D.D</th>
|
||||
<th>Status</th>
|
||||
<th>Registered By</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($anc_registrations) > 0)
|
||||
@foreach($anc_registrations as $pregnancy)
|
||||
<tr>
|
||||
<td>{{ $count }}</td>
|
||||
<td>{{ streamline_date_time_short($pregnancy->created_at) }}</td>
|
||||
<td>
|
||||
@php
|
||||
$visits = \Streamline\Models\AnteNatalClinicFollowup::where(['patient_id' => $pregnancy->patient_id, 'episode_id' => $pregnancy->episode_id])->pluck('id');
|
||||
foreach ($visits as $key => $visit) {
|
||||
$visit_ids[] = $visit;
|
||||
}
|
||||
@endphp
|
||||
@if ($visits->count() > 0)
|
||||
{{ Form::open(['method' => 'POST', 'route' => 'anc_visits.previous_visits', 'target' => "_blank", 'id'=>'previous_visits' ]) }}
|
||||
<input type="hidden" name="visits" id="visits" value='{{ serialize($visit_ids) }}' />
|
||||
<a href="javascript:void(0)" onclick="drill_down()" >{{ commas($visits->count()) }}</a>
|
||||
{{ Form::close() }}
|
||||
@else
|
||||
0
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ streamline_date_time_short($pregnancy->lmp) }}</td>
|
||||
<td>{{ streamline_date_time_short($pregnancy->edd) }}</td>
|
||||
<td>{{ !empty($pregnancy->completed)? 'Completed':'Unknown' }}</td>
|
||||
<td>{{ get_name($pregnancy->created_by, 'id', 'first_name', 'users') }} {{ get_name($pregnancy->created_by, 'id', 'last_name', 'users') }}</td>
|
||||
<td>
|
||||
<a href="/ante_natal_clinic/{{ $pregnancy->id }}" class="btn btn-success btn-sm btn-rounded">Details</a>
|
||||
<a href="/ante_natal_clinic/{{ $pregnancy->id }}/edit" class="btn btn-outline-info btn-sm btn-rounded">Edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $count++; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ $anc_registrations->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
function drill_down() {
|
||||
$("#previous_visits").submit();
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+76
@@ -0,0 +1,76 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Ante Natal Clinic</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="{{ url('/ante_natal_clinic_menu') }}">Ante Natal Menu</a></li>
|
||||
<li class="active">Ante natal visits</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Pregnancy Reg. Date</th>
|
||||
<th>Visit date</th>
|
||||
<th>Visit no.</th>
|
||||
<th>Fundal height</th>
|
||||
<th>Gestation from EDD</th>
|
||||
<th>Gestation from scan</th>
|
||||
<th>Gestation from fundal</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($anc_followup_records) > 0)
|
||||
@foreach($anc_followup_records as $key => $anc_visits)
|
||||
<tr>
|
||||
<td rowspan={{ count($anc_followup_records[$key])+1 }}>{{ streamline_date_time_short(get_name($key, 'id', 'created_at', 'ante_natal_clinic_registrations')) }}</td>
|
||||
</tr>
|
||||
@foreach ($anc_visits as $anc_visit)
|
||||
<tr>
|
||||
<td>{{ streamline_date($anc_visit->ante_natal_clinic_date) }}</td>
|
||||
<td>{{ $anc_visit->ante_natal_clinic_visit_number }}</td>
|
||||
<td>{{ $anc_visit->fundal_height }} cm</td>
|
||||
<td>{{ $anc_visit->gestation_from_edd }} weeks</td>
|
||||
<td>{{ $anc_visit->gestation_from_scan }} weeks</td>
|
||||
<td>{{ $anc_visit->gestation_from_fundal }} weeks</td>
|
||||
<td style='white-space: nowrap'>
|
||||
<a href="{{ url('anc_visits/view_history/') }}/{{ $anc_visit->id }}" class="btn btn-outline-success btn-rounded btn-sm">Details</a>
|
||||
<a class="btn btn-outline-primary btn-sm btn-rounded" href="/anc_visits/{{ $anc_visit->id }}/edit">{{ __('antenatal.edit_details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
|
||||
@endpush
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Ante Natal Clinic</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="{{ url('/ante_natal_clinic_menu') }}">Ante Natal Menu</a></li>
|
||||
<li class="active">Ante natal visits</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped color-bordered-table success-bordered-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Visit date</th>
|
||||
<th>Visit no.</th>
|
||||
<th>Fundal height</th>
|
||||
<th>Gestation from EDD</th>
|
||||
<th>Gestation from scan</th>
|
||||
<th>Gestation from fundal</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $count = 1; @endphp
|
||||
@if(count($anc_followup_records) > 0)
|
||||
@foreach($anc_followup_records as $anc_visit)
|
||||
<tr>
|
||||
<td>{{ $count }}</td>
|
||||
<td>{{ streamline_date_time_short($anc_visit->ante_natal_clinic_date) }}</td>
|
||||
<td>{{ $anc_visit->ante_natal_clinic_visit_number }}</td>
|
||||
<td>{{ $anc_visit->fundal_height }} cm</td>
|
||||
<td>{{ $anc_visit->gestation_from_edd }} weeks</td>
|
||||
<td>{{ $anc_visit->gestation_from_scan }} weeks</td>
|
||||
<td>{{ $anc_visit->gestation_from_fundal }} weeks</td>
|
||||
<td>
|
||||
<a href="{{ url('ante_natal_clinic_follow_up') }}/{{ $anc_visit->episode_id }}" class="btn btn-success btn-sm">Details</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $count++; @endphp
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ $anc_followup_records->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#datepicker-autoclose5,#datepicker-autoclose6').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
$("#show_scar_no_div").click(function () {
|
||||
$("#scar_no_div").show();
|
||||
});
|
||||
$("#hide_scar_no_div").click(function () {
|
||||
$("#scar_no_div").hide();
|
||||
});
|
||||
|
||||
$("#show_pph_details_div").click(function () {
|
||||
$("#pph_details_div").show();
|
||||
});
|
||||
$("#hide_pph_details_div").click(function () {
|
||||
$("#pph_details_div").hide();
|
||||
});
|
||||
|
||||
$("#hiv_result").change(function () {
|
||||
var hiv_result = $(this).val();
|
||||
console.log(hiv_result);
|
||||
if (hiv_result == 1) {
|
||||
$("#hiv_positive_div").show();
|
||||
} else {
|
||||
$("#hiv_positive_div").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#height,#weight").on("change focus blur", function () {
|
||||
var weight = $("#weight").val();
|
||||
var height = $("#height").val();
|
||||
var bmi = calculate_bmi(height, weight);
|
||||
$("#bmi").val(bmi);
|
||||
});
|
||||
|
||||
//For the adding of a dynamic row
|
||||
var max_fields = 8; //maximum input boxes allowed
|
||||
var max_fields2 = 8; //maximum input boxes allowed
|
||||
var wrapper = $("#table_1"); //Fields wrapper
|
||||
var wrapper2 = $("#table_2"); //Fields wrapper
|
||||
var add_button = $(".add_field_button_1"); //Add button ID
|
||||
var add_button2 = $(".add_field_button_2"); //Add button ID
|
||||
|
||||
var x = 1; //initlal text box count
|
||||
add_button.click(function (e) { //on add input button click
|
||||
e.preventDefault();
|
||||
if (x < max_fields) { //max input box allowed
|
||||
x++; //text box increment
|
||||
|
||||
$(wrapper).append('<tr>\n\
|
||||
<td><div class="row"><div class="col-sm-1"><a href="#" class="remove_field" style="color: maroon;">x</a></div><div class="col-sm-11"> <div class="input-group"><input class="form-control datepicker-autoclose" readonly="" name="obstetric_date[]" type="text" value=""><span class="input-group-addon"><i class="icon-calender"></i></span></div></div></div></td>\n\
|
||||
<td><input type="number" class="form-control col-sm-12" name="gestation[]" placeholder="weeks">\n\
|
||||
<td><select class="form-control col-sm-12" name="obstetric_outcome[]"><option value="">-- select --</option></select></td>\n\
|
||||
<td><input type="text" class="form-control col-sm-12" name="outcome_name[]"></td>\n\
|
||||
<td><input type="number" class="form-control col-sm-12" name="outcome_id[]"></td>\n\
|
||||
<td><input type="text" class="form-control col-sm-12" name="obstetric_comment[]"></td></tr>'); //add input box
|
||||
}
|
||||
});
|
||||
|
||||
$(wrapper).on("click", ".remove_field", function (e) { //user click on remove text
|
||||
e.preventDefault();
|
||||
$(this).parent().parent('tr').remove();
|
||||
x--;
|
||||
});
|
||||
|
||||
var y = 1; //initlal text box count
|
||||
add_button2.click(function (e) { //on add input button click
|
||||
e.preventDefault();
|
||||
if (y < max_fields2) { //max input box allowed
|
||||
y++; //text box increment
|
||||
|
||||
$(wrapper2).append('<tr>\n\
|
||||
<td><div class="input-group"><input class="form-control datepicker-autoclose" readonly="" name="transfusion_date_date[]" type="text" value=""><span class="input-group-addon"><i class="icon-calender"></i></span></div></td>\n\
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]"></td>\n\
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"></td></tr>'); //add input box
|
||||
}
|
||||
});
|
||||
|
||||
/* call datepicker on dynamic rows */
|
||||
$(wrapper,wrapper2).on( 'click', '.datepicker-autoclose', function () {
|
||||
$('.datepicker-autoclose').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
});
|
||||
|
||||
$(wrapper,wrapper2).on("click", ".remove_field", function (e) { //user click on remove text
|
||||
e.preventDefault();
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
x--;
|
||||
});
|
||||
|
||||
function submitReferral(){
|
||||
var name = $("#referral_name").val();
|
||||
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/triage/add_referral',
|
||||
data: {'name' : name},
|
||||
success: function(response){
|
||||
if(!isNaN(response)){
|
||||
//response = last inserted id
|
||||
$('#referral').append($('<option>', {
|
||||
value: response,
|
||||
text: name
|
||||
}));
|
||||
$('#referral').val(response);//preselect the newly added referral
|
||||
$('#modal-referral').modal('hide'); //manually hide the modal
|
||||
} else {
|
||||
alert("Adding referral failed");
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
alert(JSON.stringify(jqXHR));
|
||||
console.log(JSON.stringify(jqXHR));
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@endpush
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
.buttonStyle {
|
||||
margin-bottom: 10px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
border-radius: 5px;
|
||||
width: 300px;
|
||||
height: 50px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('antenatal.antanatal_clinic') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('home.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('antenatal.patients') }}</a></li>
|
||||
<li class="active">{{ __('antenatal.antanatal_clinic') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
<a class="btn btn-success btn-lg buttonStyle" href="{{ url('ante_natal_clinic/route') }}"> {{ __('antenatal.new_pregnancy') }}</a>
|
||||
<a class="btn btn-info btn-lg buttonStyle" id="anc_visit" href="#"> {{ __('antenatal.antenatal_visit') }} </a>
|
||||
<a class="btn btn-primary btn-lg buttonStyle" href="{{ url('antenatal_card') }}">{{ __('antenatal.ant_card') }} </a>
|
||||
<br><br>
|
||||
<a class="btn btn-default btn-lg buttonStyle" href="{{ url('ante_natal_clinic') }}"> {{ __('antenatal.view_pregnancies') }}</a>
|
||||
<a class="btn btn-default btn-lg buttonStyle" href="{{ url('ante_natal_clinic_follow_up') }}"> {{ __('antenatal.view_antenatal_visits') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal fade" id="fillNewPregnancyWarning" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{ __('antenatal.please_make_sure_you_fill_new_pregnancy_details') }}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal">OK</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#anc_visit').click(function(e){
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/check_if_pregnancy_is_registered',
|
||||
success: function(response){
|
||||
console.log(response);
|
||||
if (response === "true") {
|
||||
window.location.href = "/ante_natal_clinic_follow_up/create";
|
||||
} else {
|
||||
$('#fillNewPregnancyWarning').modal('show');
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
alert(JSON.stringify(jqXHR));
|
||||
console.log(JSON.stringify(jqXHR));
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+1340
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user