INSERT INTO public.daftar_kategori_operasi
(id, status, date_created, date_updated, "Kategori")
VALUES
(1,'published','2026-01-23 08:22:12.314894',NULL,'1.1 Bedah Umum'),
(2,'published','2026-01-23 08:22:12.314894',NULL,'1.2 Bedah Syaraf'),
(3,'published','2026-01-23 08:22:12.314894',NULL,'1.3 Orthopedi'),
(4,'published','2026-01-23 08:22:12.314894',NULL,'1.4 Obgyn'),
(5,'published','2026-01-23 08:22:12.314894',NULL,'1.5 Bedah Plastik');

INSERT INTO public.daftar_ksm (id, "Nama_ksm")
VALUES
(1, 'KSM Bedah'),
(2, 'KSM Anestesi'),
(3, 'KSM Penyakit Dalam');

INSERT INTO public.daftar_spesialis
(id, "Kode", "Spesialis", "Id_group_location_simgos")
VALUES
(1, 'SPB',  'Spesialis Bedah',       NULL),
(2, 'SPOT', 'Spesialis Orthopedi',   NULL),
(3, 'SPM',  'Spesialis Mata',        NULL);

INSERT INTO public.daftar_subspesialis
(id, "Kode", "Subspesialis", "FK_daftar_spesialis_ID")
VALUES
(1, 'SUB-DIG',   'Bedah Digestif',     1),
(2, 'SUB-ONK',   'Bedah Onkologi',     1),
(3, 'SUB-SPINE', 'Tulang Belakang',    2),
(4, 'SUB-HIP',   'Panggul & Lutut',    2),
(5, 'SUB-RET',   'Retina',             3);

