FHM09062601IBL - create m_injection_site dan m_route_vaccine di one_klinik
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
-- Tabel lokasi suntikan untuk vaksinasi
|
||||
CREATE TABLE `one_klinik`.`m_injection_site` (
|
||||
`M_InjectionSiteID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`M_InjectionSiteCode` varchar(30) NOT NULL DEFAULT '',
|
||||
`M_InjectionSiteName` varchar(100) NOT NULL DEFAULT '',
|
||||
`M_InjectionSiteIsActive` char(1) NOT NULL DEFAULT 'Y',
|
||||
`M_InjectionSiteUserID` int(11) DEFAULT NULL,
|
||||
`M_InjectionSiteCreated` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`M_InjectionSiteLastUpdated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`M_InjectionSiteID`),
|
||||
UNIQUE KEY `M_InjectionSiteCode` (`M_InjectionSiteCode`),
|
||||
KEY `M_InjectionSiteIsActive` (`M_InjectionSiteIsActive`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
INSERT INTO `one_klinik`.`m_injection_site` (M_InjectionSiteCode, M_InjectionSiteName) VALUES
|
||||
('DELTOID_L', 'Deltoid Kiri'),
|
||||
('DELTOID_R', 'Deltoid Kanan'),
|
||||
('THIGH_L', 'Paha Kiri'),
|
||||
('THIGH_R', 'Paha Kanan'),
|
||||
('GLUTEAL_L', 'Bokong Kiri'),
|
||||
('GLUTEAL_R', 'Bokong Kanan'),
|
||||
('FOREARM_L', 'Lengan Bawah Kiri'),
|
||||
('FOREARM_R', 'Lengan Bawah Kanan');
|
||||
|
||||
-- Tabel rute pemberian vaksin
|
||||
CREATE TABLE `one_klinik`.`m_route_vaccine` (
|
||||
`M_RouteVaccineID` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`M_RouteVaccineCode` varchar(30) NOT NULL DEFAULT '',
|
||||
`M_RouteVaccineName` varchar(150) NOT NULL DEFAULT '',
|
||||
`M_RouteVaccineIsActive` char(1) NOT NULL DEFAULT 'Y',
|
||||
`M_RouteVaccineUserID` int(11) DEFAULT NULL,
|
||||
`M_RouteVaccineCreated` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`M_RouteVaccineLastUpdated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`M_RouteVaccineID`),
|
||||
UNIQUE KEY `M_RouteVaccineCode` (`M_RouteVaccineCode`),
|
||||
KEY `M_RouteVaccineIsActive` (`M_RouteVaccineIsActive`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
INSERT INTO `one_klinik`.`m_route_vaccine` (M_RouteVaccineCode, M_RouteVaccineName) VALUES
|
||||
('IM', 'Intramuskular (ke otot)'),
|
||||
('SC', 'Subkutan (bawah kulit)'),
|
||||
('ID', 'Intradermal (lapisan kulit)'),
|
||||
('Oral', 'Diminum'),
|
||||
('Intranasal', 'Melalui hidung');
|
||||
Reference in New Issue
Block a user