/*
SQLyog Enterprise - MySQL GUI v8.12 
MySQL - 5.5.5-10.1.37-MariaDB-0+deb9u1 : Database - pengamat_rssa
*********************************************************************
*/


/*!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*/`pengamat_rssa` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;

USE `pengamat_rssa`;

/*Table structure for table `ms_instalasi` */

DROP TABLE IF EXISTS `ms_instalasi`;

CREATE TABLE `ms_instalasi` (
  `id_instalasi` bigint(20) NOT NULL AUTO_INCREMENT,
  `kode_instalasi` varchar(10) DEFAULT NULL,
  `nama_instalasi` varchar(50) DEFAULT NULL,
  `ket_instalasi` text,
  PRIMARY KEY (`id_instalasi`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;

/*Data for the table `ms_instalasi` */

insert  into `ms_instalasi`(`id_instalasi`,`kode_instalasi`,`nama_instalasi`,`ket_instalasi`) values (1,'IGD','INSTALASI GAWAT DARURAT',NULL),(2,NULL,'INTSTALASI INTENSIF',NULL),(3,'IPU','INSTALASI PELAYANAN UTAMA',NULL),(4,'IPJT','INSTALASI PELAYANAN JANTUNG TERPADU',NULL),(5,NULL,'IRNA IV',NULL),(6,NULL,'IRNA III',NULL),(7,NULL,'IRNA II',NULL),(8,NULL,'IRNA I',NULL),(9,'IBS','INSTALASI BEDAH SENTRAL',NULL),(10,NULL,'INTSTALASI DIALISIS',NULL);

/*Table structure for table `ms_menu` */

DROP TABLE IF EXISTS `ms_menu`;

CREATE TABLE `ms_menu` (
  `id_menu` bigint(20) NOT NULL AUTO_INCREMENT,
  `nama_menu` varchar(20) DEFAULT NULL,
  `link_menu` varchar(20) DEFAULT NULL,
  `icon_menu` varchar(20) DEFAULT NULL,
  `parent_menu` smallint(6) DEFAULT NULL,
  `level_menu` smallint(6) DEFAULT NULL,
  `action_menu` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id_menu`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

/*Data for the table `ms_menu` */

insert  into `ms_menu`(`id_menu`,`nama_menu`,`link_menu`,`icon_menu`,`parent_menu`,`level_menu`,`action_menu`) values (1,'Home',NULL,'fa fa-home',NULL,1,NULL),(2,'Setting','#','fa fa-gears',NULL,1,NULL),(3,'Hak Akses','ps_hakakses',NULL,2,2,'true'),(4,'User Login','ps_userlogin',NULL,2,2,'true'),(5,'Input Pengamat','#','fa fa-heartbeat',NULL,1,NULL),(6,'Utama','ps_utama',NULL,5,2,'true'),(7,'Khusus IGD','ps_khususigd',NULL,5,2,'true'),(8,'Pasien Meninggal','ps_pasienmeninggal',NULL,5,2,'true'),(9,'Jumlah Pasien','ps_jumlahpasien',NULL,5,2,'true'),(10,'Jumlah Petugas','ps_jumlahpetugas',NULL,5,2,'true'),(11,'Pengkajian Awal','ps_pengkajianawal',NULL,5,2,'true'),(12,'Laporan','#','fa fa-book',NULL,1,NULL),(13,'Laporan Utama','lp_utama',NULL,12,2,'true');

/*Table structure for table `ms_ruang` */

DROP TABLE IF EXISTS `ms_ruang`;

CREATE TABLE `ms_ruang` (
  `id_ruang` bigint(20) NOT NULL AUTO_INCREMENT,
  `nama_ruang` varchar(50) NOT NULL,
  `instalasi_ruang` varchar(50) DEFAULT NULL,
  `jumlah_ruang` int(5) DEFAULT NULL,
  `ket_ruang` text,
  `fk_instalasi` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_ruang`)
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=latin1;

/*Data for the table `ms_ruang` */

insert  into `ms_ruang`(`id_ruang`,`nama_ruang`,`instalasi_ruang`,`jumlah_ruang`,`ket_ruang`,`fk_instalasi`) values (1,'06','IGD',18,NULL,1),(2,'ICU','INTSTALASI INTENSIF',15,NULL,2),(3,'PICU','INTSTALASI INTENSIF',5,NULL,2),(4,'Mawar','INSTALASI PELAYANAN UTAMA',18,NULL,3),(5,'Wijayakusuma','INSTALASI PELAYANAN UTAMA',5,NULL,3),(6,'Dahlia','INSTALASI PELAYANAN UTAMA',20,NULL,3),(7,'Bugenville','INSTALASI PELAYANAN UTAMA',15,NULL,3),(8,'Tulip','INSTALASI PELAYANAN UTAMA',1,NULL,3),(9,'Stroke Pav','INSTALASI PELAYANAN UTAMA',2,NULL,3),(10,'Melati','INSTALASI PELAYANAN UTAMA',16,NULL,3),(11,'05','IPJT',13,NULL,4),(12,'05 A','IPJT',14,NULL,4),(13,'05 B','IPJT',10,NULL,4),(14,'07 HCU','IRNA IV',11,NULL,5),(15,'07 A','IRNA IV',32,NULL,5),(16,'07 B','IRNA IV',50,NULL,5),(17,'11','IRNA IV',42,NULL,5),(18,'04 Bayi','IRNA III',4,NULL,6),(19,'04 Ibu','IRNA III',16,NULL,6),(20,'08 Bayi','IRNA III',4,NULL,6),(21,'08 Ibu','IRNA III',26,NULL,6),(22,'09','IRNA III',21,NULL,6),(23,'10','IRNA III',10,NULL,6),(24,'12 (HCU Bedah)','IRNA II',30,NULL,7),(25,'13 (Kemo)','IRNA II',26,NULL,7),(26,'14','IRNA II',11,NULL,7),(27,'15','IRNA II',22,NULL,7),(28,'16','IRNA II',11,NULL,7),(29,'17','IRNA II',32,NULL,7),(30,'18','IRNA II',15,NULL,7),(31,'19','IRNA II',42,NULL,7),(32,'20','IRNA II',24,NULL,7),(33,'21','IRNA II',14,NULL,7),(34,'22','IRNA I',35,NULL,8),(35,'23 Psikiatri','IRNA I',22,NULL,8),(36,'23 Umum','IRNA I',18,NULL,8),(37,'24 A','IRNA I',30,NULL,8),(38,'24 B','IRNA I',27,NULL,8),(39,'24 C','IRNA I',20,NULL,8),(40,'25','IRNA I',30,NULL,8),(41,'26 IPD','IRNA I',16,NULL,8),(42,'26 Stroke ','IRNA I',18,NULL,8),(43,'26 HCU','IRNA I',10,NULL,8),(44,'27','IRNA I',40,NULL,8),(45,'28','IRNA I',40,NULL,8),(46,'29','IRNA I',16,NULL,8),(47,'SARS','IRNA I',5,NULL,8),(48,'06 A ICU / PICU','INTSTALASI INTENSIF',0,NULL,2),(49,'PSG','IRNA I',0,NULL,8),(50,'KABER ','IRNA III',0,NULL,6),(51,'CATHLAB','IPJT',0,NULL,4),(52,'KAMAR TERIMA PAV','INSTALASI PELAYANAN UTAMA',0,NULL,3),(53,'AMBULANCE','IGD',0,NULL,1),(54,'TRIAGE','IGD',0,NULL,1),(55,'CRITICAL CARE','IGD',0,NULL,1),(56,'OK EMERGENCY','IBS',0,NULL,9),(57,'OK SENTRAL','IBS',0,NULL,9),(58,'ANASTHESI','IBS',0,NULL,9),(59,'DIALISIS A','INTSTALASI DIALISIS',0,NULL,10),(60,'DIALISIS B','INTSTALASI DIALISIS',0,NULL,10),(61,'DIALISIS C (IPU)','INTSTALASI DIALISIS',0,NULL,10),(62,'CAPD','INTSTALASI DIALISIS',0,NULL,10);

/*Table structure for table `ms_smf` */

DROP TABLE IF EXISTS `ms_smf`;

CREATE TABLE `ms_smf` (
  `id_smf` bigint(20) NOT NULL AUTO_INCREMENT,
  `nama_smf` varchar(20) NOT NULL,
  `showall_smf` varchar(10) DEFAULT NULL,
  `ket_smf` text,
  PRIMARY KEY (`id_smf`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;

/*Data for the table `ms_smf` */

insert  into `ms_smf`(`id_smf`,`nama_smf`,`showall_smf`,`ket_smf`) values (1,'EM','1',NULL),(2,'BEDAH','2',NULL),(3,'IPD','2',NULL),(4,'PARU','2',NULL),(5,'NEURO','2',NULL),(6,'ORTHO','1',NULL),(7,'IKA','2',NULL),(8,'CARDIO','2',NULL),(9,'OBG','2',NULL),(10,'MATA','3',NULL),(11,'THT','3',NULL),(12,'KULIT','3',NULL),(13,'UROLOGI','3',NULL),(14,'PSIKIATRI','3',NULL);

/*Table structure for table `ms_tipeuser` */

DROP TABLE IF EXISTS `ms_tipeuser`;

CREATE TABLE `ms_tipeuser` (
  `id_tipeuser` bigint(20) NOT NULL AUTO_INCREMENT,
  `nama_tipeuser` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id_tipeuser`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;

/*Data for the table `ms_tipeuser` */

insert  into `ms_tipeuser`(`id_tipeuser`,`nama_tipeuser`) values (1,'Super Admin'),(2,'Admin'),(3,'User'),(4,'Pengamat'),(5,'Guest');

/*Table structure for table `ms_user` */

DROP TABLE IF EXISTS `ms_user`;

CREATE TABLE `ms_user` (
  `id_user` int(5) NOT NULL AUTO_INCREMENT,
  `nama_user` varchar(20) NOT NULL,
  `password_user` varchar(50) NOT NULL,
  `fk_tipeuser` bigint(20) NOT NULL,
  `namalengkap_user` varchar(100) DEFAULT NULL,
  `nip_user` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id_user`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

/*Data for the table `ms_user` */

insert  into `ms_user`(`id_user`,`nama_user`,`password_user`,`fk_tipeuser`,`namalengkap_user`,`nip_user`) values (1,'hamigaki','2b7e24bc8fc16ad84c847f3fd5dc0adb',1,'Ragil Bayu Nugroho','302-25061990-112014-6605'),(2,'itikom','afa7f6fb4dd3bb49e6960b6f4c74ce3d',1,'Team Itikom','0000000'),(3,'pengamat','afa7f6fb4dd3bb49e6960b6f4c74ce3d',4,'Pengamat RSSA','0000000'),(4,'dr.udin','afa7f6fb4dd3bb49e6960b6f4c74ce3d',1,'dr. MUCHAMMAD FAHRUL UDIN, Sp.A, M.Kes','197505242014121001'),(5,'aguseko','afa7f6fb4dd3bb49e6960b6f4c74ce3d',1,'AGUS EKO PURNOMO, SKP, MM','196508121989031018');

/*Table structure for table `ms_usermenu` */

DROP TABLE IF EXISTS `ms_usermenu`;

CREATE TABLE `ms_usermenu` (
  `id_usermenu` bigint(20) NOT NULL AUTO_INCREMENT,
  `tambah_usermenu` varchar(10) DEFAULT NULL,
  `edit_usermenu` varchar(10) DEFAULT NULL,
  `delete_usermenu` varchar(10) DEFAULT NULL,
  `view_usermenu` varchar(10) DEFAULT NULL,
  `fk_tipeuser` bigint(20) DEFAULT NULL,
  `fk_menu` smallint(6) DEFAULT NULL,
  PRIMARY KEY (`id_usermenu`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=latin1;

/*Data for the table `ms_usermenu` */

insert  into `ms_usermenu`(`id_usermenu`,`tambah_usermenu`,`edit_usermenu`,`delete_usermenu`,`view_usermenu`,`fk_tipeuser`,`fk_menu`) values (36,NULL,NULL,NULL,NULL,1,1),(37,NULL,NULL,NULL,NULL,1,2),(38,'tambah','edit','delete','view',1,3),(39,'tambah','edit','delete','view',1,4),(40,NULL,NULL,NULL,'view',1,5),(41,'tambah','edit','delete','view',1,6),(42,'tambah','edit','delete','view',1,7),(43,'tambah','edit','delete','view',1,8),(44,'tambah','edit','delete','view',1,9),(45,'tambah','edit','delete','view',1,10),(46,'tambah','edit','delete','view',1,11),(47,NULL,NULL,NULL,'view',1,12),(48,'tambah','edit','delete','view',1,13),(49,NULL,NULL,NULL,NULL,4,1),(50,NULL,NULL,NULL,NULL,4,5),(51,'tambah','edit','delete','view',4,6),(52,'tambah','edit','delete','view',4,7),(53,'tambah','edit','delete','view',4,8),(54,'tambah','edit','delete','view',4,9),(55,'tambah','edit','delete','view',4,10),(56,'tambah','edit','delete','view',4,11),(57,NULL,NULL,NULL,'view',4,12),(58,'tambah','edit','delete','view',4,13);

/*Table structure for table `ps_catatanobservasi` */

DROP TABLE IF EXISTS `ps_catatanobservasi`;

CREATE TABLE `ps_catatanobservasi` (
  `id_catatanobservasi` bigint(20) NOT NULL AUTO_INCREMENT,
  `kurang3jam_catatanobservasi` int(10) DEFAULT NULL,
  `[REDACTED]` int(10) DEFAULT NULL,
  `[REDACTED]` int(10) DEFAULT NULL,
  `quantity_catatanobservasi` int(10) DEFAULT NULL,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_catatanobservasi`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

/*Data for the table `ps_catatanobservasi` */

insert  into `ps_catatanobservasi`(`id_catatanobservasi`,`kurang3jam_catatanobservasi`,`sd8jam_catatanobservasi`,`lebihdari8jam_catatanobservasi`,`quantity_catatanobservasi`,`fk_laporpengamat`) values (1,1,2,3,NULL,4),(8,100,200,300,NULL,4),(9,1,2,3,NULL,5),(10,4,5,6,NULL,5),(11,NULL,NULL,NULL,NULL,6),(12,10,20,30,NULL,4),(13,5,5,2,NULL,9);

/*Table structure for table `ps_catatanstagnasi` */

DROP TABLE IF EXISTS `ps_catatanstagnasi`;

CREATE TABLE `ps_catatanstagnasi` (
  `id_catatanstagnasi` bigint(20) NOT NULL AUTO_INCREMENT,
  `diagnosa_catatanstagnasi` varchar(50) DEFAULT NULL,
  `quantity_catatanstagnasi` int(10) DEFAULT NULL,
  `ket_catatanstagnasi` text,
  `fk_ruang` bigint(20) DEFAULT NULL,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_catatanstagnasi`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

/*Data for the table `ps_catatanstagnasi` */

insert  into `ps_catatanstagnasi`(`id_catatanstagnasi`,`diagnosa_catatanstagnasi`,`quantity_catatanstagnasi`,`ket_catatanstagnasi`,`fk_ruang`,`fk_laporpengamat`) values (1,'ckd edit',NULL,'penuh edit',2,4),(2,'hf edit',NULL,'penuh edit',3,4),(6,'1',NULL,'2',1,5),(7,'3',NULL,'4',2,5),(8,NULL,NULL,NULL,NULL,6),(9,'B24',NULL,'-',41,9),(10,'CKD',NULL,'-',41,9);

/*Table structure for table `ps_dokterjagaigd` */

DROP TABLE IF EXISTS `ps_dokterjagaigd`;

CREATE TABLE `ps_dokterjagaigd` (
  `id_dokterjagaigd` bigint(20) NOT NULL AUTO_INCREMENT,
  `nama_doterjagaigd` varchar(50) DEFAULT NULL,
  `fk_smf` bigint(20) DEFAULT NULL,
  `fk_utamalaporan` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_dokterjagaigd`)
) ENGINE=InnoDB AUTO_INCREMENT=84 DEFAULT CHARSET=latin1;

/*Data for the table `ps_dokterjagaigd` */

insert  into `ps_dokterjagaigd`(`id_dokterjagaigd`,`nama_doterjagaigd`,`fk_smf`,`fk_utamalaporan`) values (1,'dr. em',1,1),(2,'dr. bedah',2,1),(30,'1 dr BUDI',1,5),(31,'2 dr. HANIF',2,5),(32,'3 dr. ADIS',3,5),(33,'4 dr. ANDRI',4,5),(34,'5 dr. NYOMAN',5,5),(35,'6 dr.',6,5),(36,'7 dr. novi ',7,5),(37,'8 dr. FARIS',8,5),(38,'9 dr. DESTI',9,5),(39,'EM',1,6),(40,'BEDAH',2,6),(41,'IPD',3,6),(42,'PARU',4,6),(43,'NEURO',5,6),(44,'ORTHO',6,6),(45,'IKA',7,6),(46,'CARDIO',8,6),(47,'OBG',9,6),(48,'EM',1,7),(49,'BEDAH',2,7),(50,'IPD',3,7),(51,'PARU',4,7),(52,'NEURO',5,7),(53,'ORTHO',6,7),(54,'IKA',7,7),(55,'CARDIO',8,7),(56,'OBG',9,7),(57,'Dr EM',1,8),(58,'',2,8),(59,'',3,8),(60,'',4,8),(61,'',5,8),(62,'',6,8),(63,'',7,8),(64,'',8,8),(65,'',9,8),(66,'Em',1,9),(67,'Bedah',2,9),(68,'',3,9),(69,'',4,9),(70,'',5,9),(71,'',6,9),(72,'',7,9),(73,'',8,9),(74,'',9,9),(75,'EM',1,10),(76,'BEDAH',2,10),(77,'IPD',3,10),(78,'PARU',4,10),(79,'NEURO',5,10),(80,'ORTHO',6,10),(81,'',7,10),(82,'',8,10),(83,'',9,10);

/*Table structure for table `ps_implementasiak` */

DROP TABLE IF EXISTS `ps_implementasiak`;

CREATE TABLE `ps_implementasiak` (
  `id_implementasiak` int(11) NOT NULL AUTO_INCREMENT,
  `element_implementasiak` varchar(50) DEFAULT NULL,
  `responden_implementasiak` int(10) DEFAULT NULL,
  `jumlah_implementasiak` int(10) DEFAULT NULL,
  `prosentase_implementasiak` int(10) DEFAULT NULL,
  `fk_utamalaporan` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_implementasiak`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;

/*Data for the table `ps_implementasiak` */

insert  into `ps_implementasiak`(`id_implementasiak`,`element_implementasiak`,`responden_implementasiak`,`jumlah_implementasiak`,`prosentase_implementasiak`,`fk_utamalaporan`) values (1,'element yang dinilai 1',20,20,100,1),(2,'element yang dinilai 2',30,0,50,1),(7,'1. APAR',4,4,100,5),(8,'1',2,3,4,6),(9,'20',20,20,20,7),(10,'1',2,3,4,8),(11,'12',12,3,2,9),(12,'10',10,10,10,10),(13,'2. 5 Momen cc tngn',4,4,100,5),(14,'3. batuk efektive',4,4,100,5),(15,'4. BHD',4,4,100,5);

/*Table structure for table `ps_jumlahpasien` */

DROP TABLE IF EXISTS `ps_jumlahpasien`;

CREATE TABLE `ps_jumlahpasien` (
  `id_jumlahpasien` bigint(20) NOT NULL AUTO_INCREMENT,
  `umum_jumlahpasien` int(10) DEFAULT NULL,
  `jkn_jumlahpasien` int(10) DEFAULT NULL,
  `jamkesda_jumlahpasien` int(10) DEFAULT NULL,
  `jamkesmas_jumlahpasien` int(10) DEFAULT NULL,
  `mrx_jumlahpasien` int(10) DEFAULT NULL,
  `fk_ruang` bigint(20) DEFAULT NULL,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_jumlahpasien`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=latin1;

/*Data for the table `ps_jumlahpasien` */

insert  into `ps_jumlahpasien`(`id_jumlahpasien`,`umum_jumlahpasien`,`jkn_jumlahpasien`,`jamkesda_jumlahpasien`,`jamkesmas_jumlahpasien`,`mrx_jumlahpasien`,`fk_ruang`,`fk_laporpengamat`) values (69,1,0,0,10,0,1,15),(70,2,0,0,2,0,2,15),(71,3,0,0,2,0,3,15),(72,4,0,0,4,0,4,15),(73,5,0,0,0,0,5,15),(74,6,0,0,14,0,6,15),(75,7,0,0,8,0,7,15),(76,1,0,0,0,0,8,15),(77,2,0,0,0,0,9,15),(78,10,0,0,0,0,10,15),(79,1,0,0,0,0,14,15),(80,2,0,0,0,0,15,15),(81,3,0,0,0,0,16,15),(82,4,0,0,0,0,17,15),(83,0,1,0,0,0,34,15),(84,0,2,0,0,0,35,15),(85,0,3,0,0,0,36,15),(86,0,4,0,0,0,37,15),(87,0,5,0,0,0,38,15),(88,0,6,0,0,0,39,15),(89,0,7,0,0,0,40,15),(90,0,8,0,0,0,41,15),(91,0,9,0,0,0,42,15),(92,0,10,0,0,0,43,15),(93,0,11,0,0,0,44,15),(94,0,12,0,0,0,45,15),(95,0,13,0,0,0,46,15),(96,0,5,0,0,0,47,15),(107,18,0,0,0,0,1,17),(108,15,0,0,0,0,2,17),(109,5,0,0,0,0,3,17),(110,5,0,0,0,0,5,17),(111,20,0,0,0,0,6,17);

/*Table structure for table `ps_jumlahpetugas` */

DROP TABLE IF EXISTS `ps_jumlahpetugas`;

CREATE TABLE `ps_jumlahpetugas` (
  `id_jumlahpetugas` bigint(20) NOT NULL AUTO_INCREMENT,
  `sorepwt_jumlahpetugas` int(10) DEFAULT NULL,
  `sorepky_jumlahpetugas` int(10) DEFAULT NULL,
  `malampwt_jumlahpetugas` int(10) DEFAULT NULL,
  `malampky_jumlahpetugas` int(10) DEFAULT NULL,
  `fk_ruang` bigint(20) DEFAULT NULL,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_jumlahpetugas`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

/*Data for the table `ps_jumlahpetugas` */

insert  into `ps_jumlahpetugas`(`id_jumlahpetugas`,`sorepwt_jumlahpetugas`,`sorepky_jumlahpetugas`,`malampwt_jumlahpetugas`,`malampky_jumlahpetugas`,`fk_ruang`,`fk_laporpengamat`) values (5,2,3,4,5,1,19),(6,5,6,7,8,53,19),(7,9,10,11,12,54,19),(8,13,14,15,16,55,19),(9,1,2,3,4,2,19);

/*Table structure for table `ps_laporanmeninggal` */

DROP TABLE IF EXISTS `ps_laporanmeninggal`;

CREATE TABLE `ps_laporanmeninggal` (
  `id_laporanmeninggal` bigint(20) NOT NULL AUTO_INCREMENT,
  `jumlah_laporanmeninggal` int(10) DEFAULT NULL,
  `diagnosa_laporanmeninggal` varchar(50) DEFAULT NULL,
  `penyebab_laporanmeninggal` text,
  `fk_ruang` bigint(20) DEFAULT NULL,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_laporanmeninggal`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

/*Data for the table `ps_laporanmeninggal` */

insert  into `ps_laporanmeninggal`(`id_laporanmeninggal`,`jumlah_laporanmeninggal`,`diagnosa_laporanmeninggal`,`penyebab_laporanmeninggal`,`fk_ruang`,`fk_laporpengamat`) values (5,5,'CKD','gagal nafas',1,8),(6,1,'COB','gagal nafas',2,8);

/*Table structure for table `ps_laporanpasienigd` */

DROP TABLE IF EXISTS `ps_laporanpasienigd`;

CREATE TABLE `ps_laporanpasienigd` (
  `id_laporanpasienigd` bigint(20) NOT NULL AUTO_INCREMENT,
  `krs_laporanpasienigd` int(10) DEFAULT NULL,
  `mrs_laporanpasienigd` int(10) DEFAULT NULL,
  `aps_laporanpasienigd` int(10) DEFAULT NULL,
  `meninggal_laporanpasienigd` int(10) DEFAULT NULL,
  `sisastagnasi_laporanpasienigd` int(10) DEFAULT NULL,
  `sisaobservasi_laporanpasienigd` int(10) DEFAULT NULL,
  `oppagi_laporanpasienigd` int(10) DEFAULT NULL,
  `opsiang_laporanpasienigd` int(10) DEFAULT NULL,
  `opmalam_laporanpasienigd` int(10) DEFAULT NULL,
  `ket_laporanpasienigd` text,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  `fk_smf` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_laporanpasienigd`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;

/*Data for the table `ps_laporanpasienigd` */

insert  into `ps_laporanpasienigd`(`id_laporanpasienigd`,`krs_laporanpasienigd`,`mrs_laporanpasienigd`,`aps_laporanpasienigd`,`meninggal_laporanpasienigd`,`sisastagnasi_laporanpasienigd`,`sisaobservasi_laporanpasienigd`,`oppagi_laporanpasienigd`,`opsiang_laporanpasienigd`,`opmalam_laporanpasienigd`,`ket_laporanpasienigd`,`fk_laporpengamat`,`fk_smf`) values (1,21,22,23,24,25,26,27,28,29,'ket 30 edit',4,1),(2,1,2,3,4,5,6,7,8,9,'10',4,14),(3,1,2,3,4,5,6,7,8,9,'10',5,1),(4,11,12,13,14,15,16,17,18,19,'20',5,2),(5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,6,NULL),(6,0,0,0,0,0,0,0,0,0,'',4,2),(7,0,0,0,0,0,0,0,0,0,'',4,3),(8,0,0,0,0,0,0,0,0,0,'',4,4),(9,5,6,7,8,9,10,11,12,13,'',4,5),(10,0,0,0,0,0,0,0,0,0,'',4,7),(11,0,0,0,0,0,0,0,0,0,'',4,8),(12,0,0,0,0,0,0,0,0,0,'',4,9),(13,0,0,0,0,0,0,0,0,0,'',4,10),(14,0,0,0,0,0,0,0,0,0,'',4,11),(15,0,0,0,0,0,0,0,0,0,'',4,12),(16,0,0,0,0,0,0,0,0,0,'',4,13),(30,7,8,9,10,11,12,13,14,15,'kuy',9,8),(31,11,12,13,14,15,16,17,18,19,'yeah',9,12);

/*Table structure for table `ps_laporpengamat` */

DROP TABLE IF EXISTS `ps_laporpengamat`;

CREATE TABLE `ps_laporpengamat` (
  `id_laporpengamat` bigint(20) NOT NULL AUTO_INCREMENT,
  `date_laporpengamat` date DEFAULT NULL,
  `time_laporpengamat` time DEFAULT NULL,
  `jamjaga_laporpengamat` varchar(20) DEFAULT NULL,
  `jampelaporan_laporpengamat` varchar(20) DEFAULT NULL,
  `[REDACTED]` varchar(50) DEFAULT NULL,
  `[REDACTED]` varchar(50) DEFAULT NULL,
  `status_laporpengamat` int(2) DEFAULT NULL,
  `fk_user` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_laporpengamat`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=latin1;

/*Data for the table `ps_laporpengamat` */

insert  into `ps_laporpengamat`(`id_laporpengamat`,`date_laporpengamat`,`time_laporpengamat`,`jamjaga_laporpengamat`,`jampelaporan_laporpengamat`,`pengamat1_laporpengamat`,`pengamat2_laporpengamat`,`status_laporpengamat`,`fk_user`) values (1,'2020-04-16',NULL,'malam','21:00','Maria','Samini',1,2),(4,'2020-02-25',NULL,'malam','09:30','mamat edit edit','sugeng edit edit',2,2),(8,'2020-02-25',NULL,'malam','16:10','yanto','maksum',3,2),(9,'2020-03-17',NULL,'pagi','07:56','Dwiki','Rahmat',2,2),(15,'2020-03-18',NULL,'sore','15:15','DWIKI','MAMAT',4,2),(17,'2020-03-20',NULL,'pagi','10:10','Agung','Kadek',4,2),(19,'2020-03-21',NULL,'sore','13:58','Yusuf','Samsul',5,2),(20,'2020-03-23',NULL,'sore','15:00','Yayuk Tes','Sri Tes',6,2),(24,'2020-04-17',NULL,'pagi','06:00','M. FAUZAN','PANDOYO',1,1),(25,'2020-04-01',NULL,'pagi','08:32','LISTIA','KANZI',1,1),(26,'2020-04-01',NULL,'sore','15:50','Tukijan','Wardo',1,1),(27,'2020-04-18',NULL,'malam','06:00','Suparno, S.Kep,NS','Mohammad Muchlas, SST',1,1),(28,'2020-05-31',NULL,'malam','18:20','Jito','Supri',1,1),(29,'2020-04-01',NULL,'malam','20:00','Supriadi','Sulistiyo',1,1);

/*Table structure for table `ps_pengkajianawal` */

DROP TABLE IF EXISTS `ps_pengkajianawal`;

CREATE TABLE `ps_pengkajianawal` (
  `id_pengkajianawal` bigint(20) NOT NULL AUTO_INCREMENT,
  `jumlahpx_pengkajianawal` int(10) DEFAULT NULL,
  `[REDACTED]` int(10) DEFAULT NULL,
  `[REDACTED]` int(10) DEFAULT NULL,
  `fk_ruang` bigint(20) DEFAULT NULL,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_pengkajianawal`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

/*Data for the table `ps_pengkajianawal` */

insert  into `ps_pengkajianawal`(`id_pengkajianawal`,`jumlahpx_pengkajianawal`,`kurang24jam_pengkajianawal`,`lebih24jam_pengkajianawal`,`fk_ruang`,`fk_laporpengamat`) values (1,101,5,5,18,20),(2,201,10,10,19,20),(3,151,8,7,11,20),(4,31,2,1,12,20),(5,1,0,0,13,20),(6,2,0,0,1,20),(7,3,0,0,48,20),(8,4,0,0,15,20),(9,5,0,0,16,20);

/*Table structure for table `ps_ruangpantau` */

DROP TABLE IF EXISTS `ps_ruangpantau`;

CREATE TABLE `ps_ruangpantau` (
  `id_ruangpantau` bigint(20) NOT NULL AUTO_INCREMENT,
  `jumlahpx_ruangpantau` int(10) DEFAULT NULL,
  `askeptulis_ruangpantau` int(10) DEFAULT NULL,
  `askeptidak_ruangpantau` int(10) DEFAULT NULL,
  `cptulis_ruangpantau` int(10) DEFAULT NULL,
  `cptidak_ruangpantau` int(10) DEFAULT NULL,
  `fk_ruang` bigint(20) DEFAULT NULL,
  `fk_utamalaporan` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_ruangpantau`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;

/*Data for the table `ps_ruangpantau` */

insert  into `ps_ruangpantau`(`id_ruangpantau`,`jumlahpx_ruangpantau`,`askeptulis_ruangpantau`,`askeptidak_ruangpantau`,`cptulis_ruangpantau`,`cptidak_ruangpantau`,`fk_ruang`,`fk_utamalaporan`) values (1,8,5,3,2,6,1,1),(2,15,5,5,8,2,2,1),(3,10,6,4,7,3,3,1),(17,14,14,0,14,0,41,5),(18,5,5,0,5,0,42,5),(19,1,2,3,4,5,19,6),(20,1,2,3,4,5,19,7),(21,1,2,3,4,5,20,8),(22,1,2,3,4,4,12,9),(23,10,8,2,7,3,14,10),(24,3,3,0,3,0,43,5);

/*Table structure for table `ps_utamalaporan` */

DROP TABLE IF EXISTS `ps_utamalaporan`;

CREATE TABLE `ps_utamalaporan` (
  `id_utamalaporan` bigint(20) NOT NULL AUTO_INCREMENT,
  `supervisi_utamalaporan` text,
  `p1_utamalaporan` int(5) DEFAULT NULL,
  `p2_utamalaporan` int(5) DEFAULT NULL,
  `p3_utamalaporan` int(5) DEFAULT NULL,
  `ket_utamalaporan` text,
  `pxkusus_utamalaporan` text,
  `pxpenting_utamalaporan` text,
  `ktd_utamalaporan` text,
  `lainlain_utamalaporan` text,
  `fk_laporpengamat` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id_utamalaporan`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

/*Data for the table `ps_utamalaporan` */

insert  into `ps_utamalaporan`(`id_utamalaporan`,`supervisi_utamalaporan`,`p1_utamalaporan`,`p2_utamalaporan`,`p3_utamalaporan`,`ket_utamalaporan`,`pxkusus_utamalaporan`,`pxpenting_utamalaporan`,`ktd_utamalaporan`,`lainlain_utamalaporan`,`fk_laporpengamat`) values (1,'Mati air di R.18 i|',0,0,0,'keterangan ','catatan kusus 1 |catatan kusus 2|catatan kusus 3|','catatan pasien keluarga 1|catatan pasien keluarga 2|','laporan ktd 1|laporan ktd 2|laporan ktd 3|laporan ktd 4|','laporan lain lain coba 1',1),(5,'Petugas lengkap,tugas-tugas dapat diselesaikan dg baik,lingkungan aman dan sarpras tdk ada masalah|',0,0,0,'KET','','CAT PAS|','TIDAK ADA|','LAIN LAIN',24),(6,'LAPSU 1|TES 1|TES 2|TES 3|',0,0,0,'8','9|','10|','11|','12',25),(7,'Tes 1 SORE|Tes 2 SORE|Tes 3 SORE|',0,0,0,'KET 1','CAT KUS 1|CAT KUS 2|CAT KUS 3|','CAT PA 1\n|','KTD 1|KTD 2|','LAIN LAIN',26),(8,'laporan supervisi 1|laporan supervisi 2|laporan supervisi 3|',0,0,0,'SDASDASD','ASDAS|','DASDAS|','ASDA|','ASDASD',27),(9,'lap 1|',8,3,3,'sdfdsf','sdfs|','dfsdf|','sdfsd|','fsdfs',28),(10,'2 Pasien kabur|1 Pasien meninggal tidak ada keluarga |',10,20,15,'','','','','',29);

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