mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'Diabetes'
|
||||
];
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Diabetes\Http\Controllers;
|
||||
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
|
||||
class Controller extends BaseController
|
||||
{
|
||||
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
||||
}
|
||||
+203
@@ -0,0 +1,203 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Diabetes\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Streamline\Models\DiabetesFollowUp;
|
||||
use Streamline\Models\DiabetesRegistration;
|
||||
use Streamline\Models\DosageFrequency;
|
||||
use Streamline\Models\Drug;
|
||||
use Streamline\Models\Patient;
|
||||
|
||||
class DiabetesClinicController extends Controller {
|
||||
public function follow_up(){
|
||||
$patient_id = session()->get('patient_id');
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
|
||||
$drugs = Drug::where('available', 1)->orderby('name','asc')->get();
|
||||
$dosage_frequencies = DosageFrequency::get();
|
||||
|
||||
// prep the dropdowns
|
||||
$hiv_status = array('N/A' => '--select--', 'Positive' => 'Positive', 'Negative' => 'Negative', 'Exposed' => 'Exposed');
|
||||
$tb_status = array('N/A' => '--select--', 'Negative' => 'Negative', 'Gene-expert positive' => 'Gene-expert positive', 'Extra-pulmonary positive' => 'Extra-pulmonary positive', 'Previous treated' => 'Previous treated', 'Exposed asymptomatic' => 'Exposed asymptomatic');
|
||||
$alcohol = array('N/A' => '--select--', 'High' => 'High', 'Moderate' => 'Moderate', 'Low' => 'Low', 'Nil' => 'Nil');
|
||||
$mood = array('N/A' => '--select--', 'Fine' => 'Fine', 'Swings' => 'Swings', 'Anxiety' => 'Anxiety');
|
||||
$pulse_rhythm = array('N/A' => '--select--', 'Sinus' => 'Sinus', 'AF' => 'AF', 'Heart Block' => 'Heart Block', 'Ectopics' => 'Ectopics');
|
||||
$sensation = array('N/A' => '--select--', 'Normal' => 'Normal', 'Impaired' => 'Impaired');
|
||||
$fundoscopy = array('N/A' => '--select--', 'Normal' => 'Normal', 'Diabetic retinopathy' => 'Diabetic retinopathy', 'Hypertensive changes' => 'Hypertensive changes', 'Papilloedema' => 'Papilloedema', 'Other' => 'Other');
|
||||
$injection_site_inspection = array('N/A' => '--select--', 'Satisfactory' => 'Satisfactory', 'Unsatisfactory' => '“Unsatisfactory');
|
||||
|
||||
return view('diabetes::diabetes_clinic.follow_up', compact('patient', 'tb_status', 'hiv_status', 'injection_site_inspection', 'pulse_rhythm', 'alcohol', 'mood', 'sensation', 'fundoscopy', 'drugs', 'dosage_frequencies'));
|
||||
}
|
||||
|
||||
public function save_follow_up(Request $request){
|
||||
$follow_up = new DiabetesFollowUp();
|
||||
|
||||
$follow_up->patient_id = session()->get('patient_id');
|
||||
$follow_up->episode_id = session()->get('episode_id');
|
||||
$follow_up->hypoglycaemic = isset($request->hypoglycaemic) ? 1 : 0;
|
||||
$follow_up->hyperglycaemic_episodes = isset($request->hyperglycaemic_episodes) ? 1 : 0;
|
||||
$follow_up->visual_symptoms = isset($request->visual_symptoms) ? 1 : 0;
|
||||
$follow_up->feet_sensation = isset($request->feet_sensation) ? 1 : 0;
|
||||
$follow_up->impotence = isset($request->impotence) ? 1 : 0;
|
||||
$follow_up->smoker = isset($request->smoker) ? 1 : 0;
|
||||
$follow_up->hiv_status = $request->hiv_status;
|
||||
$follow_up->tb_status = $request->tb_status;
|
||||
$follow_up->alcohol = $request->alcohol;
|
||||
$follow_up->mood = $request->mood;
|
||||
$follow_up->immunisation_date = $request->immunisation_date;
|
||||
$follow_up->comments = $request->comments;
|
||||
$follow_up->height = $request->height;
|
||||
$follow_up->weight = $request->weight;
|
||||
$follow_up->waist = $request->waist;
|
||||
$follow_up->hip = $request->hip;
|
||||
$follow_up->bp_lying = $request->bp_lying;
|
||||
$follow_up->bp_standing = $request->bp_standing;
|
||||
$follow_up->pulse_rate = $request->pulse_rate;
|
||||
$follow_up->pulse_rhythm = $request->pulse_rhythm;
|
||||
$follow_up->sensation = $request->sensation;
|
||||
$follow_up->pedal_pulses = isset($request->pedal_pulses) ? 1 : 0;
|
||||
$follow_up->feet_inspection = isset($request->feet_inspection) ? 1 : 0;
|
||||
$follow_up->visual_acuity = isset($request->visual_acuity) ? 1 : 0;
|
||||
$follow_up->fundoscopy = $request->fundoscopy;
|
||||
$follow_up->injection_site_inspection = $request->injection_site_inspection;
|
||||
$follow_up->examination_comments = $request->examination_comments;
|
||||
$follow_up->bmi = $request->bmi;
|
||||
$follow_up->waist_hip_ratio = $request->waist_hip_ratio;
|
||||
$follow_up->blood_glucose = $request->blood_glucose;
|
||||
$follow_up->creatinine = $request->creatinine;
|
||||
$follow_up->hdl_cholesterol = $request->hdl_cholesterol;
|
||||
$follow_up->ldl_cholesterol = $request->ldl_cholesterol;
|
||||
$follow_up->total_choresterol = $request->total_choresterol;
|
||||
$follow_up->triglyceride = $request->triglyceride;
|
||||
$follow_up->urine_protein = $request->urine_protein;
|
||||
$follow_up->urine_ketones = $request->urine_ketones;
|
||||
$follow_up->hba1c = $request->hba1c;
|
||||
$follow_up->drug_id = implode(",", $request->drug_id);
|
||||
$follow_up->dose = implode(",", $request->dose);
|
||||
$follow_up->frequency_id = implode(",", $request->frequency_id);
|
||||
$follow_up->dispense_number = implode(",", $request->dispense_number);
|
||||
$follow_up->overview_diabetes = isset($request->overview_diabetes) ? 1 : 0;
|
||||
$follow_up->overview_diabetes_date = $request->overview_diabetes_date;
|
||||
$follow_up->management_diabetes = isset($request->management_diabetes) ? 1 : 0;
|
||||
$follow_up->management_diabetes_date = $request->management_diabetes_date;
|
||||
$follow_up->diabetic_clinic_date = $request->diabetic_clinic_date;
|
||||
$follow_up->eye_clinic_referral = isset($request->eye_clinic_referral) ? 1 : 0;
|
||||
$follow_up->psychological_assessment_referral = isset($request->psychological_assessment_referral) ? 1 : 0;
|
||||
$follow_up->chaplain_support_referral = isset($request->chaplain_support_referral) ? 1 : 0;
|
||||
$follow_up->other_clinic_follow_up = $request->other_clinic_follow_up;
|
||||
$follow_up->created_by = Auth::user()->id;
|
||||
|
||||
if ($follow_up->save()){
|
||||
flash("Diabetes follow up details saved successfully")->success();
|
||||
return redirect("/patient_episodes");
|
||||
} else {
|
||||
flash("Something went wrong. Please try again.")->error();
|
||||
return back()->withInput();
|
||||
}
|
||||
}
|
||||
|
||||
public function follow_up_details($id){
|
||||
$patient_id = session()->get('patient_id');
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
|
||||
$follow_up = DiabetesFollowUp::find($id);
|
||||
|
||||
$drugs = Drug::where('available', 1)->pluck('name', 'id');
|
||||
$dosage_frequencies = DosageFrequency::pluck('name', 'id');
|
||||
|
||||
return view('diabetes::diabetes_clinic.follow_up_details', compact('patient', 'drugs', 'dosage_frequencies', 'follow_up'));
|
||||
}
|
||||
|
||||
public function get_dispensable_drug_units($drug_id){
|
||||
return get_name($drug_id, 'id', 'pharmacy_stock', 'drugs');
|
||||
}
|
||||
|
||||
public function clinic_registration(){
|
||||
$patient_id = session()->get('patient_id');
|
||||
$episode_id = session()->get('episode_id');
|
||||
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
|
||||
$drugs = Drug::where('available', 1)->orderby('name','asc')->get();
|
||||
$dosage_frequencies = DosageFrequency::get();
|
||||
|
||||
// prep the dropdowns
|
||||
$hiv_status = array('N/A' => '--select--', 'Positive' => 'Positive', 'Negative' => 'Negative', 'Exposed' => 'Exposed');
|
||||
$tb_status = array('N/A' => '--select--', 'Negative' => 'Negative', 'Gene-expert positive' => 'Gene-expert positive', 'Extra-pulmonary positive' => 'Extra-pulmonary positive', 'Previous treated' => 'Previous treated', 'Exposed asymptomatic' => 'Exposed asymptomatic');
|
||||
$type = array('N/A' => '--select--', 'Type 1' => 'Type 1', 'Type 2' => 'Type 2', 'Type 2 on insuline' => 'Type 2 on insulin');
|
||||
$alcohol = array('N/A' => '--select--', 'High' => 'High', 'Moderate' => 'Moderate', 'Low' => 'Low', 'Nil' => 'Nil');
|
||||
|
||||
// check if the patient has already been registered
|
||||
$clinic_registration = DiabetesRegistration::where('episode_id', $episode_id)->first();
|
||||
|
||||
if ($clinic_registration){
|
||||
// redirect to the view details page
|
||||
$drugs = Drug::where('available', 1)->pluck('name', 'id');
|
||||
$dosage_frequencies = DosageFrequency::pluck('name', 'id');
|
||||
|
||||
// get follow up history if available
|
||||
$follow_up = DiabetesFollowUp::where('episode_id', $episode_id)->get();
|
||||
|
||||
return view('diabetes::diabetes_clinic.clinic_registration_details', compact('clinic_registration','patient', 'drugs', 'dosage_frequencies', 'hiv_status', 'tb_status', 'type', 'alcohol', 'follow_up'));
|
||||
} else {
|
||||
return view('diabetes::diabetes_clinic.clinic_registration', compact('patient', 'drugs', 'dosage_frequencies', 'hiv_status', 'tb_status', 'type', 'alcohol'));
|
||||
}
|
||||
}
|
||||
|
||||
public function save_clinic_registration(Request $request){
|
||||
$registration = new DiabetesRegistration();
|
||||
|
||||
$registration->patient_id = session()->get('patient_id');
|
||||
$registration->episode_id = session()->get('episode_id');
|
||||
$registration->family_history = $request->family_history;
|
||||
$registration->family_member_with_diabetes = $request->family_member_with_diabetes;
|
||||
$registration->diagnosis_date = $request->diagnosis_date;
|
||||
$registration->diabetes_type = $request->diabetes_type;
|
||||
$registration->presenting_none = isset($request->presenting_none) ? 1 : 0;
|
||||
$registration->presenting_dka = isset($request->presenting_dka) ? 1 : 0;
|
||||
$registration->presenting_excessive_thirst = isset($request->presenting_excessive_thirst) ? 1 : 0;
|
||||
$registration->presenting_polyuria = isset($request->presenting_polyuria) ? 1 : 0;
|
||||
$registration->presenting_weight_loss = isset($request->presenting_weight_loss) ? 1 : 0;
|
||||
$registration->presenting_visual_problems = isset($request->presenting_visual_problems) ? 1 : 0;
|
||||
$registration->presenting_peripheral_neuropathy = isset($request->presenting_peripheral_neuropathy) ? 1 : 0;
|
||||
$registration->other_symptoms = $request->other_symptoms;
|
||||
$registration->other_diagnosis = $request->other_diagnosis;
|
||||
$registration->hiv_status = $request->hiv_status;
|
||||
$registration->tb_status = $request->tb_status;
|
||||
$registration->height = $request->height;
|
||||
$registration->weight = $request->weight;
|
||||
$registration->bmi = $request->bmi;
|
||||
$registration->waist = $request->waist;
|
||||
$registration->hip_circumference = $request->hip_circumference;
|
||||
$registration->waist_to_hip_ratio = $request->waist_to_hip_ratio;
|
||||
$registration->smoker = isset($request->smoker) ? 1 : 0;
|
||||
$registration->alcohol = $request->alcohol;
|
||||
$registration->immunisation_date = $request->immunisation_date;
|
||||
$registration->drug_id = implode(",", $request->drug_id);
|
||||
$registration->dose = implode(",", $request->dose);
|
||||
$registration->frequency_id = implode(",", $request->frequency_id);
|
||||
$registration->dispense_number = implode(",", $request->dispense_number);
|
||||
$registration->hba1c = $request->hba1c;
|
||||
$registration->bp = $request->bp;
|
||||
$registration->cholesterol = $request->cholesterol;
|
||||
$registration->waist_hip_ratio = $request->waist_hip_ratio;
|
||||
$registration->overview_diabetes = isset($request->overview_diabetes) ? 1 : 0;
|
||||
$registration->overview_diabetes_date = $request->overview_diabetes_date;
|
||||
$registration->management_diabetes = isset($request->management_diabetes) ? 1 : 0;
|
||||
$registration->management_diabetes_date = $request->management_diabetes_date;
|
||||
$registration->diet_review = $request->diet_review;
|
||||
$registration->comment = $request->comment;
|
||||
$registration->created_by = Auth::user()->id;
|
||||
|
||||
if ($registration->save()){
|
||||
flash("Diabetes registration details saved successfully")->success();
|
||||
return redirect("/patient_episodes");
|
||||
} else {
|
||||
flash("Something went wrong. Please try again.")->error();
|
||||
return back()->withInput();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Diabetes\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Diabetes\Providers\RouteServiceProvider;
|
||||
|
||||
class DiabetesServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* @var string $moduleName
|
||||
*/
|
||||
protected $moduleName = 'Diabetes';
|
||||
|
||||
/**
|
||||
* @var string $moduleNameLower
|
||||
*/
|
||||
protected $moduleNameLower = 'diabetes';
|
||||
|
||||
/**
|
||||
* Boot the application events.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->registerTranslations();
|
||||
$this->registerConfig();
|
||||
$this->registerViews();
|
||||
$this->loadMigrationsFrom(module_path($this->moduleName, 'Database/Migrations'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->register(RouteServiceProvider::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register config.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function registerConfig()
|
||||
{
|
||||
$this->publishes([
|
||||
module_path($this->moduleName, 'Config/config.php') => config_path($this->moduleNameLower . '.php'),
|
||||
], 'config');
|
||||
$this->mergeConfigFrom(
|
||||
module_path($this->moduleName, 'Config/config.php'), $this->moduleNameLower
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register views.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function registerViews()
|
||||
{
|
||||
$viewPath = resource_path('views/modules/' . $this->moduleNameLower);
|
||||
|
||||
$sourcePath = module_path($this->moduleName, 'Resources/views');
|
||||
|
||||
$this->publishes([
|
||||
$sourcePath => $viewPath
|
||||
], ['views', $this->moduleNameLower . '-module-views']);
|
||||
|
||||
$this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register translations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function registerTranslations()
|
||||
{
|
||||
$langPath = resource_path('lang/modules/' . $this->moduleNameLower);
|
||||
|
||||
if (is_dir($langPath)) {
|
||||
$this->loadTranslationsFrom($langPath, $this->moduleNameLower);
|
||||
$this->loadJsonTranslationsFrom($langPath);
|
||||
} else {
|
||||
$this->loadTranslationsFrom(module_path($this->moduleName, 'Resources/lang'), $this->moduleNameLower);
|
||||
$this->loadJsonTranslationsFrom(module_path($this->moduleName, 'Resources/lang'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function provides()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
private function getPublishableViewPaths(): array
|
||||
{
|
||||
$paths = [];
|
||||
foreach (\Config::get('view.paths') as $path) {
|
||||
if (is_dir($path . '/modules/' . $this->moduleNameLower)) {
|
||||
$paths[] = $path . '/modules/' . $this->moduleNameLower;
|
||||
}
|
||||
}
|
||||
return $paths;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Diabetes\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* This namespace is applied to your controller routes.
|
||||
*
|
||||
* In addition, it is set as the URL generator's root namespace.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $namespace = 'Modules\Diabetes\Http\Controllers';
|
||||
|
||||
/**
|
||||
* Define your route model bindings, pattern filters, etc.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function map()
|
||||
{
|
||||
$this->mapApiRoutes();
|
||||
$this->mapWebRoutes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the "web" routes for the application.
|
||||
*
|
||||
* These routes all receive session state, CSRF protection, etc.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function mapWebRoutes()
|
||||
{
|
||||
Route::middleware('web')
|
||||
->namespace($this->namespace)
|
||||
->group(module_path('Diabetes', '/Routes/web.php'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the "api" routes for the application.
|
||||
*
|
||||
* These routes are typically stateless.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function mapApiRoutes()
|
||||
{
|
||||
Route::prefix('api')
|
||||
->middleware('api')
|
||||
->namespace($this->namespace)
|
||||
->group(module_path('Diabetes', '/Routes/api.php'));
|
||||
}
|
||||
}
|
||||
docker/streamline-src/Modules/Diabetes/Resources/views/diabetes_clinic/clinic_registration.blade.php
Executable
+457
@@ -0,0 +1,457 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Diabetes Registration</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Create</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
{{ Form::open(['route' => 'diabetes_clinic.save_clinic_registration', 'data-toggle' => 'validator']) }}
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('diabetes_clinic.follow_up') }}" class="btn btn-success">{{ __('diabetes_clinic.diabetes_follow_up') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.registration_summary') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.family_history_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::radio('family_history', 'Yes', false, ['id' => 'family_history_yes']) }} Yes
|
||||
{{ Form::radio('family_history', 'No', false, ['id' => 'family_history_no']) }} No
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="family_member_with_diabetes" style="display: none">
|
||||
<th style="color: black">{{ __('diabetes_clinic.specify_who_has_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('family_member_with_diabetes', '', ['class'=>'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.date_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diagnosis_date', '', ['class'=>'form-control', 'id'=>'diagnosis_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.type') }}</th>
|
||||
<td>
|
||||
{{ Form::select('diabetes_type', $type, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.presenting_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('presenting_none', 1) }} {{ __('diabetes_clinic.none') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_dka', 1) }} {{ __('diabetes_clinic.dka') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_excessive_thirst', 1) }} {{ __('diabetes_clinic.excessive_thirst') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_polyuria', 1) }} {{ __('diabetes_clinic.polyuria') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_weight_loss', 1) }} {{ __('diabetes_clinic.weight_loss') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_visual_problems', 1) }} {{ __('diabetes_clinic.visual_problems') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_peripheral_neuropathy', 1) }} {{ __('diabetes_clinic.peripheral_neuropathy') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_symptoms', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_diagnoses') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_diagnosis', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('hiv_status', $hiv_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('tb_status', $tb_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.height') }}</th>
|
||||
<td>
|
||||
{{ Form::text('height', '', ['class' => 'form-control', 'id' => 'height']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', '', ['class' => 'form-control', 'id' => 'weight']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', '', ['class' => 'form-control', 'readonly', 'id' => 'bmi']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist', '', ['class' => 'form-control', 'id' => 'waist']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip_circumference') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hip_circumference', '', ['class' => 'form-control', 'id' => 'hip_circumference']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_to_hip_ratio', '', ['class' => 'form-control', 'readonly', 'id' => 'waist_to_hip_ratio']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::select('alcohol', $alcohol, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', '', ['class'=>'form-control', 'id'=>'immunisation_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 3%"></th>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.stock_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center">
|
||||
<input type="checkbox" name="chk" />
|
||||
</td>
|
||||
<td>
|
||||
<select name='drug_id[]' id='1000' class="form-control col-sm-12" onchange="show_drug_details(this.value, this.id)">
|
||||
<option value="0">--Select Drug--</option>
|
||||
@foreach($drugs as $drug)
|
||||
<option value='{{ $drug->id }}'>{{ $drug->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dose[]" id="0"></td>
|
||||
<td>
|
||||
<select name='frequency_id[]' id='100' class="form-control col-sm-12">
|
||||
<option value="0">--Select Frequency--</option>
|
||||
@foreach($dosage_frequencies as $item)
|
||||
<option value='{{ $item->id }}'>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dispense_number[]" id="200"></td>
|
||||
<td><div id="300"></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="button" class = "btn btn-success btn-sm" value="Add Row" onclick="add_drugs_row('drugs_table')" />
|
||||
<input type="button" class = "btn btn-danger btn-sm" value="Delete Row" onclick="delete_drugs_row('drugs_table')" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.target_and_patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bp', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('cholesterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', '', ['class'=>'form-control', 'id'=>'overview_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', '', ['class'=>'form-control', 'id'=>'management_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.diet_review') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('diet_review', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.comment') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comment', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
// temporary row count
|
||||
let rowCount = 1;
|
||||
|
||||
function add_drugs_row(tableID) {
|
||||
let table = document.getElementById(tableID);
|
||||
rowCount = table.rows.length;
|
||||
let row = table.insertRow(rowCount);
|
||||
let colCount = table.rows[0].cells.length;
|
||||
|
||||
for (let i = 0; i < colCount; i++) {
|
||||
let newcell = row.insertCell(i);
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
|
||||
if (i === 1) {
|
||||
newcell.childNodes[0].id = rowCount + 1000;
|
||||
newcell.childNodes[0].nextSibling.id = rowCount + 1000;
|
||||
}
|
||||
|
||||
if (i === 5) {
|
||||
table.rows[rowCount].cells[5].innerHTML = '';
|
||||
table.rows[rowCount].cells[5].innerHTML = '<div id="' + (rowCount + 300) + '"></div>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select-one":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function delete_drugs_row(tableID) {
|
||||
try {
|
||||
let table = document.getElementById(tableID);
|
||||
let rowCount = table.rows.length;
|
||||
|
||||
for (let i = 0; i < rowCount; i++) {
|
||||
let row = table.rows[i];
|
||||
let chkbox = row.cells[0].childNodes[1];
|
||||
if (null != chkbox && true === chkbox.checked) {
|
||||
if (rowCount <= 2) {
|
||||
alert("Cannot delete all the rows.");
|
||||
break;
|
||||
}
|
||||
table.deleteRow(i);
|
||||
rowCount--;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
function show_drug_details(drug_id, prompt_div_id) {
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/diabetes_clinic/get_dispensable_drug_units/' + drug_id,
|
||||
success: function(response){
|
||||
let code = "<input name='drug_quantity[]' type='hidden' value='" + response + "'/>";
|
||||
if(response > 1){
|
||||
// drugs in stock
|
||||
code += "<p style='color: green;'>" + response + " dispensable units in stock</p>";
|
||||
} else {
|
||||
// drugs out of stock
|
||||
code += "<p style='color: red;'>Drug out of stock</p>";
|
||||
}
|
||||
|
||||
$('#' + (prompt_div_id - 700)).html(code);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#family_history_no').on("click", function () {
|
||||
$(".family_member_with_diabetes").hide();
|
||||
});
|
||||
|
||||
$('#family_history_yes').on("click", function () {
|
||||
$(".family_member_with_diabetes").show();
|
||||
});
|
||||
|
||||
$('#immunisation_date, #diagnosis_date, #management_diabetes_date, #diabetic_clinic_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
|
||||
$('#weight,#height').blur(function () {
|
||||
let height = parseInt($("#height").val());
|
||||
let weight = parseInt($("#weight").val());
|
||||
let bmi = weight / (height * height);
|
||||
bmi = parseFloat(bmi).toFixed(1);
|
||||
|
||||
if (isNaN(bmi)){
|
||||
$("#bmi").css({"color": "red", "font-weight": "bolder"});
|
||||
$("#bmi").val(0);
|
||||
} else {
|
||||
$("#bmi").css({"color": "green", "font-weight": "bolder"});
|
||||
$("#bmi").val(bmi);
|
||||
}
|
||||
});
|
||||
|
||||
$('#waist,#hip_circumference').blur(function () {
|
||||
let hip = parseInt($("#height").val());
|
||||
let waist = parseInt($("#weight").val());
|
||||
let ratio = waist / hip;
|
||||
ratio = parseFloat(ratio).toFixed(1);
|
||||
|
||||
if (isNaN(ratio)){
|
||||
$("#waist_to_hip_ratio").css({"color": "red", "font-weight": "bolder"});
|
||||
$("#waist_to_hip_ratio").val(0);
|
||||
} else {
|
||||
$("#waist_to_hip_ratio").css({"color": "green", "font-weight": "bolder"});
|
||||
$("#waist_to_hip_ratio").val(ratio);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+339
@@ -0,0 +1,339 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-8">
|
||||
<h4 class="page-title">{{ __('diabetes_clinic.diabetes_registration_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diabetes_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('diabetes_clinic.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.follow_up_history') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if($follow_up->count() > 0)
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
@foreach($follow_up as $record)
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.date') }} </th>
|
||||
<td>{{ streamline_date_time($record->created_at) }}</td>
|
||||
<td class="text-center">
|
||||
<a href="/diabetes_clinic/follow_up_details/{{ $record->id }}" class="btn btn-primary">{{ __('diabetes_clinic.view_details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<p class="text-center text-danger">{{ __('diabetes_clinic.no_follow_ups_conducted') }}</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('diabetes_clinic.follow_up') }}" class="btn btn-success">{{ __('diabetes_clinic.new_diabetes_follow_up') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="white-box">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.registration_summary') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.family_history_to_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('family_history', $clinic_registration->family_history, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="family_member_with_diabetes" style="<?php echo ($clinic_registration->family_history == 'Yes') ? '' : 'display:none'; ?>">
|
||||
<th style="color: black">{{ __('diabetes_clinic.specify_who_has_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::text('family_member_with_diabetes', $clinic_registration->family_member_with_diabetes, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.date_of_diagnosis') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diagnosis_date', $clinic_registration->diagnosis_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.type') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diabetes_type', $clinic_registration->diabetes_type, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.presenting_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('presenting_none', 1, $clinic_registration->presenting_none, ['disabled']) }} {{ __('diabetes_clinic.none') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_dka', 1, $clinic_registration->presenting_dka, ['disabled']) }} {{ __('diabetes_clinic.dka') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_excessive_thirst', 1, $clinic_registration->presenting_excessive_thirst, ['disabled']) }} {{ __('diabetes_clinic.excessive_thirst') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_polyuria', 1, $clinic_registration->presenting_polyuria, ['disabled']) }} {{ __('diabetes_clinic.polyuria') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_weight_loss', 1, $clinic_registration->presenting_weight_loss, ['disabled']) }} {{ __('diabetes_clinic.weight_loss') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_visual_problems', 1, $clinic_registration->presenting_visual_problems, ['disabled']) }} {{ __('diabetes_clinic.visual_problems') }}
|
||||
<br><br>
|
||||
{{ Form::checkbox('presenting_peripheral_neuropathy', 1, $clinic_registration->presenting_peripheral_neuropathy, ['disabled']) }} {{ __('diabetes_clinic.peripheral_neuropathy') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_symptoms') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_symptoms', $clinic_registration->other_symptoms, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_diagnoses') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_diagnosis', $clinic_registration->other_diagnosis, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hiv_status', $clinic_registration->hiv_status, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('tb_status', $clinic_registration->tb_status, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">Height</th>
|
||||
<td>
|
||||
{{ Form::text('height', $clinic_registration->height, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', $clinic_registration->weight, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', $clinic_registration->bmi, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist', $clinic_registration->waist, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip_circumference') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hip_circumference', $clinic_registration->hip_circumference, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_to_hip_ratio', $clinic_registration->waist_to_hip_ratio, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1, $clinic_registration->smoker, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('alcohol', $clinic_registration->alcohol, ['class' => 'form-control', 'disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', $clinic_registration->immunisation_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if($clinic_registration->drug_id == 0)
|
||||
<p class="text-center text-danger">{{ __('diabetes_clinic.no_medication_issued') }}</p>
|
||||
@else
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$drug_ids_array = explode(',', $clinic_registration->drug_id);
|
||||
$dose_array = explode(',', $clinic_registration->dose);
|
||||
$frequency_ids_array = explode(',', $clinic_registration->frequency_id);
|
||||
$dispensed_array = explode(',', $clinic_registration->dispense_number);
|
||||
@endphp
|
||||
@for($i = 0; $i < count($drug_ids_array); $i++)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('drug_id', $drugs[$drug_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dose', $dose_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('frequency_id', $dosage_frequencies[$frequency_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dispense_number', $dispensed_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.targets_and_patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', $clinic_registration->hba1c, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bp', $clinic_registration->bp, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('cholesterol', $clinic_registration->cholesterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_to_hip_ratio') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', $clinic_registration->waist_hip_ratio, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.view_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1, $clinic_registration->overview_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', $clinic_registration->overview_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.view_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1, $clinic_registration->management_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', $clinic_registration->management_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.diet_review') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('diet_review', $clinic_registration->diet_review, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black" colspan="2">{{ __('diabetes_clinic.comment') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comment', $clinic_registration->comment, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Executable
+614
@@ -0,0 +1,614 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('diabetes_clinic.diabetes_follow_up') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diabetes_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('diabetes_clinic.create') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::open(['route' => 'diabetes_clinic.save_follow_up', 'data-toggle' => 'validator']) }}
|
||||
<div class="white-box">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.history_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_health') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hypoglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hypoglycaemic', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hyperglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hyperglycaemic_episodes', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_symptoms') }}</th>
|
||||
<td>{{ Form::checkbox('visual_symptoms', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_sensation') }}</th>
|
||||
<td>{{ Form::checkbox('feet_sensation', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.impotence') }}</th>
|
||||
<td>{{ Form::checkbox('impotence', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('hiv_status', $hiv_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::select('tb_status', $tb_status, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::select('alcohol', $alcohol, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.mood') }}</th>
|
||||
<td>
|
||||
{{ Form::select('mood', $mood, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', '', ['class'=>'form-control', 'id'=>'immunisation_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comments', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.examination_physical_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.height') }}</th>
|
||||
<td>
|
||||
{{ Form::text('height', '', ['class' => 'form-control', 'id' => 'height']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', '', ['class' => 'form-control', 'id' => 'weight']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::number('waist', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip') }}</th>
|
||||
<td>
|
||||
{{ Form::number('hip', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_lying') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_lying', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_standing') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_standing', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rate') }}</th>
|
||||
<td>
|
||||
{{ Form::number('pulse_rate', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rhythm') }}</th>
|
||||
<td>
|
||||
{{ Form::select('pulse_rhythm', $pulse_rhythm, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.sensation') }}</th>
|
||||
<td>
|
||||
{{ Form::select('sensation', $sensation, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pedal_pulses') }}</th>
|
||||
<td>{{ Form::checkbox('pedal_pulses', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_inspection') }}</th>
|
||||
<td>{{ Form::checkbox('feet_inspection', 1) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_acuity') }}</th>
|
||||
<td>{{ Form::checkbox('visual_acuity', 1) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_examination') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.fundoscopy') }}</th>
|
||||
<td>
|
||||
{{ Form::select('fundoscopy', $fundoscopy, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.injection_site_inspection') }}</th>
|
||||
<td>
|
||||
{{ Form::select('injection_site_inspection', $injection_site_inspection, '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('examination_comments', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', '', ['class' => 'form-control', 'readonly', 'id' => 'bmi']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_hip_ration') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.investigations') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.blood_glucose') }}</th>
|
||||
<td>
|
||||
{{ Form::text('blood_glucose', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.creatinine') }}</th>
|
||||
<td>
|
||||
{{ Form::text('creatinine', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hdl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hdl_cholesterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.ldl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('ldl_cholesterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.total_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('total_choresterol', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.triglyceride') }}</th>
|
||||
<td>
|
||||
{{ Form::text('triglyceride', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_protein') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_protein', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_ketones') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_ketones', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 3%"></th>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.stock_status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="center">
|
||||
<input type="checkbox" name="chk" />
|
||||
</td>
|
||||
<td>
|
||||
<select name='drug_id[]' id='1000' class="form-control col-sm-12" onchange="show_drug_details(this.value, this.id)">
|
||||
<option value="0">--Select Drug--</option>
|
||||
@foreach($drugs as $drug)
|
||||
<option value='{{ $drug->id }}'>{{ $drug->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dose[]" id="0"></td>
|
||||
<td>
|
||||
<select name='frequency_id[]' id='100' class="form-control col-sm-12">
|
||||
<option value="0">--Select Frequency--</option>
|
||||
@foreach($dosage_frequencies as $item)
|
||||
<option value='{{ $item->id }}'>{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="number" class="form-control" name="dispense_number[]" id="200"></td>
|
||||
<td><div id="300"></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="button" class = "btn btn-success btn-sm" value="Add Row" onclick="add_drugs_row('drugs_table')" />
|
||||
<input type="button" class = "btn btn-danger btn-sm" value="Delete Row" onclick="delete_drugs_row('drugs_table')" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.other_advice_management') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diet_overview') }}</th>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', '', ['class'=>'form-control', 'id'=>'overview_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', '', ['class'=>'form-control', 'id'=>'management_diabetes_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.comments_follow_up') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diabetic_clinic_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diabetic_clinic_date', '', ['class'=>'form-control', 'id'=>'diabetic_clinic_date', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.eye_clinic_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('eye_clinic_referral', 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.psychological_assessment_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('psychological_assessment_referral', 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.chaplain_support_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('chaplain_support_referral', 1) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_clinic_follow_up') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_clinic_follow_up', '', ['class'=>'form-control', 'rows' => 4]) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br><br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button('Cancel',['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
// temporary row count
|
||||
let rowCount = 1;
|
||||
|
||||
function add_drugs_row(tableID) {
|
||||
let table = document.getElementById(tableID);
|
||||
rowCount = table.rows.length;
|
||||
let row = table.insertRow(rowCount);
|
||||
let colCount = table.rows[0].cells.length;
|
||||
|
||||
for (let i = 0; i < colCount; i++) {
|
||||
let newcell = row.insertCell(i);
|
||||
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
|
||||
|
||||
if (i === 1) {
|
||||
newcell.childNodes[0].id = rowCount + 1000;
|
||||
newcell.childNodes[0].nextSibling.id = rowCount + 1000;
|
||||
}
|
||||
|
||||
if (i === 5) {
|
||||
table.rows[rowCount].cells[5].innerHTML = '';
|
||||
table.rows[rowCount].cells[5].innerHTML = '<div id="' + (rowCount + 300) + '"></div>';
|
||||
}
|
||||
|
||||
switch (newcell.childNodes[0].type) {
|
||||
case "text":
|
||||
newcell.childNodes[0].value = "";
|
||||
break;
|
||||
case "checkbox":
|
||||
newcell.childNodes[0].checked = false;
|
||||
break;
|
||||
case "select-one":
|
||||
newcell.childNodes[0].selectedIndex = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function delete_drugs_row(tableID) {
|
||||
try {
|
||||
let table = document.getElementById(tableID);
|
||||
let rowCount = table.rows.length;
|
||||
|
||||
for (let i = 0; i < rowCount; i++) {
|
||||
let row = table.rows[i];
|
||||
let chkbox = row.cells[0].childNodes[1];
|
||||
if (null != chkbox && true === chkbox.checked) {
|
||||
if (rowCount <= 2) {
|
||||
alert("Cannot delete all the rows.");
|
||||
break;
|
||||
}
|
||||
table.deleteRow(i);
|
||||
rowCount--;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
function show_drug_details(drug_id, prompt_div_id) {
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
url: '/diabetes_clinic/get_dispensable_drug_units/' + drug_id,
|
||||
success: function(response){
|
||||
let code = "<input name='drug_quantity[]' type='hidden' value='" + response + "'/>";
|
||||
if(response > 1){
|
||||
// drugs in stock
|
||||
code += "<p style='color: green;'>" + response + " dispensable units in stock</p>";
|
||||
} else {
|
||||
// drugs out of stock
|
||||
code += "<p style='color: red;'>Drug out of stock</p>";
|
||||
}
|
||||
|
||||
$('#' + (prompt_div_id - 700)).html(code);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#immunisation_date, #overview_diabetes_date, #management_diabetes_date, #diabetic_clinic_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd'
|
||||
});
|
||||
|
||||
$('#weight,#height').blur(function () {
|
||||
let height = parseInt($("#height").val());
|
||||
let weight = parseInt($("#weight").val());
|
||||
let bmi = weight / (height * height);
|
||||
bmi = parseFloat(bmi).toFixed(1);
|
||||
|
||||
if (isNaN(bmi)){
|
||||
$("#bmi").css({"color": "red", "font-weight": "bolder"});
|
||||
$("#bmi").val(0);
|
||||
} else {
|
||||
$("#bmi").css({"color": "green", "font-weight": "bolder"});
|
||||
$("#bmi").val(bmi);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+492
@@ -0,0 +1,492 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-8">
|
||||
<h4 class="page-title">{{ __('diabetes_clinic.diabetes_follow_up_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('diabetes_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('diabetes_clinic.details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="white-box">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.history_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_health') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hypoglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hypoglycaemic', 1, $follow_up->hypoglycaemic, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hyperglycaemic_episodes') }}</th>
|
||||
<td>{{ Form::checkbox('hyperglycaemic_episodes', 1, $follow_up->hyperglycaemic_episodes, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_symptoms') }}</th>
|
||||
<td>{{ Form::checkbox('visual_symptoms', 1, $follow_up->visual_symptoms, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_sensation') }}</th>
|
||||
<td>{{ Form::checkbox('feet_sensation', 1, $follow_up->feet_sensation, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.impotence') }}</th>
|
||||
<td>{{ Form::checkbox('impotence', 1, $follow_up->impotence, ['disabled']) }}</td>
|
||||
</tr>impotence
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.smoker') }}</th>
|
||||
<td>{{ Form::checkbox('smoker', 1, $follow_up->smoker, ['disabled']) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hiv_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hiv_status', $follow_up->hiv_status, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.tb_status') }}</th>
|
||||
<td>
|
||||
{{ Form::text('tb_status', $follow_up->tb_status, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.alcohol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('alcohol', $follow_up->alcohol, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.mood') }}</th>
|
||||
<td>
|
||||
{{ Form::text('mood', $follow_up->mood, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pneumococcal_immunisation_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('immunisation_date', $follow_up->immunisation_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('comments', $follow_up->comments, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.examination_physical_symptoms') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.height') }}</th>
|
||||
<td>
|
||||
{{ Form::text('height', $follow_up->height, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.weight') }}</th>
|
||||
<td>
|
||||
{{ Form::number('weight', $follow_up->weight, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist') }}</th>
|
||||
<td>
|
||||
{{ Form::number('waist', $follow_up->waist, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hip') }}</th>
|
||||
<td>
|
||||
{{ Form::number('hip', $follow_up->hip, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_lying') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_lying', $follow_up->bp_lying, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bp_standing') }}</th>
|
||||
<td>
|
||||
{{ Form::number('bp_standing', $follow_up->bp_standing, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rate') }}</th>
|
||||
<td>
|
||||
{{ Form::number('pulse_rate', $follow_up->pulse_rate, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pulse_rhythm') }}</th>
|
||||
<td>
|
||||
{{ Form::text('pulse_rhythm', $follow_up->pulse_rhythm, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.sensation') }}</th>
|
||||
<td>
|
||||
{{ Form::text('sensation', $follow_up->sensation, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.pedal_pulses') }}</th>
|
||||
<td>{{ Form::checkbox('pedal_pulses', 1, $follow_up->pedal_pulses, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.feet_inspection') }}</th>
|
||||
<td>{{ Form::checkbox('feet_inspection', 1, $follow_up->feet_inspection, ['disabled']) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.visual_acuity') }}</th>
|
||||
<td>{{ Form::checkbox('visual_acuity', 1, $follow_up->visual_acuity, ['disabled']) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.general_examination') }}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.fundoscopy') }}</th>
|
||||
<td>
|
||||
{{ Form::text('fundoscopy', $follow_up->fundoscopy, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.injection_site_inspection') }}</th>
|
||||
<td>
|
||||
{{ Form::text('injection_site_inspection', $follow_up->injection_site_inspection, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.comments') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('examination_comments', $follow_up->examination_comments, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.bmi') }}</th>
|
||||
<td>
|
||||
{{ Form::text('bmi', $follow_up->bmi, ['class' => 'form-control', 'readonly', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.waist_hip_ration') }}</th>
|
||||
<td>
|
||||
{{ Form::text('waist_hip_ratio', $follow_up->waist_hip_ratio, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.investigations') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.blood_glucose') }}</th>
|
||||
<td>
|
||||
{{ Form::text('blood_glucose', $follow_up->blood_glucose, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.creatinine') }}</th>
|
||||
<td>
|
||||
{{ Form::text('creatinine', $follow_up->creatinine, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hdl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hdl_cholesterol', $follow_up->hdl_cholesterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.ldl_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('ldl_cholesterol', $follow_up->ldl_cholesterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.total_cholesterol') }}</th>
|
||||
<td>
|
||||
{{ Form::text('total_choresterol', $follow_up->total_choresterol, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.triglyceride') }}</th>
|
||||
<td>
|
||||
{{ Form::text('triglyceride', $follow_up->triglyceride, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_protein') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_protein', $follow_up->urine_protein, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.urine_ketones') }}</th>
|
||||
<td>
|
||||
{{ Form::text('urine_ketones', $follow_up->urine_ketones, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.hba1c') }}</th>
|
||||
<td>
|
||||
{{ Form::text('hba1c', $follow_up->hba1c, ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.medication') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if($follow_up->drug_id == 0)
|
||||
<p class="text-center text-danger">{{ __('diabetes_clinic.no_issued_medication') }}</p>
|
||||
@else
|
||||
<table class="table color-bordered-table success-bordered-table" id="drugs_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 37%">{{ __('diabetes_clinic.drug_name') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.dose') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.frequency') }}</th>
|
||||
<th style="width: 15%">{{ __('diabetes_clinic.number_to_dispense') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$drug_ids_array = explode(',', $follow_up->drug_id);
|
||||
$dose_array = explode(',', $follow_up->dose);
|
||||
$frequency_ids_array = explode(',', $follow_up->frequency_id);
|
||||
$dispensed_array = explode(',', $follow_up->dispense_number);
|
||||
@endphp
|
||||
@for($i = 0; $i < count($drug_ids_array); $i++)
|
||||
<tr>
|
||||
<td>
|
||||
{{ Form::text('drug_id', $drugs[$drug_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dose', $dose_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('frequency_id', $dosage_frequencies[$frequency_ids_array[$i]], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('dispense_number', $dispensed_array[$i], ['class' => 'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.other_advice_management') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.patient_education') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diet_overview') }}</th>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_overview_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('overview_diabetes', 1, $follow_up->overview_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('overview_diabetes_date', $follow_up->overview_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.video_management_of_diabetes') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('management_diabetes', 1, $follow_up->management_diabetes, ['disabled']) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('management_diabetes_date', $follow_up->management_diabetes_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover color-table success-table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">{{ __('diabetes_clinic.comments_follow_up') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.diabetic_clinic_date') }}</th>
|
||||
<td>
|
||||
{{ Form::text('diabetic_clinic_date', $follow_up->diabetic_clinic_date, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.eye_clinic_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('eye_clinic_referral', 1, $follow_up->eye_clinic_referral, ['disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.psychological_assessment_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('psychological_assessment_referral', 1, $follow_up->psychological_assessment_referral, ['disabled']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.chaplain_support_referral') }}</th>
|
||||
<td>
|
||||
{{ Form::checkbox('chaplain_support_referral', 1, $follow_up->chaplain_support_referral) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="color: black">{{ __('diabetes_clinic.other_clinic_follow_up') }}</th>
|
||||
<td>
|
||||
{{ Form::textarea('other_clinic_follow_up', $follow_up->other_clinic_follow_up, ['class'=>'form-control', 'readonly']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:api')->get('/diabetes', function () {
|
||||
return "Diabetes";
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group(['middleware' => ['auth', 'disablebackbutton', 'user-locale','subscription-tracking', 'password-expiry']], function () {
|
||||
/* Diabetes Clinic */
|
||||
Route::any('/diabetes_clinic/follow_up', 'DiabetesClinicController@follow_up')->name('diabetes_clinic.follow_up');
|
||||
Route::any('/diabetes_clinic/save_follow_up', 'DiabetesClinicController@save_follow_up')->name('diabetes_clinic.save_follow_up');
|
||||
Route::any('/diabetes_clinic/follow_up_details/{id}', 'DiabetesClinicController@follow_up_details');
|
||||
Route::any('/diabetes_clinic/get_dispensable_drug_units/{drug_id}', 'DiabetesClinicController@get_dispensable_drug_units');
|
||||
Route::any('/diabetes_clinic/clinic_registration', 'DiabetesClinicController@clinic_registration')->name('diabetes_clinic.clinic_registration');
|
||||
Route::any('/diabetes_clinic/save_clinic_registration', 'DiabetesClinicController@save_clinic_registration')->name('diabetes_clinic.save_clinic_registration');
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
image: alpine/git:latest
|
||||
|
||||
pipelines:
|
||||
branches:
|
||||
main:
|
||||
- step:
|
||||
name: Merge To Beta
|
||||
script:
|
||||
- git remote set-url origin https://Kabricks:${APP_SECRET}@bitbucket.org/dcsammi/${BITBUCKET_REPO_SLUG}
|
||||
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
||||
- git fetch
|
||||
- git checkout beta
|
||||
- git merge main
|
||||
- git commit --amend -m "[skip ci] Merge changes from main"
|
||||
- git push
|
||||
- step:
|
||||
name: Deploy To Test
|
||||
script:
|
||||
- echo "Ready to deploy to demo or production!"
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Diabetes",
|
||||
"alias": "diabetes",
|
||||
"description": "Diabetes",
|
||||
"keywords": [],
|
||||
"priority": 0,
|
||||
"providers": [
|
||||
"Modules\\Diabetes\\Providers\\DiabetesServiceProvider"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
Reference in New Issue
Block a user