INSERT INTO public.data_diagnosa_pasien_operasi
(
  id,
  user_created,
  date_created,
  user_updated,
  date_updated,
  "Kode_diagnosa",
  "Diagnosa",
  "Keterangan",
  "FK_pasien_operasi_diagnosa_pasien_operasi_ID",
  "Jenis_diagnosa"
)
VALUES
('8a1cdcbb-b5a3-4766-acaf-14c079768852', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-98', 'Hernia Inguinalis', NULL, '54b80a14-e557-482a-9c02-cf43312fe2b0', 'Utama'),
('2fe173de-929d-48e5-8df6-b364b6fb82a9', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-95', 'Tumor Mammae', NULL, '441d2ffb-7167-431c-aed2-c28069c88e56', 'Utama'),
('3ef80141-c98e-452a-b13e-f42e57cb2ce4', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-6',  'Appendicitis Akut', NULL, '8d995e32-56da-493f-9fdf-f7adba543e68', 'Utama'),
('63ab8f85-ebf8-4db0-bbc4-486719ed9bdf', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-85', 'Tonsilitis', NULL, '4ad135b4-6f85-463d-86d5-4bd5347b5122', 'Utama'),
('72dda5ec-2531-49f5-9fb7-7f4b4d910c42', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-45', 'Tonsilitis', NULL, '9ca415b2-a22d-4886-a0ff-d23a16c493a5', 'Utama'),
('26d604e8-ed6b-4aad-9535-e3316ee1679e', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-66', 'Hemoroid', NULL, '5fe0d3b3-243c-4323-996e-856122dd1483', 'Utama'),
('2c1fada6-bc19-4c51-8ed6-d31d7e1300d9', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-76', 'Fraktur Femur', NULL, 'd98a42fe-69e6-4e85-83eb-2ed9bec79462', 'Utama'),
('19bcf454-b77f-44c1-b9d2-0315071d8e98', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-64', 'Appendicitis Akut', NULL, 'ddcef114-7ffc-4d5b-88d8-9229904ce2f3', 'Utama'),
('299cbcfa-a052-498c-a74d-fd95e2f346b6', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-75', 'Hemoroid', NULL, '46f428fc-03cf-4977-ab56-382132c17c66', 'Utama'),
('925b88c4-0f0b-4e57-a027-a5414ba64828', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-23', 'Hernia Inguinalis', NULL, '2f34b2f0-79ef-49de-b92b-e7b3b181a513', 'Utama'),
('0549368c-ce8d-422c-91e1-4aebe5d2b630', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-65', 'Caesar Section', NULL, '0c244c0f-4f04-41cd-958d-c53f1dbfaa8d', 'Utama'),
('6f16f291-6629-4136-bc78-06c7b4470322', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-64', 'Tonsilitis', NULL, 'f11f320f-663d-412a-9bea-eb4f9c306b4c', 'Utama'),
('70c963ca-7806-49da-a127-03e57b6d335b', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-6',  'Hernia Inguinalis', NULL, 'a636d329-08a0-4487-8660-39820bafb845', 'Utama'),
('f8b78a00-ee3e-4113-b6c4-2d19e8a3acc4', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-56', 'Katarak', NULL, '023aa46b-f669-4be8-9917-bd61db3d014d', 'Utama'),
('b259bbfd-be7f-434f-bbd6-a05ea06e6619', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-74', 'Batu Empedu', NULL, '6cce5ca3-0565-437a-bdd7-8981a5198e47', 'Utama'),
('c6d2db45-b13c-46b3-a239-a9af27d1bab7', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-10-92', 'Fraktur Femur', NULL, 'b525e1e5-6e6d-4e75-8359-1d66765a7b83', 'Utama');

INSERT INTO public.data_pasien_operasi
(
  id,
  status,
  sort,
  user_created,
  date_created,
  user_updated,
  date_updated,
  "No_rekam_medis",
  "No_KTP",
  "Nama_pasien",
  "Jenis_kelamin",
  "Tanggal_lahir",
  "Umur",
  "Alamat",
  "Tanggal_daftar",
  "Kategori_operasi",
  "Rencana_operasi",
  "Keterangan",
  "Tanggal_selesai_operasi",
  "Status_operasi",
  "Nomor",
  "Old_kategori",
  "Spesialis",
  "Sub_spesialis",
  "Keterangan_status_pasien",
  "Nomor_spesialis",
  "Nomor_sub_spesialis",
  "Old_spesialis",
  "Old_sub_spesialis"
)
VALUES
('54b80a14-e557-482a-9c02-cf43312fe2b0','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000001','3574160117775539','Agus Simanjuntak','Laki-laki','1998-02-16','22 Tahun','Jl. Gatot Subroto No.51','2026-01-23 08:22:48.003155',4,'Hemorrhoidectomy',NULL,NULL,'Terjadwal',1,NULL,2,3,NULL,2,3,NULL,NULL),
('441d2ffb-7167-431c-aed2-c28069c88e56','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000002','3572712812442323','Lina Setiawan','Laki-laki','1974-09-08','22 Tahun','Jl. Merdeka No.21','2026-01-23 08:22:48.003155',4,'Hemorrhoidectomy',NULL,NULL,'Terjadwal',2,NULL,1,1,NULL,1,1,NULL,NULL),
('8d995e32-56da-493f-9fdf-f7adba543e68','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000003','3573658249713122','Hana Rahmawati','Laki-laki','2018-07-01','27 Tahun','Jl. Sudirman No.19','2026-01-23 08:22:48.003155',3,'Mastectomy',NULL,NULL,'Terjadwal',3,NULL,1,2,NULL,1,2,NULL,NULL),
('4ad135b4-6f85-463d-86d5-4bd5347b5122','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000004','3575264211898563','Nina Hidayat','Laki-laki','2004-07-03','62 Tahun','Jl. Ahmad Yani No.29','2026-01-23 08:22:48.003155',4,'Tonsillectomy',NULL,NULL,'Terjadwal',4,NULL,3,5,NULL,3,5,NULL,NULL),
('9ca415b2-a22d-4886-a0ff-d23a16c493a5','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000005','3578971794776205','Yudi Susanti','Laki-laki','2005-05-21','53 Tahun','Jl. Gatot Subroto No.27','2026-01-23 08:22:48.003155',2,'Phacoemulsification',NULL,NULL,'Terjadwal',5,NULL,1,2,NULL,1,2,NULL,NULL),
('5fe0d3b3-243c-4323-996e-856122dd1483','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000006','3577087502020920','Oscar Kusuma','Laki-laki','2023-04-20','26 Tahun','Jl. Gatot Subroto No.85','2026-01-23 08:22:48.003155',2,'Herniotomy',NULL,NULL,'Terjadwal',6,NULL,2,4,NULL,2,4,NULL,NULL),
('d98a42fe-69e6-4e85-83eb-2ed9bec79462','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000007','3574004915616037','Oscar Pratama','Laki-laki','1985-05-23','65 Tahun','Jl. Diponegoro No.99','2026-01-23 08:22:48.003155',3,'ORIF',NULL,NULL,'Terjadwal',7,NULL,2,4,NULL,2,4,NULL,NULL),
('ddcef114-7ffc-4d5b-88d8-9229904ce2f3','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000008','3578978139931591','Oscar Lestari','Laki-laki','1971-11-30','62 Tahun','Jl. Gatot Subroto No.28','2026-01-23 08:22:48.003155',2,'Phacoemulsification',NULL,NULL,'Terjadwal',8,NULL,3,5,NULL,3,5,NULL,NULL),
('46f428fc-03cf-4977-ab56-382132c17c66','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000009','3575019167672450','Siti Wijaya','Laki-laki','2020-06-06','19 Tahun','Jl. Diponegoro No.17','2026-01-23 08:22:48.003155',3,'Sectio Caesarea',NULL,NULL,'Terjadwal',9,NULL,2,4,NULL,2,4,NULL,NULL),
('2f34b2f0-79ef-49de-b92b-e7b3b181a513','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000010','3575876121081869','Nina Santoso','Laki-laki','2000-03-11','36 Tahun','Jl. Diponegoro No.90','2026-01-23 08:22:48.003155',2,'Herniotomy',NULL,NULL,'Terjadwal',10,NULL,1,2,NULL,1,2,NULL,NULL),
('0c244c0f-4f04-41cd-958d-c53f1dbfaa8d','waiting',NULL,NULL,'2026-01-23 08:22:48.003155+07',NULL,NULL,'RM-000011','3571621494638527','Oscar Simanjuntak','Laki-laki','2013-12-11','24 Tahun','Jl. Gatot Subroto No.57','2026-01-23 08:22:48.003155',4,'ORIF',NULL,NULL,'Terjadwal',11,NULL,2,3,NULL,2,3,NULL,NULL);

INSERT INTO public.data_pasien_operasi_data_pegawai
(id, data_pasien_operasi_id, data_pegawai_id)
VALUES
(1,  '54b80a14-e557-482a-9c02-cf43312fe2b0', 'b4c116a4-6201-4e00-9b55-2bfe77ac262f'),
(2,  '441d2ffb-7167-431c-aed2-c28069c88e56', 'a6b02554-ab33-4e9d-916c-75e23f0bbe80'),
(3,  '8d995e32-56da-493f-9fdf-f7adba543e68', '7b861cf5-ffe7-4a42-9323-104bbf257aa1'),
(4,  '4ad135b4-6f85-463d-86d5-4bd5347b5122', '41f13636-53e0-48de-9585-a80e8194e846'),
(5,  '9ca415b2-a22d-4886-a0ff-d23a16c493a5', '7b861cf5-ffe7-4a42-9323-104bbf257aa1'),
(6,  '5fe0d3b3-243c-4323-996e-856122dd1483', '7b861cf5-ffe7-4a42-9323-104bbf257aa1'),
(7,  'd98a42fe-69e6-4e85-83eb-2ed9bec79462', 'b4c116a4-6201-4e00-9b55-2bfe77ac262f'),
(8,  'ddcef114-7ffc-4d5b-88d8-9229904ce2f3', 'a6b02554-ab33-4e9d-916c-75e23f0bbe80'),
(9,  '46f428fc-03cf-4977-ab56-382132c17c66', 'b4c116a4-6201-4e00-9b55-2bfe77ac262f'),
(10, '2f34b2f0-79ef-49de-b92b-e7b3b181a513', 'a6b02554-ab33-4e9d-916c-75e23f0bbe80'),
(11, '0c244c0f-4f04-41cd-958d-c53f1dbfaa8d', 'a6b02554-ab33-4e9d-916c-75e23f0bbe80');

INSERT INTO public.data_pegawai
(
  id,
  status,
  sort,
  user_created,
  date_created,
  user_updated,
  date_updated,
  "Foto_pegawai",
  "Kartu_pegawai",
  "KTP",
  "Nomor_kartu_pegawai",
  "NIP",
  "NIP_lama",
  "Jabatan",
  "Golongan",
  "Rumpun",
  "KSM",
  "Tanggal_masuk",
  "Tanggal_pensiun",
  "TMT_CPNS",
  "TMT_PNS",
  "Satuan_kerja",
  "FK_spt_pegawai_id",
  "Nama_depan",
  "Nama_belakang",
  "Username",
  "User_email",
  "Id_user",
  "Practicioner",
  "HFIS_code",
  "HFIS_display",
  "Code_dpjp",
  "KDDOKTER",
  "Practicioner_detail",
  "Kode_satusehat",
  "No_whatsapp",
  "Posisi_ruang",
  "Substansi",
  "NDE",
  "Subspesialis",
  "Status_pegawai",
  "File_status",
  "Ketarangan",
  "Kode_DPJP"
)
VALUES
('7b861cf5-ffe7-4a42-9323-104bbf257aa1','draft',NULL,NULL,'2026-01-23 08:20:15.406222+07',NULL,NULL,NULL,NULL,NULL,NULL,'198001012010011001',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,'Dr. Andi','Setiawan',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL),
('b4c116a4-6201-4e00-9b55-2bfe77ac262f','draft',NULL,NULL,'2026-01-23 08:20:15.406222+07',NULL,NULL,NULL,NULL,NULL,NULL,'198205052010011002',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,'Dr. Budi','Santoso',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,1,NULL,NULL,NULL),
('a6b02554-ab33-4e9d-916c-75e23f0bbe80','draft',NULL,NULL,'2026-01-23 08:20:15.406222+07',NULL,NULL,NULL,NULL,NULL,NULL,'198503032012012003',NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,'Dr. Citra','Lestari',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL),
('41f13636-53e0-48de-9585-a80e8194e846','draft',NULL,NULL,'2026-01-23 08:20:15.406222+07',NULL,NULL,NULL,NULL,NULL,NULL,'198807072015012004',NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,'Dr. Dewi','Anggraini',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,4,1,NULL,NULL,NULL),
('1338b3ff-5efa-4fe0-b070-485c818b7551','draft',NULL,NULL,'2026-01-23 08:20:15.406222+07',NULL,NULL,NULL,NULL,NULL,NULL,'199009092018011005',NULL,NULL,NULL,NULL,3,NULL,NULL,NULL,NULL,NULL,NULL,'Dr. Eko','Prasetio',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,5,1,NULL,NULL,NULL);

INSERT INTO public.data_telepon_pasien_operasi
(id, "Nomor_telepon", "FK_pasien_operasi_telepon_pasien_operasi_ID")
VALUES
('0df2c6e1-5ea2-4b47-a38d-acbc4e87acf3', '08594929242', '54b80a14-e557-482a-9c02-cf43312fe2b0'),
('87f8e21f-6332-4c65-a681-356acaaee379', '08840004491', '441d2ffb-7167-431c-aed2-c28069c88e56'),
('a42dabda-3a64-4bda-a3d2-619944ce93c0', '08644234690', '8d995e32-56da-493f-9fdf-f7adba543e68'),
('b4df90e4-0048-4944-8852-20bfcc9192ce', '08671298031', '4ad135b4-6f85-463d-86d5-4bd5347b5122'),
('c0f97b1e-2047-4b18-bb74-afdd32fb82bf', '08239962618', '9ca415b2-a22d-4886-a0ff-d23a16c493a5'),
('127b6583-904c-44cc-aae0-4f3877c95349', '08112641507', '5fe0d3b3-243c-4323-996e-856122dd1483'),
('0d71b0b8-7aa9-4542-8fd0-4e06c42b5379', '08836247929', 'd98a42fe-69e6-4e85-83eb-2ed9bec79462'),
('0390102d-95de-489b-a3f5-7b72fb8c4c7a', '08777144416', 'ddcef114-7ffc-4d5b-88d8-9229904ce2f3'),
('2354bf8d-f349-47c0-8bf6-e5ffcd07aa3a', '08138458824', '46f428fc-03cf-4977-ab56-382132c17c66'),
('541cc463-7104-45bd-b3da-27db82cd6722', '08695133731', '2f34b2f0-79ef-49de-b92b-e7b3b181a513'),
('8519adf3-b728-4ca2-a7ae-fada50978a6d', '08515321902', '0c244c0f-4f04-41cd-958d-c53f1dbfaa8d');

INSERT INTO public.data_tindakan_pasien_operasi
(
  id,
  user_created,
  date_created,
  user_updated,
  date_updated,
  "Kode_tindakan",
  "Tindakan",
  "Tindakan_tambahan",
  "FK_pasien_operasi_tindakan_pasien_operasi_ID"
)
VALUES
('e1c9cb34-b65d-4eda-9b5d-acc18375e095', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-12', 'Hemorrhoidectomy', NULL, '54b80a14-e557-482a-9c02-cf43312fe2b0'),
('14b24c41-440a-4c7e-8ca7-6578777c51eb', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-28', 'Hemorrhoidectomy', NULL, '441d2ffb-7167-431c-aed2-c28069c88e56'),
('441455cc-9e97-4b34-82eb-076f8e9dbcbc', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-5', 'Mastectomy', NULL, '8d995e32-56da-493f-9fdf-f7adba543e68'),
('e70b1de6-19dc-4e96-9d25-016346b460d2', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-93', 'Tonsillectomy', NULL, '4ad135b4-6f85-463d-86d5-4bd5347b5122'),
('afb5a9a6-2d3f-48f0-b3e5-110db806a77f', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-84', 'Phacoemulsification', NULL, '9ca415b2-a22d-4886-a0ff-d23a16c493a5'),
('d70d31e4-add4-4bd9-91b2-9e349f117379', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-58', 'Herniotomy', NULL, '5fe0d3b3-243c-4323-996e-856122dd1483'),
('473c3c5a-00f0-499e-95e5-aa622e160eaf', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-42', 'ORIF', NULL, 'd98a42fe-69e6-4e85-83eb-2ed9bec79462'),
('2e666e5a-b10d-4077-b5a1-3d6a6942a11c', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-80', 'Phacoemulsification', NULL, 'ddcef114-7ffc-4d5b-88d8-9229904ce2f3'),
('62a5b0ec-8a96-4111-a562-1fbea465b3fa', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-93', 'Sectio Caesarea', NULL, '46f428fc-03cf-4977-ab56-382132c17c66'),
('6460fe0b-85d6-4895-84b8-3a71fb889138', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-12', 'Herniotomy', NULL, '2f34b2f0-79ef-49de-b92b-e7b3b181a513'),
('e072a775-13bb-4a0d-b946-8b64c463020d', NULL, '2026-01-23 08:22:48.003155+07', NULL, NULL, 'ICD-9-25', 'ORIF', NULL, '0c244c0f-4f04-41cd-958d-c53f1dbfaa8d');
