/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES tis620 */;
/*!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' */;
DROP TABLE IF EXISTS `diagtype`;
CREATE TABLE `diagtype` (
  `diagtype` char(2) NOT NULL DEFAULT '',
  `name` varchar(100) DEFAULT NULL,
  `nhso_code` varchar(1) DEFAULT NULL,
  `hos_guid` varchar(38) DEFAULT NULL,
  `hos_guid_ext` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`diagtype`),
  KEY `ix_hos_guid` (`hos_guid`),
  KEY `ix_hos_guid_ext` (`hos_guid_ext`)
) ENGINE=InnoDB DEFAULT CHARSET=tis620;

LOCK TABLES `diagtype` WRITE;
/*!40000 ALTER TABLE `diagtype` DISABLE KEYS */;
INSERT INTO `diagtype` VALUES
  ('1', 'Principal Diagnosis(การวินิจฉัยโรคหลัก)', '1', '{B38E77CC-AC77-11E0-A945-0080482624DE}', '238671547222075242518041642778929538270'),
  ('2', 'Comorbidity (โรคอื่นที่เป็นร่วมด้วย)', '4', '{B38E7A7E-AC77-11E0-A945-0080482624DE}', '238671601889507377360434582324255270110'),
  ('3', 'Complication (การวินิจฉัยโรคแทรก)', '4', '{B38E7BFA-AC77-11E0-A945-0080482624DE}', '238671631996209132780882867870956397790'),
  ('4', 'Other (โรคอื่นๆ)', '4', '{B38E7D76-AC77-11E0-A945-0080482624DE}', '238671662102910888201331153417657525470'),
  ('5', 'External Causes(สาเหตุภายนอก)', '5', '{B38E7EE8-AC77-11E0-A945-0080482624DE}', '238671691417331018479136063028919149790'),
  ('6', 'Additional(รหัสเสริม)', '4', NULL, NULL),
  ('7', 'Morphology Code(รหัสเกี่ยวกับเนื้องอก)', '7', NULL, NULL);
/*!40000 ALTER TABLE `diagtype` ENABLE KEYS */;
UNLOCK TABLES;

/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
