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:
+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>
|
||||
Reference in New Issue
Block a user