diff --git a/app/Includes/commonfunctions.php b/app/Includes/commonfunctions.php new file mode 100644 index 00000000..b8496494 --- /dev/null +++ b/app/Includes/commonfunctions.php @@ -0,0 +1,714 @@ +"; + print_r($obj); + echo "

"; +} +/** + * Print the Doctrine management entity + * + * @param Object $obj The object to be printed + +function debugEntity($obj) { + echo "
"; + \Doctrine\Common\Util\Debug::dump($obj); + echo "

"; +}*/ + +/** + * Merge the arrays passed to the function and keep the keys intact. + * If two keys overlap then it is the last added key that takes precedence. + * + * @return Array the merged array + */ +function array_merge_maintain_keys() { + $args = func_get_args(); + $result = array(); + foreach ( $args as &$array ) { + foreach ( $array as $key => &$value ) { + $result[$key] = $value; + } + } + return $result; +} + +# function that trims every value of an array +function trim_value(&$value) { + $value = trim($value); +} + +/** + * Recursively Remove empty values from an array. If any of the keys contains an + * array, the values are also removed. + * + * @param Array $input The array + * @return Array with the specified values removed or the filtered values + */ +function array_remove_empty($arr) { + $narr = array(); + while ( list ($key, $val) = each($arr) ) { + if (is_array($val)) { + $val = array_remove_empty($val); + // does the result array contain anything? + if (count($val) != 0) { + // yes :-) + $narr[$key] = $val; + } + } else { + if (! isEmptyString($val)) { + $narr[$key] = $val; + } + } + } + unset($arr); + return $narr; + +} + + +/** + * Wrapper function for the encoding of the urls using base64_encode + * + * @param String $str The string to be encoded + * @return String The encoded string + */ +function encode($str) { + return base64_encode($str); +} +/** + * Wrapper function for the decoding of the urls using base64_decode + * + * @param String $str The string to be decoded + * @return String The encoded string + */ +function decode($str) { + return base64_decode($str); +} + +/** + * Function to generate a JSON string from an array of data, using the keys and values + * + * @param $data The data to be converted into a string + * @param $default_option_value Value of the default option + * @param $default_option_text Test for the default + * + * @return the JSON string containing the select options + */ +function generateJSONStringForSelectChain($data, $default_option_value = "", $default_option_text = "id) ? 'checked' : ''}}> + {{ $record->item->name.'('.(count($record->usage)>0?$record->quantity_ordered-$record->issued():$record->quantity_ordered).') - '.$record->testCategory->name.'('.($record->remarks?$record->remarks:$record->user->name).')' }} + + + @endforeach + +
+ {{ Form::label('issued-by', trans('messages.issued-by')) }} + {{ Form::text('issued_by', Input::old('issued_by'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('received-by', trans('messages.received-by')) }} + {{ Form::text('received_by', Input::old('received_by'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('remarks', trans("messages.remarks")) }} + {{ Form::textarea('remarks', Input::old('remarks'), array('class' => 'form-control', 'rows' => '2')) }} +
+ +
+ {{ Form::button(" ".trans('messages.update'), + array('class' => 'btn btn-primary', 'onclick' => 'submit()')) }} +
+ {{ Form::close() }} + +
+ +
+ + +@stop diff --git a/app/views/inventory/stock/show.blade.php b/app/views/inventory/stock/show.blade.php new file mode 100644 index 00000000..d4661966 --- /dev/null +++ b/app/views/inventory/stock/show.blade.php @@ -0,0 +1,76 @@ +@extends("layout") +@section("content") + +@if (Session::has('message')) +
{{ trans(Session::get('message')) }}
+@endif + +
+ +
+
+
+ + {{ Lang::choice('messages.stock', 1).' '.trans('messages.details') }} +
+
+
+
    +
  • {{ $stock->item->name }}
  • +
  • +
    + {{ trans("messages.lot-no").': ' }} {{ $stock->lot }} + {{ trans("messages.available-qty").': ' }} {{ $stock->quantity() }} + {{ trans("messages.min-level").': ' }} {{ $stock->item->min_level }} + {{ trans("messages.max-level").': ' }} {{ $stock->item->max_level }} +
    +
  • +
+
+
+ + + + + + + + + + + + + + + @foreach($stock->usage as $key => $value) + id)?"class='info'":""}} + @endif + > + + + + + + + + + + + @endforeach + +
{{ trans('messages.id') }}{{ trans('messages.signed-out') }}{{ trans('messages.date-of-usage') }}{{ trans('messages.destination') }}{{ trans('messages.issued-by') }}{{ trans('messages.received-by') }}{{ trans('messages.remarks') }}{{ trans('messages.actions') }}
{{ $value->id }}{{ $value->quantity_used }}{{ $value->date_of_usage }}{{ $value->request->testCategory->name }}{{ $value->issued_by }}{{ $value->received_by }}{{ $value->remarks }} + id . "/lot") }}" > + + {{ trans('messages.edit') }} + +
+
+
+
+ {{ Session::put('SOURCE_URL', URL::full()) }} +@stop \ No newline at end of file diff --git a/app/views/inventory/stock/usage.blade.php b/app/views/inventory/stock/usage.blade.php new file mode 100644 index 00000000..dd909205 --- /dev/null +++ b/app/views/inventory/stock/usage.blade.php @@ -0,0 +1,78 @@ +@extends("layout") +@section("content") +
+ +
+@if (Session::has('message')) +
{{ trans(Session::get('message')) }}
+@endif +@if($errors->all()) +
+ {{ HTML::ul($errors->all()) }} +
+@endif +
+
+ + {{ trans('messages.stock-usage') }} +
+
+
+ {{ Form::open(array('route' => array('stock.saveUsage', $stock->id), 'method' => 'POST')) }} + {{ Form::hidden('stock_id', $stock->id) }} +
+ {{ Form::label('signed-out', trans('messages.signed-out')) }} + {{ Form::text('quantity_used', Input::old('quantity_used'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('date-of-usage', trans('messages.date-of-usage')) }} + {{ Form::text('date_of_usage', Input::old('date_of_usage'), + array('class' => 'form-control standard-datepicker')) }} +
+
+ {{ Form::label('request', Lang::choice('messages.top-up', 1)) }} + @foreach($requests as $request) + @if( (count($request->usage)>0 && ($request->quantity_ordered-$request->issued())>0) || count($request->usage)==0) +
+ +
+ @endif + @endforeach +
+
+ {{ Form::label('issued-by', trans('messages.issued-by')) }} + {{ Form::text('issued_by', Input::old('issued_by'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('received-by', trans('messages.received-by')) }} + {{ Form::text('received_by', Input::old('received_by'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('remarks', trans("messages.remarks")) }} + {{ Form::textarea('remarks', Input::old('remarks'), array('class' => 'form-control', 'rows' => '2')) }} +
+ +
+ {{ Form::button(" ".trans('messages.save'), + array('class' => 'btn btn-primary', 'onclick' => 'submit()')) }} +
+ {{ Form::close() }} +
+
+
    +
  • {{ Lang::choice('messages.item', 1).': '.$stock->item->name }}
  • +
  • {{ trans("messages.unit").': ' }}{{ $stock->item->unit }}
  • +
  • {{ trans('messages.lot-no').': ' }}{{ $stock->lot }}
  • +
  • {{ trans('messages.available-qty').': ' }}{{ $stock->quantity() }}
  • +
+
+
+
+@stop diff --git a/app/views/inventory/supplier/create.blade.php b/app/views/inventory/supplier/create.blade.php new file mode 100644 index 00000000..828e7acc --- /dev/null +++ b/app/views/inventory/supplier/create.blade.php @@ -0,0 +1,51 @@ +@extends("layout") +@section("content") +
+ +
+@if (Session::has('message')) +
{{ trans(Session::get('message')) }}
+@endif +@if($errors->all()) +
+ {{ HTML::ul($errors->all()) }} +
+@endif +
+
+ + {{ Lang::choice('messages.supplier', 2) }} +
+
+ {{ Form::open(array('route' => 'supplier.store', 'id' => 'form-store_suppliers')) }} + +
+ {{ Form::label('name', Lang::choice('messages.name', 1)) }} + {{ Form::text('name', Input::old('name'), array('class' => 'form-control', 'rows' => '2')) }} +
+
+ {{ Form::label('phone', trans('messages.phone')) }} + {{ Form::text('phone', Input::old('phone'),array('class' => 'form-control', 'rows' => '2')) }} +
+
+ {{ Form::label('email', trans('messages.email')) }} + {{ Form::text('email', Input::old('email'),array('class' => 'form-control', 'rows' => '2')) }} +
+
+ {{ Form::label('address', trans('messages.address')) }} + {{ Form::textarea('address', Input::old('address'), array('class' => 'form-control', 'rows' => '2')) }} +
+ +
+ {{ Form::button(" ".trans('messages.save'), + array('class' => 'btn btn-primary', 'onclick' => 'submit()')) }} +
+ {{ Form::close() }} +
+ +
+@stop diff --git a/app/views/inventory/supplier/edit.blade.php b/app/views/inventory/supplier/edit.blade.php new file mode 100644 index 00000000..0951a5b4 --- /dev/null +++ b/app/views/inventory/supplier/edit.blade.php @@ -0,0 +1,51 @@ +@extends("layout") +@section("content") +
+ +
+@if (Session::has('message')) +
{{ trans(Session::get('message')) }}
+@endif +@if($errors->all()) +
+ {{ HTML::ul($errors->all()) }} +
+@endif +
+
+ + {{ Lang::choice('messages.supplier',2) }} +
+
+ {{ Form::model($suppliers, array('route' => array('supplier.update', $suppliers->id), 'method' => 'PUT', + 'id' => 'form-edit-suppliers')) }} +
+ {{ Form::label('name', Lang::choice('messages.name', 1)) }} + {{ Form::text('name', Input::old('name'), array('class' => 'form-control', 'rows' => '2')) }} +
+ +
+ {{ Form::label('phone', trans('messages.phone-number')) }} + {{ Form::text('phone', Input::old('phone'),array('class' => 'form-control', 'rows' => '2')) }} +
+
+ {{ Form::label('email', trans('messages.email')) }} + {{ Form::text('email', Input::old('email'),array('class' => 'form-control', 'rows' => '2')) }} +
+
+ {{ Form::label('address', trans('messages.physical-address')) }} + {{ Form::textarea('address', Input::old('address'), array('class' => 'form-control', 'rows' => '2')) }} +
+
+ {{ Form::button(" ".trans('messages.save'), + array('class' => 'btn btn-primary', 'onclick' => 'submit()')) }} +
+ {{ Form::close() }} +
+ +
+@stop \ No newline at end of file diff --git a/app/views/inventory/supplier/index.blade.php b/app/views/inventory/supplier/index.blade.php new file mode 100644 index 00000000..c420df90 --- /dev/null +++ b/app/views/inventory/supplier/index.blade.php @@ -0,0 +1,71 @@ +@extends("layout") +@section("content") +
+ +
+@if (Session::has('message')) +
{{ trans(Session::get('message')) }}
+@endif +
+
+ + {{ Lang::choice('messages.supplier', 2) }} + +
+
+ + + + + + + + + + + + @foreach($suppliers as $key => $value) + id)?"class='info'":""}} + @endif + > + + + + + + + + @endforeach + +
{{ Lang::choice('messages.name', 1) }}{{ Lang::choice('messages.phone', 1) }}{{ Lang::choice('messages.address', 1) }}{{ Lang::choice('messages.email', 1) }}{{ trans('messages.actions') }}
{{ $value->name }}{{ $value-> phone }}{{ $value->address }}{{ $value->email }} + + id) }}" > + + {{ trans('messages.view') }} + + + + + {{ trans('messages.edit') }} + + + +
+ {{ Session::put('SOURCE_URL', URL::full()) }} +
+
+@stop \ No newline at end of file diff --git a/app/views/inventory/supplier/show.blade.php b/app/views/inventory/supplier/show.blade.php new file mode 100644 index 00000000..9889af14 --- /dev/null +++ b/app/views/inventory/supplier/show.blade.php @@ -0,0 +1,39 @@ +@extends("layout") +@section("content") + +@if (Session::has('message')) +
{{ trans(Session::get('message')) }}
+@endif + +
+ +
+
+
+ + {{ Lang::choice('messages.supplier', 1).' '.trans('messages.details') }} + +
+
+
+

