/*
SQLyog Enterprise - MySQL GUI v8.12 
MySQL - 5.5.5-10.1.32-MariaDB : Database - rssa_pintar
*********************************************************************
*/


/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

CREATE DATABASE /*!32312 IF NOT EXISTS*/`rssa_pintar` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `rssa_pintar`;

/*Table structure for table `laporan_proses_history` */

DROP TABLE IF EXISTS `laporan_proses_history`;

CREATE TABLE `laporan_proses_history` (
  `lph_tabel` bigint(20) NOT NULL AUTO_INCREMENT,
  `lph_keterangan` varchar(50) DEFAULT NULL,
  `lph_query` text,
  `lph_datetime` datetime DEFAULT NULL,
  `lph_user_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`lph_tabel`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

/*Data for the table `laporan_proses_history` */

/*Table structure for table `master_laboratorium` */

DROP TABLE IF EXISTS `master_laboratorium`;

CREATE TABLE `master_laboratorium` (
  `ml_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `ml_nama` varchar(50) DEFAULT NULL,
  `ml_keterangan` text,
  `ml_status` int(1) DEFAULT NULL,
  PRIMARY KEY (`ml_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

/*Data for the table `master_laboratorium` */

insert  into `master_laboratorium`(`ml_id`,`ml_nama`,`ml_keterangan`,`ml_status`) values (1,'HEMATOLOGI','',1),(2,'URINE','',1),(3,'TES KEHAMILAN','',1),(4,'DIABETES MELITUS','',1),(5,'FAAL GINJAL','',1),(6,'FAAL HATI','',1),(7,'JANTUNG','',1),(8,'IMUNOSEROLOGI','',1),(9,'PARASITOLOGI','',1),(10,'ELEKTROLIT & GAS DARAH','',1);

/*Table structure for table `master_laboratorium_detail` */

DROP TABLE IF EXISTS `master_laboratorium_detail`;

CREATE TABLE `master_laboratorium_detail` (
  `mld_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mld_nama` varchar(50) DEFAULT NULL,
  `mld_keterangan` text,
  `mld_status` int(1) DEFAULT NULL,
  `mld_ml_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`mld_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;

/*Data for the table `master_laboratorium_detail` */

insert  into `master_laboratorium_detail`(`mld_id`,`mld_nama`,`mld_keterangan`,`mld_status`,`mld_ml_id`) values (1,'Darah Lengkap (CBC 5 Diff)','',1,1),(2,'LED','',1,1),(3,'APTT','',1,1),(4,'PT','',1,1),(5,'Golongan Darah ABO','',1,1),(6,'Golongan Darah Rhesus','',1,1),(7,'Urine Lengkap','Kimia Stik/Kimia Urine,Sedimen Miskroskopis',1,2),(8,'Kimia Stik','',1,2),(9,'Sedimen Mikroskopis','',1,2),(10,'Tes Kehamilan ( b-HCG ) urine','',1,3),(11,'Tes Kehamilan ( b-HCG ) Titrasi urine','',1,3),(12,'Glukosa POCT','',1,4),(13,'Glukosa Darah Sewaktu','',1,4),(14,'Ureum','',1,5),(15,'Kreatinin','',1,5),(16,'Albumin','',1,6),(17,'SGOT','',1,6),(18,'SGPT','',1,6),(19,'Bilirubin Total','',1,6),(20,'Bilirubin Direk','',1,6),(21,'Troponin I','',1,7),(22,'CKMB','',1,7),(23,'IgM Anti - Dengue','',1,8),(24,'NS1 Ag Dengue','',1,8),(25,'Anti - HIV ICT','',1,8),(26,'CRP','',1,8),(27,'Sars COV-2 Eclia','',1,8),(28,'VVP','',1,9),(29,'Natrium, Kalium, Klorida','',1,10),(30,'Analisis Gas Darah ( Hb =......g/dl, t = ...... C','',1,10);

/*Table structure for table `master_menu` */

DROP TABLE IF EXISTS `master_menu`;

CREATE TABLE `master_menu` (
  `mm_id` int(11) NOT NULL AUTO_INCREMENT,
  `mm_nama` varchar(50) DEFAULT NULL,
  `mm_link` varchar(50) DEFAULT NULL,
  `mm_icon` varchar(50) DEFAULT NULL,
  `mm_parent` int(11) DEFAULT NULL,
  `mm_level` int(11) DEFAULT NULL,
  `mm_action` varchar(15) DEFAULT NULL,
  `mm_aktif` int(11) DEFAULT NULL,
  `mm_urutan` int(2) DEFAULT NULL,
  PRIMARY KEY (`mm_id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;

/*Data for the table `master_menu` */

insert  into `master_menu`(`mm_id`,`mm_nama`,`mm_link`,`mm_icon`,`mm_parent`,`mm_level`,`mm_action`,`mm_aktif`,`mm_urutan`) values (1,'Dashboard',NULL,'fa fa-dashboard',NULL,1,NULL,1,1),(2,'Setting','#','fa fa-gears',NULL,1,NULL,1,2),(3,'Hak Akses','ps_hakakses',NULL,2,2,'true',1,3),(4,'User Login','ps_userlogin',NULL,2,2,'true',1,4),(5,'Master','#','fa fa-database',NULL,1,NULL,1,5),(6,'Pasien','ps_pasien',NULL,5,2,'true',1,6),(7,'Dokter','ps_dokter',NULL,5,2,'true',1,8),(8,'Spesialis','ps_spesialis',NULL,5,2,'true',1,9),(9,'Ruang','ps_ruangan',NULL,5,2,'true',1,10),(10,'Resume','ps_resume','fa fa-file-text-o',NULL,1,'true',1,13),(11,'Pem. Penunjang','ps_pemeriksaan','fa fa-stethoscope',NULL,1,'true',1,14),(12,'Imaging','ps_imaging','fa fa-share-alt',NULL,1,'true',0,15),(13,'Jadwal Dokter','ps_jadwaldokter','fa fa-calendar',NULL,1,'true',1,16),(14,'Profile','ps_profile','fa fa-user-md',NULL,1,'true',1,17),(15,'Petugas','ps_petugas',NULL,5,2,'true',1,7),(16,'Laboratorium','ps_laboratorium',NULL,5,2,'true',1,11),(17,'Radiologi','ps_radiologi',NULL,5,2,'true',1,12),(18,'Data Penunjang','ps_datapenunjang','fa fa-medkit',NULL,1,NULL,1,18),(19,'Data Resume','ps_dataresume','fa fa-ambulance',NULL,1,NULL,1,19);

/*Table structure for table `master_radiologi` */

DROP TABLE IF EXISTS `master_radiologi`;

CREATE TABLE `master_radiologi` (
  `mro_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mro_nama` varchar(50) DEFAULT NULL,
  `mro_keterangan` text,
  `mro_status` int(1) DEFAULT NULL,
  PRIMARY KEY (`mro_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

/*Data for the table `master_radiologi` */

insert  into `master_radiologi`(`mro_id`,`mro_nama`,`mro_keterangan`,`mro_status`) values (1,'DSA','',1),(2,'USG','',1),(3,'MRI','',1),(4,'CT Scan','',1),(5,'FOTO KONTRAS','',1),(6,'FOTO NON KONTRAS','',1);

/*Table structure for table `master_radiologi_detail` */

DROP TABLE IF EXISTS `master_radiologi_detail`;

CREATE TABLE `master_radiologi_detail` (
  `mrod_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mrod_nama` varchar(50) DEFAULT NULL,
  `mrod_keterangan` text,
  `mrod_status` int(1) DEFAULT NULL,
  `mrod_mro_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`mrod_id`)
) ENGINE=InnoDB AUTO_INCREMENT=195 DEFAULT CHARSET=latin1;

/*Data for the table `master_radiologi_detail` */

insert  into `master_radiologi_detail`(`mrod_id`,`mrod_nama`,`mrod_keterangan`,`mrod_status`,`mrod_mro_id`) values (1,'Lymphangiography','',1,1),(2,'TACE','',1,1),(3,'Embolisasi','',1,1),(4,'DSA','',1,1),(5,'Arteriografi','',1,1),(6,'Skleroterapi','',1,1),(7,'PTBD','',1,1),(8,'Drainase Abses','',1,1),(9,'Angioplasty','',1,1),(10,'Repair PTBD','',1,1),(11,'Tuntunan Biopsi TTNA','',1,2),(12,'Tuntunan Biopsi Ginjal','',1,2),(13,'Tuntunan FNAB','',1,2),(14,'Doppler Penile','',1,2),(15,'Doppler Abdomen','',1,2),(16,'Doppler Carotis','',1,2),(17,'Doppler Renal','',1,2),(18,'Doppler Vena Ekstremitas Superior Sinistra','',1,2),(19,'Doppler Vena Ekstremitas Superior Dextra','',1,2),(20,'Doppler Arteri Ekstremitas Superior Sinistra','',1,2),(21,'Doppler Arteri Ekstremitas Superior Dextra','',1,2),(22,'Doppler Vena Ekstremitas Inferior Sinistra','',1,2),(23,'Doppler Vena Ekstremitas Inferior Dextra','',1,2),(24,'Doppler Arteri Ekstremitas Inferior Sinistra','',1,2),(25,'Doppler Arteri Ekstremitas Inferior Dextra','',1,2),(26,'Poplitea','',1,2),(27,'Hip','',1,2),(28,'Piriformis','',1,2),(29,'Gluteus','',1,2),(30,'Ankle Sinistra','',1,2),(31,'Ankle Dextra','',1,2),(32,'Femur Sinistra','',1,2),(33,'Femur Dextra','',1,2),(34,'Genu Sinistra','',1,2),(35,'Genu Dextra','',1,2),(36,'Wrist Sinistra','',1,2),(37,'Wrist Dextra','',1,2),(38,'Manus Sinistra','',1,2),(39,'Manus Dextra','',1,2),(40,'Elbow Sinistra','',1,2),(41,'Elbow Dextra','',1,2),(42,'Shoulder Sinistra','',1,2),(43,'Shoulder Dextra','',1,2),(44,'Muskuloskeletal Regio ...','',1,2),(45,'Colli','',1,2),(46,'Small Part','',1,2),(47,'Jantung','',1,2),(48,'Transrectal','',1,2),(49,'Transvaginal','',1,2),(50,'Facialis','',1,2),(51,'Submandibula','',1,2),(52,'Buccal','',1,2),(53,'Kepala','',1,2),(54,'Urogenital','',1,2),(55,'Inguinal','',1,2),(56,'Testis/Inguinal','',1,2),(57,'Thorax Pro Marker','',1,2),(58,'Mammae','',1,2),(59,'Kandungan','',1,2),(60,'Urologi','',1,2),(61,'Abdomen Pro Marker','',1,2),(62,'Abdomen','',1,2),(63,'FAST','',1,2),(64,'MRI Angiografi ...','',1,3),(65,'Ekstremitas Regio ...','',1,3),(66,'Shoulder Dengan Kontras','',1,3),(67,'Shoulder Tanpa Kontras','',1,3),(68,'Antebrachii Dengan Kontras','',1,3),(69,'Antebrachii Tanpa Kontras','',1,3),(70,'Humerus Dengan Kontras','',1,3),(71,'Humerus Tanpa Kontras','',1,3),(72,'Ankle Dengan Kontras','',1,3),(73,'Ankle Tanpa Kontras','',1,3),(74,'Cruris Dengan Kontras','',1,3),(75,'Cruris Tanpa Kontras','',1,3),(76,'Genu Dengan Kontras','',1,3),(77,'Genu Tanpa Kontras','',1,3),(78,'Femur Dengan Kontras','',1,3),(79,'Femur Tanpa Kontras','',1,3),(80,'Wholespine Dengan Kontras','',1,3),(81,'Wholespine Tanpa Kontras','',1,3),(82,'Lumbosacral Dengan Kontras','',1,3),(83,'Lumbosacral Tanpa Kontras','',1,3),(84,'Thoracolumbal Dengan Kontras','',1,3),(85,'Thoracolumbal Tanpa Kontras','',1,3),(86,'Thoracal Dengan Kontras','',1,3),(87,'Thoracal Tanpa Kontras','',1,3),(88,'Cervical Dengan Kontras','',1,3),(89,'Cervical Tanpa kontras','',1,3),(90,'Cardiac','',1,3),(91,'Thorax Dengan Kontras','',1,3),(92,'Thorax Tanpa Kontras','',1,3),(93,'Breast Dengan Kontras','',1,3),(94,'Breast Tanpa Kontras','',1,3),(95,'MRCP','',1,3),(96,'Pelvic Dengan Kontras','',1,3),(97,'Pelvic Tanpa Kontras','',1,3),(98,'Abdomen Dengan Kontras','',1,3),(99,'Abdomen Tanpa Kontras','',1,3),(100,'Abdominopelvic','',1,3),(101,'Spectroscopy','',1,3),(102,'Orbita Dengan Kontras','',1,3),(103,'Orbita Tanpa Kontras','',1,3),(104,'Kepala + MRA Dengan Kontras','',1,3),(105,'Kepala + MRA Tanpa Kontras','',1,3),(106,'Kepala Dengan Kontras','',1,3),(107,'Kepala Tanpa Kontras','',1,3),(108,'Lain-Lain ...','',1,4),(109,'Thoracolumbal','',1,4),(110,'Lumbosacral','',1,4),(111,'Thoracal','',1,4),(112,'Cervical','',1,4),(113,'Angiografi Renal','',1,4),(114,'Pulmonary Angiografi','',1,4),(115,'Cardiac + Coronary','',1,4),(116,'Cardiac','',1,4),(117,'Calcaneus','',1,4),(118,'Stonografi','',1,4),(119,'Pelvic Dengan Kontras','',1,4),(120,'Pelvic Tanpa Kontras','',1,4),(121,'Abdomen Dengan Kontras','',1,4),(122,'Abdomen Tanpa Kontras','',1,4),(123,'Thorax Dengan Kontras','',1,4),(124,'Thorax Tanpa Kontras','',1,4),(125,'Fess','',1,4),(126,'HRCT Mastoid','',1,4),(127,'Kepala Leher Dengan Kontras','',1,4),(128,'Kepala Leher Tanpa Kontras','',1,4),(129,'Kepala Dengan Kontras','',1,4),(130,'Kepala Tanpa Kontras','',1,4),(131,'Ductulografi','',1,5),(132,'Mammografi','',1,5),(133,'Genitografi','',1,5),(134,'Appendicogram','',1,5),(135,'Sialografi','',1,5),(136,'Esofagografi','',1,5),(137,'Barium Follow Through','',1,5),(138,'Barium Intake','',1,5),(139,'Dacriografi','',1,5),(140,'Venografi Regio ...','',1,5),(141,'Arteriografi Regio ...','',1,5),(142,'Fistulografi Regio ...','',1,5),(143,'Reflux Study','',1,5),(144,'Cholangiogrfai','',1,5),(145,'UGI Study','',1,5),(146,'HSG','',1,5),(147,'APG','',1,5),(148,'BVCUG','',1,5),(149,'Lopografi Segmen ...','',1,5),(150,'Uretrografi','',1,5),(151,'Cystografi','',1,5),(152,'Colon Inloop Teknik Hirsprung','',1,5),(153,'Colon Inloop','',1,5),(154,'IVU','',1,5),(155,'Lain-Lain ...','',1,6),(156,'Bone Survey','',1,6),(157,'Pedis AP/Lat','',1,6),(158,'Ankle AP/Lat','',1,6),(159,'Cruris AP/Lat','',1,6),(160,'Genu AP/Lat/Skyline View','',1,6),(161,'Genu AP/Lat','',1,6),(162,'Femur AP/Lat','',1,6),(163,'Manus AP/Oblique','',1,6),(164,'Antebrachii AP/Lat','',1,6),(165,'Elbow AP/Lat','',1,6),(166,'Humerus AP/Lat','',1,6),(167,'Clavicula AP','',1,6),(168,'Shoulder AP','',1,6),(169,'Scannogram','',1,6),(170,'Dinamic View','',1,6),(171,'Scoliosis Series','',1,6),(172,'Lumbosacral Ap/Lat/Oblique','',1,6),(173,'Lumbosacral Ap/Lat','',1,6),(174,'Thoracolumbal AP/Lat','',1,6),(175,'Thoracal AP/Lat','',1,6),(176,'Cervical AP/Lat/Oblique','',1,6),(177,'Cervical Ap/Lat','',1,6),(178,'Skull Lateral Soft Tissue','',1,6),(179,'TMJ Open Closed Mouth','',1,6),(180,'Schuller D/S','',1,6),(181,'Water\'s','',1,6),(182,'Skull AP/Lat','',1,6),(183,'Cephalometry','',1,6),(184,'Pelvic AP','',1,6),(185,'Babygram','',1,6),(186,'Abdomen 3 Posisi','',1,6),(187,'Abdomen 2 Posisi','',1,6),(188,'BOF / BNO','',1,6),(189,'Thoracoabdominal','',1,6),(190,'Thorax Tangenrial View','',1,6),(191,'Thorax AP/Lat Decu','',1,6),(192,'Thorax Top Lordotik','',1,6),(193,'Thorax PA/Lat','',1,6),(194,'Thorax PA','',1,6);

/*Table structure for table `master_ruang` */

DROP TABLE IF EXISTS `master_ruang`;

CREATE TABLE `master_ruang` (
  `mr_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mr_nama` varchar(50) DEFAULT NULL,
  `mr_kode` varchar(10) DEFAULT NULL,
  `mr_status` int(1) DEFAULT NULL,
  `mr_pelayanan` int(1) DEFAULT NULL,
  PRIMARY KEY (`mr_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

/*Data for the table `master_ruang` */

insert  into `master_ruang`(`mr_id`,`mr_nama`,`mr_kode`,`mr_status`,`mr_pelayanan`) values (1,'Lawu','7 A',1,3),(2,'Instalasi Gawat Darurat - Reguler','IGD',1,1),(3,'Instalasi Gawat Darurat - Incovid','IGDCO19',1,1),(4,'POLIKLINIK JANTUNG','JANTUNG',1,2),(5,'POLIKLINIK THT','THT',1,2);

/*Table structure for table `master_spesialis` */

DROP TABLE IF EXISTS `master_spesialis`;

CREATE TABLE `master_spesialis` (
  `ms_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `ms_nama` varchar(50) DEFAULT NULL,
  `ms_kode` varchar(5) DEFAULT NULL,
  `ms_status` int(1) DEFAULT NULL,
  PRIMARY KEY (`ms_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

/*Data for the table `master_spesialis` */

insert  into `master_spesialis`(`ms_id`,`ms_nama`,`ms_kode`,`ms_status`) values (1,'Bedah Urologi','BU',1),(2,'Jantung / Cardio','JT',1),(4,'Bedah Anak','BA',1),(5,'THT','THT',1);

/*Table structure for table `master_tipeuser` */

DROP TABLE IF EXISTS `master_tipeuser`;

CREATE TABLE `master_tipeuser` (
  `mt_id` int(11) NOT NULL AUTO_INCREMENT,
  `mt_nama` varchar(20) DEFAULT NULL,
  `mt_status` int(1) DEFAULT NULL,
  PRIMARY KEY (`mt_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

/*Data for the table `master_tipeuser` */

insert  into `master_tipeuser`(`mt_id`,`mt_nama`,`mt_status`) values (1,'Super Admin',1),(2,'Admin',1),(4,'Petugas',1),(5,'Dokter',1),(6,'Pasien',1);

/*Table structure for table `master_user` */

DROP TABLE IF EXISTS `master_user`;

CREATE TABLE `master_user` (
  `mu_id` int(11) NOT NULL AUTO_INCREMENT,
  `mu_nama_lengkap` varchar(50) DEFAULT NULL,
  `mu_nama_user` varchar(50) DEFAULT NULL,
  `mu_password` varchar(50) DEFAULT NULL,
  `mu_tipeuser_id` int(11) DEFAULT NULL,
  `mu_NIK` varchar(20) DEFAULT NULL,
  `mu_alamat_KTP` varchar(50) DEFAULT NULL,
  `mu_alamat_domisili` varchar(50) DEFAULT NULL,
  `mu_telepon_1` varchar(20) DEFAULT NULL,
  `mu_telepon_2` varchar(20) DEFAULT NULL,
  `mu_tanggal_lahir` date DEFAULT NULL,
  `mu_gol_darah` int(1) DEFAULT NULL COMMENT '<option value="1">A</option><option value="2">B</option><option value="3">AB</option><option value="4">O</option>',
  `mu_berat_badan` int(3) DEFAULT NULL,
  `mu_tinggi_badan` int(3) DEFAULT NULL,
  `mu_warna_kulit` int(1) DEFAULT NULL COMMENT '<option value="1">Putih</option><option value="2">Kuning Langsat</option><option value="3">Sawo Matang</option><option value="4">Coklat Kehitaman</option><option value="5">Hitam Gelap</option>',
  `mu_gambar` varchar(20) DEFAULT NULL,
  `mu_created_date` datetime DEFAULT NULL,
  `mu_status` int(1) DEFAULT NULL,
  `mu_tipe_user_id` bigint(20) DEFAULT NULL,
  `mu_spesialis_id` bigint(20) DEFAULT NULL,
  `mu_no_rekamedik` varchar(20) DEFAULT NULL,
  `mu_jenis_kelamin` int(1) DEFAULT NULL COMMENT '<option value="1">Laki-laki</option><option value="2">Perempuan</option>',
  `mu_dpjp_ket` int(1) DEFAULT NULL,
  `mu_petugas_penunjang` int(1) DEFAULT NULL COMMENT '1:radiologi, 2:lab, 3:lab pa, 4:lab mikro',
  PRIMARY KEY (`mu_id`),
  KEY `user_tipeuser_FK` (`mu_tipeuser_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

/*Data for the table `master_user` */

insert  into `master_user`(`mu_id`,`mu_nama_lengkap`,`mu_nama_user`,`mu_password`,`mu_tipeuser_id`,`mu_NIK`,`mu_alamat_KTP`,`mu_alamat_domisili`,`mu_telepon_1`,`mu_telepon_2`,`mu_tanggal_lahir`,`mu_gol_darah`,`mu_berat_badan`,`mu_tinggi_badan`,`mu_warna_kulit`,`mu_gambar`,`mu_created_date`,`mu_status`,`mu_tipe_user_id`,`mu_spesialis_id`,`mu_no_rekamedik`,`mu_jenis_kelamin`,`mu_dpjp_ket`,`mu_petugas_penunjang`) values (1,'Ragil Bayu Nugroho','hamigaki','afa7f6fb4dd3bb49e6960b6f4c74ce3d',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL),(2,'Admin','admin','afa7f6fb4dd3bb49e6960b6f4c74ce3d',2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL),(3,'Dokter','dokter','cdca96f7ae799f207d8f94b016c7c5be',2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL),(4,'kadek','kadek','9bd0a034baadfaddd3a89af39bc4320b',4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,1,NULL,NULL),(5,'dr. BESUT DARYANTO, Sp. B, Sp.U ','besut','e99a18c428cb38d5f260853678922e03',5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,1,NULL,1,1,NULL),(6,'dr. BUDI SATRIJO, SpJP','budi','e99a18c428cb38d5f260853678922e03',5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,2,NULL,1,1,NULL),(7,'dr. SOEHARTONO, Sp. T.HT.K.L','soehartono','e99a18c428cb38d5f260853678922e03',5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,5,NULL,1,1,NULL),(8,'Riyanto','riyanto','e10adc3949ba59abbe56e057f20f883e',6,'351903 071078 0003','Plemahan besar 67d ,Tegalsari kedungduro Surabaya ','Plemahan besar 67d ,Tegalsari kedungduro Surabaya ','083166463023','','1969-06-17',2,120,170,2,NULL,NULL,1,NULL,NULL,'11523220',1,NULL,NULL),(9,'Putri Budianto','putri','4093fed663717c843bea100d17fb67c8',6,'350710 650503 0002','perum bumi banjararum asri blok AR 4 RT 10 RW 11 d','perum bumi banjararum asri blok AR 4 RT 10 RW 11 d','08816255804','08816255805','1997-10-30',4,60,165,1,NULL,NULL,1,NULL,NULL,'11511540',2,NULL,NULL),(10,'Hidajat Santoso','hidajat','0f8699e12f5ef935045169a536731f6c',6,'350724 311069 0002','perum puri kartika indah A no 11 rt 05 rw 14','perum puri kartika indah A no 11 rt 05 rw 14','081232577005','081232577006','1989-08-24',1,90,160,4,NULL,NULL,1,NULL,NULL,'11503702',1,NULL,NULL),(12,'Budi Santoso','budisantoso','e99a18c428cb38d5f260853678922e03',4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,1,NULL,NULL),(13,'Moch. Santoso','perawat','5d6a514ee02a5fc910dee69cc07017cc',4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,1,NULL,NULL),(14,'dr. BEATRICE TANUDJAJA','ppds','e99a18c428cb38d5f260853678922e03',5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,5,NULL,2,2,NULL),(15,'dr. YANTO RAHARJO','ppds2','e99a18c428cb38d5f260853678922e03',5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,1,NULL,1,2,NULL),(16,'dr. Anton ','ppds1','e99a18c428cb38d5f260853678922e03',5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,2,NULL,1,2,NULL),(17,'Petugas Radiologi','radiologi','e10adc3949ba59abbe56e057f20f883e',4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,1,NULL,1),(18,'Petugas Laboratorium','laborat','e10adc3949ba59abbe56e057f20f883e',4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,1,NULL,2);

/*Table structure for table `master_user_menu` */

DROP TABLE IF EXISTS `master_user_menu`;

CREATE TABLE `master_user_menu` (
  `mum_id` int(11) NOT NULL AUTO_INCREMENT,
  `mum_tambah` varchar(10) DEFAULT NULL,
  `mum_ubah` varchar(10) DEFAULT NULL,
  `mum_hapus` varchar(10) DEFAULT NULL,
  `mum_lihat` varchar(10) DEFAULT NULL,
  `mum_tipeuser_id` int(11) DEFAULT NULL,
  `mum_menu_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`mum_id`),
  KEY `usermenu_tipeuser_FK` (`mum_tipeuser_id`),
  KEY `usermenu_menu_FK` (`mum_menu_id`)
) ENGINE=InnoDB AUTO_INCREMENT=221 DEFAULT CHARSET=utf8;

/*Data for the table `master_user_menu` */

insert  into `master_user_menu`(`mum_id`,`mum_tambah`,`mum_ubah`,`mum_hapus`,`mum_lihat`,`mum_tipeuser_id`,`mum_menu_id`) values (83,NULL,NULL,NULL,NULL,2,1),(84,NULL,NULL,NULL,NULL,2,2),(85,'tambah','ubah',NULL,'lihat',2,4),(86,NULL,NULL,NULL,NULL,3,1),(87,NULL,NULL,NULL,NULL,3,2),(88,NULL,NULL,NULL,'lihat',3,3),(89,NULL,NULL,NULL,'lihat',3,4),(134,NULL,NULL,NULL,NULL,5,1),(135,NULL,NULL,NULL,NULL,5,5),(136,'tambah',NULL,NULL,'lihat',5,6),(137,'tambah',NULL,NULL,'lihat',5,18),(138,'tambah',NULL,NULL,'lihat',5,7),(139,'tambah',NULL,NULL,'lihat',5,8),(140,'tambah',NULL,NULL,'lihat',5,9),(141,'tambah','ubah',NULL,'lihat',5,10),(142,'tambah','ubah',NULL,'lihat',5,11),(143,'tambah','ubah',NULL,'lihat',5,12),(144,'tambah','ubah',NULL,'lihat',5,13),(145,'tambah','ubah',NULL,'lihat',5,14),(146,NULL,NULL,NULL,NULL,4,1),(147,NULL,NULL,NULL,NULL,4,2),(148,'tambah',NULL,NULL,'lihat',4,3),(149,'tambah','ubah',NULL,'lihat',4,4),(150,NULL,NULL,NULL,'lihat',4,5),(151,'tambah','ubah',NULL,'lihat',4,6),(152,'tambah','ubah',NULL,'lihat',4,18),(153,'tambah','ubah',NULL,'lihat',4,7),(154,'tambah','ubah',NULL,'lihat',4,8),(155,'tambah','ubah',NULL,'lihat',4,9),(156,'tambah','ubah','hapus','lihat',4,10),(157,'tambah','ubah',NULL,'lihat',4,11),(158,'tambah','ubah',NULL,'lihat',4,12),(159,'tambah','ubah',NULL,'lihat',4,13),(160,'tambah','ubah',NULL,'lihat',4,14),(194,NULL,NULL,NULL,NULL,1,1),(195,NULL,NULL,NULL,NULL,1,2),(196,'tambah','ubah','hapus','lihat',1,3),(197,'tambah','ubah','hapus','lihat',1,4),(198,NULL,NULL,NULL,'lihat',1,5),(199,'tambah','ubah','hapus','lihat',1,6),(200,'tambah','ubah','hapus','lihat',1,15),(201,'tambah','ubah','hapus','lihat',1,7),(202,'tambah','ubah','hapus','lihat',1,8),(203,'tambah','ubah','hapus','lihat',1,9),(204,'tambah','ubah','hapus','lihat',1,16),(205,'tambah','ubah','hapus','lihat',1,17),(206,'tambah','ubah','hapus','lihat',1,10),(207,'tambah','ubah','hapus','lihat',1,11),(208,'tambah','ubah','hapus','lihat',1,12),(209,'tambah','ubah','hapus','lihat',1,13),(210,'tambah','ubah','hapus','lihat',1,14),(211,NULL,NULL,NULL,'lihat',1,21),(212,NULL,NULL,NULL,'lihat',1,22),(217,NULL,NULL,NULL,'lihat',6,13),(218,NULL,'ubah',NULL,'lihat',6,14),(219,NULL,NULL,NULL,'lihat',6,18),(220,NULL,NULL,NULL,'lihat',6,19);

/*Table structure for table `proses_file_pemeriksaan` */

DROP TABLE IF EXISTS `proses_file_pemeriksaan`;

CREATE TABLE `proses_file_pemeriksaan` (
  `pfp_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `pfp_nama` varchar(50) DEFAULT NULL,
  `pfp_pp_id` bigint(20) DEFAULT NULL,
  `pfp_ket` int(1) DEFAULT NULL COMMENT '1:radiologi, 2:lab, 3:lab pa, 4:lab mikro',
  `pfp_keterangan` text,
  `pfp_datetime` datetime DEFAULT NULL,
  PRIMARY KEY (`pfp_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

/*Data for the table `proses_file_pemeriksaan` */

insert  into `proses_file_pemeriksaan`(`pfp_id`,`pfp_nama`,`pfp_pp_id`,`pfp_ket`,`pfp_keterangan`,`pfp_datetime`) values (1,'11523220_220425090648.jpg',1,1,'tes','2022-04-25 21:06:48');

/*Table structure for table `proses_jadwal_dokter` */

DROP TABLE IF EXISTS `proses_jadwal_dokter`;

CREATE TABLE `proses_jadwal_dokter` (
  `pjd_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `pjd_date` date DEFAULT NULL,
  `pjd_time_mulai` time DEFAULT NULL,
  `pjd_time_selesai` time DEFAULT NULL,
  `pjd_user_dokter_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`pjd_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

/*Data for the table `proses_jadwal_dokter` */

insert  into `proses_jadwal_dokter`(`pjd_id`,`pjd_date`,`pjd_time_mulai`,`pjd_time_selesai`,`pjd_user_dokter_id`) values (1,'2022-01-01','01:00:00',NULL,5),(2,'2022-01-02','02:00:00',NULL,5),(3,'2022-01-03','03:00:00',NULL,5),(4,'2022-01-04','04:00:00',NULL,7),(5,'2022-01-04','04:00:00',NULL,5),(6,'2022-01-07','07:03:00',NULL,7);

/*Table structure for table `proses_pemeriksaan` */

DROP TABLE IF EXISTS `proses_pemeriksaan`;

CREATE TABLE `proses_pemeriksaan` (
  `pp_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `pp_date_pemeriksaan` datetime DEFAULT NULL,
  `pp_date_hasil` datetime DEFAULT NULL,
  `pp_status` int(1) DEFAULT NULL,
  `pp_user_dokter_id` bigint(20) DEFAULT NULL,
  `pp_user_pasien_id` bigint(20) DEFAULT NULL,
  `pp_lab_pk` int(1) DEFAULT NULL,
  `pp_lab_mikro` int(1) DEFAULT NULL,
  `pp_lab_pa` int(1) DEFAULT NULL,
  `pp_radiologi` int(1) DEFAULT NULL,
  `pp_ruang_id` bigint(20) DEFAULT NULL,
  `pp_spesialis_id` bigint(20) DEFAULT NULL,
  `pp_user_dokter_dpjp_id` bigint(20) DEFAULT NULL,
  `pp_jenis_pelayanan` bigint(20) DEFAULT NULL,
  `pp_keterangan` text,
  PRIMARY KEY (`pp_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

/*Data for the table `proses_pemeriksaan` */

insert  into `proses_pemeriksaan`(`pp_id`,`pp_date_pemeriksaan`,`pp_date_hasil`,`pp_status`,`pp_user_dokter_id`,`pp_user_pasien_id`,`pp_lab_pk`,`pp_lab_mikro`,`pp_lab_pa`,`pp_radiologi`,`pp_ruang_id`,`pp_spesialis_id`,`pp_user_dokter_dpjp_id`,`pp_jenis_pelayanan`,`pp_keterangan`) values (1,'2022-04-25 14:07:00','2022-04-25 21:06:48',1,5,8,1,1,1,2,4,2,6,2,NULL),(2,'2022-04-24 18:41:00',NULL,1,5,8,1,0,0,1,3,1,5,1,NULL);

/*Table structure for table `proses_resume` */

DROP TABLE IF EXISTS `proses_resume`;

CREATE TABLE `proses_resume` (
  `pr_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `pr_diagnosa` text,
  `pr_tindakan` text,
  `pr_keterangan` text,
  `pr_date_resume` datetime DEFAULT NULL,
  `pr_status` int(1) DEFAULT NULL,
  `pr_user_dokter_id` bigint(20) DEFAULT NULL,
  `pr_user_pasien_id` bigint(20) DEFAULT NULL,
  `pr_ruang_id` bigint(20) DEFAULT NULL,
  `pr_spesialis_id` bigint(20) DEFAULT NULL,
  `pr_user_dokter_dpjp_id` bigint(20) DEFAULT NULL,
  `pr_jenis_pelayanan` int(1) DEFAULT NULL,
  PRIMARY KEY (`pr_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;

/*Data for the table `proses_resume` */

insert  into `proses_resume`(`pr_id`,`pr_diagnosa`,`pr_tindakan`,`pr_keterangan`,`pr_date_resume`,`pr_status`,`pr_user_dokter_id`,`pr_user_pasien_id`,`pr_ruang_id`,`pr_spesialis_id`,`pr_user_dokter_dpjp_id`,`pr_jenis_pelayanan`) values (1,'N40.0 · Benign prostatic hyperplasia','Ivfd, Inj, Kateter','Minggu depan kontrol poli klinik','2022-04-12 10:25:00',2,15,8,2,1,5,1),(2,'I46  Cardiac arrest','Ekg, Inj, Ivfd','Pasien Pulang','2022-04-10 10:26:00',2,6,9,4,2,6,2),(3,'T16 Foreign Body in ear','Pengambilan benda','-','2022-04-12 10:26:00',2,5,10,1,5,7,3),(7,NULL,NULL,NULL,'2022-04-14 13:01:00',1,NULL,8,1,4,NULL,3);

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
