Creating and Populating a SNOMED CT Database
Creating the Database
DELIMITER ;
SELECT Now() `--`,"Create Database and Initialize" '--';
-- CREATE DATABASE
DROP DATABASE IF EXISTS `snomedct`;
CREATE DATABASE `snomedct` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `snomedct`;
-- INITIALIZE SETTINGS
SET GLOBAL net_write_timeout = 60;
SET GLOBAL net_read_timeout=120;
SET GLOBAL sql_mode ='';
SET SESSION sql_mode ='';Creating Tables for Components
Notes
Creating a Concept Table
Field
Data type
Creating a Description Table
Field
Data type
Creating a Relationship Table
Field
Data type
Creating Tables for Reference Sets
Notes
Creating a Simple Refset Table
Field
Data type
Creating a Language Refset Table
Field
Data type
Creating an Extended Map Refset Table
Field
Data type
Creating a Module Dependency Refset Table
Field
Data type
Importing Release Files
Sample SQL Code for Importing from Full Release
Import Concepts from Full Release
Import Concept File
Import Descriptions from Full Release
Import Description File
Import Relationships from Full Release
Import Relationship File
Import Simple Refsets from Full Release
Import a Simple Refset File
Import Language Refsets from Full Release
Import a Language Refset File
Import Extended Map Refsets from Full Release
Import an Extended Map Refset File
Sample SQL Code for Importing from a Snapshot Release
Import Concepts from Snapshot Release
Import Concept File
Import Simple Refsets from Snapshot Release
Import a Simple Refset File
Last updated