{{ Lang::choice('messages.name', 1) }}:{{ $supplier->name }}

+

{{ trans('messages.phone') }}: + {{ $supplier->phone }}

+

{{ trans('messages.email') }}: + {{ $supplier->email }}

+

{{ trans('messages.address') }}: + {{ $supplier->address }}

+ +
+
+
+@stop \ No newline at end of file diff --git a/app/views/layout-menu.blade.php b/app/views/layout-menu.blade.php index 4edcd5b7..c0ee87e2 100755 --- a/app/views/layout-menu.blade.php +++ b/app/views/layout-menu.blade.php @@ -12,6 +12,7 @@ + @@ -21,6 +22,7 @@ + diff --git a/app/views/layout.blade.php b/app/views/layout.blade.php index 77ef20fe..4344e3e1 100755 --- a/app/views/layout.blade.php +++ b/app/views/layout.blade.php @@ -12,6 +12,7 @@ + @@ -21,6 +22,7 @@ + diff --git a/app/views/microbio/create.blade.php b/app/views/microbio/create.blade.php new file mode 100644 index 00000000..b00438b2 --- /dev/null +++ b/app/views/microbio/create.blade.php @@ -0,0 +1,316 @@ +@extends("layout") +@section("content") +
+ +
+ +
+
+ + {{trans('Recieve Specimen')}} +
+
+ + + @if($errors->all()) +
+ {{ HTML::ul($errors->all()) }} +
+ @endif + {{ Form::open(array('url' => 'microbiology', 'id' => 'form-create-micro')) }} + +
+
+
+
+ +
+
+
+ {{ Form::label('patient_name','Patient Name', array('text-align' => 'right', 'class' => 'required')) }} + {{ Form::text('patient_name', Input::old('patient_name'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('ulin', trans('messages.ulin'), array('class' => 'required')) }} + @if($ulinFormat == 'Manual') + {{ Form::text('ulin', Input::old('ulin'),array('class' => 'form-control')) }} + @else + {{ Form::text('ulin', '', + array('class' => 'form-control', 'readonly' =>'true', 'placeholder' => 'Auto generated upon succesfull save!')) }} + @endif +
+
+
+
+ {{ Form::label('gender', trans('messages.sex'), array('class' => 'required')) }} +
{{ Form::radio('gender', '0', true) }} + {{trans('messages.male')}}
+
{{ Form::radio("gender", '1', false) }} + {{trans('messages.female')}}
+
+
+ {{ Form::label('nationality', trans('Nationality')) }} + {{ Form::select('nationality', [' ' => '--- Select Nationality ---', + '0' => trans('National'),'1' => trans('Refugee'),'2' => trans('Foreigner')], null, + array('class' => 'form-control')) }} +
+
+
+ +
+ {{ Form::label('dob','Date Of Birth', array('class' => 'required')) }} + {{ Form::text('dob', Input::old('dob'), array('class' => 'form-control input-sm')) }} +
+
+ + + +
+
+
+
+ {{ Form::label('phone_number', trans('messages.phone-number')) }} + {{ Form::text('phone_number', Input::old('phone_number'), array('class' => 'form-control', 'placeholder' => 'Patient phone number')) }} +
+
+ {{ Form::label('visit_type', trans("messages.visit-type")) }} + {{ Form::select('visit_type', [' ' => '--- Select visit type ---', + '0' => trans("messages.out-patient"),'1' => trans("messages.in-patient"),'2' => trans("messages.refferrals")], null, + array('class' => 'form-control')) }} +
+
+ {{ Form::label('facility','Facility Name:') }} + {{ Form::select('facility', $facilities, Input::get('facility'), array('class' => 'form-control')) }} +
+
+
+
+ {{ Form::label('ward','Ward/Clinic/Health Unit') }} + {{ Form::select('ward', $ward, Input::get('ward_id'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('bed_no','Bed No:', array('text-align' => 'right')) }} + {{ Form::text('bed_no', Input::old('bed_no'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('facility_lab_number','Facility Lab No:', array('text-align' => 'right')) }} + {{ Form::text('facility_lab_number', Input::old('facility_lab_number'), array('class' => 'form-control')) }} +
+
+
+
+
+
+ {{ Form::label('district_residence', 'District of Residence') }} + {{ Form::select('district_residence', $districts, Input::get('district_residence'),['class' => 'form-control']) }} +
+
+ {{ Form::label('sub_county_residence', 'Sub County of Residence') }} + {{ Form::text('sub_county_residence', Input::old('sub_county_residence'), array('class' => 'form-control', 'placeholder' => 'sub county of residence')) }} +
+
+ {{ Form::label('village_residence', 'Village of Residence') }} + {{ Form::text('village_residence', Input::old('village_residence'), array('class' => 'form-control', 'placeholder' => 'village of residence')) }} +
+
+
+
+ {{ Form::label('district_workplace', 'District of Work Place') }} + {{ Form::select('district_workplace', $districts, Input::get('district_workplace'),['class' => 'form-control']) }} +
+
+ {{ Form::label('sub_county_workplace', 'Sub County of Work Place') }} + {{ Form::text('sub_county_workplace', Input::old('sub_county_workplace'), array('class' => 'form-control', 'placeholder' => 'sub county of workplace')) }} +
+
+ {{ Form::label('village_workplace', trans('messages.workplace-village')) }} + {{ Form::text('village_workplace', Input::old('village_workplace'), array('class' => 'form-control', 'placeholder' => 'village of workplace')) }} +
+
+
+ {{"Next of Kin Details"}} +
+
+
+ {{ Form::label('name_next_kin', 'Name') }} + {{ Form::text('name_next_kin', Input::old('name_next_kin'), array('class' => 'form-control')) }} +
+
+
+
+ {{ Form::label('contact_next_kin', 'Contact Number') }} + {{ Form::text('contact_next_kin', Input::old('contact_next_kin'), array('class' => 'form-control')) }} +
+
+
+
+

{{"Clinical Information"}}

+
+
+
+
+ {{ Form::label('admission_date', 'Admission Date') }} + {{ Form::text('admission_date', Input::old('admission_date'), array('class' => 'form-control standard-datepicker', 'placeholder' => 'Ignore if not admitted')) }} +
+
+
+
+ {{ Form::label('facility_transfered', 'Facility Patient transfered from') }} + {{ Form::text('facility_transfered', Input::old('facility_transfered'), array('class' => 'form-control')) }} +
+
+
+
+ {{ Form::label('hospitalized', 'Hospitalized for more than 48 hours') }} +
{{ Form::radio('hospitalized', '1', false) }} + Yes
+
{{ Form::radio("hospitalized", '0', false) }} + No
+
+
+ {{ Form::label('onAntibiotics', 'Has the patient been on antibiotics during the infection') }} +
{{ Form::radio('onAntibiotics', '1', false) }} + Yes
+
{{ Form::radio("onAntibiotics", '0', false) }} + No
+
+
+ {{ Form::label('transfered', 'Patient transferred from another health facility?') }} +
{{ Form::radio('transfered', '1', false) }} + Yes
+
{{ Form::radio("transfered", '0', false) }} + No
+
+ +
+
+
+ {{ Form::label('requested_by', 'Requested By') }} + {{Form::text('requested_by', Input::old('physician'), array('class' => 'form-control'))}} +
+
+ {{ Form::label('phone_contact', 'Phone Contact') }} + {{Form::text('phone_contact', Input::old('phone_contact'), array('class' => 'form-control'))}} +
+
+
+
+ {{ Form::label('clinical_notes', 'Clinical Notes') }} + {{Form::textarea('clinical_notes', Input::old('physician'), array('class' => 'form-control', 'rows'=>'2', 'placeholder' => 'Provisional diagnosis'))}} +
+
+
+
+

{{"Specimen Details"}}

+
+
+
+ {{ Form::label('testpurpose', 'Purpose of Test') }} + {{Form::select('testpurpose', $testpurpose, Input::old('testpurpose'), ['class' => 'form-control']) }} +
+
+
+
+
+ {{Form::label('specimen_type', 'Sample Type')}} + {{ Form::select('specimen_type', $specimenType, + Input::get('specimenType'), ['class' => 'form-control specimen-type']) }} +
+
+ + +
+
+ + +
+
+ {{Form::label('test_type_category', 'Lab Section')}} + {{ Form::select('test_type_category', $testCategory, Input::get('testCategory'), + ['class' => 'form-control test-type-category']) }} +
+
+
+
+ +
+
+
+
+ Specimen +
+
+ Lab Section +
+
+
Test
+
+
+
+
+
+ {{ Form::button(" ".trans('messages.save-test'), + ['class' => 'btn btn-primary', 'onclick' => 'submit()', 'alt' => 'save_new_test']) }} +
+
+ + +
+
+
+ {{ Form::close() }} +
+
+ +@stop \ No newline at end of file diff --git a/app/views/microbio/edit.blade.php b/app/views/microbio/edit.blade.php new file mode 100644 index 00000000..07fa683a --- /dev/null +++ b/app/views/microbio/edit.blade.php @@ -0,0 +1,311 @@ +@extends("layout") +@section("content") +
+ +
+
+
+ + {{trans('Edit Specimen')}} +
+
+ + + @if($errors->all()) +
+ {{ HTML::ul($errors->all()) }} +
+ @endif + {{ Form::model($patient, array('route' => array('microbio.update', $patient->id), 'method' => 'PUT', + 'id' => 'form-edit-patient')) }} + +
+
+
+
+ +
+
+
+ {{ Form::label('patient_name','Patient Name', array('text-align' => 'right', 'class' => 'required')) }} + {{ Form::text('patient_name', $patient->name, array('class' => 'form-control')) }} +
+
+ {{ Form::label('ulin', trans('messages.ulin'), array('class' => 'required')) }} + {{ Form::text('ulin', $patient->ulin, array('class' => 'form-control', 'readonly' =>'true')) }} +
+
+
+
+ {{ Form::label('gender', trans('messages.sex'), array('class' => 'required')) }} +
{{ Form::radio('gender', '0', true) }} + {{trans('messages.male')}}
+
{{ Form::radio("gender", '1', false) }} + {{trans('messages.female')}}
+
+
+ {{ Form::label('nationality', trans('Nationality')) }} + {{ Form::select('nationality', [' ' => '--- Select Nationality ---', + '0' => trans('National'),'1' => trans('Refugee'),'2' => trans('Foreigner')], $patient->nationality, + array('class' => 'form-control')) }} +
+
+
+ +
+ {{ Form::label('dob','Date Of Birth', array('class' => 'required')) }} + {{ Form::text('dob', Input::old('dob'), array('class' => 'form-control input-sm')) }} +
+
+ + + +
+
+
+
+ {{ Form::label('phone_number', trans('messages.phone-number')) }} + {{ Form::text('phone_number', $patient->phone_number, array('class' => 'form-control', 'placeholder' => 'Patient phone number')) }} +
+
+ {{ Form::label('visit_type', trans("messages.visit-type")) }} + {{ Form::select('visit_type', [' ' => '--- Select visit type ---', + '0' => trans("messages.out-patient"),'1' => trans("messages.in-patient"),'2' => trans("messages.refferrals")], null, + array('class' => 'form-control')) }} +
+
+ {{ Form::label('facility','Facility Name:') }} + {{ Form::select('facility', $facilities, $patient->visits, array('class' => 'form-control')) }} +
+
+
+
+ {{ Form::label('ward','Ward/Clinic/Health Unit') }} + {{ Form::select('ward', $ward, Input::old('ward_id'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('bed_no','Bed No:', array('text-align' => 'right')) }} + {{ Form::text('bed_no', Input::old('bed_no'), array('class' => 'form-control')) }} +
+
+ {{ Form::label('facility_lab_number','Facility Lab No:', array('text-align' => 'right')) }} + {{ Form::text('facility_lab_number', Input::old('facility_lab_number'), array('class' => 'form-control')) }} +
+
+
+
+
+
+ {{ Form::label('district_residence', 'District of Residence') }} + {{ Form::select('district_residence', $districts, $patient->district_residence,['class' => 'form-control']) }} +
+
+ {{ Form::label('sub_county_residence', 'Sub County of Residence') }} + {{ Form::text('sub_county_residence', $patient->microDetails->sub_county_residence, array('class' => 'form-control', 'placeholder' => 'sub county of residence')) }} +
+
+ {{ Form::label('village_residence', 'Village of Residence') }} + {{ Form::text('village_residence', Input::old('village_residence'), array('class' => 'form-control', 'placeholder' => 'village of residence')) }} +
+
+
+
+ {{ Form::label('district_workplace', 'District of Work Place') }} + {{ Form::select('district_workplace', $districts, $patient->district_workplace,['class' => 'form-control']) }} +
+
+ {{ Form::label('sub_county_workplace', 'Sub County of Work Place') }} + {{ Form::text('sub_county_workplace', $patient->microDetails->sub_county_workplace, array('class' => 'form-control', 'placeholder' => 'sub county of workplace')) }} +
+
+ {{ Form::label('village_workplace', trans('messages.workplace-village')) }} + {{ Form::text('village_workplace', Input::old('village_workplace'), array('class' => 'form-control', 'placeholder' => 'village of workplace')) }} +
+
+
+ {{"Next of Kin Details"}} +
+
+
+ {{ Form::label('name_next_kin', 'Name') }} + {{ Form::text('name_next_kin', $patient->microDetails->name_next_kin, array('class' => 'form-control')) }} +
+
+
+
+ {{ Form::label('contact_next_kin', 'Contact Number') }} + {{ Form::text('contact_next_kin', $patient->microDetails->contact_next_kin, array('class' => 'form-control')) }} +
+
+
+
+

{{"Clinical Information"}}

+
+
+
+
+ {{ Form::label('admission_date', 'Admission Date') }} + {{ Form::text('admission_date', $patient->microDetails->admission_date, array('class' => 'form-control standard-datepicker', 'placeholder' => 'Ignore if not admitted')) }} +
+
+
+
+ {{ Form::label('facility_transfered', 'Facility Patient transfered from') }} + {{ Form::text('facility_transfered', $patient->microDetails->facility_transfered, array('class' => 'form-control')) }} +
+
+
+
+ {{ Form::label('hospitalized', 'Hospitalized for more than 48 hours') }} +
{{ Form::radio('hospitalized', '1', ($visits->hospitalized == 1) ? 'checked' : '' ) }} + Yes
+
{{ Form::radio('hospitalized', '0', ($visits->hospitalized == 0) ? 'checked' : '' ) }} + No
+
+
+ {{ Form::label('onAntibiotics', 'Has the patient been on antibiotics during the infection') }} +
{{ Form::radio('onAntibiotics', '1', ($visits->on_antibiotics == 1) ? 'checked' : '' ) }} + Yes
+
{{ Form::radio("onAntibiotics", '0', ($visits->on_antibiotics == 0) ? 'checked' : '' ) }} + No
+
+
+ {{ Form::label('transfered', 'Patient transferred from another health facility?') }} +
{{ Form::radio('transfered', '1', ($patient->microDetails->transfered == 1) ? 'checked' : '' ) }} + Yes
+
{{ Form::radio("transfered", '0', ($patient->microDetails->transfered == 0) ? 'checked' : '' ) }} + No
+
+ +
+
+
+ {{ Form::label('requested_by', 'Requested By') }} + {{Form::text('requested_by', $patient->microDetails->requested_by, array('class' => 'form-control'))}} +
+
+ {{ Form::label('phone_contact', 'Phone Contact') }} + {{Form::text('phone_contact', $patient->microDetails->clinician_contact, array('class' => 'form-control'))}} +
+
+
+
+ {{ Form::label('clinical_notes', 'Clinical Notes') }} + {{Form::textarea('clinical_notes', $patient->microDetails->clinical_notes, array('class' => 'form-control', 'rows'=>'2', 'placeholder' => 'Provisional diagnosis'))}} +
+
+
+
+

{{"Specimen Details"}}

+
+
+
+ {{ Form::label('testpurpose', 'Purpose of Test') }} + {{Form::select('testpurpose', $testpurpose, Input::old('testpurpose'), ['class' => 'form-control']) }} +
+
+
+
+
+ {{Form::label('specimen_type', 'Sample Type')}} + {{ Form::select('specimen_type', $specimenType, + Input::get('specimenType'), ['class' => 'form-control specimen-type']) }} +
+
+ + +
+
+ + +
+
+ {{Form::label('test_type_category', 'Lab Section')}} + {{ Form::select('test_type_category', $testCategory, Input::get('testCategory'), + ['class' => 'form-control test-type-category']) }} +
+
+
+
+ +
+
+
+
+ Specimen +
+
+ Lab Section +
+
+
Test
+
+
+
+
+
+ {{ Form::button(" ".trans('messages.save-test'), + ['class' => 'btn btn-primary', 'onclick' => 'submit()', 'alt' => 'save_new_test']) }} +
+
+ + +
+
+
+ {{ Form::close() }} +
+
+ +@stop \ No newline at end of file diff --git a/app/views/poc/create.blade.php b/app/views/poc/create.blade.php index c9abed2f..594fc6eb 100755 --- a/app/views/poc/create.blade.php +++ b/app/views/poc/create.blade.php @@ -127,15 +127,17 @@

- {{ Form::label('pcr_level', '1st or 2nd PCR? (Tick) :',array('class' =>'col-sm-2 required ')) }} + {{ Form::label('pcr_level', '1st or 2nd or 3rd PCR? (Tick) :',array('class' =>'col-sm-2 required ')) }}
{{ Form::radio('pcr_level', '1st PCR', false) }} 1st PCR
{{ Form::radio("pcr_level", '2nd PCR', false) }} 2nd PCR
+
{{ Form::radio("pcr_level", '3rd PCR', false) }} 3rd PCR

- {{ Form::label('pcr_level', 'Non Routine PCR; R1 / R2 (Tick):',array('class' =>'col-sm-2 required ')) }} + {{ Form::label('pcr_level', 'Non Routine PCR; R1 / R2 /R3 (Tick):',array('class' =>'col-sm-2 required ')) }}
{{ Form::radio('pcr_level', 'R1', false) }} R1
{{ Form::radio("pcr_level", 'R2', false) }} R2
+
{{ Form::radio("pcr_level", 'R3', false) }} R3


diff --git a/app/views/poc/enter_results.blade.php b/app/views/poc/enter_results.blade.php index 9d4eb4ae..c9192176 100755 --- a/app/views/poc/enter_results.blade.php +++ b/app/views/poc/enter_results.blade.php @@ -62,7 +62,7 @@
{{ Form::label('test_date', 'Test Date:', array('class' =>'col-sm-2 ')) }} - {{ Form::text('test_date', Input::old('test_date'), array('class' => 'form-control standard-datepicker-nofuture col-sm-4')) }} + {{ Form::text('test_date', Input::old('test_date'), array('class' => 'form-control standard-datepicker standard-datepicker-nofuture col-sm-4')) }}
diff --git a/app/views/referral/index.blade.php b/app/views/referral/index.blade.php new file mode 100644 index 00000000..c9f18f64 --- /dev/null +++ b/app/views/referral/index.blade.php @@ -0,0 +1,59 @@ +@extends("layout") +@section("content") +
+ +
+@if (Session::has('message')) +
{{ Session::get('message') }}
+@endif +
+
+ + Facilities + +
+
+ + + + + + + + + @foreach($referral as $facility) + + + + + + + + @endforeach + + +
{{ 'Facility Name' }}{{ 'Attach' }}
{{ $facility->name }} + + + {{ 'Attach' }} + +
+
+ + + + + + + + +
+@stop \ No newline at end of file diff --git a/app/views/rejectionReportHeader.blade.php b/app/views/rejectionReportHeader.blade.php new file mode 100644 index 00000000..73ed3262 --- /dev/null +++ b/app/views/rejectionReportHeader.blade.php @@ -0,0 +1,94 @@ +@section ("rejectionReportHeader") + + + + + + + +
+ + + + + + + + +
+ +
+ + {{ strtoupper(Config::get('constants.FACILITY_NAME')) }}
+
+
+ {{Config::get('kblis.interim-report-name')}} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Patient Name{{ $patient->name }}Patient ID{{ $patient->ulin }}
{{ trans('messages.gender')}} & {{ trans('messages.age')}}{{ $patient->getGender(false) }} | {{ $patient->getAge()}}Patient's Contact:{{ $patient->phone_number}}
Requesting Officer@if(isset($tests)) + @if(!empty($tests->first())) + @if(!empty($tests->first()->requested_by)) + {{$tests->first()->clinician->name}} + @elseif(!empty($tests->first()->clinician_id)) + {{$tests->first()->clinician_id}} + @endif + @endif + @endif + Officer's Contact@if(isset($tests)) + @if(!empty($tests->first())) + @if(!empty($tests->first()->therapy->contact)) + {{$tests->first()->therapy->contact}} + @elseif(!empty($tests->first()->clinician->phone)) + {{$tests->first()->clinician->phone}} + @endif + @endif + @endif +
Facility/Dept: + @if(isset($tests)) + @if(!is_null($tests->first())) + {{ is_null($tests->first()->visit->ward) ? '':$tests->first()->visit->ward->name }} + @else + {{ is_null($tests->first()->visit->facility) ? '':$tests->first()->visit->facility->name }} + @endif + @endif + Patient Facility/Dept ID: + @if(isset($tests)) + @if(!is_null($tests->first())) + {{is_null( $patient->patient_number)?'': $patient->patient_number}} + @else + {{ is_null($tests->first()->visit) ? '':$tests->first()->visit->facility_lab_number }} + @endif + @endif + l +
+@show diff --git a/app/views/reportSidebar.blade.php b/app/views/reportSidebar.blade.php index a13f033b..ba0643e8 100755 --- a/app/views/reportSidebar.blade.php +++ b/app/views/reportSidebar.blade.php @@ -66,12 +66,7 @@ {{trans('messages.user-statistics-report')}}
-
  • -
    - - HMIS 105 -
    -
  • +

    {{trans('messages.inventory-reports')}}

    @@ -322,25 +363,31 @@

    Inventory

    Equipment