mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
resolved conflicts
This commit is contained in:
+774
@@ -0,0 +1,774 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr {
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.table_no_padding td {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.alert-dismissible .close {
|
||||
position: relative;
|
||||
top: -0.5rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
|
||||
/* previous consultations */
|
||||
table {
|
||||
/* border-collapse: collapse;
|
||||
width: 100%; */
|
||||
}
|
||||
|
||||
/* th, td {
|
||||
border: 1px solid #dddddd;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
} */
|
||||
/* tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
} */
|
||||
.previous_consultation_details {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('inpatient.inpatient_sheet') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('inpatient.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('inpatient.patients') }}</a></li>
|
||||
<li class="active">{{ __('inpatient.inpatient_sheet') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<b> {{ __('maternity.update_labour_ward_adminssion_section') }}
|
||||
</b><br><br>
|
||||
<hr>
|
||||
|
||||
{{-- FORM OPENING --}}
|
||||
{{-- {{ Form::open(['route' => 'maternity.store']) }} --}}
|
||||
|
||||
<form action="{{ route('maternity.updpate_labour_ward_admission_sheet',$existing_labour_admission_data->id) }}" method="post">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12 col-sm-12">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="labour_onset">{{ __('maternity.labour_onset') }}</label><br><br>
|
||||
|
||||
<select name="labour_onset" class="form-select form-control">
|
||||
<option value="" {{ old('labour_onset') == 'null' ? 'selected' : '' }}> --
|
||||
Select
|
||||
-- </option>
|
||||
<option value="1" @selected($existing_labour_admission_data->labour_onset == 1 )>
|
||||
{{ __('maternity.spontaneous') }}</option>
|
||||
|
||||
<option value="2" @selected($existing_labour_admission_data->labour_onset == 2 )>
|
||||
{{ __('maternity.induced') }}</option>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="active_labour_diagnosis_date">{{ __('maternity.active_labour_diagnosis_date') }}</label><br><br>
|
||||
|
||||
<input type="date" name="active_labour_diagnosis_date" value="{{ $existing_labour_admission_data->active_labour_diagnosis_date ?? '' }}"
|
||||
id="active_labour_diagnosis_date_input" placeholder="Specify" class="form-control">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="membranes_rapture_at">{{ __('maternity.membranes_raptured_at') }}</label><br><br>
|
||||
|
||||
<input type="datetime-local" name="membranes_rapture_at"
|
||||
value="{{ $existing_labour_admission_data->membranes_rapture_at ?? '' }}"
|
||||
id="membranes_rapture_at_input_date" placeholder="Add details" class="form-control">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- check data from anc or maternity --}}
|
||||
{{-- @php
|
||||
use Carbon\Carbon;
|
||||
$anc_record_date = Carbon::parse($latest_anc_registration->created_at);
|
||||
$maternity_record_date = Carbon::parse($latest_existing_maternity_inpatient_data->created_at);
|
||||
|
||||
@endphp --}}
|
||||
|
||||
|
||||
<!-- <div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from Maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div> -->
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->gravida)) value="{{ $existing_labour_admission_data->gravida }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->para)) value="{{ $existing_labour_admission_data->para }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->abortions)) value="{{ $existing_labour_admission_data->abortions }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control"
|
||||
@if (isset($existing_labour_admission_data->ectopic_pregnancies)) value="{{ $existing_labour_admission_data->ectopic_pregnancies }}"
|
||||
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="yes"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}}
|
||||
@if (!empty($existing_labour_admission_data->post_partum)) {{ $existing_labour_admission_data->post_partum == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="yes">{{ __('maternity.yes') }}</label>
|
||||
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="no" value="0"
|
||||
@checked($existing_labour_admission_data->post_partum == 0)
|
||||
{{-- @if (!empty($existing_labour_admission_data->post_partum)) {{ $existing_labour_admission_data->post_partum == '0' ? 'checked' : '' }} @endif --}}
|
||||
|
||||
>
|
||||
|
||||
<label class="form-check-label"
|
||||
for="no">{{ __('maternity.no') }}</label>
|
||||
|
||||
{{-- <input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
@if (!empty($existing_labour_admission_data->post_partum)) {{ $existing_labour_admission_data->post_partum == '0' ? 'checked' : '' }} @endif
|
||||
value="0">
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label> --}}
|
||||
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{{-- end of check data from anc or maternity --}}
|
||||
{{-- <hr> --}}
|
||||
|
||||
{{-- aph and fits --}}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
|
||||
|
||||
{{ Form::label('history_of_aph', __('maternity.history_of_aph')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="show_aph_details_div"
|
||||
@if (!empty($existing_labour_admission_data->history_of_aph)) {{ $existing_labour_admission_data->history_of_aph == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="hide_aph_details_div"
|
||||
@checked($existing_labour_admission_data->history_of_aph == 0)
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="aph_details_div" style="display: none;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_aph_details', __('maternity.details')) }}
|
||||
<textarea name="history_aph_details" id="history_aph_details" rows="2">{{ isset($existing_labour_admission_data->history_aph_details) ? $existing_labour_admission_data->history_aph_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
|
||||
{{ Form::label('history_of_fits', __('maternity.history_of_fits')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
id="show_fits_details_div"
|
||||
@if (!empty($existing_labour_admission_data->history_of_fits)) {{ $existing_labour_admission_data->history_of_fits == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.yes') }}</label>
|
||||
|
||||
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
id="hide_fits_details_div"
|
||||
@checked($existing_labour_admission_data->history_of_fits == 0)
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="fits_details_div" style="display: none; margin-left:8px;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_fit_details', __('maternity.fits_details')) }}<br>
|
||||
<textarea name="history_fit_details" id="history_aph_details" rows="2">{{ isset($existing_labour_admission_data->history_fit_details) ? $existing_labour_admission_data->history_fit_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('iufd', __('maternity.iufd')) }} <br>
|
||||
|
||||
<input class="form-check-input" name="iufd" type="radio" id="show_iufd_alert_div" value="1"
|
||||
{{-- @if (!empty($existing_labour_admission_data->iufd)) {{ $existing_labour_admission_data->iufd == '1' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->iufd == 1)
|
||||
>
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="iufd" type="radio" id="hide_iufd_alert_div"
|
||||
value="0"
|
||||
{{-- @if (!empty($existing_labour_admission_data->iufd)) {{ $existing_labour_admission_data->iufd == '0' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->iufd == 0)>
|
||||
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.no') }}</label>
|
||||
|
||||
<div class="row" id="iufd_alert_div" style="display: none;">
|
||||
<div class="alert alert-info "> {{ __('maternity.inform_medical_team_warning') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('born_before_arrival', __('maternity.born_before_arrival')) }} <br>
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
{{-- @if (!empty($existing_labour_admission_data->born_before_arrival)) {{ $existing_labour_admission_data->born_before_arrival == '1' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->born_before_arrival == 1)
|
||||
value="1">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.yes') }}</label>
|
||||
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
{{-- @if (!empty($existing_labour_admission_data->born_before_arrival)) {{ $existing_labour_admission_data->born_before_arrival == '0' ? 'checked' : '' }} @endif --}}
|
||||
@checked($existing_labour_admission_data->born_before_arrival == 0)
|
||||
value="0">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.no') }}</label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('progress', __('maternity.progress')) }}
|
||||
{{ Form::select('progress', $maternity_progress, $existing_labour_admission_data->progress ?? '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label class="form-check-label" for="other_labour_comments">Other comments</label>
|
||||
<textarea class="form-control" name="other_labour_comments" cols="8" rows="4">{{ $existing_labour_admission_data->other_labour_comments ?? '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
{{-- risk factors --}}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
|
||||
{{-- obstetric risk factors --}}
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label
|
||||
class="control-label strong">{{ __('maternity.mother_current_obstetric_risk') }}</label>
|
||||
<div class="controls">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
@php
|
||||
// $obstetric_risk_factors_all = json_decode($existing_labour_admission_data->obstetric_risk_factors);
|
||||
$obstetric_risk_factors_all = [];
|
||||
if ($existing_labour_admission_data !== null) {
|
||||
$obstetric_risk_factors_all =
|
||||
json_decode(
|
||||
$existing_labour_admission_data->obstetric_risk_factors,
|
||||
) ?? [];
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('1', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="history_aph_pregnancy" value="1"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('history_aph_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_aph_pregnancy">
|
||||
{{ __('maternity.history_aph_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('2', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="epilepsy" value="2"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('epilepsy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="epilepsy">
|
||||
{{ __('maternity.epilepsy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('3', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="severe_pre_eclampsia" value="3"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('severe_pre_eclampsia', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="severe_pre_eclampsia">
|
||||
{{ __('maternity.severe_pre_eclampsia') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('4', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="history_convulsion_pregnancy" value="4"
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('history_convulsion_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="history_convulsion_pregnancy">
|
||||
{{ __('maternity.history_convulsion_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="polyhydramnios" value="5"
|
||||
{{ in_array('5', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('polyhydramnios', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="polyhydramnios">
|
||||
{{ __('maternity.polyhydramnios') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="premature_rupture_of_membranes"
|
||||
value="6"
|
||||
{{ in_array('6', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) &&
|
||||
in_array('premature_rupture_of_membranes', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="premature_rupture_of_membranes">
|
||||
{{ __('maternity.premature_rupture_of_membranes') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="diabetes_mellitus" value="7"
|
||||
{{ in_array('7', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('diabetes_mellitus', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="diabetes_mellitus">
|
||||
{{ __('maternity.diabetes_mellitus') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="multiple_pregnancy" value="8"
|
||||
{{ in_array('8', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('multiple_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="multiple_pregnancy">
|
||||
{{ __('maternity.multiple_pregnancy') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="sickle_cell_disease" value="9"
|
||||
{{ in_array('9', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('pph', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="pph">
|
||||
{{ __('maternity.pph') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="cardiac_disease" value="10"
|
||||
{{ in_array('10', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="cardiac_disease">
|
||||
{{ __('maternity.cardiac_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="malpresentation" value="11"
|
||||
{{ in_array('11', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('malpresentation', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="malpresentation">
|
||||
{{ __('maternity.malpresentation') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('12', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="asthma" value="12">
|
||||
<label class="form-check-label" for="asthma">
|
||||
{{ __('maternity.asthma') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="poor_obstetric_history"
|
||||
value="13"
|
||||
{{ in_array('13', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="poor_obstetric_history">
|
||||
{{ __('maternity.poor_obstetric_history') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="pre_term_labour" value="14"
|
||||
{{ in_array('14', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="pre_term_labour">
|
||||
{{ __('maternity.pre_term_labour') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="sickle_cell_disease" value="15"
|
||||
{{ in_array('15', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="sickle_cell_disease">
|
||||
{{ __('maternity.sickle_cell_disease') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="previous_csections" value="16"
|
||||
{{ in_array('16', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="previous_csections">
|
||||
{{ __('maternity.previous_csections') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" value="17"
|
||||
{{ in_array('17', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="polio">
|
||||
{{ __('maternity.polio') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('18', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="group_b_streptococcus_colonization"
|
||||
value="18">
|
||||
<label class="form-check-label" for="group_b_streptococcus_colonization">
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="woman_advanced_age" value="19"
|
||||
{{ in_array('19', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('woman_advanced_age', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="woman_advanced_age">
|
||||
{{ __('maternity.woman_advanced_age') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="mental_illness" value="20"
|
||||
{{ in_array('20', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('mental_illness', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="mental_illness">
|
||||
{{ __('maternity.mental_illness') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="adolescent_pregnancy" value="21"
|
||||
{{ in_array('21', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('adolescent_pregnancy', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="adolescent_pregnancy">
|
||||
{{ __('maternity.adolescent_pregnancy') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="hypertension" value="22"
|
||||
{{ in_array('22', $obstetric_risk_factors_all) ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="hypertension">
|
||||
{{ __('maternity.hypertension') }}
|
||||
</label>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="kidney_disease" value="23"
|
||||
{{ in_array('23', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('kidney_disease', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="kidney_disease">
|
||||
{{ __('maternity.kidney_disease') }} </label>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('24', $obstetric_risk_factors_all) ? 'checked' : '' }}
|
||||
id="show_other_obstetric_risk_factors_input"
|
||||
value="24">
|
||||
|
||||
|
||||
<label class="form-check-label" for="other_obstetrics">
|
||||
{{ __('maternity.other') }} </label>
|
||||
|
||||
<div id="other_obstetric_risk_factors_input"
|
||||
style="{{ in_array('24', $obstetric_risk_factors_all) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text"
|
||||
name="other_obstetric_risk_factors" placeholder="Add risk factor"
|
||||
value="{{ isset($existing_labour_admission_data->other_obstetric_risk_factors) ? $existing_labour_admission_data->other_obstetric_risk_factors : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{-- SUBMIT BUTTON --}}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-right " style="padding: 0 10px;">
|
||||
{{-- {{ Form::button(__('maternity.submit_form'), ['type' => 'submit', 'value' => 'submit_maternity_admission', 'name' => 'submit-btn', 'id' => 'submit-btn', 'class' => 'btn btn-success', 'style' => 'float:right;']) }} --}}
|
||||
{{-- <button type="submit" class="btn btn-success" ><i class="fas fa-save"></i> --}}
|
||||
{{-- <button type="submit" class="btn btn-success" value="complete" name="submit-btn"><i
|
||||
class="fas fa-save"></i> {{ __('maternity.update') }}</button> --}}
|
||||
<button type="submit" class="btn btn-default" value="save_labour_ward_admission" name="submit-btn"><i class="fas fa-save"></i> Update Draft</button>
|
||||
<button type="submit" class="btn btn-success" value="complete" name="submit-btn"><i class="fas fa-save"></i> Update & Complete</button>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
{{-- {{ Form::hidden('pregnancy_number', 0, ['id' => 'pregnancy_number']) }}
|
||||
{{ Form::close() }} --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
{{-- scrips --}}
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<!-- pull in select2 for auto searchanble drop downs -->
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
{{-- <script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script> --}}
|
||||
|
||||
<script>
|
||||
//fit details
|
||||
$('#show_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').show();
|
||||
});
|
||||
$('#hide_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').hide();
|
||||
});
|
||||
// aph details
|
||||
$('#show_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').show();
|
||||
});
|
||||
$('#hide_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').hide();
|
||||
});
|
||||
|
||||
// other obstetric factors additional input
|
||||
document
|
||||
.getElementById('show_other_obstetric_risk_factors_input')
|
||||
.addEventListener('change', function() {
|
||||
var inputContainer = document.getElementById(
|
||||
'other_obstetric_risk_factors_input'
|
||||
);
|
||||
if (this.checked) {
|
||||
inputContainer.style.display = 'block';
|
||||
} else {
|
||||
inputContainer.style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
// PPH and Fits
|
||||
|
||||
|
||||
|
||||
// {{-- history of aph : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="aph_details_div"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleAphDetails(this.value);
|
||||
});
|
||||
});
|
||||
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleAphDetails(value) {
|
||||
var aphDetailsDiv = document.getElementById('aph_details_div');
|
||||
var textarea = document.getElementById('history_aph_details');
|
||||
|
||||
if (value == 1) {
|
||||
aphDetailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
aphDetailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Initial check on page load
|
||||
toggleAphDetails(document.querySelector('input[name="history_of_aph"]:checked').value);
|
||||
|
||||
|
||||
// {{-- history of fits : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="history_of_fits"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleFitsDetails(this.value);
|
||||
});
|
||||
});
|
||||
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleFitsDetails(value) {
|
||||
var detailsDiv = document.getElementById('fits_details_div');
|
||||
var textarea = document.getElementById('history_fit_details');
|
||||
|
||||
if (value == 1) {
|
||||
detailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
detailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// Initial check on page load
|
||||
toggleFitsDetails(document.querySelector('input[name="history_of_fits"]:checked').value);
|
||||
</script>
|
||||
|
||||
<input type="datetime-local" name="membranes_rapture_at" placeholder="Add details" class="form-control"
|
||||
id="membranes_rapture_at_input_date">
|
||||
|
||||
<script>
|
||||
// prevent future date and time
|
||||
var currentDate = new Date();
|
||||
var currentDateTime = currentDate.toISOString().slice(0, 16);
|
||||
document.getElementById("membranes_rapture_at_input_date").setAttribute("max", currentDateTime);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- prevent future active labour diagnosis date --}}
|
||||
<script>
|
||||
var currentDate = new Date();
|
||||
var currentDateFormatted = currentDate.toISOString().split('T')[0];
|
||||
document.getElementById("active_labour_diagnosis_date_input").setAttribute("max", currentDateFormatted);
|
||||
</script>
|
||||
@endpush
|
||||
+333
@@ -0,0 +1,333 @@
|
||||
{{-- gravida para abortions --}}
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">
|
||||
<div class="card ">
|
||||
<div class="card-header "style="background-color:#e9ecef;color:#000000;">
|
||||
Overview of this labur ward admission
|
||||
</div>
|
||||
|
||||
<div class="card-body p-4">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12 col-xl-12 col-sm-12 col-xs-12">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-lg-6 col-sm-12 col-xl-6 col-xs-12">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ __('maternity.labour_onset') }}</th>
|
||||
<td class="text-start">
|
||||
@if (!empty($labour_ward_admission_details->labour_onset))
|
||||
@if ($labour_ward_admission_details->labour_onset == '1')
|
||||
{{ __('maternity.spontaneous') }}
|
||||
@elseif ($labour_ward_admission_details->labour_onset == '2')
|
||||
{{ __('maternity.induced') }}
|
||||
@endif
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.active_labour_diagnosis_date') }}</th>
|
||||
<td class="text-start">
|
||||
@if (!empty($labour_ward_admission_details->active_labour_diagnosis_date))
|
||||
{{ streamline_date_time_short($labour_ward_admission_details->active_labour_diagnosis_date) }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.membranes_raptured_at') }}</th>
|
||||
<td class="text-start">
|
||||
@if (!empty($labour_ward_admission_details->membranes_rapture_at))
|
||||
{{ streamline_date_time_short($labour_ward_admission_details->membranes_rapture_at) }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.gravida') }}</th>
|
||||
<td class="text-start">
|
||||
@if(isset($labour_ward_admission_details->gravida))
|
||||
{{ $labour_ward_admission_details->gravida }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.para') }}</th>
|
||||
<td class="text-start">
|
||||
@if (isset($labour_ward_admission_details->para))
|
||||
{{ $labour_ward_admission_details->para }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.abortion') }}</th>
|
||||
<td class="text-start">
|
||||
@if (isset($labour_ward_admission_details->abortions))
|
||||
{{ $labour_ward_admission_details->abortions }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.ectopic_pregnancies') }}</th>
|
||||
<td class="text-start">
|
||||
@if (isset($labour_ward_admission_details->ectopic_pregnancies))
|
||||
{{ $labour_ward_admission_details->ectopic_pregnancies }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('maternity.post_partum') }}</th>
|
||||
<td class="text-start">
|
||||
@if ($labour_ward_admission_details->post_partum == '1')
|
||||
Yes
|
||||
@endif
|
||||
@if ($labour_ward_admission_details->post_partum == '0')
|
||||
No
|
||||
@endif
|
||||
@if ($labour_ward_admission_details->post_partum == '')
|
||||
N/A
|
||||
@endif
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-lg-6 col-sm-12 col-xl-6 col-xs-12">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.history_of_aph') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$history_aph =
|
||||
$labour_ward_admission_details->history_of_aph ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if (isset($history_aph))
|
||||
@if ($history_aph == 1)
|
||||
{{ __('maternity.yes') }} ( @if (!empty($labour_ward_admission_details->history_aph_details))
|
||||
{{ $labour_ward_admission_details->history_aph_details }}
|
||||
@endif)
|
||||
@elseif($history_aph == 0)
|
||||
{{ __('maternity.no') }}
|
||||
@endif
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.history_of_fits') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$history_fits =
|
||||
$labour_ward_admission_details->history_of_fits ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if (!empty($history_fits))
|
||||
@if ($history_fits == '1')
|
||||
{{ __('maternity.yes') }} ( @if (!empty($labour_ward_admission_details->history_fit_details))
|
||||
{{ $labour_ward_admission_details->history_fit_details }}
|
||||
@endif)
|
||||
@elseif($history_fits == '0')
|
||||
{{ __('maternity.no') }}
|
||||
@endif
|
||||
@else
|
||||
<span>{{ __('maternity.no') }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.iufd') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$iufd = $labour_ward_admission_details->iufd ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if ($iufd == '1')
|
||||
Yes
|
||||
@endif
|
||||
@if ($iufd == '0')
|
||||
No
|
||||
@endif
|
||||
@if ($iufd == '')
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.born_before_arrival') }}</th>
|
||||
<td class="text-start">
|
||||
@php
|
||||
$born_before_arrival =
|
||||
$labour_ward_admission_details->born_before_arrival ?? 'N/A';
|
||||
@endphp
|
||||
|
||||
@if ($born_before_arrival == '1')
|
||||
Yes
|
||||
@endif
|
||||
@if ($born_before_arrival == '0')
|
||||
No
|
||||
@endif
|
||||
@if ($born_before_arrival == '')
|
||||
N/A
|
||||
@endif
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{ __('maternity.progress') }}</th>
|
||||
<td class="text-start">
|
||||
{{-- {{ isset($maternity_progress[$labour_ward_admission_details->progress]) ? $maternity_progress[$labour_ward_admission_details->progress] : '' }} --}}
|
||||
{{ isset($labour_ward_admission_details->progress) && isset($maternity_progress[$labour_ward_admission_details->progress]) ? $maternity_progress[$labour_ward_admission_details->progress] : '' }}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr rowspan="2" style="background-color:#e9ecef;color:#000000; ">
|
||||
<th colspan="2" style="color:#000000;">Other comments</th>
|
||||
|
||||
</tr>
|
||||
<tr rowspan="2">
|
||||
<td colspan="2">
|
||||
@if (!empty($labour_ward_admission_details->other_labour_comments))
|
||||
{{ $labour_ward_admission_details->other_labour_comments }}
|
||||
@else
|
||||
<span>{{ __('maternity.na') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr rowspan="2" style="background-color:#e9ecef;color:#000000; ">
|
||||
<th colspan="2" style="color:#000000;">
|
||||
{{ __('maternity.current_obstetric_risk_factors') }}
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
<tr rowspan="2">
|
||||
<td colspan="2" class="text-start">
|
||||
{{-- {{$labour_ward_admission_details->obstetric_risk_factors }} --}}
|
||||
@php
|
||||
$obstetric_risk_factors_all = [];
|
||||
if ($labour_ward_admission_details !== null) {
|
||||
$obstetric_risk_factors_all =
|
||||
json_decode(
|
||||
$labour_ward_admission_details->obstetric_risk_factors,
|
||||
) ?? [];
|
||||
}
|
||||
@endphp
|
||||
|
||||
|
||||
@foreach ($obstetric_risk_factors_all as $obstetric_risk_factor)
|
||||
@if ($obstetric_risk_factor == '1')
|
||||
{{ __('maternity.history_aph_pregnancy') }},
|
||||
{{-- <span c lass="badge badge-success" style="font-size:11px; text-transform: capitalize;">{{ __('maternity.history_aph_pregnancy') }}</span> --}}
|
||||
@elseif ($obstetric_risk_factor == '2')
|
||||
{{ __('maternity.epilepsy') }}
|
||||
{{-- <span class="badge badge-success" style="font-size:11px; text-transform: capitalize;">{{ __('maternity.epilepsy') }}</span> --}}
|
||||
@elseif ($obstetric_risk_factor == '3')
|
||||
{{ __('maternity.severe_pre_eclampsia') }},
|
||||
{{-- <span class="badge badge-success" style="font-size:11px; text-transform: capitalize;"> {{ __('maternity.severe_pre_eclampsia') }}</span> --}}
|
||||
@elseif ($obstetric_risk_factor == '4')
|
||||
{{ __('maternity.history_convulsion_pregnancy') }}
|
||||
{{-- <span class="badge badge-success" style="font-size:11px; text-transform: capitalize;"> {{ __('maternity.history_convulsion_pregnancy') }} </span> --}}
|
||||
@elseif ($obstetric_risk_factor == '5')
|
||||
{{ __('maternity.polyhydramnios') }},
|
||||
@elseif ($obstetric_risk_factor == '6')
|
||||
{{ __('maternity.premature_rupture_of_membranes') }},
|
||||
@elseif ($obstetric_risk_factor == '7')
|
||||
{{ __('maternity.diabetes_mellitus') }},
|
||||
@elseif ($obstetric_risk_factor == '8')
|
||||
{{ __('maternity.multiple_pregnancy') }},
|
||||
@elseif ($obstetric_risk_factor == '9')
|
||||
{{ __('maternity.pph') }},
|
||||
@elseif ($obstetric_risk_factor == '10')
|
||||
{{ __('maternity.cardiac_disease') }},
|
||||
@elseif ($obstetric_risk_factor == '11')
|
||||
{{ __('maternity.malpresentation') }},
|
||||
@elseif ($obstetric_risk_factor == '12')
|
||||
{{ __('maternity.asthma') }},
|
||||
@elseif ($obstetric_risk_factor == '13')
|
||||
{{ __('maternity.poor_obstetric_history') }},
|
||||
@elseif ($obstetric_risk_factor == '14')
|
||||
{{ __('maternity.pre_term_labour') }},
|
||||
@elseif ($obstetric_risk_factor == '15')
|
||||
{{ __('maternity.sickle_cell_disease') }},
|
||||
@elseif ($obstetric_risk_factor == '16')
|
||||
{{ __('maternity.previous_csections') }},
|
||||
@elseif ($obstetric_risk_factor == '17')
|
||||
{{ __('maternity.polio') }},
|
||||
@elseif ($obstetric_risk_factor == '18')
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }},
|
||||
@elseif ($obstetric_risk_factor == '19')
|
||||
{{ __('maternity.woman_advanced_age') }},
|
||||
@elseif ($obstetric_risk_factor == '20')
|
||||
{{ __('maternity.mental_illness') }},
|
||||
@elseif ($obstetric_risk_factor == '21')
|
||||
{{ __('maternity.adolescent_pregnancy') }},
|
||||
@elseif ($obstetric_risk_factor == '22')
|
||||
{{ __('maternity.hypertension') }},
|
||||
@elseif ($obstetric_risk_factor == '23')
|
||||
{{ __('maternity.kidney_disease') }},
|
||||
@elseif ($obstetric_risk_factor == '24')
|
||||
{{ __('maternity.other_obstetric_risk_factors') }}
|
||||
(@if (!empty($labour_ward_admission_details->other_obstetric_risk_factors))
|
||||
{{ $labour_ward_admission_details->other_obstetric_risk_factors }}
|
||||
@endif)
|
||||
@else
|
||||
{{-- <span>{{ __('maternity.na') }}</span> --}}
|
||||
@endif
|
||||
{{-- @if (!$loop->last)
|
||||
,
|
||||
@endif --}}
|
||||
@endforeach
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div> <br>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
|
||||
@push('styles')
|
||||
<style>
|
||||
.hr_line {
|
||||
background-color: #c2c3c3;
|
||||
height: 1px;
|
||||
margin: 2px 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* make table rows to fill full row on mobile */
|
||||
.table-row-full-width {
|
||||
padding: 10px;
|
||||
/* border: 1px solid #ccc; */
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-6 col-md-7 col-sm-7 col-xs-12">
|
||||
<h4 class="page-title">{{ __('maternity.details_for_labour_episode') }} :
|
||||
{{ streamline_date(get_name($episode_id, 'id', 'created_at', 'patient_episodes')) }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-sm-5 col-md-5 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('maternity.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('maternity.patient') }}</a></li>
|
||||
<li class="active">{{ __('maternity.labour_ward_admission_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
@if (session('update_inpatient'))
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert"
|
||||
style="width: 100%; padding-top:-8px;">
|
||||
{{ session('update_inpatient') }}
|
||||
{{-- <button type="button" class="close" data-dismiss="alert" aria-label="Close" style="margin-top:-5px;">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button> --}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11 text-right">
|
||||
{{-- <a href="{{ route('patient_episodes.index') }}" class="btn btn-success">
|
||||
<i class="fas fa-home"></i> {{ __('consultations.patient_home') }} </a> --}}
|
||||
|
||||
@if (Auth::user()->can('print-maternity-admission'))
|
||||
<a href="{{ route('maternity.print_labour_admission_sheet_details', $labour_ward_admission_details->id) }}"
|
||||
target="_blank" class="btn btn-success">
|
||||
<i class="fas fa-print"></i> Print</a>
|
||||
@endif
|
||||
|
||||
{{--
|
||||
|
||||
<a href="{{ route('maternity.edit_maternity_inpatient_admission') }}" class="btn btn-success">
|
||||
<i class="fas fa-edit"></i> Modify </a> --}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<h3 class="text-center"> {{ __('maternity.labour_ward_admission_details_for') }} <font style="color: blue">
|
||||
{{ get_full_name($patient->id, 'id', 'first_name', 'last_name', 'patients') }} </font> started on ,
|
||||
{{ streamline_date_time_short($labour_ward_admission_details->created_at) }}
|
||||
</h3>
|
||||
|
||||
|
||||
{{-- maternity admission details --}}
|
||||
@include('maternity::labour_ward.includes.labour_ward_admission_data')
|
||||
|
||||
{{-- buttons --}}
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11 text-right">
|
||||
@if (Auth::user()->can('edit-maternity-admission'))
|
||||
<a href="{{ route('maternity.edit_edit_labour_ward_admission') }}" class="btn btn-success">
|
||||
<i class="fas fa-edit"></i> Modify </a>
|
||||
@endcan
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
th {
|
||||
font-weight: bolder;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
+753
@@ -0,0 +1,753 @@
|
||||
@extends('layouts.main')
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.color-tr {
|
||||
background: #FFFF99;
|
||||
}
|
||||
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.table_no_padding td {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.alert-dismissible .close {
|
||||
position: relative;
|
||||
top: -0.5rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
/* previous consultations */
|
||||
table {
|
||||
/* border-collapse: collapse;
|
||||
width: 100%; */
|
||||
}
|
||||
|
||||
/* th, td {
|
||||
border: 1px solid #dddddd;
|
||||
text-align: left;
|
||||
padding: 8px;
|
||||
} */
|
||||
/* tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
} */
|
||||
.previous_consultation_details {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@endpush
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('inpatient.inpatient_sheet') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('inpatient.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('inpatient.patients') }}</a></li>
|
||||
<li class="active">{{ __('inpatient.inpatient_sheet') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<b> {{ __('maternity.labour_ward_adminssion_section') }}
|
||||
</b><br><br>
|
||||
<hr>
|
||||
{{-- FORM OPENING --}}
|
||||
{{-- {{ Form::open(['route' => 'maternity.store']) }} --}}
|
||||
<form action="{{ route('maternity.store_labour_ward_admission_sheet') }}" method="POST">
|
||||
@csrf()
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="labour_onset">{{ __('maternity.labour_onset') }}</label><br><br>
|
||||
<select name="labour_onset" class="form-select form-control">
|
||||
<option value="" {{ old('labour_onset') == 'null' ? 'selected' : '' }}> --
|
||||
Select
|
||||
-- </option>
|
||||
<option value="1" {{ old('spontaneous') == '1' ? 'selected' : '' }}>
|
||||
{{ __('maternity.spontaneous') }}</option>
|
||||
<option value="2" {{ old('induced') == '2' ? 'selected' : '' }}>
|
||||
{{ __('maternity.induced') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="active_labour_diagnosis_date">{{ __('maternity.active_labour_diagnosis_date') }}</label><br><br>
|
||||
<input type="date" name="active_labour_diagnosis_date"
|
||||
id="active_labour_diagnosis_date_input" placeholder="Specify" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4 col-xl-4 col-sm-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label
|
||||
for="membranes_rapture_at">{{ __('maternity.membranes_raptured_at') }}</label><br><br>
|
||||
<input type="datetime-local" name="membranes_rapture_at"
|
||||
id="membranes_rapture_at_input_date" placeholder="Add details" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- check data from anc or maternity --}}
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
// $anc_record_date = Carbon::parse($latest_anc_registration->created_at);
|
||||
$anc_record_date =
|
||||
$latest_anc_registration !== null
|
||||
? Carbon::parse($latest_anc_registration->created_at)
|
||||
: null;
|
||||
// $maternity_record_date = Carbon::parse($latest_existing_maternity_inpatient_data->created_at);
|
||||
$maternity_record_date =
|
||||
$latest_existing_maternity_inpatient_data !== null
|
||||
? Carbon::parse($latest_existing_maternity_inpatient_data->created_at)
|
||||
: null;
|
||||
|
||||
@endphp
|
||||
{{-- anc date is latest --}}
|
||||
@if ($anc_record_date > $maternity_record_date)
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from Ante-natal clinic
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control"
|
||||
@if (!empty($anc_registration->gravida)) value="{{ isset($anc_registration) ? $anc_registration->gravida : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control"
|
||||
@if (!empty($anc_registration->para)) value="{{ isset($anc_registration) ? $anc_registration->para : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control"
|
||||
@if (!empty($anc_registration->abortion)) value="{{ isset($anc_registration) ? $anc_registration->abortion : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control"
|
||||
@if (!empty($anc_registration->ectopic_pregnancies)) value="{{ isset($anc_registration) ? $anc_registration->ectopic_pregnancies : '' }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
@if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
{{-- @if (!empty($anc_registration->postpartum))
|
||||
{{ $anc_registration->postpartum == '0' ? 'checked' : '' }}
|
||||
@endif --}}
|
||||
@if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '0' ? 'checked' : '' }} @endif
|
||||
value="0">
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- marternity date is latest --}}
|
||||
@elseif ($anc_record_date < $maternity_record_date)
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from Maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->gravida)) value="{{ $latest_existing_maternity_inpatient_data->gravida }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->para)) value="{{ $latest_existing_maternity_inpatient_data->para }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->abortion)) value="{{ $latest_existing_maternity_inpatient_data->abortion }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->ectopic_pregnancies)) value="{{ $latest_existing_maternity_inpatient_data->ectopic_pregnancies }}"
|
||||
@else
|
||||
value="" @endif>
|
||||
</div>
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="postpartum"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}} {{-- @if (!empty($latest_existing_maternity_inpatient_data->postpartum)) {{ $latest_existing_maternity_inpatient_data->postpartum == '1' ? 'checked' : '' }} @endif --}} @checked($latest_existing_maternity_inpatient_data->postpartum == 1)
|
||||
value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
{{-- @if (!empty($latest_existing_maternity_inpatient_data->postpartum)) {{ $latest_existing_maternity_inpatient_data->postpartum == '0' ? 'checked' : '' }} @endif --}} @checked($latest_existing_maternity_inpatient_data->postpartum == 0) value="0">
|
||||
|
||||
|
||||
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- if data is not in maternity or anc --}}
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
No previous data in maternity or antenatal
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('gravida', __('maternity.gravida')) }}
|
||||
<input type="number" name="gravida" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('para', __('maternity.para')) }}
|
||||
<input type="number" name="para" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('abortions', __('maternity.abortion')) }}
|
||||
<input type="number" name="abortions" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('ectopic_pregnancies', __('maternity.ectopic_pregnancies')) }}
|
||||
<input type="number" name="ectopic_pregnancies" class="form-control" value="">
|
||||
</div>
|
||||
<div class="form-group col-sm-4 text-center">
|
||||
{{ Form::label('post_partum', __('maternity.post_partum')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="postpartum"
|
||||
{{-- @if (!empty($anc_registration->postpartum)) {{ $anc_registration->postpartum == '1' ? 'checked' : '' }} @endif --}} value="1">
|
||||
|
||||
<label class="form-check-label"
|
||||
for="postpartum">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="post_partum" type="radio" id="post_partum"
|
||||
value="0">
|
||||
<label class="form-check-label" for="post_partum">{{ __('maternity.no') }}</label>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
{{-- end of check data from anc or maternity --}}
|
||||
{{-- <hr> --}}
|
||||
{{-- aph and fits --}}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
{{ Form::label('history_of_aph', __('maternity.history_of_aph')) }}
|
||||
<br>
|
||||
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="show_aph_details_div" {{-- @checked($latest_existing_maternity_mother_history->history_of_aph == 1) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_aph)) @checked($latest_existing_maternity_mother_history->history_of_aph == 1) @endif
|
||||
{{-- @if ($latest_existing_maternity_mother_history && $latest_existing_maternity_mother_history->history_of_aph == 1)
|
||||
@checked(true)
|
||||
@else
|
||||
@checked(false)
|
||||
@endif --}} {{-- @if ($latest_existing_maternity_mother_history && $latest_existing_maternity_mother_history->history_of_aph == 1) selected @endif --}} value="1">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="history_of_aph" type="radio"
|
||||
id="hide_aph_details_div" {{-- @checked($latest_existing_maternity_mother_history->history_of_aph == 0) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_aph)) @checked($latest_existing_maternity_mother_history->history_of_aph == 0) @endif
|
||||
{{-- @if ($latest_existing_maternity_mother_history && $latest_existing_maternity_mother_history->history_of_aph == 0) selected @endif --}} value="0">
|
||||
<label class="form-check-label" for="history_of_aph">{{ __('maternity.no') }}</label>
|
||||
<div class="row" id="aph_details_div" style="display: none;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_aph_details', __('maternity.details')) }}
|
||||
<textarea name="history_aph_details" id="history_aph_details" rows="2">
|
||||
{{ isset($latest_existing_maternity_mother_history->history_aph_details) ? $latest_existing_maternity_mother_history->history_aph_details : '' }}
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
{{ Form::label('history_of_fits', __('maternity.history_of_fits')) }}
|
||||
<br>
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
{{-- @checked($latest_existing_maternity_mother_history->history_of_fits == 1) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_fits)) @checked($latest_existing_maternity_mother_history->history_of_fits == 1) @endif
|
||||
|
||||
id="show_fits_details_div"
|
||||
value="1">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="history_of_fits" type="radio"
|
||||
id="hide_fits_details_div"
|
||||
{{-- @checked($latest_existing_maternity_mother_history->history_of_fits == 0) --}}
|
||||
@if (isset($latest_existing_maternity_mother_history->history_of_fits)) @checked($latest_existing_maternity_mother_history->history_of_fits == 0) @endif
|
||||
|
||||
|
||||
value="0">
|
||||
<label class="form-check-label" for="history_of_fits">{{ __('maternity.no') }}</label>
|
||||
<div class="row" id="fits_details_div" style="display: none; margin-left:8px;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('history_fit_details', __('maternity.fits_details')) }}<br>
|
||||
<textarea name="history_fit_details" id="history_aph_details" rows="2">{{ isset($latest_existing_maternity_mother_history->history_fit_details) ? $latest_existing_maternity_mother_history->history_fit_details : '' }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('iufd', __('maternity.iufd')) }} <br>
|
||||
<input class="form-check-input" name="iufd" type="radio" id="show_iufd_alert_div"
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->iufd == 1) --}}
|
||||
@if (isset($latest_existing_maternity_inpatient_data->iufd)) @checked($latest_existing_maternity_inpatient_data->iufd == 1) @endif
|
||||
|
||||
value="1">
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="iufd" type="radio" id="hide_iufd_alert_div"
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->iufd == 0) --}}
|
||||
@if (isset($latest_existing_maternity_inpatient_data->iufd)) @checked($latest_existing_maternity_inpatient_data->iufd == 0) @endif
|
||||
|
||||
value="0">
|
||||
|
||||
<label class="form-check-label" for="iufd">{{ __('maternity.no') }}</label>
|
||||
<div class="row" id="iufd_alert_div" style="display: none;">
|
||||
<div class="alert alert-info "> {{ __('maternity.inform_medical_team_warning') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-lg-2 col-lg-2 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('born_before_arrival', __('maternity.born_before_arrival')) }} <br>
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
@if (isset($latest_existing_maternity_inpatient_data->born_before_arrival)) @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 1) @endif
|
||||
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 1) --}}
|
||||
value="1">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.yes') }}</label>
|
||||
<input class="form-check-input" name="born_before_arrival" type="radio"
|
||||
|
||||
{{-- @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 0) --}}
|
||||
@if (isset($latest_existing_maternity_inpatient_data->born_before_arrival)) @checked($latest_existing_maternity_inpatient_data->born_before_arrival == 0) @endif
|
||||
|
||||
|
||||
value="0">
|
||||
<label class="form-check-label"
|
||||
for="born_before_arrival">{{ __('maternity.no') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-lg-3 col-lg-3 col-sm-12 col-xs-12">
|
||||
<div class="form-group">
|
||||
{{ Form::label('progress', __('maternity.progress')) }}
|
||||
{{ Form::select('progress', $maternity_progress, '', ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label class="form-check-label" for="other_labour_comments">Other comments</label>
|
||||
<textarea class="form-control" name="other_labour_comments" cols="8" rows="4"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{-- risk factors --}}
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Data coming from maternity admission
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 col-xs-12"></div>
|
||||
</div>
|
||||
{{-- obstetric risk factors --}}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<label
|
||||
class="control-label strong">{{ __('maternity.mother_current_obstetric_risk') }}</label>
|
||||
<div class="controls">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('1', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? ('' ?? ''))) ? 'checked' : '' }}
|
||||
id="1" value="1" {{-- @if (is_array(old('1')) && in_array('1', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="1">
|
||||
{{ __('maternity.history_aph_pregnancy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('2', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="2" value="2" {{-- @if (is_array(old('2')) && in_array('2', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="2">
|
||||
{{ __('maternity.epilepsy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('3', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="3" value="3" {{-- @if (is_array(old('obstetric_risk_factors')) && in_array('3', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="3">
|
||||
{{ __('maternity.severe_pre_eclampsia') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('4', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="4" value="4" {{-- @if (is_array(old('obstetric_risk_factors')) && in_array('4', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="4">
|
||||
{{ __('maternity.history_convulsion_pregnancy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="5" value="5"
|
||||
{{ in_array('5', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
{{-- @if (is_array(old('obstetric_risk_factors')) && in_array('5', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="5">
|
||||
{{ __('maternity.polyhydramnios') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="premature_rupture_of_membranes" value="6"
|
||||
{{ in_array('6', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
{{-- @if (is_array(old('obstetric_risk_factors')) && in_array('6', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="6">
|
||||
{{ __('maternity.premature_rupture_of_membranes') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="7" value="7"
|
||||
{{ in_array('7', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
{{-- @if (is_array(old('obstetric_risk_factors')) && in_array('7', old('obstetric_risk_factors'))) checked @endif --}}>
|
||||
<label class="form-check-label" for="7">
|
||||
{{ __('maternity.diabetes_mellitus') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="8" value="8"
|
||||
{{ in_array('8', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('8', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="8">
|
||||
{{ __('maternity.multiple_pregnancy') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="9" value="9"
|
||||
{{ in_array('9', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('9', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="9">
|
||||
{{ __('maternity.pph') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="10" value="10"
|
||||
{{ in_array('10', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="10">
|
||||
{{ __('maternity.cardiac_disease') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="11" value="11"
|
||||
{{ in_array('11', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('11', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="11">
|
||||
{{ __('maternity.malpresentation') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('12', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="12" value="12">
|
||||
<label class="form-check-label" for="12">
|
||||
{{ __('maternity.asthma') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="13" value="13"
|
||||
{{ in_array('13', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="13">
|
||||
{{ __('maternity.poor_obstetric_history') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="14" value="14"
|
||||
{{ in_array('14', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="14">
|
||||
{{ __('maternity.pre_term_labour') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="15" value="15"
|
||||
{{ in_array('15', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="15">
|
||||
{{ __('maternity.sickle_cell_disease') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="16" value="16"
|
||||
{{ in_array('16', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="16">
|
||||
{{ __('maternity.previous_csections') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" value="17"
|
||||
{{ in_array('17', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="17">
|
||||
{{ __('maternity.polio') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('18', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="18" value="18">
|
||||
<label class="form-check-label" for="18">
|
||||
{{ __('maternity.group_b_streptococcus_colonization') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="19" value="19"
|
||||
{{ in_array('19', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('19', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="19">
|
||||
{{ __('maternity.woman_advanced_age') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="20" value="20"
|
||||
{{ in_array('20', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('20', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="20">
|
||||
{{ __('maternity.mental_illness') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="21" value="21"
|
||||
{{ in_array('21', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('21', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="21">
|
||||
{{ __('maternity.adolescent_pregnancy') }} </label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="22" value="22"
|
||||
{{ in_array('22', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="22">
|
||||
{{ __('maternity.hypertension') }}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox" id="23" value="23"
|
||||
{{ in_array('23', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
@if (is_array(old('obstetric_risk_factors')) && in_array('23', old('obstetric_risk_factors'))) checked @endif>
|
||||
<label class="form-check-label" for="23">
|
||||
{{ __('maternity.kidney_disease') }} </label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-check-input" name="obstetric_risk_factors[]"
|
||||
type="checkbox"
|
||||
{{ in_array('24', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? 'checked' : '' }}
|
||||
id="show_other_obstetric_risk_factors_input" value="24">
|
||||
<label class="form-check-label" for="24">
|
||||
{{ __('maternity.other') }} </label>
|
||||
<div id="other_obstetric_risk_factors_input"
|
||||
style="{{ in_array('24', explode(',', $latest_existing_maternity_inpatient_data->obstetric_risk_factors ?? '')) ? '' : 'display:none;' }}">
|
||||
<input style="margin-top:10px;" type="text"
|
||||
name="other_obstetric_risk_factors" placeholder="Add risk factor"
|
||||
value="{{ isset($latest_existing_maternity_inpatient_data->other_obstetric_risk_factors) ? $latest_existing_maternity_inpatient_data->other_obstetric_risk_factors : '' }}"
|
||||
class="form-control">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- SUBMIT BUTTON --}}
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-right " style="padding: 0 10px;">
|
||||
{{-- {{ Form::button(__('maternity.submit_form'), ['type' => 'submit', 'value' => 'submit_maternity_admission', 'name' => 'submit-btn', 'id' => 'submit-btn', 'class' => 'btn btn-success', 'style' => 'float:right;']) }} --}}
|
||||
{{-- <button type="submit" class="btn btn-success" ><i class="fas fa-save"></i> --}}
|
||||
<button type="submit" class="btn btn-default" value="save_labour_ward_admission"
|
||||
name="submit-btn"><i class="fas fa-save"></i> {{ __('maternity.save_draft') }}</button>
|
||||
<button type="submit" class="btn btn-success" value="complete" name="submit-btn"><i
|
||||
class="fas fa-save"></i> {{ __('maternity.submit_and_complete') }}</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{-- {{ Form::hidden('pregnancy_number', 0, ['id' => 'pregnancy_number']) }}
|
||||
{{ Form::close() }} --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
{{-- scrips --}}
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<!-- pull in select2 for auto searchanble drop downs -->
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
{{-- <script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script> --}}
|
||||
<script>
|
||||
//fit details
|
||||
$('#show_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').show();
|
||||
});
|
||||
$('#hide_fits_details_div').click(function(e) {
|
||||
$('#fits_details_div').hide();
|
||||
});
|
||||
// aph details
|
||||
$('#show_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').show();
|
||||
});
|
||||
$('#hide_aph_details_div').click(function(e) {
|
||||
$('#aph_details_div').hide();
|
||||
});
|
||||
// other obstetric factors additional input
|
||||
document
|
||||
.getElementById('show_other_obstetric_risk_factors_input')
|
||||
.addEventListener('change', function() {
|
||||
var inputContainer = document.getElementById(
|
||||
'other_obstetric_risk_factors_input'
|
||||
);
|
||||
if (this.checked) {
|
||||
inputContainer.style.display = 'block';
|
||||
} else {
|
||||
inputContainer.style.display = 'none';
|
||||
}
|
||||
});
|
||||
// PPH and Fits
|
||||
// {{-- history of aph : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="aph_details_div"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleAphDetails(this.value);
|
||||
});
|
||||
});
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleAphDetails(value) {
|
||||
var aphDetailsDiv = document.getElementById('aph_details_div');
|
||||
var textarea = document.getElementById('history_aph_details');
|
||||
if (value == 1) {
|
||||
aphDetailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
aphDetailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
// Initial check on page load
|
||||
toggleAphDetails(document.querySelector('input[name="history_of_aph"]:checked').value);
|
||||
// {{-- history of fits : show selected radio details --}}
|
||||
// Add an event listener to handle radio button changes
|
||||
document.querySelectorAll('input[name="history_of_fits"]').forEach(function(radio) {
|
||||
radio.addEventListener('change', function() {
|
||||
toggleFitsDetails(this.value);
|
||||
});
|
||||
});
|
||||
// Function to toggle details based on the selected radio button
|
||||
function toggleFitsDetails(value) {
|
||||
var detailsDiv = document.getElementById('fits_details_div');
|
||||
var textarea = document.getElementById('history_fit_details');
|
||||
if (value == 1) {
|
||||
detailsDiv.style.display = 'block';
|
||||
textarea.style.display = 'block';
|
||||
} else {
|
||||
detailsDiv.style.display = 'none';
|
||||
textarea.style.display = 'none';
|
||||
}
|
||||
}
|
||||
// Initial check on page load
|
||||
toggleFitsDetails(document.querySelector('input[name="history_of_fits"]:checked').value);
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// prevent future date and time
|
||||
var currentDate = new Date();
|
||||
var currentDateTime = currentDate.toISOString().slice(0, 16);
|
||||
document.getElementById("membranes_rapture_at_input_date").setAttribute("max", currentDateTime);
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
{{-- prevent future active labour diagnosis date --}}
|
||||
<script>
|
||||
var currentDate = new Date();
|
||||
var currentDateFormatted = currentDate.toISOString().split('T')[0];
|
||||
document.getElementById("active_labour_diagnosis_date_input").setAttribute("max", currentDateFormatted);
|
||||
</script>
|
||||
@endpush
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16"
|
||||
href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
/*font-size: 1.2em;*/
|
||||
}
|
||||
|
||||
thead {
|
||||
/*display: table-header-group;*/
|
||||
}
|
||||
|
||||
tfoot {
|
||||
/*display: table-row-group;*/
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
{{-- header include print --}}
|
||||
@include('layouts.header_pdf_print')
|
||||
|
||||
<h5 class="heading" style="text-align: center;">{{ __('maternity.labour_ward_admission_heading_print') }}</h5>
|
||||
|
||||
|
||||
<table class="table table-light table-sm table-borderless">
|
||||
<tr>
|
||||
<th width="20%">{{ __('patient_file.patient_number') }}</th>
|
||||
<td width="30%">{{ $patient->number }}</td>
|
||||
<th width="15%" scope="row">{{ __('patient_file.category') }}</th>
|
||||
<td>
|
||||
{{ get_name($patient->category_id, 'id', 'name', 'patient_categories') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('patient_file.patient_names') }}</th>
|
||||
<td>{{ $patient->first_name }} {{ $patient->last_name }}</td>
|
||||
<th scope="row">{{ __('patient_file.residence') }}</th>
|
||||
<td>{{ patient_residence($patient->id) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{{ __('patient_file.age') }}</th>
|
||||
<td><?php echo \Carbon\Carbon::parse($patient->date_of_birth)->age; ?> {{ __('patient_file.years') }}</td>
|
||||
<th scope="row">{{ __('patient_file.gender') }}</th>
|
||||
<td><?php echo $patient->gender == 1 ? __('patient_file.male') : __('patient_file.female'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('patient_file.episode_date') }}</th>
|
||||
<td><?php echo \Carbon\Carbon::parse($episode->created_at)->format('d M Y h:i a'); ?></td>
|
||||
<th scope="row">{{ __('patient_file.outcome') }}</th>
|
||||
<td>
|
||||
@if ($consultation && !is_null($consultation->outcome_id))
|
||||
@if ($consultation->outcome_id == 3)
|
||||
{{ $outcomes[$consultation->outcome_id] . ' on (' . streamline_date($consultation->followup_when) . ')' }}
|
||||
@elseif($consultation->outcome_id == 5)
|
||||
<code>
|
||||
{{ $outcomes[$consultation->outcome_id] . ' on (' . streamline_date($consultation->died_on) . ')' }}
|
||||
</code>
|
||||
@else
|
||||
{{ $outcomes[$consultation->outcome_id] ?? '' }}
|
||||
@endif
|
||||
@elseif (!empty($antenatal_data->outcome_id))
|
||||
@if ($antenatal_data->outcome_id == 3)
|
||||
{{ $outcomes[$antenatal_data->outcome_id] . ' on (' . streamline_date($antenatal_data->followup_when) . ')' }}
|
||||
@elseif($antenatal_data->outcome_id == 5)
|
||||
<code>
|
||||
{{ $outcomes[$antenatal_data->outcome_id] . ' on (' . streamline_date($antenatal_data->died_on) . ')' }}
|
||||
</code>
|
||||
@else
|
||||
{{ $outcomes[$antenatal_data->outcome_id] ?? '' }}
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr>
|
||||
|
||||
|
||||
{{-- maaternity admission details --}}
|
||||
@include('maternity::labour_ward.includes.labour_ward_admission_data')
|
||||
|
||||
{{-- stamp --}}
|
||||
@if (is_add_stamp_feature_enabled() && !empty($hospitalInfo->stamp))
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center">
|
||||
<img style="max-width: 300px; max-height: 150px;" src="{{ asset($hospitalInfo->stamp) }}"
|
||||
class="img-fluid mx-auto d-block mx-3" alt="{{ $hospitalInfo->name }} stamp">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user