update
This commit is contained in:
@@ -2209,7 +2209,7 @@ class DokterController extends Controller
|
||||
$nofoto = $request->input('nofoto');
|
||||
$id = $request->input('id');
|
||||
$jpoli = Periksa::where('id', $id)->first();
|
||||
$statuse = $jpoli->status;
|
||||
$statuse = $jpoli->status ?? '';
|
||||
$noregister = $jpoli->noregister;
|
||||
$daftar = $jpoli->daftar;
|
||||
$nama = Session('nama');
|
||||
|
||||
@@ -170,6 +170,323 @@ class FrontpageController extends Controller
|
||||
return view('pendaftaran', $data);
|
||||
}
|
||||
}
|
||||
public function viewMobileMode() {
|
||||
if (Session::get('previlage') == ''){
|
||||
return redirect('/login');
|
||||
} else {
|
||||
$alldata = Periksa::where(function($q) {
|
||||
$q->where(function($sub) {
|
||||
$sub->whereNotIn('status', ['Selesai', 'Arsip'])
|
||||
->where('status', 'not like', 'Dibatalkan%');
|
||||
})->orWhereNull('status');
|
||||
})->get();
|
||||
|
||||
// Kelompok array
|
||||
$cairansteril = [15,16,43,47,48,66,96,205,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223];
|
||||
$cci = [20];
|
||||
$darah = [7,8,13,17,29,33,44,107,114,115,199,200,201,202];
|
||||
$feces = [37,38,148,149,204];
|
||||
$hiv = [30];
|
||||
$kukukulit = [165,179,180,181,183,184,185,187,188,189,190,192,194,195,196,198];
|
||||
$kulturtb = [26,40,45,52,53,56,60,61,68,69,75,92,102,122,123,136,137,144,145,152,153,233];
|
||||
$pusdanjaringan = [18,19,32,35,46,49,50,54,57,58,59,72,160,182,186,191,193,197,206,207,208,224,225,226,227,228,234,235,236,237];
|
||||
$sputum = [1,12,23,24,36,39,229,230,231,232];
|
||||
$swab = [2,4,5,9,10,11,12,21,22,27,34,41,42,51,63,64,65,85,86,87,88,93,97,118,120,121,125,126,127,128,129,130,132,133,134,135,140,147,158,159,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178];
|
||||
$tcmnontb = [79,80,81,82,83,84,203];
|
||||
$tcmtb = [14,28,55,62,94,104,105,124,138,146];
|
||||
$urine = [3,6,25,31,154,155,156,157];
|
||||
|
||||
// Semua array kategori digabung menjadi satu untuk mencari "lainnya"
|
||||
$allCategories = array_merge(
|
||||
$cairansteril, $cci, $darah, $feces, $hiv, $kukukulit, $kulturtb,
|
||||
$pusdanjaringan, $sputum, $swab, $tcmnontb, $tcmtb, $urine
|
||||
);
|
||||
|
||||
// Hitung total sesuai kategori
|
||||
$data['cairansteril'] = $alldata->whereIn('poli_id', $cairansteril)->count();
|
||||
$data['cci'] = $alldata->whereIn('poli_id', $cci)->count();
|
||||
$data['darah'] = $alldata->whereIn('poli_id', $darah)->count();
|
||||
$data['feces'] = $alldata->whereIn('poli_id', $feces)->count();
|
||||
$data['hiv'] = $alldata->whereIn('poli_id', $hiv)->count();
|
||||
$data['kukukulit'] = $alldata->whereIn('poli_id', $kukukulit)->count();
|
||||
$data['kulturtb'] = $alldata->whereIn('poli_id', $kulturtb)->count();
|
||||
$data['pusdanjaringan'] = $alldata->whereIn('poli_id', $pusdanjaringan)->count();
|
||||
$data['sputum'] = $alldata->whereIn('poli_id', $sputum)->count();
|
||||
$data['swab'] = $alldata->whereIn('poli_id', $swab)->count();
|
||||
$data['tcmnontb'] = $alldata->whereIn('poli_id', $tcmnontb)->count();
|
||||
$data['tcmtb'] = $alldata->whereIn('poli_id', $tcmtb)->count();
|
||||
$data['urine'] = $alldata->whereIn('poli_id', $urine)->count();
|
||||
|
||||
// Hitung yang tidak masuk kategori mana pun
|
||||
$data['lainnya'] = $alldata->filter(function ($item) use ($allCategories) {
|
||||
return !in_array($item->poli_id, $allCategories);
|
||||
})->count();
|
||||
|
||||
// Kirim alldata jika tetap ingin dipakai
|
||||
$data['alldata'] = $alldata;
|
||||
|
||||
return view('mobilemode', $data);
|
||||
}
|
||||
}
|
||||
public function viewTabletsMode($master) {
|
||||
if (Session::get('previlage') == ''){
|
||||
return redirect('/login');
|
||||
} else {
|
||||
$data = [
|
||||
'dokters' => User::where('previlage', 'supervisor')->get(),
|
||||
'allppds' => User::where('previlage', 'ppds')->get(),
|
||||
'allanalis' => User::where('previlage', 'analis')->get(),
|
||||
'antrkrmsitu' => 0,
|
||||
];
|
||||
$allOrganisms = Organisms::orderBy('name', 'ASC')->get();
|
||||
$allASTManual = SiraB::whereNotNull('setmanual')->select('setmanual')->groupBy('setmanual')->get();
|
||||
$groupOrganisms = function ($kelompok) use ($allOrganisms) {
|
||||
$organisms = $allOrganisms->where('kelompok', $kelompok);
|
||||
if ($organisms->isEmpty()) {
|
||||
return [
|
||||
'organismes' => [[['id' => 0, 'name' => 'No Data']]],
|
||||
'categories' => ['No Data'],
|
||||
];
|
||||
}
|
||||
$grouped = $organisms->groupBy('category');
|
||||
$organismes = [];
|
||||
$categories = [];
|
||||
$i = 0;
|
||||
foreach ($grouped as $category => $items) {
|
||||
$categories[] = $category;
|
||||
$j = 0;
|
||||
foreach ($items as $item) {
|
||||
$organismes[$i][$j] = ['id' => $item->id, 'name' => $item->name];
|
||||
$j++;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
return [
|
||||
'organismes' => $organismes,
|
||||
'categories' => $categories,
|
||||
];
|
||||
};
|
||||
|
||||
$biakankulturData = $groupOrganisms('biakankultur');
|
||||
$mikroorganismeData = $groupOrganisms('mikroorganisme');
|
||||
$data = array_merge($data, [
|
||||
'organismes' => $biakankulturData['organismes'],
|
||||
'bacterycateggories' => $biakankulturData['categories'],
|
||||
'mikroorganismes' => $mikroorganismeData['organismes'],
|
||||
'mikroorganismestlist' => $mikroorganismeData['categories'],
|
||||
]);
|
||||
$kelompokMapping = [
|
||||
'jsonsputum' => 'Sputum',
|
||||
'jsonswabtenggorok' => 'Swab Tenggorok',
|
||||
'jsonurine' => 'Urine',
|
||||
'jsonswabperineum' => 'Swab perineum',
|
||||
'jsonselepitel' => 'Sel Epitel',
|
||||
'jsonselradang' => 'Sel Radang',
|
||||
'jsonmikroorganisme' => 'Q Mikroorganisme',
|
||||
'jsonjumlahlactobacillus' => 'Lactobacillus',
|
||||
'jsonjumlahgardnerella' => 'Gardnerella',
|
||||
'jsonjumlahmobiluncus' => 'Mobiluncus',
|
||||
'jsonpewarnaanziehlnielsen' => 'Pewarnaan Ziehl Nielsen',
|
||||
'jsonpewarnaanneisser' => 'Pewarnaan Neisser',
|
||||
'jsonpewarnaannegatif' => 'Pewarnaan Negatif',
|
||||
'jsonpewarnaanspora' => 'Pewarnaan Spora',
|
||||
'jsonmediabap' => 'Media BAP',
|
||||
'jsonmediacap' => 'Media CAP',
|
||||
'jsonmediamcconkey' => 'Media Mc Conkey',
|
||||
'jsonpemeriksaantl' => 'Pemeriksaan Tambahan Lainnya',
|
||||
'jsonbiakankultur' => 'Biakan Kultur',
|
||||
];
|
||||
foreach ($kelompokMapping as $key => $kelompok) {
|
||||
$data[$key] = $allOrganisms->where('kelompok', $kelompok)->values();
|
||||
}
|
||||
$kelompokBuku = [
|
||||
'buku01' => 'Cairan Steril',
|
||||
'buku02' => 'CCI',
|
||||
'buku03' => 'Darah',
|
||||
'buku04' => 'HIV',
|
||||
'buku05' => 'Kuku, Kulit, Adnexa',
|
||||
'buku06' => 'Kultur TB',
|
||||
'buku07' => 'Pus dan Jaringan',
|
||||
'buku08' => 'Sputum',
|
||||
'buku09' => 'Swab',
|
||||
'buku10' => 'TCM TB',
|
||||
'buku11' => 'TCM non-TB',
|
||||
'buku12' => 'Urine',
|
||||
'buku13' => 'Feces',
|
||||
'buku0' => 'Unknown',
|
||||
];
|
||||
$data['antibiotics']= $allASTManual;
|
||||
$data['lokasi'] = 'Lab Mikrobiologi';
|
||||
$data['master'] = $kelompokBuku[$master] ?? 'Unknown';
|
||||
|
||||
$cairansteril = [15,16,43,47,48,66,96,205,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223];
|
||||
$cci = 20;
|
||||
$darah = [7,8,13,17,29,33,44,107,114,115,199,200,201,202];
|
||||
$feces = [37,38,148,149,204];
|
||||
$hiv = 30;
|
||||
$kukukulit = [165,179,180,181,183,184,185,187,188,189,190,192,194,195,196,198];
|
||||
$kulturtb = [26,40,45,52,53,56,60,61,68,69,75,92,102,122,123,136,137,144,145,152,153,233];
|
||||
$pusdanjaringan = [18,19,32,35,46,49,50,54,57,58,59,72,160,182,186,191,193,197,206,207,208,224,225,226,227,228,234,235,236,237];
|
||||
$sputum = [1,12,23,24,36,39,229,230,231,232];
|
||||
$swab = [2,4,5,9,10,11,12,21,22,27,34,41,42,51,63,64,65,85,86,87,88,93,97,118,120,121,125,126,127,128,129,130,132,133,134,135,140,147,158,159,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178];
|
||||
$tcmnontb = [79,80,81,82,83,84,203];
|
||||
$tcmtb = [14,28,55,62,94,104,105,124,138,146];
|
||||
$urine = [3,6,25,31,154,155,156,157];
|
||||
//jikabukan_array_tambahkan_kurung
|
||||
$mapped = array_merge(
|
||||
$cairansteril,
|
||||
[$cci],
|
||||
$darah,
|
||||
$feces,
|
||||
[$hiv],
|
||||
$kukukulit,
|
||||
$kulturtb,
|
||||
$pusdanjaringan,
|
||||
$sputum,
|
||||
$swab,
|
||||
$tcmnontb,
|
||||
$tcmtb,
|
||||
$urine
|
||||
);
|
||||
$arraylist = Periksa::select(
|
||||
'id', 'mulai', 'akhir', 'orderid', 'noloket', 'nofoto', 'noregister', 'asalpasien', 'nmrs', 'pasien_id', 'nmpasien',
|
||||
'jkpasien', 'tgllahirpasien', 'tlppasien', 'alamatpasien', 'reques', 'usia', 'berat', 'ktp', 'bpjs', 'ruangan_id',
|
||||
'ruangan', 'dokter_id', 'ppdssenior', 'middleppds', 'ppdsjunior', 'ppdsmiddle2', 'ppdsjunior2', 'analis', 'excutor',
|
||||
'nmdokter', 'nmppdssenior', 'nmmiddleppds', 'nmppdsjunior', 'nmppdsmiddle2', 'nmppdsjunior2', 'nmanalis', 'nmexcutor',
|
||||
'klinisi', 'klinis', 'keterangan', 'kesimpulan', 'poli_id', 'asuransi', 'urgensi', 'diagnosa', 'diagnosa2', 'modality',
|
||||
'kd_spesimen', 'nm_spesimen', 'dlp', 'daftar', 'foto', 'tgldraft', 'nmdrafter', 'baca', 'nmpembaca', 'verifikasi',
|
||||
'export', 'tgladendum', 'nmadendum', 'filefoto', 'pendaftar', 'status', 'created_at', 'updated_at',
|
||||
'bhp_media', 'bhp_potsputum', 'bhp_poturine', 'bhp_oshe', 'bhp_obyekglass', 'bhp_botolbd', 'bhp_parafilm',
|
||||
'bhp_tips', 'bhp_cottonswab', 'bhp_antibiotiktambahan', 'id_esbl', 'id_mrsa', 'rating', 'nmpendaftar',
|
||||
|
||||
DB::raw("DATE(daftar) as daftartgl"),
|
||||
DB::raw("TO_CHAR(daftar, 'HH24:MI:SS') as daftarjam"),
|
||||
DB::raw("TO_CHAR(export, 'HH24:MI:SS') as cetakjam"),
|
||||
DB::raw("TO_CHAR(verifikasi, 'HH24:MI:SS') as verifikasijam"),
|
||||
DB::raw("TO_CHAR(baca, 'HH24:MI:SS') as bacajam"),
|
||||
DB::raw("TO_CHAR(foto, 'HH24:MI:SS') as fotojam"),
|
||||
|
||||
DB::raw("CASE WHEN jkpasien = 'L' THEN '1' ELSE '' END AS l"),
|
||||
DB::raw("CASE WHEN jkpasien = 'P' THEN '1' ELSE '' END AS p"),
|
||||
DB::raw("CONCAT('https://10.10.123.218/hasil/', nofoto::text) as urlhasil"),
|
||||
|
||||
DB::raw("CASE WHEN asuransi IN ('JKN', 'BPJS') THEN '1' ELSE '' END AS jkn"),
|
||||
DB::raw("CASE WHEN asuransi = 'Billing' THEN '1' ELSE '' END AS billing"),
|
||||
DB::raw("CASE WHEN asuransi = 'GCU' THEN '1' ELSE '' END AS gcu"),
|
||||
DB::raw("CASE WHEN asuransi IN ('MANDIRI', 'Umum') THEN '1' ELSE '' END AS umum"),
|
||||
DB::raw("CASE WHEN asuransi = 'SWASTA' THEN '1' ELSE '' END AS swasta"),
|
||||
DB::raw("CASE WHEN asuransi = 'TAG' THEN '1' ELSE '' END AS tag"),
|
||||
|
||||
DB::raw("CASE WHEN urgensi != 'CITO' THEN '1' ELSE '' END AS elective"),
|
||||
DB::raw("CASE WHEN urgensi = 'CITO' THEN '1' ELSE '' END AS cito"),
|
||||
|
||||
DB::raw("CASE
|
||||
WHEN status IS NULL THEN '<span class=\"badge badge-danger\">NEW</span>'
|
||||
WHEN status = '' THEN '<span class=\"badge badge-danger\">NEW</span>'
|
||||
WHEN status LIKE '%Dibatalkan%' THEN '<font color=grey>Batal</font>'
|
||||
WHEN status LIKE '%Pemeriksaan Sampel%' THEN '<font color=green>Pemeriksaan Sampel</font>'
|
||||
WHEN status LIKE '%Proses Analisis Sampel%' THEN '<strong>Diperiksa</strong>'
|
||||
WHEN status LIKE '%Draft%' THEN '<font color=green>Draft</font>'
|
||||
WHEN status LIKE '%Expertise%' THEN '<strong><font color=green>Expertise</font></strong>'
|
||||
WHEN status LIKE '%Decliend%' THEN '<strong><font color=red>Decliend</font></strong>'
|
||||
WHEN status LIKE '%Selesai%' THEN '<span class=\"badge badge-success\">Selesai</span>'
|
||||
WHEN status LIKE '%Arsip%' THEN '<span class=\"badge badge-primary\">Arsip</span>'
|
||||
WHEN status LIKE '%Data Vitek di Terima%' THEN '<span class=\"badge badge-warning\">Data Vitek di Terima</span>'
|
||||
ELSE CONCAT('<span class=\"badge badge-info\">', status::text, '</span>')
|
||||
END AS tlsstatus"),
|
||||
|
||||
DB::raw("CASE
|
||||
WHEN status IS NULL THEN CONCAT('<span class=\"badge badge-danger\">', nofoto::text, '</span>')
|
||||
WHEN status LIKE '%Dibatalkan%' THEN CONCAT('<font color=grey>', nofoto::text, '</font>')
|
||||
WHEN status LIKE '%Pemeriksaan Sampel%' THEN CONCAT('<font color=green>', nofoto::text, '</font>')
|
||||
WHEN status LIKE '%Proses Analisis Sampel%' THEN CONCAT('<strong>', nofoto::text, '</strong>')
|
||||
WHEN status LIKE '%Draft%' THEN CONCAT('<font color=green>', nofoto::text, '</font>')
|
||||
WHEN status LIKE '%Expertise%' THEN CONCAT('<strong><font color=green>', nofoto::text, '</font></strong>')
|
||||
WHEN status LIKE '%Decliend%' THEN CONCAT('<strong><font color=red>', nofoto::text, '</font></strong>')
|
||||
WHEN status LIKE '%Selesai%' THEN CONCAT('<span class=\"badge badge-success\">', nofoto::text, '</span>')
|
||||
WHEN status LIKE '%Arsip%' THEN CONCAT('<span class=\"badge badge-primary\">', nofoto::text, '</span>')
|
||||
ELSE CONCAT('<font color=red>', nofoto::text, '</font>')
|
||||
END AS tlsnofoto"),
|
||||
|
||||
DB::raw("CASE
|
||||
WHEN status IS NULL THEN CONCAT('<span class=\"badge badge-danger\">', noregister::text, '</span>')
|
||||
WHEN status LIKE '%Dibatalkan%' THEN CONCAT('<font color=grey>', noregister::text, '</font>')
|
||||
WHEN status LIKE '%Pemeriksaan Sampel%' THEN CONCAT('<font color=green>', noregister::text, '</font>')
|
||||
WHEN status LIKE '%Proses Analisis Sampel%' THEN CONCAT('<strong>', noregister::text, '</strong>')
|
||||
WHEN status LIKE '%Draft%' THEN CONCAT('<font color=green>', noregister::text, '</font>')
|
||||
WHEN status LIKE '%Expertise%' THEN CONCAT('<strong><font color=green>', noregister::text, '</font></strong>')
|
||||
WHEN status LIKE '%Decliend%' THEN CONCAT('<strong><font color=red>', noregister::text, '</font></strong>')
|
||||
WHEN status LIKE '%Selesai%' THEN CONCAT('<span class=\"badge badge-success\">', noregister::text, '</span>')
|
||||
WHEN status LIKE '%Arsip%' THEN CONCAT('<span class=\"badge badge-primary\">', noregister::text, '</span>')
|
||||
ELSE CONCAT('<font color=red>', noregister::text, '</font>')
|
||||
END AS tlsnoregister"),
|
||||
|
||||
DB::raw("CASE
|
||||
WHEN status IS NULL THEN CONCAT('<span class=\"badge badge-danger\">', nmpasien::text, '</span>')
|
||||
WHEN status LIKE '%Dibatalkan%' THEN CONCAT('<font color=grey>', nmpasien::text, '</font>')
|
||||
WHEN status LIKE '%Pemeriksaan Sampel%' THEN CONCAT('<font color=green>', nmpasien::text, '</font>')
|
||||
WHEN status LIKE '%Proses Analisis Sampel%' THEN CONCAT('<strong>', nmpasien::text, '</strong>')
|
||||
WHEN status LIKE '%Draft%' THEN CONCAT('<font color=green>', nmpasien::text, '</font>')
|
||||
WHEN status LIKE '%Expertise%' THEN CONCAT('<strong><font color=green>', nmpasien::text, '</font></strong>')
|
||||
WHEN status LIKE '%Decliend%' THEN CONCAT('<strong><font color=red>', nmpasien::text, '</font></strong>')
|
||||
WHEN status LIKE '%Selesai%' THEN CONCAT('<span class=\"badge badge-success\">', nmpasien::text, '</span>')
|
||||
WHEN status LIKE '%Arsip%' THEN CONCAT('<span class=\"badge badge-primary\">', nmpasien::text, '</span>')
|
||||
ELSE CONCAT('<font color=red>', nmpasien::text, '</font>')
|
||||
END AS tlsnama"),
|
||||
|
||||
DB::raw("CASE
|
||||
WHEN status IS NULL THEN CONCAT('<span class=\"badge badge-danger\">', reques::text, '</span>')
|
||||
WHEN status LIKE '%Dibatalkan%' THEN CONCAT('<font color=grey>', reques::text, '</font>')
|
||||
WHEN status LIKE '%Pemeriksaan Sampel%' THEN CONCAT('<font color=green>', reques::text, '</font>')
|
||||
WHEN status LIKE '%Proses Analisis Sampel%' THEN CONCAT('<strong>', reques::text, '</strong>')
|
||||
WHEN status LIKE '%Draft%' THEN CONCAT('<font color=green>', reques::text, '</font>')
|
||||
WHEN status LIKE '%Expertise%' THEN CONCAT('<strong><font color=green>', reques::text, '</font></strong>')
|
||||
WHEN status LIKE '%Decliend%' THEN CONCAT('<strong><font color=red>', reques::text, '</font></strong>')
|
||||
WHEN status LIKE '%Selesai%' THEN CONCAT('<span class=\"badge badge-success\">', reques::text, '</span>')
|
||||
WHEN status LIKE '%Arsip%' THEN CONCAT('<span class=\"badge badge-primary\">', reques::text, '</span>')
|
||||
ELSE CONCAT('<font color=red>', reques::text, '</font>')
|
||||
END AS tlsreques")
|
||||
);
|
||||
if ($master == 'buku01'){
|
||||
$arraylist = $arraylist->whereIn('poli_id', $cairansteril);
|
||||
} else if ($master == 'buku02') {
|
||||
$arraylist = $arraylist->where('poli_id', $cci);
|
||||
} else if ($master == 'buku03') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $darah);
|
||||
} else if ($master == 'buku04') {
|
||||
$arraylist = $arraylist->where('poli_id', $hiv);
|
||||
} else if ($master == 'buku05') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $kukukulit);
|
||||
} else if ($master == 'buku06') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $kulturtb);
|
||||
} else if ($master == 'buku07') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $pusdanjaringan);
|
||||
} else if ($master == 'buku08') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $sputum);
|
||||
} else if ($master == 'buku09') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $swab);
|
||||
} else if ($master == 'buku10') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $tcmtb);
|
||||
} else if ($master == 'buku11') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $tcmnontb);
|
||||
} else if ($master == 'buku12') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $urine);
|
||||
} else if ($master == 'buku13') {
|
||||
$arraylist = $arraylist->whereIn('poli_id', $feces);
|
||||
} else if ($master == 'buku0') {
|
||||
$arraylist = $arraylist->whereNotIn('poli_id', $mapped);
|
||||
} else {
|
||||
}
|
||||
$arraylist = $arraylist->where(function($q) {
|
||||
$q->where(function($sub) {
|
||||
$sub->whereNotIn('status', ['Selesai', 'Arsip'])
|
||||
->where('status', 'not like', 'Dibatalkan%');
|
||||
})->orWhereNull('status');
|
||||
});
|
||||
$data['alldata'] = $arraylist->orderBy('daftar', 'ASC')->get();
|
||||
return view('dokter.tabsmode', $data);
|
||||
}
|
||||
}
|
||||
public function autocompleteKlinik(Request $request){
|
||||
$search = $request->get('term');
|
||||
$result = Ruangan::where('ruangan', 'LIKE', '%'.$search.'%')->get();
|
||||
|
||||
@@ -6,7 +6,7 @@ use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
use ZipArchive;
|
||||
|
||||
use JsonMachine\Items;
|
||||
class JsonTransferController extends Controller
|
||||
{
|
||||
protected $exportPath = 'database/seeders/data/';
|
||||
@@ -94,30 +94,41 @@ class JsonTransferController extends Controller
|
||||
|
||||
return response()->download($zipFile);
|
||||
}
|
||||
public function importTable($table){
|
||||
public function importTable($table) {
|
||||
$path = base_path($this->exportPath . $table . '.json');
|
||||
if (!file_exists($path)) {
|
||||
return redirect()->back()->with('error', "File JSON untuk tabel $table tidak ditemukan.");
|
||||
}
|
||||
$json = file_get_contents($path);
|
||||
$data = json_decode($json, true);
|
||||
if (!is_array($data)) {
|
||||
return redirect()->back()->with('error', "File JSON untuk tabel $table tidak valid.");
|
||||
return back()->with('error', "File JSON untuk tabel $table tidak ditemukan.");
|
||||
}
|
||||
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
DB::table($table)->truncate();
|
||||
$chunks = array_chunk($data, 200);
|
||||
foreach ($chunks as $chunk) {
|
||||
|
||||
$items = Items::fromFile($path);
|
||||
|
||||
$chunk = [];
|
||||
foreach ($items as $row) {
|
||||
$row = json_decode(json_encode($row), true);
|
||||
$chunk[] = $row;
|
||||
|
||||
if (count($chunk) >= 200) {
|
||||
DB::table($table)->insert($chunk);
|
||||
$chunk = [];
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($chunk)) {
|
||||
DB::table($table)->insert($chunk);
|
||||
}
|
||||
|
||||
DB::commit();
|
||||
return redirect()->back()->with('success', "Data untuk tabel $table berhasil di-import.");
|
||||
return back()->with('success', "Import berhasil!");
|
||||
} catch (\Exception $e) {
|
||||
DB::rollBack();
|
||||
return redirect()->back()->with('error', "Gagal import tabel $table: " . $e->getMessage());
|
||||
return back()->with('error', $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function pull(Request $request){
|
||||
if (session('previlage') !== 'developer') {
|
||||
abort(403, 'Akses ditolak. Anda tidak memiliki izin untuk menjalankan git pull.');
|
||||
|
||||
@@ -4,6 +4,10 @@ namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\KomponenJawaban;
|
||||
use App\Riwayat;
|
||||
use App\ResultSample;
|
||||
use App\PertumKolomNi;
|
||||
|
||||
class Periksa extends Model
|
||||
{
|
||||
protected $table = "periksa";
|
||||
@@ -56,4 +60,52 @@ class Periksa extends Model
|
||||
{
|
||||
return $this->hasMany(KomponenJawaban::class, 'accnumber', 'nofoto');
|
||||
}
|
||||
public function riwayats()
|
||||
{
|
||||
return $this->hasMany(Riwayat::class, 'nofoto', 'nofoto');
|
||||
}
|
||||
public function rawResult()
|
||||
{
|
||||
return $this->hasOne(ResultSample::class, 'accession_number', 'nofoto');
|
||||
}
|
||||
public function pertumkolomni()
|
||||
{
|
||||
return $this->hasMany(PertumKolomNi::class, 'orderid', 'id');
|
||||
}
|
||||
public function lastMediaBAP()
|
||||
{
|
||||
return $this->hasOne(PertumKolomNi::class, 'orderid', 'id')
|
||||
->where('media', 'Media BAP')
|
||||
->latest();
|
||||
}
|
||||
public function lastMediaCAP()
|
||||
{
|
||||
return $this->hasOne(PertumKolomNi::class, 'orderid', 'id')
|
||||
->where('media', 'Media CAP')
|
||||
->latest();
|
||||
}
|
||||
public function lastMediaMcConkey()
|
||||
{
|
||||
return $this->hasOne(PertumKolomNi::class, 'orderid', 'id')
|
||||
->where('media', 'Media Mc Conkey')
|
||||
->latest();
|
||||
}
|
||||
public function lastMediaSDA()
|
||||
{
|
||||
return $this->hasOne(PertumKolomNi::class, 'orderid', 'id')
|
||||
->where('media', 'Media SDA')
|
||||
->latest();
|
||||
}
|
||||
public function lastMediaSelLain()
|
||||
{
|
||||
return $this->hasOne(PertumKolomNi::class, 'orderid', 'id')
|
||||
->where('media', 'Media Selektif lainnya')
|
||||
->latest();
|
||||
}
|
||||
public function lastMediaTamLain()
|
||||
{
|
||||
return $this->hasOne(PertumKolomNi::class, 'orderid', 'id')
|
||||
->where('media', 'Media Tambahan Lainnya')
|
||||
->latest();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PertumKolomNi extends Model
|
||||
{
|
||||
protected $table = "pertumkolomni";
|
||||
protected $guarded = [];
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
"elibyy/tcpdf-laravel": "^11.1",
|
||||
"fawno/php-serial": "^2.0",
|
||||
"guzzlehttp/guzzle": "^7.8",
|
||||
"halaxa/json-machine": "^1.2",
|
||||
"laravel/framework": "^10.10",
|
||||
"laravel/passport": "^11.10",
|
||||
"laravel/sanctum": "^3.3",
|
||||
|
||||
Generated
+63
-1
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "0634a69affe13a00244f881f6615df9e",
|
||||
"content-hash": "8a28ab763fe2b2943f6cb295baae3568",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aamdsam/bridging-bpjs",
|
||||
@@ -1697,6 +1697,68 @@
|
||||
],
|
||||
"time": "2025-08-22T14:27:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "halaxa/json-machine",
|
||||
"version": "1.2.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/halaxa/json-machine.git",
|
||||
"reference": "8bf0b0ff6ff60ab480778eaa5ad7d505b442c2d4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/halaxa/json-machine/zipball/8bf0b0ff6ff60ab480778eaa5ad7d505b442c2d4",
|
||||
"reference": "8bf0b0ff6ff60ab480778eaa5ad7d505b442c2d4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "7.2 - 8.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-json": "*",
|
||||
"friendsofphp/php-cs-fixer": "^3.0",
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"phpunit/phpunit": "^8.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-json": "To run JSON Machine out of the box without custom decoders.",
|
||||
"guzzlehttp/guzzle": "To run example with GuzzleHttp"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/functions.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"JsonMachine\\": "src/"
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"src/autoloader.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Filip Halaxa",
|
||||
"email": "[email protected]"
|
||||
}
|
||||
],
|
||||
"description": "Efficient, easy-to-use and fast JSON pull parser",
|
||||
"support": {
|
||||
"issues": "https://github.com/halaxa/json-machine/issues",
|
||||
"source": "https://github.com/halaxa/json-machine/tree/1.2.6"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://ko-fi.com/G2G57KTE4",
|
||||
"type": "other"
|
||||
}
|
||||
],
|
||||
"time": "2025-12-05T14:53:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v10.49.1",
|
||||
|
||||
@@ -76,99 +76,139 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="modaleditorbiorepository" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Bio Repository</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Category Penyimpanan</label>
|
||||
<select class="form-control" id="kategorisimpan" name="kategorisimpan">
|
||||
<option value="A">Penyimpanan Suhu Ruang</option>
|
||||
<option value="B">Penyimpanan Suhu 4 Derajat</option>
|
||||
<option value="C">Penyimpanan Suhu 20 Derajat</option>
|
||||
<option value="D">Penyimpanan Suhu 80 Derajat</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title" id="myModalLabel">Bio Repository</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Category Penyimpanan</label>
|
||||
<select class="form-control" id="kategorisimpan" name="kategorisimpan">
|
||||
<option value="A">Penyimpanan Suhu Ruang</option>
|
||||
<option value="B">Penyimpanan Suhu 4 Derajat</option>
|
||||
<option value="C">Penyimpanan Suhu 20 Derajat</option>
|
||||
<option value="D">Penyimpanan Suhu 80 Derajat</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-4">
|
||||
<label>Shelf Nomor</label>
|
||||
<input type="number" class="form-control" id="shelfnomor">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Rack Number</label>
|
||||
<input type="number" class="form-control" id="raknomor">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Slot Number</label>
|
||||
<input type="number" class="form-control" id="slotnomor">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Box Number</label>
|
||||
<input type="number" class="form-control" id="boxnomor">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Tube Number</label>
|
||||
<input type="number" class="form-control" id="tubenomor">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-4">
|
||||
<label>Shelf Nomor</label>
|
||||
<input type="number" class="form-control" id="shelfnomor">
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Bactery Name</label>
|
||||
<input type="text" class="form-control" id="nmbakteri">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Rack Number</label>
|
||||
<input type="number" class="form-control" id="raknomor">
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Strain</label>
|
||||
<select class="form-control" id="strain" name="strain">
|
||||
<option value="Gram Negatif">Gram Negatif</option>
|
||||
<option value="Gram Positif">Gram Positif</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Slot Number</label>
|
||||
<input type="number" class="form-control" id="slotnomor">
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>ATCC</label>
|
||||
<input type="text" class="form-control" id="atcc">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Box Number</label>
|
||||
<input type="number" class="form-control" id="boxnomor">
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Tgl Penyimpanan</label>
|
||||
<input type="text" class="form-control" id="tglpenyimpanan">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label>Tube Number</label>
|
||||
<input type="number" class="form-control" id="tubenomor">
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Nama Pelaksana / Pemilik</label>
|
||||
<input type="text" class="form-control" id="createdby">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Bactery Name</label>
|
||||
<input type="text" class="form-control" id="nmbakteri">
|
||||
</div>
|
||||
<div class="form-group account-btn text-center m-t-10">
|
||||
<div class="col-12">
|
||||
<input type="hidden" class="form-control" id="idbakteri">
|
||||
<button class="btn w-lg btn-custom waves-effect waves-light" id="btnsimpandata" type="button">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Strain</label>
|
||||
<select class="form-control" id="strain" name="strain">
|
||||
<option value="Gram Negatif">Gram Negatif</option>
|
||||
<option value="Gram Positif">Gram Positif</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>ATCC</label>
|
||||
<input type="text" class="form-control" id="atcc">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Tgl Penyimpanan</label>
|
||||
<input type="text" class="form-control" id="tglpenyimpanan">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-b-25">
|
||||
<div class="col-12">
|
||||
<label>Nama Pelaksana / Pemilik</label>
|
||||
<input type="text" class="form-control" id="createdby">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group account-btn text-center m-t-10">
|
||||
<div class="col-12">
|
||||
<input type="hidden" class="form-control" id="idbakteri">
|
||||
<button class="btn w-lg btn-custom waves-effect waves-light" id="btnsimpandata" type="button">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tempatctk" style="overflow: hidden; display: none;">
|
||||
<div id="tabel_cetak"></div>
|
||||
<div id="tabel_cetak"></div>
|
||||
<table id="laporan" class="table table-bordered display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>File Report</th>
|
||||
<th>No.Loket</th>
|
||||
<th>No Rekam Medis</th>
|
||||
<th>No.RM</th>
|
||||
<th>Nama</th>
|
||||
<th>No.HP</th>
|
||||
<th>Tgl. Lahir</th>
|
||||
<th>Umur</th>
|
||||
<th>Alamat</th>
|
||||
<th>KTP</th>
|
||||
<th>BPJS</th>
|
||||
<th>Asuransi</th>
|
||||
<th>Urgensi</th>
|
||||
<th>Asal Pasien</th>
|
||||
<th>Order</th>
|
||||
<th>Klinisi</th>
|
||||
<th>Klinis</th>
|
||||
<th>Analis</th>
|
||||
<th>PPDS</th>
|
||||
<th>Code</th>
|
||||
<th>Speciment</th>
|
||||
<th>Template</th>
|
||||
<th>Jenis</th>
|
||||
<th>Bakteri I</th>
|
||||
<th>Bakteri II</th>
|
||||
<th>Bakteri III</th>
|
||||
<th>Sample Masuk</th>
|
||||
<th>Verifikasi</th>
|
||||
<th>Target</th>
|
||||
<th>Duration</th>
|
||||
<th>Keterangan</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">
|
||||
@endsection
|
||||
|
||||
@push('script')
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
@@ -187,95 +227,136 @@ $(document).ready(function () {
|
||||
type : 'error',
|
||||
});
|
||||
} else {
|
||||
var source = {
|
||||
datatype: "json",
|
||||
datafields: [
|
||||
{ name: 'id',type: 'text'},
|
||||
{ name: 'filefoto',type: 'text'},
|
||||
{ name: 'mulai',type: 'text'},
|
||||
{ name: 'akhir',type: 'text'},
|
||||
{ name: 'orderid',type: 'text'},
|
||||
{ name: 'nofoto',type: 'text'},
|
||||
{ name: 'noregister',type: 'text'},
|
||||
{ name: 'asalpasien', type: 'text'},
|
||||
{ name: 'nmpasien',type: 'text'},
|
||||
{ name: 'jkpasien',type: 'text'},
|
||||
{ name: 'tgllahirpasien', type: 'text'},
|
||||
{ name: 'tlppasien', type: 'text'},
|
||||
{ name: 'alamatpasien', type: 'text'},
|
||||
{ name: 'usia', type: 'text'},
|
||||
{ name: 'ktp', type: 'text'},
|
||||
{ name: 'bpjs', type: 'text'},
|
||||
{ name: 'klinis', type: 'text'},
|
||||
{ name: 'klinisi', type: 'text'},
|
||||
{ name: 'asuransi', type: 'text'},
|
||||
{ name: 'urgensi', type: 'text'},
|
||||
{ name: 'kd_spesimen', type: 'text'},
|
||||
{ name: 'nm_spesimen', type: 'text'},
|
||||
{ name: 'verifikasi',type: 'text'},
|
||||
{ name: 'dlp',type: 'text'},
|
||||
{ name: 'status',type: 'text'},
|
||||
{ name: 'id_bakteri01',type: 'text'},
|
||||
{ name: 'id_bakteri02',type: 'text'},
|
||||
{ name: 'bakteri',type: 'text'},
|
||||
{ name: 'selisih_hari',type: 'text'},
|
||||
{ name: 'subpoli',type: 'text'},
|
||||
{ name: 'status_target',type: 'text'},
|
||||
{ name: 'modaliti2',type: 'text'},
|
||||
],
|
||||
updaterow : function (rowid, rowdata, commit) {commit(true);},
|
||||
type : 'POST',
|
||||
data : {bulan: bulan, tahun: tahun, jenisreport: '', _token: token },
|
||||
url : '{{ route("reportPeriksa") }}',
|
||||
};
|
||||
var dataAdapter = new $.jqx.dataAdapter(source);
|
||||
$('#divlaporan').show();
|
||||
$('#divlaporanharian').hide();
|
||||
$("#result").jqxGrid({
|
||||
width : '100%',
|
||||
enablebrowserselection : true,
|
||||
filterable : true,
|
||||
autoheight : true,
|
||||
showfilterrow : true,
|
||||
altrows : true,
|
||||
source : dataAdapter,
|
||||
pageable : true,
|
||||
theme : "energyblue",
|
||||
columnsresize : true,
|
||||
selectionmode : 'multiplecellsextended',
|
||||
columns : [
|
||||
{ text: 'File Report', editable: false, sortable: false, filterable: false, datafield: 'filefoto', width: 80, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.Loket', datafield: 'nofoto', width: 80, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.RM', datafield: 'noregister', width: 70, align: 'center', cellsalign: 'left'},
|
||||
{ text: 'Nama', datafield: 'nmpasien', width: 160, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.HP', datafield: 'tlppasien', width: 100, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Tgl. Lahir', datafield: 'tgllahirpasien', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Umur', datafield: 'usia', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Alamat', datafield: 'alamatpasien', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'KTP', datafield: 'ktp', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'BPJS', datafield: 'bpjs', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Asuransi', datafield: 'asuransi', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Urgensi', datafield: 'urgensi', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Asal Pasien', datafield: 'asalpasien', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Order', datafield: 'subpoli', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Klinisi', datafield: 'klinisi', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Klinis', datafield: 'klinis', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Analis', datafield: 'nmanalis', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'PPDS', datafield: 'nmppdssenior', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Code', datafield: 'kd_spesimen', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Speciment', datafield: 'nm_spesimen', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Template', datafield: 'dlp', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Jenis', datafield: 'diagnosa2', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Bakteri I', datafield: 'bakteri', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Bakteri II', datafield: 'id_bakteri01', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Bakteri III', datafield: 'id_bakteri02', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Sample Masuk', datafield: 'mulai', width: 160, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Verifikasi', datafield: 'verifikasi', width: 80, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Target', datafield: 'modaliti2', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Duration', datafield: 'selisih_hari', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Keterangan', datafield: 'status_target', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Status', datafield: 'status', width: 100, cellsalign: 'left', align: 'center'},
|
||||
],
|
||||
$.post('{{ route("reportPeriksa") }}', { bulan: bulan, tahun: tahun, jenisreport: '', _token: token },
|
||||
function(data){
|
||||
var sourceawal = {
|
||||
datatype: "json",
|
||||
datafields: [
|
||||
{ name: 'id',type: 'text'},
|
||||
{ name: 'filefoto',type: 'text'},
|
||||
{ name: 'mulai',type: 'text'},
|
||||
{ name: 'akhir',type: 'text'},
|
||||
{ name: 'orderid',type: 'text'},
|
||||
{ name: 'nofoto',type: 'text'},
|
||||
{ name: 'noregister',type: 'text'},
|
||||
{ name: 'asalpasien', type: 'text'},
|
||||
{ name: 'nmpasien',type: 'text'},
|
||||
{ name: 'jkpasien',type: 'text'},
|
||||
{ name: 'tgllahirpasien', type: 'text'},
|
||||
{ name: 'tlppasien', type: 'text'},
|
||||
{ name: 'alamatpasien', type: 'text'},
|
||||
{ name: 'usia', type: 'text'},
|
||||
{ name: 'ktp', type: 'text'},
|
||||
{ name: 'bpjs', type: 'text'},
|
||||
{ name: 'klinis', type: 'text'},
|
||||
{ name: 'klinisi', type: 'text'},
|
||||
{ name: 'asuransi', type: 'text'},
|
||||
{ name: 'urgensi', type: 'text'},
|
||||
{ name: 'kd_spesimen', type: 'text'},
|
||||
{ name: 'nm_spesimen', type: 'text'},
|
||||
{ name: 'verifikasi',type: 'text'},
|
||||
{ name: 'dlp',type: 'text'},
|
||||
{ name: 'status',type: 'text'},
|
||||
{ name: 'id_bakteri01',type: 'text'},
|
||||
{ name: 'id_bakteri02',type: 'text'},
|
||||
{ name: 'bakteri',type: 'text'},
|
||||
{ name: 'selisih_hari',type: 'text'},
|
||||
{ name: 'subpoli',type: 'text'},
|
||||
{ name: 'status_target',type: 'text'},
|
||||
{ name: 'modaliti2',type: 'text'},
|
||||
],
|
||||
id: 'id',
|
||||
localData: data
|
||||
};
|
||||
var dataAdapter = new $.jqx.dataAdapter(sourceawal);
|
||||
$('#divlaporan').show();
|
||||
$('#divlaporanharian').hide();
|
||||
$("#result").jqxGrid({
|
||||
width : '100%',
|
||||
enablebrowserselection : true,
|
||||
filterable : true,
|
||||
autoheight : true,
|
||||
showfilterrow : true,
|
||||
altrows : true,
|
||||
source : dataAdapter,
|
||||
pageable : true,
|
||||
theme : "energyblue",
|
||||
columnsresize : true,
|
||||
selectionmode : 'multiplecellsextended',
|
||||
columns : [
|
||||
{ text: 'File Report', editable: false, sortable: false, filterable: false, datafield: 'filefoto', width: 80, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.Loket', datafield: 'nofoto', width: 80, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.RM', datafield: 'noregister', width: 70, align: 'center', cellsalign: 'left'},
|
||||
{ text: 'Nama', datafield: 'nmpasien', width: 160, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.HP', datafield: 'tlppasien', width: 100, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Tgl. Lahir', datafield: 'tgllahirpasien', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Umur', datafield: 'usia', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Alamat', datafield: 'alamatpasien', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'KTP', datafield: 'ktp', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'BPJS', datafield: 'bpjs', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Asuransi', datafield: 'asuransi', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Urgensi', datafield: 'urgensi', width: 70, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Asal Pasien', datafield: 'asalpasien', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Order', datafield: 'subpoli', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Klinisi', datafield: 'klinisi', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Klinis', datafield: 'klinis', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Analis', datafield: 'nmanalis', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'PPDS', datafield: 'nmppdssenior', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Code', datafield: 'kd_spesimen', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Speciment', datafield: 'nm_spesimen', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Template', datafield: 'dlp', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Jenis', datafield: 'diagnosa2', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Bakteri I', datafield: 'bakteri', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Bakteri II', datafield: 'id_bakteri01', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Bakteri III', datafield: 'id_bakteri02', width: 150, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Sample Masuk', datafield: 'mulai', width: 160, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Verifikasi', datafield: 'verifikasi', width: 80, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Target', datafield: 'modaliti2', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Duration', datafield: 'selisih_hari', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Keterangan', datafield: 'status_target', width: 100, cellsalign: 'left', align: 'center'},
|
||||
{ text: 'Status', datafield: 'status', width: 100, cellsalign: 'left', align: 'center'},
|
||||
],
|
||||
});
|
||||
var tbody = $("#laporan tbody");
|
||||
tbody.empty();
|
||||
$.each(data, function(i, row) {
|
||||
var tr = `<tr>
|
||||
<td>${row.filefoto ?? ''}</td>
|
||||
<td>${row.nofoto ?? ''}</td>
|
||||
<td>${row.noregister ?? ''}</td>
|
||||
<td>${row.noregister ?? ''}</td>
|
||||
<td>${row.nmpasien ?? ''}</td>
|
||||
<td>${row.tlppasien ?? ''}</td>
|
||||
<td>${row.tgllahirpasien ?? ''}</td>
|
||||
<td>${row.usia ?? ''}</td>
|
||||
<td>${row.alamatpasien ?? ''}</td>
|
||||
<td>${row.ktp ?? ''}</td>
|
||||
<td>${row.bpjs ?? ''}</td>
|
||||
<td>${row.asuransi ?? ''}</td>
|
||||
<td>${row.urgensi ?? ''}</td>
|
||||
<td>${row.asalpasien ?? ''}</td>
|
||||
<td>${row.subpoli ?? ''}</td>
|
||||
<td>${row.klinisi ?? ''}</td>
|
||||
<td>${row.klinis ?? ''}</td>
|
||||
<td>${row.nmanalis ?? ''}</td>
|
||||
<td>${row.nmppdssenior ?? ''}</td>
|
||||
<td>${row.kd_spesimen ?? ''}</td>
|
||||
<td>${row.nm_spesimen ?? ''}</td>
|
||||
<td>${row.dlp ?? ''}</td>
|
||||
<td>${row.diagnosa2 ?? ''}</td>
|
||||
<td>${row.bakteri ?? ''}</td>
|
||||
<td>${row.id_bakteri01 ?? ''}</td>
|
||||
<td>${row.id_bakteri02 ?? ''}</td>
|
||||
<td>${row.mulai ?? ''}</td>
|
||||
<td>${row.verifikasi ?? ''}</td>
|
||||
<td>${row.modaliti2 ?? ''}</td>
|
||||
<td>${row.selisih_hari ?? ''}</td>
|
||||
<td>${row.status_target ?? ''}</td>
|
||||
<td>${row.status ?? ''}</td>
|
||||
</tr>`;
|
||||
tbody.append(tr);
|
||||
});
|
||||
return false;
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -495,79 +576,16 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
$('#downexcell').click(function(){
|
||||
var gridContent = $("#result").jqxGrid('exportdata', 'json');
|
||||
data = $.parseJSON(gridContent);
|
||||
var noOfContacts = data.length;
|
||||
if(noOfContacts>0){
|
||||
var table = document.createElement("table");
|
||||
table.style.width = '100%';
|
||||
table.setAttribute('border', '1');
|
||||
table.setAttribute('cellspacing', '0');
|
||||
table.setAttribute('cellpadding', '5');
|
||||
table.setAttribute('id', 'tabelcetak');
|
||||
table.setAttribute('class', 'text');
|
||||
var col = [];
|
||||
for (var i = 0; i < noOfContacts; i++) {
|
||||
for (var key in data[i]) {
|
||||
if (col.indexOf(key) === -1) {
|
||||
col.push(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
var tHead = document.createElement("thead");
|
||||
var hRow = document.createElement("tr");
|
||||
for (var i = 0; i < col.length; i++) {
|
||||
var th = document.createElement("th");
|
||||
th.innerHTML = col[i];
|
||||
hRow.appendChild(th);
|
||||
}
|
||||
tHead.appendChild(hRow);
|
||||
table.appendChild(tHead);
|
||||
var tBody = document.createElement("tbody");
|
||||
for (var i = 0; i < noOfContacts; i++) {
|
||||
var bRow = document.createElement("tr");
|
||||
for (var j = 0; j < col.length; j++) {
|
||||
var td = document.createElement("td");
|
||||
var isi = data[i][col[j]];
|
||||
var isi2 = isi.toString();
|
||||
var pjg = isi2.length;
|
||||
if (pjg > 8){
|
||||
if (pjg == 9 || pjg == 10 || pjg == 11 || pjg == 12 || pjg == 13){
|
||||
if( isi2.indexOf(',') != -1 ){
|
||||
var res = isi2.replace(/,/g, "");
|
||||
td.innerHTML = res;
|
||||
}
|
||||
else {
|
||||
var res = isi2;
|
||||
td.setAttribute('style', 'mso-number-format: "\@";');
|
||||
td.innerHTML = res;
|
||||
}
|
||||
}
|
||||
else {
|
||||
var res = isi2;
|
||||
td.setAttribute('style', 'mso-number-format: "\@";');
|
||||
td.innerHTML = res;
|
||||
}
|
||||
}
|
||||
else {
|
||||
var res = isi2.replace(/,/g, "");
|
||||
td.innerHTML = res;
|
||||
}
|
||||
|
||||
bRow.appendChild(td);
|
||||
}
|
||||
tBody.appendChild(bRow)
|
||||
}
|
||||
table.appendChild(tBody);
|
||||
var divContainer = document.getElementById("tabel_cetak");
|
||||
divContainer.innerHTML = "";
|
||||
divContainer.appendChild(table);
|
||||
var bulan = document.getElementById('bulan').value;
|
||||
var tahun = document.getElementById('tahun').value;
|
||||
|
||||
var table = document.getElementById('laporan');
|
||||
if (table) {
|
||||
var wb = XLSX.utils.table_to_book(table, { sheet: "Report" });
|
||||
XLSX.writeFile(wb, "Report_"+bulan+"_Tahun"+tahun+".xlsx");
|
||||
} else {
|
||||
console.error('Tabel dengan ID "tblkeaktifankelas" tidak ditemukan.');
|
||||
}
|
||||
$("#tabel_cetak").btechco_excelexport({
|
||||
containerid: "tabel_cetak"
|
||||
, datatype: $datatype.Table
|
||||
});
|
||||
return false;
|
||||
});
|
||||
$('#downexcellharian').click(function(){
|
||||
var gridContent = $("#resultharian").jqxGrid('exportdata', 'json');
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
<div id="navigation">
|
||||
<ul class="navigation-menu">
|
||||
@if(Session::get('previlage') == 'developer')
|
||||
<li><a href="/modemobile"><i class="fa fa-h-square"></i>Tab Mode</a></li>
|
||||
<li><a href="/reportppds"><i class="fa fa-h-square"></i>SPV Verification</a></li>
|
||||
<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Registration</a></li>
|
||||
<li class="has-submenu">
|
||||
@@ -118,6 +119,7 @@
|
||||
</ul>
|
||||
</li>
|
||||
@elseif(Session::get('previlage') == 'supervisor')
|
||||
<li><a href="/modemobile"><i class="fa fa-h-square"></i>Tab Mode</a></li>
|
||||
<li><a href="/reportppds"><i class="fa fa-h-square"></i>SPV Verification</a></li>
|
||||
<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Registration</a></li>
|
||||
<li class="has-submenu">
|
||||
@@ -161,6 +163,7 @@
|
||||
</ul>
|
||||
</li>
|
||||
@elseif(Session::get('previlage') == 'ppds')
|
||||
<li><a href="/modemobile"><i class="fa fa-h-square"></i>Tab Mode</a></li>
|
||||
<li class="has-submenu">
|
||||
<a href="#"><i class="fa fa-user-md"></i>Specimen</a>
|
||||
<ul class="submenu">
|
||||
@@ -193,6 +196,7 @@
|
||||
</ul>
|
||||
</li>
|
||||
@elseif(Session::get('previlage') == 'analis')
|
||||
<li><a href="/modemobile"><i class="fa fa-h-square"></i>Tab Mode</a></li>
|
||||
<li class="has-submenu">
|
||||
<a href="#"><i class="fa fa-user-md"></i>Specimen</a>
|
||||
<ul class="submenu">
|
||||
|
||||
@@ -761,13 +761,13 @@
|
||||
<div class="card-box">
|
||||
<div class="card-header">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-lg-2">
|
||||
<div class="form-group col-lg-3">
|
||||
<button type="button" class="btn btn-primary" id="btnuntukgridmediabap">
|
||||
<i class="fa fa-calendar-check-o mr-1"></i> Ada Pertumbuhan
|
||||
</button>
|
||||
</div>
|
||||
<div class="form-group col-lg-2">
|
||||
<button type="button" class="btn btn-primary" id="btnbapkosong">
|
||||
<div class="form-group col-lg-3">
|
||||
<button type="button" class="btn btn-warning" id="btnbapkosong">
|
||||
<i class="fa fa-calendar-times-o mr-1"></i> Tidak Ada Pertumbuhan
|
||||
</button>
|
||||
</div>
|
||||
@@ -812,7 +812,7 @@
|
||||
<button type="button" class="btn btn-primary" id="btnuntukgridmediacap">
|
||||
<i class="fa fa-calendar-check-o mr-1"></i> Ada Pertumbuhan
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="btncapkosong">
|
||||
<button type="button" class="btn btn-warning" id="btncapkosong">
|
||||
<i class="fa fa-calendar-times-o mr-1"></i> Tidak Ada Pertumbuhan
|
||||
</button>
|
||||
</div>
|
||||
@@ -1929,7 +1929,7 @@
|
||||
<option value="default">Default</option>
|
||||
@if(isset($antibiotics) && count($antibiotics) > 0)
|
||||
@foreach($antibiotics as $antibiotic)
|
||||
<option value="{{ $antibiotic->setmanual }}">{{ $antibiotic->setmanual }}</option>
|
||||
<option value="{{ trim($antibiotic->setmanual) }}">{{ trim($antibiotic->setmanual) }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
@@ -2026,7 +2026,7 @@
|
||||
<option value="default">Default</option>
|
||||
@if(isset($antibiotics) && count($antibiotics) > 0)
|
||||
@foreach($antibiotics as $antibiotic)
|
||||
<option value="{{ $antibiotic->setmanual }}">{{ $antibiotic->setmanual }}</option>
|
||||
<option value="{{ trim($antibiotic->setmanual) }}">{{ trim($antibiotic->setmanual) }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
@@ -3622,6 +3622,8 @@
|
||||
$('#id_bakterihitungkol01teks').hide();
|
||||
$('#id_bakterihitungkol02select').show();
|
||||
$('#id_bakterihitungkol02teks').hide();
|
||||
$('#id_bakterimediabapselect').show();
|
||||
$('#id_bakterimediabapteks').hide();
|
||||
$('input[type="checkbox"]').prop('disabled', false);
|
||||
console.log('Loading komponen jawaban for DLP: '+dlp+' | No.Foto: '+nofoto+' | ID Periksa: '+idne);
|
||||
var form_data = new FormData();
|
||||
@@ -3638,6 +3640,7 @@
|
||||
success : function (response) {
|
||||
var komponens = response.komponens || JSON.parse(response);
|
||||
komponens.forEach(function(rows) {
|
||||
console.log(rows.komponen+' | '+rows.isidata);
|
||||
if (rows.komponen === 'lsg_pewarnaanlain') {
|
||||
CKEDITOR.instances['lsg_pewarnaanlain'].setData(rows.isidata);
|
||||
} else if (rows.komponen === 'lsg_ditemukanmorfologi') {
|
||||
@@ -3680,7 +3683,7 @@
|
||||
}
|
||||
} else {
|
||||
$("#" + rows.komponen).val(rows.isidata);
|
||||
console.log(rows.komponen+' | '+rows.isidata);
|
||||
|
||||
if (rows.komponen === 'id_jenispemeriksaantb') {
|
||||
if (rows.isidata === 'TCM MTB Rif (Xpert)' || rows.isidata === 'TCM MTB Rif (Truenat)' || rows.isidata === 'TCM MTB Rif INH (BDMAX)' || rows.isidata === 'LPA lini 2' || rows.isidata === 'LPA lini 1') {
|
||||
$('#hasilpemeriksaanttcmmtbrifxpert').show();
|
||||
|
||||
@@ -761,12 +761,12 @@
|
||||
<div class="card-box">
|
||||
<div class="card-header">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-lg-2">
|
||||
<div class="form-group col-lg-3">
|
||||
<button type="button" class="btn btn-primary" id="btnuntukgridmediabap">
|
||||
<i class="fa fa-calendar-check-o mr-1"></i> Ada Pertumbuhan
|
||||
</button>
|
||||
</div>
|
||||
<div class="form-group col-lg-2">
|
||||
<div class="form-group col-lg-3">
|
||||
<button type="button" class="btn btn-primary" id="btnbapkosong">
|
||||
<i class="fa fa-calendar-times-o mr-1"></i> Tidak Ada Pertumbuhan
|
||||
</button>
|
||||
@@ -1672,9 +1672,10 @@
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
<option value="TCM-RNA HIV">TCM-RNA HIV</option>
|
||||
<option value="TCM-HCV VL">TCM-HCV VL</option>
|
||||
<option value="PCR HIV Viral load">PCR HIV Viral load</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<div class="form-group col-lg-3" id="vl_hasildiv1select">
|
||||
<label for="vl_hasil01" class="col-form-label">Hasil</label>
|
||||
<select class="form-control ekspertiseseletc" id="vl_hasil01" name="vl_hasil01">
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
@@ -1696,9 +1697,13 @@
|
||||
<option value="144">144</option>
|
||||
<option value="211">211</option>
|
||||
</optgroup>
|
||||
<option value="...">...</option>
|
||||
<option value="lainnya">lainnya</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-3" id="vl_hasildiv1teks">
|
||||
<label for="vl_hasil01teks" class="col-form-label">Hasil</label>
|
||||
<input type="text" name="vl_hasil01teks" id="vl_hasil01teks" class="form-control ekspertiseteks">
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<label for="vl_satuan01" class="col-form-label">Satuan</label>
|
||||
<select class="form-control ekspertiseseletc" id="vl_satuan01" name="vl_satuan01">
|
||||
@@ -1722,7 +1727,7 @@
|
||||
<option value="LOG">LOG</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<div class="form-group col-lg-3" id="vl_hasildiv2select">
|
||||
<label for="vl_hasil02" class="col-form-label">Hasil 02</label>
|
||||
<select class="form-control ekspertiseseletc" id="vl_hasil02" name="vl_hasil02">
|
||||
<option value="">Pilih Salah Satu</option>
|
||||
@@ -1744,9 +1749,13 @@
|
||||
<option value="2,16">2,16</option>
|
||||
<option value="2,34">2,34</option>
|
||||
</optgroup>
|
||||
<option value="...">...</option>
|
||||
<option value="lainnya">lainnya</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-lg-3" id="vl_hasildiv2teks">
|
||||
<label for="vl_hasil02teks" class="col-form-label">Hasil 02</label>
|
||||
<input type="text" name="vl_hasil02teks" id="vl_hasil02teks" class="form-control ekspertiseteks">
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<label for="vl_satuan02" class="col-form-label">Satuan 02</label>
|
||||
<select class="form-control ekspertiseseletc" id="vl_satuan02" name="vl_satuan02">
|
||||
@@ -1929,7 +1938,7 @@
|
||||
<option value="default">Default</option>
|
||||
@if(isset($antibiotics) && count($antibiotics) > 0)
|
||||
@foreach($antibiotics as $antibiotic)
|
||||
<option value="{{ $antibiotic->setmanual }}">{{ $antibiotic->setmanual }}</option>
|
||||
<option value="{{ trim($antibiotic->setmanual) }}">{{ trim($antibiotic->setmanual) }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
@@ -2026,7 +2035,7 @@
|
||||
<option value="default">Default</option>
|
||||
@if(isset($antibiotics) && count($antibiotics) > 0)
|
||||
@foreach($antibiotics as $antibiotic)
|
||||
<option value="{{ $antibiotic->setmanual }}">{{ $antibiotic->setmanual }}</option>
|
||||
<option value="{{ trim($antibiotic->setmanual) }}">{{ trim($antibiotic->setmanual) }}</option>
|
||||
@endforeach
|
||||
@endif
|
||||
</select>
|
||||
@@ -3622,6 +3631,12 @@
|
||||
$('#id_bakterihitungkol01teks').hide();
|
||||
$('#id_bakterihitungkol02select').show();
|
||||
$('#id_bakterihitungkol02teks').hide();
|
||||
$('#id_bakterimediabapselect').show();
|
||||
$('#id_bakterimediabapteks').hide();
|
||||
$('#vl_hasildiv1select').show();
|
||||
$('#vl_hasildiv1teks').hide();
|
||||
$('#vl_hasildiv2select').show();
|
||||
$('#vl_hasildiv2teks').hide();
|
||||
$('input[type="checkbox"]').prop('disabled', false);
|
||||
console.log('Loading komponen jawaban for DLP: '+dlp+' | No.Foto: '+nofoto+' | ID Periksa: '+idne);
|
||||
var form_data = new FormData();
|
||||
@@ -3638,6 +3653,7 @@
|
||||
success : function (response) {
|
||||
var komponens = response.komponens || JSON.parse(response);
|
||||
komponens.forEach(function(rows) {
|
||||
console.log(rows.komponen+' | '+rows.isidata);
|
||||
if (rows.komponen === 'lsg_pewarnaanlain') {
|
||||
CKEDITOR.instances['lsg_pewarnaanlain'].setData(rows.isidata);
|
||||
} else if (rows.komponen === 'lsg_ditemukanmorfologi') {
|
||||
@@ -3680,7 +3696,6 @@
|
||||
}
|
||||
} else {
|
||||
$("#" + rows.komponen).val(rows.isidata);
|
||||
console.log(rows.komponen+' | '+rows.isidata);
|
||||
if (rows.komponen === 'id_jenispemeriksaantb') {
|
||||
if (rows.isidata === 'TCM MTB Rif (Xpert)' || rows.isidata === 'TCM MTB Rif (Truenat)' || rows.isidata === 'TCM MTB Rif INH (BDMAX)' || rows.isidata === 'LPA lini 2' || rows.isidata === 'LPA lini 1') {
|
||||
$('#hasilpemeriksaanttcmmtbrifxpert').show();
|
||||
@@ -3724,6 +3739,14 @@
|
||||
$('#id_bakterihitungkol02select').hide();
|
||||
$('#id_bakterihitungkol02teks').show();
|
||||
}
|
||||
if (rows.komponen === 'vl_hasil01' && rows.isidata === 'lainnya'){
|
||||
$('#vl_hasildiv1select').hide();
|
||||
$('#vl_hasildiv1teks').show();
|
||||
}
|
||||
if (rows.komponen === 'vl_hasil02' && rows.isidata === 'lainnya'){
|
||||
$('#vl_hasildiv2select').hide();
|
||||
$('#vl_hasildiv2teks').show();
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,139 @@
|
||||
@extends('base.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card-box ribbon-box">
|
||||
<div class="ribbon ribbon-primary">Select Book</div>
|
||||
<p class="m-b-0"></p>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Cairan Steril</h6>
|
||||
<h2 class="m-b-20">{{$cairansteril}}</h2>
|
||||
<a href="/tabsmode/buku01"><span class="badge badge-custom float-right"> Open Book Cairan Steril</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">CCI</h6>
|
||||
<h2 class="m-b-20">{{$cci}}</h2>
|
||||
<a href="/tabsmode/buku02"><span class="badge badge-primary float-right"> Open Book CCI</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Darah</h6>
|
||||
<h2 class="m-b-20">{{$darah}}</h2>
|
||||
<a href="/tabsmode/buku03"><span class="badge badge-success float-right"> Open Book Darah</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">HIV</h6>
|
||||
<h2 class="m-b-20">{{$hiv}}</h2>
|
||||
<a href="/tabsmode/buku04"><span class="badge badge-warning float-right"> Open Book HIV</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Kuku, Kulit, Adnexa</h6>
|
||||
<h2 class="m-b-20">{{$kukukulit}}</h2>
|
||||
<a href="/tabsmode/buku05"><span class="badge badge-info float-right"> Open Book Kuku, Kulit, Adnexa</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Kultur TB</h6>
|
||||
<h2 class="m-b-20">{{$kulturtb}}</h2>
|
||||
<a href="/tabsmode/buku06"><span class="badge badge-secondary float-right"> Open Book Kultur TB</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Pus dan Jaringan</h6>
|
||||
<h2 class="m-b-20">{{$pusdanjaringan}}</h2>
|
||||
<a href="/tabsmode/buku07"><span class="badge badge-dark float-right"> Open Book Pus dan Jaringan</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Sputum</h6>
|
||||
<h2 class="m-b-20">{{$sputum}}</h2>
|
||||
<a href="/tabsmode/buku08"><span class="badge badge-purple float-right"> Open Book Sputum</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Swab</h6>
|
||||
<h2 class="m-b-20">{{$swab}}</h2>
|
||||
<a href="/tabsmode/buku09"><span class="badge badge-pink float-right"> Open Book Swab</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">TCM TB</h6>
|
||||
<h2 class="m-b-20">{{$tcmtb}}</h2>
|
||||
<a href="/tabsmode/buku10"><span class="badge badge-primary float-right"> Open Book TCM TB</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">TCM non-TB</h6>
|
||||
<h2 class="m-b-20">{{$tcmnontb}}</h2>
|
||||
<a href="/tabsmode/buku11"><span class="badge badge-warning float-right"> Open Book TCM non-TB</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Urine</h6>
|
||||
<h2 class="m-b-20">{{$urine}}</h2>
|
||||
<a href="/tabsmode/buku12"><span class="badge badge-info float-right"> Open Book Urine</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Feces</h6>
|
||||
<h2 class="m-b-20">{{$feces}}</h2>
|
||||
<a href="/tabsmode/buku13"><span class="badge badge-danger float-right"> Open Book Feces</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
|
||||
<div class="card-box tilebox-one">
|
||||
<i class="fa fa-flask float-right text-muted"></i>
|
||||
<h6 class="text-muted text-uppercase mt-0">Selainnya</h6>
|
||||
<h2 class="m-b-20">{{$lainnya}}</h2>
|
||||
<a href="/tabsmode/buku0"><span class="badge badge-dark float-right"> Open Book Lainnya</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- TOKEN -->
|
||||
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">
|
||||
@endsection
|
||||
|
||||
@push('script')
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
@@ -36,6 +36,8 @@ Route::group(['middleware' => 'project.ipg'], function() {
|
||||
Route::get('/autocomplete-klinik', [FrontpageController::class, 'autocompleteKlinik'])->name('autocomplete.klinik');
|
||||
Route::get('/autocomplete-dokter', [FrontpageController::class, 'autocompleteDokter'])->name('autocomplete.dokter');
|
||||
|
||||
Route::get('tabsmode/{id}', [FrontpageController::class, 'viewTabletsMode']);
|
||||
Route::get('modemobile', [FrontpageController::class, 'viewMobileMode']);
|
||||
Route::get('checkout', [FrontpageController::class, 'viewCheckout']);
|
||||
Route::get('pendaftaran', [FrontpageController::class, 'pendaftaran']);
|
||||
Route::get('pengambilan', [FrontpageController::class, 'pengambilan']);
|
||||
@@ -45,13 +47,6 @@ Route::group(['middleware' => 'project.ipg'], function() {
|
||||
Route::post('getnamebyrm', [PasienController::class, 'getPasienbynorm'])->name('getnamebyrm');
|
||||
Route::post('search', [FrontpageController::class, 'autoComplete'])->name('searchajax');
|
||||
Route::get('auto', [FrontpageController::class, 'auto'])->name('auto');
|
||||
Route::get('getfnk', [FrontpageController::class, 'getFnk'])->name('getFnk');
|
||||
Route::get('getfk', [FrontpageController::class, 'getFk'])->name('getFk');
|
||||
Route::get('getdsa', [FrontpageController::class, 'getDsa'])->name('getDsa');
|
||||
Route::get('getmri', [FrontpageController::class, 'getMri'])->name('getMri');
|
||||
Route::get('getcts', [FrontpageController::class, 'getCts'])->name('getCts');
|
||||
Route::get('getusg', [FrontpageController::class, 'getUsg'])->name('getUsg');
|
||||
Route::get('getbone', [FrontpageController::class, 'getBone'])->name('getBone');
|
||||
Route::post('exdatamoving', [FrontpageController::class, 'exMoveApiRegister'])->name('exMoveApiRegister');
|
||||
|
||||
Route::post('exdatapenugasan', [FrontpageController::class, 'exDatapenugasan'])->name('exDatapenugasan');
|
||||
|
||||
Reference in New Issue
Block a user