mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
resolved conflicts
This commit is contained in:
+774
@@ -0,0 +1,774 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr {
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.table_no_padding td {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.alert-dismissible .close {
|
||||
position: relative;
|
||||
top: -0.5rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
|
||||
/* previous consultations */
|
||||
table {
|
||||
/* border-collapse: collapse;
|
||||
width: 100%; */
|
||||
}
|
||||
|
||||
/* th, td {
|
||||
border: 1px solid #dddddd;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
} */
|
||||
/* tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
} */
|
||||
.previous_consultation_details {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('inpatient.inpatient_sheet') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('inpatient.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('inpatient.patients') }}</a></li>
|
||||
<li class="active">{{ __('inpatient.inpatient_sheet') }}</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">
|
||||
<div class="white-box">
|
||||
<b> {{ __('maternity.update_labour_ward_adminssion_section') }}
|
||||
</b><br><br>
|
||||
<hr>
|
||||
|
||||
{{-- FORM OPENING --}}
|
||||
{{-- {{ Form::open(['route' => 'maternity.store']) }} --}}
|
||||
|
||||
<form action="{{ route('maternity.updpate_labour_ward_admission_sheet',$existing_labour_admission_data->id) }}" method="post">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12 col-sm-12">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="labour_onset">{{ __('maternity.labour_onset') }}</label><br><br>
|
||||
|
||||
<select name="labour_onset" class="form-select form-control">
|
||||
<option value="" {{ old('labour_onset') == 'null' ? 'selected' : '' }}> --
|
||||
Select
|
||||
-- </option>
|
||||
<option value="1" @selected($existing_labour_admission_data->labour_onset == 1 )>
|
||||
{{ __('maternity.spontaneous') }}</option>
|
||||
|
||||
<option value="2" @selected($existing_labour_admission_data->labour_onset == 2 )>
|
||||
{{ __('maternity.induced') }}</option>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="active_labour_diagnosis_date">{{ __('maternity.active_labour_diagnosis_date') }}</label><br><br>
|
||||
|
||||
<input type="date" name="active_labour_diagnosis_date" value="{{ $existing_labour_admission_data->active_labour_diagnosis_date ?? '' }}"
|
||||
id="active_labour_diagnosis_date_input" placeholder="Specify" class="form-control">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="membranes_rapture_at">{{ __('maternity.membranes_raptured_at') }}</label><br><br>
|
||||
|
||||
<input type="datetime-local" name="membranes_rapture_at"
|
||||
value="{{ $existing_labour_admission_data->membranes_rapture_at ?? '' }}"
|
||||
id="membranes_rapture_at_input_date" placeholder="Add details" class="form-control">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- check data from anc or maternity --}}
|
||||
{{-- @php
|
||||
use Carbon\Carbon;
|
||||
$anc_record_date = Carbon::parse($latest_anc_registration->created_at);
|
||||
$maternity_record_date = Carbon::parse($latest_existing_maternity_inpatient_data->created_at);
|
||||
|
||||
@endphp --}}
|
||||
|
||||
|
||||
<!-- <div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from Maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div> -->
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->gravida)) value="{{ $existing_labour_admission_data->gravida }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->para)) value="{{ $existing_labour_admission_data->para }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->abortions)) value="{{ $existing_labour_admission_data->abortions }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->ectopic_pregnancies)) value="{{ $existing_labour_admission_data->ectopic_pregnancies }}"
|
||||
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="yes"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}}
|
||||
@if (!empty($existing_labour_admission_data->post_partum)) {{ $existing_labour_admission_data->post_partum == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="yes">{{ __('maternity.yes') }}</label>
|
||||
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="no" value="0"
|
||||
@checked($existing_labour_admission_data->post_partum == 0)
|
||||
{{-- @if (!empty($existing_labour_admission_data->post_partum)) {{ $existing_labour_admission_data->post_partum == '0' ? 'checked' : '' }} @endif --}}
|
||||
|
||||
>
|
||||
|
||||
<label class="form-check-label"
|
||||
for="no">{{ __('maternity.no') }}</label>
|
||||
|
||||
{{-- <input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
@if (!empty($existing_labour_admission_data->post_partum)) {{ $existing_labour_admission_data->post_partum == '0' ? 'checked' : '' }} @endif
|
||||
value="0">
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label> --}}
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{{-- end of check data from anc or maternity --}}
|
||||
{{-- <hr> --}}
|
||||
|
||||
{{-- aph and fits --}}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
|
||||
|
||||
{{ Form::label('history_of_aph', __('maternity.history_of_aph')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="show_aph_details_div"
|
||||
@if (!empty($existing_labour_admission_data->history_of_aph)) {{ $existing_labour_admission_data->history_of_aph == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="hide_aph_details_div"
|
||||
@checked($existing_labour_admission_data->history_of_aph == 0)
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="aph_details_div" style="display: none;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_aph_details', __('maternity.details')) }}
|
||||
<textarea name="history_aph_details" id="history_aph_details" rows="2">{{ isset($existing_labour_admission_data->history_aph_details) ? $existing_labour_admission_data->history_aph_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
|
||||
{{ Form::label('history_of_fits', __('maternity.history_of_fits')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
id="show_fits_details_div"
|
||||
@if (!empty($existing_labour_admission_data->history_of_fits)) {{ $existing_labour_admission_data->history_of_fits == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.yes') }}</label>
|
||||
|
||||
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
id="hide_fits_details_div"
|
||||
@checked($existing_labour_admission_data->history_of_fits == 0)
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="fits_details_div" style="display: none; margin-left:8px;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_fit_details', __('maternity.fits_details')) }}<br>
|
||||
<textarea name="history_fit_details" id="history_aph_details" rows="2">{{ isset($existing_labour_admission_data->history_fit_details) ? $existing_labour_admission_data->history_fit_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('iufd', __('maternity.iufd')) }} <br>
|
||||
|
||||
<input class="form-check-input" name="iufd" type="radio" id="show_iufd_alert_div" value="1"
|
||||
{{-- @if (!empty($existing_labour_admission_data->iufd)) {{ $existing_labour_admission_data->iufd == '1' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->iufd == 1)
|
||||
>
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="iufd" type="radio" id="hide_iufd_alert_div"
|
||||
value="0"
|
||||
{{-- @if (!empty($existing_labour_admission_data->iufd)) {{ $existing_labour_admission_data->iufd == '0' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->iufd == 0)>
|
||||
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="iufd_alert_div" style="display: none;">
|
||||
<div class="alert alert-info "> {{ __('maternity.inform_medical_team_warning') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('born_before_arrival', __('maternity.born_before_arrival')) }} <br>
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
{{-- @if (!empty($existing_labour_admission_data->born_before_arrival)) {{ $existing_labour_admission_data->born_before_arrival == '1' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->born_before_arrival == 1)
|
||||
value="1">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.yes') }}</label>
|
||||
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
{{-- @if (!empty($existing_labour_admission_data->born_before_arrival)) {{ $existing_labour_admission_data->born_before_arrival == '0' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->born_before_arrival == 0)
|
||||
value="0">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.no') }}</label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('progress', __('maternity.progress')) }}
|
||||
{{ Form::select('progress', $maternity_progress, $existing_labour_admission_data->progress ?? '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label class="form-check-label" for="other_labour_comments">Other comments</label>
|
||||
<textarea class="form-control" name="other_labour_comments" cols="8" rows="4">{{ $existing_labour_admission_data->other_labour_comments ?? '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
{{-- risk factors --}}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
|
||||
{{-- obstetric risk factors --}}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label
|
||||
class="control-label strong">{{ __('maternity.mother_current_obstetric_risk') }}</label>
|
||||
<div class="controls">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
@php
|
||||
// $obstetric_risk_factors_all = json_decode($existing_labour_admission_data->obstetric_risk_factors);
|
||||
$obstetric_risk_factors_all = [];
|
||||
if ($existing_labour_admission_data !== null) {
|
||||
$obstetric_risk_factors_all =
|
||||
json_decode(
|
||||
$existing_labour_admission_data->obstetric_risk_factors,
|
||||
) ?? [];
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('1', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="history_aph_pregnancy" value="1"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('history_aph_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_aph_pregnancy">
|
||||
{{ __('maternity.history_aph_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('2', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="epilepsy" value="2"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('epilepsy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="epilepsy">
|
||||
{{ __('maternity.epilepsy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('3', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="severe_pre_eclampsia" value="3"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('severe_pre_eclampsia', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="severe_pre_eclampsia">
|
||||
{{ __('maternity.severe_pre_eclampsia') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('4', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="history_convulsion_pregnancy" value="4"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('history_convulsion_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_convulsion_pregnancy">
|
||||
{{ __('maternity.history_convulsion_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="polyhydramnios" value="5"
|
||||
{{ in_array('5', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('polyhydramnios', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="polyhydramnios">
|
||||
{{ __('maternity.polyhydramnios') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="premature_rupture_of_membranes"
|
||||
value="6"
|
||||
{{ in_array('6', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) &&
|
||||
in_array('premature_rupture_of_membranes', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="premature_rupture_of_membranes">
|
||||
{{ __('maternity.premature_rupture_of_membranes') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="diabetes_mellitus" value="7"
|
||||
{{ in_array('7', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('diabetes_mellitus', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="diabetes_mellitus">
|
||||
{{ __('maternity.diabetes_mellitus') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="multiple_pregnancy" value="8"
|
||||
{{ in_array('8', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('multiple_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="multiple_pregnancy">
|
||||
{{ __('maternity.multiple_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="sickle_cell_disease" value="9"
|
||||
{{ in_array('9', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('pph', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="pph">
|
||||
{{ __('maternity.pph') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="cardiac_disease" value="10"
|
||||
{{ in_array('10', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="cardiac_disease">
|
||||
{{ __('maternity.cardiac_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="malpresentation" value="11"
|
||||
{{ in_array('11', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('malpresentation', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="malpresentation">
|
||||
{{ __('maternity.malpresentation') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('12', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="asthma" value="12">
|
||||
<label class="form-check-label" for="asthma">
|
||||
{{ __('maternity.asthma') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="poor_obstetric_history"
|
||||
value="13"
|
||||
{{ in_array('13', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="poor_obstetric_history">
|
||||
{{ __('maternity.poor_obstetric_history') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="pre_term_labour" value="14"
|
||||
{{ in_array('14', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="pre_term_labour">
|
||||
{{ __('maternity.pre_term_labour') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="sickle_cell_disease" value="15"
|
||||
{{ in_array('15', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="sickle_cell_disease">
|
||||
{{ __('maternity.sickle_cell_disease') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="previous_csections" value="16"
|
||||
{{ in_array('16', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="previous_csections">
|
||||
{{ __('maternity.previous_csections') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" value="17"
|
||||
{{ in_array('17', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="polio">
|
||||
{{ __('maternity.polio') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('18', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="group_b_streptococcus_colonization"
|
||||
value="18">
|
||||
<label class="form-check-label" for="group_b_streptococcus_colonization">
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="woman_advanced_age" value="19"
|
||||
{{ in_array('19', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('woman_advanced_age', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="woman_advanced_age">
|
||||
{{ __('maternity.woman_advanced_age') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="mental_illness" value="20"
|
||||
{{ in_array('20', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('mental_illness', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="mental_illness">
|
||||
{{ __('maternity.mental_illness') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="adolescent_pregnancy" value="21"
|
||||
{{ in_array('21', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('adolescent_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="adolescent_pregnancy">
|
||||
{{ __('maternity.adolescent_pregnancy') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="hypertension" value="22"
|
||||
{{ in_array('22', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="hypertension">
|
||||
{{ __('maternity.hypertension') }}
|
||||
</label>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="kidney_disease" value="23"
|
||||
{{ in_array('23', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('kidney_disease', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="kidney_disease">
|
||||
{{ __('maternity.kidney_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('24', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="show_other_obstetric_risk_factors_input"
|
||||
value="24">
|
||||
|
||||
|
||||
<label class="form-check-label" for="other_obstetrics">
|
||||
{{ __('maternity.other') }} </label>
|
||||
|
||||
<div id="other_obstetric_risk_factors_input"
|
||||
style="{{ in_array('24', $obstetric_risk_factors_all) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text"
|
||||
name="other_obstetric_risk_factors" placeholder="Add risk factor"
|
||||
value="{{ isset($existing_labour_admission_data->other_obstetric_risk_factors) ? $existing_labour_admission_data->other_obstetric_risk_factors : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{-- SUBMIT BUTTON --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-right " style="padding: 0 10px;">
|
||||
{{-- {{ Form::button(__('maternity.submit_form'), ['type' => 'submit', 'value' => 'submit_maternity_admission', 'name' => 'submit-btn', 'id' => 'submit-btn', 'class' => 'btn btn-success', 'style' => 'float:right;']) }} --}}
|
||||
{{-- <button type="submit" class="btn btn-success" ><i class="fas fa-save"></i> --}}
|
||||
{{-- <button type="submit" class="btn btn-success" value="complete" name="submit-btn"><i
|
||||
class="fas fa-save"></i> {{ __('maternity.update') }}</button> --}}
|
||||
<button type="submit" class="btn btn-default" value="save_labour_ward_admission" name="submit-btn"><i class="fas fa-save"></i> Update Draft</button>
|
||||
<button type="submit" class="btn btn-success" value="complete" name="submit-btn"><i class="fas fa-save"></i> Update & Complete</button>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
{{-- {{ Form::hidden('pregnancy_number', 0, ['id' => 'pregnancy_number']) }}
|
||||
{{ Form::close() }} --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
{{-- scrips --}}
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<!-- pull in select2 for auto searchanble drop downs -->
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
{{-- <script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script> --}}
|
||||
|
||||
<script>
|
||||
//fit details
|
||||
$('#show_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').show();
|
||||
});
|
||||
$('#hide_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').hide();
|
||||
});
|
||||
// aph details
|
||||
$('#show_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').show();
|
||||
});
|
||||
$('#hide_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').hide();
|
||||
});
|
||||
|
||||
// other obstetric factors additional input
|
||||
document
|
||||
.getElementById('show_other_obstetric_risk_factors_input')
|
||||
.addEventListener('change', function() {
|
||||
var inputContainer = document.getElementById(
|
||||
'other_obstetric_risk_factors_input'
|
||||
);
|
||||
if (this.checked) {
|
||||
inputContainer.style.display = 'block';
|
||||
} else {
|
||||
inputContainer.style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
// PPH and Fits
|
||||
|
||||
|
||||
|
||||
// {{-- history of aph : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="aph_details_div"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleAphDetails(this.value);
|
||||
});
|
||||
});
|
||||
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleAphDetails(value) {
|
||||
var aphDetailsDiv = document.getElementById('aph_details_div');
|
||||
var textarea = document.getElementById('history_aph_details');
|
||||
|
||||
if (value == 1) {
|
||||
aphDetailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
aphDetailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Initial check on page load
|
||||
toggleAphDetails(document.querySelector('input[name="history_of_aph"]:checked').value);
|
||||
|
||||
|
||||
// {{-- history of fits : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="history_of_fits"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleFitsDetails(this.value);
|
||||
});
|
||||
});
|
||||
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleFitsDetails(value) {
|
||||
var detailsDiv = document.getElementById('fits_details_div');
|
||||
var textarea = document.getElementById('history_fit_details');
|
||||
|
||||
if (value == 1) {
|
||||
detailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
detailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Initial check on page load
|
||||
toggleFitsDetails(document.querySelector('input[name="history_of_fits"]:checked').value);
|
||||
</script>
|
||||
|
||||
<input type="datetime-local" name="membranes_rapture_at" placeholder="Add details" class="form-control"
|
||||
id="membranes_rapture_at_input_date">
|
||||
|
||||
<script>
|
||||
// prevent future date and time
|
||||
var currentDate = new Date();
|
||||
var currentDateTime = currentDate.toISOString().slice(0, 16);
|
||||
document.getElementById("membranes_rapture_at_input_date").setAttribute("max", currentDateTime);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- prevent future active labour diagnosis date --}}
|
||||
<script>
|
||||
var currentDate = new Date();
|
||||
var currentDateFormatted = currentDate.toISOString().split('T')[0];
|
||||
document.getElementById("active_labour_diagnosis_date_input").setAttribute("max", currentDateFormatted);
|
||||
</script>
|
||||
@endpush
|
||||
+333
@@ -0,0 +1,333 @@
|
||||
{{-- gravida para abortions --}}
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">
|
||||
<div class="card ">
|
||||
<div class="card-header "style="background-color:#e9ecef;color:#000000;">
|
||||
Overview of this labur ward admission
|
||||
</div>
|
||||
|
||||
<div class="card-body p-4">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12 col-xl-12 col-sm-12 col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-6 col-sm-12 col-xl-6 col-xs-12">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('maternity.labour_onset') }}</th>
|
||||
<td class="text-start">
|
||||
@if (!empty($labour_ward_admission_details->labour_onset))
|
||||
@if ($labour_ward_admission_details->labour_onset == '1')
|
||||
{{ __('maternity.spontaneous') }}
|
||||
@elseif ($labour_ward_admission_details->labour_onset == '2')
|
||||
{{ __('maternity.induced') }}
|
||||
@endif
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.active_labour_diagnosis_date') }}</th>
|
||||
<td class="text-start">
|
||||
@if (!empty($labour_ward_admission_details->active_labour_diagnosis_date))
|
||||
{{ streamline_date_time_short($labour_ward_admission_details->active_labour_diagnosis_date) }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.membranes_raptured_at') }}</th>
|
||||
<td class="text-start">
|
||||
@if (!empty($labour_ward_admission_details->membranes_rapture_at))
|
||||
{{ streamline_date_time_short($labour_ward_admission_details->membranes_rapture_at) }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.gravida') }}</th>
|
||||
<td class="text-start">
|
||||
@if(isset($labour_ward_admission_details->gravida))
|
||||
{{ $labour_ward_admission_details->gravida }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.para') }}</th>
|
||||
<td class="text-start">
|
||||
@if (isset($labour_ward_admission_details->para))
|
||||
{{ $labour_ward_admission_details->para }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.abortion') }}</th>
|
||||
<td class="text-start">
|
||||
@if (isset($labour_ward_admission_details->abortions))
|
||||
{{ $labour_ward_admission_details->abortions }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.ectopic_pregnancies') }}</th>
|
||||
<td class="text-start">
|
||||
@if (isset($labour_ward_admission_details->ectopic_pregnancies))
|
||||
{{ $labour_ward_admission_details->ectopic_pregnancies }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.post_partum') }}</th>
|
||||
<td class="text-start">
|
||||
@if ($labour_ward_admission_details->post_partum == '1')
|
||||
Yes
|
||||
@endif
|
||||
@if ($labour_ward_admission_details->post_partum == '0')
|
||||
No
|
||||
@endif
|
||||
@if ($labour_ward_admission_details->post_partum == '')
|
||||
N/A
|
||||
@endif
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-6 col-sm-12 col-xl-6 col-xs-12">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.history_of_aph') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$history_aph =
|
||||
$labour_ward_admission_details->history_of_aph ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if (isset($history_aph))
|
||||
@if ($history_aph == 1)
|
||||
{{ __('maternity.yes') }} ( @if (!empty($labour_ward_admission_details->history_aph_details))
|
||||
{{ $labour_ward_admission_details->history_aph_details }}
|
||||
@endif)
|
||||
@elseif($history_aph == 0)
|
||||
{{ __('maternity.no') }}
|
||||
@endif
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.history_of_fits') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$history_fits =
|
||||
$labour_ward_admission_details->history_of_fits ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if (!empty($history_fits))
|
||||
@if ($history_fits == '1')
|
||||
{{ __('maternity.yes') }} ( @if (!empty($labour_ward_admission_details->history_fit_details))
|
||||
{{ $labour_ward_admission_details->history_fit_details }}
|
||||
@endif)
|
||||
@elseif($history_fits == '0')
|
||||
{{ __('maternity.no') }}
|
||||
@endif
|
||||
@else
|
||||
<span>{{ __('maternity.no') }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.iufd') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$iufd = $labour_ward_admission_details->iufd ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if ($iufd == '1')
|
||||
Yes
|
||||
@endif
|
||||
@if ($iufd == '0')
|
||||
No
|
||||
@endif
|
||||
@if ($iufd == '')
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.born_before_arrival') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$born_before_arrival =
|
||||
$labour_ward_admission_details->born_before_arrival ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if ($born_before_arrival == '1')
|
||||
Yes
|
||||
@endif
|
||||
@if ($born_before_arrival == '0')
|
||||
No
|
||||
@endif
|
||||
@if ($born_before_arrival == '')
|
||||
N/A
|
||||
@endif
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.progress') }}</th>
|
||||
<td class="text-start">
|
||||
{{-- {{ isset($maternity_progress[$labour_ward_admission_details->progress]) ? $maternity_progress[$labour_ward_admission_details->progress] : '' }} --}}
|
||||
{{ isset($labour_ward_admission_details->progress) && isset($maternity_progress[$labour_ward_admission_details->progress]) ? $maternity_progress[$labour_ward_admission_details->progress] : '' }}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr rowspan="2" style="background-color:#e9ecef;color:#000000; ">
|
||||
<th colspan="2" style="color:#000000;">Other comments</th>
|
||||
|
||||
</tr>
|
||||
<tr rowspan="2">
|
||||
<td colspan="2">
|
||||
@if (!empty($labour_ward_admission_details->other_labour_comments))
|
||||
{{ $labour_ward_admission_details->other_labour_comments }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr rowspan="2" style="background-color:#e9ecef;color:#000000; ">
|
||||
<th colspan="2" style="color:#000000;">
|
||||
{{ __('maternity.current_obstetric_risk_factors') }}
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
<tr rowspan="2">
|
||||
<td colspan="2" class="text-start">
|
||||
{{-- {{$labour_ward_admission_details->obstetric_risk_factors }} --}}
|
||||
@php
|
||||
$obstetric_risk_factors_all = [];
|
||||
if ($labour_ward_admission_details !== null) {
|
||||
$obstetric_risk_factors_all =
|
||||
json_decode(
|
||||
$labour_ward_admission_details->obstetric_risk_factors,
|
||||
) ?? [];
|
||||
}
|
||||
@endphp
|
||||
|
||||
|
||||
@foreach ($obstetric_risk_factors_all as $obstetric_risk_factor)
|
||||
@if ($obstetric_risk_factor == '1')
|
||||
{{ __('maternity.history_aph_pregnancy') }},
|
||||
{{-- <span c lass="badge badge-success" style="font-size:11px; text-transform: capitalize;">{{ __('maternity.history_aph_pregnancy') }}</span> --}}
|
||||
@elseif ($obstetric_risk_factor == '2')
|
||||
{{ __('maternity.epilepsy') }}
|
||||
{{-- <span class="badge badge-success" style="font-size:11px; text-transform: capitalize;">{{ __('maternity.epilepsy') }}</span> --}}
|
||||
@elseif ($obstetric_risk_factor == '3')
|
||||
{{ __('maternity.severe_pre_eclampsia') }},
|
||||
{{-- <span class="badge badge-success" style="font-size:11px; text-transform: capitalize;"> {{ __('maternity.severe_pre_eclampsia') }}</span> --}}
|
||||
@elseif ($obstetric_risk_factor == '4')
|
||||
{{ __('maternity.history_convulsion_pregnancy') }}
|
||||
{{-- <span class="badge badge-success" style="font-size:11px; text-transform: capitalize;"> {{ __('maternity.history_convulsion_pregnancy') }} </span> --}}
|
||||
@elseif ($obstetric_risk_factor == '5')
|
||||
{{ __('maternity.polyhydramnios') }},
|
||||
@elseif ($obstetric_risk_factor == '6')
|
||||
{{ __('maternity.premature_rupture_of_membranes') }},
|
||||
@elseif ($obstetric_risk_factor == '7')
|
||||
{{ __('maternity.diabetes_mellitus') }},
|
||||
@elseif ($obstetric_risk_factor == '8')
|
||||
{{ __('maternity.multiple_pregnancy') }},
|
||||
@elseif ($obstetric_risk_factor == '9')
|
||||
{{ __('maternity.pph') }},
|
||||
@elseif ($obstetric_risk_factor == '10')
|
||||
{{ __('maternity.cardiac_disease') }},
|
||||
@elseif ($obstetric_risk_factor == '11')
|
||||
{{ __('maternity.malpresentation') }},
|
||||
@elseif ($obstetric_risk_factor == '12')
|
||||
{{ __('maternity.asthma') }},
|
||||
@elseif ($obstetric_risk_factor == '13')
|
||||
{{ __('maternity.poor_obstetric_history') }},
|
||||
@elseif ($obstetric_risk_factor == '14')
|
||||
{{ __('maternity.pre_term_labour') }},
|
||||
@elseif ($obstetric_risk_factor == '15')
|
||||
{{ __('maternity.sickle_cell_disease') }},
|
||||
@elseif ($obstetric_risk_factor == '16')
|
||||
{{ __('maternity.previous_csections') }},
|
||||
@elseif ($obstetric_risk_factor == '17')
|
||||
{{ __('maternity.polio') }},
|
||||
@elseif ($obstetric_risk_factor == '18')
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }},
|
||||
@elseif ($obstetric_risk_factor == '19')
|
||||
{{ __('maternity.woman_advanced_age') }},
|
||||
@elseif ($obstetric_risk_factor == '20')
|
||||
{{ __('maternity.mental_illness') }},
|
||||
@elseif ($obstetric_risk_factor == '21')
|
||||
{{ __('maternity.adolescent_pregnancy') }},
|
||||
@elseif ($obstetric_risk_factor == '22')
|
||||
{{ __('maternity.hypertension') }},
|
||||
@elseif ($obstetric_risk_factor == '23')
|
||||
{{ __('maternity.kidney_disease') }},
|
||||
@elseif ($obstetric_risk_factor == '24')
|
||||
{{ __('maternity.other_obstetric_risk_factors') }}
|
||||
(@if (!empty($labour_ward_admission_details->other_obstetric_risk_factors))
|
||||
{{ $labour_ward_admission_details->other_obstetric_risk_factors }}
|
||||
@endif)
|
||||
@else
|
||||
{{-- <span>{{ __('maternity.na') }}</span> --}}
|
||||
@endif
|
||||
{{-- @if (!$loop->last)
|
||||
,
|
||||
@endif --}}
|
||||
@endforeach
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div> <br>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
|
||||
@push('styles')
|
||||
<style>
|
||||
.hr_line {
|
||||
background-color: #c2c3c3;
|
||||
height: 1px;
|
||||
margin: 2px 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* make table rows to fill full row on mobile */
|
||||
.table-row-full-width {
|
||||
padding: 10px;
|
||||
/* border: 1px solid #ccc; */
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
|
||||
<h4 class="page-title">{{ __('maternity.details_for_labour_episode') }} :
|
||||
{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('maternity.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('maternity.patient') }}</a></li>
|
||||
<li class="active">{{ __('maternity.labour_ward_admission_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
@if (session('update_inpatient'))
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert"
|
||||
style="width: 100%; padding-top:-8px;">
|
||||
{{ session('update_inpatient') }}
|
||||
{{-- <button type="button" class="close" data-dismiss="alert" aria-label="Close" style="margin-top:-5px;">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button> --}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11 text-right">
|
||||
{{-- <a href="{{ route('patient_episodes.index') }}" class="btn btn-success">
|
||||
<i class="fas fa-home"></i> {{ __('consultations.patient_home') }} </a> --}}
|
||||
|
||||
@if (Auth::user()->can('print-maternity-admission'))
|
||||
<a href="{{ route('maternity.print_labour_admission_sheet_details', $labour_ward_admission_details->id) }}"
|
||||
target="_blank" class="btn btn-success">
|
||||
<i class="fas fa-print"></i> Print</a>
|
||||
@endif
|
||||
|
||||
{{--
|
||||
|
||||
<a href="{{ route('maternity.edit_maternity_inpatient_admission') }}" class="btn btn-success">
|
||||
<i class="fas fa-edit"></i> Modify </a> --}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<h3 class="text-center"> {{ __('maternity.labour_ward_admission_details_for') }} <font style="color: blue">
|
||||
{{ get_full_name($patient->id, 'id', 'first_name', 'last_name', 'patients') }} </font> started on ,
|
||||
{{ streamline_date_time_short($labour_ward_admission_details->created_at) }}
|
||||
</h3>
|
||||
|
||||
|
||||
{{-- maternity admission details --}}
|
||||
@include('maternity::labour_ward.includes.labour_ward_admission_data')
|
||||
|
||||
{{-- buttons --}}
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11 text-right">
|
||||
@if (Auth::user()->can('edit-maternity-admission'))
|
||||
<a href="{{ route('maternity.edit_edit_labour_ward_admission') }}" class="btn btn-success">
|
||||
<i class="fas fa-edit"></i> Modify </a>
|
||||
@endcan
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
th {
|
||||
font-weight: bolder;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
+753
@@ -0,0 +1,753 @@
|
||||
@extends('layouts.main')
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr {
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.table_no_padding td {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.alert-dismissible .close {
|
||||
position: relative;
|
||||
top: -0.5rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
/* previous consultations */
|
||||
table {
|
||||
/* border-collapse: collapse;
|
||||
width: 100%; */
|
||||
}
|
||||
|
||||
/* th, td {
|
||||
border: 1px solid #dddddd;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
} */
|
||||
/* tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
} */
|
||||
.previous_consultation_details {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('inpatient.inpatient_sheet') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('inpatient.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('inpatient.patients') }}</a></li>
|
||||
<li class="active">{{ __('inpatient.inpatient_sheet') }}</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">
|
||||
<div class="white-box">
|
||||
<b> {{ __('maternity.labour_ward_adminssion_section') }}
|
||||
</b><br><br>
|
||||
<hr>
|
||||
{{-- FORM OPENING --}}
|
||||
{{-- {{ Form::open(['route' => 'maternity.store']) }} --}}
|
||||
<form action="{{ route('maternity.store_labour_ward_admission_sheet') }}" method="POST">
|
||||
@csrf()
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="labour_onset">{{ __('maternity.labour_onset') }}</label><br><br>
|
||||
<select name="labour_onset" class="form-select form-control">
|
||||
<option value="" {{ old('labour_onset') == 'null' ? 'selected' : '' }}> --
|
||||
Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('spontaneous') == '1' ? 'selected' : '' }}>
|
||||
{{ __('maternity.spontaneous') }}</option>
|
||||
<option value="2" {{ old('induced') == '2' ? 'selected' : '' }}>
|
||||
{{ __('maternity.induced') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="active_labour_diagnosis_date">{{ __('maternity.active_labour_diagnosis_date') }}</label><br><br>
|
||||
<input type="date" name="active_labour_diagnosis_date"
|
||||
id="active_labour_diagnosis_date_input" placeholder="Specify" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="membranes_rapture_at">{{ __('maternity.membranes_raptured_at') }}</label><br><br>
|
||||
<input type="datetime-local" name="membranes_rapture_at"
|
||||
id="membranes_rapture_at_input_date" placeholder="Add details" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- check data from anc or maternity --}}
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
// $anc_record_date = Carbon::parse($latest_anc_registration->created_at);
|
||||
$anc_record_date =
|
||||
$latest_anc_registration !== null
|
||||
? Carbon::parse($latest_anc_registration->created_at)
|
||||
: null;
|
||||
// $maternity_record_date = Carbon::parse($latest_existing_maternity_inpatient_data->created_at);
|
||||
$maternity_record_date =
|
||||
$latest_existing_maternity_inpatient_data !== null
|
||||
? Carbon::parse($latest_existing_maternity_inpatient_data->created_at)
|
||||
: null;
|
||||
|
||||
@endphp
|
||||
{{-- anc date is latest --}}
|
||||
@if ($anc_record_date > $maternity_record_date)
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from Ante-natal clinic
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control"
|
||||
@if (!empty($anc_registration->gravida)) value="{{ isset($anc_registration) ? $anc_registration->gravida : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control"
|
||||
@if (!empty($anc_registration->para)) value="{{ isset($anc_registration) ? $anc_registration->para : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control"
|
||||
@if (!empty($anc_registration->abortion)) value="{{ isset($anc_registration) ? $anc_registration->abortion : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control"
|
||||
@if (!empty($anc_registration->ectopic_pregnancies)) value="{{ isset($anc_registration) ? $anc_registration->ectopic_pregnancies : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
@if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
{{-- @if (!empty($anc_registration->postpartum))
|
||||
{{ $anc_registration->postpartum == '0' ? 'checked' : '' }}
|
||||
@endif --}}
|
||||
@if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '0' ? 'checked' : '' }} @endif
|
||||
value="0">
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- marternity date is latest --}}
|
||||
@elseif ($anc_record_date < $maternity_record_date)
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from Maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->gravida)) value="{{ $latest_existing_maternity_inpatient_data->gravida }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->para)) value="{{ $latest_existing_maternity_inpatient_data->para }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->abortion)) value="{{ $latest_existing_maternity_inpatient_data->abortion }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->ectopic_pregnancies)) value="{{ $latest_existing_maternity_inpatient_data->ectopic_pregnancies }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="postpartum"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}} {{-- @if (!empty($latest_existing_maternity_inpatient_data->postpartum)) {{ $latest_existing_maternity_inpatient_data->postpartum == '1' ? 'checked' : '' }} @endif --}} @checked($latest_existing_maternity_inpatient_data->postpartum == 1)
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
{{-- @if (!empty($latest_existing_maternity_inpatient_data->postpartum)) {{ $latest_existing_maternity_inpatient_data->postpartum == '0' ? 'checked' : '' }} @endif --}} @checked($latest_existing_maternity_inpatient_data->postpartum == 0) value="0">
|
||||
|
||||
|
||||
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- if data is not in maternity or anc --}}
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
No previous data in maternity or antenatal
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="postpartum"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}} value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
value="0">
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
{{-- end of check data from anc or maternity --}}
|
||||
{{-- <hr> --}}
|
||||
{{-- aph and fits --}}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
{{ Form::label('history_of_aph', __('maternity.history_of_aph')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="show_aph_details_div" {{-- @checked($latest_existing_maternity_mother_history->history_of_aph == 1) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_aph)) @checked($latest_existing_maternity_mother_history->history_of_aph == 1) @endif
|
||||
{{-- @if ($latest_existing_maternity_mother_history && $latest_existing_maternity_mother_history->history_of_aph == 1)
|
||||
@checked(true)
|
||||
@else
|
||||
@checked(false)
|
||||
@endif --}} {{-- @if ($latest_existing_maternity_mother_history && $latest_existing_maternity_mother_history->history_of_aph == 1) selected @endif --}} value="1">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="hide_aph_details_div" {{-- @checked($latest_existing_maternity_mother_history->history_of_aph == 0) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_aph)) @checked($latest_existing_maternity_mother_history->history_of_aph == 0) @endif
|
||||
{{-- @if ($latest_existing_maternity_mother_history && $latest_existing_maternity_mother_history->history_of_aph == 0) selected @endif --}} value="0">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.no') }}</label>
|
||||
<div class="row" id="aph_details_div" style="display: none;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_aph_details', __('maternity.details')) }}
|
||||
<textarea name="history_aph_details" id="history_aph_details" rows="2">
|
||||
{{ isset($latest_existing_maternity_mother_history->history_aph_details) ? $latest_existing_maternity_mother_history->history_aph_details : '' }}
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
{{ Form::label('history_of_fits', __('maternity.history_of_fits')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
{{-- @checked($latest_existing_maternity_mother_history->history_of_fits == 1) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_fits)) @checked($latest_existing_maternity_mother_history->history_of_fits == 1) @endif
|
||||
|
||||
id="show_fits_details_div"
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
id="hide_fits_details_div"
|
||||
{{-- @checked($latest_existing_maternity_mother_history->history_of_fits == 0) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_fits)) @checked($latest_existing_maternity_mother_history->history_of_fits == 0) @endif
|
||||
|
||||
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.no') }}</label>
|
||||
<div class="row" id="fits_details_div" style="display: none; margin-left:8px;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_fit_details', __('maternity.fits_details')) }}<br>
|
||||
<textarea name="history_fit_details" id="history_aph_details" rows="2">{{ isset($latest_existing_maternity_mother_history->history_fit_details) ? $latest_existing_maternity_mother_history->history_fit_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('iufd', __('maternity.iufd')) }} <br>
|
||||
<input class="form-check-input" name="iufd" type="radio" id="show_iufd_alert_div"
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->iufd == 1) --}}
|
||||
@if (isset($latest_existing_maternity_inpatient_data->iufd)) @checked($latest_existing_maternity_inpatient_data->iufd == 1) @endif
|
||||
|
||||
value="1">
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="iufd" type="radio" id="hide_iufd_alert_div"
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->iufd == 0) --}}
|
||||
@if (isset($latest_existing_maternity_inpatient_data->iufd)) @checked($latest_existing_maternity_inpatient_data->iufd == 0) @endif
|
||||
|
||||
value="0">
|
||||
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.no') }}</label>
|
||||
<div class="row" id="iufd_alert_div" style="display: none;">
|
||||
<div class="alert alert-info "> {{ __('maternity.inform_medical_team_warning') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('born_before_arrival', __('maternity.born_before_arrival')) }} <br>
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->born_before_arrival)) @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 1) @endif
|
||||
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 1) --}}
|
||||
value="1">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 0) --}}
|
||||
@if (isset($latest_existing_maternity_inpatient_data->born_before_arrival)) @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 0) @endif
|
||||
|
||||
|
||||
value="0">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.no') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('progress', __('maternity.progress')) }}
|
||||
{{ Form::select('progress', $maternity_progress, '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label class="form-check-label" for="other_labour_comments">Other comments</label>
|
||||
<textarea class="form-control" name="other_labour_comments" cols="8" rows="4"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- risk factors --}}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
{{-- obstetric risk factors --}}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<label
|
||||
class="control-label strong">{{ __('maternity.mother_current_obstetric_risk') }}</label>
|
||||
<div class="controls">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('1', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? ('' ?? ''))) ? 'checked' : '' }}
|
||||
id="1" value="1" {{-- @if (is_array(old('1')) && in_array('1', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="1">
|
||||
{{ __('maternity.history_aph_pregnancy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('2', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="2" value="2" {{-- @if (is_array(old('2')) && in_array('2', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="2">
|
||||
{{ __('maternity.epilepsy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('3', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="3" value="3" {{-- @if (is_array(old('obstetric_risk_factors')) && in_array('3', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="3">
|
||||
{{ __('maternity.severe_pre_eclampsia') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('4', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="4" value="4" {{-- @if (is_array(old('obstetric_risk_factors')) && in_array('4', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="4">
|
||||
{{ __('maternity.history_convulsion_pregnancy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="5" value="5"
|
||||
{{ in_array('5', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
{{-- @if (is_array(old('obstetric_risk_factors')) && in_array('5', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="5">
|
||||
{{ __('maternity.polyhydramnios') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="premature_rupture_of_membranes" value="6"
|
||||
{{ in_array('6', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
{{-- @if (is_array(old('obstetric_risk_factors')) && in_array('6', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="6">
|
||||
{{ __('maternity.premature_rupture_of_membranes') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="7" value="7"
|
||||
{{ in_array('7', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
{{-- @if (is_array(old('obstetric_risk_factors')) && in_array('7', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="7">
|
||||
{{ __('maternity.diabetes_mellitus') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="8" value="8"
|
||||
{{ in_array('8', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('8', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="8">
|
||||
{{ __('maternity.multiple_pregnancy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="9" value="9"
|
||||
{{ in_array('9', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('9', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="9">
|
||||
{{ __('maternity.pph') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="10" value="10"
|
||||
{{ in_array('10', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="10">
|
||||
{{ __('maternity.cardiac_disease') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="11" value="11"
|
||||
{{ in_array('11', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('11', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="11">
|
||||
{{ __('maternity.malpresentation') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('12', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="12" value="12">
|
||||
<label class="form-check-label" for="12">
|
||||
{{ __('maternity.asthma') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="13" value="13"
|
||||
{{ in_array('13', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="13">
|
||||
{{ __('maternity.poor_obstetric_history') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="14" value="14"
|
||||
{{ in_array('14', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="14">
|
||||
{{ __('maternity.pre_term_labour') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="15" value="15"
|
||||
{{ in_array('15', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="15">
|
||||
{{ __('maternity.sickle_cell_disease') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="16" value="16"
|
||||
{{ in_array('16', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="16">
|
||||
{{ __('maternity.previous_csections') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" value="17"
|
||||
{{ in_array('17', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="17">
|
||||
{{ __('maternity.polio') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('18', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="18" value="18">
|
||||
<label class="form-check-label" for="18">
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="19" value="19"
|
||||
{{ in_array('19', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('19', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="19">
|
||||
{{ __('maternity.woman_advanced_age') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="20" value="20"
|
||||
{{ in_array('20', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('20', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="20">
|
||||
{{ __('maternity.mental_illness') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="21" value="21"
|
||||
{{ in_array('21', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('21', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="21">
|
||||
{{ __('maternity.adolescent_pregnancy') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="22" value="22"
|
||||
{{ in_array('22', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="22">
|
||||
{{ __('maternity.hypertension') }}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="23" value="23"
|
||||
{{ in_array('23', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('23', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="23">
|
||||
{{ __('maternity.kidney_disease') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('24', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="show_other_obstetric_risk_factors_input" value="24">
|
||||
<label class="form-check-label" for="24">
|
||||
{{ __('maternity.other') }} </label>
|
||||
<div id="other_obstetric_risk_factors_input"
|
||||
style="{{ in_array('24', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text"
|
||||
name="other_obstetric_risk_factors" placeholder="Add risk factor"
|
||||
value="{{ isset($latest_existing_maternity_inpatient_data->other_obstetric_risk_factors) ? $latest_existing_maternity_inpatient_data->other_obstetric_risk_factors : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- SUBMIT BUTTON --}}
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-right " style="padding: 0 10px;">
|
||||
{{-- {{ Form::button(__('maternity.submit_form'), ['type' => 'submit', 'value' => 'submit_maternity_admission', 'name' => 'submit-btn', 'id' => 'submit-btn', 'class' => 'btn btn-success', 'style' => 'float:right;']) }} --}}
|
||||
{{-- <button type="submit" class="btn btn-success" ><i class="fas fa-save"></i> --}}
|
||||
<button type="submit" class="btn btn-default" value="save_labour_ward_admission"
|
||||
name="submit-btn"><i class="fas fa-save"></i> {{ __('maternity.save_draft') }}</button>
|
||||
<button type="submit" class="btn btn-success" value="complete" name="submit-btn"><i
|
||||
class="fas fa-save"></i> {{ __('maternity.submit_and_complete') }}</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{-- {{ Form::hidden('pregnancy_number', 0, ['id' => 'pregnancy_number']) }}
|
||||
{{ Form::close() }} --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
{{-- scrips --}}
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<!-- pull in select2 for auto searchanble drop downs -->
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
{{-- <script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script> --}}
|
||||
<script>
|
||||
//fit details
|
||||
$('#show_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').show();
|
||||
});
|
||||
$('#hide_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').hide();
|
||||
});
|
||||
// aph details
|
||||
$('#show_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').show();
|
||||
});
|
||||
$('#hide_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').hide();
|
||||
});
|
||||
// other obstetric factors additional input
|
||||
document
|
||||
.getElementById('show_other_obstetric_risk_factors_input')
|
||||
.addEventListener('change', function() {
|
||||
var inputContainer = document.getElementById(
|
||||
'other_obstetric_risk_factors_input'
|
||||
);
|
||||
if (this.checked) {
|
||||
inputContainer.style.display = 'block';
|
||||
} else {
|
||||
inputContainer.style.display = 'none';
|
||||
}
|
||||
});
|
||||
// PPH and Fits
|
||||
// {{-- history of aph : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="aph_details_div"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleAphDetails(this.value);
|
||||
});
|
||||
});
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleAphDetails(value) {
|
||||
var aphDetailsDiv = document.getElementById('aph_details_div');
|
||||
var textarea = document.getElementById('history_aph_details');
|
||||
if (value == 1) {
|
||||
aphDetailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
aphDetailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
// Initial check on page load
|
||||
toggleAphDetails(document.querySelector('input[name="history_of_aph"]:checked').value);
|
||||
// {{-- history of fits : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="history_of_fits"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleFitsDetails(this.value);
|
||||
});
|
||||
});
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleFitsDetails(value) {
|
||||
var detailsDiv = document.getElementById('fits_details_div');
|
||||
var textarea = document.getElementById('history_fit_details');
|
||||
if (value == 1) {
|
||||
detailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
detailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
// Initial check on page load
|
||||
toggleFitsDetails(document.querySelector('input[name="history_of_fits"]:checked').value);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// prevent future date and time
|
||||
var currentDate = new Date();
|
||||
var currentDateTime = currentDate.toISOString().slice(0, 16);
|
||||
document.getElementById("membranes_rapture_at_input_date").setAttribute("max", currentDateTime);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
{{-- prevent future active labour diagnosis date --}}
|
||||
<script>
|
||||
var currentDate = new Date();
|
||||
var currentDateFormatted = currentDate.toISOString().split('T')[0];
|
||||
document.getElementById("active_labour_diagnosis_date_input").setAttribute("max", currentDateFormatted);
|
||||
</script>
|
||||
@endpush
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
<!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', 'Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
/*font-size: 1.2em;*/
|
||||
}
|
||||
|
||||
thead {
|
||||
/*display: table-header-group;*/
|
||||
}
|
||||
|
||||
tfoot {
|
||||
/*display: table-row-group;*/
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
{{-- header include print --}}
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<h5 class="heading" style="text-align: center;">{{ __('maternity.labour_ward_admission_heading_print') }}</h5>
|
||||
|
||||
|
||||
<table class="table table-light table-sm table-borderless">
|
||||
<tr>
|
||||
<th width="20%">{{ __('patient_file.patient_number') }}</th>
|
||||
<td width="30%">{{ $patient->number }}</td>
|
||||
<th width="15%" scope="row">{{ __('patient_file.category') }}</th>
|
||||
<td>
|
||||
{{ get_name($patient->category_id, 'id', 'name', 'patient_categories') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('patient_file.patient_names') }}</th>
|
||||
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
<th scope="row">{{ __('patient_file.residence') }}</th>
|
||||
<td>{{ patient_residence($patient->id) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('patient_file.age') }}</th>
|
||||
<td><?php echo \Carbon\Carbon::parse($patient->date_of_birth)->age; ?> {{ __('patient_file.years') }}</td>
|
||||
<th scope="row">{{ __('patient_file.gender') }}</th>
|
||||
<td><?php echo $patient->gender == 1 ? __('patient_file.male') : __('patient_file.female'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('patient_file.episode_date') }}</th>
|
||||
<td><?php echo \Carbon\Carbon::parse($episode->created_at)->format('d M Y h:i a'); ?></td>
|
||||
<th scope="row">{{ __('patient_file.outcome') }}</th>
|
||||
<td>
|
||||
@if ($consultation && !is_null($consultation->outcome_id))
|
||||
@if ($consultation->outcome_id == 3)
|
||||
{{ $outcomes[$consultation->outcome_id] . ' on (' . streamline_date($consultation->followup_when) . ')' }}
|
||||
@elseif($consultation->outcome_id == 5)
|
||||
<code>
|
||||
{{ $outcomes[$consultation->outcome_id] . ' on (' . streamline_date($consultation->died_on) . ')' }}
|
||||
</code>
|
||||
@else
|
||||
{{ $outcomes[$consultation->outcome_id] ?? '' }}
|
||||
@endif
|
||||
@elseif (!empty($antenatal_data->outcome_id))
|
||||
@if ($antenatal_data->outcome_id == 3)
|
||||
{{ $outcomes[$antenatal_data->outcome_id] . ' on (' . streamline_date($antenatal_data->followup_when) . ')' }}
|
||||
@elseif($antenatal_data->outcome_id == 5)
|
||||
<code>
|
||||
{{ $outcomes[$antenatal_data->outcome_id] . ' on (' . streamline_date($antenatal_data->died_on) . ')' }}
|
||||
</code>
|
||||
@else
|
||||
{{ $outcomes[$antenatal_data->outcome_id] ?? '' }}
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- maaternity admission details --}}
|
||||
@include('maternity::labour_ward.includes.labour_ward_admission_data')
|
||||
|
||||
{{-- stamp --}}
|
||||
@if (is_add_stamp_feature_enabled() && !empty($hospitalInfo->stamp))
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center">
|
||||
<img style="max-width: 300px; max-height: 150px;" src="{{ asset($hospitalInfo->stamp) }}"
|
||||
class="img-fluid mx-auto d-block mx-3" alt="{{ $hospitalInfo->name }} stamp">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+2637
File diff suppressed because it is too large
Load Diff
Executable
+141
@@ -0,0 +1,141 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
|
||||
@push('styles')
|
||||
<style>
|
||||
.hr_line {
|
||||
background-color: #c2c3c3;
|
||||
height: 1px;
|
||||
margin: 2px 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* make table rows to fill full row on mobile */
|
||||
.table-row-full-width {
|
||||
padding: 10px;
|
||||
/* border: 1px solid #ccc; */
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
|
||||
<h4 class="page-title">{{ __('maternity.details_for_episode') }} :
|
||||
{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('maternity.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('maternity.patient') }}</a></li>
|
||||
<li class="active">{{ __('maternity.maternity_admission_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
<br><br>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
@if (session('update_inpatient'))
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert"
|
||||
style="width: 100%; padding-top:-8px;">
|
||||
{{ session('update_inpatient') }}
|
||||
{{-- <button type="button" class="close" data-dismiss="alert" aria-label="Close" style="margin-top:-5px;">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button> --}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11 text-right">
|
||||
{{-- <a href="{{ route('patient_episodes.index') }}" class="btn btn-success">
|
||||
<i class="fas fa-home"></i> {{ __('consultations.patient_home') }} </a> --}}
|
||||
|
||||
@if (Auth::user()->can('print-maternity-admission'))
|
||||
<a href="{{ route('maternity.print_maternity_admission_details', $maternity_admission_details->id) }}"
|
||||
target="_blank" class="btn" style="background-color:purple; color:#FFFFFF;">
|
||||
<i class="fas fa-print"></i> Print</a>
|
||||
@endif
|
||||
|
||||
{{--
|
||||
|
||||
<a href="{{ route('maternity.edit_maternity_inpatient_admission') }}" class="btn btn-success">
|
||||
<i class="fas fa-edit"></i> Modify </a> --}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<h3> {{ __('maternity.maternity_admission_details_for') }} <font style="color: blue">
|
||||
{{ get_full_name($patient->id, 'id', 'first_name', 'last_name', 'patients') }} </font> as of,
|
||||
{{ streamline_date_time_short($maternity_admission_details->created_at) }}
|
||||
</h3>
|
||||
|
||||
|
||||
{{-- maternity admission details --}}
|
||||
@include('maternity::maternity.includes.maternity_admission_details')
|
||||
|
||||
{{-- buttons --}}
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11 text-right">
|
||||
<a href="{{ route('patient_episodes.index') }}" class="btn btn-success">
|
||||
<i class="fas fa-home"></i> {{ __('consultations.patient_home') }} </a>
|
||||
|
||||
|
||||
@if (Auth::user()->can('print-maternity-admission'))
|
||||
<a href="{{ route('maternity.print_maternity_admission_details', $maternity_admission_details->id) }}"
|
||||
target="_blank" class="btn btn-success">
|
||||
<i class="fas fa-print"></i> Print</a>
|
||||
@endcan
|
||||
|
||||
@if (Auth::user()->can('edit-maternity-admission', $maternity_admission_details->id))
|
||||
<a href="{{ route('maternity.edit_maternity_inpatient_admission') }}" class="btn btn-success">
|
||||
<i class="fas fa-edit"></i> Modify </a>
|
||||
@endcan
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
th {
|
||||
font-weight: bolder;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-column" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-column" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.received_by') }}: </label></td>
|
||||
<td>
|
||||
<select class="form-control col-sm-12" name="receivedBy[]">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="receivedBy[]">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="receivedBy[]">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.sex') }}: </label></td>
|
||||
<td>
|
||||
<select name='sex[]' class="form-control">
|
||||
<option value="">--{{ __('maternity.select') }}--</option>
|
||||
<option value="1">{{ __('maternity.female') }}</option>
|
||||
<option value="2">{{ __('maternity.male') }}</option>
|
||||
<option value="3">{{ __('maternity.ambigous') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select name='sex[]' class="form-control">
|
||||
<option value="">--{{ __('maternity.select') }}--</option>
|
||||
<option value="1">{{ __('maternity.female') }}</option>
|
||||
<option value="2">{{ __('maternity.male') }}</option>
|
||||
<option value="3">{{ __('maternity.ambigous') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select name='sex[]' class="form-control">
|
||||
<option value="">--{{ __('maternity.select') }}--</option>
|
||||
<option value="1">{{ __('maternity.female') }}</option>
|
||||
<option value="2">{{ __('maternity.male') }}</option>
|
||||
<option value="3">{{ __('maternity.ambigous') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.condition') }}: </label></td>
|
||||
<td>
|
||||
<select name='condition[]' id='condition_1' class="form-control">
|
||||
<option value="1">{{ __('maternity.alive') }}</option>
|
||||
<option value="2">{{ __('maternity.fresh_sb') }}</option>
|
||||
<option value="3">{{ __('maternity.macerated_sb') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select name='condition[]' id='condition_2' class="form-control">
|
||||
<option value="1">{{ __('maternity.alive') }}</option>
|
||||
<option value="2">{{ __('maternity.fresh_sb') }}</option>
|
||||
<option value="3">{{ __('maternity.macerated_sb') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select name='condition[]' id='condition_3' class="form-control">
|
||||
<option value="1">{{ __('maternity.alive') }}</option>
|
||||
<option value="2">{{ __('maternity.fresh_sb') }}</option>
|
||||
<option value="3">{{ __('maternity.macerated_sb') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.weight') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" step="0.1" name ="weight[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="weight[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="weight[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.congenital_abnormalities_apparent') }} </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities1" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities1" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities3" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities3" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.birth_order') }} </label></td>
|
||||
<td>
|
||||
<input type="number" step="0.1" name ="birth_order[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="birth_order[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="birth_order[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.comments') }}</label></td>
|
||||
<td>
|
||||
<textarea name ="babyComments[]" class="form-control" style="width: 100%"></textarea>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<textarea name ="babyComments[]" class="form-control" style="width: 100%"></textarea>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<textarea name ="babyComments[]" class="form-control" style="width: 100%"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
+201
@@ -0,0 +1,201 @@
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-column" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-column" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$receiver_by_name_array = explode(",", $delivery_record->received_by);
|
||||
$first_receiver = $receiver_by_name_array[0];
|
||||
$second_receiver = $receiver_by_name_array[1];
|
||||
$third_receiver = $receiver_by_name_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.received_by') }}: </label></td>
|
||||
<td>
|
||||
<select class="form-control col-sm-12" name="receivedBy[]">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $first_receiver == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="receivedBy[]">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $second_receiver == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="receivedBy[]">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $third_receiver == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$gender_name_array = explode(",", $delivery_record->gender);
|
||||
$first_gender = $gender_name_array[0];
|
||||
$second_gender = $gender_name_array[1];
|
||||
$third_gender = $gender_name_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.sex') }}: </label></td>
|
||||
<td>
|
||||
<select name='sex[]' class="form-control">
|
||||
<option value="">--{{ __('maternity.select') }}--</option>
|
||||
<option value="1" {{ $first_gender == 1 ? "selected" : "" }}>{{ __('maternity.female') }}</option>
|
||||
<option value="2" {{ $first_gender == 2 ? "selected" : "" }}>{{ __('maternity.male') }}</option>
|
||||
<option value="3" {{ $first_gender == 3 ? "selected" : "" }}>{{ __('maternity.ambigous') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select name='sex[]' class="form-control">
|
||||
<option value="">--{{ __('maternity.select') }}--</option>
|
||||
<option value="1" {{ $second_gender == 1 ? "selected" : "" }}>{{ __('maternity.female') }}</option>
|
||||
<option value="2" {{ $second_gender == 2 ? "selected" : "" }}>{{ __('maternity.male') }}</option>
|
||||
<option value="3" {{ $second_gender == 3 ? "selected" : "" }}>{{ __('maternity.ambigous') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select name='sex[]' class="form-control">
|
||||
<option value="">--{{ __('maternity.select') }}--</option>
|
||||
<option value="1" {{ $third_gender == 1 ? "selected" : "" }}>{{ __('maternity.female') }}</option>
|
||||
<option value="2" {{ $third_gender == 2 ? "selected" : "" }}>{{ __('maternity.male') }}</option>
|
||||
<option value="3" {{ $third_gender == 3 ? "selected" : "" }}>{{ __('maternity.ambigous') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$baby_condition_array = explode(",", $delivery_record->baby_condition);
|
||||
$first_baby_condition = $baby_condition_array[0];
|
||||
$second_baby_condition = $baby_condition_array[1];
|
||||
$third_baby_condition = $baby_condition_array[2];
|
||||
@endphp
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.condition') }}: </label></td>
|
||||
<td>
|
||||
<select name='condition[]' id='condition_1' class="form-control">
|
||||
<option value="1" {{ $first_baby_condition == 1 ? "selected" : "" }}>{{ __('maternity.alive') }}</option>
|
||||
<option value="2" {{ $first_baby_condition == 2 ? "selected" : "" }}>{{ __('maternity.fresh_sb') }}</option>
|
||||
<option value="3" {{ $first_baby_condition == 3 ? "selected" : "" }}>{{ __('maternity.macerated_sb') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select name='condition[]' id='condition_2' class="form-control">
|
||||
<option value="1" {{ $second_baby_condition == 1 ? "selected" : "" }}>{{ __('maternity.alive') }}</option>
|
||||
<option value="2" {{ $second_baby_condition == 2 ? "selected" : "" }}>{{ __('maternity.fresh_sb') }}</option>
|
||||
<option value="3" {{ $second_baby_condition == 3 ? "selected" : "" }}>{{ __('maternity.macerated_sb') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select name='condition[]' id='condition_3' class="form-control">
|
||||
<option value="1" {{ $third_baby_condition == 1 ? "selected" : "" }}>{{ __('maternity.alive') }}</option>
|
||||
<option value="2" {{ $third_baby_condition == 2 ? "selected" : "" }}>{{ __('maternity.fresh_sb') }}</option>
|
||||
<option value="3" {{ $third_baby_condition == 3 ? "selected" : "" }}>{{ __('maternity.macerated_sb') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$weight_array = explode(",", $delivery_record->weight);
|
||||
$first_weight = $weight_array[0];
|
||||
$second_weight = $weight_array[1];
|
||||
$third_weight = $weight_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.weight') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" step="0.1" name ="weight[]" value="{{ $first_weight }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="weight[]" value="{{ $second_weight }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="weight[]" value="{{ $third_weight }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.congenital_abnormalities_apparent') }} </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities1" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities1" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities3" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="congenital_abnormalities3" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$birth_order_array = explode(",", $delivery_record->birth_order);
|
||||
$first_birth_order = $birth_order_array[0];
|
||||
$second_birth_order = $birth_order_array[1];
|
||||
$third_birth_order = $birth_order_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.birth_order') }} </label></td>
|
||||
<td>
|
||||
<input type="number" step="0.1" name ="birth_order[]" value="{{ $first_birth_order }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="birth_order[]" value="{{ $second_birth_order }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="number" step="0.1" name ="birth_order[]" value="{{ $third_birth_order }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$baby_comments_array = explode(",", $delivery_record->baby_comments);
|
||||
$first_baby_comments = $baby_comments_array[0];
|
||||
$second_baby_comments = $baby_comments_array[1];
|
||||
$third_baby_comments = $baby_comments_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.comments') }}</label></td>
|
||||
<td>
|
||||
<textarea name ="babyComments[]" class="form-control" style="width: 100%">{{$first_baby_comments}}</textarea>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<textarea name ="babyComments[]" class="form-control" style="width: 100%">{{$second_baby_comments}}</textarea>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<textarea name ="babyComments[]" class="form-control" style="width: 100%">{{$third_baby_comments}}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
+353
@@ -0,0 +1,353 @@
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-column" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-column" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivery_date') }}</label></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('birthdate[]',date('d/m/Y'),['class' => 'form-control','readonly','id'=>'birthdate']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('birthdate[]',date('d/m/Y'),['class' => 'form-control','readonly','id'=>'birthdate2']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('birthdate[]',date('d/m/Y'),['class' => 'form-control','readonly','id'=>'birthdate3']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivery_time') }}</label></td>
|
||||
<td>
|
||||
<input type="time" name ="deliveryTime[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="time" name ="deliveryTime[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="time" name ="deliveryTime[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.duration_1st') }}</label></td>
|
||||
<td>
|
||||
<input type="number" name ="duration1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="number" name ="duration1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="number" name ="duration1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.duration_2nd') }}</label></td>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration2_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration2_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration2_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration2_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration2_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration2_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.duration_third_stage') }}</label></td>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration3_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration3_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration3_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration3_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration3_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration3_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
echo "<option value={$i}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivered_by_cadre') }}: </label></td>
|
||||
<td>
|
||||
<select name='deliveredByCadre[]' id='deliveredByCadre1' class="form-control compulsory">
|
||||
<option value="">--{{ __('maternity.select') }} --</option>
|
||||
<option value="1">{{ __('maternity.staff') }}</option>
|
||||
<option value="2">{{ __('maternity.student') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select name='deliveredByCadre[]' id='deliveredByCadre2' class="form-control compulsory">
|
||||
<option value="">--{{ __('maternity.select') }} --</option>
|
||||
<option value="1">{{ __('maternity.staff') }}</option>
|
||||
<option value="2">{{ __('maternity.student') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select name='deliveredByCadre[]' id='deliveredByCadre3' class="form-control compulsory">
|
||||
<option value="">--{{ __('maternity.select') }} --</option>
|
||||
<option value="1">{{ __('maternity.staff') }}</option>
|
||||
<option value="2">{{ __('maternity.student') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivered_by_name') }}: </label></td>
|
||||
<td>
|
||||
<select class="form-control col-sm-12" name="deliveredByName[]" id="deliveredByName">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="deliveredByName[]" id="deliveredByName">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="deliveredByName[]" id="deliveredByName">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="supervised_by_row" style="display: none;">
|
||||
<td style="padding-top: 10px;" id="supervised_by_label"><label>{{ __('maternity.supervised_by') }}</label></td>
|
||||
<td>
|
||||
<select class="form-control col-sm-12" name="supervisedBy[]" id="supervisedBy1" style="display: none;">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="supervisedBy[]" id="supervisedBy2">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="supervisedBy[]" id="supervisedBy3">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}">{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.mode_of_delivery') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('modeOfDelivery[]',$mode_of_delivery,'',['class'=>'form-control col-sm-12','id'=>'modeOfDelivery1']) }}
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
{{ Form::select('modeOfDelivery[]',$mode_of_delivery,'',['class'=>'form-control col-sm-12','id'=>'modeOfDelivery2']) }}
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
{{ Form::select('modeOfDelivery[]',$mode_of_delivery,'',['class'=>'form-control col-sm-12','id'=>'modeOfDelivery3']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.indication_for_cs') }}: <small>{{ __('maternity.from_surgery_notes') }}</small></label></td>
|
||||
<td>
|
||||
<input type="text" name ="indicationForCS[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="text" name ="indicationForCS[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="text" name ="indicationForCS[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.location_of_delivery') }}</label></td>
|
||||
<td>
|
||||
{{ Form::select('locationOfDelivery[]',$location_of_delivery,'',['class'=>'form-control col-sm-12 delivery_location','id'=>'locationOfDelivery1']) }}
|
||||
<a href="#modal_delivery_location" data-toggle="modal" id="delivery_location_modal"><font size="1">{{ __('maternity.add_new_location_of_delivery') }} </font></a>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
{{ Form::select('locationOfDelivery[]',$location_of_delivery,'',['class'=>'form-control col-sm-12 delivery_location','id'=>'locationOfDelivery2']) }}
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
{{ Form::select('locationOfDelivery[]',$location_of_delivery,'',['class'=>'form-control col-sm-12 delivery_location','id'=>'locationOfDelivery3']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.comments') }}</label></td>
|
||||
<td>
|
||||
<textarea name ="deliveryComments[]" class="form-control" style="width: 100%"></textarea>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<textarea name ="deliveryComments[]" class="form-control" style="width: 100%"></textarea>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<textarea name ="deliveryComments[]" class="form-control" style="width: 100%"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- new delivery location modal -->
|
||||
<div class="modal fade" id="modal_delivery_location" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" 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>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('maternity.register_location_delivery') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control compulsory" id="delivery_location_name" name="delivery_location_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('maternity.cancel') }}</button>
|
||||
<input type="button" class="btn btn-primary" id="submit_delivery_location" value="{{ __('maternity.save') }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of new delivery location modal -->
|
||||
+455
@@ -0,0 +1,455 @@
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-column" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-column" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$dob_array = explode(",", $delivery_record->date_of_birth);
|
||||
$first_dob = $dob_array[0];
|
||||
$second_dob = $dob_array[1];
|
||||
$third_dob = $dob_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivery_date') }}</label></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('birthdate[]',$first_dob,['class' => 'form-control','readonly','id'=>'birthdate']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('birthdate[]',$second_dob,['class' => 'form-control','readonly','id'=>'birthdate2']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('birthdate[]',$third_dob,['class' => 'form-control','readonly','id'=>'birthdate3']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$delivery_time_array = explode(",", $delivery_record->delivery_time);
|
||||
$first_delivery_time = $delivery_time_array[0];
|
||||
$second_delivery_time = $delivery_time_array[1];
|
||||
$third_delivery_time = $delivery_time_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivery_time') }}</label></td>
|
||||
<td>
|
||||
<input type="time" name ="deliveryTime[]" class="form-control" value="{{ $first_delivery_time }}" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="time" name ="deliveryTime[]" class="form-control" value="{{ $second_delivery_time }}" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="time" name ="deliveryTime[]" class="form-control" value="{{ $third_delivery_time }}" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$duration_one_array = explode(",", $delivery_record->duration_1);
|
||||
$first_duration_one = $duration_one_array[0];
|
||||
$second_duration_one = $duration_one_array[1];
|
||||
$third_duration_one = $duration_one_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.duration_1st') }}</label></td>
|
||||
<td>
|
||||
<input type="number" name ="duration1[]" class="form-control" value="{{ $first_duration_one }}" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="number" name ="duration1[]" class="form-control" value="{{ $second_duration_one }}" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="number" name ="duration1[]" class="form-control" value="{{ $third_duration_one }}" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$duration_two_array = explode(",", $delivery_record->duration_2);
|
||||
$first_duration_two = $duration_two_array[0];
|
||||
$first_duration_two_hr_min = explode(" and ", $first_duration_two);
|
||||
$first_duration_two_hr = $first_duration_two_hr_min[0];
|
||||
$first_duration_two_min = $first_duration_two_hr_min[1];
|
||||
$second_duration_two = $duration_two_array[1];
|
||||
$second_duration_two_hr_min = explode(" and ", $second_duration_two);
|
||||
$second_duration_two_hr = $second_duration_two_hr_min[0];
|
||||
$second_duration_two_min = $second_duration_two_hr_min[1];
|
||||
$third_duration_two = $duration_two_array[2];
|
||||
$third_duration_two_hr_min = explode(" and ", $third_duration_two);
|
||||
$third_duration_two_hr = $third_duration_two_hr_min[0];
|
||||
$third_duration_two_min = $third_duration_two_hr_min[1];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.duration_2nd') }}</label></td>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration2_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
$selected = $first_duration_two_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration2_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
$selected = $first_duration_two_min==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration2_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
$selected = $second_duration_two_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration2_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
$selected = $second_duration_two_min==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration2_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
$selected = $third_duration_two_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration2_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
$selected = $third_duration_two_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$duration_three_array = explode(",", $delivery_record->duration_3);
|
||||
$first_duration_three = $duration_three_array[0];
|
||||
$first_duration_three_hr_min = explode(" and ", $first_duration_three);
|
||||
$first_duration_three_hr = $first_duration_three_hr_min[0];
|
||||
$first_duration_three_min = $first_duration_three_hr_min[1];
|
||||
$second_duration_three = $duration_three_array[1];
|
||||
$second_duration_three_hr_min = explode(" and ", $second_duration_three);
|
||||
$second_duration_three_hr = $second_duration_three_hr_min[0];
|
||||
$second_duration_three_min = $second_duration_three_hr_min[1];
|
||||
$third_duration_three = $duration_three_array[2];
|
||||
$third_duration_three_hr_min = explode(" and ", $third_duration_three);
|
||||
$third_duration_three_hr = $third_duration_three_hr_min[0];
|
||||
$third_duration_three_min = $third_duration_three_hr_min[1];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.duration_third_stage') }}</label></td>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration3_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
$selected = $first_duration_three_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration3_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
$selected = $first_duration_three_min==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration3_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
$selected = $second_duration_three_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration3_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
$selected = $second_duration_three_min==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.hours') }}<select name='duration3_hrs[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 24 ; $i++) {
|
||||
$selected = $third_duration_three_hr==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
{{ __('maternity.minutes') }}<select name='duration3_mins[]' class="form-control">
|
||||
<?php
|
||||
for ($i=0; $i < 60 ; $i++) {
|
||||
$selected = $third_duration_three_min==$i ? "selected" : "";
|
||||
echo "<option value={$i}"." {$selected}>".$i."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$delivered_by_cadre_array = explode(",", $delivery_record->delivered_by_cadre);
|
||||
$first_cadre = $delivered_by_cadre_array[0];
|
||||
$second_cadre = $delivered_by_cadre_array[1];
|
||||
$third_cadre = $delivered_by_cadre_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivered_by_cadre') }}: </label></td>
|
||||
<td>
|
||||
<select name='deliveredByCadre[]' id='deliveredByCadre1' class="form-control compulsory">
|
||||
<option value="">--{{ __('maternity.select') }} --</option>
|
||||
<option value="1" {{ $first_cadre == 1 ? "selected" : "" }}>{{ __('maternity.staff') }}</option>
|
||||
<option value="2" {{ $first_cadre == 2 ? "selected" : "" }}>{{ __('maternity.student') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select name='deliveredByCadre[]' id='deliveredByCadre2' class="form-control compulsory">
|
||||
<option value="">--{{ __('maternity.select') }} --</option>
|
||||
<option value="1" {{ $second_cadre == 1 ? "selected" : "" }}>{{ __('maternity.staff') }}</option>
|
||||
<option value="2" {{ $second_cadre == 2 ? "selected" : "" }}>{{ __('maternity.student') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select name='deliveredByCadre[]' id='deliveredByCadre3' class="form-control compulsory">
|
||||
<option value="">--{{ __('maternity.select') }} --</option>
|
||||
<option value="1" {{ $third_cadre == 1 ? "selected" : "" }}>{{ __('maternity.staff') }}</option>
|
||||
<option value="2" {{ $third_cadre == 2 ? "selected" : "" }}>{{ __('maternity.student') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$delivered_by_name_array = explode(",", $delivery_record->delivered_by_name);
|
||||
$first_deliverer = $delivered_by_name_array[0];
|
||||
$second_deliverer = $delivered_by_name_array[1];
|
||||
$third_deliverer = $delivered_by_name_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.delivered_by_name') }}: </label></td>
|
||||
<td>
|
||||
<select class="form-control col-sm-12" name="deliveredByName[]" id="deliveredByName">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $first_deliverer == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="deliveredByName[]" id="deliveredByName">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $second_deliverer == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="deliveredByName[]" id="deliveredByName">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $third_deliverer == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$superviser_name_array = explode(",", $delivery_record->supervised_by);
|
||||
$first_supervisor = $superviser_name_array[0];
|
||||
$second_supervisor = $superviser_name_array[1];
|
||||
$third_supervisor = $superviser_name_array[2];
|
||||
@endphp
|
||||
<tr id="supervised_by_row" style="display: none;">
|
||||
<td style="padding-top: 10px;" id="supervised_by_label"><label>{{ __('maternity.supervised_by') }}</label></td>
|
||||
<td>
|
||||
<select class="form-control col-sm-12" name="supervisedBy[]" id="supervisedBy1" style="display: none;">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $first_supervisor == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="supervisedBy[]" id="supervisedBy2">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $second_supervisor == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<select class="form-control col-sm-12" name="supervisedBy[]" id="supervisedBy3">
|
||||
<option value="">-{{ __('maternity.select') }}-</option>
|
||||
@foreach($users as $item)
|
||||
<option value="{{ $item->id }}" {{ $third_supervisor == $item->id ? "selected" : "" }}>{{ $item->first_name }} {{ $item->last_name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$mode_of_delivery_array = explode(",", $delivery_record->mode_of_delivery);
|
||||
$first_supervisor = $mode_of_delivery_array[0];
|
||||
$second_supervisor = $mode_of_delivery_array[1];
|
||||
$third_supervisor = $mode_of_delivery_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.mode_of_delivery') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('modeOfDelivery[]',$mode_of_delivery,$first_supervisor,['class'=>'form-control col-sm-12','id'=>'modeOfDelivery1']) }}
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
{{ Form::select('modeOfDelivery[]',$mode_of_delivery,$second_supervisor,['class'=>'form-control col-sm-12','id'=>'modeOfDelivery2']) }}
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
{{ Form::select('modeOfDelivery[]',$mode_of_delivery,$third_supervisor,['class'=>'form-control col-sm-12','id'=>'modeOfDelivery3']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$indication_for_cs_array = explode(",", $delivery_record->indication_for_cs);
|
||||
$first_indication = $indication_for_cs_array[0];
|
||||
$second_indication = $indication_for_cs_array[1];
|
||||
$third_indication = $indication_for_cs_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.indication_for_cs') }}: <small>{{ __('maternity.from_surgery_notes') }}</small></label></td>
|
||||
<td>
|
||||
<input type="text" name ="indicationForCS[]" class="form-control" value="{{ $first_indication }}" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<input type="text" name ="indicationForCS[]" class="form-control" value="{{ $second_indication }}" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<input type="text" name ="indicationForCS[]" class="form-control" value="{{ $third_indication }}" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$location_of_delivery_array = explode(",", $delivery_record->location_of_delivery);
|
||||
$first_location = $location_of_delivery_array[0];
|
||||
$second_location = $location_of_delivery_array[1];
|
||||
$third_location = $location_of_delivery_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.location_of_delivery') }}</label></td>
|
||||
<td>
|
||||
{{ Form::select('locationOfDelivery[]',$location_of_delivery,$first_location,['class'=>'form-control col-sm-12 delivery_location','id'=>'locationOfDelivery1']) }}
|
||||
<a href="#modal_delivery_location" data-toggle="modal" id="delivery_location_modal"><font size="1">{{ __('maternity.add_new_location_of_delivery') }} </font></a>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
{{ Form::select('locationOfDelivery[]',$location_of_delivery,$second_location,['class'=>'form-control col-sm-12 delivery_location','id'=>'locationOfDelivery2']) }}
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
{{ Form::select('locationOfDelivery[]',$location_of_delivery,$third_location,['class'=>'form-control col-sm-12 delivery_location','id'=>'locationOfDelivery3']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$delivery_comments_array = explode(",", $delivery_record->delivery_comments);
|
||||
$first_delivery_comments = $delivery_comments_array[0];
|
||||
$second_delivery_comments = $delivery_comments_array[1];
|
||||
$third_delivery_comments = $delivery_comments_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.comments') }}</label></td>
|
||||
<td>
|
||||
<textarea name ="deliveryComments[]" class="form-control" style="width: 100%">{{$first_delivery_comments}}</textarea>
|
||||
</td>
|
||||
<td class="twins-column" style="display: none;">
|
||||
<textarea name ="deliveryComments[]" class="form-control" style="width: 100%">{{$second_delivery_comments}}</textarea>
|
||||
</td>
|
||||
<td class="triplets-column" style="display: none;">
|
||||
<textarea name ="deliveryComments[]" class="form-control" style="width: 100%">{{$third_delivery_comments}}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- new delivery location modal -->
|
||||
<div class="modal fade" id="modal_delivery_location" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" 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>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('maternity.register_location_delivery') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control compulsory" id="delivery_location_name" name="delivery_location_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('maternity.cancel') }}</button>
|
||||
<input type="button" class="btn btn-primary" id="submit_delivery_location" value="{{ __('maternity.save') }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of new delivery location modal -->
|
||||
+384
@@ -0,0 +1,384 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr{
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
.table_no_padding td{
|
||||
padding: 4px;
|
||||
}
|
||||
</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">{{ __('maternity.delivery_record') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('maternity.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('maternity.patient') }}</a></li>
|
||||
<li class="active">{{ __('maternity.delivery_record') }}</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">
|
||||
<div class="white-box">
|
||||
<b>{{ __('maternity.delivery_for_episode_started') }} : <a><font style="color: blue;">{{ streamline_date(get_name($episode_id, "id", "created_at", "patient_episodes")) }}</font></b><br><br>
|
||||
{{ Form::open(['route' => 'maternity.store_delivery_record']) }}
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center" colspan="4"></th>
|
||||
<th></th>
|
||||
<th><span class="label btn-info"><strong>{{ __('maternity.delivery') }}</strong></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 15px;"><label>{{ __('maternity.foetal_number') }}</label></td>
|
||||
<td style="width: 40%;">
|
||||
<select name='foetal_number' id='foetal_number' required class="form-control compulsory">
|
||||
<option value="1">{{ __('maternity.singleton') }}</option>
|
||||
<option value="2">{{ __('maternity.twins') }}</option>
|
||||
<option value="3">{{ __('maternity.triplets') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-6"></div>
|
||||
<hr>
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
@include('maternity::maternity.delivery_form')
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-12">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-sm-1">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<label>{{ __('maternity.blood_loss') }}: </label>
|
||||
<input type="number" step="0.1" name ="bloodLoss" class="form-control" />
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<br><br>
|
||||
<b>(mls)</b>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<label> </label>
|
||||
<select name='bloodloss_measurement' class="form-control">
|
||||
<option value="measured">{{ __('maternity.measured') }}</option>
|
||||
<option value="estimated">{{ __('maternity.estimated') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
{{ __('maternity.vaginal_delivery') }}
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
{{ __('maternity.delayed_cord_clamping') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="button" style="background:yellow; color:red;" class="btn btn-icon btn-warning">{{ __('maternity.hospital_pph_protocol') }}<br><small>{{ __('maternity.click_for_protocol') }}</small></button>
|
||||
</div>
|
||||
<div class="col-sm-4" style="padding-left: 50px;">
|
||||
<h4><strong>{{ __('maternity.baby') }}</strong></h4>
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<ul>
|
||||
<li>{{ __('maternity.clear_airway') }}</li>
|
||||
<li>{{ __('maternity.clamp_cut_cord') }}</li>
|
||||
<li>{{ __('maternity.ventilate_bag_mask') }}</li>
|
||||
<li>{{ __('maternity.shout_for_help') }}</li>
|
||||
</ul>
|
||||
<span>
|
||||
{{ __('maternity.meconium_protocol') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-6">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center" colspan="4"></th>
|
||||
<th></th>
|
||||
<th style="float: right;"><span class="label btn-info"><strong>{{ __('maternity.baby') }}</strong></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-6"></div>
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
@include('maternity::maternity.baby_form')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
@include('maternity::maternity.fresh_or_macerated_baby_form')
|
||||
|
||||
<div class="col-sm-12" id="submit_conditions">
|
||||
<div class="row">
|
||||
<div class="col-sm-6"></div>
|
||||
<div class="col-sm-6" style="padding-right: 40px;">
|
||||
<button type="submit" class="btn btn-success" style="float: right;">{{ __('maternity.submit') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@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 src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#datepicker-autoclose5,#datepicker-autoclose6,#datepicker-autoclose7,#birthdate,#birthdate2,#birthdate3').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
$('document').ready(function () {
|
||||
$('#foetal_number').change(function () {
|
||||
var foetalNumber = $(this).val();
|
||||
if (foetalNumber == 1) {
|
||||
$('#if_alive_baby2').hide();
|
||||
$('#if_alive_baby3').hide();
|
||||
$('#if_fresh_or_macerated_baby2').hide();
|
||||
$('#if_fresh_or_macerated_baby3').hide();
|
||||
$('.twins-column').hide();
|
||||
$('.triplets-column').hide();
|
||||
}
|
||||
else if (foetalNumber == 2) {
|
||||
$('.twins-column').show();
|
||||
$('.triplets-column').hide();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#if_alive_baby3').hide();
|
||||
} else if (foetalNumber == 3) {
|
||||
$('.twins-column').show();
|
||||
$('.triplets-column').show();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#if_alive_baby3').show();
|
||||
} else {
|
||||
$('.twins-column').hide();
|
||||
$('.triplets-column').hide();
|
||||
}
|
||||
});
|
||||
$('#deliveredByCadre1').change(function () {
|
||||
var cadre = $(this).val();
|
||||
if (cadre == 2) {
|
||||
$('#supervised_by_row').show();
|
||||
$('#supervised_by_label').show();
|
||||
$('#supervisedBy1').show();
|
||||
}
|
||||
});
|
||||
$('#deliveredByCadre2').change(function () {
|
||||
var cadre = $(this).val();
|
||||
if (cadre == 2) {
|
||||
$('#supervised_by_row').show();
|
||||
$('#supervised_by_label').show();
|
||||
$('#supervisedBy2').show();
|
||||
}
|
||||
});
|
||||
$('#deliveredByCadre3').change(function () {
|
||||
var cadre = $(this).val();
|
||||
if (cadre == 2) {
|
||||
$('#supervised_by_row').show();
|
||||
$('#supervised_by_label').show();
|
||||
$('#supervisedBy3').show();$('#supervised_by').show();
|
||||
}
|
||||
});
|
||||
$('#condition_1').change(function () {
|
||||
var condition = $(this).val();
|
||||
if (condition == 1) {
|
||||
$('#if_fresh_or_macerated_baby1').hide();
|
||||
$('#if_alive_baby1').show();
|
||||
$('#submit_conditions').show();
|
||||
} else {
|
||||
$('#if_fresh_or_macerated_baby1').show();
|
||||
$('#if_alive_baby1').hide();
|
||||
$('#submit_conditions').show();
|
||||
}
|
||||
});
|
||||
$('#condition_2').change(function () {
|
||||
var condition = $(this).val();
|
||||
if (condition == 1) {
|
||||
$('#if_fresh_or_macerated_baby2').hide();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#submit_conditions').show();
|
||||
} else {
|
||||
$('#if_fresh_or_macerated_baby2').show();
|
||||
$('#if_alive_baby2').hide();
|
||||
$('#submit_conditions').show();
|
||||
}
|
||||
});
|
||||
$('#condition_3').change(function () {
|
||||
var condition = $(this).val();
|
||||
if (condition == 1) {
|
||||
$('#if_fresh_or_macerated_baby3').hide();
|
||||
$('#if_alive_baby3').show();
|
||||
$('#submit_conditions').show();
|
||||
} else {
|
||||
$('#if_fresh_or_macerated_baby3').show();
|
||||
$('#if_alive_baby3').hide();
|
||||
$('#submit_conditions').show();
|
||||
}
|
||||
});
|
||||
/*advanced_resuscitation conditions*/
|
||||
$('#advanced_resuscitation1').change(function () {
|
||||
var advanced_resuscitation = $(this).val();
|
||||
if (advanced_resuscitation == 'no') {
|
||||
$('#advanced_resuscitation_ett_row1,#advanced_resuscitation_ecm_row1,#advanced_resuscitation_drugs_row1').hide();
|
||||
}
|
||||
else{
|
||||
$('#advanced_resuscitation_ett_row1,#advanced_resuscitation_ecm_row1,#advanced_resuscitation_drugs_row1').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#advanced_resuscitation2').change(function () {
|
||||
var advanced_resuscitation = $(this).val();
|
||||
if (advanced_resuscitation == 'no') {
|
||||
$('#advanced_resuscitation_ett_row2,#advanced_resuscitation_ecm_row2,#advanced_resuscitation_drugs_row2').hide();
|
||||
}
|
||||
else{
|
||||
$('#advanced_resuscitation_ett_row2,#advanced_resuscitation_ecm_row2,#advanced_resuscitation_drugs_row2').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#advanced_resuscitation3').change(function () {
|
||||
var advanced_resuscitation = $(this).val();
|
||||
if (advanced_resuscitation == 'no') {
|
||||
$('#advanced_resuscitation_ett_row3,#advanced_resuscitation_ecm_row3,#advanced_resuscitation_drugs_row3').hide();
|
||||
}
|
||||
else{
|
||||
$('#advanced_resuscitation_ett_row3,#advanced_resuscitation_ecm_row3,#advanced_resuscitation_drugs_row3').show();
|
||||
}
|
||||
});
|
||||
/* add a new ward */
|
||||
$("#submit_ward").click(function () {
|
||||
var ward_name = $("#ward_name").val();
|
||||
if (ward_name == '') {
|
||||
alert("<?php echo __('maternity.fill_out_name'); ?>");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "add_new_ward",
|
||||
data: {ward_name: ward_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('maternity.ward_error'); ?>");
|
||||
} else {
|
||||
$('.ward').append($('<option>', {
|
||||
value: response,
|
||||
text: ward_name
|
||||
}));
|
||||
alert('<?php echo __('maternity.new_ward_added'); ?>');
|
||||
$('#modal_ward').modal('hide'); //manually hide the modal
|
||||
$('.ward').val(response);//preselect the newly added referral
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$("#ward_name").val('');
|
||||
$("#modal_ward #close").click();
|
||||
});
|
||||
/* add a new delivery location */
|
||||
$("#submit_delivery_location").click(function () {
|
||||
var delivery_location_name = $("#delivery_location_name").val();
|
||||
if (delivery_location_name == '') {
|
||||
alert("<?php echo __('maternity.fill_out_name'); ?>");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_delivery_location",
|
||||
data: {delivery_location_name: delivery_location_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('maternity.delivery_location_error'); ?>");
|
||||
} else {
|
||||
$('.delivery_location').append($('<option>', {
|
||||
value: response,
|
||||
text: delivery_location_name
|
||||
}));
|
||||
alert('<?php echo __('maternity.delivery_location_added'); ?>');
|
||||
$('#modal_delivery_location').modal('hide'); //manually hide the modal
|
||||
$('.delivery_location').val(response);//preselect the newly added referral
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#delivery_name").val('');
|
||||
$("#modal_delivery_location #close").click();
|
||||
});
|
||||
/* end of adding new delivery location */
|
||||
});
|
||||
//make the following dropdwowns searchable
|
||||
$("select[name='receivedBy[]']").select2({
|
||||
placeholder: "-- <?php echo __('maternity.select'); ?> --"
|
||||
});
|
||||
$("select[name='deliveredByName[]']").select2({
|
||||
placeholder: "-- <?php echo __('maternity.select'); ?> --"
|
||||
});
|
||||
$("select[name='supervisedBy[]']").select2({
|
||||
placeholder: "-- <?php echo __('maternity.select'); ?> --"
|
||||
});
|
||||
//add distorted styling caused by the default select 2 css
|
||||
$('.select2-selection.select2-selection--single').css('height','calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top','5px');
|
||||
$('.select2.select2-container.select2-container--default').css('width','100%');
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+464
@@ -0,0 +1,464 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
|
||||
<h4 class="page-title">{{ __('maternity.delivery_for_episode_started') }} : {{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('maternity.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('maternity.patient') }}</a></li>
|
||||
<li class="active">{{ __('maternity.delivery_record') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('maternity.patient_number') }}</th>
|
||||
<td>{{ $patient->number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.foetal_number') }}</th>
|
||||
<td>{{ $delivery_record_details->foetal_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.blood_loss') }}</th>
|
||||
<td>{{ $delivery_record_details->blood_loss }} (mls)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.blood_loss_measurement') }}</th>
|
||||
<td>{{ $delivery_record_details->bloodloss_measurement }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.triage_done_on') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ __('maternity.baby') }} 1</th>
|
||||
@if($delivery_record_details->foetal_number == 2)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
@elseif ($delivery_record_details->foetal_number == 3)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
<th>{{ __('maternity.baby') }} 3</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $foetal_number = $delivery_record_details->foetal_number; @endphp
|
||||
<tr>
|
||||
<th>{{ __('maternity.date_of_birth') }}</th>
|
||||
@php
|
||||
$date_of_birth_array = explode(",", $delivery_record_details->date_of_birth);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $date_of_birth_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.delivery_time') }}</th>
|
||||
@php
|
||||
$delivery_time_array = explode(",", $delivery_record_details->delivery_time);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $delivery_time_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.duration_1st') }}</th>
|
||||
@php
|
||||
$duration_first_array = explode(",", $delivery_record_details->duration_1);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $duration_first_array[$x] }} {{ __('maternity.hours') }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.duration_2nd') }}</th>
|
||||
@php
|
||||
$duration_second_stage_array = explode(",", $delivery_record_details->duration_2);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@php
|
||||
$duration2_in_hrs_and_mins = explode("and", $duration_second_stage_array[$x]);
|
||||
@endphp
|
||||
<td>{{ $duration2_in_hrs_and_mins[0] }} {{ __('maternity.hours') }} {{ $duration2_in_hrs_and_mins[1] }} {{ __('maternity.minutes') }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.duration_3rd') }}</th>
|
||||
@php
|
||||
$duration_third_stage_array = explode(",", $delivery_record_details->duration_3);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@php
|
||||
$duration3_in_hrs_and_mins = explode("and", $duration_third_stage_array[$x]);
|
||||
@endphp
|
||||
<td>{{ $duration3_in_hrs_and_mins[0] }} {{ __('maternity.hours') }} {{ $duration2_in_hrs_and_mins[1] }} {{ __('maternity.minutes') }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.delivered_by_cadre') }}</th>
|
||||
@php
|
||||
$delivered_by_cadre_array = explode(",", $delivery_record_details->delivered_by_cadre);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $delivered_by_cadre_array[$x] == 1 ? "Staff" : "Student" }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.delivered_by_name') }}</th>
|
||||
@php
|
||||
$delivered_by_name_array = explode(",", $delivery_record_details->delivered_by_name);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($users[$delivered_by_name_array[$x]]) ? $users[$delivered_by_name_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.supervised_by') }}</th>
|
||||
@php
|
||||
$supervised_by_array = explode(",", $delivery_record_details->supervised_by);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($users[$supervised_by_array[$x]]) ? $users[$supervised_by_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.mode_of_delivery') }}</th>
|
||||
@php
|
||||
$mode_of_delivery_array = explode(",", $delivery_record_details->mode_of_delivery);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($delivery_modes[$mode_of_delivery_array[$x]]) ? $delivery_modes[$mode_of_delivery_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.indication_for_cs') }}</th>
|
||||
@php
|
||||
$indication_for_cs_array = explode(",", $delivery_record_details->indication_for_cs);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $indication_for_cs_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.location_of_delivery') }}</th>
|
||||
@php
|
||||
$location_of_delivery_array = explode(",", $delivery_record_details->location_of_delivery);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($delivery_locations[$location_of_delivery_array[$x]]) ? $delivery_locations[$location_of_delivery_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.resuscitation_airway') }}</th>
|
||||
@php
|
||||
$resuscitation_airway_array = explode(",", $delivery_record_details->resuscitation_airway);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>
|
||||
@if ($resuscitation_airway_array[$x] == "1")
|
||||
{{ __('maternity.nil') }}
|
||||
@elseif($resuscitation_airway_array[$x] == "2")
|
||||
{{ __('maternity.bag') }}
|
||||
@elseif($resuscitation_airway_array[$x] == "3")
|
||||
{{ __('maternity.mask') }}
|
||||
@endif
|
||||
</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.resuscitation_suction') }}</th>
|
||||
@php
|
||||
$resuscitation_suction_array = explode(",", $delivery_record_details->resuscitation_suction);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $resuscitation_suction_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
@php
|
||||
$delivery_comments_array = explode(",", $delivery_record_details->delivery_comments);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $delivery_comments_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ __('maternity.baby') }} 1</th>
|
||||
@if($delivery_record_details->foetal_number == 2)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
@elseif ($delivery_record_details->foetal_number == 3)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
<th>{{ __('maternity.baby') }} 3</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('maternity.received_by') }}</th>
|
||||
@php
|
||||
$received_by_array = explode(",", $delivery_record_details->received_by);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($users[$received_by_array[$x]]) ? $users[$received_by_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.sex') }}</th>
|
||||
@php
|
||||
$gender_array = explode(",", $delivery_record_details->gender);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@if($gender_array[$x] ==1 )
|
||||
<td>{{ __('maternity.female') }}</td>
|
||||
@elseif($gender_array[$x] == 2)
|
||||
<td>{{ __('maternity.male') }}</td>
|
||||
@else
|
||||
<td>{{ __('maternity.other') }}</td>
|
||||
@endif
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.condition') }}</th>
|
||||
@php
|
||||
$baby_condition_array = explode(",", $delivery_record_details->baby_condition);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@if($baby_condition_array[$x] == 1)
|
||||
<td>{{ __('maternity.alive') }}</td>
|
||||
@elseif($baby_condition_array[$x] == 2)
|
||||
<td>{{ __('maternity.fresh_sb') }}</td>
|
||||
@elseif($baby_condition_array[$x] == 3)
|
||||
<td>{{ __('maternity.macerated_sb') }}</td>
|
||||
@endif
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.weight') }}</th>
|
||||
@php
|
||||
$weight_array = explode(",", $delivery_record_details->weight);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $weight_array[$x] }} Kg</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.congenital_abnormalities_apparent') }}</th>
|
||||
@php
|
||||
$congenital_abnormalities_array = explode(",", $delivery_record_details->congenital_abnormalities);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $congenital_abnormalities_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.birth_order') }}</th>
|
||||
@php
|
||||
$birth_order_array = explode(",", $delivery_record_details->birth_order);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $birth_order_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.apgar_1') }}</th>
|
||||
@php
|
||||
$apgar_score_at_1_min_array = explode(",", $delivery_record_details->apgar_score_at_minute_1);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $apgar_score_at_1_min_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.apgar_5') }}</th>
|
||||
@php
|
||||
$apgar_score_at_5_min_array = explode(",", $delivery_record_details->apgar_score_at_minute_5);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $apgar_score_at_5_min_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.apgar_10') }}</th>
|
||||
@php
|
||||
$apgar_score_at_10_min_array = explode(",", $delivery_record_details->apgar_score_at_minute_10);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $apgar_score_at_10_min_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.age_established_respiration') }}</th>
|
||||
@php
|
||||
$age_established_spontaneous_respiration_array = explode(",", $delivery_record_details->age_established_spontaneous_reg_respiration);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $age_established_spontaneous_respiration_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
@php
|
||||
$baby_comments_array = explode(",", $delivery_record_details->baby_comments);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $baby_comments_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.moved_to') }}</th>
|
||||
@php
|
||||
$moved_to_array = explode(",", $delivery_record_details->moved_to);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ get_name($moved_to_array[$x], "id", "name", "wards") }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
<strong>{{ __('maternity.baby_record_on') }} Stre@mline</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($babies as $baby)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/patient_episodes/set_patient_id/{{ $baby->id }}" style="border-radius: 5px;" class="btn btn-success btn-sm"><span class="glyphicon glyphicon-hand-up"></span> {{ __('maternity.select') }}</a>
|
||||
</td>
|
||||
<td>{{ $baby->number }}</td>
|
||||
<td>{{ $baby->first_name." ".$baby->last_name }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::open(['method' => 'POST', 'route' => 'maternity.print_delivery_record_details', 'target' => "_blank"]) }}
|
||||
<input type="hidden" name="patient_number" id="patient_number" value='{{ $patient->number }}' />
|
||||
<input type="hidden" name="users" id="users" value='{{ serialize($users->toArray()) }}' />
|
||||
<input type="hidden" name="delivery_modes" id="delivery_modes" value='{{ serialize($delivery_modes->toArray()) }}' />
|
||||
<input type="hidden" name="delivery_locations" id="delivery_locations" value='{{ serialize($delivery_locations->toArray()) }}' />
|
||||
<input type="hidden" name="patient_id" id="patient_id" value='{{ $patient->id }}' />
|
||||
<input type="hidden" name="episode_id" id="episode_id" value='{{ $episode_id }}' />
|
||||
<div class="col-md-2">
|
||||
<button class="btn btn-info btn-sm waves-effect waves-light" type="submit" style="border-radius: 5px;"><span class="glyphicon glyphicon-print"></span> {{ __('hmis_reports.print') }}</button>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<a class="btn btn-primary btn-sm waves-effect waves-light" style="border-radius: 5px;" href="/edit_delivery_record/{{ $delivery_record_details->id }}"><span class="glyphicon glyphicon-edit"></span> Edit Delivery Record</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="row">
|
||||
|
||||
<div class="col-sm-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Observations</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Symptoms</th>
|
||||
<th>Duration</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
Executable
+2414
File diff suppressed because it is too large
Load Diff
+408
@@ -0,0 +1,408 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr{
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
.table_no_padding td{
|
||||
padding: 4px;
|
||||
}
|
||||
</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">{{ __('maternity.delivery_record') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('maternity.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('maternity.patient') }}</a></li>
|
||||
<li class="active">{{ __('maternity.delivery_record') }}</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">
|
||||
<div class="white-box">
|
||||
<b>{{ __('maternity.delivery_for_episode_started') }} : <a><font style="color: blue;">{{ streamline_date(get_name($episode_id, "id", "created_at", "patient_episodes")) }}</font></b><br><br>
|
||||
{{ Form::model($delivery_record, ['method' => 'PUT', 'route' => ['maternity.delivery_record_update',$delivery_record], 'data-toggle' => 'validator']) }}
|
||||
{{ Form::hidden('patient_id', $patient_id) }}
|
||||
{{ Form::hidden('episode_id', $episode_id) }}
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center" colspan="4"></th>
|
||||
<th></th>
|
||||
<th><span class="label btn-info"><strong>{{ __('maternity.delivery') }}</strong></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 15px;"><label>{{ __('maternity.foetal_number') }}</label></td>
|
||||
<td style="width: 40%;">
|
||||
{{ Form::select('foetal_number', ['1' => __('maternity.singleton'),'2' => __('maternity.twins'),'3' => __('maternity.triplets')], $delivery_record->foetal_number, ['class' => 'form-control compulsory', 'required', 'id' => 'foetal_number']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-6"></div>
|
||||
<hr>
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
@include('maternity::maternity.delivery_form_edit')
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-12">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-sm-1">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<label>{{ __('maternity.blood_loss') }}: </label>
|
||||
<input type="number" step="0.1" name ="bloodLoss" value="{{ $delivery_record->blood_loss }}" class="form-control" />
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<br><br>
|
||||
<b>(mls)</b>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<label> </label>
|
||||
<select name='bloodloss_measurement' class="form-control">
|
||||
<option value="measured" {{ $delivery_record->bloodloss_measurement == "measured" ? "selected" : "" }}>{{ __('maternity.measured') }}</option>
|
||||
<option value="estimated" {{ $delivery_record->bloodloss_measurement == "estimated" ? "selected" : "" }}>{{ __('maternity.estimated') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
{{ __('maternity.vaginal_delivery') }}
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
{{ __('maternity.delayed_cord_clamping') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<button type="button" style="background:yellow; color:red;" class="btn btn-icon btn-warning">{{ __('maternity.hospital_pph_protocol') }}<br><small>{{ __('maternity.click_for_protocol') }}</small></button>
|
||||
</div>
|
||||
<div class="col-sm-4" style="padding-left: 50px;">
|
||||
<h4><strong>{{ __('maternity.baby') }}</strong></h4>
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<ul>
|
||||
<li>{{ __('maternity.clear_airway') }}</li>
|
||||
<li>{{ __('maternity.clamp_cut_cord') }}</li>
|
||||
<li>{{ __('maternity.ventilate_bag_mask') }}</li>
|
||||
<li>{{ __('maternity.shout_for_help') }}</li>
|
||||
</ul>
|
||||
<span>
|
||||
{{ __('maternity.meconium_protocol') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-sm-6">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center" colspan="4"></th>
|
||||
<th></th>
|
||||
<th style="float: right;"><span class="label btn-info"><strong>{{ __('maternity.baby') }}</strong></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-6"></div>
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
@include('maternity::maternity.baby_form_edit')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
@include('maternity::maternity.fresh_or_macerated_baby_form_edit')
|
||||
|
||||
<div class="col-sm-12" id="submit_conditions">
|
||||
<div class="row">
|
||||
<div class="col-sm-6"></div>
|
||||
<div class="col-sm-6" style="padding-right: 40px;">
|
||||
<button type="submit" class="btn btn-success" style="float: right;">{{ __('maternity.submit') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@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 src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#datepicker-autoclose5,#datepicker-autoclose6,#datepicker-autoclose7,#birthdate,#birthdate2,#birthdate3').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
$('document').ready(function () {
|
||||
var deliveryRecord = <?php echo $delivery_record; ?>;
|
||||
console.log(deliveryRecord);
|
||||
deliveryFoetalNumber = deliveryRecord['foetal_number'];
|
||||
if (deliveryFoetalNumber == 1) {
|
||||
$('#if_alive_baby2').hide();
|
||||
$('#if_alive_baby3').hide();
|
||||
$('#if_fresh_or_macerated_baby2').hide();
|
||||
$('#if_fresh_or_macerated_baby3').hide();
|
||||
$('.twins-column').hide();
|
||||
$('.triplets-column').hide();
|
||||
} else if (deliveryFoetalNumber == 2) {
|
||||
$('.twins-column').show();
|
||||
$('.triplets-column').hide();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#if_alive_baby3').hide();
|
||||
} else if (deliveryFoetalNumber == 3) {
|
||||
$('.twins-column').show();
|
||||
$('.triplets-column').show();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#if_alive_baby3').show();
|
||||
} else {
|
||||
$('.twins-column').hide();
|
||||
$('.triplets-column').hide();
|
||||
}
|
||||
|
||||
|
||||
$('#foetal_number').change(function () {
|
||||
var foetalNumber = $(this).val();
|
||||
if (foetalNumber == 1) {
|
||||
$('#if_alive_baby2').hide();
|
||||
$('#if_alive_baby3').hide();
|
||||
$('#if_fresh_or_macerated_baby2').hide();
|
||||
$('#if_fresh_or_macerated_baby3').hide();
|
||||
$('.twins-column').hide();
|
||||
$('.triplets-column').hide();
|
||||
}
|
||||
else if (foetalNumber == 2) {
|
||||
$('.twins-column').show();
|
||||
$('.triplets-column').hide();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#if_alive_baby3').hide();
|
||||
} else if (foetalNumber == 3) {
|
||||
$('.twins-column').show();
|
||||
$('.triplets-column').show();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#if_alive_baby3').show();
|
||||
} else {
|
||||
$('.twins-column').hide();
|
||||
$('.triplets-column').hide();
|
||||
}
|
||||
});
|
||||
$('#deliveredByCadre1').change(function () {
|
||||
var cadre = $(this).val();
|
||||
if (cadre == 2) {
|
||||
$('#supervised_by_row').show();
|
||||
$('#supervised_by_label').show();
|
||||
$('#supervisedBy1').show();
|
||||
}
|
||||
});
|
||||
$('#deliveredByCadre2').change(function () {
|
||||
var cadre = $(this).val();
|
||||
if (cadre == 2) {
|
||||
$('#supervised_by_row').show();
|
||||
$('#supervised_by_label').show();
|
||||
$('#supervisedBy2').show();
|
||||
}
|
||||
});
|
||||
$('#deliveredByCadre3').change(function () {
|
||||
var cadre = $(this).val();
|
||||
if (cadre == 2) {
|
||||
$('#supervised_by_row').show();
|
||||
$('#supervised_by_label').show();
|
||||
$('#supervisedBy3').show();$('#supervised_by').show();
|
||||
}
|
||||
});
|
||||
$('#condition_1').change(function () {
|
||||
var condition = $(this).val();
|
||||
if (condition == 1) {
|
||||
$('#if_fresh_or_macerated_baby1').hide();
|
||||
$('#if_alive_baby1').show();
|
||||
$('#submit_conditions').show();
|
||||
} else {
|
||||
$('#if_fresh_or_macerated_baby1').show();
|
||||
$('#if_alive_baby1').hide();
|
||||
$('#submit_conditions').show();
|
||||
}
|
||||
});
|
||||
$('#condition_2').change(function () {
|
||||
var condition = $(this).val();
|
||||
if (condition == 1) {
|
||||
$('#if_fresh_or_macerated_baby2').hide();
|
||||
$('#if_alive_baby2').show();
|
||||
$('#submit_conditions').show();
|
||||
} else {
|
||||
$('#if_fresh_or_macerated_baby2').show();
|
||||
$('#if_alive_baby2').hide();
|
||||
$('#submit_conditions').show();
|
||||
}
|
||||
});
|
||||
$('#condition_3').change(function () {
|
||||
var condition = $(this).val();
|
||||
if (condition == 1) {
|
||||
$('#if_fresh_or_macerated_baby3').hide();
|
||||
$('#if_alive_baby3').show();
|
||||
$('#submit_conditions').show();
|
||||
} else {
|
||||
$('#if_fresh_or_macerated_baby3').show();
|
||||
$('#if_alive_baby3').hide();
|
||||
$('#submit_conditions').show();
|
||||
}
|
||||
});
|
||||
/*advanced_resuscitation conditions*/
|
||||
$('#advanced_resuscitation1').change(function () {
|
||||
var advanced_resuscitation = $(this).val();
|
||||
if (advanced_resuscitation == 'no') {
|
||||
$('#advanced_resuscitation_ett_row1,#advanced_resuscitation_ecm_row1,#advanced_resuscitation_drugs_row1').hide();
|
||||
}
|
||||
else{
|
||||
$('#advanced_resuscitation_ett_row1,#advanced_resuscitation_ecm_row1,#advanced_resuscitation_drugs_row1').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#advanced_resuscitation2').change(function () {
|
||||
var advanced_resuscitation = $(this).val();
|
||||
if (advanced_resuscitation == 'no') {
|
||||
$('#advanced_resuscitation_ett_row2,#advanced_resuscitation_ecm_row2,#advanced_resuscitation_drugs_row2').hide();
|
||||
}
|
||||
else{
|
||||
$('#advanced_resuscitation_ett_row2,#advanced_resuscitation_ecm_row2,#advanced_resuscitation_drugs_row2').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#advanced_resuscitation3').change(function () {
|
||||
var advanced_resuscitation = $(this).val();
|
||||
if (advanced_resuscitation == 'no') {
|
||||
$('#advanced_resuscitation_ett_row3,#advanced_resuscitation_ecm_row3,#advanced_resuscitation_drugs_row3').hide();
|
||||
}
|
||||
else{
|
||||
$('#advanced_resuscitation_ett_row3,#advanced_resuscitation_ecm_row3,#advanced_resuscitation_drugs_row3').show();
|
||||
}
|
||||
});
|
||||
/* add a new ward */
|
||||
$("#submit_ward").click(function () {
|
||||
var ward_name = $("#ward_name").val();
|
||||
if (ward_name == '') {
|
||||
alert("<?php echo __('maternity.fill_out_name'); ?>");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "add_new_ward",
|
||||
data: {ward_name: ward_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('maternity.ward_error'); ?>");
|
||||
} else {
|
||||
$('.ward').append($('<option>', {
|
||||
value: response,
|
||||
text: ward_name
|
||||
}));
|
||||
alert('<?php echo __('maternity.new_ward_added'); ?>');
|
||||
$('#modal_ward').modal('hide'); //manually hide the modal
|
||||
$('.ward').val(response);//preselect the newly added referral
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$("#ward_name").val('');
|
||||
$("#modal_ward #close").click();
|
||||
});
|
||||
/* add a new delivery location */
|
||||
$("#submit_delivery_location").click(function () {
|
||||
var delivery_location_name = $("#delivery_location_name").val();
|
||||
if (delivery_location_name == '') {
|
||||
alert("<?php echo __('maternity.fill_out_name'); ?>");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_delivery_location",
|
||||
data: {delivery_location_name: delivery_location_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("<?php echo __('maternity.delivery_location_error'); ?>");
|
||||
} else {
|
||||
$('.delivery_location').append($('<option>', {
|
||||
value: response,
|
||||
text: delivery_location_name
|
||||
}));
|
||||
alert('<?php echo __('maternity.delivery_location_added'); ?>');
|
||||
$('#modal_delivery_location').modal('hide'); //manually hide the modal
|
||||
$('.delivery_location').val(response);//preselect the newly added referral
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#delivery_name").val('');
|
||||
$("#modal_delivery_location #close").click();
|
||||
});
|
||||
/* end of adding new delivery location */
|
||||
});
|
||||
//make the following dropdwowns searchable
|
||||
$("select[name='receivedBy[]']").select2({
|
||||
placeholder: "-- <?php echo __('maternity.select'); ?> --"
|
||||
});
|
||||
$("select[name='deliveredByName[]']").select2({
|
||||
placeholder: "-- <?php echo __('maternity.select'); ?> --"
|
||||
});
|
||||
$("select[name='supervisedBy[]']").select2({
|
||||
placeholder: "-- <?php echo __('maternity.select'); ?> --"
|
||||
});
|
||||
//add distorted styling caused by the default select 2 css
|
||||
$('.select2-selection.select2-selection--single').css('height','calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top','5px');
|
||||
$('.select2.select2-container.select2-container--default').css('width','100%');
|
||||
</script>
|
||||
@endpush
|
||||
docker/statistics/Modules/Maternity/Resources/views/maternity/fresh_or_macerated_baby_form.blade.php
Executable
+820
@@ -0,0 +1,820 @@
|
||||
<div class="col-sm-12" id="if_fresh_or_macerated_baby1" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_death_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form1" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form1" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_audit_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form1" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form1" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form3" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form3" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12" id="if_alive_baby1">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_1') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_5') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_5[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_10') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.age_established_respiration') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('age_established_spontaneous_reg_respiration[]',$respiration_minutes,'',['class'=>'form-control col-sm-12']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_airway') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_airway[]' class="form-control">
|
||||
<option value="1">{{ __('maternity.nil') }}</option>
|
||||
<option value="2">{{ __('maternity.bag') }}</option>
|
||||
<option value="3">{{ __('maternity.mask') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_suction') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_suction[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation[]' class="form-control" id="advanced_resuscitation1">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ett_row1">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ett') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ett[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ecm_row1">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ecm') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ecm[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;" id="advanced_resuscitation_drugs_row1">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_drugs') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<input type="radio" name="advanced_resuscitation_drugs1" class="compulsory checkbox" value="1"/>
|
||||
IV dextrose
|
||||
<input type="radio" name="advanced_resuscitation_drugs1" class="compulsory checkbox" value="2"/>
|
||||
Adrenaline
|
||||
<input type="radio" name="advanced_resuscitation_drugs1" class="compulsory checkbox" value="3"/>
|
||||
Aminophylline
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.vitamin_given') }}<small><font color="red"><br> {{ __('maternity.tick_yes_vit_k') }}.</font></small> </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given1" class="checkbox" value="1"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given1" class="checkbox" value="2"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.moved_to') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('moved_to[]',$wards,'',['class'=>'form-control col-sm-12 ward']) }}
|
||||
<a href="#modal_ward" data-toggle="modal" id="ward_modal"><font size="1">{{ __('maternity.add_new_ward') }} </font></a>
|
||||
<input type="hidden" id="ward_temp">
|
||||
<div id="ward_temp_display"></div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-sm-12" id="if_fresh_or_macerated_baby2" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_death_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_audit_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-sm-12" id="if_alive_baby2" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_1') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_5') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_5[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_10') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.age_established_respiration') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('age_established_spontaneous_reg_respiration[]',$respiration_minutes,'',['class'=>'form-control col-sm-12']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_airway') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_airway[]' class="form-control">
|
||||
<option value="1">{{ __('maternity.nil') }}</option>
|
||||
<option value="2">{{ __('maternity.bag') }}</option>
|
||||
<option value="3">{{ __('maternity.mask') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_suction') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_suction[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation[]' class="form-control" id="advanced_resuscitation2">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ett_row2">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ett') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ett[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ecm_row2">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ecm') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ecm[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;" id="advanced_resuscitation_drugs_row2">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_drugs') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<input type="radio" name="advanced_resuscitation_drugs2" class="compulsory checkbox" value="1"/>
|
||||
IV dextrose
|
||||
<input type="radio" name="advanced_resuscitation_drugs2" class="compulsory checkbox" value="2"/>
|
||||
Adrenaline
|
||||
<input type="radio" name="advanced_resuscitation_drugs2" class="compulsory checkbox" value="3"/>
|
||||
Aminophylline
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.vitamin_given') }}<small><font color="red"><br> {{ __('maternity.tick_yes_vit_k') }}.</font></small> </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given2" class="checkbox" value="1"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given2" class="checkbox" value="2"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.moved_to') }}</label></td>
|
||||
<td>
|
||||
{{ Form::select('moved_to[]',$wards,'',['class'=>'form-control col-sm-12 ward']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12" id="if_fresh_or_macerated_baby3" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_death_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_audit_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>
|
||||
{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-sm-12" id="if_alive_baby3" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_1') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_5') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_5[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_10') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.age_established_respiration') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('age_established_spontaneous_reg_respiration[]',$respiration_minutes,'',['class'=>'form-control col-sm-12']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_airway') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_airway[]' class="form-control">
|
||||
<option value="1">{{ __('maternity.nil') }}</option>
|
||||
<option value="2">{{ __('maternity.bag') }}</option>
|
||||
<option value="3">{{ __('maternity.mask') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_suction') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_suction[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation[]' class="form-control" id="advanced_resuscitation3">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ett_row3">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ett') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ett[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ecm_row3">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ecm') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ecm[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}">{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}">{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;" id="advanced_resuscitation_drugs_row3">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_drugs') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<input type="radio" name="advanced_resuscitation_drugs3" class="compulsory checkbox" value="1"/>
|
||||
IV dextrose
|
||||
<input type="radio" name="advanced_resuscitation_drugs3" class="compulsory checkbox" value="2"/>
|
||||
Adrenaline
|
||||
<input type="radio" name="advanced_resuscitation_drugs3" class="compulsory checkbox" value="3"/>
|
||||
Aminophylline
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.vitamin_given') }}<small><font color="red"><br> {{ __('maternity.tick_yes_vit_k') }}.</font></small> </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given3" class="checkbox" value="1"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given3" class="checkbox" value="2"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.moved_to') }}</label></td>
|
||||
<td>
|
||||
{{ Form::select('moved_to[]',$wards,'',['class'=>'form-control col-sm-12 ward']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new ward modal -->
|
||||
<div class="modal fade" id="modal_ward" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" 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>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('maternity.register_new_ward') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control compulsory" id="ward_name" name="ward_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('maternity.cancel') }}</button>
|
||||
<input type="button" class="btn btn-primary" id="submit_ward" value="{{ __('maternity.save') }} " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of ward modal -->
|
||||
+885
@@ -0,0 +1,885 @@
|
||||
<div class="col-sm-12" id="if_fresh_or_macerated_baby1" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$perinatal_death_notifications_array = explode(",", $delivery_record->perinatal_death_notification);
|
||||
$first_perinatal_death_notifications = $perinatal_death_notifications_array[0];
|
||||
$second_perinatal_death_notifications = $perinatal_death_notifications_array[1];
|
||||
$third_perinatal_death_notifications = $perinatal_death_notifications_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_death_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form1" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $first_perinatal_death_notifications == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form1" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $first_perinatal_death_notifications == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $second_perinatal_death_notifications == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $second_perinatal_death_notifications == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $third_perinatal_death_notifications == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $third_perinatal_death_notifications == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@php
|
||||
$perinatal_audit_form_array = explode(",", $delivery_record->perinatal_audit_form);
|
||||
$first_perinatal_audit_form = $perinatal_audit_form_array[0];
|
||||
$second_perinatal_audit_form = $perinatal_audit_form_array[1];
|
||||
$third_perinatal_audit_form = $perinatal_audit_form_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_audit_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form1" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $first_perinatal_audit_form == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form1" class="compulsory checkbox" value="{{ __('maternity.no') }} {{ $first_perinatal_audit_form == "no" ? "checked" : "" }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $second_perinatal_audit_form == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $second_perinatal_audit_form == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form3" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $third_perinatal_audit_form == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form3" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $third_perinatal_audit_form == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12" id="if_alive_baby1">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$apgar_score_at_minute_1_array = explode(",", $delivery_record->apgar_score_at_minute_1);
|
||||
$first_agpar_score_at_1_min = $apgar_score_at_minute_1_array[0];
|
||||
$second_agpar_score_at_1_min = $apgar_score_at_minute_1_array[1];
|
||||
$third_agpar_score_at_1_min = $apgar_score_at_minute_1_array[2];
|
||||
|
||||
$apgar_score_at_minute_5_array = explode(",", $delivery_record->apgar_score_at_minute_5);
|
||||
$first_agpar_score_at_5_min = $apgar_score_at_minute_5_array[0];
|
||||
$second_agpar_score_at_5_min = $apgar_score_at_minute_5_array[1];
|
||||
$third_agpar_score_at_5_min = $apgar_score_at_minute_5_array[2];
|
||||
|
||||
$age_established_spontaneous_reg_respiration_array = explode(",", $delivery_record->age_established_spontaneous_reg_respiration);
|
||||
$first_age_established_spontaneous_reg_respiration = $age_established_spontaneous_reg_respiration_array[0];
|
||||
$second_age_established_spontaneous_reg_respiration = $age_established_spontaneous_reg_respiration_array[1];
|
||||
$third_age_established_spontaneous_reg_respiration = $age_established_spontaneous_reg_respiration_array[2];
|
||||
|
||||
$resuscitation_airway_array = explode(",", $delivery_record->resuscitation_airway);
|
||||
$first_resuscitation_airway = $resuscitation_airway_array[0];
|
||||
$second_resuscitation_airway = $resuscitation_airway_array[1];
|
||||
$third_resuscitation_airway = $resuscitation_airway_array[2];
|
||||
|
||||
$resuscitation_suction_array = explode(",", $delivery_record->resuscitation_suction);
|
||||
$first_resuscitation_suction = $resuscitation_suction_array[0];
|
||||
$second_resuscitation_suction = $resuscitation_suction_array[1];
|
||||
$third_resuscitation_suction = $resuscitation_suction_array[2];
|
||||
|
||||
$advanced_resuscitation_drugs_array = explode(",", $delivery_record->advanced_resuscitation_drugs);
|
||||
$first_advanced_resuscitation_drugs = $advanced_resuscitation_drugs_array[0];
|
||||
$second_advanced_resuscitation_drugs = $advanced_resuscitation_drugs_array[1];
|
||||
$third_advanced_resuscitation_drugs = $advanced_resuscitation_drugs_array[2];
|
||||
|
||||
$advanced_resuscitation_ett_array = explode(",", $delivery_record->advanced_resuscitation_ett);
|
||||
$first_advanced_resuscitation_ett = $advanced_resuscitation_ett_array[0];
|
||||
$second_advanced_resuscitation_ett = $advanced_resuscitation_ett_array[1];
|
||||
$third_advanced_resuscitation_ett = $advanced_resuscitation_ett_array[2];
|
||||
|
||||
$advanced_resuscitation_ecm_array = explode(",", $delivery_record->advanced_resuscitation_ecm);
|
||||
$first_advanced_resuscitation_ecm = $advanced_resuscitation_ecm_array[0];
|
||||
$second_advanced_resuscitation_ecm = $advanced_resuscitation_ecm_array[1];
|
||||
$third_advanced_resuscitation_ecm = $advanced_resuscitation_ecm_array[2];
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_1') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_1[]" value="{{ $first_agpar_score_at_1_min }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_5') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_5[]" value="{{ $first_agpar_score_at_5_min }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_10') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.age_established_respiration') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('age_established_spontaneous_reg_respiration[]', $respiration_minutes, $first_age_established_spontaneous_reg_respiration, ['class'=>'form-control col-sm-12']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_airway') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_airway[]' class="form-control">
|
||||
<option value="1" {{ $first_resuscitation_airway == "1" ? "selected" : "" }}>{{ __('maternity.nil') }}</option>
|
||||
<option value="2" {{ $first_resuscitation_airway == "2" ? "selected" : "" }}>{{ __('maternity.bag') }}</option>
|
||||
<option value="3" {{ $first_resuscitation_airway == "3" ? "selected" : "" }}>{{ __('maternity.mask') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_suction') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_suction[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $first_resuscitation_suction == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $first_resuscitation_suction == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation[]' class="form-control" id="advanced_resuscitation1">
|
||||
<option value="{{ __('maternity.no') }}" {{ $first_advanced_resuscitation_drugs == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $first_advanced_resuscitation_drugs == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ett_row1">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ett') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ett[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $first_advanced_resuscitation_ett == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $first_advanced_resuscitation_ett == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ecm_row1">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ecm') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ecm[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $first_advanced_resuscitation_ecm == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $first_advanced_resuscitation_ecm == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;" id="advanced_resuscitation_drugs_row1">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_drugs') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<input type="radio" name="advanced_resuscitation_drugs1" class="compulsory checkbox" value="1"/>
|
||||
IV dextrose
|
||||
<input type="radio" name="advanced_resuscitation_drugs1" class="compulsory checkbox" value="2"/>
|
||||
Adrenaline
|
||||
<input type="radio" name="advanced_resuscitation_drugs1" class="compulsory checkbox" value="3"/>
|
||||
Aminophylline
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@php
|
||||
$im_vitamin_given_array = explode(",", $delivery_record->IM_vitamin_k_given);
|
||||
$first_im_vitamin_given = $im_vitamin_given_array[0];
|
||||
$second_im_vitamin_given = $im_vitamin_given_array[0];
|
||||
$third_im_vitamin_given = $im_vitamin_given_array[0];
|
||||
@endphp
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.vitamin_given') }}<small><font color="red"><br> {{ __('maternity.tick_yes_vit_k') }}.</font></small> </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given1" class="checkbox" value="1" {{$first_im_vitamin_given == 1 ? "checked" : ""}}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given1" class="checkbox" value="2" {{$first_im_vitamin_given == 2 ? "checked" : ""}}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
@php
|
||||
$moved_to_array = explode(",", $delivery_record->moved_to);
|
||||
$first_moved_to = $moved_to_array[0];
|
||||
$second_moved_to = $moved_to_array[0];
|
||||
$third_moved_to = $moved_to_array[0];
|
||||
@endphp
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.moved_to') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('moved_to[]',$wards,$first_moved_to,['class'=>'form-control col-sm-12 ward']) }}
|
||||
<a href="#modal_ward" data-toggle="modal" id="ward_modal"><font size="1">{{ __('maternity.add_new_ward') }} </font></a>
|
||||
<input type="hidden" id="ward_temp">
|
||||
<div id="ward_temp_display"></div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-sm-12" id="if_fresh_or_macerated_baby2" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_death_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $second_perinatal_death_notifications == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $second_perinatal_death_notifications == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_audit_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}" {{ $second_perinatal_audit_form == "yes" ? "checked" : "" }}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}" {{ $second_perinatal_audit_form == "no" ? "checked" : "" }}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-sm-12" id="if_alive_baby2" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_1') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_1[]" value="{{ $second_agpar_score_at_1_min }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_5') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_5[]" value="{{ $second_agpar_score_at_5_min }}" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_10') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.age_established_respiration') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('age_established_spontaneous_reg_respiration[]',$respiration_minutes,$second_age_established_spontaneous_reg_respiration,['class'=>'form-control col-sm-12']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_airway') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_airway[]' class="form-control">
|
||||
<option value="1" {{ $second_resuscitation_airway == "1" ? "selected" : "" }}>{{ __('maternity.nil') }}</option>
|
||||
<option value="2" {{ $second_resuscitation_airway == "2" ? "selected" : "" }}>{{ __('maternity.bag') }}</option>
|
||||
<option value="3" {{ $second_resuscitation_airway == "3" ? "selected" : "" }}>{{ __('maternity.mask') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_suction') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_suction[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $second_resuscitation_suction == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $second_resuscitation_suction == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation[]' class="form-control" id="advanced_resuscitation2">
|
||||
<option value="{{ __('maternity.no') }}" {{ $second_advanced_resuscitation_drugs == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $second_advanced_resuscitation_drugs == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ett_row2">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ett') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ett[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $second_advanced_resuscitation_ett == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $second_advanced_resuscitation_ett == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ecm_row2">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ecm') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ecm[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $second_advanced_resuscitation_ecm == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $second_advanced_resuscitation_ecm == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;" id="advanced_resuscitation_drugs_row2">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_drugs') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<input type="radio" name="advanced_resuscitation_drugs2" class="compulsory checkbox" value="1"/>
|
||||
IV dextrose
|
||||
<input type="radio" name="advanced_resuscitation_drugs2" class="compulsory checkbox" value="2"/>
|
||||
Adrenaline
|
||||
<input type="radio" name="advanced_resuscitation_drugs2" class="compulsory checkbox" value="3"/>
|
||||
Aminophylline
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.vitamin_given') }}<small><font color="red"><br> {{ __('maternity.tick_yes_vit_k') }}.</font></small> </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given2" class="checkbox" value="1" {{ $second_im_vitamin_given == 1 ? "checked" : ""}}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given2" class="checkbox" value="2" {{ $second_im_vitamin_given == 2 ? "checked" : ""}}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.moved_to') }}</label></td>
|
||||
<td>
|
||||
{{ Form::select('moved_to[]',$wards,$second_moved_to,['class'=>'form-control col-sm-12 ward']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12" id="if_fresh_or_macerated_baby3" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_death_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_death_notification_form3" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.perinatal_audit_info') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.yes') }}"/>
|
||||
{{ __('maternity.yes') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="perinetal_audit_form2" class="compulsory checkbox" value="{{ __('maternity.no') }}"/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-sm-12" id="if_alive_baby3" style="display: none;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-primary table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><!-- column with labels --></th>
|
||||
<th><b>{{ __('maternity.baby') }} 1</b></th>
|
||||
<th class="twins-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 2</b></th>
|
||||
<th class="triplets-columnz" style="display: none;"><b>{{ __('maternity.baby') }} 3</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_1') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_1[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_5') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_5[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.apgar_10') }}: </label></td>
|
||||
<td>
|
||||
<input type="number" max="10" name ="apgar_score_at_minute_10[]" class="form-control" style="width: 100%" />
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.age_established_respiration') }}: </label></td>
|
||||
<td>
|
||||
{{ Form::select('age_established_spontaneous_reg_respiration[]',$respiration_minutes,$third_age_established_spontaneous_reg_respiration,['class'=>'form-control col-sm-12']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_airway') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_airway[]' class="form-control">
|
||||
<option value="1">{{ __('maternity.nil') }}</option>
|
||||
<option value="2">{{ __('maternity.bag') }}</option>
|
||||
<option value="3">{{ __('maternity.mask') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.resuscitation_suction') }}</label></td>
|
||||
<td>
|
||||
<select name='resuscitation_suction[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $third_resuscitation_suction == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $third_resuscitation_suction == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation[]' class="form-control" id="advanced_resuscitation3">
|
||||
<option value="{{ __('maternity.no') }}" {{ $third_advanced_resuscitation_drugs == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $third_advanced_resuscitation_drugs == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ett_row3">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ett') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ett[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $third_advanced_resuscitation_ett == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $third_advanced_resuscitation_ett == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px; display: none;" id="advanced_resuscitation_ecm_row3">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_ecm') }}</label></td>
|
||||
<td>
|
||||
<select name='advanced_resuscitation_ecm[]' class="form-control">
|
||||
<option value="{{ __('maternity.no') }}" {{ $third_advanced_resuscitation_ecm == "no" ? "selected" : "" }}>{{ __('maternity.no') }}</option>
|
||||
<option value="{{ __('maternity.yes') }}" {{ $third_advanced_resuscitation_ecm == "yes" ? "selected" : "" }}>{{ __('maternity.yes') }}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none;" id="advanced_resuscitation_drugs_row3">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.advanced_resuscitation_drugs') }}: </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<input type="radio" name="advanced_resuscitation_drugs3" class="compulsory checkbox" value="1"/>
|
||||
IV dextrose
|
||||
<input type="radio" name="advanced_resuscitation_drugs3" class="compulsory checkbox" value="2"/>
|
||||
Adrenaline
|
||||
<input type="radio" name="advanced_resuscitation_drugs3" class="compulsory checkbox" value="3"/>
|
||||
Aminophylline
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.vitamin_given') }}<small><font color="red"><br> {{ __('maternity.tick_yes_vit_k') }}.</font></small> </label></td>
|
||||
<td>
|
||||
<div class="controls">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given3" class="checkbox" value="1" {{ $third_im_vitamin_given == 1 ? "checked" : ""}}/>{{ __('maternity.no') }}
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" name="im_vitamin_k_given3" class="checkbox" value="2" {{ $third_im_vitamin_given == 2 ? "checked" : ""}}/>{{ __('maternity.yes') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding-top: 5px;">
|
||||
<td style="padding-top: 10px;"><label>{{ __('maternity.moved_to') }}</label></td>
|
||||
<td>
|
||||
{{ Form::select('moved_to[]',$wards,$third_moved_to,['class'=>'form-control col-sm-12 ward']) }}
|
||||
</td>
|
||||
<td class="twins-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
<td class="triplets-columnz" style="display: none;">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new ward modal -->
|
||||
<div class="modal fade" id="modal_ward" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" 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>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('maternity.register_new_ward') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control compulsory" id="ward_name" name="ward_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('maternity.cancel') }}</button>
|
||||
<input type="button" class="btn btn-primary" id="submit_ward" value="{{ __('maternity.save') }} " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of ward modal -->
|
||||
+503
@@ -0,0 +1,503 @@
|
||||
{{-- blood transfusion --}}
|
||||
<div class="row">
|
||||
|
||||
|
||||
{{-- <label for="other_operation_name"> {{ __('antenatal.blood_tranfusion_checkbox') }} </label><br> --}}
|
||||
{{-- blood transfusion --}}
|
||||
<div class="col-md-4">
|
||||
<p>{{ __('antenatal.blood_transfusion') }}</p>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<input class="form-check-input" name="blood_transfusion_available[]" type="checkbox"
|
||||
@checked($latest_existing_antenatal_mother_history?->surgical_history == '2')
|
||||
id="show_blood_transfusion_input" value="1">
|
||||
<label class="form-check-label" name="blood_transfusion_available" for="show_blood_transfusion_input">
|
||||
{{ __('antenatal.yes') }} </label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row"
|
||||
style="{{ $latest_existing_antenatal_mother_history?->surgical_history == '2' ? '' : 'display:none;' }}"
|
||||
id="blood_transfusion_input">
|
||||
<div class="col-md-4">
|
||||
|
||||
<label class="form-check-label" name="blood_transfusion_available"
|
||||
for="blood_transfusion_available">
|
||||
{{ __('antenatal.why') }} </label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{{-- why --}}
|
||||
<input type="text" class="form-control col-sm-12" name="blood_transfusion_details"
|
||||
value="{{ $latest_existing_antenatal_mother_history?->surgical_history_blood_transfusion ?? '' }}">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@php
|
||||
$fracture_details = !empty($latest_existing_antenatal_mother_history->fracture_details)?
|
||||
json_decode($latest_existing_antenatal_mother_history->fracture_details, true):[];
|
||||
$pelvis_display = (!empty($fracture_details[0]['date']) || !empty($fracture_details[0]['details']))?
|
||||
'':'display:none;';
|
||||
$spine_display = (!empty($fracture_details[1]['date']) || !empty($fracture_details[1]['details']))?
|
||||
'':'display:none;';
|
||||
$femur_display = (!empty($fracture_details[2]['date']) || !empty($fracture_details[2]['details']))?
|
||||
'':'display:none;';
|
||||
@endphp
|
||||
{{-- fractures --}}
|
||||
<div class="col-md-8">
|
||||
<p>{{ __('antenatal.fractures') }}</p>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
{{-- pelvis --}}
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_pelvis_fracture_input"
|
||||
{{ in_array('1', explode(',', $latest_existing_antenatal_mother_history?->fractures)) ? 'checked'
|
||||
: '' }}
|
||||
value="1" @if (is_array(old('fractures')) && in_array('1', old('fractures'))) checked
|
||||
@endif>
|
||||
|
||||
<label class="form-check-label" id="1" for="show_pelvis_fracture_input">{{ __('antenatal.pelvis')
|
||||
}}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add pelvis fracture inputs --}}
|
||||
<div id="pelvis_fracture_input"
|
||||
style="{{ in_array('1', explode(',', $latest_existing_antenatal_mother_history?->fractures)) ? '' : 'display:none;' }}">
|
||||
<div class="input-group">
|
||||
<input type="text" name="pelvis_fracture_date" placeholder="Specify date"
|
||||
value="{{ $fracture_details[0]['date'] ?? '' }}"
|
||||
class="form-control prevent_future_pelvis_date">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
|
||||
<input type="text" name="pelvis_fracture_details" placeholder="Details" style="margin-top:8px;"
|
||||
value="{{ $fracture_details[0]['details'] ?? '' }}" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- spine --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_spine_fracture_input" {{
|
||||
in_array('2', explode(',', $latest_existing_antenatal_mother_history?->fractures)) ? 'checked' :
|
||||
'' }}
|
||||
value="2" @if (is_array(old('fractures')) && in_array('2', old('fractures'))) checked
|
||||
@endif>
|
||||
|
||||
<label class="form-check-label" id="2" for="show_spine_fracture_input">{{ __('antenatal.spine')
|
||||
}}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add spine fracture inputs --}}
|
||||
<div id="spine_fracture_input"
|
||||
style="{{ in_array('2', explode(',', $latest_existing_antenatal_mother_history?->fractures)) ? '' : 'display:none;' }}">
|
||||
<div class="input-group">
|
||||
<input type="text" name="spine_fracture_date" placeholder="Specify date"
|
||||
value="{{ $fracture_details[1]['date'] ?? '' }}"
|
||||
class="form-control prevent_future_spine_date">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
|
||||
<input type="text" name="spine_fracture_details" placeholder="Details" style="margin-top:8px;"
|
||||
value="{{ $fracture_details[1]['details'] ?? '' }}" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- femur --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_femur_fracture_input" {{
|
||||
in_array('3', explode(',', $latest_existing_antenatal_mother_history?->fractures)) ? 'checked' :
|
||||
'' }}
|
||||
value="3" @if (is_array(old('fractures')) && in_array('3', old('fractures'))) checked
|
||||
@endif>
|
||||
|
||||
<label class="form-check-label" id="3" for="show_femur_fracture_input">{{ __('antenatal.femur')
|
||||
}}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add femur fracture inputs --}}
|
||||
<div id="femur_fracture_input"
|
||||
style="{{ in_array('3', explode(',', $latest_existing_antenatal_mother_history?->fractures)) ? '' : 'display:none;' }}">
|
||||
<div class="input-group">
|
||||
<input type="text" name="femur_fracture_date" placeholder="Specify date"
|
||||
value="{{ $fracture_details[2]['date'] ?? '' }}"
|
||||
class="form-control prevent_future_femur_date">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="text" name="femur_fracture_details" placeholder="Details" style="margin-top:8px;"
|
||||
value="{{ $fracture_details[2]['details'] ?? '' }}" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- other fractures --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_other_fracture_input"
|
||||
value="4" @if (is_array(old('fractures')) && in_array('4', old('fractures'))) checked
|
||||
@endif>
|
||||
|
||||
<label class="form-check-label" id="4" for="show_other_fracture_input">{{ __('antenatal.others')
|
||||
}}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other_fractures fracture inputs --}}
|
||||
<div id="other_fracture_input" style="display: none;">
|
||||
|
||||
<input type="text" name="other_fracture_details" placeholder="Details" style="margin-top:8px;"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
|
||||
{{ Form::label('blood_group', __('maternity.blood_group')) }}
|
||||
{{ Form::select('blood_group', $blood_groups, $existing_blood_transfusion->blood_group_id ?? '', ['class' =>
|
||||
'form-control col-sm-12']) }}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{{-- <div class="col-sm-5">
|
||||
<span class="label label-primary">{{ __('maternity.blood_transfusion') }}</span>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table" id="table_2">
|
||||
<thead>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('maternity.date') }}</th>
|
||||
<th>{{ __('maternity.number_of_units') }}</th>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($anc_blood_transfusion as $blood_transfusion)
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ streamline_date($blood_transfusion->transfusion_date) }}</td>
|
||||
<td>{{ $blood_transfusion->number_of_units }}</td>
|
||||
<td>{{ $blood_transfusion->comments }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk" /></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', '', ['class' => 'form-control transfusion-date',
|
||||
'readonly']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]">
|
||||
</td>
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a class="add_field_button_2 label label-info" onclick="addBloodTransfusionRow('table_2');"
|
||||
style="color: white;">{{ __('maternity.add_row') }}</a>
|
||||
<a class="add_field_button_2 label label-danger" onclick="deleteRowData('table_2')" style="color: white;">{{
|
||||
__('maternity.delete_row') }}</a>
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
<div class="col-sm-5">
|
||||
|
||||
{{-- anc_v --}}
|
||||
{{-- <span class="label label-primary">{{ __('maternity.blood_transfusion') }}</span>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table" id="table_2">
|
||||
<thead>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('maternity.date') }}</th>
|
||||
<th>{{ __('maternity.number_of_units') }}</th>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($anc_blood_transfusion as $blood_transfusion)
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ streamline_date($blood_transfusion->transfusion_date) }}</td>
|
||||
<td>{{ $blood_transfusion->number_of_units }}</td>
|
||||
<td>{{ $blood_transfusion->comments }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk" /></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', '', ['class' => 'form-control transfusion-date',
|
||||
'readonly']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]">
|
||||
</td>
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a class="add_field_button_2 label label-info" onclick="addBloodTransfusionRow('table_2');"
|
||||
style="color: white;">{{ __('maternity.add_row') }}</a>
|
||||
<a class="add_field_button_2 label label-danger" onclick="deleteRowData('table_2')" style="color: white;">{{
|
||||
__('maternity.delete_row') }}</a>
|
||||
</div> --}}
|
||||
|
||||
{{-- updated blood transfusion --}}
|
||||
<span class="label label-primary">{{ __('maternity.blood_transfusion') }}</span>
|
||||
|
||||
|
||||
<table class="table color-table inverse-table table-responsive table-borderless"
|
||||
id="blood_transfusion_details_table">
|
||||
<thead class="thead-light">
|
||||
|
||||
<th>{{ __('maternity.date') }}</th>
|
||||
<th>{{ __('maternity.number_of_units') }}</th>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody id="blood_transfusion_data">
|
||||
@foreach ($anc_blood_transfusion as $blood_transfusion)
|
||||
<tr>
|
||||
|
||||
<td>{{ streamline_date($blood_transfusion->transfusion_date) }}</td>
|
||||
<td>{{ $blood_transfusion->number_of_units }}</td>
|
||||
<td>{{ $blood_transfusion->comments }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', '', ['class' => 'form-control transfusion-date',
|
||||
'readonly', 'id' => 'transfusion_date_1']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]"
|
||||
id="transfusion_unit_1">
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"
|
||||
id="transfusion_comment_1"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<button type="button" class="btn add_tour_itenaries_button label label-inverse"
|
||||
style="background-color:#4c5667;"
|
||||
onclick="add_blood_transfusion_row('blood_transfusion_details_table','blood_transfusion_data')">Add
|
||||
Row</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="col-sm-5">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<br><br>
|
||||
<small class="control-label"><strong>{{ __('maternity.vdrl_status') }}</strong></small><br><br>
|
||||
<small class="control-label"><strong>{{ __('maternity.hiv_status') }}</strong></small>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('result', __('maternity.result')) }}
|
||||
<input type="text" name="vdrl_result"
|
||||
value="{{ $latest_existing_maternity_inpatient_data->vdrl_result ?? $latest_existing_anc_hiv_info->vdrl_result ?? '' }}"
|
||||
class="form-control col-sm-12"><br>
|
||||
{{ Form::select('hiv_result', $hiv_statuses,
|
||||
$latest_existing_maternity_inpatient_data->hiv_result_usaid ??
|
||||
$latest_existing_anc_hiv_info->hiv_result ?? '', ['class' => 'form-control
|
||||
col-sm-12', 'id' => 'hiv_result']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date', __('maternity.date')) }}
|
||||
{{--
|
||||
Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->vdrl_date)->format('d/m/Y')
|
||||
?? '' --}}
|
||||
<div class="input-group">
|
||||
{{-- {{ Form::text(
|
||||
'vdrl_date',
|
||||
isset($latest_existing_maternity_inpatient_data->vdrl_date) ?
|
||||
Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->vdrl_date)->format('d/m/Y')
|
||||
: '',
|
||||
['class' => 'form-control', 'readonly', 'id' => 'datepicker-autoclose3'],
|
||||
) }} --}}
|
||||
|
||||
{{-- {{ Form::text(
|
||||
'vdrl_date',
|
||||
Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->vdrl_date)->format('d/m/Y')
|
||||
??
|
||||
Carbon\Carbon::parse($latest_existing_anc_hiv_info->vdrl_date)->format('d/m/Y') ?? ''
|
||||
,
|
||||
['class' => 'form-control', 'readonly', 'id' => 'datepicker-autoclose3'],
|
||||
) }} --}}
|
||||
|
||||
{{ Form::text(
|
||||
'vdrl_date',
|
||||
isset($latest_existing_maternity_inpatient_data->vdrl_date)
|
||||
?
|
||||
Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->vdrl_date)->format('d/m/Y')
|
||||
: (isset($latest_existing_anc_hiv_info->vdrl_date)
|
||||
? Carbon\Carbon::parse($latest_existing_anc_hiv_info->vdrl_date)->format('d/m/Y')
|
||||
: ''),
|
||||
['class' => 'form-control', 'readonly', 'id' => 'datepicker-autoclose3']
|
||||
) }}
|
||||
|
||||
|
||||
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<br>
|
||||
<div class="input-group">
|
||||
|
||||
{{-- {{ Form::text('hiv_date',
|
||||
isset($latest_existing_maternity_inpatient_data->hiv_date) ?
|
||||
Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->hiv_date)->format('d/m/Y')
|
||||
: '', ['class' => 'form-control datePicker', 'readonly', 'id' =>
|
||||
'datepicker-autoclose4']) }} --}}
|
||||
|
||||
|
||||
|
||||
{{ Form::text('hiv_date',
|
||||
isset($latest_existing_maternity_inpatient_data->hiv_date)
|
||||
?
|
||||
Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->hiv_date)->format('d/m/Y')
|
||||
: (isset($latest_existing_anc_hiv_info->hiv_date)
|
||||
? Carbon\Carbon::parse($latest_existing_anc_hiv_info->hiv_date)->format('d/m/Y')
|
||||
: ''),
|
||||
['class' => 'form-control datePicker', 'readonly', 'id' =>
|
||||
'datepicker-autoclose4']) }}
|
||||
|
||||
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('location', __('maternity.location')) }}
|
||||
<input type="text" name="vdrl_location" class="form-control col-sm-12"
|
||||
value="{{ $latest_existing_maternity_inpatient_data->vdrl_location ?? $latest_existing_anc_hiv_info->vdrl_location ?? '' }}"><br>
|
||||
<input type="text" name="hiv_location" class="form-control col-sm-12"
|
||||
value="{{ $latest_existing_maternity_inpatient_data->hiv_location ?? $latest_existing_anc_hiv_info->hiv_location ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@php
|
||||
// $existing_hiv_date = null;
|
||||
$existing_hiv_date = isset($latest_existing_maternity_inpatient_data->hiv_date)
|
||||
? Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->hiv_date)
|
||||
: '';
|
||||
// $existing_hiv_date = \Carbon\Carbon::parse($latest_existing_maternity_inpatient_data->hiv_date) ;
|
||||
$currentDate = \Carbon\Carbon::now();
|
||||
|
||||
$hiv_date_exceeds_three_months = '';
|
||||
if (isset($latest_existing_maternity_inpatient_data->hiv_date)) {
|
||||
if ($existing_hiv_date->diffInMonths($currentDate) >= 3) {
|
||||
$hiv_date_exceeds_three_months = $existing_hiv_date;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
<script>
|
||||
// Pass variable to javascript
|
||||
var existingHivDate = {!! json_encode($hiv_date_exceeds_three_months) !!};
|
||||
console.log("hiv date in php: ", existingHivDate);
|
||||
</script>
|
||||
|
||||
<div class="col-sm-12">
|
||||
|
||||
@if (isset($latest_existing_maternity_inpatient_data->hiv_date))
|
||||
|
||||
@if ($existing_hiv_date->diffInMonths($currentDate) >= 3)
|
||||
{{-- <div class="alert alert-warning">IF NOT HAD HIV TEST WITHIN PAST 3 MONTHS SEND TEST SAMPLE
|
||||
</div> --}}
|
||||
@endif
|
||||
@else
|
||||
@endif
|
||||
|
||||
<div id="alertboxx"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="hiv_positive_div" style="display: none;">
|
||||
<div class="form-group col-sm-4">
|
||||
{{ Form::label('art_treatment_center', __('maternity.art_treatment_center')) }}
|
||||
<input type="text" name="art_treatment_center" class="form-control col-sm-12">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
{{ Form::label('art_treatment_number', __('maternity.art_treatment_number')) }}
|
||||
<input type="text" name="art_treatment_number" class="form-control col-sm-12">
|
||||
</div>
|
||||
<div class="form-group col-sm-4" style="margin-top: 11%;">
|
||||
<button class="btn btn-outline-success">{{ __('maternity.art_clinic_record') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
{{-- DELIVERY PLAN INCLUDE FILE --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<span class="label label-primary">{{ __('maternity.delivery_plan') }}</span><br><br>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
{{-- person you live with --}}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="person_you_live_with">{{ __('maternity.person_you_live_with') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_you_live_with"
|
||||
value="{{ $latest_existing_delivery_plan->live_in_support ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- transport facility --}}
|
||||
<div class="form-group">
|
||||
<label for="transport_means_to_facility">{{ __('maternity.means_of_transport_to_facility') }}</label>
|
||||
|
||||
<select name="transport_means_to_facility" class="form-select form-control">
|
||||
<option value="null" {{ old('transport_means_to_facility')=='null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('transport_means_to_facility')=='1' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_delivery_plan->transport_means))
|
||||
@selected($latest_existing_delivery_plan->transport_means == '1')
|
||||
@endif
|
||||
|
||||
>
|
||||
Foot </option>
|
||||
<option value="2" {{ old('transport_means_to_facility')=='2' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_delivery_plan->transport_means))
|
||||
@selected($latest_existing_delivery_plan->transport_means == '2')
|
||||
@endif
|
||||
|
||||
>
|
||||
Motor bike</option>
|
||||
<option value="3" {{ old('transport_means_to_facility')=='3' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_delivery_plan->transport_means))
|
||||
@selected($latest_existing_delivery_plan->transport_means == '3')
|
||||
@endif
|
||||
>
|
||||
Private car</option>
|
||||
<option value="4" {{ old('transport_means_to_facility')=='4' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_delivery_plan->transport_means))
|
||||
@selected($latest_existing_delivery_plan->transport_means == '4')
|
||||
@endif>
|
||||
Public means</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
{{-- person to accompany you --}}
|
||||
<div class="form-group">
|
||||
<label for="person_to_accompany_you">{{ __('maternity.person_to_accompany_you') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_to_accompany_you"
|
||||
value="{{ $latest_existing_delivery_plan->emergency_support ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- person to look after home --}}
|
||||
<div class=" form-group">
|
||||
<label for="person_to_look_after_home">{{ __('maternity.person_to_look_after_home') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_to_look_after_home"
|
||||
value="{{ $latest_existing_delivery_plan->home_keeper ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- mother and partner screened for --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('mother_partner_screened_for', __('maternity.mother_partner_screened_for')) }} <br>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox" {{
|
||||
in_array('1', explode(',', $latest_existing_delivery_plan->health_screening ?? '')) ?
|
||||
'checked' : '' }}
|
||||
id="1" value="1" @if (is_array(old('mother_partner_screened_for')) && in_array('1',
|
||||
old('mother_partner_screened_for'))) checked @endif>
|
||||
<label class="form-check-label" for="1">
|
||||
{{ __('antenatal.syphillis') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox" {{
|
||||
in_array('2', explode(',', $latest_existing_delivery_plan->health_screening ?? '')) ?
|
||||
'checked' : '' }}
|
||||
id="2" value="2" @if (is_array(old('mother_partner_screened_for')) && in_array('2',
|
||||
old('mother_partner_screened_for'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="2"> {{ __('maternity.sickle_cell') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox" {{
|
||||
in_array('3', explode(',', $latest_existing_delivery_plan->health_screening ?? '')) ?
|
||||
'checked' : '' }}
|
||||
id="3" value="3" @if (is_array(old('mother_partner_screened_for')) && in_array('3',
|
||||
old('mother_partner_screened_for'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="3"> {{ __('antenatal.hepatitis') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox" {{
|
||||
in_array('4', explode(',', $latest_existing_delivery_plan->health_screening ?? '')) ?
|
||||
'checked' : '' }}
|
||||
id="4" value="4" @if (is_array(old('mother_partner_screened_for')) && in_array('4',
|
||||
old('mother_partner_screened_for'))) checked @endif>
|
||||
<label class="form-check-label" for="4"> {{ __('antenatal.hiv') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{-- family planning before next pregnancy --}}
|
||||
<div class="form-group">
|
||||
<label for="family_planning_method_plan">{{ __('maternity.family_planning_before_next_pregnancy') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="family_planning_method_plan"
|
||||
value="{{ $latest_existing_delivery_plan->family_planning_method ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="person_to_stay_at_facility">{{ __('maternity.person_to_stay_at_facility') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_to_stay_at_facility"
|
||||
value="{{ $latest_existing_delivery_plan->facility_stay ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="delivery_method">{{ __('maternity.delivery_method') }}</label><br><br>
|
||||
|
||||
<select name="delivery_method" class="form-select form-control">
|
||||
<option value="" {{ old('delivery_method')=='null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('delivery_method')=='1' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.vaginal_delivery') }}</option>
|
||||
<option value="2" {{ old('delivery_method')=='2' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.vacuum_delivery') }}</option>
|
||||
<option value="3" {{ old('delivery_method')=='3' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.forceps_delivery') }}</option>
|
||||
<option value="4" {{ old('delivery_method')=='4' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.c_section') }}</option>
|
||||
<option value="5" {{ old('delivery_method')=='5' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.vbac') }}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="backup_delivery_method">{{ __('maternity.backup_delivery_method') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="backup_delivery_method">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- after birth disposal --}}
|
||||
<div class="form-group">
|
||||
<label for="after_birth_disposal">{{ __('maternity.after_birth_disposal') }}</label>
|
||||
|
||||
<select name="after_birth_disposal" class="form-select form-control">
|
||||
<option value="null" {{ old('after_birth_disposal') =='null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('after_birth_disposal')=='1' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_delivery_plan->disposal))
|
||||
@selected($latest_existing_delivery_plan->disposal == '1')
|
||||
@endif
|
||||
|
||||
>
|
||||
{{ __('maternity.throw_in_placenta_pit') }}</option>
|
||||
<option value="2" {{ old('after_birth_disposal')=='2' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_delivery_plan->disposal))
|
||||
@selected($latest_existing_delivery_plan->disposal == '2')
|
||||
@endif
|
||||
>
|
||||
{{ __('maternity.take_it_home') }}</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="background-color:white; padding:15px;">
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
{{-- <p>Mothers should have the following to deliver</p><br> --}}
|
||||
<ul>
|
||||
<li style="list-style:none; text-center;"> Mothers should have the following to deliver </li> <br>
|
||||
|
||||
</ul>
|
||||
<ul>
|
||||
<li> At least 4 pairs of gloves </li>
|
||||
<li>Gauze </li>
|
||||
<li>2 plastic sheets ( ekiveera ) measuring 2.5 meters </li>
|
||||
<li>Cotton wool (at least 500g)</li>
|
||||
<li>Needle and syringe 5ml</li>
|
||||
<li>2 new razor blades </li>
|
||||
<li>Sanitary pads </li>
|
||||
<li>Baby clothing and sheets </li>
|
||||
<li>Money for emergency transport </li>
|
||||
<li>Sugar and tea leaves </li>
|
||||
<li>Soap </li>
|
||||
<li>Clean clothing (personal) </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<hr>
|
||||
|
||||
{{-- END OF DELIVERY PLAN INCLUDE FILE --}}
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
{{-- primary diagnosis and other diagnosis --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-table success-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('inpatient.primary_diagnosis') }}</th>
|
||||
<th>{{ __('inpatient.prompt') }}</th>
|
||||
<th>{{ __('inpatient.references') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk" /></td>
|
||||
<td style="width: 30%;">
|
||||
<div class="form-group">
|
||||
{{ Form::select('primary_diagnosis', $diagnoses, '', ['id' => 'primary_diagnosis', 'class' => 'form-control col-sm-12 compulsory', 'required']) }}
|
||||
</div>
|
||||
</td>
|
||||
<td style="width: 45%; color: #C85F6A;">
|
||||
<div class="well well-sm" id="primary_diagnosis_prompt"> </div>
|
||||
</td>
|
||||
<td style="width: 25%">
|
||||
<div class="well well-sm" id="primary_diagnosis_reference"> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-responsive table-condensed">
|
||||
<table class="table color-table success-table table-condensed table-borderless"
|
||||
id="other_diagnosis_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('inpatient.other_diagnosis') }}</th>
|
||||
<th>{{ __('inpatient.prompt') }}</th>
|
||||
<th>{{ __('inpatient.references') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk"></td>
|
||||
<td style="width: 30%;">
|
||||
{{ Form::select('other_diagnosis[]', $diagnoses, '', ['class' => 'form-control col-sm-12 sec_d', 'id' => 'other_diagnosis']) }}
|
||||
</td>
|
||||
<td style="width: 45%">
|
||||
<div class="well well-sm" id="secondary_diagnosis_prompt1"> </div>
|
||||
</td>
|
||||
<td style="width: 25%">
|
||||
<div class="well well-sm" id="secondary_diagnosis_reference1"> </div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a class="btn btn-success btn-sm m-t-10" id="add_row"
|
||||
onclick="addRow('other_diagnosis_table')">{{ __('inpatient.add_row') }}</a>
|
||||
<a class="btn btn-danger btn-sm m-t-10" id="delete_row"
|
||||
onclick="deleteRow('other_diagnosis_table')">{{ __('inpatient.delete_row') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-wrapper collapse in">
|
||||
<ul class="nav customtab nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active nav-item"><a href="#triageSymptoms"
|
||||
class="nav-link" aria-controls="home" role="tab" data-toggle="tab"
|
||||
aria-expanded="true"><span class="visible-xs"><i
|
||||
class="ti-home"></i></span><span class="hidden-xs">
|
||||
{{ __('inpatient.symptoms_triage') }}</span></a></li>
|
||||
<li role="presentation" class="nav-item"><a href="#opdInvestigations" class="nav-link"
|
||||
aria-controls="profile" role="tab" data-toggle="tab"
|
||||
aria-expanded="false"><span class="visible-xs"><i class="ti-user"></i></span>
|
||||
<span class="hidden-xs">{{ __('inpatient.opd_invs') }}</span></a></li>
|
||||
<li role="presentation" class="nav-item"><a href="#wardInvestigations" class="nav-link"
|
||||
aria-controls="messages" role="tab" data-toggle="tab"><span
|
||||
class="visible-xs"><i class="ti-email"></i></span> <span
|
||||
class="hidden-xs">{{ __('inpatient.ward_invs') }}</span></a></li>
|
||||
</ul>
|
||||
<div class="panel-body">
|
||||
<div class="tab-content m-t-0">
|
||||
<div role="tabpanel" class="tab-pane fade active in" id="triageSymptoms">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('inpatient.symptoms') }}</b></th>
|
||||
<th><b>{{ __('inpatient.duration') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if ($triage)
|
||||
@php
|
||||
$symptoms_explode = explode(',', $triage->symptoms);
|
||||
$duration_explode = explode(',', $triage->symptom_duration);
|
||||
@endphp
|
||||
@for ($i = 0; $i < count($symptoms_explode); $i++)
|
||||
<tr>
|
||||
<td>{{ $symptoms[$symptoms_explode[$i]] }}</td>
|
||||
<td>{{ isset($duration_explode[$i]) ? $duration_explode[$i] : '' }}
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="2">{{ __('inpatient.no_symptoms_triage') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="opdInvestigations">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('inpatient.name') }}</b></th>
|
||||
<th><b>{{ __('inpatient.value') }}</b></th>
|
||||
<th><b>{{ __('inpatient.comment') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($opd_investigations) > 0)
|
||||
@for ($i = 0; $i < count($opd_investigations['name']); $i++)
|
||||
<tr>
|
||||
<td>{{ $opd_investigations['name'][$i] }}</td>
|
||||
<td>{{ $opd_investigations['value'][$i] }}</td>
|
||||
<td>{{ $opd_investigations['comment'][$i] }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">{{ __('inpatient.no_opd_invs') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="wardInvestigations">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('inpatient.name') }}</b></th>
|
||||
<th><b>{{ __('inpatient.value') }}</b></th>
|
||||
<th><b>{{ __('inpatient.comment') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($ward_investigations) > 0)
|
||||
@for ($i = 0; $i < count($ward_investigations['name']); $i++)
|
||||
<tr>
|
||||
<td>{{ $ward_investigations['name'][$i] }}</td>
|
||||
<td>{{ $ward_investigations['value'][$i] }}</td>
|
||||
<td>{{ $ward_investigations['comment'][$i] }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">{{ __('inpatient.no_ward_invs') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="label label-info"> > {{ __('inpatient.historical_investigations') }}</a>
|
||||
<a href="{{ url('investigations/investigations_review') }}" class="label label-info"> >
|
||||
{{ __('inpatient.order_investigations') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{{-- end diagnosis --}}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
{{-- gravida fields and other related fields --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control compulsory" required
|
||||
value="{{ isset($anc_registration) ? $anc_registration->gravida : '' }}">
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control compulsory" required
|
||||
value="{{ isset($anc_registration) ? $anc_registration->para : '' }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortion', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortion" class="form-control compulsory" required
|
||||
value="{{ isset($anc_registration) ? $anc_registration->abortion : '' }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control compulsory" required
|
||||
value="{{ isset($anc_registration) ? $anc_registration->ectopic_pregnancies : '' }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('postpartum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input " name="postpartum" type="radio" id="postpartum" required
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}}
|
||||
{{-- @checked($anc_registration->postpartum == 1 ) --}}
|
||||
@checked(optional($anc_registration)->postpartum == 1 ? true : false)
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label" for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
|
||||
<input class="form-check-input" name="postpartum" type="radio" id="postpartum"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '0' ? 'checked' : '' }} @endif --}}
|
||||
{{-- @checked($anc_registration->postpartum == 0 ) --}}
|
||||
@checked(optional($anc_registration)->postpartum == 0 ? true : false)
|
||||
value="0">
|
||||
<label class="form-check-label" for="postpartum">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
{{-- Gynacology history --}}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-left">{{ __('antenatal.gynacology_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{-- {{ Form::label('surgical_history',__('antenatal.surgical_history')) }} --}}
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="d_c"
|
||||
value="d_c" @if (is_array(old('surgical_history')) && in_array('d_c', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="d_c"> {{ __('antenatal.d_c') }} </label>
|
||||
|
||||
{{-- add dilation and curettage date :input --}}
|
||||
<div id="d_c_date_input" class="hidden" style="margin-top:15px;">
|
||||
<input type="date" name="d_c" placeholder="Add date" class="form-control">
|
||||
<small style="color:blue;">Add dilation & curettage date </small>
|
||||
</div>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 2, false, ['id' => 'obs_gyn_ectopic_pregancy', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label"
|
||||
for="obs_gyn_ectopic_pregancy">{{ __('antenatal.ectopic_pregancy') }}</label>
|
||||
|
||||
{{-- add ectopic pregnancy date :input --}}
|
||||
<div id="obs_gyn_ectopic_pregancy_date_input" class="hidden" style="margin-top:15px;">
|
||||
<input type="date" name="obs_gyn_ectopic_pregancy" placeholder="Add date" class="form-control">
|
||||
<small style="color:blue;">Add ectopic pregnancy date </small>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="myomectomy"
|
||||
value="myomectomy" @if (is_array(old('surgical_history')) && in_array('myomectomy', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="myomectomy"> {{ __('antenatal.myomectomy') }} </label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox"
|
||||
id="operations_on_cervix" value="operations_on_cervix"
|
||||
@if (is_array(old('surgical_history')) && in_array('operations_on_cervix', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="operations_on_cervix">
|
||||
{{ __('antenatal.operations_on_cervix') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="evacuation"
|
||||
value="evacuation" @if (is_array(old('surgical_history')) && in_array('evacuation', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="evacuation"> {{ __('antenatal.evacuation') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="std"
|
||||
value="std" @if (is_array(old('surgical_history')) && in_array('std', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="std"> {{ __('antenatal.std') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 3, false, ['id' => 'obs_gyn_pph', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label"
|
||||
for="obs_gyn_pph">{{ __('antenatal.post_partum_haemorrhaging') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 4, false, ['id' => 'obs_gyn_retained_placenta', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label"
|
||||
for="obs_gyn_retained_placenta">{{ __('antenatal.retained_placenta') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 4, false, ['id' => 'c_section', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label" for="c_section">{{ __('antenatal.c_section') }}</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
+1858
File diff suppressed because it is too large
Load Diff
+412
@@ -0,0 +1,412 @@
|
||||
{{-- maternity: mothers history --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 ">
|
||||
<h4><span class="label label-warning">{{ __('antenatal.mother_history') }}</span></h4>
|
||||
</div>
|
||||
<div class="col-md-12 text-left">
|
||||
<h4 class="text-left">{{ __('antenatal.menstrual_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
<div class="row">
|
||||
|
||||
{{-- cycle length --}}
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="cycle_length">{{ __('antenatal.cycle_length') }}
|
||||
<a href="javascript::void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title="" data-original-title="{{ __('antenatal.cycle_length_info') }} "> <i class="fa fa-info-circle"></i></a> </label>
|
||||
<input type="text" class="form-control col-sm-12" name="cycle_length"
|
||||
value="{{ $latest_existing_antenatal_mother_history->cycle_time ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- length of menses --}}
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="menses_length">{{ __('antenatal.menses_length') }}
|
||||
<a href="javascript::void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title="" data-original-title="{{ __('antenatal.menses_length_info') }} "> <i class="fa fa-info-circle"></i></a>
|
||||
|
||||
</label>
|
||||
<input type="number" class="form-control col-sm-12" name="menses_length"
|
||||
value="{{ $latest_existing_antenatal_mother_history->menses_length ?? '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- amount --}}
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="menses_amount">{{ __('antenatal.menses_amount') }}</label>
|
||||
<select name="menses_amount" class="form-select form-control">
|
||||
<option value="null" {{ old('menses_amount') == 'null' ? 'selected' : '' }}> - Select
|
||||
-</option>
|
||||
<option value="1" {{ old('menses_amount') == '1' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_antenatal_mother_history->menses_amount))
|
||||
@selected($latest_existing_antenatal_mother_history->menses_amount == '1')
|
||||
@endif
|
||||
>
|
||||
Heavy</option>
|
||||
<option value="2" {{ old('menses_amount') == '2' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_antenatal_mother_history->menses_amount))
|
||||
@selected($latest_existing_antenatal_mother_history->menses_amount == '2')
|
||||
@endif>
|
||||
Normal</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="family_planning_method">{{ __('maternity.family_planning_method') }}</label>
|
||||
|
||||
<select name="family_planning_method" class="form-select form-control">
|
||||
<option value="null" {{ old('family_planning_method') == 'null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
@foreach ($family_planning_methods as $id => $name)
|
||||
<option value="{{ $id }}" {{ old('family_planning_method') == '1' ? 'selected' : '' }}
|
||||
@if(isset($latest_existing_antenatal_mother_history->family_planning))
|
||||
@selected($latest_existing_antenatal_mother_history->family_planning == $id)
|
||||
@endif
|
||||
|
||||
>
|
||||
{{ $name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="date_discontinued">{{ __('maternity.date_discontinued') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="date_discontinued" id="date_discontinued"
|
||||
value="{{ $latest_existing_antenatal_mother_history->date_discontinued ?? '' }}">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="why_stop_family_planning">{{ __('maternity.why') }}</label>
|
||||
<input type="text" class="form-control col-sm-12" name="why_stop_family_planning"
|
||||
value="{{ $latest_existing_antenatal_mother_history->why_stop_family_planning ?? '' }}"
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- MEDICAL HISTORY --}}
|
||||
{{-- start maternity: medical history --}}
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
{{-- medical history --}}
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-left">{{ __('antenatal.medical_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
{{-- {{ $latest_existing_antenatal_mother_history->medical_presentations }} --}}
|
||||
{{-- {{ in_array('2', explode(',', $latest_existing_antenatal_mother_history->medical_presentations)) ? 'checked' : '' }} --}}
|
||||
|
||||
{{ Form::label('medical_presentations', __('antenatal.medical_presentations')) }} <br>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="generalized_l_glands" value="1"
|
||||
{{ in_array('16', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('medical_presentations')) && in_array('1', old('medical_presentations'))) checked @endif>
|
||||
<label class="form-check-label" for="generalized_l_glands">
|
||||
{{ __('antenatal.generalized_l_glands') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" id="oral_thrush"
|
||||
{{ in_array('15', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
value="2" @if (is_array(old('medical_presentations')) && in_array('2', old('medical_presentations'))) checked @endif>
|
||||
<label class="form-check-label" for="oral_thrush"> {{ __('antenatal.oral_thrush') }} </label>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{-- {{ Form::checkbox('medical_presentations[]', 1, false, ['id' => 'medical_presentations_sti', 'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="sti" value="3"
|
||||
{{ in_array('1', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('medical_presentations')) && in_array('3', old('medical_presentations'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="sti">{{ __('antenatal.sti') }}</label>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<div class="form-check">
|
||||
{{-- {{ Form::checkbox('any_medications[]', 1, false, ['id' => 'complications_bleeding', 'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="bleeding" value="4" @if (is_array(old('medical_presentations')) && in_array('4', old('medical_presentations'))) checked @endif>
|
||||
|
||||
<label class="form-check-label"
|
||||
for="bleeding">{{ __('antenatal.bleeding') }}</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{-- {{ Form::checkbox('medical_presentations[]', 3, false, ['id' => 'medical_presentations_asthma', 'class' => 'form-check-input']) }} --}}
|
||||
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" id="dematitis"
|
||||
{{ in_array('18', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
|
||||
value="5" @if (is_array(old('medical_presentations')) && in_array('5', old('medical_presentations'))) checked @endif>
|
||||
|
||||
<label class="form-check-label"
|
||||
for="dematitis">{{ __('antenatal.dematitis') }}</label>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
{{-- {{ Form::checkbox('medical_presentations[]', 10, false, ['id' => 'complications_tb', 'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
{{ in_array('10', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
|
||||
id="6" value="6"
|
||||
@if (is_array(old('medical_presentations')) && in_array('6', old('medical_presentations'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="6">{{ __('antenatal.tb') }}</label>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="7" value="7"
|
||||
{{ in_array('17', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
|
||||
@if (is_array(old('medical_presentations')) && in_array('7', old('medical_presentations'))) checked @endif>
|
||||
<label class="form-check-label" for="7"> {{ __('antenatal.herpes_simplex') }}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="8" value="8"
|
||||
{{ in_array('13', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
|
||||
@if (is_array(old('medical_presentations')) && in_array('8', old('medical_presentations'))) checked @endif>
|
||||
<label class="form-check-label" for="8"> {{ __('antenatal.herpes_zoster') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{{-- other medical presentations --}}
|
||||
<tr>
|
||||
<td class="form-check">
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
{{ in_array('19', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? 'checked' : '' }}
|
||||
|
||||
id="show_other_medical_presentations_input" value="9">
|
||||
|
||||
<label class="form-check-label" id="others_medical_presentations"
|
||||
for="show_other_medical_presentations_input">{{ __('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- style="{{ !empty($existing_maternity_mother_history->other_medical_presentations) ? '' : 'display:none;' }}" --}}
|
||||
|
||||
{{-- add other medical presentations :input --}}
|
||||
<div id="other_medical_presentations_input"
|
||||
style="{{ in_array('19', explode(',', $latest_existing_antenatal_mother_history->medical_presentations ?? '')) ? '' : 'display:none;' }}
|
||||
">
|
||||
|
||||
<input type="text" name="other_medical_presentations" placeholder="Specify"
|
||||
value="{{ $latest_existing_antenatal_mother_history->medical_presentations_others_input ?? '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-borderless">
|
||||
|
||||
|
||||
{{-- aph and fits --}}
|
||||
<tr>
|
||||
{{-- history of aph --}}
|
||||
<td style="width:42%;">
|
||||
{{ Form::label('history_of_aph', __('maternity.history_of_aph')) }}
|
||||
<br>
|
||||
{{ Form::radio('history_of_aph',1, $latest_existing_anc_clinic_followup?->aph == 1 ? true: false, ['required', 'id' => 'show_aph_details_div']) }}
|
||||
{{ __('maternity.yes') }}
|
||||
{{ Form::radio('history_of_aph',0,$latest_existing_anc_clinic_followup?->aph == 0 ? true: false, ['required', 'id' => 'hide_aph_details_div']) }}
|
||||
{{ __('maternity.no') }}
|
||||
|
||||
<div class="row" id="aph_details_div" style="{{ $latest_existing_anc_clinic_followup?->aph_details == '1' ? '' : 'display:none;' }}">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_aph_details', __('maternity.details')) }}
|
||||
{{ Form::textarea('history_aph_details', $latest_existing_anc_clinic_followup?->aph_details ?? '', ['class' => 'form-control', 'rows' => '2']) }}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{{-- history of fits --}}
|
||||
<td style="width:42%; ">
|
||||
{{ Form::label('history_of_fits', __('maternity.history_of_fits')) }}
|
||||
<br>
|
||||
{{ Form::radio('history_of_fits', 1, $latest_existing_anc_clinic_followup?->fits == 1 ? true: false, ['required', 'id' => 'show_fits_details_div']) }}
|
||||
{{ __('maternity.yes') }}
|
||||
{{ Form::radio('history_of_fits',0, $latest_existing_anc_clinic_followup?->fits == 0 ? true: false, ['required', 'id' => 'hide_fits_details_div']) }}
|
||||
{{ __('maternity.no') }}
|
||||
|
||||
|
||||
<div class="row" id="fits_details_div" style="{{ $latest_existing_anc_clinic_followup?->fits_details == '1' ? '' : 'display:none;' }}">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_fit_details', __('maternity.fits_details')) }}
|
||||
{{ Form::textarea('history_fit_details', $latest_existing_anc_clinic_followup?->fits_details ?? '', ['class' => 'form-control', 'rows' => '2']) }}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{{-- family history --}}
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-left">{{ __('antenatal.family_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::label('sgbv_risk', __('antenatal.sgbv')) }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="sgbv_risk[]" type="checkbox" id="sgbv_risk"
|
||||
value="1" @if (is_array(old('1')) && in_array('sgbv_risk_present', old('1'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="sgbv_risk">
|
||||
{{ __('antenatal.sgbv_risk') }} </label>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="form-check">
|
||||
{{-- {{ Form::checkbox('any_medications[]', 2, false, ['id' => 'any_medications_others', 'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="sgbv_risk[]" type="checkbox"
|
||||
id="show_other_sgbv_risk_input" value="2">
|
||||
|
||||
<label class="form-check-label" id="other_sgbv_risk"
|
||||
for="show_other_sgbv_risk_input">{{ __('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other medical presentations :input --}}
|
||||
<div id="other_sgbv_risk_input" style="display: none;">
|
||||
<input type="text" name="other_sgbv_risk" placeholder="Specify Violence"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- others --}}
|
||||
<div class="col">
|
||||
|
||||
<div class="col">
|
||||
{{-- {{ Form::label('any_medications',__('afaf')) }} <br> --}}
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
{{-- health of husband --}}
|
||||
<br><br>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-check">
|
||||
{{-- {{ Form::label('husband_health', __('antenatal.husband_health')) }} --}}
|
||||
<label class="form-check-label"
|
||||
for="husband_health">{{ __('antenatal.husband_health') }}</label>
|
||||
<div class="input-group">
|
||||
{{-- {{ Form::text('husband_health', '', ['class' => 'form-control', 'id' => 'husband_health']) }} --}}
|
||||
<input type="text" name="husband_health" class="form-control"
|
||||
value="{{ $latest_existing_antenatal_mother_history->husband_health ?? '' }}">
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<label class="form-check-label"
|
||||
for="other_medical_history_comment">{{ __('antenatal.other_comments') }}</label><br>
|
||||
|
||||
{{-- {{ Form::textarea('other_medical_history_comment', $latest_existing_antenatal_mother_history->other_comments ?? '' , ['class' => 'form-control', 'rows' => '4']) }} --}}
|
||||
<textarea name="other_medical_history_comment" id="" cols="35" rows="4">{{ $anc_registration->other_comments ?? '' }}</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{{-- end maternity: medical history --}}
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
{{-- pelivic examination and assessement --}}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4>{{ __('antenatal.pelvic_examination_and_assessement') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- row-1 --}}
|
||||
@php
|
||||
$physical_exam = json_decode($latest_existing_anc_clinic_followup?->physical_exam, true);
|
||||
@endphp
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('vulva', __('antenatal.vulva')) }}
|
||||
<input type="text" name="vulva" class="form-control" value="{{ $physical_exam['vulva']?? '' }}">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('vagina', __('antenatal.vagina')) }}
|
||||
<input type="text" name="vagina" class="form-control" value="{{ $physical_exam['vagina']?? '' }}">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{-- cervix --}}
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cervix', __('antenatal.cervix')) }}
|
||||
<select name="cervix" class="form-select form-control">
|
||||
<option value="null" {{ old('cervix')=='null' ? 'selected' : '' }}> -- Select -- </option>
|
||||
<option value="1" {{ old('cervix')=='1' ? 'selected' : '' }}>Effaced</option>
|
||||
<option value="2" {{ old('cervix')=='2' ? 'selected' : '' }}>Not Effaced</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('dilatation', __('antenatal.dilatation')) }}
|
||||
<input type="text" name="dilatation" class="form-control">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('uterine_adnexa', __('antenatal.uterine_adnexa')) }}
|
||||
<input type="text" name="uterine_adnexa" class="form-control">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('moniliasis', __('antenatal.moniliasis')) }}
|
||||
<input type="text" name="moniliasis" class="form-control">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{-- row-2 --}}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('diagonal_conjugate', __('antenatal.diagonal_conjugate')) }}
|
||||
<span style="color:rgb(64, 124, 220);"> ( > 11.5/<11.5cm) </span>
|
||||
<input type="number" name="diagonal_conjugate" class="form-control" step="any">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('sacrum', __('antenatal.sacrum')) }} <br>
|
||||
<select name="sacrum" class="form-select form-control">
|
||||
<option value="null" {{ old('sacrum')=='null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('sacrum')=='1' ? 'selected' : '' }}>Curve Deep</option>
|
||||
<option value="2" {{ old('sacrum')=='2' ? 'selected' : '' }}>Flat</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('ischial_spinces', __('antenatal.ischial_spinces')) }}
|
||||
<select name="ischial_spinces" class="form-select form-control">
|
||||
<option value="null" {{ old('ischial_spinces')=='null' ? 'selected' : '' }}> -- Select -- </option>
|
||||
<option value="1" {{ old('ischial_spinces')=='1' ? 'selected' : '' }}>Not Prominent</option>
|
||||
<option value="2" {{ old('ischial_spinces')=='2' ? 'selected' : '' }}>Prominent</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{-- sub pubic angle --}}
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_public_angle', __('antenatal.sub_public_angle')) }}
|
||||
<select name="sub_public_angle" class="form-select form-control">
|
||||
<option value="null" {{ old('sub_public_angle')=='null' ? 'selected' : '' }}> -- Select --
|
||||
</option>
|
||||
<option value="1" {{ old('sub_public_angle')=='1' ? 'selected' : '' }}>Obtuse</option>
|
||||
<option value="2" {{ old('sub_public_angle')=='2' ? 'selected' : '' }}>Acute</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ischial_tuberosities --}}
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('ischial_tuberosities', __('antenatal.ischial_tuberosities')) }}
|
||||
<select name="ischial_tuberosities" class="form-select form-control">
|
||||
<option value="null" {{ old('ischial_tuberosities')=='null' ? 'selected' : '' }}> -- Select --
|
||||
</option>
|
||||
<option value="1" {{ old('ischial_tuberosities')=='1' ? 'selected' : '' }}>4 knuckles</option>
|
||||
<option value="2" {{ old('ischial_tuberosities')=='2' ? 'selected' : '' }}>Less</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('pelvic_adequate', __('antenatal.pelvic_adequate')) }}
|
||||
<select name="pelvic_adequate" class="form-select form-control">
|
||||
<option value="null" {{ old('pelvic_adequate')=='null' ? 'selected' : '' }}> -- Select -- </option>
|
||||
<option value="1" {{ old('pelvic_adequate')=='1' ? 'selected' : '' }}>Borderline</option>
|
||||
<option value="2" {{ old('pelvic_adequate')=='2' ? 'selected' : '' }}>Contracted</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
+687
@@ -0,0 +1,687 @@
|
||||
<div class="row">
|
||||
<b> <span class="text-dark"> {{ __('antenatal.previous_admissions') }} </span>
|
||||
</b><br><br>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- NEW DISPLAY CONSULTATIONS --}}
|
||||
<table class="accordion-table table table-bordered color-bordered-table success-bordered-table" id="table_1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="color:#ffffff;">Episode ID</th>
|
||||
<th style="color:#ffffff;">{{ __('antenatal.admitted_on') }}</th>
|
||||
<th style="color:#ffffff;">{{ __('antenatal.ward') }}</th>
|
||||
<th style="color:#ffffff;">{{ __('antenatal.primary_diagnosis') }}</th>
|
||||
<th style="color:#ffffff;">{{ __('antenatal.other_diagnosis') }}</th>
|
||||
<th style="color:#ffffff;">{{ __('antenatal.discharged_on') }}</th>
|
||||
<th style="color:#ffffff;">{{ __('antenatal.discharged_by') }}</th>
|
||||
<th style="color:#ffffff;">Action</th>
|
||||
<!-- Add more headers if needed -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{-- <tr class="accordion-header">
|
||||
<td>Row 1 Header</td>
|
||||
<td>Row 1 Data</td>
|
||||
</tr>
|
||||
<tr class="accordion-content">
|
||||
<td colspan="2">
|
||||
Content 1
|
||||
</td>
|
||||
</tr> --}}
|
||||
|
||||
@forelse ($previous_consultation_inpatient_info as $key => $patient_previous_consultation)
|
||||
<tr class="accordion-header">
|
||||
{{-- <td>
|
||||
{{ $key + 1 }}
|
||||
</td> --}}
|
||||
<td>
|
||||
|
||||
@if ($patient_previous_consultation->episode_id)
|
||||
{{ $patient_previous_consultation->episode_id }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
@if ($patient_previous_consultation->admitted_on)
|
||||
{{ streamline_date($patient_previous_consultation->admitted_on) }}
|
||||
{{-- {{ \Carbon\Carbon::parse($patient_previous_consultation->admitted_on)->format('Y-m-d H:i') }} --}}
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($patient_previous_consultation->ward))
|
||||
{{ $patient_previous_consultation->ward }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($patient_previous_consultation->primary_diagnosis))
|
||||
{{ $patient_previous_consultation->primary_diagnosis }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@if (!empty($patient_previous_consultation->other_diagnoses))
|
||||
@php
|
||||
$checklist_array = @unserialize($patient_previous_consultation->other_diagnoses);
|
||||
// echo '<li>' . $diagnoses_patient[$patient_previous_consultation->primary_diagnosis] . '</li>';
|
||||
|
||||
if (is_array($checklist_array)) {
|
||||
for ($i = 0; $i < count($checklist_array); $i++) {
|
||||
if ($checklist_array[$i] != '') {
|
||||
echo '<li>' . $diagnoses_patient[$checklist_array[$i]] . '</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@if ($patient_previous_consultation->discharged_on)
|
||||
{{ streamline_date($patient_previous_consultation->discharged_on) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($patient_previous_consultation->first_name))
|
||||
{{ $patient_previous_consultation->first_name }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
|
||||
@if (!empty($patient_previous_consultation->last_name))
|
||||
{{ $patient_previous_consultation->last_name }}
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-success"> Details </button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="accordion-content">
|
||||
{{-- <td colspan="2">
|
||||
Content for {{ $patient_previous_consultation->episode_id }}
|
||||
</td> --}}
|
||||
|
||||
<td colspan="8">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
{{-- main-column-1-details --}}
|
||||
|
||||
{{-- observations --}}
|
||||
<div class="col-md-7">
|
||||
{{-- <h4 class="text-left">{{ __('antenatal.observations') }}</h4> --}}
|
||||
|
||||
{{-- query data from triage --}}
|
||||
{{-- @php
|
||||
$current_episode_id = $patient_previous_consultation->episode_id;
|
||||
$triage_previous_consultation_data = \Streamline\Models\Triage::leftJoin('symptoms', 'triage.symptoms', '=', 'symptoms.id')
|
||||
->where(['patient_id' => $patient_id])
|
||||
->where('episode_id', $current_episode_id)
|
||||
->get();
|
||||
|
||||
@endphp --}}
|
||||
|
||||
{{-- loop through observations to display each item key and value --}}
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
{{-- @foreach ($previous_consultation_inpatient_info as $prev_observations) --}}
|
||||
|
||||
@php
|
||||
$observations_array = explode(
|
||||
',',
|
||||
$patient_previous_consultation->observations,
|
||||
);
|
||||
$temp = null;
|
||||
$pulse = null;
|
||||
$respirations = null;
|
||||
$blood_pressure = null;
|
||||
$blood_pressure_systolic = null;
|
||||
$blood_pressure_diastolic = null;
|
||||
@endphp
|
||||
|
||||
@if (!empty($observations_array))
|
||||
@foreach ($observations_array as $observation)
|
||||
@php
|
||||
$observation_parts = explode('=', $observation);
|
||||
|
||||
// Check if the explode function successfully split the observation into key and value
|
||||
if (count($observation_parts) == 2) {
|
||||
[$observation_key, $observation_value] = $observation_parts;
|
||||
|
||||
if ($observation_key == 'Temperature') {
|
||||
$temp = $observation_value;
|
||||
} elseif ($observation_key == 'Pulse') {
|
||||
$pulse = $observation_value;
|
||||
} elseif ($observation_key == 'Respirations') {
|
||||
$respirations = $observation_value;
|
||||
} elseif ($observation_key == 'Systolic bp') {
|
||||
$blood_pressure_systolic = $observation_value;
|
||||
} elseif ($observation_key == 'Diastolic bp') {
|
||||
$blood_pressure_diastolic = $observation_value;
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
@endforeach
|
||||
|
||||
|
||||
<tr>
|
||||
<td>Temperature : </td>
|
||||
<td>{{ $temp ?? '' }} </td>
|
||||
<td>Blood Pressure </td>
|
||||
<td>
|
||||
@if (isset($blood_pressure_systolic) && isset($blood_pressure_diastolic))
|
||||
{{ $blood_pressure_systolic ?? '' }}/{{ $blood_pressure_diastolic ?? '' }}
|
||||
mmHg
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Pulse : </td>
|
||||
<td>{{ $pulse ?? '' }} </td>
|
||||
<td>Respirations </td>
|
||||
<td>{{ $respirations ?? '' }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
{{-- @endforeach --}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{-- end of loop through observations to display each item key and value --}}
|
||||
|
||||
</div>
|
||||
|
||||
{{-- outcome --}}
|
||||
<div class="col-md-5">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>Outcome</b></th>
|
||||
{{-- <td>36%</td> --}}
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
{{-- <td><b>Pulse</b></td> --}}
|
||||
<td>
|
||||
@if (!empty($patient_previous_consultation->outcome))
|
||||
{{ $patient_previous_consultation->outcome }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ward treatments --}}
|
||||
|
||||
@php
|
||||
$previous_ward_treatments = \Streamline\Models\WardTreatment::where([
|
||||
['patient_id', $patient_id],
|
||||
['episode_id', '=', $patient_previous_consultation->episode_id],
|
||||
])->get();
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
<div class="row" style="padding-left:15px; ">
|
||||
<h4 class="text-left">{{ __('antenatal.ward_treatments') }}</h4>
|
||||
</div>
|
||||
<div class="row" style="padding-left:15px;">
|
||||
|
||||
@if (count($previous_ward_treatments) > 0)
|
||||
<div>
|
||||
<table class="table table-bordered color-bordered-table success-bordered-table"
|
||||
id="table_1">
|
||||
<thead>
|
||||
<th>{{ __('antenatal.drug_name') }}</th>
|
||||
<th>{{ __('antenatal.dosage') }}</th>
|
||||
<th>{{ __('antenatal.duration') }}</th>
|
||||
<th>{{ __('antenatal.quantity') }}</th>
|
||||
<th>{{ __('antenatal.status') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{{-- logic to fetch ward treatments --}}
|
||||
@foreach ($previous_ward_treatments as $key => $ward_treatment)
|
||||
@php
|
||||
$drugsData = [
|
||||
'drugs' => explode(',', $ward_treatment->drugs),
|
||||
'doses' => explode(',', $ward_treatment->doses),
|
||||
'durations' => explode(',', $ward_treatment->durations),
|
||||
'quantities_dispensed' => explode(
|
||||
',',
|
||||
$ward_treatment->quantities_dispensed,
|
||||
),
|
||||
'dispense_status' => explode(
|
||||
',',
|
||||
$ward_treatment->dispense_status,
|
||||
),
|
||||
];
|
||||
|
||||
$dosageNames = Streamline\Models\DosageFrequency::whereIn(
|
||||
'id',
|
||||
$drugsData['drugs'],
|
||||
)->pluck('name', 'id');
|
||||
$drugNames = Streamline\Models\Drug::whereIn(
|
||||
'id',
|
||||
$drugsData['drugs'],
|
||||
)->pluck('name', 'id');
|
||||
@endphp
|
||||
|
||||
{{-- Fetch drugs loop with array data --}}
|
||||
@foreach ($drugsData['drugs'] as $index => $drugId)
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
@if (!empty($drugNames[$drugId]))
|
||||
{{ $drugNames[$drugId] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@if (!empty($dosageNames[$drugId]))
|
||||
{{ $dosageNames[$drugId] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($drugsData['durations'][$index]))
|
||||
{{ $drugsData['durations'][$index] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($drugsData['quantities_dispensed'][$index]))
|
||||
{{ $drugsData['quantities_dispensed'][$index] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($drugsData['dispense_status'][$index]))
|
||||
{{ $drugsData['dispense_status'][$index] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
{{-- end fetch drugs loop with array data --}}
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@else
|
||||
<code>No previous ward treatments</code>
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
{{-- main-column-2-details --}}
|
||||
<div class="col-md-6">
|
||||
{{-- <p>new date {{ $patient_previous_consultation->created_at }}</p> --}}
|
||||
|
||||
{{-- symptoms --}}
|
||||
|
||||
<h4 class="text-left">{{ __('antenatal.symptoms') }}</h4>
|
||||
@if ($patient_previous_consultation->symptoms)
|
||||
{{-- pick triage + consultation symptoms combined:: check controller --}}
|
||||
{{-- @php $symptoms_array = explode(",", $patient_previous_consultation->symptoms); @endphp
|
||||
@php $symptoms_duration_array = explode(",", $patient_previous_consultation->symptom_duration); @endphp --}}
|
||||
|
||||
{{-- pick consultation symptoms --}}
|
||||
@php $symptoms_array = explode(",", $patient_previous_consultation->consultation_symptoms); @endphp
|
||||
@php $symptoms_duration_array = explode(",", $patient_previous_consultation->consultation_symptom_duration); @endphp
|
||||
|
||||
|
||||
<div>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('consultations.symptom') }}</b></th>
|
||||
<th><b>{{ __('consultations.duration') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 0; @endphp
|
||||
@for ($i = 0; $i < count($symptoms_array); $i++)
|
||||
<tr>
|
||||
<td> {{ isset($symptoms_array[$i]) ? get_name($symptoms_array[$i], 'id', 'name', 'symptoms') : '' }}
|
||||
</td>
|
||||
<td>{{ $symptoms_duration_array[$i] ?? '' }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@else
|
||||
<code>{{ __('consultations.no_symptom_recorded') }}</code>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
{{-- ordered investigation results --}}
|
||||
<div>
|
||||
@php
|
||||
$ordered_investigations_results = \Streamline\Models\InvestigationResults::where([
|
||||
['patient_id', $patient_id],
|
||||
['episode_id', '=', $patient_previous_consultation->episode_id],
|
||||
])->get();
|
||||
@endphp
|
||||
|
||||
{{-- <div>
|
||||
<h4 class="text-left">Ordered investigation results</h4>
|
||||
</div> --}}
|
||||
|
||||
|
||||
|
||||
@if (count($ordered_investigations_results) > 0)
|
||||
@foreach ($ordered_investigations_results as $key => $ordered_investigation)
|
||||
@php
|
||||
$investigationsData = [
|
||||
'investigation' => explode(',', $ordered_investigation->investigation_id),
|
||||
'result' => explode(',', $ordered_investigation->value),
|
||||
'comment' => explode(',', $ordered_investigation->comment),
|
||||
'reference_ranges' => explode(
|
||||
',',
|
||||
$ordered_investigation->normal_ranges ?? '',
|
||||
),
|
||||
// 'quantities_dispensed' => explode(',', $ward_treatment->quantities_dispensed),
|
||||
// 'dispense_status' => explode(',', $ward_treatment->dispense_status),
|
||||
];
|
||||
|
||||
// $drugFrequencies = Streamline\Models\DosageFrequency::whereIn('id', $drugsData['drugs'])->pluck('name', 'id');
|
||||
$investigationName = Streamline\Models\Investigation::whereIn(
|
||||
'id',
|
||||
$investigationsData['investigation'],
|
||||
)->pluck('name', 'id');
|
||||
$investigationRange = Streamline\Models\Investigation::whereIn(
|
||||
'id',
|
||||
$investigationsData['investigation'],
|
||||
)->pluck('normal_ranges', 'id');
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
{{-- pick ordered investigation results: works --}}
|
||||
|
||||
{{-- <div>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<th>{{ __('antenatal.investigation_name') }}</th>
|
||||
<th>{{ __('antenatal.results') }}</th>
|
||||
<th>{{ __('antenatal.reference_ranges') }}</th>
|
||||
<th>{{ __('antenatal.comments') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($investigationsData['investigation'] as $index => $investigationId)
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
@if (!empty($investigationName[$investigationId]))
|
||||
{{ $investigationName[$investigationId] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
@if (!empty($investigationsData['result'][$index]))
|
||||
{{ $investigationsData['result'][$index] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
@php
|
||||
$investigation_ranges =
|
||||
$investigationRange[$investigationId];
|
||||
$investigation_ranges_array = explode(
|
||||
'.',
|
||||
$investigation_ranges ?? '',
|
||||
);
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
|
||||
@if (!empty($investigationRange[$investigationId]))
|
||||
{{ $investigationRange[$investigationId] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@if (!empty($investigationsData['comment'][$index]))
|
||||
{{ $investigationsData['comment'][$index] }}
|
||||
@else
|
||||
<span></span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div> --}}
|
||||
|
||||
{{-- end of ordered investigation results --}}
|
||||
@endforeach
|
||||
@else
|
||||
{{-- <code>No ordered investigations </code> --}}
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
{{-- ordered investigations --}}
|
||||
@php
|
||||
$ordered_investigations_info = \Streamline\Models\OrderedInvestigation::where([
|
||||
['patient_id', $patient_id],
|
||||
['episode_id', '=', $patient_previous_consultation->episode_id],
|
||||
])->get();
|
||||
|
||||
// $ordered_investigations_info2 = \Streamline\Models\OrderedInvestigation::
|
||||
// leftJoin('investigation_results', 'ordered_investigations.episode_id', '=', 'investigation_results.episode_id')
|
||||
// ->leftJoin('inpatient_info', 'ordered_investigations.episode_id', '=', 'inpatient_info.patient_id')
|
||||
// ->where([
|
||||
// ['inpatient_info.patient_id', $patient_id],
|
||||
// ['inpatient_info.episode_id', '=', $patient_previous_consultation->episode_id],
|
||||
// ])
|
||||
// ->get([
|
||||
// 'ordered_investigations.investigation_id as investigations',
|
||||
// 'investigation_results.value as value_result', //results from results table
|
||||
// // 'investigation_results.normal_ranges as reference_ranges',
|
||||
// 'ordered_investigations.comment as investigation_comment',
|
||||
|
||||
// ]);
|
||||
|
||||
|
||||
@endphp
|
||||
{{-- ordered investigation --}}
|
||||
|
||||
{{-- <div class="row">
|
||||
@php
|
||||
|
||||
// $investigation_rezults testing with investigations
|
||||
$ordered_investigation_with_rezults_test = \Streamline\Models\OrderedInvestigation::where([
|
||||
['patient_id', $patient_id],
|
||||
['episode_id', '=', $patient_previous_consultation->episode_id],
|
||||
])->get();
|
||||
|
||||
$results_test = DB::table('ordered_investigations')
|
||||
->leftJoin('investigation_results', 'ordered_investigations.episode_id', '=', 'investigation_results.episode_id')
|
||||
->leftJoin('inpatient_info', 'ordered_investigations.episode_id', '=', 'inpatient_info.episode_id')
|
||||
->where('inpatient_info.patient_id', $patient_id)
|
||||
->where('inpatient_info.episode_id', $patient_previous_consultation->episode_id)
|
||||
->get([
|
||||
'ordered_investigations.investigation_id as investigation_id',
|
||||
'investigation_results.value as result',
|
||||
]);
|
||||
|
||||
@endphp
|
||||
--}}
|
||||
|
||||
|
||||
<div class="row" style="padding-left:15px; padding-right:15px;">
|
||||
|
||||
|
||||
<h4>{{ __('consultations.ordered_investigations') }}</h4>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('investigations.investigation_name') }}</th>
|
||||
<th>{{ __('investigations.results') }}</th>
|
||||
<th>{{ __('investigations.normal_ranges') }}</th>
|
||||
<th>{{ __('investigations.comment') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$cardio_echo = \Streamline\Models\CardioEchoResult::where('episode_id', $patient_previous_consultation->episode_id)->first();
|
||||
@endphp
|
||||
|
||||
|
||||
|
||||
|
||||
@if (count($ordered_investigations_info) > 0)
|
||||
@foreach ($ordered_investigations_info as $investigation)
|
||||
@php $investigation_ids_array = explode(',', $investigation->investigation_id); @endphp
|
||||
@for ($i = 0; $i < count($investigation_ids_array); $i++)
|
||||
@php
|
||||
$investigation = \Streamline\Models\Investigation::withTrashed()->find(
|
||||
$investigation_ids_array[$i],
|
||||
);
|
||||
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
@if ($investigation)
|
||||
@if ($investigation->slug == 'echo')
|
||||
|
||||
<tr>
|
||||
<td style="border-left: 1px solid #dddddd;" colspan="2">
|
||||
{{ $investigation->name }}</td>
|
||||
<td colspan="2">
|
||||
@if ($cardio_echo)
|
||||
<span>
|
||||
<a target="_blank"
|
||||
class="fcbtn btn btn-sm btn-default btn-outline btn-1d"
|
||||
href='{{ url("/investigations/print-cardio-echo/{$patient_id}/{$episode_id}") }}'>
|
||||
<i class="fa fa-print"></i>
|
||||
<span>View
|
||||
results</span></a>
|
||||
</span>
|
||||
@else
|
||||
Pending
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td style="border-left: 1px solid #dddddd;">
|
||||
{{ $investigation->name }}</td>
|
||||
<td>
|
||||
<font color="orange">
|
||||
{{ __('consultations.pending') }}
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
@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
|
||||
</td>
|
||||
<td>
|
||||
{{ $investigation->comments }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
@endfor
|
||||
@endforeach
|
||||
@else
|
||||
<td colspan="4" class="text-center">
|
||||
<code>No ordered investigations</code>
|
||||
</td>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{{-- end of ordered investigations --}}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" style="padding-left:15px;">
|
||||
<a href="/patient_episodes/"><button type="button" class="btn"
|
||||
style="background-color:purple; color:white;">Inpatient Sheet </button> </a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>No previous admissions</tr>
|
||||
|
||||
@endempty
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
{{-- SURGICAL HISTORY --}}
|
||||
|
||||
{{-- Check if surgeries exist and return the records --}}
|
||||
|
||||
|
||||
@if(count($patient_surgeries) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-left">
|
||||
<h4 class="text-left">{{ __('antenatal.surgical_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
|
||||
{{-- surgical history table --}}
|
||||
<table class="table table-bordered color-bordered-table success-bordered-table" id="table_1">
|
||||
<thead>
|
||||
<th>{{ __('antenatal.id') }}</th>
|
||||
<th>{{ __('antenatal.previous_surgical_procedure') }}</th>
|
||||
<th>{{ __('antenatal.date') }}</th>
|
||||
<th>{{ __('antenatal.performed_by') }}</th>
|
||||
<th>{{ __('antenatal.diagnosis') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{-- @foreach ($obstetric_history_details as $obstetric_history) --}}
|
||||
|
||||
|
||||
@forelse($patient_surgeries as $key => $patient_surgery)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $key + 1 }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
{{ $patient_surgery->procedure_name }}
|
||||
</td>
|
||||
<td>
|
||||
@if ($patient_surgery->date_surgery_completed)
|
||||
{{ streamline_date($patient_surgery->date_surgery_completed) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($patient_surgery->first_name))
|
||||
{{ $patient_surgery->first_name }}
|
||||
@else
|
||||
<span>N/A</span>
|
||||
@endif
|
||||
|
||||
@if (!empty($patient_surgery->last_name))
|
||||
{{ $patient_surgery->last_name }}
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
|
||||
$dianoses = [];
|
||||
$dianoses[] = $patient_surgery->primary_diagnosis;
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
@php
|
||||
$checklist_array = @unserialize($patient_surgery->other_diagnoses);
|
||||
echo '<li>' . $diagnoses_patient[$patient_surgery->primary_diagnosis] . '</li>';
|
||||
|
||||
if (is_array($checklist_array)) {
|
||||
for ($i = 0; $i < count($checklist_array); $i++) { if ($checklist_array[$i] !='' ) { echo '<li>'
|
||||
. $diagnoses_patient[$checklist_array[$i]] . '</li>' ; } } } @endphp {{-- @foreach
|
||||
($dianoses as $key=> $value)
|
||||
<li> {{ $diagnoses_patient[$value] }} </li>
|
||||
@endforeach --}}
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5" class="text-center">
|
||||
<code>No surgery records available </code>
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
{{-- @endforeach --}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
{{-- end surgical history table --}}
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
{{-- uterus operations --}}
|
||||
@php
|
||||
$anc_uterine_surgeries = !empty($latest_existing_antenatal_mother_history->uterine_surgeries)? json_decode($latest_existing_antenatal_mother_history->uterine_surgeries, true):[];
|
||||
$anc_other_surgeries = !empty($latest_existing_antenatal_mother_history->other_surgeries)? json_decode($latest_existing_antenatal_mother_history->other_surgeries, true):[];
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
<div class="col">
|
||||
<table class="table color-table inverse-table table-responsive table-borderless"
|
||||
id="uterus_operations_details_table">
|
||||
<thead class="thead-light">
|
||||
<th>{{ __('antenatal.uterus_operations') }}</th>
|
||||
<th>{{ __('antenatal.date') }}</th>
|
||||
<th>{{ __('antenatal.facility_name') }}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody id="uterus_operations_data">
|
||||
|
||||
@if (!empty($anc_uterine_surgeries))
|
||||
@foreach ($anc_uterine_surgeries as $key => $anc_uterine_operation)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('uterus_operations_name[]', $anc_uterine_operation['name'] ?? '', ['class' => 'form-control uterus_operations', 'id'
|
||||
=> 'uterus_operations_name_1']) }}
|
||||
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
|
||||
<div class="input-group">
|
||||
{{ Form::text('uterus_operations_date[]', $anc_uterine_operation['date'] ?? '', ['class' => 'form-control', 'id' =>
|
||||
'uterus_operation_date_picker', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('uterus_operations_facility_name[]', $anc_uterine_operation['facility_name'] ?? '', ['class' => 'form-control ', 'id' =>
|
||||
'uterus_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('uterus_operations_name[]', '', ['class' => 'form-control uterus_operations', 'id'
|
||||
=> 'uterus_operations_name_1']) }}
|
||||
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
|
||||
<div class="input-group">
|
||||
|
||||
|
||||
{{ Form::text('uterus_operations_date[]', '', ['class' => 'form-control', 'id' =>
|
||||
'uterus_operation_date_picker', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('uterus_operations_facility_name[]', '', ['class' => 'form-control ', 'id' =>
|
||||
'uterus_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
<a class="add_uterus_operations_button label label-inverse" style="color: #fff;" id="add_uterus_operations_1"
|
||||
role="button"
|
||||
onclick="add_uterus_operations_row('uterus_operations_details_table','uterus_operations_data')">{{
|
||||
__('antenatal.add_uterus_operations_row') }}</a>
|
||||
</div>
|
||||
|
||||
{{-- other operations --}}
|
||||
<div class="col">
|
||||
<table class="table color-table inverse-table table-responsive table-borderless"
|
||||
id="other_operations_details_table">
|
||||
<thead class="thead-light">
|
||||
<th>{{ __('antenatal.operations') }}</th>
|
||||
<th>{{ __('antenatal.date') }}</th>
|
||||
<th>{{ __('antenatal.facility_name') }}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody id="other_operations_data">
|
||||
@if(!@empty($anc_other_surgeries))
|
||||
@foreach($anc_other_surgeries as $key => $anc_other_operation)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name[]', $anc_other_operation['name'] ?? '', ['class' => 'form-control', 'id' =>
|
||||
'other_operations_name_1']) }}
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
<div class="input-group">
|
||||
|
||||
{{ Form::text('other_operations_name_date[]', $anc_other_operation['date'] ?? '', ['class' => 'form-control ', 'id' =>
|
||||
'other_operation_date_picker', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name_facility_name[]', $anc_other_operation['facility_name'] ?? '', ['class' => 'form-control', 'id' => 'other_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name[]', '', ['class' => 'form-control', 'id' =>
|
||||
'other_operations_name_1']) }}
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
<div class="input-group">
|
||||
|
||||
{{ Form::text('other_operations_name_date[]', '', ['class' => 'form-control ', 'id' =>
|
||||
'other_operation_date_picker', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name_facility_name[]', '', ['class' => 'form-control', 'id' => 'other_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
<a class="add_other_operations_name_button label label-inverse" style="color: #fff;"
|
||||
id="add_other_operations_name_1" role="button"
|
||||
onclick="add_uterus_operations_row('other_operations_details_table','other_operations_data')">{{
|
||||
__('antenatal.add_other_operations_row') }}</a>
|
||||
</div>
|
||||
</div> <br>
|
||||
+594
@@ -0,0 +1,594 @@
|
||||
|
||||
@php
|
||||
$physical_exam = json_decode($latest_existing_anc_clinic_followup?->physical_exam, true);
|
||||
@endphp
|
||||
<div class="row">
|
||||
<div class="col-md-12 ">
|
||||
<h4><span class="label label-warning">{{ __('maternity.this_pregnancy') }}</span></h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
{{-- row --}}
|
||||
<div class="row">
|
||||
{{-- col-1 --}}
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
{{ Form::label('lmp', __('maternity.lmp')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('lmp', isset($anc_registration) ? Carbon\Carbon::parse($anc_registration->lmp)->format('d/m/Y') : '' , ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'lmp']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
{{-- col --}}
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
|
||||
{{ Form::label('accuracy', __('maternity.accuracy')) }}
|
||||
{{ Form::select('accuracy', $accuracies, $anc_registration->accuracy ?? '', ['class' => 'form-control col-sm-12 compulsory', 'required']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
|
||||
{{ Form::label('weeks_of_amenorrhoea', __('antenatal.woa_weeks')) }}
|
||||
<div class="input-group form-control border-0" id='weeks_of_amenorrhoea_text'>{!! $existing_maternity_inpatient_data->weeks_of_amenorrhoea ?? $anc_registration->woa_weeks ?? '' !!}</div>
|
||||
|
||||
{{ Form::hidden('weeks_of_amenorrhoea', $existing_maternity_inpatient_data->weeks_of_amenorrhoea ?? $anc_registration->woa_weeks ?? '', ['id' => 'weeks_of_amenorrhoea']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
{{ Form::label('edd', __('maternity.edd')) }}
|
||||
{{-- Carbon\Carbon::parse($anc_registration->edd)->format('d/m/Y') --}}
|
||||
@php
|
||||
$edd_date = [];
|
||||
$edd_date = isset($anc_registration->edd) ? Carbon\Carbon::parse($anc_registration->edd)->format('d/m/Y') : '';
|
||||
@endphp
|
||||
|
||||
<div class="input-group">
|
||||
{{ Form::text('edd', $edd_date , [
|
||||
'class' => 'form-control compulsory',
|
||||
'required', 'readonly', 'id' => 'edd']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{{-- end row --}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3 col-md-3">
|
||||
<div class="form-group">
|
||||
|
||||
|
||||
{{ Form::label('refferal', __('maternity.us_scan_edd')) }}
|
||||
<div class="input-group">
|
||||
{{-- {{ Form::text('scan_edd', Carbon\Carbon::parse($latest_existing_anc_clinic_followup?->scan_edd)->format('d/m/Y') ?? '' , ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'datepicker-autoclose7']) }}
|
||||
--}}
|
||||
<input class="form-control" required="" readonly="" name="scan_edd" type="text"
|
||||
value="{{ $latest_existing_anc_clinic_followup?->scan_edd ? Carbon\Carbon::parse($latest_existing_anc_clinic_followup->scan_edd)->format('d/m/Y') : "" }}" id="datepicker-autoclose7">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('gestation_from_scan_view', __('maternity.current_gestation_from_scan')) }}
|
||||
<input type="number" class="form-control" name="gestation_from_scan" id="gestation_from_scan"
|
||||
value="{{ $latest_existing_anc_clinic_followup->gestation_from_scan ?? '' }}" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('refferal', __('maternity.referral_in_from')) }}
|
||||
{{ Form::select('refferal', $referrals, $anc_registration->referral_from ?? '', ['class' => 'form-control col-sm-12 compulsory', 'required', 'id' => 'referral']) }}
|
||||
</div>
|
||||
<a data-toggle="modal" data-target="#referralsmodal">
|
||||
<font size="1">{{ __('maternity.add_new_referral') }}</font>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
{{ Form::label('pregnancy_complications', __('antenatal.complications')) }} <br>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
id="weight_loss" value="1" @if (is_array(old('pregnancy_complications')) && in_array('1', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="weight_loss"> {{ __('maternity.weight_loss') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
id="fever_one_month" value="2"
|
||||
@if (is_array(old('pregnancy_complications')) && in_array('2', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="fever_one_month"> {{ __('maternity.fever_one_month') }}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
id="diarrhoea_one_month" value="3"
|
||||
@if (is_array(old('pregnancy_complications')) && in_array('3', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="diarrhoea_one_month">
|
||||
{{ __('maternity.diarrhoea_one_month') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox" id="pruritus"
|
||||
value="4" @if (is_array(old('pregnancy_complications')) && in_array('4', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="pruritus"> {{ __('maternity.pruritus') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
id="vaginal_bleeding" value="5"
|
||||
@if (is_array(old('pregnancy_complications')) && in_array('5', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="vaginal_bleeding"> {{ __('maternity.vaginal_bleeding') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="form-check">
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox" id="draining"
|
||||
value="6" @if (is_array(old('pregnancy_complications')) && in_array('6', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="draining"> {{ __('maternity.draining') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="other_pregnancy_complications" type="checkbox"
|
||||
{{ in_array('3', explode(',', $anc_registration?->complications)) ? 'checked' : '' }}
|
||||
|
||||
id="show_other_pregnancy_complications_input" value="7">
|
||||
|
||||
<label class="form-check-label" id="other_pregnancy_complications" for="show_other_pregnancy_complications_input">{{ __('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other medical presentations :input --}}
|
||||
<div id="other_pregnancy_complications_input"
|
||||
style="{{ in_array('3', explode(',', $anc_registration?->complications)) ? '' : 'display:none;' }}"
|
||||
>
|
||||
<input type="text" name="other_pregnancy_complications" placeholder="Specify"
|
||||
value="{{ $anc_registration->other_complications ?? ''}}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
{{ Form::label('iufd', __('maternity.iufd')) }} <br>
|
||||
{{ Form::radio('iufd', 1, false, ['required', 'id' => 'show_iufd_alert_div']) }}
|
||||
{{ __('maternity.yes') }}
|
||||
{{ Form::radio('iufd', 0, false, ['required', 'id' => 'hide_iufd_alert_div']) }}
|
||||
{{ __('maternity.no') }}
|
||||
<div class="row" id="iufd_alert_div" style="display: none;">
|
||||
<div class="alert alert-info "> {{ __('maternity.inform_medical_team_warning') }} </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
{{ Form::label('born_before_arrival', __('maternity.born_before_arrival')) }} <br>
|
||||
{{ Form::radio('born_before_arrival', 1, false, ['required']) }} {{ __('maternity.yes') }}
|
||||
|
||||
{{ Form::radio('born_before_arrival', 0, false, ['required']) }} {{ __('maternity.no') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('progress', __('maternity.progress')) }}
|
||||
{{ Form::select('progress', $maternity_progress, '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('delivery_recomendation', __('maternity.recomendation_of_delivery')) }}
|
||||
{{ Form::textarea('delivery_recomendation', '', ['class' => 'form-control', 'rows' => '4']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{{-- physical examination --}}
|
||||
<div class="col-md-3">
|
||||
<label class="control-label strong">{{ __('maternity.physical_examination') }}</label>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox" id="show_breasts_physical_examination_input"
|
||||
value="1"
|
||||
@if (is_array(old('physical_examination')) && in_array('1', old('physical_examination')))
|
||||
checked
|
||||
@elseif (!empty($physical_exam['breasts']))
|
||||
checked
|
||||
@endif
|
||||
>
|
||||
<label class="form-check-label" for="show_breasts_physical_examination_input"> {{ __('antenatal.breasts') }} </label>
|
||||
|
||||
{{-- add breast deformity :input --}}
|
||||
<div id="breasts_physical_examination_input" style="{{!empty($physical_exam['breasts']) ? '' : 'display:none; ' }} margin-top:10px;">
|
||||
<input type="text" name="breasts_physical_examination_details" placeholder="Add description"
|
||||
value="{{ $physical_exam['breasts'] ?? '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox" id="show_legs_physical_examination_input"
|
||||
value="2"
|
||||
@if (is_array(old('physical_examination')) && in_array('2', old('physical_examination')))
|
||||
checked
|
||||
@elseif (!empty($physical_exam['legs']))
|
||||
checked
|
||||
@endif
|
||||
>
|
||||
|
||||
<label class="form-check-label" for="show_legs_physical_examination_input"> {{ __('antenatal.legs') }} </label>
|
||||
|
||||
{{-- add legs deformity :input --}}
|
||||
<div id="legs_physical_examination_input" style="{{!empty($physical_exam['legs']) ? '' : 'display:none; ' }} margin-top:10px;">
|
||||
<input type="text" name="legs_physical_examination_details" placeholder="Add description"
|
||||
value="{{ $physical_exam['legs'] ?? '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_heart_physical_examination_input" value="3"
|
||||
@if (is_array(old('physical_examination')) && in_array('3', old('physical_examination')))
|
||||
checked
|
||||
@elseif(!empty($physical_exam['heart']))
|
||||
checked
|
||||
@endif
|
||||
>
|
||||
<label class="form-check-label" for="show_heart_physical_examination_input"> {{ __('antenatal.heart') }} </label>
|
||||
|
||||
{{-- add heart deformity :input --}}
|
||||
<div id="heart_physical_examination_input" style="{{!empty($physical_exam['heart']) ? '' : 'display:none; ' }} margin-top:10px;">
|
||||
<input type="text" name="heart_physical_examination_details" placeholder="Add description"
|
||||
value="{{ $physical_exam['heart'] ?? '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_lungs_physical_examination_input" value="4"
|
||||
@if (is_array(old('physical_examination')) && in_array('4', old('physical_examination')))
|
||||
checked
|
||||
@elseif(!empty($physical_exam['lungs']))
|
||||
checked
|
||||
@endif
|
||||
>
|
||||
<label class="form-check-label" for="show_lungs_physical_examination_input"> {{ __('antenatal.lungs') }} </label>
|
||||
|
||||
{{-- add lungs :input --}}
|
||||
<div id="lungs_physical_examination_input" style="{{!empty($physical_exam['lungs']) ? '' : 'display:none; ' }} margin-top:10px;">
|
||||
<input type="text" name="lungs_physical_examination_details" placeholder="Add description"
|
||||
value="{{ $physical_exam['lungs'] ?? '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_teeth_physical_examination_input" value="5"
|
||||
@if (is_array(old('physical_examination')) && in_array('5', old('physical_examination')))
|
||||
checked
|
||||
@elseif(!empty($physical_exam['teeth']))
|
||||
checked
|
||||
@endif
|
||||
>
|
||||
<label class="form-check-label" for="show_teeth_physical_examination_input"> {{ __('antenatal.teeth') }} </label>
|
||||
|
||||
{{-- add teeth :input --}}
|
||||
<div id="teeth_physical_examination_input" style="{{!empty($physical_exam['teeth']) ? '' : 'display:none; ' }} margin-top:10px;">
|
||||
<input type="text" name="teeth_physical_examination_details" placeholder="Add description"
|
||||
value="{{ $physical_exam['teeth'] ?? '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_other_physical_examination_input" value="6"
|
||||
@if (is_array(old('physical_examination')) && in_array('6', old('physical_examination')))
|
||||
checked
|
||||
|
||||
@endif
|
||||
>
|
||||
<label class="form-check-label" for="show_other_physical_examination_input"> {{ __('antenatal.others') }}
|
||||
</label>
|
||||
|
||||
{{-- add other physical_examination :input --}}
|
||||
<div id="other_physical_examination_input" style="display: none; margin-top:10px;">
|
||||
<input type="text" name="other_physical_examinations" placeholder="Specify others"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<label class="control-label strong">{{ __('maternity.mother_current_obstetric_risk') }}</label>
|
||||
<div class="controls">
|
||||
<table class="table table-condensed">
|
||||
{{-- row 1 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="history_aph_pregnancy" value="1"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('1', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_aph_pregnancy">
|
||||
{{ __('maternity.history_aph_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="epilepsy" value="2" @if (is_array(old('obstetric_risk_factors')) && in_array('2', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="epilepsy">
|
||||
{{ __('maternity.epilepsy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="severe_pre_eclampsia" value="3"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('3', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="severe_pre_eclampsia">
|
||||
{{ __('maternity.severe_pre_eclampsia') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 2 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="history_convulsion_pregnancy" value="4"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('4', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_convulsion_pregnancy">
|
||||
{{ __('maternity.history_convulsion_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="polyhydramnios" value="5"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('5', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="polyhydramnios">
|
||||
{{ __('maternity.polyhydramnios') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="premature_rupture_of_membranes" value="6"
|
||||
@if (is_array(old('obstetric_risk_factors')) &&
|
||||
in_array('6', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="premature_rupture_of_membranes">
|
||||
{{ __('maternity.premature_rupture_of_membranes') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 3 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="diabetes_mellitus" value="7"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('7', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="diabetes_mellitus">
|
||||
{{ __('maternity.diabetes_mellitus') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="multiple_pregnancy" value="8"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('8', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="multiple_pregnancy">
|
||||
{{ __('maternity.multiple_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="pph" value="9"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('9', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="pph">
|
||||
{{ __('maternity.pph') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 4 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="cardiac_disease" value="10"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('10', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="cardiac_disease">
|
||||
{{ __('maternity.cardiac_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="malpresentation" value="11"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('11', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="malpresentation">
|
||||
{{ __('maternity.malpresentation') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="asthma" value="12" @if (is_array(old('obstetric_risk_factors')) && in_array('12', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="asthma">
|
||||
{{ __('maternity.asthma') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 5 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="poor_obstetric_history" value="13"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('13', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="poor_obstetric_history">
|
||||
{{ __('maternity.poor_obstetric_history') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="pre_term_labour" value="14"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('14', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="pre_term_labour">
|
||||
{{ __('maternity.pre_term_labour') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="sickle_cell_disease" value="15"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('15', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="sickle_cell_disease">
|
||||
{{ __('maternity.sickle_cell_disease') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 6 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="previous_csections" value="16"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('16', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="previous_csections">
|
||||
{{ __('maternity.previous_csections') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="polio" value="17" @if (is_array(old('obstetric_risk_factors')) && in_array('17', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="polio">
|
||||
{{ __('maternity.polio') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="group_b_streptococcus_colonization" value="18"
|
||||
@if (is_array(old('obstetric_risk_factors')) &&
|
||||
in_array('18', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="group_b_streptococcus_colonization">
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 7 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="woman_advanced_age" value="19"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('19', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="woman_advanced_age">
|
||||
{{ __('maternity.woman_advanced_age') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="mental_illness" value="20"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('20', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="mental_illness">
|
||||
{{ __('maternity.mental_illness') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="adolescent_pregnancy" value="21"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('21', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="adolescent_pregnancy">
|
||||
{{ __('maternity.adolescent_pregnancy') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 8 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="hypertension" value="22"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('22', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="hypertension">
|
||||
{{ __('maternity.hypertension') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="kidney_disease" value="23"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('23', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="kidney_disease">
|
||||
{{ __('maternity.kidney_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="show_other_obstetric_risk_factors_input" value="24"
|
||||
>
|
||||
<label class="form-check-label" for="show_other_obstetric_risk_factors_input">
|
||||
{{ __('maternity.other') }} </label>
|
||||
|
||||
{{-- add other obstetric risk factor:input --}}
|
||||
<div id="other_obstetric_risk_factors_input" style="display: none; margin-top:10px;">
|
||||
<input type="text" name="other_obstetric_risk_factors" placeholder="Add risk factor"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
{{-- primary diagnosis and other diagnosis --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover color-table success-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('inpatient.primary_diagnosis') }}</th>
|
||||
<th>{{ __('inpatient.prompt') }}</th>
|
||||
<th>{{ __('inpatient.references') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk" /></td>
|
||||
<td style="width: 30%;">
|
||||
<div class="form-group">
|
||||
{{ Form::select('primary_diagnosis', $diagnoses, '', ['id' => 'primary_diagnosis', 'class' => 'form-control col-sm-12 compulsory', 'required']) }}
|
||||
</div>
|
||||
</td>
|
||||
<td style="width: 45%; color: #C85F6A;">
|
||||
<div class="well well-sm" id="primary_diagnosis_prompt"> </div>
|
||||
</td>
|
||||
<td style="width: 25%">
|
||||
<div class="well well-sm" id="primary_diagnosis_reference"> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-responsive table-condensed">
|
||||
<table class="table color-table success-table table-condensed table-borderless"
|
||||
id="other_diagnosis_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('inpatient.other_diagnosis') }}</th>
|
||||
<th>{{ __('inpatient.prompt') }}</th>
|
||||
<th>{{ __('inpatient.references') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk"></td>
|
||||
<td style="width: 30%;">
|
||||
{{ Form::select('other_diagnosis[]', $diagnoses, '', ['class' => 'form-control col-sm-12 sec_d', 'id' => 'other_diagnosis']) }}
|
||||
</td>
|
||||
<td style="width: 45%">
|
||||
<div class="well well-sm" id="secondary_diagnosis_prompt1"> </div>
|
||||
</td>
|
||||
<td style="width: 25%">
|
||||
<div class="well well-sm" id="secondary_diagnosis_reference1"> </div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a class="btn btn-success btn-sm m-t-10" id="add_row"
|
||||
onclick="addRow('other_diagnosis_table')">{{ __('inpatient.add_row') }}</a>
|
||||
<a class="btn btn-danger btn-sm m-t-10" id="delete_row"
|
||||
onclick="deleteRow('other_diagnosis_table')">{{ __('inpatient.delete_row') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-wrapper collapse in">
|
||||
<ul class="nav customtab nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active nav-item"><a href="#triageSymptoms"
|
||||
class="nav-link" aria-controls="home" role="tab" data-toggle="tab"
|
||||
aria-expanded="true"><span class="visible-xs"><i
|
||||
class="ti-home"></i></span><span class="hidden-xs">
|
||||
{{ __('inpatient.symptoms_triage') }}</span></a></li>
|
||||
<li role="presentation" class="nav-item"><a href="#opdInvestigations" class="nav-link"
|
||||
aria-controls="profile" role="tab" data-toggle="tab"
|
||||
aria-expanded="false"><span class="visible-xs"><i class="ti-user"></i></span>
|
||||
<span class="hidden-xs">{{ __('inpatient.opd_invs') }}</span></a></li>
|
||||
<li role="presentation" class="nav-item"><a href="#wardInvestigations" class="nav-link"
|
||||
aria-controls="messages" role="tab" data-toggle="tab"><span
|
||||
class="visible-xs"><i class="ti-email"></i></span> <span
|
||||
class="hidden-xs">{{ __('inpatient.ward_invs') }}</span></a></li>
|
||||
</ul>
|
||||
<div class="panel-body">
|
||||
<div class="tab-content m-t-0">
|
||||
<div role="tabpanel" class="tab-pane fade active in" id="triageSymptoms">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('inpatient.symptoms') }}</b></th>
|
||||
<th><b>{{ __('inpatient.duration') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if ($triage)
|
||||
@php
|
||||
$symptoms_explode = explode(',', $triage->symptoms);
|
||||
$duration_explode = explode(',', $triage->symptom_duration);
|
||||
@endphp
|
||||
@for ($i = 0; $i < count($symptoms_explode); $i++)
|
||||
<tr>
|
||||
<td>{{ $symptoms[$symptoms_explode[$i]] }}</td>
|
||||
<td>{{ isset($duration_explode[$i]) ? $duration_explode[$i] : '' }}
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="2">{{ __('inpatient.no_symptoms_triage') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="opdInvestigations">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('inpatient.name') }}</b></th>
|
||||
<th><b>{{ __('inpatient.value') }}</b></th>
|
||||
<th><b>{{ __('inpatient.comment') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($opd_investigations) > 0)
|
||||
@for ($i = 0; $i < count($opd_investigations['name']); $i++)
|
||||
<tr>
|
||||
<td>{{ $opd_investigations['name'][$i] }}</td>
|
||||
<td>{{ $opd_investigations['value'][$i] }}</td>
|
||||
<td>{{ $opd_investigations['comment'][$i] }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">{{ __('inpatient.no_opd_invs') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="wardInvestigations">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b>{{ __('inpatient.name') }}</b></th>
|
||||
<th><b>{{ __('inpatient.value') }}</b></th>
|
||||
<th><b>{{ __('inpatient.comment') }}</b></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($ward_investigations) > 0)
|
||||
@for ($i = 0; $i < count($ward_investigations['name']); $i++)
|
||||
<tr>
|
||||
<td>{{ $ward_investigations['name'][$i] }}</td>
|
||||
<td>{{ $ward_investigations['value'][$i] }}</td>
|
||||
<td>{{ $ward_investigations['comment'][$i] }}</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="3">{{ __('inpatient.no_ward_invs') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="label label-info"> > {{ __('inpatient.historical_investigations') }}</a>
|
||||
<a href="{{ url('investigations/investigations_review') }}" class="label label-info"> >
|
||||
{{ __('inpatient.order_investigations') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{{-- end diagnosis --}}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
{{-- Gynacology history --}}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-left">{{ __('antenatal.gynacology_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{-- {{ Form::label('surgical_history',__('antenatal.surgical_history')) }} --}}
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="d_c"
|
||||
value="d_c" @if (is_array(old('surgical_history')) && in_array('d_c', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="d_c"> {{ __('antenatal.d_c') }} </label>
|
||||
|
||||
{{-- add dilation and curettage date :input --}}
|
||||
<div id="d_c_date_input" class="hidden" style="margin-top:15px;">
|
||||
<input type="date" name="d_c" placeholder="Add date" class="form-control">
|
||||
<small style="color:blue;">Add dilation & curettage date </small>
|
||||
</div>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 2, false, ['id' => 'obs_gyn_ectopic_pregancy', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label"
|
||||
for="obs_gyn_ectopic_pregancy">{{ __('antenatal.ectopic_pregancy') }}</label>
|
||||
|
||||
{{-- add ectopic pregnancy date :input --}}
|
||||
<div id="obs_gyn_ectopic_pregancy_date_input" class="hidden" style="margin-top:15px;">
|
||||
<input type="date" name="obs_gyn_ectopic_pregancy" placeholder="Add date" class="form-control">
|
||||
<small style="color:blue;">Add ectopic pregnancy date </small>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="myomectomy"
|
||||
value="myomectomy" @if (is_array(old('surgical_history')) && in_array('myomectomy', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="myomectomy"> {{ __('antenatal.myomectomy') }} </label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox"
|
||||
id="operations_on_cervix" value="operations_on_cervix"
|
||||
@if (is_array(old('surgical_history')) && in_array('operations_on_cervix', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="operations_on_cervix">
|
||||
{{ __('antenatal.operations_on_cervix') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="evacuation"
|
||||
value="evacuation" @if (is_array(old('surgical_history')) && in_array('evacuation', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="evacuation"> {{ __('antenatal.evacuation') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="surgical_history[]" type="checkbox" id="std"
|
||||
value="std" @if (is_array(old('surgical_history')) && in_array('std', old('surgical_history'))) checked @endif>
|
||||
<label class="form-check-label" for="std"> {{ __('antenatal.std') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 3, false, ['id' => 'obs_gyn_pph', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label"
|
||||
for="obs_gyn_pph">{{ __('antenatal.post_partum_haemorrhaging') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 4, false, ['id' => 'obs_gyn_retained_placenta', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label"
|
||||
for="obs_gyn_retained_placenta">{{ __('antenatal.retained_placenta') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::checkbox('obs_gyn[]', 4, false, ['id' => 'c_section', 'class' => 'form-check-input']) }}
|
||||
<label class="form-check-label" for="c_section">{{ __('antenatal.c_section') }}</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
+497
@@ -0,0 +1,497 @@
|
||||
{{-- blood transfusion --}}
|
||||
<div class="row">
|
||||
{{-- <label for="other_operation_name"> {{ __('antenatal.blood_tranfusion_checkbox') }} </label><br> --}}
|
||||
{{-- blood transfusion --}}
|
||||
<div class="col-md-4">
|
||||
<p>{{ __('antenatal.blood_transfusion') }}</p>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<input class="form-check-input" name="blood_transfusion_available[]" type="checkbox"
|
||||
id="show_blood_transfusion_input" value="1"
|
||||
{{ in_array('1', explode(',', $existing_maternity_inpatient_data->blood_transfusion_available)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" name= "blood_transfusion_available" for="show_blood_transfusion_input">
|
||||
{{ __('antenatal.yes') }} </label>
|
||||
</div>
|
||||
<div class="row"
|
||||
style="{{ in_array('1', explode(',', $existing_maternity_inpatient_data->blood_transfusion_available)) ? '' : 'display:none;' }}"
|
||||
id="blood_transfusion_input">
|
||||
<div class="col-md-4">
|
||||
|
||||
<label class="form-check-label" for="blood_transfusion_available">
|
||||
{{ __('antenatal.why') }} </label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{{-- why --}}
|
||||
<input type="text" class="form-control col-sm-12" name="blood_transfusion_details"
|
||||
value="{{ isset($existing_maternity_inpatient_data->blood_transfusion_details) ? $existing_maternity_inpatient_data->blood_transfusion_details : '' }}">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{{-- fractures --}}
|
||||
<div class="col-md-8">
|
||||
<p>{{ __('antenatal.fractures') }}</p>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
{{-- pelvis --}}
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_pelvis_fracture_input"
|
||||
value="1"
|
||||
{{ in_array('1', explode(',', $existing_maternity_inpatient_data->fractures)) ? 'checked' : '' }} />
|
||||
|
||||
<label class="form-check-label" id="1"
|
||||
for="show_pelvis_fracture_input">{{ __('antenatal.pelvis') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add pelvis fracture inputs --}}
|
||||
<div id="pelvis_fracture_input"
|
||||
style="{{ in_array('1', explode(',', $existing_maternity_inpatient_data->fractures)) ? '' : 'display:none;' }}">
|
||||
<div class="input-group">
|
||||
@php
|
||||
$pelvis_fracture_date = $existing_maternity_inpatient_data->pelvis_fracture_date
|
||||
? Carbon\Carbon::parse(
|
||||
$existing_maternity_inpatient_data->pelvis_fracture_date,
|
||||
)->format('d/m/Y')
|
||||
: '';
|
||||
@endphp
|
||||
|
||||
<input type="text" name="pelvis_fracture_date" placeholder="Specify date"
|
||||
{{-- {{ Carbon\Carbon::parse($existing_maternity_inpatient_data->pelvis_fracture_date)->format('d/m/Y') }} --}} value="{{ $pelvis_fracture_date }}"
|
||||
class="form-control prevent_future_pelvis_date">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
|
||||
<input type="text" name="pelvis_fracture_details" placeholder="Details"
|
||||
value="{{ $existing_maternity_inpatient_data->pelvis_fracture_details }}"
|
||||
style="margin-top:8px;" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- spine --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_spine_fracture_input"
|
||||
value="2"
|
||||
{{ in_array('2', explode(',', $existing_maternity_inpatient_data->fractures)) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" id="2"
|
||||
for="show_spine_fracture_input">{{ __('antenatal.spine') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add spine fracture inputs --}}
|
||||
<div id="spine_fracture_input"
|
||||
style="{{ in_array('2', explode(',', $existing_maternity_inpatient_data->fractures)) ? '' : 'display:none;' }}">
|
||||
<div class="input-group">
|
||||
@php
|
||||
$spine_fracture_date = $existing_maternity_inpatient_data->spine_fracture_date
|
||||
? Carbon\Carbon::parse(
|
||||
$existing_maternity_inpatient_data->spine_fracture_date,
|
||||
)->format('d/m/Y')
|
||||
: '';
|
||||
@endphp
|
||||
<input type="text" name="spine_fracture_date" placeholder="Specify date"
|
||||
value="{{ $spine_fracture_date }}" class="form-control prevent_future_spine_date">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
|
||||
<input type="text" name="spine_fracture_details" placeholder="Details"
|
||||
value="{{ $existing_maternity_inpatient_data->spine_fracture_details }}"
|
||||
style="margin-top:8px;" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- femur --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox" id="show_femur_fracture_input"
|
||||
{{ in_array('3', explode(',', $existing_maternity_inpatient_data->fractures)) ? 'checked' : '' }}
|
||||
value="3">
|
||||
|
||||
<label class="form-check-label" id="3"
|
||||
for="show_femur_fracture_input">{{ __('antenatal.femur') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add femur fracture inputs --}}
|
||||
@php
|
||||
$femur_fracture_date = $existing_maternity_inpatient_data->femur_fracture_date
|
||||
? Carbon\Carbon::parse($existing_maternity_inpatient_data->femur_fracture_date)->format(
|
||||
'd/m/Y',
|
||||
)
|
||||
: '';
|
||||
@endphp
|
||||
|
||||
<div id="femur_fracture_input"
|
||||
style="{{ in_array('3', explode(',', $existing_maternity_inpatient_data->fractures)) ? '' : 'display:none;' }}">
|
||||
<div class="input-group">
|
||||
<input type="text" name="femur_fracture_date" placeholder="Specify date"
|
||||
value="{{ $femur_fracture_date }}" class="form-control prevent_future_femur_date">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
|
||||
<input type="text" name="femur_fracture_details" placeholder="Details"
|
||||
value="{{ $existing_maternity_inpatient_data->femur_fracture_details }}"
|
||||
style="margin-top:8px;" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- other fractures --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" name="fractures[]" type="checkbox"
|
||||
id="show_other_fracture_input"
|
||||
{{ in_array('4', explode(',', $existing_maternity_inpatient_data->fractures)) ? 'checked' : '' }}
|
||||
value="4">
|
||||
|
||||
<label class="form-check-label" id="4"
|
||||
for="show_other_fracture_input">{{ __('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other_fractures fracture inputs --}}
|
||||
<div id="other_fracture_input"
|
||||
style="{{ in_array('4', explode(',', $existing_maternity_inpatient_data->fractures)) ? '' : 'display:none;' }}">
|
||||
|
||||
<input type="text" name="other_fracture_details" placeholder="Details"
|
||||
value="{{ $existing_maternity_inpatient_data->other_fracture_details }}"
|
||||
style="margin-top:8px;" class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('blood_group', __('maternity.blood_group')) }}
|
||||
|
||||
{{ Form::select('blood_group', $blood_groups, $existing_blood_transfusion->blood_group_id ?? '', ['class' => 'form-control col-sm-12']) }}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-sm-5">
|
||||
<span class="label label-primary">{{ __('maternity.blood_transfusion') }}</span>
|
||||
{{-- <div class="table-responsive"> --}}
|
||||
{{-- <table class="table color-table success-table" id="table_2">
|
||||
<thead>
|
||||
<th class="text-center">#</th>
|
||||
<th>{{ __('maternity.date') }}</th>
|
||||
<th>{{ __('maternity.number_of_units') }}</th>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
</thead> --}}
|
||||
{{-- <tbody>
|
||||
@foreach ($anc_blood_transfusion as $blood_transfusion)
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ streamline_date($blood_transfusion->transfusion_date) }}</td>
|
||||
<td>{{ $blood_transfusion->number_of_units }}</td>
|
||||
|
||||
<td>{{ $blood_transfusion->comments }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk" /></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', '', ['class' => 'form-control transfusion-date', 'readonly']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]">
|
||||
</td>
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"></td>
|
||||
</tr>
|
||||
</tbody> --}}
|
||||
|
||||
{{-- <tbody>
|
||||
@if (count($anc_blood_transfusion_details) > 0)
|
||||
@foreach ($anc_blood_transfusion_details as $anc_blood_transfusion)
|
||||
@php
|
||||
$format_db_date_1 = date_create($anc_blood_transfusion->transfusion_date);
|
||||
$customized_date_format_1 = date_format($format_db_date_1, 'd/m/Y');
|
||||
@endphp
|
||||
<tr>
|
||||
<td><input type="checkbox" name="chk" id="chk" /></td>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', $customized_date_format_1, ['class' => 'form-control transfusion-date', 'readonly']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]"
|
||||
value="{{ $anc_blood_transfusion->number_of_units }}"></td>
|
||||
<td><input type="text" class="form-control col-sm-12"
|
||||
name="transfusion_comment[]"
|
||||
value="{{ $anc_blood_transfusion->comments }}"></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', '', ['class' => 'form-control', 'readonly', 'id' => 'datepicker-autoclose12']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]"></td>
|
||||
<td><input type="text" class="form-control col-sm-12"
|
||||
name="transfusion_comment[]"></td>
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
<a class="add_field_button_2 label label-info" onclick="addBloodTransfusionRow('table_2');"
|
||||
style="color: white;">{{ __('maternity.add_row') }}</a>
|
||||
<a class="add_field_button_2 label label-danger" onclick="deleteRowData('table_2')"
|
||||
style="color: white;">{{ __('maternity.delete_row') }}</a> --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
|
||||
{{-- modified table --}}
|
||||
|
||||
<table class="table color-table inverse-table table-responsive table-borderless"
|
||||
id="blood_transfusion_details_table">
|
||||
<thead class="thead-light">
|
||||
|
||||
{{-- <th>#T_id</th> --}}
|
||||
<th>{{ __('maternity.date') }}</th>
|
||||
<th>{{ __('maternity.number_of_units') }}</th>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody id="blood_transfusion_data">
|
||||
@if (count($anc_blood_transfusion_details) > 0)
|
||||
|
||||
@foreach ($anc_blood_transfusion_details as $key => $anc_blood_transfusion)
|
||||
@php
|
||||
$format_db_date_1 = date_create($anc_blood_transfusion->transfusion_date);
|
||||
$customized_date_format_1 = date_format($format_db_date_1, 'd/m/Y');
|
||||
|
||||
//$format_db_date_1 = isset($anc_blood_transfusion->transfusion_date) ? Carbon\Carbon::parse($anc_blood_transfusion->transfusion_date)->format('d/m/Y') : null;
|
||||
//$customized_date_format_1 = is_array($format_db_date_1) ? date_format($format_db_date_1, 'd/m/Y'): null ;
|
||||
|
||||
@endphp
|
||||
|
||||
{{-- {{dd($customized_date_format_1)}} --}}
|
||||
|
||||
<tr>
|
||||
{{-- <td>{{ $anc_blood_transfusion->id }}</td> --}}
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', $customized_date_format_1, ['class' => 'form-control transfusion-date', 'readonly', 'id' => 'transfusion_date_1']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
<input type="hidden" value="{{ $anc_blood_transfusion->id }}"
|
||||
name="blood_group_transfusion_id[]">
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]"
|
||||
value="{{ $anc_blood_transfusion->number_of_units }}" id="transfusion_unit_1">
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"
|
||||
value="{{ $anc_blood_transfusion->comments }}" id="transfusion_comment_1"></td>
|
||||
<td>
|
||||
|
||||
{{-- <button onclick="deleteBloodTransfusionRow(this)"
|
||||
class="btn btn-sm btn-rounded btn-danger"
|
||||
title="Delete this row" style="color: white;"
|
||||
type="button"><i class="fa fa-trash"></i></button> --}}
|
||||
|
||||
<button onclick="deleteBloodTransfusionRoww_db(this)"
|
||||
class="btn btn-sm btn-rounded btn-danger" title="Delete this row"
|
||||
style="color: white;" type="button"
|
||||
data-transfusion-id="{{ $anc_blood_transfusion->id }}">
|
||||
<i class="fa fa-trash"></i>
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
{{ Form::text('transfusion_date[]', '', ['class' => 'form-control transfusion-date', 'readonly', 'id' => 'transfusion_date_1']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td><input type="number" class="form-control col-sm-12" name="no_of_units[]"
|
||||
id="transfusion_unit_1">
|
||||
<td><input type="text" class="form-control col-sm-12" name="transfusion_comment[]"
|
||||
id="transfusion_comment_1"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<button type="button" style="background-color:#4c5667;"
|
||||
class="btn add_tour_itenaries_button label label-inverse"
|
||||
onclick="add_blood_transfusion_row('blood_transfusion_details_table','blood_transfusion_data')">Add
|
||||
Row</button>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<br><br>
|
||||
<small class="control-label"><strong>{{ __('maternity.vdrl_status') }}</strong></small><br><br>
|
||||
<small class="control-label"><strong>{{ __('maternity.hiv_status') }}</strong></small>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('result', __('maternity.result')) }}
|
||||
<input type="text" name="vdrl_result"
|
||||
value="{{ $existing_maternity_inpatient_data->vdrl_result }}"
|
||||
class="form-control col-sm-12"><br>
|
||||
{{ Form::select('hiv_result', $hiv_statuses, $existing_maternity_inpatient_data->hiv_result_usaid, ['class' => 'form-control col-sm-12', 'id' => 'hiv_result']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date', __('maternity.date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('vdrl_date', Carbon\Carbon::parse($existing_maternity_inpatient_data->vdrl_date)->format('d/m/Y') ?? '', ['class' => 'form-control', 'readonly', 'id' => 'datepicker-autoclose3']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<br>
|
||||
<div class="input-group">
|
||||
{{ Form::text('hiv_date', Carbon\Carbon::parse($existing_maternity_inpatient_data->hiv_date)->format('d/m/Y') ?? '', ['class' => 'form-control datePicker', 'readonly', 'id' => 'datepicker-autoclose4']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('location', __('maternity.location')) }}
|
||||
<input type="text" name="vdrl_location"
|
||||
value="{{ $existing_maternity_inpatient_data->vdrl_location }}"
|
||||
class="form-control col-sm-12"><br>
|
||||
<input type="text" name="hiv_location"
|
||||
value="{{ $existing_maternity_inpatient_data->hiv_location }}"
|
||||
class="form-control col-sm-12">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$existing_hiv_date = \Carbon\Carbon::parse($existing_maternity_inpatient_data->hiv_date);
|
||||
$currentDate = \Carbon\Carbon::now();
|
||||
|
||||
$hiv_date_exceeds_three_months = '';
|
||||
if (isset($existing_maternity_inpatient_data->hiv_date)) {
|
||||
if ($existing_hiv_date->diffInMonths($currentDate) >= 3) {
|
||||
$hiv_date_exceeds_three_months = $existing_hiv_date;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
// Pass variable to javascript
|
||||
var existingHivDate = {!! json_encode($hiv_date_exceeds_three_months) !!};
|
||||
console.log("hiv date in php: ", existingHivDate);
|
||||
</script>
|
||||
|
||||
|
||||
<div class="col-sm-12">
|
||||
|
||||
@if (isset($existing_maternity_inpatient_data->hiv_date))
|
||||
|
||||
@if ($existing_hiv_date->diffInMonths($currentDate) >= 3)
|
||||
{{-- <div class="alert alert-warning">IF NOT HAD HIV TEST WITHIN PAST 3 MONTHS SEND TEST SAMPLE
|
||||
</div> --}}
|
||||
@endif
|
||||
@else
|
||||
@endif
|
||||
|
||||
<div id="alertboxx"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="hiv_positive_div" style="display: none;">
|
||||
<div class="form-group col-sm-4">
|
||||
{{ Form::label('art_treatment_center', __('maternity.art_treatment_center')) }}
|
||||
<input type="text" name="art_treatment_center" class="form-control col-sm-12">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
{{ Form::label('art_treatment_number', __('maternity.art_treatment_number')) }}
|
||||
<input type="text" name="art_treatment_number" class="form-control col-sm-12">
|
||||
</div>
|
||||
<div class="form-group col-sm-4" style="margin-top: 11%;">
|
||||
<button class="btn btn-outline-success">{{ __('maternity.art_clinic_record') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
{{-- DELIVERY PLAN INCLUDE FILE --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<span class="label label-primary">{{ __('maternity.delivery_plan') }}</span><br><br>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
{{-- person you live with --}}
|
||||
<div class="form-group">
|
||||
<label for="person_you_live_with">{{ __('maternity.person_you_live_with') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_you_live_with"
|
||||
value="{{ isset($existing_maternity_delivery_plan->person_you_live_with) ? $existing_maternity_delivery_plan->person_you_live_with : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- transport facility --}}
|
||||
<div class="form-group">
|
||||
<label for="transport_means_to_facility">{{ __('maternity.means_of_transport_to_facility') }}</label>
|
||||
|
||||
<select name="transport_means_to_facility" class="form-select form-control">
|
||||
<option value="" {{ old('transport_means_to_facility') == 'null' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->transport_means_to_facility == 'null' ? 'selected' : '' }}> --
|
||||
Select
|
||||
-- </option>
|
||||
<option value="1"
|
||||
{{ $existing_maternity_delivery_plan?->transport_means_to_facility == '1' ? 'selected' : '' }}
|
||||
{{ old('transport_means_to_facility') == '1' ? 'selected' : '' }}>
|
||||
Foot </option>
|
||||
<option value="2" {{ old('transport_means_to_facility') == '2' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->transport_means_to_facility == '2' ? 'selected' : '' }}>
|
||||
Motor bike</option>
|
||||
<option value="3" {{ old('transport_means_to_facility') == '3' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->transport_means_to_facility == '3' ? 'selected' : '' }}>
|
||||
Private car</option>
|
||||
<option value="4" {{ old('transport_means_to_facility') == '4' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->transport_means_to_facility == '4' ? 'selected' : '' }}>
|
||||
Public means</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
{{-- person to accompany you --}}
|
||||
<div class="form-group">
|
||||
<label for="person_to_accompany_you">{{ __('maternity.person_to_accompany_you') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_to_accompany_you"
|
||||
value="{{ isset($existing_maternity_delivery_plan?->person_to_accompany_you) ? $existing_maternity_delivery_plan->person_to_accompany_you : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- person to look after home --}}
|
||||
<div class=" form-group">
|
||||
<label for="person_to_look_after_home">{{ __('maternity.person_to_look_after_home') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_to_look_after_home"
|
||||
value="{{ isset($existing_maternity_delivery_plan?->person_to_look_after_home) ? $existing_maternity_delivery_plan->person_to_look_after_home : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- mother and partner screened for --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('mother_partner_screened_for', __('maternity.mother_partner_screened_for')) }} <br>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox"
|
||||
id="syphillis" value="1"
|
||||
{{ in_array('1', explode(',', $existing_maternity_delivery_plan?->mother_partner_screened_for)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="syphillis">
|
||||
{{ __('antenatal.syphillis') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox"
|
||||
{{ in_array('2', explode(',', $existing_maternity_delivery_plan?->mother_partner_screened_for)) ? 'checked' : '' }}
|
||||
id="sickle_cell" value="2" @if (is_array(old('mother_partner_screened_for')) && in_array('2', old('mother_partner_screened_for'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="sickle_cell"> {{ __('maternity.sickle_cell') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox"
|
||||
id="hepatitis" value="3" @if (is_array(old('mother_partner_screened_for')) && in_array('3', old('mother_partner_screened_for'))) checked @endif
|
||||
{{ in_array('3', explode(',', $existing_maternity_delivery_plan?->mother_partner_screened_for)) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="hepatitis"> {{ __('antenatal.hepatitis') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="mother_partner_screened_for[]" type="checkbox"
|
||||
id="hiv" value="4"
|
||||
{{ in_array('4', explode(',', $existing_maternity_delivery_plan?->mother_partner_screened_for)) ? 'checked' : '' }}>
|
||||
|
||||
{{-- id="hiv" value="hiv" @if (is_array(old('mother_partner_screened_for')) && in_array('hiv', old('mother_partner_screened_for'))) checked @endif --}}>
|
||||
|
||||
<label class="form-check-label" for="hiv"> {{ __('antenatal.hiv') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{-- family planning before next pregnancy --}}
|
||||
<div class="form-group">
|
||||
<label for="family_planning_method">{{ __('maternity.family_planning_before_next_pregnancy') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="hidden" name="delivery_plan_id" id="delivery_plan_hidden" value="{{ $existing_maternity_delivery_plan?->id }}">
|
||||
<input type="text" class="form-control col-sm-12" name="family_planning_method_plan"
|
||||
value="{{ isset($existing_maternity_delivery_plan->family_planning_method_plan) ? $existing_maternity_delivery_plan->family_planning_method_plan : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="person_to_stay_at_facility">{{ __('maternity.person_to_stay_at_facility') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="person_to_stay_at_facility"
|
||||
value="{{ isset($existing_maternity_delivery_plan->person_to_stay_at_facility) ? $existing_maternity_delivery_plan->person_to_stay_at_facility : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="delivery_method">{{ __('maternity.delivery_method') }}</label><br><br>
|
||||
|
||||
<select name="delivery_method" class="form-select form-control">
|
||||
<option value="null" {{ old('delivery_method') == 'null' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->delivery_method == 'null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('delivery_method') == '1' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->delivery_method == '1' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.vaginal_delivery') }}</option>
|
||||
<option value="2" {{ old('delivery_method') == '2' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->delivery_method == '2' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.vacuum_delivery') }}</option>
|
||||
<option value="3" {{ old('delivery_method') == '3' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->delivery_method == '3' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.forceps_delivery') }}</option>
|
||||
<option value="4" {{ old('delivery_method') == '4' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->delivery_method == '4' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.c_section') }}</option>
|
||||
<option value="5" {{ old('delivery_method') == '5' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->delivery_method == '5' ? 'selected' : '' }}>
|
||||
{{ __('antenatal.vbac') }}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="backup_delivery_method">{{ __('maternity.backup_delivery_method') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="backup_delivery_method"
|
||||
value="{{ isset($existing_maternity_delivery_plan->backup_delivery_method) ? $existing_maternity_delivery_plan->backup_delivery_method : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- after birth disposal --}}
|
||||
<div class="form-group">
|
||||
<label for="after_birth_disposal">{{ __('maternity.after_birth_disposal') }}</label>
|
||||
|
||||
<select name="after_birth_disposal" class="form-select form-control">
|
||||
<option value="null" {{ old('after_birth_disposal') == 'null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('after_birth_disposal') == '1' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->after_birth_disposal == '1' ? 'selected' : '' }}>
|
||||
{{ __('maternity.throw_in_placenta_pit') }}</option>
|
||||
<option value="2" {{ old('after_birth_disposal') == '2' ? 'selected' : '' }}
|
||||
{{ $existing_maternity_delivery_plan?->after_birth_disposal == '2' ? 'selected' : '' }}>
|
||||
{{ __('maternity.take_it_home') }}</option>
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3" style="background-color:white; padding:15px;">
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert" >
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
{{-- <p >Mothers should have the following to deliver</p><br> --}}
|
||||
<ul>
|
||||
<li style="list-style:none; text-center;"> Mothers should have the following to deliver </li> <br>
|
||||
|
||||
</ul>
|
||||
<ul >
|
||||
<li> At least 4 pairs of gloves </li>
|
||||
<li>Gauze </li>
|
||||
<li>2 plastic sheets ( ekiveera ) measuring 2.5 meters </li>
|
||||
<li>Cotton wool (at least 500g)</li>
|
||||
<li>Needle and syringe 5ml</li>
|
||||
<li>2 new razor blades </li>
|
||||
<li>Sanitary pads </li>
|
||||
<li>Baby clothing and sheets </li>
|
||||
<li>Money for emergency transport </li>
|
||||
<li>Sugar and tea leaves </li>
|
||||
<li>Soap </li>
|
||||
<li>Clean clothing (personal) </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<hr>
|
||||
|
||||
{{-- END OF DELIVERY PLAN INCLUDE FILE --}}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
{{-- upate:aternity gravida fields and other related fields --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control compulsory" required
|
||||
value="{{ isset($existing_maternity_inpatient_data) ? $existing_maternity_inpatient_data->gravida : '' }}">
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control compulsory" required
|
||||
value="{{ isset($existing_maternity_inpatient_data->para) ? $existing_maternity_inpatient_data->para : '' }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortion', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortion" class="form-control compulsory" required
|
||||
value="{{ isset($existing_maternity_inpatient_data) ? $existing_maternity_inpatient_data->abortion : '' }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control compulsory" required
|
||||
value="{{ isset($existing_maternity_inpatient_data) ? $existing_maternity_inpatient_data->ectopic_pregnancies : '' }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('postpartum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="postpartum" type="radio" id="postpartum"
|
||||
@checked( $existing_maternity_inpatient_data->postpartum == 1 )
|
||||
{{-- @if (!empty($existing_maternity_inpatient_data->postpartum)) {{ $existing_maternity_inpatient_data->postpartum == '1' ? 'checked' : '' }} @endif --}}
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label" for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
|
||||
<input class="form-check-input" name="postpartum" type="radio" id="postpartum"
|
||||
@checked( $existing_maternity_inpatient_data->postpartum == 0 )
|
||||
{{-- @if (!empty($existing_maternity_inpatient_data->postpartum)) {{ $existing_maternity_inpatient_data->postpartum == '0' ? 'checked' : '' }} @endif --}}
|
||||
value="0">
|
||||
<label class="form-check-label" for="postpartum">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
+448
@@ -0,0 +1,448 @@
|
||||
{{-- maternity: mothers history --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 ">
|
||||
<h4><span class="label label-warning">{{ __('antenatal.mother_history') }}</span></h4>
|
||||
</div>
|
||||
<div class="col-md-12 text-left">
|
||||
<h4 class="text-left">{{ __('antenatal.menstrual_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
<div class="row">
|
||||
|
||||
{{-- cycle length --}}
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="cycle_length">{{ __('antenatal.cycle_length') }}
|
||||
<a href="javascript::void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title=""
|
||||
data-original-title="{{ __('antenatal.cycle_length_info') }} "> <i
|
||||
class="fa fa-info-circle"></i></a> </label>
|
||||
<input type="text" class="form-control col-sm-12" name="cycle_length"
|
||||
value="{{ isset($existing_maternity_mother_history->cycle_length) ? $existing_maternity_mother_history->cycle_length : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- length of menses --}}
|
||||
<div class="col-md-2">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::hidden('mother_obs_history_id', $existing_maternity_mother_history->id ?? '', ['id' =>
|
||||
'mother_obs_history_id']) }}
|
||||
{{-- {{ Form::label('menses_length', __('antenatal.menses_length')) }} --}}
|
||||
<label for="menses_length">{{ __('antenatal.menses_length') }}
|
||||
<a href="javascript::void(0)" data-toggle="tooltip" rel="tooltip" data-placement="top" title=""
|
||||
data-original-title="{{ __('antenatal.menses_length_info') }} "> <i class="fa fa-info-circle"></i></a>
|
||||
</label>
|
||||
{{ Form::number('menses_length', $existing_maternity_mother_history->menses_length ?? '', ['class' =>
|
||||
'form-control', 'step' => '1']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- amount --}}
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="menses_amount">{{ __('antenatal.menses_amount') }}</label>
|
||||
<select name="menses_amount" class="form-select form-control">
|
||||
<option value="null" {{ old('menses_amount')=='null' ? 'selected' : '' }}> - Select
|
||||
-</option>
|
||||
<option value="1" {{ old('menses_amount')=='1' ? 'selected' : '' }} {{
|
||||
isset($existing_maternity_mother_history->menses_amount) == '1' ? 'selected' : '' }}>
|
||||
Heavy</option>
|
||||
<option value="2" {{ old('menses_amount')=='2' ? 'selected' : '' }} {{
|
||||
isset($existing_maternity_mother_history->menses_amount) == '2' ? 'selected' : '' }}>
|
||||
Normal</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="family_planning_method">{{ __('maternity.family_planning_method') }}</label>
|
||||
|
||||
|
||||
|
||||
<select name="family_planning_method" class="form-select form-control">
|
||||
<option value="null" {{ old('family_planning_method')=='null' ? 'selected' : '' }}> -- Select --
|
||||
</option>
|
||||
|
||||
|
||||
@foreach ($family_planning_methods as $key => $family_planning_method)
|
||||
<option value="{{ $family_planning_method->id }}" @selected($key==$family_planning_method->id ) >
|
||||
{{ $family_planning_method->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="date_discontinued">{{ __('maternity.date_discontinued') }}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="date_discontinued" id="date_discontinued" {{--
|
||||
isset($existing_maternity_inpatient_data->lmp) ?
|
||||
Carbon\Carbon::parse($existing_maternity_inpatient_data->lmp )->format('d/m/Y') : '' --}}
|
||||
value="{{ isset($existing_maternity_mother_history->date_discontinued) ?
|
||||
Carbon\Carbon::parse($existing_maternity_mother_history->date_discontinued )->format('d/m/Y') : '' }}"
|
||||
>
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="why_stop_family_planning">{{ __('maternity.why') }}</label>
|
||||
<input type="text" class="form-control col-sm-12" name="why_stop_family_planning"
|
||||
value="{{ isset($existing_maternity_mother_history->why_stop_family_planning) ? $existing_maternity_mother_history->why_stop_family_planning : '' }}">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- MEDICAL HISTORY --}}
|
||||
<div class="row">
|
||||
|
||||
{{-- medical history --}}
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-left">{{ __('antenatal.medical_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::label('medical_presentations', __('antenatal.medical_presentations')) }} <br>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="generalized_l_glands" value="1" {{ in_array('1', explode(',',
|
||||
$existing_maternity_mother_history?->medical_presentations)) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="generalized_l_glands">
|
||||
{{ __('antenatal.generalized_l_glands') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" id="oral_thrush"
|
||||
value="2" {{ in_array('2', explode(',',
|
||||
$existing_maternity_mother_history?->medical_presentations)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="oral_thrush"> {{ __('antenatal.oral_thrush') }} </label>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{-- {{ Form::checkbox('medical_presentations[]', 1, false, ['id' =>
|
||||
'medical_presentations_sti', 'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" id="sti"
|
||||
value="3" {{ in_array('3', explode(',',
|
||||
$existing_maternity_mother_history?->medical_presentations)) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="sti">{{ __('antenatal.sti') }}</label>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<div>
|
||||
{{-- {{ Form::checkbox('any_medications[]', 1, false, ['id' => 'complications_bleeding',
|
||||
'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" {{
|
||||
in_array('4', explode(',', $existing_maternity_mother_history?->medical_presentations)) ?
|
||||
'checked' : '' }}
|
||||
id="arv"
|
||||
value="4"
|
||||
>
|
||||
|
||||
<label class="form-check-label" for="arv">{{ __('antenatal.arv') }}</label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{-- {{ Form::checkbox('medical_presentations[]', 3, false, ['id' =>
|
||||
'medical_presentations_asthma', 'class' => 'form-check-input']) }} --}}
|
||||
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" id="dematitis" {{
|
||||
in_array('5', explode(',', $existing_maternity_mother_history?->medical_presentations)) ?
|
||||
'checked' : '' }}
|
||||
value="5" @if (is_array(old('medical_presentations')) && in_array('5',
|
||||
old('medical_presentations'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="dematitis">{{ __('antenatal.dematitis') }}</label>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
{{-- {{ Form::checkbox('medical_presentations[]', 10, false, ['id' => 'complications_tb',
|
||||
'class' => 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox" id="tb" value="6"
|
||||
{{ in_array('6', explode(',', $existing_maternity_mother_history?->medical_presentations)) ?
|
||||
'checked' : '' }}
|
||||
@if (is_array(old('medical_presentations')) && in_array('6', old('medical_presentations')))
|
||||
checked @endif>
|
||||
|
||||
<label class="form-check-label" for="tb">{{ __('antenatal.tb') }}</label>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="herpes_simplex" value="7" {{ in_array('7', explode(',',
|
||||
$existing_maternity_mother_history?->medical_presentations)) ? 'checked' : '' }}
|
||||
@if (is_array(old('medical_presentations')) && in_array('7', old('medical_presentations')))
|
||||
checked @endif>
|
||||
<label class="form-check-label" for="herpes_simplex"> {{ __('antenatal.herpes_simplex') }}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="herpes_zoster" value="8" {{ in_array('8', explode(',',
|
||||
$existing_maternity_mother_history?->medical_presentations)) ? 'checked' : '' }}
|
||||
@if (is_array(old('medical_presentations')) && in_array('8', old('medical_presentations')))
|
||||
checked @endif>
|
||||
<label class="form-check-label" for="herpes_zoster"> {{ __('antenatal.herpes_zoster') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
{{-- other medical presentations --}}
|
||||
<tr>
|
||||
<td class="form-check">
|
||||
<input class="form-check-input" name="medical_presentations[]" type="checkbox"
|
||||
id="show_other_medical_presentations_input" value="9" {{ in_array('9', explode(',',
|
||||
$existing_maternity_mother_history?->medical_presentations)) ? 'checked' : '' }}
|
||||
>
|
||||
|
||||
<label class="form-check-label" id="9" for="show_other_medical_presentations_input">{{
|
||||
__('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other medical presentations :input --}}
|
||||
<div id="other_medical_presentations_input"
|
||||
style="{{ !empty($existing_maternity_mother_history->other_medical_presentations) ? '' : 'display:none;' }}">
|
||||
<input type="text" name="other_medical_presentations" placeholder="Specify"
|
||||
value="{{ isset($existing_maternity_mother_history->other_medical_presentations) ? $existing_maternity_mother_history->other_medical_presentations : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-borderless">
|
||||
|
||||
|
||||
{{-- aph and fits --}}
|
||||
<tr>
|
||||
{{-- history of aph --}}
|
||||
<td style="width:42%;">
|
||||
{{ Form::label('history_of_aph', __('maternity.history_of_aph')) }}
|
||||
<br>
|
||||
|
||||
{{-- yes --}}
|
||||
<input class="form-check-input" name="history_of_aph" type="radio" id="show_aph_details_div"
|
||||
@checked($existing_maternity_mother_history?->history_of_aph == 1)
|
||||
{{-- @if (!empty($existing_maternity_mother_history?->history_of_aph)) {{
|
||||
$existing_maternity_mother_history?->history_of_aph == '1' ? 'checked' : '' }} @endif --}}
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.yes') }}</label>
|
||||
|
||||
|
||||
{{-- no --}}
|
||||
<input class="form-check-input" name="history_of_aph" type="radio" id="hide_aph_details_div"
|
||||
@checked($existing_maternity_mother_history?->history_of_aph == 0)
|
||||
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="aph_details_div"
|
||||
style="{{ $existing_maternity_mother_history?->history_of_aph == '1' ? '' : 'display:none;' }}">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_aph_details', __('maternity.details')) }}
|
||||
<textarea name="history_aph_details" id="history_aph_details"
|
||||
rows="2">{{ isset($existing_maternity_mother_history->history_aph_details) ? $existing_maternity_mother_history->history_aph_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{{-- history of fits --}}
|
||||
<td style="width:42%; ">
|
||||
{{ Form::label('history_of_fits', __('maternity.history_of_fits')) }}
|
||||
<br>
|
||||
|
||||
{{-- yes --}}
|
||||
<input class="form-check-input" name="history_of_fits" type="radio" id="show_fits_details_div"
|
||||
@checked($existing_maternity_mother_history?->history_of_fits == 1)
|
||||
{{-- @if (!empty($existing_maternity_mother_history?->history_of_fits)) {{
|
||||
$existing_maternity_mother_history?->history_of_fits == '1' ? 'checked' : '' }} @endif --}}
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.yes') }}</label>
|
||||
|
||||
|
||||
{{-- no --}}
|
||||
<input class="form-check-input" name="history_of_fits" type="radio" id="hide_fits_details_div"
|
||||
@checked($existing_maternity_mother_history?->history_of_fits == 0)
|
||||
{{-- @if (!empty($existing_maternity_mother_history?->history_of_fits)) {{
|
||||
$existing_maternity_mother_history?->history_of_fits == '0' ? 'checked' : '' }} @endif --}}
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="fits_details_div"
|
||||
style="{{ $existing_maternity_mother_history?->history_of_fits == '1' ? '' : 'display:none; ' }} margin-left:8px;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_fit_details', __('maternity.fits_details')) }}
|
||||
<textarea name="history_fit_details" id="history_aph_details"
|
||||
rows="2">{{ isset($existing_maternity_mother_history->history_fit_details) ? $existing_maternity_mother_history->history_fit_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{{-- family history --}}
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-left">{{ __('antenatal.family_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::label('sgbv_risk', __('antenatal.sgbv')) }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="sgbv_risk[]" type="checkbox" id="sgbv_risk_present" {{
|
||||
in_array('1', explode(',', $existing_maternity_mother_history?->sgbv_risk)) ? 'checked' : ''
|
||||
}}
|
||||
value="1" @if (is_array(old('1')) && in_array('1', old('sgbv_risk'))) checked @endif>
|
||||
|
||||
<label class="form-check-label" for="sgbv_risk_present">
|
||||
{{ __('antenatal.sgbv_risk') }} </label>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="form-check">
|
||||
{{-- {{ Form::checkbox('any_medications[]', 2, false, ['id' => 'any_medications_others', 'class'
|
||||
=> 'form-check-input']) }} --}}
|
||||
<input class="form-check-input" name="sgbv_risk[]" type="checkbox" {{ in_array('2', explode(',',
|
||||
$existing_maternity_mother_history?->sgbv_risk)) ? 'checked' : '' }}
|
||||
id="show_other_sgbv_risk_input" value="2">
|
||||
|
||||
<label class="form-check-label" id="show_other_sgbv_risk_input"
|
||||
for="show_other_sgbv_risk_input">{{ __('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other medical presentations :input --}}
|
||||
<div id="other_sgbv_risk_input"
|
||||
style="{{ !empty($existing_maternity_mother_history->other_sgbv_risk) ? '' : 'display:none;' }}">
|
||||
<input type="text" name="other_sgbv_risk" placeholder="Specify Violence"
|
||||
value="{{ isset($existing_maternity_mother_history->other_sgbv_risk) ? $existing_maternity_mother_history->other_sgbv_risk : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- others --}}
|
||||
<div class="col">
|
||||
|
||||
<div class="col">
|
||||
{{-- {{ Form::label('any_medications',__('afaf')) }} <br> --}}
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
{{-- health of husband --}}
|
||||
<br><br>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-check">
|
||||
{{-- {{ Form::label('husband_health', __('antenatal.husband_health')) }} --}}
|
||||
<label class="form-check-label" for="husband_health">{{ __('antenatal.husband_health')
|
||||
}}</label>
|
||||
<div class="input-group">
|
||||
{{-- {{ Form::text('husband_health', '', ['class' => 'form-control', 'id' =>
|
||||
'husband_health']) }} --}}
|
||||
<input type="text" name="husband_health" class="form-control"
|
||||
value="{{ isset($existing_maternity_mother_history->husband_health) ? $existing_maternity_mother_history->husband_health : '' }}">
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-group">
|
||||
<label class="form-check-label" for="other_medical_history_comment">{{
|
||||
__('antenatal.other_comments') }}</label>
|
||||
<br>
|
||||
|
||||
{{-- {{ Form::textarea('other_medical_history_comment', '', ['class' => 'form-control',
|
||||
'rows' => '4']) }} --}}
|
||||
<textarea name="other_medical_history_comment" id="other_medical_history_comment"
|
||||
rows="4">{{ isset($existing_maternity_mother_history->other_medical_history_comment) ? $existing_maternity_mother_history->other_medical_history_comment : '' }}</textarea>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{{-- end maternity: medical history --}}
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
{{-- pelivic examination and assessement --}}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4>{{ __('antenatal.pelvic_examination_and_assessement') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('vulva', __('antenatal.vulva')) }}
|
||||
<input type="text" name="vulva" class="form-control"
|
||||
value="{{ $existing_maternity_pelvic_examination_and_assessement->vulva ?? '' }}"
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('vagina', __('antenatal.vagina')) }}
|
||||
<input type="text" name="vagina" class="form-control"
|
||||
value="{{isset( $existing_maternity_pelvic_examination_and_assessement->vagina) ? $existing_maternity_pelvic_examination_and_assessement->vagina : '0' }}"
|
||||
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{-- cervix --}}
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('cervix', __('antenatal.cervix')) }}
|
||||
<select name="cervix" class="form-select form-control">
|
||||
<option value="null" {{ old('cervix') == 'null' ? 'selected' : '' }}> -- Select -- </option>
|
||||
<option value="1" {{ old('cervix') == '1' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->cervix) == '1' ? 'selected' : '' }}
|
||||
>Effaced</option>
|
||||
<option value="2" {{ old('cervix') == '2' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->cervix) == '2' ? 'selected' : '' }}
|
||||
>Not Effaced</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('dilatation', __('antenatal.dilatation')) }}
|
||||
<input type="text" name="dilatation" class="form-control"
|
||||
value="{{isset( $existing_maternity_pelvic_examination_and_assessement->dilatation) ? $existing_maternity_pelvic_examination_and_assessement->dilatation : '' }}"
|
||||
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('uterine_adnexa', __('antenatal.uterine_adnexa')) }}
|
||||
<input type="text" name="uterine_adnexa" class="form-control"
|
||||
value="{{isset( $existing_maternity_pelvic_examination_and_assessement->uterine_adnexa) ? $existing_maternity_pelvic_examination_and_assessement->uterine_adnexa : '' }}"
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('moniliasis', __('antenatal.moniliasis')) }}
|
||||
<input type="text" name="moniliasis" class="form-control"
|
||||
value="{{isset( $existing_maternity_pelvic_examination_and_assessement->moniliasis) ? $existing_maternity_pelvic_examination_and_assessement->moniliasis : '' }}"
|
||||
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{-- row-2 --}}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('diagonal_conjugate', __('antenatal.diagonal_conjugate')) }}
|
||||
<span style="color:rgb(64, 124, 220);"> ( > 11.5/<11.5cm) </span>
|
||||
<input type="number" name="diagonal_conjugate" class="form-control" step="any"
|
||||
value="{{isset( $existing_maternity_pelvic_examination_and_assessement->diagonal_conjugate) ? $existing_maternity_pelvic_examination_and_assessement->diagonal_conjugate : '' }}"
|
||||
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('sacrum', __('antenatal.sacrum')) }} <br>
|
||||
<select name="sacrum" class="form-select form-control">
|
||||
<option value="null" {{ old('sacrum') == 'null' ? 'selected' : '' }}> -- Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('sacrum') == '1' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->sacrum) == '1' ? 'selected' : '' }}
|
||||
>Curve Deep</option>
|
||||
<option value="2" {{ old('sacrum') == '2' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->sacrum) == '2' ? 'selected' : '' }}
|
||||
>Flat</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('ischial_spinces', __('antenatal.ischial_spinces')) }}
|
||||
<select name="ischial_spinces" class="form-select form-control">
|
||||
<option value="null" {{ old('ischial_spinces') == 'null' ? 'selected' : '' }}> -- Select -- </option>
|
||||
<option value="1" {{ old('ischial_spinces') == '1' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->ischial_spinces) == '1' ? 'selected' : '' }}
|
||||
>Not Prominent</option>
|
||||
<option value="2" {{ old('ischial_spinces') == '2' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->ischial_spinces) == '2' ? 'selected' : '' }}
|
||||
>Prominent</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{-- sub pubic angle --}}
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('sub_public_angle', __('antenatal.sub_public_angle')) }}
|
||||
<select name="sub_public_angle" class="form-select form-control">
|
||||
<option value="null" {{ old('sub_public_angle') == 'null' ? 'selected' : '' }}> -- Select --
|
||||
</option>
|
||||
<option value="1" {{ old('sub_public_angle') == '1' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->sub_public_angle) == '1' ? 'selected' : '' }}
|
||||
>Obtuse</option>
|
||||
<option value="2" {{ old('sub_public_angle') == '2' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->sub_public_angle) == '2' ? 'selected' : '' }}
|
||||
>Acute</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ischial_tuberosities --}}
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('ischial_tuberosities', __('antenatal.ischial_tuberosities')) }}
|
||||
<select name="ischial_tuberosities" class="form-select form-control">
|
||||
<option value="null" {{ old('ischial_tuberosities') == 'null' ? 'selected' : '' }}> -- Select --
|
||||
</option>
|
||||
<option value="1" {{ old('ischial_tuberosities') == '1' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->ischial_tuberosities) == '1' ? 'selected' : '' }}
|
||||
>4 knuckles</option>
|
||||
<option value="2" {{ old('ischial_tuberosities') == '2' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->ischial_tuberosities) == '2' ? 'selected' : '' }}
|
||||
|
||||
>Less</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('pelvic_adequate', __('antenatal.pelvic_adequate')) }}
|
||||
<select name="pelvic_adequate" class="form-select form-control">
|
||||
<option value="null" {{ old('pelvic_adequate') == 'null' ? 'selected' : '' }}> -- Select -- </option>
|
||||
<option value="1" {{ old('pelvic_adequate') == '1' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->pelvic_adequate) == '1' ? 'selected' : '' }}
|
||||
|
||||
>Borderline</option>
|
||||
<option value="2" {{ old('pelvic_adequate') == '2' ? 'selected' : '' }}
|
||||
{{ isset( $existing_maternity_pelvic_examination_and_assessement->pelvic_adequate) == '2' ? 'selected' : '' }}
|
||||
|
||||
>Contracted</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
+248
@@ -0,0 +1,248 @@
|
||||
{{-- SURGICAL HISTORY --}}
|
||||
|
||||
@if(count($patient_surgeries) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-left">
|
||||
<h4 class="text-left">{{ __('antenatal.surgical_history') }}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
|
||||
{{-- surgical history table --}}
|
||||
|
||||
<table class="table table-bordered color-bordered-table success-bordered-table" id="table_1">
|
||||
<thead>
|
||||
<th>{{ __('antenatal.id') }}</th>
|
||||
<th>{{ __('antenatal.previous_surgical_procedure') }}</th>
|
||||
<th>{{ __('antenatal.date') }}</th>
|
||||
<th>{{ __('antenatal.performed_by') }}</th>
|
||||
<th>{{ __('antenatal.diagnosis') }}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{-- @foreach ($obstetric_history_details as $obstetric_history) --}}
|
||||
|
||||
|
||||
|
||||
|
||||
@forelse($patient_surgeries as $key => $patient_surgery)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $key + 1 }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
{{ $patient_surgery->procedure_name }}
|
||||
</td>
|
||||
<td>
|
||||
@if ($patient_surgery->date_surgery_completed)
|
||||
{{ streamline_date($patient_surgery->date_surgery_completed) }}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if (!empty($patient_surgery->first_name))
|
||||
{{ $patient_surgery->first_name }}
|
||||
@else
|
||||
<span>N/A</span>
|
||||
@endif
|
||||
|
||||
@if (!empty($patient_surgery->last_name))
|
||||
{{ $patient_surgery->last_name }}
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
|
||||
$dianoses = [];
|
||||
$dianoses[] = $patient_surgery->primary_diagnosis;
|
||||
// $other_diagnoses = unserialize($patient_surgery->primary_diagnosis);
|
||||
// foreach ($other_diagnoses as $key => $value) {
|
||||
// if (!empty($value)) {
|
||||
// $dianoses[] = $value;
|
||||
// }
|
||||
// }
|
||||
@endphp
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
@php
|
||||
$checklist_array = @unserialize($patient_surgery->other_diagnoses);
|
||||
echo '<li>' . $diagnoses_patient[$patient_surgery->primary_diagnosis] . '</li>';
|
||||
|
||||
if (is_array($checklist_array)) {
|
||||
for ($i = 0; $i < count($checklist_array); $i++) {
|
||||
if ($checklist_array[$i] != '') {
|
||||
echo '<li>' . $diagnoses_patient[$checklist_array[$i]] . '</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
|
||||
|
||||
{{-- @foreach ($dianoses as $key => $value)
|
||||
<li> {{ $diagnoses_patient[$value] }} </li>
|
||||
@endforeach --}}
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="text-center">
|
||||
<code>No surgery records available </code>
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- @endforeach --}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{-- end surgical history table --}}
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
@php
|
||||
|
||||
|
||||
$uterine_surgeries = !empty($existing_maternity_mother_history->uterine_surgeries)
|
||||
? json_decode($existing_maternity_mother_history->uterine_surgeries, true)
|
||||
: [];
|
||||
$other_surgeries = !empty($existing_maternity_mother_history->other_surgeries)
|
||||
? json_decode($existing_maternity_mother_history->other_surgeries, true)
|
||||
: [];
|
||||
|
||||
@endphp
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table color-table inverse-table table-responsive table-borderless"
|
||||
id="uterus_operations_details_table">
|
||||
<thead class="thead-light">
|
||||
<th>{{ __('antenatal.uterus_operations') }}</th>
|
||||
<th>{{ __('antenatal.date') }}</th>
|
||||
<th>{{ __('antenatal.facility_name') }}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody id="uterus_operations_data">
|
||||
@if (!empty($uterine_surgeries))
|
||||
@foreach ($uterine_surgeries as $key => $uterine_operation)
|
||||
<tr>
|
||||
<td>
|
||||
{{-- {{ Form::select('uterus_operations_name[]', $uterus_operations, $uterine_operation['name'] ?? '', ['class' => 'form-control uterus_operations', 'id' => 'uterus_operations_name_1']) }} --}}
|
||||
{{ Form::text('uterus_operations_name[]', $uterine_operation['name'], ['class' => 'form-control uterus_operations', 'id' => 'uterus_operations_name_1']) }}
|
||||
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
<div class="input-group">
|
||||
{{ Form::text('uterus_operations_date[]', $uterine_operation['date'], ['class' => 'form-control fractures', 'id' => 'other_operations_date_1', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
|
||||
{{-- {{ Form::text('uterus_operations_date[]','',['class' => 'form-control', 'id'=>'uterus_operation_date_picker', 'placeholder'=>'When?']) }}<span class="input-group-addon"><i class="icon-calender"></i></span> --}}
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('uterus_operations_facility_name[]', $uterine_operation['facility_name'], ['class' => 'form-control null_compulsory', 'id' => 'uterus_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td><button onclick="deleteRow(this)" class="btn btn-sm btn-rounded btn-danger"
|
||||
title="Delete this Uterus Operation" style="color: white;" type="button"><i
|
||||
class="fa fa-trash"></i></button></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
{{-- {{ Form::select('uterus_operations_name[]', $uterus_operations, '', ['class' => 'form-control uterus_operations', 'id' => 'uterus_operations_name_1']) }} --}}
|
||||
{{ Form::text('uterus_operations_name[]', '', ['class' => 'form-control uterus_operations', 'id' => 'uterus_operations_name_1']) }}
|
||||
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
<div class="input-group">
|
||||
{{ Form::text('uterus_operations_date[]', '', ['class' => 'form-control fractures ', 'id' => 'other_operations_date_1', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('uterus_operations_facility_name[]', '', ['class' => 'form-control null_compulsory', 'id' => 'uterus_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
<a class="add_uterus_operations_button label label-inverse" style="color: #fff;" id="add_uterus_operations_1"
|
||||
role="button"
|
||||
onclick="add_uterus_operations_row('uterus_operations_details_table','uterus_operations_data')">{{ __('antenatal.add_uterus_operations_row') }}</a>
|
||||
</div>
|
||||
<div class="col">
|
||||
<table class="table color-table inverse-table table-responsive table-borderless"
|
||||
id="other_operations_details_table">
|
||||
<thead class="thead-light">
|
||||
<th> {{ __('antenatal.operations') }}</th>
|
||||
<th>{{ __('antenatal.date') }}</th>
|
||||
<th>{{ __('antenatal.facility_name') }}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody id="other_operations_data">
|
||||
@if (!empty($other_surgeries))
|
||||
@foreach ($other_surgeries as $key => $other_surgery)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name[]', $other_surgery['name'], ['class' => 'form-control null_compulsory', 'id' => 'other_operations_name_1']) }}
|
||||
</td>
|
||||
|
||||
<td style="min-width: 90px;">
|
||||
<div class="input-group">
|
||||
{{ Form::text('other_operations_name_date[]', $other_surgery['date'], ['class' => 'form-control fractures', 'id' => 'other_operations_date_1', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name_facility_name[]', $other_surgery['facility_name'], ['class' => 'form-control null_compulsory', 'id' => 'other_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td><button onclick="deleteRow(this)" class="btn btn-sm btn-rounded btn-danger"
|
||||
title="Delete this operation" style="color: white;" type="button"><i
|
||||
class="fa fa-trash"></i></button></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name[]', '', ['class' => 'form-control null_compulsory', 'id' => 'other_operations_name_1']) }}
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
<div class="input-group">
|
||||
{{ Form::text('other_operations_name_date[]', '', ['class' => 'form-control fractures', 'id' => 'other_operations_date_1', 'placeholder' => 'When?']) }}<span
|
||||
class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('other_operations_name_facility_name[]', '', ['class' => 'form-control null_compulsory', 'id' => 'other_operations_facility_name_1']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
<a class="add_other_operations_name_button label label-inverse" style="color: #fff;"
|
||||
id="add_other_operations_name_1" role="button"
|
||||
onclick="add_uterus_operations_row('other_operations_details_table','other_operations_data')">{{ __('antenatal.add_other_operations_row') }}</a>
|
||||
</div>
|
||||
</div> <br>
|
||||
+662
@@ -0,0 +1,662 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12 ">
|
||||
<h4><span class="label label-warning">{{ __('maternity.this_pregnancy') }}</span></h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
{{-- row --}}
|
||||
<div class="row">
|
||||
{{-- col-1 --}}
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
{{ Form::label('lmp', __('maternity.lmp')) }}
|
||||
<div class="input-group">
|
||||
|
||||
|
||||
{{-- {{ Form::text('lmp', isset($existing_maternity_inpatient_data->lmp) ? Carbon\Carbon::parse($existing_maternity_inpatient_data->lmp )->format('d/m/Y') : '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'datepicker-autoclose5']) }} --}}
|
||||
{{ Form::text('lmp', isset($existing_maternity_inpatient_data->lmp) ? Carbon\Carbon::parse($existing_maternity_inpatient_data->lmp )->format('d/m/Y') : '', ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'lmp']) }}
|
||||
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
{{-- col --}}
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
{{ Form::label('accuracy', __('maternity.accuracy')) }}
|
||||
{{ Form::select('accuracy', $accuracies, $existing_maternity_inpatient_data->accuracy ?? '', ['class' => 'form-control col-sm-12 compulsory', 'required']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
{{-- {{ Form::label('weeks_of_amenorrhoea', __('maternity.number_of_weeks_pregnant')) }} --}}
|
||||
{{--
|
||||
<input type="text" name="weeks_of_amenorrhoea" id="weeks_pregnant"
|
||||
value="{{ isset($existing_maternity_inpatient_data->weeks_of_amenorrhoea) ? $existing_maternity_inpatient_data->weeks_of_amenorrhoea : '' }}"
|
||||
class="form-control col-sm-12">
|
||||
--}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('weeks_of_amenorrhoea', __('antenatal.woa_weeks')) }}
|
||||
<div class="input-group form-control border-0" id='weeks_of_amenorrhoea_text'>{!! $existing_maternity_inpatient_data->weeks_of_amenorrhoea ?? '' !!}</div>
|
||||
|
||||
{{ Form::hidden('weeks_of_amenorrhoea', $existing_maternity_inpatient_data->weeks_of_amenorrhoea ?? '', ['id' => 'weeks_of_amenorrhoea']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-3 col-md-3">
|
||||
|
||||
{{ Form::label('edd', __('maternity.edd')) }}
|
||||
<div class="input-group">
|
||||
{{-- --}}
|
||||
{{ Form::text('edd', isset($existing_maternity_inpatient_data->edd) ? Carbon\Carbon::parse($existing_maternity_inpatient_data->edd )->format('d/m/Y') : '', [
|
||||
'class' => 'form-control compulsory',
|
||||
'required',
|
||||
'readonly',
|
||||
'id' => 'edd',
|
||||
]) }}
|
||||
{{-- {{ Form::text('edd', empty($existing_maternity_inpatient_data->edd) ? '' : Carbon\Carbon::parse($existing_maternity_inpatient_data->edd)->format('d/m/Y'), ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'edd']) }} --}}
|
||||
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{{-- end row --}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3 col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('refferal', __('maternity.us_scan_edd')) }}
|
||||
<div class="input-group">
|
||||
{{-- {{ Form::text('scan_edd', Carbon\Carbon::parse($existing_maternity_inpatient_data->scan_edd)->format('d/m/Y'), ['class' => 'form-control compulsory', 'required', 'readonly', 'id' => 'datepicker-autoclose7']) }}
|
||||
--}}
|
||||
|
||||
<input class="form-control" required="" readonly="" name="scan_edd" type="text"
|
||||
value="{{ $existing_maternity_inpatient_data?->scan_edd ? Carbon\Carbon::parse($existing_maternity_inpatient_data->scan_edd)->format('d/m/Y') : "" }}" id="datepicker-autoclose7">
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('gestation_from_scan_view', __('maternity.current_gestation_from_scan')) }}
|
||||
<input type="number" class="form-control" name="gestation_from_scan" id="gestation_from_scan" value="{{ $existing_maternity_inpatient_data->gestation_from_scan }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('refferal', __('maternity.referral_in_from')) }}
|
||||
{{ Form::select('refferal', $referrals, $existing_maternity_inpatient_data->referral_from ?? '', ['class' => 'form-control col-sm-12 compulsory', 'required', 'id' => 'referral']) }}
|
||||
</div>
|
||||
<a data-toggle="modal" data-target="#referralsmodal">
|
||||
<font size="1">{{ __('maternity.add_new_referral') }}</font>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 col-sm-12">
|
||||
|
||||
{{ Form::label('pregnancy_complications', __('antenatal.complications')) }} <br>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
{{ in_array('1', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}
|
||||
id="weight_loss" value="1" @if (is_array(old('pregnancy_complications')) && in_array('1', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="weight_loss"> {{ __('maternity.weight_loss') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
{{ in_array('2', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}
|
||||
id="fever_one_month" value="2"
|
||||
@if (is_array(old('pregnancy_complications')) && in_array('2', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="fever_one_month">
|
||||
{{ __('maternity.fever_one_month') }}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
id="diarrhoea_one_month" value="3"
|
||||
{{ in_array('3', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}
|
||||
@if (is_array(old('pregnancy_complications')) && in_array('3', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="diarrhoea_one_month">
|
||||
{{ __('maternity.diarrhoea_one_month') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox" id="pruritus"
|
||||
{{ in_array('4', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}
|
||||
value="4" @if (is_array(old('pregnancy_complications')) && in_array('4', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="pruritus"> {{ __('maternity.pruritus') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
id="vaginal_bleeding" value="5"
|
||||
{{ in_array('5', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}
|
||||
@if (is_array(old('pregnancy_complications')) && in_array('5', old('pregnancy_complications'))) checked @endif>
|
||||
<label class="form-check-label" for="vaginal_bleeding">
|
||||
{{ __('maternity.vaginal_bleeding') }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="form-check">
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox" id="draining"
|
||||
value="6"
|
||||
{{ in_array('6', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="draining"> {{ __('maternity.draining') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="pregnancy_complications[]" type="checkbox"
|
||||
{{ in_array('7', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? 'checked' : '' }}
|
||||
id="show_other_pregnancy_complications_input"
|
||||
value="7">
|
||||
|
||||
<label class="form-check-label" id="other_pregnancy_complications"
|
||||
for="show_other_pregnancy_complications_input">{{ __('antenatal.others') }}</label>
|
||||
<br><br>
|
||||
|
||||
{{-- add other pregnancy complications :input --}}
|
||||
<div id="other_pregnancy_complications_input"
|
||||
style="{{ in_array('7', explode(',', $existing_maternity_inpatient_data->pregnancy_complications)) ? '' : 'display:none;' }}">
|
||||
<input type="text" name="other_pregnancy_complications" placeholder="Specify"
|
||||
value="{{ $existing_maternity_inpatient_data->other_pregnancy_complications }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('iufd', __('maternity.iufd')) }} <br>
|
||||
|
||||
{{-- {{ Form::radio('iufd', 1, false, ['required', 'id' => 'show_iufd_alert_div']) }}
|
||||
{{ __('maternity.yes') }}
|
||||
{{ Form::radio('iufd', 0, false, ['required', 'id' => 'hide_iufd_alert_div']) }}
|
||||
{{ __('maternity.no') }} --}}
|
||||
|
||||
{{-- yes --}}
|
||||
<input class="form-check-input" name="iufd" type="radio" id="show_iufd_alert_div"
|
||||
{{-- @if (!empty($existing_maternity_inpatient_data->iufd)) {{ $existing_maternity_inpatient_data->iufd == '1' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_maternity_inpatient_data->iufd == 1)
|
||||
value="1">
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.yes') }}</label>
|
||||
|
||||
|
||||
{{-- no --}}
|
||||
<input class="form-check-input" name="iufd" type="radio" id="hide_iufd_alert_div"
|
||||
value="0"
|
||||
@checked($existing_maternity_inpatient_data->iufd == 0)
|
||||
{{-- @if (!empty($existing_maternity_inpatient_data->iufd)) {{ $existing_maternity_inpatient_data->iufd == '0' ? 'checked' : '' }} @endif --}}
|
||||
>
|
||||
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="iufd_alert_div" style="display: none;">
|
||||
<div class="alert alert-info "> {{ __('maternity.inform_medical_team_warning') }} </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('born_before_arrival', __('maternity.born_before_arrival')) }} <br>
|
||||
{{-- yes --}}
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
@checked($existing_maternity_inpatient_data->born_before_arrival == 1)
|
||||
{{-- @if (!empty($existing_maternity_inpatient_data->born_before_arrival)) {{ $existing_maternity_inpatient_data->born_before_arrival == '1' ? 'checked' : '' }} @endif --}}
|
||||
value="1">
|
||||
<label class="form-check-label" for="born_before_arrival">{{ __('maternity.yes') }}</label>
|
||||
|
||||
|
||||
{{-- no --}}
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
@checked($existing_maternity_inpatient_data->born_before_arrival == 0)
|
||||
{{-- @if (!empty($existing_maternity_inpatient_data->born_before_arrival)) {{ $existing_maternity_inpatient_data->born_before_arrival == '0' ? 'checked' : '' }} @endif --}}
|
||||
value="0">
|
||||
<label class="form-check-label" for="born_before_arrival">{{ __('maternity.no') }}</label>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('progress', __('maternity.progress')) }}
|
||||
{{ Form::select('progress', $maternity_progress, $existing_maternity_inpatient_data->progress ?? '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- recomendation --}}
|
||||
<div class="row" style="width:100%; ">
|
||||
{{-- recomendation --}}
|
||||
<div class="col-md-12 form-group">
|
||||
{{ Form::label('delivery_recomendation', __('maternity.recomendation_of_delivery')) }} <br>
|
||||
{{ Form::textarea('delivery_recomendation', $existing_maternity_inpatient_data->delivery_recomendation ?? '', ['class' => 'form-control', 'rows' => '4']) }}
|
||||
{{-- <textarea name="delivery_recomendation" id="delivery_recomendation" rows="4" cols="100%">{{ isset($existing_maternity_inpatient_data->delivery_recomendation) ? $existing_maternity_inpatient_data->delivery_recomendation : '' }}</textarea> --}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
{{-- physical examination --}}
|
||||
<div class="col-md-3">
|
||||
<label class="control-label strong">{{ __('maternity.physical_examination') }}</label>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_breasts_physical_examination_input"
|
||||
{{ in_array('1', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? 'checked' : '' }}
|
||||
value="1" @if (is_array(old('physical_examination')) && in_array('1', old('physical_examination'))) checked @endif>
|
||||
<label class="form-check-label" for="show_breasts_physical_examination_input"> {{ __('antenatal.breasts') }} </label>
|
||||
|
||||
<div id="breasts_physical_examination_input"
|
||||
style="{{ in_array('1', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text" name="breasts_physical_examination_details"
|
||||
value="{{ isset($existing_maternity_inpatient_data->breasts_physical_examination_details) ? $existing_maternity_inpatient_data->breasts_physical_examination_details : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_legs_physical_examination_input"
|
||||
{{ in_array('2', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? 'checked' : '' }}
|
||||
value="2" @if (is_array(old('physical_examination')) && in_array('2', old('physical_examination'))) checked @endif>
|
||||
<label class="form-check-label" for="show_legs_physical_examination_input"> {{ __('antenatal.legs') }} </label>
|
||||
|
||||
{{-- legs input --}}
|
||||
<div id="legs_physical_examination_input"
|
||||
style="{{ in_array('2', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text" name="legs_physical_examination_details"
|
||||
placeholder="Add description"
|
||||
value="{{ isset($existing_maternity_inpatient_data->legs_physical_examination_details) ? $existing_maternity_inpatient_data->legs_physical_examination_details : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_heart_physical_examination_input" value="3"
|
||||
{{ in_array('3', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="show_heart_physical_examination_input"> {{ __('antenatal.heart') }} </label>
|
||||
|
||||
{{-- add heart deformity :input --}}
|
||||
<div id="heart_physical_examination_input"
|
||||
style="{{ in_array('3', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text" name="heart_physical_examination_details"
|
||||
value="{{ isset($existing_maternity_inpatient_data->heart_physical_examination_details) ? $existing_maternity_inpatient_data->heart_physical_examination_details : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_lungs_physical_examination_input"
|
||||
{{ in_array('4', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? 'checked' : '' }}
|
||||
value="4" @if (is_array(old('physical_examination')) && in_array('4', old('physical_examination'))) checked @endif>
|
||||
<label class="form-check-label" for="show_lungs_physical_examination_input"> {{ __('antenatal.lungs') }} </label>
|
||||
|
||||
{{-- add lungs details :input --}}
|
||||
<div id="lungs_physical_examination_input"
|
||||
style="{{ in_array('4', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text" name="lungs_physical_examination_details"
|
||||
placeholder="Add description"
|
||||
value="{{ isset($existing_maternity_inpatient_data->lungs_physical_examination_details) ? $existing_maternity_inpatient_data->lungs_physical_examination_details : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
id="show_teeth_physical_examination_input"
|
||||
{{ in_array('5', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? 'checked' : '' }}
|
||||
value="5" @if (is_array(old('physical_examination')) && in_array('5', old('physical_examination'))) checked @endif>
|
||||
<label class="form-check-label" for="show_teeth_physical_examination_input"> {{ __('antenatal.teeth') }} </label>
|
||||
|
||||
{{-- teeth input --}}
|
||||
<div id="teeth_physical_examination_input"
|
||||
style="{{ in_array('5', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text" name="teeth_physical_examination_details"
|
||||
placeholder="Add description"
|
||||
value="{{ isset($existing_maternity_inpatient_data->teeth_physical_examination_details) ? $existing_maternity_inpatient_data->teeth_physical_examination_details : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="physical_examination[]" type="checkbox"
|
||||
{{ in_array('6', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? 'checked' : '' }}
|
||||
id="show_other_physical_examination_input" value="6">
|
||||
<label class="form-check-label" for="show_other_physical_examination_input"> {{ __('antenatal.others') }}
|
||||
</label>
|
||||
|
||||
{{-- add other physical_examination :input --}}
|
||||
<div id="other_physical_examination_input"
|
||||
style="{{ in_array('6', explode(',', $existing_maternity_inpatient_data->physical_examination)) ? '' : 'display:none;' }}">
|
||||
<input type="text" style="margin-top:10px;" name="other_physical_examinations"
|
||||
placeholder="Specify others"
|
||||
value="{{ isset($existing_maternity_inpatient_data->other_physical_examinations) ? $existing_maternity_inpatient_data->other_physical_examinations : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<label class="control-label strong">{{ __('maternity.mother_current_obstetric_risk') }}</label>
|
||||
<div class="controls">
|
||||
<table class="table table-condensed">
|
||||
{{-- row 1 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('1', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="history_aph_pregnancy" value="1"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('1', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_aph_pregnancy">
|
||||
{{ __('maternity.history_aph_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('2', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="epilepsy" value="2" @if (is_array(old('obstetric_risk_factors')) && in_array('2', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="epilepsy">
|
||||
{{ __('maternity.epilepsy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('3', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="severe_pre_eclampsia" value="3"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('3', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="severe_pre_eclampsia">
|
||||
{{ __('maternity.severe_pre_eclampsia') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 2 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('4', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="history_convulsion_pregnancy" value="4"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('4', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_convulsion_pregnancy">
|
||||
{{ __('maternity.history_convulsion_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="polyhydramnios" value="5"
|
||||
{{ in_array('5', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('5', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="polyhydramnios">
|
||||
{{ __('maternity.polyhydramnios') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="premature_rupture_of_membranes" value="6"
|
||||
{{ in_array('6', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) &&
|
||||
in_array('6', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="premature_rupture_of_membranes">
|
||||
{{ __('maternity.premature_rupture_of_membranes') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 3 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="diabetes_mellitus" value="7"
|
||||
{{ in_array('7', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('7', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="diabetes_mellitus">
|
||||
{{ __('maternity.diabetes_mellitus') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="multiple_pregnancy" value="8"
|
||||
{{ in_array('8', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('8', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="multiple_pregnancy">
|
||||
{{ __('maternity.multiple_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="pph" value="9"
|
||||
{{ in_array('9', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('9', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="pph">
|
||||
{{ __('maternity.pph') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 4 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="cardiac_disease" value="10"
|
||||
{{ in_array('10', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="cardiac_disease">
|
||||
{{ __('maternity.cardiac_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="malpresentation" value="11"
|
||||
{{ in_array('11', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('11', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="malpresentation">
|
||||
{{ __('maternity.malpresentation') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('12', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="asthma" value="12">
|
||||
<label class="form-check-label" for="asthma">
|
||||
{{ __('maternity.asthma') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 5 --}}
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="poor_obstetric_history" value="13"
|
||||
{{ in_array('13', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="poor_obstetric_history">
|
||||
{{ __('maternity.poor_obstetric_history') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="pre_term_labour" value="14"
|
||||
{{ in_array('14', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="pre_term_labour">
|
||||
{{ __('maternity.pre_term_labour') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="sickle_cell_disease" value="15"
|
||||
{{ in_array('15', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="sickle_cell_disease">
|
||||
{{ __('maternity.sickle_cell_disease') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 6 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="previous_csections" value="16"
|
||||
{{ in_array('16', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="previous_csections">
|
||||
{{ __('maternity.previous_csections') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
value="17" id="polio"
|
||||
{{ in_array('17', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="polio">
|
||||
{{ __('maternity.polio') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('18', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="group_b_streptococcus_colonization" value="18">
|
||||
<label class="form-check-label" for="group_b_streptococcus_colonization">
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 7 --}}
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="woman_advanced_age" value="19"
|
||||
{{ in_array('19', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('19', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="woman_advanced_age">
|
||||
{{ __('maternity.woman_advanced_age') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="mental_illness" value="20"
|
||||
{{ in_array('20', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('20', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="mental_illness">
|
||||
{{ __('maternity.mental_illness') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="adolescent_pregnancy" value="21"
|
||||
{{ in_array('21', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('21', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="adolescent_pregnancy">
|
||||
{{ __('maternity.adolescent_pregnancy') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- row 8 --}}
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="hypertension" value="22"
|
||||
{{ in_array('22', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="hypertension"> {{ __('maternity.hypertension') }}
|
||||
</label>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
id="kidney_disease" value="23"
|
||||
{{ in_array('23', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('23', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="kidney_disease">
|
||||
{{ __('maternity.kidney_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]" type="checkbox"
|
||||
{{ in_array('24', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? 'checked' : '' }}
|
||||
id="show_other_obstetric_risk_factors_input" value="24">
|
||||
|
||||
|
||||
<label class="form-check-label" for="show_other_obstetric_risk_factors_input">
|
||||
{{ __('maternity.other') }} </label>
|
||||
|
||||
{{-- add other obstetric risk factor:input --}}
|
||||
<div id="other_obstetric_risk_factors_input"
|
||||
style="{{ in_array('24', explode(',', $existing_maternity_inpatient_data->obstetric_risk_factors)) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text" name="other_obstetric_risk_factors"
|
||||
placeholder="Add risk factor"
|
||||
value="{{ isset($existing_maternity_inpatient_data->other_obstetric_risk_factors) ? $existing_maternity_inpatient_data->other_obstetric_risk_factors : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
+1807
File diff suppressed because it is too large
Load Diff
Executable
+730
@@ -0,0 +1,730 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr {
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.table_no_padding td {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* checkboxes */
|
||||
input[type="checkbox"] {
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
margin-right: 0.65rem;
|
||||
}
|
||||
|
||||
.form-check-label {
|
||||
padding-left: 2.25rem !important;
|
||||
vertical-align: -webkit-baseline-middle;
|
||||
}
|
||||
|
||||
/* hide input */
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('inpatient.inpatient_sheet') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('inpatient.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('inpatient.patients') }}</a></li>
|
||||
<li class="active">{{ __('inpatient.inpatient_sheet') }}</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">
|
||||
<div class="white-box">
|
||||
<b>MATERNITY ADMISSION</b><br><br>
|
||||
{{ Form::open(['route' => 'maternity.store']) }}
|
||||
|
||||
{{-- primary diagnosis and other diagnosis --}}
|
||||
@include('maternity::maternity.includes.diagnosis')
|
||||
|
||||
{{-- gravida_para_abortion_fields --}}
|
||||
@include('maternity::maternity.includes.gravida_para_abortions')
|
||||
|
||||
|
||||
{{-- PAST OBSTETRIC HISTORY --}}
|
||||
@include('maternity::maternity.includes.past_obstetric_history')
|
||||
|
||||
{{-- START MOTHERS HISTORY --}}
|
||||
@include('maternity::maternity.includes.mothers_history')
|
||||
|
||||
{{-- medical history --}}
|
||||
@include('maternity::maternity.includes.medical_history')
|
||||
|
||||
{{-- gynacology history --}}
|
||||
@include('maternity::maternity.includes.gynacology_history')
|
||||
|
||||
{{-- blodd group --}}
|
||||
@include('maternity::maternity.includes.blood_transfusion')
|
||||
|
||||
{{-- Pelvic Examination & Assessment --}}
|
||||
@include('maternity::maternity.includes.pelvic_examination_and_assessment')
|
||||
|
||||
|
||||
{{-- this pregnancy --}}
|
||||
@include('maternity::maternity.includes.this_pregnancy')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- submit button --}}
|
||||
<div class="row">
|
||||
<div class="col-sm-12" style="padding: 0 10px;">
|
||||
{{ Form::button(__('maternity.submit_form'), ['type' => 'submit', 'value' => 'submit_maternity_admission', 'name' => 'submit-btn', 'class' => 'btn btn-success', 'style' => 'float:right;']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- referral modal -->
|
||||
<div class="modal fade" id="referralsmodal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" 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>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('maternity.add_new_referral') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{ Form::text('referral_name', '', ['class' => 'form-control', 'id' => 'referral_name', 'placeholder' => __('maternity.referral_name')]) }}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default"
|
||||
data-dismiss="modal">{{ __('maternity.cancel') }}</button>
|
||||
<a class="btn btn-primary" onclick="submitReferral()">{{ __('maternity.add_new_referral') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
{{-- scrips --}}
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<!-- pull in select2 for auto searchanble drop downs -->
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
{{-- add and delete child row --}}
|
||||
<script src="{{ asset('js/maternity_admission/add_delete_child_row.js') }}"></script>
|
||||
|
||||
{{-- family planningmethods searchable select2 --}}
|
||||
<script src="{{ asset('js/maternity_admission/family_planning_methods.js') }}"></script>
|
||||
|
||||
{{-- additional input containers on checkbox select --}}
|
||||
<script>
|
||||
// add other obstetric risk factor on checkbox click
|
||||
document.getElementById('other_obstetric_risk_factor').addEventListener('change', function() {
|
||||
var otherObstetricInputContainer = document.getElementById('other_obstetric_risk_factorInput');
|
||||
otherObstetricInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// other medical presentations: medical history input
|
||||
document.getElementById('any_medications_others').addEventListener('change', function() {
|
||||
var otherMedicalComplicationsInputContainer = document.getElementById(
|
||||
'other_complications_presentations_input');
|
||||
otherMedicalComplicationsInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// other fractures : medical history input
|
||||
document.getElementById('other_fractures').addEventListener('change', function() {
|
||||
var otherFractureInputContainer = document.getElementById('other_fractures_input');
|
||||
otherFractureInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// other other_sexual_and_gender_based_violence_input : medical history input
|
||||
document.getElementById('other_sexual_and_gender_based_violence').addEventListener('change', function() {
|
||||
var otherSexualAndGenderBasedViolenceInputContainer = document.getElementById(
|
||||
'other_sexual_and_gender_based_violence_input');
|
||||
otherSexualAndGenderBasedViolenceInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// heart skeletal deformity input
|
||||
document.getElementById('heart').addEventListener('change', function() {
|
||||
var heartInputContainer = document.getElementById('heartInput');
|
||||
heartInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// other skeletal deformity input
|
||||
document.getElementById('other_deformity').addEventListener('change', function() {
|
||||
var otherDeformityInputContainer = document.getElementById('other_deformity_input');
|
||||
otherDeformityInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// other complication of pregnancy input
|
||||
document.getElementById('complications_others').addEventListener('change', function() {
|
||||
var otherDeformityInputContainer = document.getElementById('other_complication_of_preganancy_input');
|
||||
otherDeformityInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// add dilation and curettage date :input
|
||||
document.getElementById('d_c').addEventListener('change', function() {
|
||||
var dilationInputContainer = document.getElementById('d_c_date_input');
|
||||
dilationInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// add ectopic pregnancy date :input
|
||||
document.getElementById('obs_gyn_ectopic_pregancy').addEventListener('change', function() {
|
||||
var dilationInputContainer = document.getElementById('obs_gyn_ectopic_pregancy_date_input');
|
||||
dilationInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
|
||||
// add fractures_pelvis date :input
|
||||
document.getElementById('fractures_pelvis').addEventListener('change', function() {
|
||||
var fracturePelvisInputContainer = document.getElementById('fractures_pelvis_date_input');
|
||||
fracturePelvisInputContainer.classList.toggle('hidden', !this.checked);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- end of additional input containers on checkbox select --}}
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(
|
||||
'#datepicker-autoclose1,#datepicker-autoclose3,#datepicker-autoclose4,#datepicker-autoclose5,#datepicker-autoclose6,#datepicker-autoclose7'
|
||||
)
|
||||
.datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
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
|
||||
$('#referralsmodal').modal('hide'); //manually hide the modal
|
||||
alert('<?php echo __('maternity.adding_referral_success'); ?>');
|
||||
} else {
|
||||
alert("<?php echo __('maternity.adding_referral_failed'); ?>");
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
alert(JSON.stringify(jqXHR));
|
||||
console.log(JSON.stringify(jqXHR));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#primary_diagnosis').select2({
|
||||
placeholder: "-- select --"
|
||||
});
|
||||
$('.select2-selection.select2-selection--single').css('height', 'calc(3.85rem)');
|
||||
$('.select2-selection.select2-selection--single').css('padding-top', '5px');
|
||||
$('.select2-selection.select2-selection--single').css('border-left',
|
||||
'3px solid #F08080'); /*add compulsory class*/
|
||||
$('.select2-selection__arrow').css('top', '3px');
|
||||
|
||||
$('#primary_diagnosis').on('change', function() {
|
||||
var data = 'diagnosis_id=' + $(this).val();
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/diagnoses/get_diagnosis",
|
||||
data: data,
|
||||
cache: false,
|
||||
success: function(result) {
|
||||
var prompt_and_references = result.split('&&');
|
||||
$('#primary_diagnosis_prompt').html(prompt_and_references[0]);
|
||||
$('#primary_diagnosis_reference').html(prompt_and_references[1]);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/* other diagnoses */
|
||||
$('#other_diagnosis').on('change', function() {
|
||||
var data = 'diagnosis_id=' + $(this).val();
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/diagnoses/get_diagnosis",
|
||||
data: data,
|
||||
cache: false,
|
||||
success: function(result) {
|
||||
var prompt_and_references = result.split('&&');
|
||||
$('#secondary_diagnosis_prompt1').html(prompt_and_references[0]);
|
||||
$('#secondary_diagnosis_reference1').html(prompt_and_references[1]);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//pph details jquery
|
||||
$('#show_pph_details_div').click(function(e) {
|
||||
$('#pph_details_div').show();
|
||||
});
|
||||
$('#hide_pph_details_div').click(function(e) {
|
||||
$('#pph_details_div').hide();
|
||||
});
|
||||
$('#show_scar_no_div').click(function(e) {
|
||||
$('#scar_no_div').show();
|
||||
});
|
||||
$('#hide_scar_no_div').click(function(e) {
|
||||
$('#scar_no_div').hide();
|
||||
});
|
||||
$('#show_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').show();
|
||||
});
|
||||
$('#hide_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').hide();
|
||||
});
|
||||
$('#show_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').show();
|
||||
});
|
||||
$('#hide_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').hide();
|
||||
});
|
||||
|
||||
//auto calculate number of weeks pregnant
|
||||
$('#datepicker-autoclose5').on('change', function() {
|
||||
var lmpDate = $(this).val();
|
||||
|
||||
// auto calculate the EDD
|
||||
let lmp_date_array = lmpDate.split('/');
|
||||
let edd_date = new Date(lmp_date_array[2], lmp_date_array[1], lmp_date_array[0]);
|
||||
edd_date.setDate(edd_date.getDate() + 280);
|
||||
$('#datepicker-autoclose6').val(format_date(edd_date));
|
||||
|
||||
var today = new Date();
|
||||
var dd = today.getDate();
|
||||
var mm = today.getMonth() + 1; //January is 0!
|
||||
var yyyy = today.getFullYear();
|
||||
if (dd < 10) {
|
||||
dd = '0' + dd;
|
||||
}
|
||||
if (mm < 10) {
|
||||
mm = '0' + mm;
|
||||
}
|
||||
var today = dd + '/' + mm + '/' + yyyy;
|
||||
|
||||
// Here are the two dates to compare dd/mm/yyyy
|
||||
// First we split the values to arrays date1[0] is the year, [1] the month and [2] the day
|
||||
date1 = lmpDate.split('/');
|
||||
date2 = today.split('/');
|
||||
|
||||
// Now we convert the array to a Date object, which has several helpful methods
|
||||
date1 = new Date(date1[2], date1[1], date1[0]);
|
||||
date2 = new Date(date2[2], date2[1], date2[0]);
|
||||
|
||||
// We use the getTime() method and get the unixtime (in milliseconds, but we want seconds, therefore we divide it through 1000)
|
||||
date1_unixtime = parseInt(date1.getTime() / 1000);
|
||||
date2_unixtime = parseInt(date2.getTime() / 1000);
|
||||
|
||||
// This is the calculated difference in seconds
|
||||
var timeDifference = date2_unixtime - date1_unixtime;
|
||||
|
||||
// in Hours
|
||||
var timeDifferenceInHours = timeDifference / 60 / 60;
|
||||
|
||||
// and finaly, in days :)
|
||||
var timeDifferenceInDays = timeDifferenceInHours / 24;
|
||||
|
||||
//and finally divide the days by 7 to get the number of weeks for the pregancy
|
||||
var timeDifferenceInWeeks = Math.floor(timeDifferenceInDays / 7);
|
||||
|
||||
//display the value in the number of weeks pregnant box
|
||||
$("#weeks_pregnant").val(timeDifferenceInWeeks);
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on("click focus", ".transfusion-date,.obstetric-date", function() {
|
||||
//console.log("clicked to add date picker");
|
||||
$(this).datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
});
|
||||
|
||||
// add row
|
||||
function addRow(tableID) {
|
||||
var table = document.getElementById(tableID);
|
||||
var rowCount = table.rows.length;
|
||||
var row = table.insertRow(rowCount);
|
||||
var colCount = table.rows[0].cells.length;
|
||||
|
||||
for (var i = 0; i < colCount; i++) {
|
||||
var newcell = row.insertCell(i);
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
/* set new id for the symptom select tag which is found in the first cell of every row
|
||||
* this makes the symptom select tag id dynamic and different for each table row
|
||||
* the id should be the rowCount +1000 to avoid a similar id with prompt div tag id set below
|
||||
*/
|
||||
if (i == 1) {
|
||||
newcell.childNodes[0].id = (rowCount + 1000);
|
||||
}
|
||||
/*
|
||||
* set new value for the prompt div tag
|
||||
*/
|
||||
if (i == 2) {
|
||||
table.rows[rowCount].cells[2].innerHTML = '';
|
||||
table.rows[rowCount].cells[2].innerHTML = '<div class="well well-sm" id="' + rowCount +
|
||||
'"> </div>';
|
||||
}
|
||||
|
||||
if (i == 3) {
|
||||
// var myid = (rowCount + 100);
|
||||
table.rows[rowCount].cells[3].innerHTML = '';
|
||||
table.rows[rowCount].cells[3].innerHTML = '<div class="well well-sm" id="' + (rowCount + 100) +
|
||||
'"> </div>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
// newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select-one":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// delete row
|
||||
function deleteRow(tableID) {
|
||||
try {
|
||||
var table = document.getElementById(tableID);
|
||||
var rowCount = table.rows.length;
|
||||
for (var i = 0; i < rowCount; i++) {
|
||||
var row = table.rows[i];
|
||||
var chkbox = row.cells[0].childNodes[0];
|
||||
if (null != chkbox && true == chkbox.checked) {
|
||||
if (rowCount <= 2) {
|
||||
alert("<?php echo __('maternity.cant_delete_rows'); ?>");
|
||||
break;
|
||||
}
|
||||
table.deleteRow(i);
|
||||
rowCount--;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
// obstetric row
|
||||
function addObstetricRow(tableID) {
|
||||
var table = document.getElementById(tableID);
|
||||
var rowCount = table.rows.length;
|
||||
//console.log("row count : " + rowCount);
|
||||
var row = table.insertRow(rowCount);
|
||||
var colCount = table.rows[0].cells.length;
|
||||
|
||||
for (var i = 0; i < colCount; i++) {
|
||||
var newcell = row.insertCell(i);
|
||||
if (rowCount < 3) {
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
} else {
|
||||
newcell.innerHTML = table.rows[rowCount - 1].cells[i].innerHTML;
|
||||
}
|
||||
/* set new id for the symptom select tag which is found in the first cell of every row
|
||||
* this makes the symptom select tag id dynamic and different for each table row
|
||||
* the id should be the rowCount +1000 to avoid a similar id with prompt div tag id set below
|
||||
*/
|
||||
if (i == 1) {
|
||||
newcell.childNodes[0].id = (rowCount + 1000);
|
||||
}
|
||||
if (i == 2) {
|
||||
table.rows[rowCount].cells[2].innerHTML = '';
|
||||
table.rows[rowCount].cells[2].innerHTML =
|
||||
'<input name="gestation[]" class="form-control well-sm" placeholder="<?php echo __('maternity.weeks'); ?>" id="' +
|
||||
rowCount + '"> </div>';
|
||||
}
|
||||
if (i == 3) {
|
||||
table.rows[rowCount].cells[3].innerHTML = '';
|
||||
var ancOutcomes = {!! json_encode($anc_outcomes) !!};
|
||||
var options = ''; //initialize the options tag
|
||||
for (var outcome in ancOutcomes) {
|
||||
if (ancOutcomes.hasOwnProperty(outcome)) {
|
||||
options += '<option value=' + outcome + '>' + ancOutcomes[outcome] + '</option>';
|
||||
}
|
||||
}
|
||||
table.rows[rowCount].cells[3].innerHTML =
|
||||
'<select name="obstetric_outcome[]" class="form-control" id="' + (rowCount + 100) + '"> ' +
|
||||
options + '</select>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
// newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
console.log("entered option for select");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// blood transfusion
|
||||
function addBloodTransfusionRow(tableID) {
|
||||
var table = document.getElementById(tableID);
|
||||
var rowCount = table.rows.length;
|
||||
var row = table.insertRow(rowCount);
|
||||
var colCount = table.rows[0].cells.length;
|
||||
|
||||
for (var i = 0; i < colCount; i++) {
|
||||
var newcell = row.insertCell(i);
|
||||
if (rowCount < 3) {
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
} else {
|
||||
newcell.innerHTML = table.rows[rowCount - 1].cells[i].innerHTML;
|
||||
}
|
||||
/* set new id for the symptom select tag which is found in the first cell of every row
|
||||
* this makes the symptom select tag id dynamic and different for each table row
|
||||
* the id should be the rowCount +1000 to avoid a similar id with prompt div tag id set below
|
||||
*/
|
||||
if (i == 1) {
|
||||
newcell.childNodes[0].id = (rowCount + 1000);
|
||||
}
|
||||
/*
|
||||
* set new value for the prompt div tag
|
||||
*/
|
||||
if (i == 2) {
|
||||
table.rows[rowCount].cells[2].innerHTML = '';
|
||||
table.rows[rowCount].cells[2].innerHTML =
|
||||
'<input type="number" name="no_of_units[]" class="form-control" id="' + rowCount + '"> </div>';
|
||||
}
|
||||
|
||||
if (i == 3) {
|
||||
table.rows[rowCount].cells[3].innerHTML = '';
|
||||
table.rows[rowCount].cells[3].innerHTML =
|
||||
'<input name="transfusion_comment[]" class="form-control" id="' + (rowCount + 100) +
|
||||
'"> </div>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
// newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function format_date(date) {
|
||||
let d = new Date(date),
|
||||
month = '' + (d.getMonth() + 1),
|
||||
day = '' + d.getDate(),
|
||||
year = d.getFullYear();
|
||||
|
||||
if (month.length < 2)
|
||||
month = '0' + month;
|
||||
if (day.length < 2)
|
||||
day = '0' + day;
|
||||
|
||||
return [day, month, year].join('-');
|
||||
}
|
||||
</script>
|
||||
|
||||
{{-- updated scripts --}}
|
||||
<script type="text/javascript">
|
||||
// onstetric details outcopme
|
||||
function abortion_outcome(data) {
|
||||
var id = data.split("_");
|
||||
var id_number = id[1];
|
||||
if ($('#pregnancy_' + id_number + '_obstetric_outcome').val() == '5') {
|
||||
$('#abortion_outcome_div_' + id_number).show();
|
||||
$('#pregnancy_' + id_number + '_abortion_outcome').prop('required', true);
|
||||
$('#pregnancy_' + id_number + '_abortion_outcome').addClass('compulsory');
|
||||
if ($('#child_details_div_' + id_number).is(":visible")) {
|
||||
$('#child_details_div_' + id_number).hide();
|
||||
$('.child_details_div_' + id_number).prop('required', false);
|
||||
}
|
||||
} else if ($('#pregnancy_' + id_number + '_obstetric_outcome').val() == '1' || $('#pregnancy_' + id_number +
|
||||
'_obstetric_outcome').val() == '2') {
|
||||
$('#child_details_div_' + id_number).show();
|
||||
$('.child_details_div_' + id_number).prop('required', true);
|
||||
$('.child_details_div_' + id_number).addClass('compulsory');
|
||||
if ($('#abortion_outcome_div_' + id_number).is(":visible")) {
|
||||
$('#abortion_outcome_div_' + id_number).hide();
|
||||
$('#pregnancy_' + id_number + '_abortion_outcome').prop('required', false);
|
||||
$('#pregnancy_' + id_number + '_abortion_outcome').val('');
|
||||
}
|
||||
} else {
|
||||
if ($('#abortion_outcome_div_' + id_number).is(":visible")) {
|
||||
$('#abortion_outcome_div_' + id_number).hide();
|
||||
$('#pregnancy_' + id_number + '_abortion_outcome').prop('required', false);
|
||||
$('#pregnancy_' + id_number + '_abortion_outcome').val('');
|
||||
}
|
||||
if ($('#child_details_div_' + id_number).is(":visible")) {
|
||||
$('#child_details_div_' + id_number).hide();
|
||||
$('.child_details_div_' + id_number).prop('required', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add pregnancy row
|
||||
function add_pregnancy_row() {
|
||||
let countAll = document.querySelectorAll('.pregnacy_details').length;
|
||||
let counter = ++countAll;
|
||||
$(".pregnancy_div").append(`<br><div id="pregnancy_${counter}" class="pregnacy_details">
|
||||
<div class="row">
|
||||
<div class="col form-group">
|
||||
{{ Form::label('obstetric_date', __('antenatal.date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('pregnancy_${counter}_obstetric_date', '', ['class' => 'form-control obstetric_date', 'readonly', 'id' => 'datepicker-autoclose1']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="col form-group">
|
||||
{{ Form::label('gestation', __('antenatal.gestation')) }}
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control col-sm-12" name="pregnancy_${counter}_gestation" placeholder="weeks">
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="col form-group">
|
||||
{{ Form::label('outcome', __('antenatal.outcome')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::select('pregnancy_${counter}_obstetric_outcome', $anc_outcomes, '', ['class' => 'form-control col-sm-12', 'id' => 'pregnancy_${counter}_obstetric_outcome', 'onchange' => 'abortion_outcome(this.id)']) }}
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
<div class="form-group" style="display: none" id="abortion_outcome_div_${counter}">
|
||||
{{ Form::label('outcome', __('antenatal.abortion_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::select('pregnancy_${counter}_abortion_outcome', ['' => __('antenatal.select'), '1' => __('antenatal.below_12'), '2' => __('antenatal.12_and_above')], '', ['class' => 'form-control col-sm-12', 'id' => 'pregnancy_${counter}_abortion_outcome']) }}
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col form-group">
|
||||
{{ Form::label('classification', __('antenatal.classification')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::select('pregnancy_${counter}_classification', ['' => __('antenatal.select'), '1' => __('antenatal.premature'), '2' => __('antenatal.fullterm')], '', ['class' => 'form-control col-sm-12', 'id' => 'pregnancy_${counter}_classification']) }}
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="col form-group">
|
||||
{{ Form::label('delivery_type', __('antenatal.delivery_type')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::select('pregnancy_${counter}_delivery_type', ['' => __('antenatal.select'), '1' => __('antenatal.vaginal_delivery'), '2' => __('antenatal.vacuum_delivery'), '3' => __('antenatal.forceps_delivery'), '4' => __('antenatal.c_section'), '5' => __('antenatal.vbac')], '', ['class' => 'form-control col-sm-12', 'id' => 'pregnancy_${counter}_delivery_type']) }}
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
<div class="col form-group">
|
||||
{{ Form::label('puerperium', __('antenatal.puerperium')) }}
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control col-sm-12" name="pregnancy_${counter}_puerperium" id="pregnancy_${counter}_puerperium">
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-sm-1"><button class="btn btn-sm btn-rounded btn-danger" title="Delete this Pregnancy" style="color: white; margin-top: 25px;" id='pregnancy_${counter}_delete' onclick='delete_pregnancy(this.id)' type="button"><i class="fa fa-trash"></i></button></div>
|
||||
</div>
|
||||
|
||||
<div id="child_details_div_${counter}" style="display: none">
|
||||
<p><h5 class="text-center"><b>Child's Details</b></h5></p>
|
||||
<table class="table color-table inverse-table table-responsive table-borderless" id="child_details_table_${counter}">
|
||||
<thead>
|
||||
<th>{{ __('patients.full_names') }}</th>
|
||||
<th>{{ __('patients.gender') }}</th>
|
||||
<th>{{ __('patients.patient_number') }}</th>
|
||||
<th>{{ __('antenatal.child_birth_weight') }}</th>
|
||||
<th>{{ __('antenatal.child_immunisation_status') }}</th>
|
||||
<th>{{ __('antenatal.health_condition') }}</th>
|
||||
<th>#</th>
|
||||
</thead>
|
||||
<tbody id="child_data_${counter}">
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('pregnancy_${counter}_child_name[]', '', ['class' => 'form-control child_details_div_${counter}', 'id' => 'pregnancy_${counter}_child_name_1', 'placeholder' => 'Happy Mukisa']) }}
|
||||
</td>
|
||||
<td style="min-width: 90px;">
|
||||
<select style="display: inline-block;" class="form-control" name="pregnancy_${counter}_child_gender[]" id="pregnancy_${counter}_child_gender_1"><option value=" " selected>-- Select --</option><option value="1">Male</option><option value="2">Female</option></select>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('pregnancy_${counter}_child_patient_number[]', '', ['class' => 'form-control child_details_div_${counter}', 'step' => '1']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::number('pregnancy_${counter}_child_birth_weight[]', '', ['class' => 'form-control child_details_div_${counter}', 'step' => '0.1']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('pregnancy_${counter}_child_immunisation_status[]', ['' => __('antenatal.select'), '1' => __('antenatal.not_started'), '2' => __('antenatal.ongoing'), '3' => __('antenatal.completed')], '', ['class' => 'form-control child_details_div_${counter}']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::textarea('pregnancy_${counter}_child_health_condition[]', '', ['class' => 'form-control', 'id' => 'health_condition', 'rows' => '3']) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<a class="add_child_button label label-inverse" style="color: #fff;" id="add_child_${counter}" role="button" onclick="add_child_div(this.id)">{{ __('antenatal.add_child_row') }}</a>
|
||||
</div>
|
||||
</div>`);
|
||||
}
|
||||
|
||||
// delete pregnancy row
|
||||
function delete_pregnancy(id) {
|
||||
var pregnancy = id.split("_");
|
||||
var pregnancy_div_id = 'pregnancy_' + pregnancy[1];
|
||||
$('#' + pregnancy_div_id).remove();
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
<!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', 'Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
/*font-size: 1.2em;*/
|
||||
}
|
||||
|
||||
thead {
|
||||
/*display: table-header-group;*/
|
||||
}
|
||||
|
||||
tfoot {
|
||||
/*display: table-row-group;*/
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.parent_container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
{{-- <div class="parent_container"> --}}
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
|
||||
|
||||
{{-- maaternity admission details --}}
|
||||
@include('maternity::maternity.includes.maternity_admission_details')
|
||||
|
||||
@if (is_add_stamp_feature_enabled() && !empty($hospital_info->stamp))
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center">
|
||||
<img style="max-width: 300px; max-height: 150px;"
|
||||
src="{{ asset($hospital_info->stamp) }}" class="img-fluid mx-auto d-block mx-3"
|
||||
alt="{{ $hospital_info->name }} stamp">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+441
@@ -0,0 +1,441 @@
|
||||
<!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 type="text/css">
|
||||
body {
|
||||
font-size: 14px;
|
||||
/* line-height: 1.2; */
|
||||
}
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
tfoot {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
tr {
|
||||
page-break-before: always;
|
||||
page-break-after: always;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="white-box">
|
||||
@php
|
||||
$hospital_information = \Streamline\Models\HospitalInformation::find(1);
|
||||
@endphp
|
||||
|
||||
@if(is_null($hospital_information->pdf_print_header))
|
||||
<img style="max-width: 300px; max-height: 100px;" src="{{ asset($hospital_information->logo) }}" class="mx-auto d-block mx-3" alt="{{ $hospital_information->name }} Logo">
|
||||
<p class="h6 text-center mt-0 font-weight-bold">
|
||||
{{ $hospital_information->name . ' | ' . $hospital_information->phone_number . ' | ' .
|
||||
$hospital_information->email . ' | ' . $hospital_information->address . ' ' .
|
||||
$hospital_information->country }}
|
||||
</p>
|
||||
<p class="h6 text-center mt-0 font-weight-bold">{{ __('maternity.delivery_of_episode_started') }} : {{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</p>
|
||||
@else
|
||||
<img style="max-height: 150px;" src="{{ asset($hospital_information->pdf_print_header) }}" class="mx-auto d-block mx-3" alt="Responsive image">
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('maternity.patient_number') }}</th>
|
||||
<td>{{ $patient_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.foetal_number') }}</th>
|
||||
<td>{{ $delivery_record_details->foetal_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.blood_loss') }}</th>
|
||||
<td>{{ $delivery_record_details->blood_loss }} (mls)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.blood_loss_measurement') }}</th>
|
||||
<td>{{ $delivery_record_details->bloodloss_measurement }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.triage_done_on') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<strong>{{ __('maternity.baby_record_on') }} Stre@mline</strong>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($babies as $baby)
|
||||
<tr>
|
||||
<td>{{ $baby->number }}</td>
|
||||
<td>{{ $baby->first_name." ".$baby->last_name }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ __('maternity.baby') }} 1</th>
|
||||
@if($delivery_record_details->foetal_number == 2)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
@elseif ($delivery_record_details->foetal_number == 3)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
<th>{{ __('maternity.baby') }} 3</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $foetal_number = $delivery_record_details->foetal_number; @endphp
|
||||
<tr>
|
||||
<th>{{ __('maternity.date_of_birth') }}</th>
|
||||
@php
|
||||
$date_of_birth_array = explode(",", $delivery_record_details->date_of_birth);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $date_of_birth_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.delivery_time') }}</th>
|
||||
@php
|
||||
$delivery_time_array = explode(",", $delivery_record_details->delivery_time);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $delivery_time_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.duration_1st') }}</th>
|
||||
@php
|
||||
$duration_first_array = explode(",", $delivery_record_details->duration_1);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $duration_first_array[$x] }} {{ __('maternity.hours') }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.duration_2nd') }}</th>
|
||||
@php
|
||||
$duration_second_stage_array = explode(",", $delivery_record_details->duration_2);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@php
|
||||
$duration2_in_hrs_and_mins = explode("and", $duration_second_stage_array[$x]);
|
||||
@endphp
|
||||
<td>{{ $duration2_in_hrs_and_mins[0] }} {{ __('maternity.hours') }} {{ $duration2_in_hrs_and_mins[1] }} {{ __('maternity.minutes') }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.duration_3rd') }}</th>
|
||||
@php
|
||||
$duration_third_stage_array = explode(",", $delivery_record_details->duration_3);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@php
|
||||
$duration3_in_hrs_and_mins = explode("and", $duration_third_stage_array[$x]);
|
||||
@endphp
|
||||
<td>{{ $duration3_in_hrs_and_mins[0] }} {{ __('maternity.hours') }} {{ $duration2_in_hrs_and_mins[1] }} {{ __('maternity.minutes') }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.delivered_by_cadre') }}</th>
|
||||
@php
|
||||
$delivered_by_cadre_array = explode(",", $delivery_record_details->delivered_by_cadre);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $delivered_by_cadre_array[$x] == 1 ? "Staff" : "Student" }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.delivered_by_name') }}</th>
|
||||
@php
|
||||
$delivered_by_name_array = explode(",", $delivery_record_details->delivered_by_name);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($users[$delivered_by_name_array[$x]]) ? $users[$delivered_by_name_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.supervised_by') }}</th>
|
||||
@php
|
||||
$supervised_by_array = explode(",", $delivery_record_details->supervised_by);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($users[$supervised_by_array[$x]]) ? $users[$supervised_by_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.mode_of_delivery') }}</th>
|
||||
@php
|
||||
$mode_of_delivery_array = explode(",", $delivery_record_details->mode_of_delivery);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($delivery_modes[$mode_of_delivery_array[$x]]) ? $delivery_modes[$mode_of_delivery_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.indication_for_cs') }}</th>
|
||||
@php
|
||||
$indication_for_cs_array = explode(",", $delivery_record_details->indication_for_cs);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $indication_for_cs_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.location_of_delivery') }}</th>
|
||||
@php
|
||||
$location_of_delivery_array = explode(",", $delivery_record_details->location_of_delivery);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($delivery_locations[$location_of_delivery_array[$x]]) ? $delivery_locations[$location_of_delivery_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.resuscitation_airway') }}</th>
|
||||
@php
|
||||
$resuscitation_airway_array = explode(",", $delivery_record_details->resuscitation_airway);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>
|
||||
@if ($resuscitation_airway_array[$x] == "1")
|
||||
{{ __('maternity.nil') }}
|
||||
@elseif($resuscitation_airway_array[$x] == "2")
|
||||
{{ __('maternity.bag') }}
|
||||
@elseif($resuscitation_airway_array[$x] == "3")
|
||||
{{ __('maternity.mask') }}
|
||||
@endif
|
||||
</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.resuscitation_suction') }}</th>
|
||||
@php
|
||||
$resuscitation_suction_array = explode(",", $delivery_record_details->resuscitation_suction);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $resuscitation_suction_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
@php
|
||||
$delivery_comments_array = explode(",", $delivery_record_details->delivery_comments);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $delivery_comments_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ __('maternity.baby') }} 1</th>
|
||||
@if($delivery_record_details->foetal_number == 2)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
@elseif ($delivery_record_details->foetal_number == 3)
|
||||
<th>{{ __('maternity.baby') }} 2</th>
|
||||
<th>{{ __('maternity.baby') }} 3</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('maternity.received_by') }}</th>
|
||||
@php
|
||||
$received_by_array = explode(",", $delivery_record_details->received_by);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ isset($users[$received_by_array[$x]]) ? $users[$received_by_array[$x]] : '' }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.sex') }}</th>
|
||||
@php
|
||||
$gender_array = explode(",", $delivery_record_details->gender);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@if($gender_array[$x] ==1 )
|
||||
<td>{{ __('maternity.female') }}</td>
|
||||
@elseif($gender_array[$x] == 2)
|
||||
<td>{{ __('maternity.male') }}</td>
|
||||
@else
|
||||
<td>{{ __('maternity.other') }}</td>
|
||||
@endif
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.condition') }}</th>
|
||||
@php
|
||||
$baby_condition_array = explode(",", $delivery_record_details->baby_condition);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
@if($baby_condition_array[$x] == 1)
|
||||
<td>{{ __('maternity.alive') }}</td>
|
||||
@elseif($baby_condition_array[$x] == 2)
|
||||
<td>{{ __('maternity.fresh_sb') }}</td>
|
||||
@elseif($baby_condition_array[$x] == 3)
|
||||
<td>{{ __('maternity.macerated_sb') }}</td>
|
||||
@endif
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.weight') }}</th>
|
||||
@php
|
||||
$weight_array = explode(",", $delivery_record_details->weight);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $weight_array[$x] }} Kg</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.congenital_abnormalities_apparent') }}</th>
|
||||
@php
|
||||
$congenital_abnormalities_array = explode(",", $delivery_record_details->congenital_abnormalities);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $congenital_abnormalities_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.birth_order') }}</th>
|
||||
@php
|
||||
$birth_order_array = explode(",", $delivery_record_details->birth_order);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $birth_order_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.apgar_1') }}</th>
|
||||
@php
|
||||
$apgar_score_at_1_min_array = explode(",", $delivery_record_details->apgar_score_at_minute_1);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $apgar_score_at_1_min_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.apgar_5') }}</th>
|
||||
@php
|
||||
$apgar_score_at_5_min_array = explode(",", $delivery_record_details->apgar_score_at_minute_5);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $apgar_score_at_5_min_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.apgar_10') }}</th>
|
||||
@php
|
||||
$apgar_score_at_10_min_array = explode(",", $delivery_record_details->apgar_score_at_minute_10);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $apgar_score_at_10_min_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.age_established_respiration') }}</th>
|
||||
@php
|
||||
$age_established_spontaneous_respiration_array = explode(",", $delivery_record_details->age_established_spontaneous_reg_respiration);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $age_established_spontaneous_respiration_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.comments') }}</th>
|
||||
@php
|
||||
$baby_comments_array = explode(",", $delivery_record_details->baby_comments);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ $baby_comments_array[$x] }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.moved_to') }}</th>
|
||||
@php
|
||||
$moved_to_array = explode(",", $delivery_record_details->moved_to);
|
||||
@endphp
|
||||
|
||||
@for($x = 0; $x < $foetal_number; $x++)
|
||||
<td>{{ get_name($moved_to_array[$x], "id", "name", "wards") }}</td>
|
||||
@endfor
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user