add dict_tests
This commit is contained in:
parent
98efe70198
commit
3ce13fc8be
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
!.gitignore
|
||||
!env
|
||||
!cmod.sql
|
||||
!pbmcDps_dict_tests.csv
|
||||
@ -6,6 +6,13 @@ use CodeIgniter\Router\RouteCollection;
|
||||
* @var RouteCollection $routes
|
||||
*/
|
||||
|
||||
// Pages
|
||||
$routes->get('/', 'Pages::dashboard_index');
|
||||
$routes->get('/userroles/', 'Pages::userroles_index');
|
||||
$routes->get('/users/', 'Pages::users_index');
|
||||
$routes->get('/changePass/', 'Pages::changePass');
|
||||
$routes->get('/dictTests/', 'Pages::dictTests_index');
|
||||
|
||||
// Tubes
|
||||
$routes->get('/tubes/collect/(:any)/(:any)', 'Tubes::collect/$1/$2');
|
||||
$routes->get('/tubes/collectAll/(:any)', 'Tubes::collectAll/$1');
|
||||
@ -15,12 +22,6 @@ $routes->get('/tubes/unreceive/(:any)/(:any)', 'Tubes::unreceive/$1/$2');
|
||||
$routes->get('/tubes/unreceiveAll/(:any)', 'Tubes::unreceiveAll/$1');
|
||||
$routes->post('/tubes/comment/(:any)/(:any)', 'Tubes::comment/$1/$2');
|
||||
|
||||
// Pages
|
||||
$routes->get('/', 'Pages::dashboard_index');
|
||||
$routes->get('/userroles/', 'Pages::userroles_index');
|
||||
$routes->get('/users/', 'Pages::users_index');
|
||||
$routes->get('/changePass/', 'Pages::changePass');
|
||||
|
||||
$routes->get('/dashboard/viewAccess/(:any)', 'Dashboard::viewAccess/$1');
|
||||
// Dashboard
|
||||
$routes->get('/api/dashboard/index', 'Dashboard::index');
|
||||
@ -44,3 +45,6 @@ $routes->get('/api/users/index', 'Users::index');
|
||||
$routes->get('/api/users/detail/(:any)', 'Users::detail/$1');
|
||||
$routes->post('/api/users/savePass/(:any)', 'Users::savePass/$1');
|
||||
$routes->post('/api/users/saveRole/(:any)', 'Users::saveRole/$1');
|
||||
|
||||
// API - DictTests
|
||||
$routes->get('/api/dictTests/index', 'DictTests::index');
|
||||
|
||||
49
app/Controllers/DictTests.php
Normal file
49
app/Controllers/DictTests.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
namespace App\Controllers;
|
||||
|
||||
use CodeIgniter\RESTful\ResourceController;
|
||||
|
||||
class DictTests extends ResourceController {
|
||||
protected $format = 'json';
|
||||
|
||||
public function index() {
|
||||
$db = \Config\Database::connect();
|
||||
$sql = "select TESTCODE, SHORTTEXT, TEXT1 from cmod.dbo.CM_DICT_TESTS";
|
||||
$query = $db->query($sql);
|
||||
$results = $query->getResultArray();
|
||||
$data['dictTests'] = $results;
|
||||
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
|
||||
public function detail($userroleid) {
|
||||
$db = \Config\Database::connect();
|
||||
$sql = "select * from cmod.dbo.CM_USERROLES where USERROLEID='$userroleid'";
|
||||
$query = $db->query($sql);
|
||||
$results = $query->getResultArray();
|
||||
$data = $results[0];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
|
||||
public function save($userroleid) {
|
||||
$userrolecode = $this->request->getPost('userrolecode');
|
||||
$userrolename = $this->request->getPost('userrolename');
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
if($userroleid == 0) { // new
|
||||
$sql = "INSERT INTO cmod.dbo.CM_USERROLES(USERROLECODE, USERROLENAME, CREATEDATE) VALUES ('$userrolecode', '$userrolename', GETDATE())";
|
||||
} else { //update
|
||||
$sql = "UPDATE cmod.dbo.CM_USERROLES set USERROLENAME='$userrolename', USERROLECODE='$userrolecode' where USERROLEID='$userroleid'";
|
||||
}
|
||||
|
||||
if( $db->query($sql) ) {
|
||||
return $this->respond(['message' => 'Save Success'],201);
|
||||
} else {
|
||||
$response = [
|
||||
'errors' => $db->errors(),
|
||||
'message' => 'Invalid Inputs'
|
||||
];
|
||||
return $this->fail($response , 409);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -39,4 +39,8 @@ class Pages extends BaseController {
|
||||
}
|
||||
return view('changePass');
|
||||
}
|
||||
|
||||
public function dictTests_index() {
|
||||
return view('dictTests_index');
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,9 +5,9 @@ $patnumber = $row['PATNUMBER'];
|
||||
$host = $row['HOSTORDERNUMBER'];
|
||||
$name = $row['NAME'];
|
||||
?>
|
||||
<div class="modal-header bg-black text-white">
|
||||
<div class="modal-header bg-soft-green text-white">
|
||||
<h1 class="modal-title fs-5" id="exampleModalToggleLabel">Detail Request </h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" ></button>
|
||||
<button type="button" class="btn-close text-white" data-bs-dismiss="modal" ></button>
|
||||
</div>
|
||||
<div class="modal-body" style='background-color:#F4F6FF'>
|
||||
<div class="row">
|
||||
|
||||
51
app/Views/dictTests_index.php
Normal file
51
app/Views/dictTests_index.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?= $this->extend('layouts/main.php') ?>
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
<div class="card border-0">
|
||||
<div class="card-body">
|
||||
<div class='card-title'>Dictionary Test</div>
|
||||
<button class='btn btn-sm btn-success mx-3 my-2' onclick='create()'><i class='bi bi-plus-circle'></i> Create</button>
|
||||
<div class="table-responsive">
|
||||
<table id="myTable" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Testcode</th>
|
||||
<th>Shorttext</th>
|
||||
<th>Text 1</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id='table-body'>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
<?= $this->section('script') ?>
|
||||
<script>
|
||||
index();
|
||||
function index() {
|
||||
let url = '<?=base_url('');?>api/dictTests/index';
|
||||
$.ajax({
|
||||
url: url,
|
||||
method: 'GET',
|
||||
success: function(response) {
|
||||
$("#table-body").html("");
|
||||
var data = response['dictTests'];
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
let editBtn = '<button class="btn btn-sm btn-success" ' + ' onclick="edit(' + data[i].TESTCODE + ')">Edit' + '</button> ';
|
||||
//let deleteBtn = '<button class="btn btn-sm btn-danger" ' + ' onclick="delete(' + data[i].USERROLEID + ')">Delete' + '</button>';
|
||||
|
||||
let datarow = '<tr class="align-middle">' +
|
||||
'<td>' + data[i].TESTCODE + '</td>' + '<td>' + data[i].SHORTTEXT+ '</td>' + '<td>' + data[i].TEXT1+ '</td>' + '<td>' + editBtn + '</td>' +
|
||||
'</tr>';
|
||||
$("#table-body").append(datarow);
|
||||
}
|
||||
},
|
||||
error: function(response) { console.log(response.responseJSON); }
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?= $this->endSection() ?>
|
||||
@ -6,7 +6,8 @@
|
||||
<a class="nav-link" href="<?=base_url();?>"><div class="sb-nav-link-icon"><i class="bi bi-speedometer"></i></div>Dashboard</a>
|
||||
<a class="nav-link" href="<?=base_url();?>changePass/"><div class="sb-nav-link-icon"><i class="bi bi-key"></i></div>Change Password</a>
|
||||
<div class="sb-sidenav-menu-heading">Administration</div>
|
||||
<a class="nav-link" href="#"> <div class="sb-nav-link-icon"><i class="bi bi-journal-album"></i></div> Dictionary Test </a>
|
||||
<a class="nav-link" href="<?=base_url();?>dictTests/"> <div class="sb-nav-link-icon"><i class="bi bi-journal-album"></i></div> Dict. Test </a>
|
||||
<a class="nav-link" href="<?=base_url();?>dictTestOrder/"> <div class="sb-nav-link-icon"><i class="bi bi-journal-album"></i></div> Dict. Test Order </a>
|
||||
<a class="nav-link" href="<?=base_url();?>users/"> <div class="sb-nav-link-icon"><i class="bi bi-person-circle"></i></div> Users </a>
|
||||
<a class="nav-link" href="<?=base_url();?>userroles/"> <div class="sb-nav-link-icon"><i class="bi bi-person-lock"></i></div> User Roles </a>
|
||||
</div>
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
<div class="card border-0">
|
||||
<div class="body-card">
|
||||
<button class='btn btn-sm btn-success mx-3 my-2' onclick='create()'><i class='bi bi-plus-circle'></i> Create New</button>
|
||||
<div class="card-body">
|
||||
<button class='btn btn-sm btn-success mx-3 my-2' onclick='create()'><i class='bi bi-plus-circle'></i> Create</button>
|
||||
<div class="table-responsive">
|
||||
<table id="table_dashboard" class="table">
|
||||
<thead>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
<?= $this->section('content') ?>
|
||||
<div class="card border-0">
|
||||
<div class="body-card">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="myTable" class="table">
|
||||
<thead>
|
||||
|
||||
168
pbmcDps_dict_tests.csv
Normal file
168
pbmcDps_dict_tests.csv
Normal file
@ -0,0 +1,168 @@
|
||||
ABS;Antibody Screening;Penyaringan Antibodi
|
||||
ACR;Albumin Creatinin Ratio;Rasio Albumin-Kreatinin
|
||||
AHBS;Anti HBs;Anti HBs
|
||||
AHCV;Anti HCV;Anti HCV
|
||||
AHIV;Anti HIV;Anti HIV
|
||||
ALB;Albumin;Albumin
|
||||
ALCO;Alcohol Test;Tes Alkohol
|
||||
ALP;Alkaline Phospatase;Alkaline Phosphatase
|
||||
AMPHE;Amphetamine;Amfetamin
|
||||
APTT;Activated Partial Thromb Time (APTT);Waktu Tromboplastin Parsial Teraktivasi (APTT)
|
||||
BARBI;Barbiturate;Barbiturat
|
||||
BAS;Basophil (Bas%);Basofil (Bas%)
|
||||
BENZO;Benzodiazepine;Benzodiazepin
|
||||
BILD;Direct Bilirubin;Bilirubin Direkt
|
||||
BILT;Total Bilirubin;Bilirubin Total
|
||||
BLOOD;Blood group for BBS;Golongan Darah untuk BBS
|
||||
BSCC;Conclusion;Kesimpulan
|
||||
BSPL;Trombocytes;Trombosit
|
||||
BSRB;Erytrocytes;Eritrosit
|
||||
BSSG;Suggestion;Saran
|
||||
BSWB;Leucocytes;Leukosit
|
||||
BT;Bleeding Time;Waktu Pendarahan
|
||||
BUN;Blood Urea Nitrogen (BUN);Nitrogen Urea Darah (BUN)
|
||||
CA;Calcium (Ca);Kalsium (Ca)
|
||||
CHOL;Total Cholesterol;Kolesterol Total
|
||||
CL;Chlorida (Cl);Klorida (Cl)
|
||||
COCAI;Cocain;Kokain
|
||||
CREA;Creatinin;Kreatinin
|
||||
CT;Clotting Time;Waktu Pembekuan
|
||||
DIFFC;Diff Count;Hitung Diferensial (Diff Count)
|
||||
DRUT;Hematology Routine;Hematologi Rutin
|
||||
ELEK;Electrolyte Test;Tes Elektrolit
|
||||
EOS;Eosinophil (Eos%);Eosinofil (Eos%)
|
||||
ESR;Erythrocyte Sedimentation Rate;Laju Endap Darah (LED)
|
||||
FAS;Feces Analysist (Stool O & P);Analisis Feses (Stool O & P)
|
||||
FCESC;Eschericia coli (Phatogen);Escherichia coli (Patogen)
|
||||
FCSAL;Salmonella sp.;Salmonella sp.
|
||||
FCSHI;Shigella sp.;Shigella sp.
|
||||
FCVIB;Vibrio cholerae;Vibrio cholerae
|
||||
FE;Ferittin;Ferritin
|
||||
FJOUR;Fjour;Fjour
|
||||
FMABL;Blood;Darah
|
||||
FMACL;Color;Warna
|
||||
FMAK;Macroscopic;Makroskopik
|
||||
FMAKO;Consistency;Konsistensi
|
||||
FMAMU;Mucos;Mukus
|
||||
FMAOI;Oily;Minyak
|
||||
FMASM;Smell;Bau
|
||||
FMIAM;Amylum;Amylum
|
||||
FMIBT;Bacteria;Bakteri
|
||||
FMICY;Cyst Amoeba;Sista Amoeba
|
||||
FMIER;Erytrocytes;Eritrosit
|
||||
FMIFI;Fibers;Serat
|
||||
FMIFT;Fat;Lemak
|
||||
FMIHO;Hook Worm Egg;Telur Cacing Hookworm
|
||||
FMIK;Microscopic;Mikroskopik
|
||||
FMILE;Leukocytes;Leukosit
|
||||
FMINE;Necator America Egg;Telur Necator Americanus
|
||||
FMIOT;Other Worm Egg;Telur Cacing Lain
|
||||
FMIOX;Oxyuris Vermicularis;Oxyuris Vermicularis
|
||||
FMIPA;Parasite;Parasit
|
||||
FMITR;Trichuris Trichura;Trichuris Trichura
|
||||
FMIVE;Vegetative Amoeba;Amoeba Vegetatif
|
||||
FOB;Fecal Occult Blood (FOB);Darah Tersembunyi dalam Feses (FOB)
|
||||
FSC;Feces Culture;Kultur Feses
|
||||
G2PP;2 Hours Posprandial Glucose;Glukosa 2 Jam Postprandial
|
||||
GDS;Random Glucose;Glukosa Acak
|
||||
GGT;Gamma GT;Gamma GT
|
||||
GLUP;Fasting Glucose;Glukosa Puasa
|
||||
GOLDA;Blood Group;Golongan Darah
|
||||
GOLRH;Blood Type and Rhesus;Tipe Darah dan Rhesus
|
||||
HAVG;IgG Anti HAV;IgG Anti HAV
|
||||
HAVM;IgM Anti HAV;IgM Anti HAV
|
||||
HAVT;Total Anti HAV;Total Anti HAV
|
||||
HBA1C;HBa1C;Hba1C
|
||||
HBSAG;HBsAg;HBsAg
|
||||
HCT;Hematocrit (HCT);Hematokrit (HCT)
|
||||
HDL;HDL Cholesterol;HDL Kolesterol
|
||||
HDT;Blood Smear;Goresan Darah (Blood Smear)
|
||||
HGB;Hemoglobin (HGB);Hemoglobin (HGB)
|
||||
IGGMT;IgG/IgM Typhoid Test;Tes IgG/IgM Typhoid
|
||||
IGGTB;IgG-TB Test;Tes IgG-TB
|
||||
K;Potassium (K);Kalium (K)
|
||||
K2;K2;K2
|
||||
KETAM;Ketamine;Ketamin
|
||||
LDL;LDL Cholesterol;LDL Kolesterol
|
||||
LYM;Lymphocyte (Lym%);Limfosit (Lym%)
|
||||
MCH;MCH;MCH
|
||||
MCHC;MCHC;MCHC
|
||||
MCV;MCV;MCV
|
||||
MDMA;K2MDMA;K2MDMA
|
||||
MON;Monocyte (Mon%);Monosit (Mon%)
|
||||
MPV;MPV;MPV
|
||||
NA;Sodium (NA);Natrium (Na)
|
||||
NEU;Neutrofil (Neu%);Neutrofil (Neu%)
|
||||
NUMIS;Packs issued;Opiat
|
||||
NUMXO;Packs X-matched;PCP
|
||||
OPIAT;Opiate;Opium
|
||||
PCP;PCP;PCP
|
||||
PCT;PCT;PCT
|
||||
PDW;PDW;PDW
|
||||
PLT;Platelet (PLT);Trombosit (PLT)
|
||||
PPT;Pregnancy Test;Tes Kehamilan
|
||||
PSA;PSA;PSA
|
||||
PT;Prothombin Time (PT);Waktu Prothrombin (PT)
|
||||
QTES;dummy test 1;Tes Dummy 1
|
||||
QTES1;qtes1;qtes1
|
||||
QTES2;Dummy test 1;Tes Dummy 1
|
||||
QTES3;dummy test 3;Tes Dummy 3
|
||||
QTES4;dummy test 4;Tes Dummy 4
|
||||
QTES5;dummy test 5;Tes Dummy 5
|
||||
QTES6;dummy test 6;Tes Dummy 6
|
||||
QTES7;dummy test 7;Tes Dummy 7
|
||||
QTES8;dummy test 8;Tes Dummy 8
|
||||
QTES9;dummy test;Tes Dummy
|
||||
QTESA;QTESA;QTESA
|
||||
QTEST;Dummy;Dummy
|
||||
QTS1;Dummy test 1;Tes Dummy 1
|
||||
QTS2;Dummy test 2;Tes Dummy 2
|
||||
RBC;Red Blood Cell (RBC);Sel Darah Merah (RBC)
|
||||
RDWCV;RDW - CV;RDW-CV
|
||||
RDWSD;RDW - SD;RDW-SD
|
||||
RH;Rhesus;Rhesus
|
||||
SALAH;Salmonella Paratyphi AH;Salmonella Paratyphi AH
|
||||
SALAO;Salmonella Paratyphi AO;Salmonella Paratyphi AO
|
||||
SALBH;Salmonella Paratyphi BH;Salmonella Paratyphi BH
|
||||
SALBO;Salmonella Paratyphi BO;Salmonella Paratyphi BO
|
||||
SALCH;Salmonella Paratyphi CH;Salmonella Paratyphi CH
|
||||
SALCO;Salmonella Paratyphi CO;Salmonella Paratyphi CO
|
||||
SALTH;Salmonella Typhi H;Salmonella Typhi H
|
||||
SALTO;Salmonella Typhi O;Salmonella Typhi O
|
||||
SGOT;SGOT (AST);SGOT (AST)
|
||||
SGPT;SGPT (ALT);SGPT (ALT)
|
||||
SI;Serum Iron;Serum Besi (Serum Iron)
|
||||
SPBTA;Sputum BTA;BTA Sputum
|
||||
SWTH;Throat Swab;Swab Tenggorokan
|
||||
TEST;ref. test;Tes Referensi
|
||||
TG;Triglyseride;Trigliserida
|
||||
THC;THC;THC
|
||||
TIBC;TIBC;TIBC
|
||||
TOPO;TOPO;TOPO
|
||||
TP;Total Protein (TP);Protein Total (TP)
|
||||
TRANS;Transferrin Saturation;Saturasi Transferrin
|
||||
TSH;TSH;TSH
|
||||
UIBC;UIBC;UIBC
|
||||
UL;Urinalysis;Urinalisis
|
||||
UMABI;Urine Bilirubin;Bilirubin Urin
|
||||
UMABJ;Density;Kepadatan
|
||||
UMADR;Urine Blood;Darah Urin
|
||||
UMAGU;Urine Glucose;Glukosa Urin
|
||||
UMAK;Macroscopic;Makroskopik
|
||||
UMAKT;Urine Ketones;Keton Urin
|
||||
UMALE;Urine Leukocyte;Leukosit Urin
|
||||
UMANI;Urine Nitrites;Nitrit Urin
|
||||
UMAPH;pH;pH
|
||||
UMAPT;Protein;Protein Urin
|
||||
UMAUR;Urine Urobilinogen;Urobilinogen
|
||||
UMAWR;Color;Warna
|
||||
UMIER;Sediment Erythrocyte;Sedimen Eritrosit
|
||||
UMIK;Microscopic;Mikroskopik
|
||||
UMIKR;Crystal;Kristal
|
||||
UMILE;Sediment Leukocyte;Sedimen Leukosit
|
||||
UMILN;Others Sediment;Sedimen Lainnya
|
||||
UMISL;Sediment Epithelia Cells;Sedimen Sel Epitel
|
||||
URIC;Uric Acid;Asam Urat
|
||||
VDRL;VDRL/Anti TP;VDRL/Anti-TP
|
||||
WBC;White Blood Cell (WBC);Sel Darah Putih (WBC)
|
||||
WIDAL;Widal Test;Tes Widal
|
||||
|
Loading…
x
Reference in New Issue
Block a user