mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
resolved conflicts
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'Hiv'
|
||||
];
|
||||
+324
@@ -0,0 +1,324 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Hiv\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Streamline\Models\PatientDocument;
|
||||
use Streamline\Models\Alert;
|
||||
use Streamline\Models\Allergy;
|
||||
use Streamline\Models\Patient;
|
||||
use Streamline\Models\Triage;
|
||||
use Streamline\Models\ArtClinicRegistration;
|
||||
use Streamline\Models\ArtContinuationCard;
|
||||
use Carbon\Carbon;
|
||||
use Streamline\Models\HivPatient;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AntiretralViralTherapyController extends Controller
|
||||
{
|
||||
public function __construct() {
|
||||
$this->middleware('auth');
|
||||
}
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
$episode_id = session()->get('episode_id');
|
||||
$patient_id = session()->get('patient_id');
|
||||
$patient = Patient::find($patient_id);
|
||||
|
||||
$categories = DB::table('patient_categories')->where('available', 1)->pluck("name", "id");
|
||||
$marital_statuses = DB::table('marital_statuses')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$districts = DB::table('districts')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$care_entry_points = DB::table('care_entry_points')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$drug_categories = DB::table('drug_categories')->get();
|
||||
$triage_id = get_name($episode_id, "id", "triage_id", "patient_episodes");
|
||||
$triage = Triage::find($triage_id);
|
||||
$documents = PatientDocument::where('patient_id',$patient_id)->orderBy('created_at','desc')->take(2)->get();
|
||||
$known_patient_allergies = Allergy::where('patient_id' , $patient_id)->orderBy('created_at', 'desc')->take(2)->get();
|
||||
$known_patient_alerts = Alert::where('patient_id' , $patient_id)->orderBy('created_at','desc')->take(2)->get();
|
||||
$drug_categories_array = DB::table('drug_categories')->pluck('name', 'id');
|
||||
|
||||
//check if there is ART clinic registration data for this paatient
|
||||
$existing_episode_art_clinic_registration = ArtClinicRegistration::where(['patient_id' => $patient_id])->get();
|
||||
//dd($existing_episode_art_clinic_registration);
|
||||
|
||||
return view('hiv::art_clinic.create',compact('patient_id','episode_id','patient','categories','marital_statuses','drug_categories','documents','known_patient_alerts','known_patient_allergies','drug_categories_array','triage','districts','care_entry_points'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
$test_type_array = array(
|
||||
"Test_Type" => $request->test_type,
|
||||
"Where?" => $request->where
|
||||
);
|
||||
$test_type_serial = serialize($test_type_array);
|
||||
|
||||
//Care Entry Point
|
||||
$care_entry_point_array = array(
|
||||
"Care_Entry_Point" => $request->care_entry_point,
|
||||
"Other(Specify)" => $request->other_care_entry_point
|
||||
);
|
||||
$care_entry_point_serial = serialize($care_entry_point_array);
|
||||
|
||||
//Treatment supporter
|
||||
$treatment_supporter_array = array(
|
||||
"Treatment_Supporter_Name" => $request->treatment_supporter_name,
|
||||
"Phone" => $request->treatment_supporter_phone,
|
||||
"District" => $request->district,
|
||||
"County" => $request->county_id,
|
||||
"Subcounty" => $request->subcounty_id,
|
||||
"Parish" => $request->parish,
|
||||
"Village" => $request->village
|
||||
);
|
||||
$treatment_supporter_serial = serialize($treatment_supporter_array);
|
||||
|
||||
//save data into the art_clinic_registration
|
||||
$art_clinic_registration = new ArtClinicRegistration;
|
||||
$art_clinic_registration->patient_id = $request->patient_id;
|
||||
$art_clinic_registration->marital_status = $request->marital_status;
|
||||
$art_clinic_registration->art_clinic_number = $request->art_clinic_number;
|
||||
/* ========== register the patient in hiv_patients table ========== */
|
||||
$hiv_patient = new HivPatient;
|
||||
$hiv_patient->patient_id = session()->get('patient_id');
|
||||
$hiv_patient->art_clinic_number = $request->art_clinic_number;
|
||||
$hiv_patient->save();
|
||||
/* ===================== */
|
||||
$art_clinic_registration->date_confirmed_HIV = isset($request->date_hiv_confirmed) ? Carbon::createFromFormat('d/m/Y', $request->date_hiv_confirmed)->toDateString() : null;
|
||||
$art_clinic_registration->test_type = $test_type_serial;
|
||||
$art_clinic_registration->care_entry_point = $care_entry_point_serial;
|
||||
$art_clinic_registration->treatment_supporter = $treatment_supporter_serial;
|
||||
$art_clinic_registration->home_based_care_by = $request->home_based_care_provided_by;
|
||||
$art_clinic_registration->created_by = auth()->user()->id;
|
||||
if ($art_clinic_registration->save()) {
|
||||
flash('ART details have been filled. Please fill out the ART continuation card')->success();
|
||||
return redirect('art_continuation_card');
|
||||
}
|
||||
return redirect()->back()->withInput();
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/* Display ART continuation card */
|
||||
public function create_art_continuation_card()
|
||||
{
|
||||
$patient_id = session()->get('patient_id');
|
||||
$patient = Patient::find($patient_id);
|
||||
$categories = DB::table('patient_categories')->where('available', 1)->pluck("name", "id");
|
||||
$marital_statuses = DB::table('marital_statuses')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$districts = DB::table('districts')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$fp_options = DB::table('art_card_family_planning_methods')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$tb_statuses = DB::table('tuberclosis_statuses')->pluck("name", "id")->prepend('-- Select --','');
|
||||
$potential_side_effects = DB::table('art_potential_side_effects')->pluck("name","id")->prepend('-- Select --','');
|
||||
$oi_options = DB::table('art_oi')->pluck("name","id")->prepend('-- Select --','');
|
||||
$nutrition = DB::table('nutrition')->pluck("name","id")->prepend('-- Select --','');
|
||||
$arv_adherence_reasons = DB::table('arv_adherence_reasons')->pluck("name","id")->prepend('-- Select --','');
|
||||
$drug_categories = DB::table('drug_categories')->get();
|
||||
$documents = PatientDocument::where('patient_id',$patient_id)->orderBy('created_at','desc')->take(2)->get();
|
||||
$known_patient_allergies = Allergy::where('patient_id',$patient_id)->orderBy('created_at','desc')->take(2)->get();
|
||||
$known_patient_alerts = Alert::where('patient_id' , $patient_id)->orderBy('created_at','desc')->take(2)->get();
|
||||
$drug_categories_array = DB::table('drug_categories')->pluck('name', 'id');
|
||||
|
||||
//check if there is ART clinic registration data for this paatient
|
||||
$existing_art_continuation_card_records = ArtContinuationCard::where(['patient_id' => $patient_id])->get();
|
||||
$existing_art_continuation_card_records_array = $existing_art_continuation_card_records->toArray();
|
||||
|
||||
return view('hiv::art_clinic.create_ART_continuation_card',compact('patient_id','patient','categories','marital_statuses','drug_categories','documents','known_patient_alerts','known_patient_allergies','drug_categories_array','districts','fp_options','tb_statuses','potential_side_effects','oi_options','nutrition','arv_adherence_reasons','existing_art_continuation_card_records_array','existing_art_continuation_card_records'));
|
||||
}
|
||||
|
||||
/* Store art continuation card details */
|
||||
public function store_art_continuation_card(Request $request)
|
||||
{
|
||||
//ART
|
||||
$art_array = array(
|
||||
"Date started ART" => isset($request->date_started_art) ? Carbon::createFromFormat('d/m/Y', $request->date_started_art)->toDateString() : null,
|
||||
"Duration" => $request->art_duration,
|
||||
"Date started current ART regime" => isset($request->art_regime_start_date) ? Carbon::createFromFormat('d/m/Y', $request->art_regime_start_date)->toDateString() : null,
|
||||
"Current Regime Duration" => $request->art_regime_duration
|
||||
);
|
||||
$art_serial = serialize($art_array);
|
||||
//MUAC and oedema
|
||||
$muac_array = array(
|
||||
"muac" => $request->muac,
|
||||
"oedema" => $request->oedema
|
||||
);
|
||||
$muac_serial = serialize($muac_array);
|
||||
//Pregnacy
|
||||
$pregnancy_array = array(
|
||||
"Pregnant" => $request->pregnant,
|
||||
"EDD" => isset($request->edd) ? Carbon::createFromFormat('d/m/Y', $request->edd)->toDateString() : null,
|
||||
"EMTCT" => $request->emtct,
|
||||
"ANC Location" => $request->anc_location,
|
||||
"Gestation" => $request->gestation,
|
||||
"FP" => $request->fp
|
||||
);
|
||||
$pregnancy_serial = serialize($pregnancy_array);
|
||||
//TB
|
||||
$tb_array = array(
|
||||
"TB Status" => $request->tb_status,
|
||||
"TB Rx start date" => isset($request->tb_rx_start_date) ? Carbon::createFromFormat('d/m/Y', $request->tb_rx_start_date)->toDateString() : null,
|
||||
"Stop date" => isset($request->tb_rx_stop_date) ? Carbon::createFromFormat('d/m/Y', $request->tb_rx_stop_date)->toDateString() : null,
|
||||
"District TB Register Number" => $request->district_tb_register_no
|
||||
);
|
||||
$tb_serial = serialize($tb_array);
|
||||
//Side effects
|
||||
$side_effects_array = array(
|
||||
"Potential side effects" => $request->potential_side_effects,
|
||||
"Others" => $request->other_side_effects
|
||||
);
|
||||
$side_effects_serial = serialize($side_effects_array);
|
||||
//New OI
|
||||
$new_oi = array(
|
||||
"New OI / other problems" => $request->new_oi,
|
||||
"Other" => $request->new_oi_other
|
||||
);
|
||||
$new_oi_serial = serialize($new_oi);
|
||||
//Nutrition
|
||||
$nutrition_array = array(
|
||||
"Nutrition" => $request->nutrition,
|
||||
"Functional Status" => $request->functional_status,
|
||||
"WHO Stage" => $request->who_stage
|
||||
);
|
||||
$nutrition_serial = serialize($nutrition_array);
|
||||
//CPT / Dapsone
|
||||
$cpt_dapsone_array = array(
|
||||
"Adherence" => $request->cpt_dapsone_adherence,
|
||||
"Number of pills dispensed" => $request->cpt_no_pills_dispensed,
|
||||
"Number of days passed" => $request->cpt_no_days_passed
|
||||
);
|
||||
$cpt_dapsone_serial = serialize($cpt_dapsone_array);
|
||||
//INH
|
||||
$inh_array = array(
|
||||
"Number of pills dispensed" => $request->inh_no_pills_dispensed,
|
||||
"Number of days passed" => $request->inh_no_days_passed
|
||||
);
|
||||
$inh_serial = serialize($inh_array);
|
||||
//Other meds
|
||||
$other_meds_array = array(
|
||||
"Other Meds Dispensed including nutritional supplement" => $request->other_meds
|
||||
);
|
||||
$other_meds_serial = serialize($other_meds_array);
|
||||
//ARVs
|
||||
$arvs_array = array(
|
||||
"Adherence" => $request->arvs_adherence,
|
||||
"Why?" => $request->arvs_adherence_why,
|
||||
"Others" => $request->arvs_other,
|
||||
"Regime" => $request->arvs_regime,
|
||||
"Number of pills dispensed" => $request->arvs_no_pills_dispensed,
|
||||
"Number of days passed" => $request->arvs_no_days_passed,
|
||||
);
|
||||
$arvs_serial = serialize($arvs_array);
|
||||
//Ix
|
||||
$ix_array = array(
|
||||
"CD4 count" => $request->cd4_count,
|
||||
"Date" => isset($request->cd4_count_date) ? Carbon::createFromFormat('d/m/Y', $request->cd4_count_date)->toDateString() : null,
|
||||
"Other Ix" => $request->other_ix,
|
||||
"Nutrition supplements" => $request->nutritional_supplements
|
||||
);
|
||||
$ix_serial = serialize($ix_array);
|
||||
//Referrals
|
||||
$referrals_array = array(
|
||||
"Consultation / link/provide" => $request->consultation_link_provide,
|
||||
"Date" => isset($request->consultation_link_provide_date) ? Carbon::createFromFormat('d/m/Y', $request->consultation_link_provide_date)->toDateString() : null,
|
||||
"Nutrition support" => $request->nutritional_support,
|
||||
"Nutrition support Date" => isset($request->nutritional_support_date) ? Carbon::createFromFormat('d/m/Y', $request->nutritional_support_date)->toDateString() : null,
|
||||
"Hospitalization" => $request->hospitalisation,
|
||||
"Duration" => $request->hospitalisation_duration
|
||||
);
|
||||
$referrals_serial = serialize($referrals_array);
|
||||
//Appointments
|
||||
$appointment_array = array(
|
||||
"Next Appointment ART date" => isset($request->next_appointment_date) ? Carbon::createFromFormat('d/m/Y', $request->next_appointment_date)->toDateString() : null,
|
||||
"Other Appointment" => $request->other_appointment,
|
||||
"Other Appointment Date" => isset($request->other_appointment_date) ? Carbon::createFromFormat('d/m/Y', $request->other_appointment_date)->toDateString() : null
|
||||
);
|
||||
$appointment_serial = serialize($appointment_array);
|
||||
|
||||
$art_continuation_card = new ArtContinuationCard;
|
||||
$art_continuation_card->patient_id = $request->patient_id;
|
||||
$art_continuation_card->episode_id = session()->get('episode_id');
|
||||
$art_continuation_card->clinician_id = auth()->user()->id;
|
||||
$art_continuation_card->follow_up = $request->follow_up;
|
||||
$art_continuation_card->ART = $art_serial;
|
||||
$art_continuation_card->muac_oedema = $muac_serial;
|
||||
$art_continuation_card->pregnancy = $pregnancy_serial;
|
||||
$art_continuation_card->TB = $tb_serial;
|
||||
$art_continuation_card->side_effects = $side_effects_serial;
|
||||
$art_continuation_card->OI = $new_oi_serial;
|
||||
$art_continuation_card->nutrition = $nutrition_serial;
|
||||
$art_continuation_card->cpt_dapsone = $cpt_dapsone_serial;
|
||||
$art_continuation_card->INH = $inh_serial;
|
||||
$art_continuation_card->other_meds = $other_meds_serial;
|
||||
$art_continuation_card->ARVs = $arvs_serial;
|
||||
$art_continuation_card->Ix = $ix_serial;
|
||||
$art_continuation_card->referrals = $referrals_serial;
|
||||
$art_continuation_card->appointments = $appointment_serial;
|
||||
if ($art_continuation_card->save()) {
|
||||
flash("ART continuation details have been added")->success();
|
||||
return redirect('patient_episodes');
|
||||
}
|
||||
return redirect()->back()->withInput();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Hiv\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;
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Hiv\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Streamline\Models\Patient;
|
||||
use Streamline\Models\PatientCategory;
|
||||
use Streamline\Models\MaritalStatus;
|
||||
use Streamline\Models\DrugCategory;
|
||||
use Streamline\Models\HivCounsellingAndTesting;
|
||||
|
||||
class HIVController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function menu()
|
||||
{
|
||||
$patient_id = session()->get('patient_id');
|
||||
$episode_id = session()->get('episode_id');
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
$categories = PatientCategory::pluck("name", "id");
|
||||
$marital_statuses = MaritalStatus::pluck("name", "id");
|
||||
$drug_categories = DrugCategory::get();
|
||||
|
||||
return view('hiv::hiv.menu',compact('patient_id', 'episode_id', 'patient', 'categories', 'marital_statuses','drug_categories'));
|
||||
}
|
||||
|
||||
public function hiv_counselling_and_testing()
|
||||
{
|
||||
$patient_id = session()->get('patient_id');
|
||||
$episode_id = session()->get('episode_id');
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
$categories = PatientCategory::pluck("name", "id");
|
||||
$marital_statuses = MaritalStatus::pluck("name", "id");
|
||||
$drug_categories = DrugCategory::get();
|
||||
|
||||
return view('hiv::hiv.hiv_counselling_and_testing',compact('patient_id', 'episode_id', 'patient', 'categories', 'marital_statuses','drug_categories'));
|
||||
}
|
||||
|
||||
public function store_hct_form(Request $request)
|
||||
{
|
||||
$patient_id = session()->get('patient_id');
|
||||
$episode_id = session()->get('episode_id');
|
||||
|
||||
$hiv_counselling_and_testing = new HivCounsellingAndTesting;
|
||||
$hiv_counselling_and_testing->patient_id = $patient_id;
|
||||
$hiv_counselling_and_testing->episode_id = $episode_id;
|
||||
$hiv_counselling_and_testing->counselling_date = isset($request->counselling_date) ? Carbon::createFromFormat('d/m/Y', $request->counselling_date)->toDateString() : null;
|
||||
$hiv_counselling_and_testing->is_center_static = $request->is_center_static;
|
||||
$hiv_counselling_and_testing->registration_number = $request->registration_number;
|
||||
$hiv_counselling_and_testing->accompanied_by = $request->accompanied_by;
|
||||
$hiv_counselling_and_testing->counselled_as = $request->counselled_as;
|
||||
$hiv_counselling_and_testing->approach = $request->approach;
|
||||
$hiv_counselling_and_testing->hct_entry_point = $request->hct_entry_point;
|
||||
$hiv_counselling_and_testing->ever_tested_for_hiv_before = $request->ever_tested_for_hiv_before;
|
||||
$hiv_counselling_and_testing->times_tested_in_last_12_months = $request->times_tested_in_last_12_months;
|
||||
$hiv_counselling_and_testing->number_of_sexual_partners_in_last_12_months = $request->number_of_sexual_partners_in_last_12_months;
|
||||
$hiv_counselling_and_testing->partner_tested_before = $request->partner_tested_before;
|
||||
$hiv_counselling_and_testing->partner_results = $request->partner_results;
|
||||
$hiv_counselling_and_testing->confirmatory_lab = $request->confirmatory_lab;
|
||||
$hiv_counselling_and_testing->results_received = $request->results_received;
|
||||
$hiv_counselling_and_testing->results_received_as_a_couple = $request->results_received_as_a_couple;
|
||||
$hiv_counselling_and_testing->is_there_suspision_for_tb = $request->is_there_suspision_for_tb;
|
||||
$hiv_counselling_and_testing->has_client_started_cotrimoxazole_prophylaxis = $request->has_client_started_cotrimoxazole_prophylaxis;
|
||||
$hiv_counselling_and_testing->has_client_been_linked_to_care = $request->has_client_been_linked_to_care;
|
||||
$hiv_counselling_and_testing->where_is_the_client_care = $request->where_is_the_client_care;
|
||||
$hiv_counselling_and_testing->cd4_count_results = $request->cd4_count_results;
|
||||
$hiv_counselling_and_testing->hiv_recency_test_result = $request->hiv_recency_test_result;
|
||||
$hiv_counselling_and_testing->counsellor = $request->counsellor;
|
||||
$hiv_counselling_and_testing->save();
|
||||
flash("couselling and testing details have been saved")->success();
|
||||
|
||||
return redirect('hiv_counselling_and_testing');
|
||||
}
|
||||
/*
|
||||
* appointment follow up form
|
||||
*/
|
||||
public function appointment_follow_up()
|
||||
{
|
||||
$patient_id = session()->get('patient_id');
|
||||
$episode_id = session()->get('episode_id');
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
$categories = PatientCategory::pluck("name", "id");
|
||||
$marital_statuses = MaritalStatus::pluck("name", "id");
|
||||
$drug_categories = DrugCategory::get();
|
||||
|
||||
return view('hiv::hiv.appointment_follow_up',compact('patient_id', 'episode_id', 'patient', 'categories', 'marital_statuses','drug_categories'));
|
||||
}
|
||||
|
||||
public function health_unit_tb_form()
|
||||
{
|
||||
$patient_id = session()->get('patient_id');
|
||||
$episode_id = session()->get('episode_id');
|
||||
$patient = Patient::where('id', $patient_id)->first();
|
||||
$categories = PatientCategory::pluck("name", "id");
|
||||
$marital_statuses = MaritalStatus::pluck("name", "id");
|
||||
$drug_categories = DrugCategory::get();
|
||||
return view('hiv::hiv.health_unit_tuberclosis_form',compact('patient_id', 'episode_id', 'patient', 'categories', 'marital_statuses','drug_categories'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Hiv\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Hiv\Providers\RouteServiceProvider;
|
||||
|
||||
class HivServiceProvider extends ServiceProvider {
|
||||
/**
|
||||
* @var string $moduleName
|
||||
*/
|
||||
protected $moduleName = 'Hiv';
|
||||
|
||||
/**
|
||||
* @var string $moduleNameLower
|
||||
*/
|
||||
protected $moduleNameLower = 'hiv';
|
||||
|
||||
/**
|
||||
* 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\Hiv\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\Hiv\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('Hiv', '/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('Hiv', '/Routes/api.php'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,762 @@
|
||||
@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">{{ __('art_clinic.art_clinic') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('art_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('art_clinic.art_clinic') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{ __('art_clinic.triage_details') }}
|
||||
<div class="panel-action"><a href="#" data-perform="panel-collapse"><i class="ti-minus"></i></a> <a href="#" data-perform="panel-dismiss"><i class="ti-close"></i></a></div>
|
||||
</div>
|
||||
<div class="panel-wrapper collapse in">
|
||||
<ul class="nav customtab nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active nav-item"><a href="#home1" class="nav-link" aria-controls="home" role="tab" data-toggle="tab" aria-expanded="true"><span class="visible-xs"><i class="ti-home"></i></span><span class="hidden-xs"> {{ __('art_clinic.observations') }}</span></a></li>
|
||||
<li role="presentation" class="nav-item"><a href="#profile1" class="nav-link" aria-controls="profile" role="tab" data-toggle="tab" aria-expanded="false"><span class="visible-xs"><i class="ti-user"></i></span> <span class="hidden-xs">{{ __('art_clinic.symptoms') }}</span></a></li>
|
||||
<li role="presentation" class="nav-item"><a href="#messages1" class="nav-link" aria-controls="messages" role="tab" data-toggle="tab"><span class="visible-xs"><i class="ti-email"></i></span> <span class="hidden-xs">{{ __('art_clinic.grade') }}</span></a></li>
|
||||
</ul>
|
||||
<div class="panel-body">
|
||||
<div class="tab-content m-t-0">
|
||||
<div role="tabpanel" class="tab-pane fade active in" id="home1">
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="profile1">
|
||||
<div class="col-md-6">
|
||||
@if($triage)
|
||||
{{ get_name($triage->symptoms,'id','name','symptoms') }}
|
||||
@else
|
||||
<code>{{ __('art_clinic.no_symptoms_records') }}</code>
|
||||
@endif
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="messages1">
|
||||
<div class="col-md-6">
|
||||
@if($triage)
|
||||
@switch($triage->severe_grade)
|
||||
@case (1)
|
||||
<span style="font-weight: bolder; color: green;">{{ __('art_clinic.green') }}</span>
|
||||
@break
|
||||
@case (2)
|
||||
<span style="font-weight: bolder; color: yellow;">{{ __('art_clinic.yellow') }}</span>
|
||||
@break
|
||||
@case (3)
|
||||
<span style="font-weight: bolder; color: green;">{{ __('art_clinic.red') }}</span>
|
||||
@break
|
||||
@default
|
||||
<code>{{ __('art_clinic.triage_grade_not_determined') }}</code>
|
||||
@endswitch
|
||||
@endif
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{ __('art_clinic.patient_documents') }}
|
||||
<div class="panel-action">
|
||||
<div class="dropdown active men">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false" role="button"><span class="label label-purple">{{ $documents->count() }}</span> <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu bullet dropdown-menu-right" aria-labelledby="examplePanelDropdown" role="menu">
|
||||
<li role="presentation"><a href="#" role="menuitem" data-perform="panel-collapse"><i class="ti-plus"></i></a></li>
|
||||
<li role="presentation"><a href="#" role="menuitem" data-perform="panel-dismiss"><i class="ti-close"></i></a></li>
|
||||
<li class="divider" role="presentation"></li>
|
||||
<li role="presentation"><a href="{{ route('patient_documents.index') }}" role="menuitem"><i class="icon wb-settings" aria-hidden="true"></i> {{ __('art_clinic.add') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-action">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-wrapper collapse in table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
<tr>
|
||||
<td><a href="#">{{ $document->title }}</a></td>
|
||||
<td>{{ Carbon\Carbon::parse($document->date_taken)->format('jS M Y') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<b>{{ __('art_clinic.art_clinic') }}</b><br><br>
|
||||
<div class="row">
|
||||
<div class="col-sm-10"></div><div class="col-sm-2"><b>{{ __('art_clinic.clinician') }} : </b><font style="background: #eaeaf3;"> {{ isset($triage) ? get_name($triage->created_by,'id','last_name','users') : ""}} </font></div>
|
||||
</div>
|
||||
<hr>
|
||||
{{ Form::open(['route' => 'antiretral_viral_therapy.store','data-toggle'=>'validator']) }}
|
||||
|
||||
<input type="hidden" name="patient_id" value="{{ $patient_id }}">
|
||||
<input type="hidden" name="episode_id" value="{{ $episode_id }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('age','Age') }}
|
||||
@php
|
||||
$age_array = days_months_years($patient->date_of_birth, Carbon\Carbon::now());
|
||||
$age_days = $age_array[0];
|
||||
$age_months = $age_array[1];
|
||||
$age_years = $age_array[2];
|
||||
@endphp
|
||||
<br>
|
||||
<div style="background: #eaeaf3; padding: 5px;">
|
||||
{{ $age_years }} Years {{ $age_months }} Months <br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="marital_status">{{ __('art_clinic.marital_status') }}</label>
|
||||
{{ Form::select('marital_status',$marital_statuses,'',['class'=>'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('art_clinic_number','ART CLINIC NUMBER') }}
|
||||
{{ Form::text('art_clinic_number','',['class'=>'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="col-sm-2">
|
||||
<label for="date_hiv_confirmed">{{ __('art_clinic.date_confirmed_hiv_positive') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('date_hiv_confirmed','',['class'=>'form-control compulsory','id'=>'datepicker-autoclose1','required']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="test_type">{{ __('art_clinic.test_type') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('test_type', 'AB', false, ['required']) }} Yes
|
||||
{{ Form::radio('test_type', 'PCR', false, ['required']) }} No
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="where">{{ __('art_clinic.where') }}</label>
|
||||
{{ Form::text('where','',['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="care_entry_point">{{ __('art_clinic.care_entry_point') }}</label>
|
||||
<br>
|
||||
{{ Form::select('care_entry_point',$care_entry_points,'',['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="other_care_entry_point">{{ __('art_clinic.other_specify') }}</label>
|
||||
{{ Form::text('other_care_entry_point','',['class'=>'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="treatment_supporter">{{ __('art_clinic.treatment_supporter') }}</label>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="treatment_support_name">{{ __('art_clinic.support_name') }}</label>
|
||||
{{ Form::text('treatment_supporter_name','',['class'=>'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="treatment_supporter_phone">{{ __('art_clinic.supporter_telephone') }}</label>
|
||||
{{ Form::text('treatment_supporter_phone','',['class'=>'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="col-sm-2" id="div_district">
|
||||
<label for="district">{{ __('art_clinic.district') }}</label>
|
||||
{{ Form::select('district',$districts,'',['class'=>'form-control compulsory district','id'=>'district_id']) }}
|
||||
<a href="#modal_district" data-toggle="modal" id="modal_district_link"><font size="1">{{ __('art_clinic.add_new_district') }}</font></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2" id="div_county" style="display: none;">
|
||||
<label for='county_id'>{{ __('art_clinic.county') }}</label>
|
||||
<select class='form-control county' name='county_id' id='county_id' data-error=''>
|
||||
<option>{{ __('art_clinic.select') }}</option>
|
||||
</select>
|
||||
<a href="#modal_county" data-toggle="modal" id="modal_county_link"><font size="1">{{ __('art_clinic.add_new_county') }}</font></a>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2" id="div_subcounty" style="display: none;">
|
||||
<label for='subcounty_id'>{{ __('art_clinic.sub_county') }}</label>
|
||||
<select class='form-control subcounty' name='subcounty_id' id='subcounty_id' data-error=''>
|
||||
<option>{{ __('art_clinic.select') }}</option>
|
||||
</select>
|
||||
<a href="#modal_subcounty" data-toggle="modal" id="modal_subcounty_link"><font size="1">{{ __('art_clinic.add_new_sub_county') }}</font></a>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="form-group col-sm-2" id="div_parish" style="display: none;">
|
||||
<label for='parish'>{{ __('art_clinic.parish') }}</label>
|
||||
<select class='form-control parish' name='parish' id='parish' data-error=''>
|
||||
<option>{{ __('art_clinic.select') }}</option>
|
||||
</select>
|
||||
<a href="#modal_parish" data-toggle="modal" id="modal_parish_link"><font size="1">{{ __('art_clinic.add_new_parish') }}</font></a>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-1"></div>
|
||||
|
||||
<div class="col-sm-2" id="div_village" style="display: none;">
|
||||
<label for='village'>{{ __('art_clinic.village') }}</label>
|
||||
<select class='form-control village' name='village' id="village" data-error=''>
|
||||
<option>{{ __('art_clinic.select') }}</option>
|
||||
</select>
|
||||
<a href="#modal_village" data-toggle="modal" id="modal_village_link"><font size="1">{{ __('art_clinic.add_new_village') }}</font></a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="home_based_care_provided_by">{{ __('art_clinic.home_based_care_provided_by') }}</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-3">
|
||||
{{ Form::label('','') }}
|
||||
{{ Form::text('home_based_care_provided_by','',['class'=>'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3" style="padding: 5px;">
|
||||
{{ Form::button('Complete registration',['type'=>'submit','class'=>'btn btn-success btn-lg col-sm-12','id'=>'submit_art_registration','value'=>'complete']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
|
||||
<!-- add residence modals -->
|
||||
<!-- new district modal -->
|
||||
<div class="modal fade" id="modal_district" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_district') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control" id="new_district_name" name="new_district_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
|
||||
<input type="button" class="btn btn-success" id="submit_new_district" value="Save " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new county modal -->
|
||||
<div class="modal fade" id="modal_county" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_county') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control" id="new_county_name" name="new_county_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
|
||||
<input type="button" class="btn btn-success" id="submit_new_county" value="Save " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new subcounty modal -->
|
||||
<div class="modal fade" id="modal_subcounty" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_sub_county') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control" id="new_subcounty_name" name="new_subcounty_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
|
||||
<input type="button" class="btn btn-success" id="submit_new_subcounty" value="Save " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new parish modal -->
|
||||
<div class="modal fade" id="modal_parish" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_parish') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control" id="new_parish_name" name="new_parish_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
|
||||
<input type="button" class="btn btn-success" id="submit_new_parish" value="Save " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- new village modal -->
|
||||
<div class="modal fade" id="modal_village" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="exampleModalLabel1">{{ __('art_clinic.register_a_new_village') }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="controls">
|
||||
<input class="form-control" id="new_village_name" name="new_village_name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('art_clinic.cancel') }}</button>
|
||||
<input type="button" class="btn btn-success" id="submit_new_village" value="Save " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#datepicker-autoclose5,#datepicker-autoclose6').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
$("#submit_art_registration").click(function (e) { // make sure that all compulsory fields have been filled out
|
||||
var empty_compulsory_fields = [];
|
||||
$(".compulsory").each(function () {
|
||||
if ($(this).val() == "") {
|
||||
var textname = $(this).attr('name');
|
||||
$(this).focus();
|
||||
empty_compulsory_fields.push(textname);
|
||||
$(this).css('border','1px solid #F08080');
|
||||
}
|
||||
});
|
||||
/* check if the array containing empty compulsory fields is not empty then return false */
|
||||
if (empty_compulsory_fields.length != 0) {
|
||||
alert("Please fill in all compulsory fields");
|
||||
console.log(empty_compulsory_fields);
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
$("#submit_new_occupation").click(function () {
|
||||
var new_occupation_name = $("#new_occupation_name").val();
|
||||
if (new_occupation_name == '') {
|
||||
alert("Please fill out a name");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_new_occupation_dynamically",
|
||||
data: {name: new_occupation_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("Error occured. New occupation has not been added");
|
||||
} else {
|
||||
$('.occupation').append($('<option>', {
|
||||
value: response,
|
||||
text: new_occupation_name
|
||||
}));
|
||||
$('.occupation').val(response);//preselect the newly added referral
|
||||
//$('#modal_occupation').hide();
|
||||
$('#modal_occupation').modal('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#new_occupation_name").val('');
|
||||
$("#modal_occupation #close").click();
|
||||
});
|
||||
|
||||
$("#submit_new_district").click(function () {
|
||||
var new_district_name = $("#new_district_name").val();
|
||||
if (new_district_name == '') {
|
||||
alert("Please fill out a name");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_new_district_dynamically",
|
||||
data: {name: new_district_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("District already Exists");
|
||||
} else {
|
||||
$('.district').append($('<option>', {
|
||||
value: response,
|
||||
text: new_district_name
|
||||
}));
|
||||
$('.district').val(response);//preselect the newly added referral
|
||||
//$('#modal_occupation').hide();
|
||||
$('#modal_district').modal('hide');
|
||||
}
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#new_district_name").val('');
|
||||
$("#modal_district #close").click();
|
||||
});
|
||||
|
||||
$("#submit_new_county").click(function () {
|
||||
var new_county_name = $("#new_county_name").val();
|
||||
if (new_county_name == '') {
|
||||
alert("Please fill out a name");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_new_county_dynamically",
|
||||
data: {name: new_county_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("County already Exists");
|
||||
} else {
|
||||
$('.county').append($('<option>', {
|
||||
value: response,
|
||||
text: new_county_name
|
||||
}));
|
||||
$('.county').val(response);//preselect the newly added referral
|
||||
//$('#modal_occupation').hide();
|
||||
$('#modal_county').modal('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#new_county_name").val('');
|
||||
$("#modal_county #close").click();
|
||||
});
|
||||
|
||||
$("#submit_new_subcounty").click(function () {
|
||||
var new_subcounty_name = $("#new_subcounty_name").val();
|
||||
if (new_subcounty_name == '') {
|
||||
alert("Please fill out a name");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_new_subcounty_dynamically",
|
||||
data: {name: new_subcounty_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("Sub-County already Exists");
|
||||
} else {
|
||||
$('.subcounty').append($('<option>', {
|
||||
value: response,
|
||||
text: new_subcounty_name
|
||||
}));
|
||||
$('.subcounty').val(response);//preselect the newly added referral
|
||||
//$('#modal_occupation').hide();
|
||||
$('#modal_subcounty').modal('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#new_subcounty_name").val('');
|
||||
$("#modal_subcounty #close").click();
|
||||
});
|
||||
|
||||
$("#submit_new_parish").click(function () {
|
||||
var new_parish_name = $("#new_parish_name").val();
|
||||
if (new_parish_name == '') {
|
||||
alert("Please fill out a name");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_new_parish_dynamically",
|
||||
data: {name: new_parish_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("Parish already Exists");
|
||||
} else {
|
||||
$('.parish').append($('<option>', {
|
||||
value: response,
|
||||
text: new_parish_name
|
||||
}));
|
||||
$('.parish').val(response);//preselect the newly added referral
|
||||
//$('#modal_occupation').hide();
|
||||
$('#modal_parish').modal('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#new_parish_name").val('');
|
||||
$("#modal_parish #close").click();
|
||||
});
|
||||
|
||||
$("#submit_new_village").click(function () {
|
||||
var new_village_name = $("#new_village_name").val();
|
||||
if (new_village_name == '') {
|
||||
alert("Please fill out a name");
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/add_new_village_dynamically",
|
||||
data: {name: new_village_name},
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
if(response == 'false'){
|
||||
alert("Village already Exists");
|
||||
} else {
|
||||
$('.village').append($('<option>', {
|
||||
value: response,
|
||||
text: new_village_name
|
||||
}));
|
||||
$('.village').val(response);//preselect the newly added referral
|
||||
//$('#modal_occupation').hide();
|
||||
$('#modal_village').modal('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#new_village_name").val('');
|
||||
$("#modal_village #close").click();
|
||||
});
|
||||
|
||||
$('#div_district').on('change', function () {
|
||||
$('#div_county').show();
|
||||
//get selected value
|
||||
var id = $('#district_id').val();
|
||||
//add dropdown to immediate dependant dropdown
|
||||
if (window.XMLHttpRequest)
|
||||
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
} else
|
||||
{// code for IE6, IE5
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
xmlhttp.onreadystatechange = function ()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
//set counties dropdown options for selected district
|
||||
console.log("selected district_id = " + id);
|
||||
document.getElementById("county_id").innerHTML = xmlhttp.responseText;
|
||||
/*document.getElementById("subcounty_id").innerHTML = xmlhttp.responseText;
|
||||
document.getElementById("parish").innerHTML = xmlhttp.responseText;
|
||||
document.getElementById("village").innerHTML = xmlhttp.responseText;*/
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET", "/patients/get_counties/" + id, false);
|
||||
xmlhttp.send();
|
||||
});
|
||||
|
||||
$('#div_county').on('change', function () {
|
||||
var id = $('#district_id').val();
|
||||
var id = $('#county_id').val();
|
||||
$('#div_subcounty').show();
|
||||
|
||||
//add dropdown to immediate dependant dropdown
|
||||
if (window.XMLHttpRequest)
|
||||
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
} else
|
||||
{// code for IE6, IE5
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
xmlhttp.onreadystatechange = function ()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
document.getElementById("subcounty_id").innerHTML = xmlhttp.responseText;
|
||||
document.getElementById("parish").innerHTML = xmlhttp.responseText;
|
||||
document.getElementById("village").innerHTML = xmlhttp.responseText;
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET", "/patients/get_subcounties/" + id, false);
|
||||
xmlhttp.send();
|
||||
});
|
||||
|
||||
$('#div_subcounty').on('change', function () {
|
||||
//remove content from all dependant dropdowns
|
||||
//get selected value
|
||||
var id = $('#subcounty_id').val();
|
||||
var district_id = $('#district_id').val();
|
||||
$('#div_parish').show();
|
||||
|
||||
//add dropdown to immediate dependant dropdown
|
||||
if (window.XMLHttpRequest)
|
||||
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
} else
|
||||
{// code for IE6, IE5
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
xmlhttp.onreadystatechange = function ()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
document.getElementById("parish").innerHTML = xmlhttp.responseText;
|
||||
document.getElementById("village").innerHTML = xmlhttp.responseText;
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET", "/patients/get_parishes/" + id, false);
|
||||
xmlhttp.send();
|
||||
});
|
||||
|
||||
$('#div_parish').on('change', function () {
|
||||
//remove content from all dependant dropdowns
|
||||
//get selected value
|
||||
var id = $('#parish').val();
|
||||
$('#div_village').show();
|
||||
|
||||
//add dropdown to immediate dependant dropdown
|
||||
if (window.XMLHttpRequest)
|
||||
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
} else
|
||||
{// code for IE6, IE5
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
}
|
||||
xmlhttp.onreadystatechange = function ()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
document.getElementById("village").innerHTML = xmlhttp.responseText;
|
||||
}
|
||||
}
|
||||
xmlhttp.open("GET", "/patients/get_villages/" + id, false);
|
||||
xmlhttp.send();
|
||||
});
|
||||
|
||||
$('#district_id').on('click', function () {
|
||||
var district_id = $('#district_id').val();
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: '/patient_residence/'+district_id,
|
||||
cache: false,
|
||||
success: function (response) {
|
||||
/* auto fill the subcounties based on the district that is selected */
|
||||
var subcounties = response.subcounties;
|
||||
for(var id in subcounties){
|
||||
var subcounty_select = document.getElementById("subcounty_id");
|
||||
var subcounty_option = document.createElement("option");
|
||||
subcounty_option.value = id;
|
||||
subcounty_option.text = subcounties[id];
|
||||
subcounty_select.appendChild(subcounty_option);
|
||||
}
|
||||
/* auto fill the parishes based on the selected district */
|
||||
var parishes = response.parishes;
|
||||
for(var id in parishes){
|
||||
var parish_select = document.getElementById("parish");
|
||||
var parish_option = document.createElement("option");
|
||||
parish_option.value = id;
|
||||
parish_option.text = parishes[id];
|
||||
parish_select.appendChild(parish_option);
|
||||
}
|
||||
/* auto fill the villages based on the selected district */
|
||||
var villages = response.villages;
|
||||
for(var id in villages){
|
||||
var village_select = document.getElementById("village");
|
||||
var village_option = document.createElement("option");
|
||||
village_option.value = id;
|
||||
village_option.text = villages[id];
|
||||
village_select.appendChild(village_option);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+475
@@ -0,0 +1,475 @@
|
||||
@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">{{ __('art_clinic.art_clinic_continuation_card') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('art_clinic.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('art_clinic.art_clinic_continuation_card') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($existing_art_continuation_card_records_array)
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="white-box">
|
||||
<h4>{{ __('art_clinic.existing_art_card_details') }}</h4>
|
||||
|
||||
<table class="table color-bordered-table success-bordered-table" id="paid_treatments_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ __('art_clinic.follow_up') }}</th>
|
||||
<th>{{ __('art_clinic.date_started_art') }}</th>
|
||||
<th>{{ __('art_clinic.muac') }}</th>
|
||||
<th>{{ __('art_clinic.oedema') }}</th>
|
||||
<th>{{ __('art_clinic.pregnant') }}</th>
|
||||
<th>{{ __('art_clinic.edd') }}</th>
|
||||
<th>{{ __('art_clinic.gestation') }}</th>
|
||||
<th>{{ __('art_clinic.family_planning') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1; @endphp
|
||||
@foreach($existing_art_continuation_card_records as $existing_record)
|
||||
@php
|
||||
$unserialized_ART_details = unserialize($existing_record->ART);
|
||||
$date_ART_started = $unserialized_ART_details['Date started ART'];
|
||||
$duration = $unserialized_ART_details['Duration'];
|
||||
$date_started_current_ART_regime = $unserialized_ART_details['Date started current ART regime'];
|
||||
$current_regime_duration = $unserialized_ART_details['Current Regime Duration'];
|
||||
|
||||
$unserialized_muac_oedema = unserialize($existing_record->muac_oedema);
|
||||
$muac = $unserialized_muac_oedema['muac'];
|
||||
$oedema = $unserialized_muac_oedema['oedema'];
|
||||
|
||||
$unserialized_pregnancy_details = unserialize($existing_record->pregnancy);
|
||||
$pregnant = $unserialized_pregnancy_details['Pregnant'];
|
||||
$edd = $unserialized_pregnancy_details['EDD'];
|
||||
$emtct = $unserialized_pregnancy_details['EMTCT'];
|
||||
$anc_location = $unserialized_pregnancy_details['ANC Location'];
|
||||
$gestation = $unserialized_pregnancy_details['Gestation'];
|
||||
$family_planning = $unserialized_pregnancy_details['FP'];
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}.</td>
|
||||
<td>{{ $existing_record->follow_up == "1" ? "Yes" : "No" }}</td>
|
||||
<td>{{ is_null($date_ART_started) ? "" : streamline_date($date_ART_started) }}</td>
|
||||
<td>{{ $muac }}</td>
|
||||
<td>{{ $oedema }}</td>
|
||||
<td>{{ $pregnant }}</td>
|
||||
<td>{{ is_null($edd) ? "" : streamline_date($edd) }}</td>
|
||||
<td>{{ $gestation }} weeks</td>
|
||||
<td>{{ $fp_options[$family_planning] }}</td>
|
||||
<td>
|
||||
<a href="{{ url('art_continuation_details') }}/{{ $existing_record->id }}" class="btn btn-success btn-sm">{{ __('art_clinic.details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<h3>{{ __('art_clinic.art_continuation_card') }}</h3>
|
||||
{{ Form::open(['route' => 'antiretral_viral_therapy.store_continuation_card','data-toggle'=>'validator']) }}
|
||||
<input type="hidden" name="patient_id" value="{{ $patient_id }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-4"></div>
|
||||
<div class="col-sm-3"><b>{{ __('art_clinic.clinician') }} : </b><font style="background: #eaeaf3;"> {{ auth()->user()->first_name . " " . auth()->user()->last_name }}</font></div>
|
||||
<div class="col-sm-2"><b>{{ __('art_clinic.scheduled_follow_up') }} </b></div>
|
||||
<div class="col-sm-3"><font style="background: #eaeaf3;"> {{ Form::select('follow_up',['' => ' -- Select --', '1' => 'yes', '0' => 'no'],'',['class'=>'form-control compulsory']) }}</font></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="date_started_art">{{ __('art_clinic.date_started_art') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('date_started_art','',['class'=>'form-control compulsory','id'=>'datepicker-autoclose1','required']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="duration">{{ __('art_clinic.duration') }}</label>
|
||||
{{ Form::text('art_duration','',['class'=>'form-control compulsory','id' => 'art_duration']) }}
|
||||
</div>
|
||||
<div class="col-sm-1"><br><br>{{ __('art_clinic.months') }}</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="art_regime_start_date">{{ __('art_clinic.date_started_current_art_regime') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('art_regime_start_date','',['class'=>'form-control','id'=>'datepicker-autoclose2','required']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="art_regime_duration">{{ __('art_clinic.duration') }}</label>
|
||||
{{ Form::text('art_regime_duration','',['class'=>'form-control compulsory','id' => 'art_regime_duration']) }}
|
||||
</div>
|
||||
<div class="col-sm-1"><br><br>{{ __('art_clinic.months') }}</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="muac">{{ __('art_clinic.muac') }}</label>
|
||||
{{ Form::text('muac', '', ['class'=>'form-control compulsory','id'=>'muac']) }}
|
||||
</div>
|
||||
<div class="col-sm-1"><br><br>cm</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="oedema">{{ __('art_clinic.oedema') }}</label>
|
||||
{{ Form::select('oedema',['' => '-- Select --', '-' => ' - ', '+' => ' + '],'',['class'=>'form-control compulsory','id'=>'oedema']) }}
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="pregnant">{{ __('art_clinic.pregnant') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('pregnant', 'Yes', false, ['required']) }} Yes
|
||||
{{ Form::radio('pregnant', 'No', false, ['required']) }} No
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="edd">{{ __('art_clinic.edd') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('edd','',['class'=>'form-control compulsory','id'=>'edd']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="emtct">{{ __('art_clinic.emtct') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('emtct', 'Yes', false, ['required']) }} Yes
|
||||
{{ Form::radio('emtct', 'No', false, ['required']) }} No
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-2">
|
||||
<label for="anc_location">{{ __('art_clinic.anc_location') }}</label>
|
||||
{{ Form::text('anc_location','',['class'=>'form-control']) }}
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<label for="gestation">{{ __('art_clinic.gestation') }}</label>
|
||||
{{ Form::number('gestation','',['class'=>'form-control', 'min' => '0']) }}
|
||||
</div>
|
||||
<div class="col-sm-1"><br><br>{{ __('art_clinic.weeks') }}</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="fp">{{ __('art_clinic.fp') }}</label>
|
||||
{{ Form::select('fp',$fp_options,'',['class'=>'form-control compulsory','id'=>'fp']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="tb_status">{{ __('art_clinic.tb_status') }}</label>
|
||||
{{ Form::select('tb_status',$tb_statuses,'',['class'=>'form-control compulsory','id'=>'tb_status']) }}
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="tb_rx_start_date">{{ __('art_clinic.tb_rx_start_date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('tb_rx_start_date', '', ['class'=>'form-control','id'=>'tb_rx_start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<label for="tb_rx_stop_date">{{ __('art_clinic.tb_rx_stop_date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('tb_rx_stop_date', '' , ['class'=>'form-control','id'=>'tb_rx_stop_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="district_tb_register_number">{{ __('art_clinic.district_tb_register_number') }}</label>
|
||||
{{ Form::text('district_tb_register_no','',['class'=>'form-control']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="potential_side_effects">{{ __('art_clinic.potential_side_effects') }}</label>
|
||||
{{ Form::select('potential_side_effects',$potential_side_effects,'',['class'=>'form-control compulsory','id'=>'potential_side_effects']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="other_side_effects">{{ __('art_clinic.other_side_effects') }}</label>
|
||||
{{ Form::text('other_side_effects','',['class'=>'form-control', 'id' => 'other_side_effects']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="new_oi">{{ __('art_clinic.new_oi') }}</label>
|
||||
{{ Form::select('new_oi',$oi_options,'',['class'=>'form-control compulsory','id'=>'new_oi']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="new_other_oi">{{ __('art_clinic.other_specify') }}</label>
|
||||
{{ Form::text('new_oi_other','',['class'=>'form-control', 'id' => 'new_oi_other']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="nutrition">{{ __('art_clinic.nutrition') }}</label>
|
||||
{{ Form::select('nutrition',$nutrition,'',['class'=>'form-control compulsory','id'=>'nutrition']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="functional_status">{{ __('art_clinic.functional_status') }}</label>
|
||||
{{ Form::select('functional_status',['' => '-- Select --','W' => 'Work / playing','A' => 'Ambulatory','B' => 'Bed'],'',['class'=>'form-control compulsory','id'=>'functional_status']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="who_stage">{{ __('art_clinic.who_stage') }}</label>
|
||||
{{ Form::select('who_stage',[''=>'-- Select --','1'=>'WHO clinical stage 1','2'=>'WHO clinical stage 2','3'=>'WHO clinical stage 3','4'=>'WHO clinical stage 4'],'',['class'=>'form-control compulsory','id'=>'who_stage']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="cpt_dapsone_adherence">{{ __('art_clinic.cpt') }}</label>
|
||||
{{ Form::select('cpt_dapsone_adherence',['' => '-- Select --','G' => 'Good', 'F' => 'Fair', 'P' => 'Poor'],'',['class'=>'form-control compulsory','id'=>'cpt_dapsone_adherence']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="cpt_no_pill_dispensed">{{ __('art_clinic.number_of_pill_dispensed') }}</label>
|
||||
{{ Form::number('cpt_no_pills_dispensed','',['class'=>'form-control compulsory','id'=>'cpt_no_pills_dispensed']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="cpt_no_days_passed">{{ __('art_clinic.number_of_days_passed') }}</label>
|
||||
{{ Form::number('cpt_no_days_passed','',['class'=>'form-control compulsory','id'=>'cpt_no_days_passed']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
{{ __('art_clinic.inh') }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="inh_no_pills_dispensed">{{ __('art_clinic.number_of_pills_dispensed') }}</label>
|
||||
{{ Form::number('inh_no_pills_dispensed','',['class'=>'form-control compulsory','id'=>'inh_no_pills_dispensed']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="inh_no_days_passed">{{ __('art_clinic.number_of_days_passed') }}</label>
|
||||
{{ Form::number('inh_no_days_passed','',['class'=>'form-control compulsory','id'=>'inh_no_days_passed']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-12">
|
||||
<label for="other_meds">{{ __('art_clinic.other_meds') }}</label>
|
||||
{{ Form::textarea('other_meds','',['class'=>'form-control compulsory','id'=>'other_meds']) }}
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<label for="arvs_adherence">{{ __('art_clinic.arvs_adherence') }}</label>
|
||||
{{ Form::select('arvs_adherence',['' => '-- Select --','G' => 'Good', 'F' => 'Fair', 'P' => 'Poor'],'',['class'=>'form-control compulsory','id'=>'arvs_adherence']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="arvs_adherence_why">{{ __('art_clinic.why') }}</label>
|
||||
{{ Form::select('arvs_adherence_why',$arv_adherence_reasons,'',['class'=>'form-control compulsory','id'=>'arvs_adherence_why']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="arvs_other">{{ __('art_clinic.other_specify') }}</label>
|
||||
{{ Form::text('arvs_other','',['class'=>'form-control','id'=>'arvs_other']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<label for="arvs_regime">{{ __('art_clinic.regime') }}</label>
|
||||
{{ Form::select('arvs_regime',['regimes_to_be_added'=>'Regimes to be added'],'',['class'=>'form-control compulsory','id'=>'arvs_regime']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="arvs_no_pills_dispensed">{{ __('art_clinic.number_of_pill_dispensed') }}</label>
|
||||
{{ Form::number('arvs_no_pills_dispensed','',['class'=>'form-control compulsory','id'=>'arvs_no_pills_dispensed']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="arvs_no_days_passed">{{ __('art_clinic.number_of_days_passed') }}</label>
|
||||
{{ Form::text('arvs_no_days_passed','',['class'=>'form-control compulsory','id'=>'arvs_no_days_passed']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-1">
|
||||
{{ __('art_clinic.ix') }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="cd4_count">{{ __('art_clinic.cd4_count') }}</label>
|
||||
{{ Form::number('cd4_count','',['class'=>'form-control compulsory','id'=>'cd4_count']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="cd4_count_date">{{ __('art_clinic.date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('cd4_count_date', '', ['class' => 'form-control compulsory', 'id'=>'cd4_count_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-5"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="other_ix">{{ __('art_clinic.other_ix') }}</label>
|
||||
{{ Form::text('other_ix','',['class'=>'form-control','id'=>'other_ix']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="nutritional_supplements">{{ __('art_clinic.nutrition_supplements') }}</label>
|
||||
{{ Form::select('nutritional_supplements',$nutrition,'',['class'=>'form-control compulsory','id'=>'nutritional_supplements']) }}
|
||||
</div>
|
||||
<div class="col-sm-5"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-1">
|
||||
Referrals :
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="consultation_link_provide">{{ __('art_clinic.consultation') }}</label>
|
||||
{{ Form::number('consultation_link_provide','',['class'=>'form-control compulsory','id'=>'consultation_link_provide']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="consultation_link_provide_date">{{ __('art_clinic.date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('consultation_link_provide_date', '', ['class'=>'form-control compulsory','id'=>'consultation_link_provide_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-5">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-1">
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="nutritional_support">{{ __('art_clinic.nutrition_support') }}</label>
|
||||
{{ Form::text('nutritional_support','',['class'=>'form-control compulsory','id'=>'nutritional_support']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="nutritional_support_date">{{ __('art_clinic.start_date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('nutritional_support_date', '', ['class'=>'form-control compulsory','id'=>'nutritional_support_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-5"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="hospitalisation">{{ __('art_clinic.hospitalization') }}</label>
|
||||
{{ Form::text('hospitalisation','',['class'=>'form-control compulsory','id'=>'hospitalisation']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="hospitalisation_duration">{{ __('art_clinic.duration') }}</label>
|
||||
{{ Form::number('hospitalisation_duration','',['class'=>'form-control compulsory', 'min' => '0']) }}
|
||||
</div>
|
||||
<div class="col-sm-1"><br><br>Days</div>
|
||||
<div class="col-sm-4"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="next_appointment_date">{{ __('art_clinic.next_appointment_art_date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('next_appointment_date', '', ['class'=>'form-control compulsory','id'=>'next_appointment_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="other_appointment">{{ __('art_clinic.other_appointment') }}</label>
|
||||
{{ Form::text('other_appointment', '' ,['class'=>'form-control','id'=>'other_appointment']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-2">
|
||||
<label for="other_appointment_date">{{ __('art_clinic.date') }}</label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('other_appointment_date', '', ['class'=>'form-control','id'=>'other_appointment_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3"></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-10"></div>
|
||||
<div class="col-sm-2" style="padding: 5px;">
|
||||
{{ Form::button('Submit',['type'=>'submit','class'=>'btn btn-success btn-lg col-sm-12','id'=>'submit_art_continuation_card','value'=>'complete']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#datepicker-autoclose1,#datepicker-autoclose2,#datepicker-autoclose3,#datepicker-autoclose4,#tb_rx_start_date,#tb_rx_stop_date,#cd4_count_date,#consultation_link_provide_date,#nutritional_support_date,#next_appointment_date,#other_appointment_date,#edd').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
|
||||
$("#submit_art_continuation_card").click(function (e) { // make sure that all compulsory fields have been filled out
|
||||
var empty_compulsory_fields = [];
|
||||
$(".compulsory").each(function () {
|
||||
if ($(this).val() == "") {
|
||||
var textname = $(this).attr('name');
|
||||
$(this).focus();
|
||||
empty_compulsory_fields.push(textname);
|
||||
$(this).css('border','1px solid #F08080');
|
||||
}
|
||||
});
|
||||
/* check if the array containing empty compulsory fields is not empty then return false */
|
||||
if (empty_compulsory_fields.length != 0) {
|
||||
alert("Please fill in all compulsory fields");
|
||||
console.log(empty_compulsory_fields);
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
@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">{{ __('hiv.appointment_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') }}">{{ __('hiv.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('hiv.menu') }}">{{ __('hiv.hiv_menu') }}</a></li>
|
||||
<li class="active">{{ __('hiv.appointment_follow_up') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'hct.store','data-toggle'=>'validator']) }}
|
||||
<div class="headers" style="text-align: center;">
|
||||
<h3 style="background: #FFFF7D; padding: 10px;">{{ __('hiv.appointment_book') }}</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date',__('hiv.date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('follow_up_date','',['class' => 'form-control compulsory','readonly','id'=>'follow_up_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('type_of_care',__('hiv.type_of_care')) }}<br>
|
||||
{{ Form::checkbox('type_of_care[]', 'Pre ART', false) }} {{ __('hiv.pre_art') }}
|
||||
{{ Form::checkbox('type_of_care[]', 'ART', false) }} {{ __('hiv.art') }}
|
||||
{{ Form::checkbox('type_of_care[]', 'HIV Exposed Infant', false) }} {{ __('hiv.hiv_exposed_infant') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('follow_up_type','Followup Type :'__('hiv.')) }}<br>
|
||||
{{ Form::checkbox('follow_up_type[]', 'SMS Message', false) }} {{ __('hiv.sms_message') }} <br>
|
||||
{{ Form::checkbox('follow_up_type[]', 'Phone call', false) }} {{ __('hiv.phone_call') }} <br>
|
||||
{{ Form::checkbox('follow_up_type[]', 'Home visit', false) }} {{ __('hiv.home_visit') }} <br>
|
||||
{{ Form::checkbox('follow_up_type[]', 'Other', false, ['id' => 'other_follow_up_chbx']) }} {{ __('hiv.other') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="other_follow_up_div" style="display: none;">
|
||||
{{ Form::label('other_follow_up_type',__('hiv.specify_follow_up')) }}
|
||||
{{ Form::text('other_follow_up_type','', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('outcome',__('hiv.outcome')) }} <br>
|
||||
{{ Form::checkbox('outcome[]', 'Spoke with patient', false) }} {{ __('hiv.spoke_with_patient') }} <br>
|
||||
{{ Form::checkbox('outcome[]', 'Phone not answered', false) }} {{ __('hiv.phone_not_answered') }} <br>
|
||||
{{ Form::checkbox('outcome[]', 'Spoke with someone else', false) }} {{ __('hiv.spoke_with_someone_else') }} <br>
|
||||
{{ Form::checkbox('outcome[]', 'Telephone off', false) }} {{ __('hiv.telephone_off') }} <br>
|
||||
{{ Form::checkbox('outcome[]', 'Client Visit Rescheduled', false, ['id' => 'client_visit_rescheduled_chbx']) }} Client Visit Rescheduled{{ __('hiv.') }} <br>
|
||||
{{ Form::checkbox('outcome[]', 'Other', false, ['id' => 'other_outcome_chbx']) }} {{ __('hiv.other_specify') }}
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="client_visit_rescheduled_div" style="display: none;">
|
||||
{{ Form::label('date',__('hiv.reschedule_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('reschedule_date','',['class' => 'form-control compulsory','readonly','id'=>'reschedule_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="other_outcome_div" style="display: none;">
|
||||
{{ Form::label('other_outcome',__('hiv.specify_other_outcome')) }}
|
||||
{{ Form::text('other_outcome','', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('next_step',__('hiv.next_step')) }}<br>
|
||||
{{ Form::checkbox('next_step[]', 'Call Treatment Supporter', false) }} {{ __('hiv.call_treatment_supporter') }} <br>
|
||||
{{ Form::checkbox('next_step[]', 'Try to followup patient again', false, ['id' => 'follow_up_again_on_chbx']) }} {{ __('hiv.try_to_followup_again') }} <br>
|
||||
{{ Form::checkbox('next_step[]', 'Home visit', false, ['id' => 'home_visit_chbx']) }} {{ __('hiv.home_visit') }} <br>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="follow_up_again_on_div" style="display: none;">
|
||||
{{ Form::label('date',__('hiv.follow_up_again_on')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('follow_up_again_date','',['class' => 'form-control compulsory','readonly','id'=>'follow_up_again_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="home_visit_on_div" style="display: none;">
|
||||
{{ Form::label('date',__('hiv.home_visit_on')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('home_visit_date','',['class' => 'form-control compulsory','readonly','id'=>'home_visit_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div style="float: right;">{{ Form::submit(__('hiv.submit'),['class'=>'btn btn-success']) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery('#follow_up_date,#reschedule_date,#home_visit_date,#follow_up_again_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$('#other_follow_up_chbx').click(function(){
|
||||
$('#other_follow_up_chbx').prop('checked') ? $("#other_follow_up_div").show() : $("#other_follow_up_div").hide();
|
||||
});
|
||||
$('#client_visit_rescheduled_chbx').click(function(){
|
||||
$('#client_visit_rescheduled_chbx').prop('checked') ? $("#client_visit_rescheduled_div").show() : $("#client_visit_rescheduled_div").hide();
|
||||
});
|
||||
$('#other_outcome_chbx').click(function(){
|
||||
$('#other_outcome_chbx').prop('checked') ? $("#other_outcome_div").show() : $("#other_outcome_div").hide();
|
||||
});
|
||||
$('#follow_up_again_on_chbx').click(function(){
|
||||
$('#follow_up_again_on_chbx').prop('checked') ? $("#follow_up_again_on_div").show() : $("#follow_up_again_on_div").hide();
|
||||
});
|
||||
$('#home_visit_chbx').click(function(){
|
||||
$('#home_visit_chbx').prop('checked') ? $("#home_visit_on_div").show() : $("#home_visit_on_div").hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
@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">{{ __('hiv.health_unit_tb_form') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('hiv.menu') }}">{{ __('hiv.hiv_menu') }}</a></li>
|
||||
<li class="active">{{ __('hiv.health_unit_tb_form') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'store_tb_form','data-toggle'=>'validator']) }}
|
||||
<div class="headers" style="text-align: center;">
|
||||
<h3 style="background: #FFFF7D; padding: 10px;">{{ __('hiv.health_unit_tb_form') }}</h3>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('unit_tb_number',__('hiv.unit_tb_number')) }}
|
||||
{{ Form::text('unit_tb_number','',['class' => 'form-control compulsory','id'=>'unit_tb_number']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('name_of_contact_person',__('hiv.contact_phone_number')) }}
|
||||
{{ Form::text('name_of_contact_person','', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('is_patient_health_worker',__('hiv.patient_health_worker')) }}<br>
|
||||
{{ Form::radio('is_patient_health_worker', 'yes', false) }} {{ __('hiv.yes') }}
|
||||
{{ Form::radio('is_patient_health_worker', 'no', false) }} {{ __('hiv.no') }} <br>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('date_treatment_started',__('hiv.date_treatment_started')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('date_treatment_started','',['class' => 'form-control compulsory','readonly','id'=>'date_treatment_started']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('type_of_patient',__('hiv.type_of_patient')) }}
|
||||
{{ Form::select('type_of_patient',['N' => __('hiv.new'), 'R' => __('hiv.relapse'), 'F' => __('hiv.failure'), 'L' => __('hiv.lost_to_follow_up'), 'THU' => __('hiv.treatment_history_unknown')],'', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('hsd_tb_number',__('hiv.hsd_tb_number')) }}
|
||||
{{ Form::text('hsd_tb_number','',['class' => 'form-control compulsory','id'=>'hsd_tb_number']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('contact_phone_number',__('hiv.contact_phone_number')) }}
|
||||
{{ Form::text('contact_phone_number','', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('cadre_of_health_worker',__('hiv.cadre_of_health_worker')) }}
|
||||
{{ Form::select('cadre_of_health_worker',[],'', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('regimen',__('hiv.regimen')) }}
|
||||
{{ Form::select('regimen',[],'', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('regimen_specify',__('hiv.specify_regimen')) }}
|
||||
{{ Form::text('regimen_specify','', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('transfer_in_from',__('hiv.transfer_in_from')) }}
|
||||
{{ Form::text('transfer_in_from','', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
{{ Form::label('district_tb_number',__('hiv.district_tb_number')) }}
|
||||
{{ Form::text('district_tb_number','',['class' => 'form-control compulsory','id'=>'district_tb_number']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('relationship_to_contact_person',__('hiv.relationship_of_contact_person')) }}
|
||||
{{ Form::select('relationship_to_contact_person',[],'', ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div style="float: right;">{{ Form::submit(__('hiv.submit'),['class'=>'btn btn-success']) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery('#follow_up_date,#reschedule_date,#home_visit_date,#follow_up_again_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$('#other_follow_up_chbx').click(function(){
|
||||
$('#other_follow_up_chbx').prop('checked') ? $("#other_follow_up_div").show() : $("#other_follow_up_div").hide();
|
||||
});
|
||||
$('#client_visit_rescheduled_chbx').click(function(){
|
||||
$('#client_visit_rescheduled_chbx').prop('checked') ? $("#client_visit_rescheduled_div").show() : $("#client_visit_rescheduled_div").hide();
|
||||
});
|
||||
$('#other_outcome_chbx').click(function(){
|
||||
$('#other_outcome_chbx').prop('checked') ? $("#other_outcome_div").show() : $("#other_outcome_div").hide();
|
||||
});
|
||||
$('#follow_up_again_on_chbx').click(function(){
|
||||
$('#follow_up_again_on_chbx').prop('checked') ? $("#follow_up_again_on_div").show() : $("#follow_up_again_on_div").hide();
|
||||
});
|
||||
$('#home_visit_chbx').click(function(){
|
||||
$('#home_visit_chbx').prop('checked') ? $("#home_visit_on_div").show() : $("#home_visit_on_div").hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+299
@@ -0,0 +1,299 @@
|
||||
@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">{{ __('hiv.hiv_counselling_testing') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('hiv.menu') }}">{{ __('hiv.hiv_menu') }}</a></li>
|
||||
<li class="active">{{ __('hiv.hiv_counselling') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
{{ Form::open(['route' => 'hct.store','data-toggle'=>'validator']) }}
|
||||
<div class="row">
|
||||
<div class="headers" style="text-align: center;">
|
||||
<h3 style="background: #FFFF7D; padding: 10px;">{{ __('hiv.hiv_couns_test_card') }}</h3>
|
||||
</div>
|
||||
<!-- =================== -->
|
||||
<div class="col-sm-12">
|
||||
<h3>{{ __('hiv.section_a') }}:</h3>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('date',__('hiv.date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('counselling_date','',['class' => 'form-control compulsory','readonly','id'=>'counselling_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('is_center_static',__('hiv.is_center_static')) }}
|
||||
{{ Form::select('is_center_static',['static'=>__('hiv.static'),'outreach'=>__('hiv.outreach')],'',['class' => 'form-control', 'required', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
{{ Form::label('registration_number',__('hiv.registration_number')) }}
|
||||
{{ Form::text('registration_number','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<!-- display this only if the patient is less than 12 years -->
|
||||
<div class="form-group">
|
||||
{{ Form::label('accompanied_by',__('hiv.accompanied_by')) }}
|
||||
{{ Form::select('accompanied_by', [''=>__('hiv.select'),'mother'=>__('hiv.mother'), 'father'=>__('hiv.father'), 'guardian'=>__('hiv.guardian')], '', ['class' => 'form-control', 'data-error'=>'', 'placeholder'=>'']) }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- =================== -->
|
||||
|
||||
<div class="col-sm-12">
|
||||
<h3>{{ __('hiv.section_b') }}:</h3>
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 40%">
|
||||
{{ Form::label('pre_test_counselling_done',__('hiv.pre_test_counselling_done')) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('accompanied_by', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.counseled_as') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('counselled_as', [''=>'--Select--','1'=>'Individual', '2'=>'Couple','3'=>'Group'], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.approach') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('approach', [''=>'--Select--','1'=>'CICT', '2'=>'PITC'], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.hct_entry_point') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('hct_entry_point', [''=>__('hiv.select'),'1'=>__('hiv.facility_based'), '2'=>__('hiv.work_place'), '3'=>__('hiv.community_outreach'),'4'=>'HBHCT','5'=>__('hiv.circumcision'),'6'=>'PEP','7'=>'PMTCT','8'=>'MARPS','9'=>'ANC','10'=>__('hiv.maternity'),'11'=>__('hiv.family_planning'),'12'=>__('hiv.gynecological_opd'),'13'=>__('hiv.emergency_gynecological_ward'),'14'=>__('hiv.men_access_clinic'),'15'=>__('hiv.mother_baby_pair_clinic')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.ever_hiv_tested') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('ever_tested_for_hiv_before', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.tested_times_in_12') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('times_tested_in_last_12_months','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.sex_partners_in_12') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('number_of_sexual_partners_in_last_12_months','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- display this if the patient is abve 9 years -->
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.partner_hiv_tested') }} :</label>
|
||||
</td>
|
||||
<td colspan="3" class="PartnerTestedBeforeEnableDisable1">
|
||||
{{ Form::select('partner_tested_before', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes'), '2'=>__('hiv.dont_know')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label style="float:right"><i>{{ __('hiv.partner_results') }}</i></label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('partner_results', [''=>__('hiv.select'),'0'=>__('hiv.hiv_negative'), '1'=>__('hiv.hiv_positive'), '2'=>__('hiv.unknown')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<h3>{{ __('hiv.consent_testing') }}</h3>
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.do_you_agree') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('partner_results', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-4"></div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<h3>{{ __('hiv.section_c') }}</h3>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<label{{ __('hiv.hiv_final_results') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('partner_results', [''=>__('hiv.select'),'1'=>__('hiv.hiv_negative'), '2'=>__('hiv.hiv_positive'),'3'=>'INC','4'=>'NT'], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.sent_to_confirm') }}</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('confirmatory_lab', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.results_received') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('results_received', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- if the patient is above 9 years -->
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.results_received_couple') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('results_received_as_a_couple', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.couple_results') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('results_received_as_a_couple', [''=>__('hiv.select'),'discordant'=>__('hiv.discordant'), 'concordant'=>__('hiv.concordant')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- ========end if================= -->
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.is_there_suspision_for_tb') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('is_there_suspision_for_tb', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.has_client_started_cotrimoxazole_prophylaxis') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('has_client_started_cotrimoxazole_prophylaxis', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.has_client_been_linked_to_care') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('has_client_been_linked_to_care', [''=>__('hiv.select'),'0'=>__('hiv.no'), '1'=>__('hiv.yes')], '', ['class' => 'form-control']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.where') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('where_is_the_client_care','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.cd4_count_results') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('cd4_count_results','',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{{ __('hiv.hiv_recency_test_result') }}:</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::select('hiv_recency_test_result',[''=>'--Select--','1'=>'Recent','2'=>'Long Term'],'',['class' => 'form-control', 'data-error'=>'','placeholder'=>'']) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>
|
||||
<span class="required">*</span>{{ __('hiv.counsellor') }}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::text('counsellor','',['class' => 'form-control required', 'data-error'=>'','placeholder'=>'counsellor']) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div style="float: right;">{{ Form::submit(__('hiv.save'),['class'=>'btn btn-success']) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery('#counselling_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,145 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
#t_header th {
|
||||
background-color: #708090;
|
||||
color: #000;
|
||||
}
|
||||
.color-tr{
|
||||
background: #FFFF99;
|
||||
}
|
||||
.aTable tr {
|
||||
background-color: #DDD;
|
||||
}
|
||||
.table_no_padding td{
|
||||
padding: 4px;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="row bg-title">
|
||||
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('hiv.hiv_clinic') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('hiv.dashboard') }}</a></li>
|
||||
<li><a href="{{ route('patients.index') }}">{{ __('hiv.patients') }}</a></li>
|
||||
<li class="active">{{ __('hiv.hiv_clinic') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('patients::allergies.header')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@include('flash::message')
|
||||
<div class="white-box">
|
||||
<b>{{ __('hiv.hiv_menu') }}</b><br> <br>
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-success btn-sm btn-rounded" href="{{ url('antiretral_viral_therapy/create') }}">{{ __('hiv.art_clinic') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-info btn-sm btn-rounded" id="anc_visit"> {{ __('hiv.art_follow_up') }} </a>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<a class="btn btn-primary btn-sm btn-rounded" href="{{ url('hiv_counselling_and_testing') }}">{{ __('hiv.hiv_counselling_testing_card') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-default btn-sm btn-rounded" href="#">{{ __('hiv.exposed_infant_form') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<a class="btn btn-warning btn-sm btn-rounded" href="#">{{ __('hiv.daily_activity_viral') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-success btn-sm btn-rounded" href="#">{{ __('hiv.safe_male_circumcision') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-info btn-sm btn-rounded" id="anc_visit">{{ __('hiv.lab_forms') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<a class="btn btn-primary btn-sm btn-rounded" href="{{ url('health_unit_tb_form') }}">{{ __('hiv.health_unit_tb_form') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-default btn-sm btn-rounded" href="#">{{ __('hiv.patient_referral_transfer') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<a class="btn btn-warning btn-sm btn-rounded" href="#">{{ __('hiv.viral_load_suppression_form') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-success btn-sm btn-rounded" href="{{ url('hiv_appointment_follow_up') }}">{{ __('hiv.appointment_follow_up') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-info btn-sm btn-rounded">{{ __('hiv.daily_activity_lab') }}</a>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<!-- <a class="btn btn-primary btn-sm btn-rounded" href="#">##</a> -->
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<a class="btn btn-default btn-sm btn-rounded" href="#">##</a>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<a class="btn btn-warning btn-sm btn-rounded" href="#">{{ __('hiv.daily_activity_register') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal fade" id="fillNewPregnancyprimary" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{ __('hiv.fill_preg_details_first') }}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal">{{ __('hiv.ok') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/streamline_plugins/jquery.session.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#anc_visit').click(function(e){
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/check_if_pregnancy_is_registered',
|
||||
success: function(response){
|
||||
console.log(response);
|
||||
if (response === "true") {
|
||||
window.location.href = "/ante_natal_clinic_follow_up/create";
|
||||
} else {
|
||||
$('#fillNewPregnancyprimary').modal('show');
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
alert(JSON.stringify(jqXHR));
|
||||
console.log(JSON.stringify(jqXHR));
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -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('/hiv', function () {
|
||||
return "HIV";
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group(['middleware' => ['auth', 'disablebackbutton', 'user-locale','subscription-tracking', 'password-expiry']], function () {
|
||||
/* HIV module routes */
|
||||
Route::resource('hiv', 'HIVController');
|
||||
Route::get('hiv_menu', 'HIVController@menu')->name('hiv.menu');
|
||||
Route::get('hiv_counselling_and_testing', 'HIVController@hiv_counselling_and_testing');
|
||||
Route::post('store_hct_form', 'HIVController@store_hct_form')->name('hct.store');
|
||||
Route::get('hiv_appointment_follow_up', 'HIVController@appointment_follow_up');
|
||||
Route::get('health_unit_tb_form', 'HIVController@health_unit_tb_form');
|
||||
Route::post('store_health_unit_tb_form', 'HIVController@store_health_unit_tb_form')->name('store_tb_form');
|
||||
|
||||
/* ART clinic */
|
||||
Route::resource('antiretral_viral_therapy', 'AntiretralViralTherapyController');
|
||||
Route::get('art_continuation_card', 'AntiretralViralTherapyController@create_art_continuation_card');
|
||||
Route::post('art_continuation_card', 'AntiretralViralTherapyController@store_art_continuation_card')->name('antiretral_viral_therapy.store_continuation_card');
|
||||
});
|
||||
@@ -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": "Hiv",
|
||||
"alias": "hiv",
|
||||
"description": "Hiv",
|
||||
"keywords": [],
|
||||
"priority": 0,
|
||||
"providers": [
|
||||
"Modules\\Hiv\\Providers\\HivServiceProvider"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
Reference in New Issue
Block a user