sql
stringlengths 6
1.05M
|
|---|
<reponame>kuro-channel/knowledge-1
SELECT * FROM USER_BADGES
ORDER BY INSERT_DATETIME %s
LIMIT ? OFFSET ?;
|
ALTER TABLE change_commits
ADD COLUMN trunk BOOLEAN NOT NULL DEFAULT FALSE;
|
CREATE VIEW {# geotrek.zoning #}.v_cities AS (
SELECT e.*, l.code, l.name
FROM core_topology AS e, zoning_cityedge AS f, zoning_city AS l
WHERE f.topo_object_id = e.id AND f.city_id = l.code
AND deleted = FALSE
);
CREATE VIEW {# geotrek.zoning #}.v_districts AS (
SELECT e.*, l.name
FROM core_topology AS e, zoning_districtedge AS f, zoning_district AS l
WHERE f.topo_object_id = e.id AND f.district_id = l.id
AND deleted = FALSE
);
CREATE VIEW {# geotrek.zoning #}.v_restrictedareas AS (
SELECT e.*, l.id AS zonage_id, l.name, b.name AS type
FROM core_topology AS e, zoning_restrictedareaedge AS f, zoning_restrictedareatype AS b, zoning_restrictedarea AS l
WHERE f.topo_object_id = e.id AND f.restricted_area_id = l.id AND l.area_type_id = b.id
AND deleted = FALSE
);
|
<reponame>SKalt/pg_sql_parser_tests
SELECT sum(x) OVER (ORDER BY x RANGE BETWEEN 5 PRECEDING AND 10 FOLLOWING)
FROM mytable;
|
create table foo (f int);
create table scott (s int);
rename table foo to bar, scot to tiger;
select * from foo;
select * from bar;
rename table foo to bar, scott to tiger;
select * from foo;
select * from bar;
select * from scott;
select * from tiger;
drop table foo;
drop table scott;
drop table bar;
drop table tiger;
|
-- @testpoint: opengauss关键字encoding(非保留),作为游标名,部分测试点合理报错
--前置条件
drop table if exists encoding_test cascade;
create table encoding_test(cid int,fid int);
--关键字不带引号-成功
start transaction;
cursor encoding for select * from encoding_test order by 1;
close encoding;
end;
--关键字带双引号-成功
start transaction;
cursor "encoding" for select * from encoding_test order by 1;
close "encoding";
end;
--关键字带单引号-合理报错
start transaction;
cursor 'encoding' for select * from encoding_test order by 1;
close 'encoding';
end;
--关键字带反引号-合理报错
start transaction;
cursor `encoding` for select * from encoding_test order by 1;
close `encoding`;
end;
drop table if exists encoding_test cascade;
|
<reponame>BrunoAfonsoHenrique/Scripts_SQL_MySQL<gh_stars>0
CREATE DATABASE db_escola;
USE db_escola;
CREATE TABLE alunos(
id_aluno BIGINT AUTO_INCREMENT,
nome VARCHAR(30) NOT NULL,
idade INT NOT NULL,
genero VARCHAR(20),
nota FLOAT NULL,
situacao VARCHAR (15),
PRIMARY KEY (id_aluno)
);
SELECT * FROM alunos;
INSERT INTO alunos(nome, idade, genero, nota, situacao)
values("Bruno", 26, "Masculino", 8.5, "Aprovado"),
("Amanda", 19, "Feminino", 4.0, "Reprovado"),
("Caio", 21, "Nao declarado", 8.5, "Aprovado"),
("Ana", 52, "Outros", 10.0, "Aprovado"),
("Jeferson", 30, "Masculino", 6.0, "Aprovado"),
("Rosana", 24, "Feminino", 9.8, "Aprovado"),
("Leticia", 36, "Feminino", 2.0, "Aprovado"),
("Michael", 18, "Não declarado", 7.5, "Aprovado");
UPDATE alunos SET situacao = "Reprovado" WHERE id_aluno = 7;
SELECT * FROM alunos WHERE nota > 7;
SELECT * FROM alunos WHERE nota < 7;
SELECT * FROM alunos WHERE situacao = "Reprovado";
|
ALTER TABLE [dbo].[smscenter_groups] ADD
[state_sent] [smallint] NOT NULL DEFAULT 0,
[state_enabled] [smallint] NOT NULL DEFAULT 0,
[state_manual] [smallint] NOT NULL DEFAULT 0
GO
CREATE TRIGGER [dbo].[grSmsInsertTrigger] ON [dbo].[GrRec] FOR INSERT AS
INSERT INTO [dbo].[smscenter_groups] (grID) SELECT grID FROM inserted
GO
CREATE TRIGGER [dbo].[grSmsUpdateTrigger] ON [dbo].[GrRec] FOR UPDATE AS
UPDATE [dbo].[smscenter_groups]
SET state_enabled = inserted.grPublish
FROM inserted
INNER JOIN deleted ON inserted.grID = deleted.grID
WHERE [dbo].[smscenter_groups].state_manual = 0
AND inserted.grPublish <> deleted.grPublish
GO
INSERT INTO [dbo].[smscenter_groups] (grID, state_enabled)
SELECT GrRec.grID, GrRec.grPublish
FROM GrRec LEFT OUTER JOIN smscenter_groups ON GrRec.grID = smscenter_groups.grID
WHERE smscenter_groups.grID IS NULL
GO
|
<filename>api/src/main/resources/liquibase/v1/ticketstatus/alter-table-ticket-status-add-deleted-column.sql
ALTER TABLE ticket_status ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE;
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 11 Apr 2021 pada 22.11
-- Versi Server: 10.1.21-MariaDB
-- PHP Version: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `db_bee`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `barang_keluar`
--
CREATE TABLE `barang_keluar` (
`transaksi_id` int(11) NOT NULL,
`barang_id` int(11) DEFAULT NULL,
`kode_barang` varchar(25) DEFAULT NULL,
`jumlah_keluar` decimal(10,0) DEFAULT NULL,
`tanggal_keluar` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `bulan`
--
CREATE TABLE `bulan` (
`id_bulan` int(11) NOT NULL,
`nama_bulan` varchar(160) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `bulan`
--
INSERT INTO `bulan` (`id_bulan`, `nama_bulan`) VALUES
(1, 'Januari'),
(2, 'Februari'),
(3, 'Maret'),
(4, 'April'),
(5, 'Mei'),
(6, 'Juni'),
(7, 'Juli'),
(8, 'Agustus'),
(9, 'September'),
(10, 'Oktober'),
(11, 'November'),
(12, 'Desember');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pelanggan`
--
CREATE TABLE `pelanggan` (
`id_pelanggan` int(11) NOT NULL,
`nama_pelanggan` varchar(120) NOT NULL,
`alamat` varchar(120) NOT NULL,
`no_hp` varchar(120) NOT NULL,
`jenis_kelamin` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `pelanggan`
--
INSERT INTO `pelanggan` (`id_pelanggan`, `nama_pelanggan`, `alamat`, `no_hp`, `jenis_kelamin`) VALUES
(1, 'budi', 'jalen', '089765723', 1),
(2, 'Intan', 'Genteng', '087856', 2),
(3, 'Rika', 'Gontor', '089980', 1),
(4, 'nanda', 'BWI', '121314', 1),
(5, 'dari', 'RGJ', '1234', 1),
(6, 'fanny', 'Jalen', '23443', 2),
(7, 'danang', 'sadar', '123', 1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `pembelian`
--
CREATE TABLE `pembelian` (
`id_pembelian` int(11) NOT NULL,
`barang_idbarang` int(11) DEFAULT NULL,
`harga_beli` varchar(123) NOT NULL,
`jumlah` double NOT NULL,
`tanggal` date NOT NULL,
`suplier` varchar(120) NOT NULL,
`harga_total` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `pembelian`
--
INSERT INTO `pembelian` (`id_pembelian`, `barang_idbarang`, `harga_beli`, `jumlah`, `tanggal`, `suplier`, `harga_total`) VALUES
(1, 1, '200000', 12, '2020-12-14', 'PT. SAMSUL DIGITAL TAMA', 2400000),
(2, 1, '200000', 15, '2020-12-14', 'PT. SAMSUL DIGITAMA', 3000000),
(3, 2, '450000', 5, '2020-12-17', 'PT Maron', 2250000);
-- --------------------------------------------------------
--
-- Struktur dari tabel `penjualan`
--
CREATE TABLE `penjualan` (
`id_penjualan` int(11) NOT NULL,
`kode_pesanan` varchar(20) NOT NULL,
`barang_stockid` int(11) NOT NULL,
`pelanggan_pelangganid` int(11) NOT NULL,
`jumlah` double NOT NULL,
`harga` int(11) NOT NULL,
`tanggal_pesanan` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `penjualan`
--
INSERT INTO `penjualan` (`id_penjualan`, `kode_pesanan`, `barang_stockid`, `pelanggan_pelangganid`, `jumlah`, `harga`, `tanggal_pesanan`) VALUES
(1, 'BR511122020001', 1, 1, 2, 2800000, '2020-12-11'),
(2, 'BR511122020001', 2, 1, 1, 450000, '2020-12-11'),
(3, 'BR524012021002', 1, 1, 1, 1400000, '2021-01-24'),
(4, 'BR525012021003', 7, 5, 2, 1600000, '2021-01-25'),
(5, 'BR525012021004', 2, 6, 2, 900000, '2021-01-25'),
(6, 'BR525012021004', 7, 6, 2, 1600000, '2021-01-25'),
(7, 'BR526012021005', 2, 7, 2, 900000, '2021-01-26'),
(8, 'BR526012021005', 7, 7, 2, 1600000, '2021-01-26'),
(9, 'BR526012021006', 7, 5, 5, 4000000, '2021-01-26');
--
-- Trigger `penjualan`
--
DELIMITER $$
CREATE TRIGGER `insert_transaksi` AFTER INSERT ON `penjualan` FOR EACH ROW INSERT INTO transaksi SET
transaksi.id_transaksi = new.kode_pesanan,
transaksi.barang_stockid = new.barang_stockid,
transaksi.pelanggan_idpelanggan = new.pelanggan_pelangganid,
transaksi.total = (SELECT stock.Hargajual * new.jumlah FROM stock WHERE stock.id_stock = new.barang_stockid),
transaksi.jumlah = new.jumlah
ON duplicate KEY UPDATE transaksi.total = transaksi.total + (SELECT stock.Hargajual * new.jumlah FROM stock WHERE stock.id_stock = new.barang_stockid)
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `riwayat_penjualan`
--
CREATE TABLE `riwayat_penjualan` (
`id_riwayat` int(11) NOT NULL,
`kodepesanan` varchar(120) NOT NULL,
`barang_nama` int(11) NOT NULL,
`jumlah` double NOT NULL,
`harga` double NOT NULL,
`tanggal` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `riwayat_penjualan`
--
INSERT INTO `riwayat_penjualan` (`id_riwayat`, `kodepesanan`, `barang_nama`, `jumlah`, `harga`, `tanggal`) VALUES
(1, 'TED32', 1, 2, 2400000, '2020-11-12');
-- --------------------------------------------------------
--
-- Struktur dari tabel `stock`
--
CREATE TABLE `stock` (
`id_stock` int(11) NOT NULL,
`kode_barang` varchar(120) NOT NULL,
`nama_barang` varchar(120) NOT NULL,
`Hargajual` varchar(120) NOT NULL,
`jumlah_barang` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `stock`
--
INSERT INTO `stock` (`id_stock`, `kode_barang`, `nama_barang`, `Hargajual`, `jumlah_barang`) VALUES
(1, 'ABC', 'Monitor samsung', '1400000', 26),
(2, 'DBS', 'RAM', '450000', 7),
(7, 'DBB', 'hardisk', '800000', -1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `transaksi`
--
CREATE TABLE `transaksi` (
`id_transaksi` varchar(20) NOT NULL,
`barang_stockid` int(11) NOT NULL,
`pelanggan_idpelanggan` int(11) NOT NULL,
`total` double NOT NULL,
`jumlah` int(5) NOT NULL,
`status` int(11) NOT NULL,
`kembalian` double NOT NULL,
`bayar` double NOT NULL,
`tanggal` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `transaksi`
--
INSERT INTO `transaksi` (`id_transaksi`, `barang_stockid`, `pelanggan_idpelanggan`, `total`, `jumlah`, `status`, `kembalian`, `bayar`, `tanggal`) VALUES
('BR511122020001', 1, 1, 2800000, 2, 1, 750000, 4000000, '2020-12-11'),
('BR511122020001', 2, 1, 450000, 1, 1, 750000, 4000000, '2020-12-11'),
('BR524012021002', 1, 1, 1400000, 1, 1, 600000, 2000000, '2021-12-01'),
('BR525012021003', 7, 5, 1600000, 2, 1, 400000, 2000000, '2021-01-25'),
('BR525012021004', 2, 6, 900000, 2, 1, 100000, 2600000, '2021-01-25'),
('BR525012021004', 7, 6, 1600000, 2, 1, 100000, 2600000, '2021-01-25'),
('BR526012021005', 2, 7, 900000, 2, 1, 500000, 3000000, '2021-01-26'),
('BR526012021005', 7, 7, 1600000, 2, 1, 500000, 3000000, '2021-01-26'),
('BR526012021006', 7, 5, 4000000, 5, 1, 1000000, 5000000, '2021-01-26');
-- --------------------------------------------------------
--
-- Struktur dari tabel `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`email` varchar(128) NOT NULL,
`image` varchar(128) NOT NULL,
`password` varchar(256) NOT NULL,
`role_id` int(11) NOT NULL,
`is_active` int(1) NOT NULL,
`data_created` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user`
--
INSERT INTO `user` (`id`, `name`, `email`, `image`, `password`, `role_id`, `is_active`, `data_created`) VALUES
(1, 'asd', '<EMAIL>', 'default.jpg', <PASSWORD>$<PASSWORD>NvUP<PASSWORD>.<PASSWORD>ODm.SiR.eG<PASSWORD>/<PASSWORD>2', 2, 1, 1603802141),
(2, 'qw', '<EMAIL>', 'default.jpg', '$2y$10$Qjrs1l.HBEonRe9/tZA4kuKgbvaTaA05K.m80PNLkcoPd2GH6crI2', 1, 1, 1603802968),
(3, 'erik', '<EMAIL>', 'default.jpg', '$2y$10$uG/DqrKzviwzvYWEoLBpE.bCgv68uofaRn3d9VQ6y5EmbAyBDXlwi', 2, 1, 1605017081),
(4, 'na', '<EMAIL>', 'default.jpg', '$2y$10$0U4hIvrJMgCcXGkW45UTI.GTTrQD3xDC00VBee4yjtlQe5t4pJZ.2', 2, 0, 1605017152);
-- --------------------------------------------------------
--
-- Struktur dari tabel `user_access_menu`
--
CREATE TABLE `user_access_menu` (
`id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user_access_menu`
--
INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(9, 1, 8),
(10, 1, 9),
(11, 1, 3),
(13, 2, 7),
(17, 2, 9),
(18, 2, 6),
(19, 1, 6),
(20, 1, 7),
(21, 2, 2);
-- --------------------------------------------------------
--
-- Struktur dari tabel `user_menu`
--
CREATE TABLE `user_menu` (
`id` int(11) NOT NULL,
`menu` varchar(126) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user_menu`
--
INSERT INTO `user_menu` (`id`, `menu`) VALUES
(1, 'admin'),
(2, 'user'),
(3, 'Menu'),
(6, 'Pembelian'),
(7, 'Penjualan'),
(8, 'Pelaporan'),
(9, 'Pelanggan');
-- --------------------------------------------------------
--
-- Struktur dari tabel `user_role`
--
CREATE TABLE `user_role` (
`id` int(11) NOT NULL,
`role` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user_role`
--
INSERT INTO `user_role` (`id`, `role`) VALUES
(1, 'Administrator'),
(2, 'Member');
-- --------------------------------------------------------
--
-- Struktur dari tabel `user_sub_menu`
--
CREATE TABLE `user_sub_menu` (
`id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL,
`title` varchar(128) NOT NULL,
`url` varchar(128) NOT NULL,
`icon` varchar(128) NOT NULL,
`is_active` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user_sub_menu`
--
INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES
(1, 1, 'Dashboard', 'admin', 'fas fa-fw fa-tachometer-alt', 1),
(2, 2, 'My Profile', 'user', 'fas fa-fw fa-user', 1),
(3, 2, 'Edit Profile', 'user/edit', 'fas fa-fw fa-user-edit', 1),
(4, 3, 'Menu Management', 'menu', 'fas fa-fw fa-folder', 1),
(5, 3, 'Submenu Management', 'menu/submenu', 'fas fa-fw fa-folder-open', 1),
(9, 1, 'Role', 'admin/role', 'fas fa-fw fa-user-tie', 1),
(10, 6, 'Pembelian', 'pembelian', 'fas fa-fw fa-shopping-cart', 1),
(11, 6, 'Stock', 'pembelian/stock', 'fas fa-fw fa-list-ol', 1),
(12, 9, 'Pelanggan', 'pelanggan', 'fas fa-fw fa-user-tie', 1),
(14, 7, 'Penjualan', 'penjualan', 'fas fa-fw fa-truck', 1),
(15, 7, 'Transaksi', 'penjualan/transaksi', 'fas fa-fw fa-money-bill-alt', 1),
(16, 8, 'Riwayat', 'pelaporan/riwayat', 'fas fa-fw fa-history', 1),
(17, 8, 'Grafik', 'pelaporan/Grafik', 'fas fa-fw fa-chart-area', 1),
(18, 6, 'Barang_keluar', 'Pembelian/Barang_keluar', 'fas fa-fw fa-sign-in-alt', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `barang_keluar`
--
ALTER TABLE `barang_keluar`
ADD PRIMARY KEY (`transaksi_id`);
--
-- Indexes for table `bulan`
--
ALTER TABLE `bulan`
ADD PRIMARY KEY (`id_bulan`);
--
-- Indexes for table `pelanggan`
--
ALTER TABLE `pelanggan`
ADD PRIMARY KEY (`id_pelanggan`);
--
-- Indexes for table `pembelian`
--
ALTER TABLE `pembelian`
ADD PRIMARY KEY (`id_pembelian`);
--
-- Indexes for table `penjualan`
--
ALTER TABLE `penjualan`
ADD PRIMARY KEY (`id_penjualan`);
--
-- Indexes for table `riwayat_penjualan`
--
ALTER TABLE `riwayat_penjualan`
ADD PRIMARY KEY (`id_riwayat`);
--
-- Indexes for table `stock`
--
ALTER TABLE `stock`
ADD PRIMARY KEY (`id_stock`),
ADD UNIQUE KEY `kode_barang` (`kode_barang`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_access_menu`
--
ALTER TABLE `user_access_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_menu`
--
ALTER TABLE `user_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_role`
--
ALTER TABLE `user_role`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_sub_menu`
--
ALTER TABLE `user_sub_menu`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `bulan`
--
ALTER TABLE `bulan`
MODIFY `id_bulan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `pelanggan`
--
ALTER TABLE `pelanggan`
MODIFY `id_pelanggan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `pembelian`
--
ALTER TABLE `pembelian`
MODIFY `id_pembelian` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `penjualan`
--
ALTER TABLE `penjualan`
MODIFY `id_penjualan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `riwayat_penjualan`
--
ALTER TABLE `riwayat_penjualan`
MODIFY `id_riwayat` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `stock`
--
ALTER TABLE `stock`
MODIFY `id_stock` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `user_access_menu`
--
ALTER TABLE `user_access_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `user_menu`
--
ALTER TABLE `user_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `user_role`
--
ALTER TABLE `user_role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `user_sub_menu`
--
ALTER TABLE `user_sub_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
/*!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 */;
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 30 Jan 2022 pada 07.55
-- Versi server: 10.4.14-MariaDB
-- Versi PHP: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `astonprinter`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `barang_keluars`
--
CREATE TABLE `barang_keluars` (
`id` bigint(20) UNSIGNED NOT NULL,
`kode_barang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`stok` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Trigger `barang_keluars`
--
DELIMITER $$
CREATE TRIGGER `kurang_stok` AFTER INSERT ON `barang_keluars` FOR EACH ROW BEGIN
UPDATE data_barang SET stok=stok-NEW.stok WHERE kode_barang=NEW.kode_barang;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `barang_masuk`
--
CREATE TABLE `barang_masuk` (
`id` bigint(20) UNSIGNED NOT NULL,
`kode_barang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`kode_supplier` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`stok` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `barang_masuk`
--
INSERT INTO `barang_masuk` (`id`, `kode_barang`, `kode_supplier`, `stok`, `created_at`, `updated_at`) VALUES
(1, 'TM08', 'S011', 8, '2022-01-29 23:38:06', '2022-01-29 23:38:06');
--
-- Trigger `barang_masuk`
--
DELIMITER $$
CREATE TRIGGER `tambah_stok` AFTER INSERT ON `barang_masuk` FOR EACH ROW BEGIN
UPDATE data_barang SET stok=stok+NEW.stok WHERE kode_barang=NEW.kode_barang;
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `tambah_stok2` AFTER UPDATE ON `barang_masuk` FOR EACH ROW BEGIN
UPDATE data_barang SET stok=stok+NEW.stok WHERE kode_barang=NEW.kode_barang;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `data_barang`
--
CREATE TABLE `data_barang` (
`id` bigint(20) UNSIGNED NOT NULL,
`kode_barang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_barang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`harga` int(11) NOT NULL,
`stok` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `data_barang`
--
INSERT INTO `data_barang` (`id`, `kode_barang`, `nama_barang`, `harga`, `stok`, `created_at`, `updated_at`) VALUES
(6, 'TM08', '<NAME>', 12000, 20, '2022-01-29 23:12:04', '2022-01-29 23:12:04');
-- --------------------------------------------------------
--
-- Struktur dari tabel `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struktur dari tabel `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(33, '2014_10_12_000000_create_users_table', 1),
(34, '2014_10_12_100000_create_password_resets_table', 1),
(35, '2019_08_19_000000_create_failed_jobs_table', 1),
(36, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(37, '2022_01_29_140357_create_data_barangs_table', 1),
(38, '2022_01_29_142248_create_suppliers_table', 1),
(39, '2022_01_29_142448_create_barang_masuks_table', 1),
(40, '2022_01_30_034010_create_barang_keluars_table', 1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struktur dari tabel `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struktur dari tabel `supplier`
--
CREATE TABLE `supplier` (
`id` bigint(20) UNSIGNED NOT NULL,
`kode_supplier` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_supplier` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`telephone` bigint(20) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `supplier`
--
INSERT INTO `supplier` (`id`, `kode_supplier`, `nama_supplier`, `email`, `telephone`, `created_at`, `updated_at`) VALUES
(3, 'S011', 'NaufalAm', '<EMAIL>', 89833234, '2022-01-29 23:19:52', '2022-01-29 23:29:21');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `barang_keluars`
--
ALTER TABLE `barang_keluars`
ADD PRIMARY KEY (`id`),
ADD KEY `barang` (`kode_barang`);
--
-- Indeks untuk tabel `barang_masuk`
--
ALTER TABLE `barang_masuk`
ADD PRIMARY KEY (`id`),
ADD KEY `stokBertambah` (`kode_barang`),
ADD KEY `supplier` (`kode_supplier`);
--
-- Indeks untuk tabel `data_barang`
--
ALTER TABLE `data_barang`
ADD PRIMARY KEY (`id`),
ADD KEY `kode_barang` (`kode_barang`);
--
-- Indeks untuk tabel `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indeks untuk tabel `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indeks untuk tabel `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
--
-- Indeks untuk tabel `supplier`
--
ALTER TABLE `supplier`
ADD PRIMARY KEY (`id`),
ADD KEY `kode_supplier` (`kode_supplier`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `barang_keluars`
--
ALTER TABLE `barang_keluars`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `barang_masuk`
--
ALTER TABLE `barang_masuk`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `data_barang`
--
ALTER TABLE `data_barang`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT untuk tabel `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT untuk tabel `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `supplier`
--
ALTER TABLE `supplier`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `barang_keluars`
--
ALTER TABLE `barang_keluars`
ADD CONSTRAINT `barang` FOREIGN KEY (`kode_barang`) REFERENCES `data_barang` (`kode_barang`);
--
-- Ketidakleluasaan untuk tabel `barang_masuk`
--
ALTER TABLE `barang_masuk`
ADD CONSTRAINT `stokBertambah` FOREIGN KEY (`kode_barang`) REFERENCES `data_barang` (`kode_barang`),
ADD CONSTRAINT `supplier` FOREIGN KEY (`kode_supplier`) REFERENCES `supplier` (`kode_supplier`);
COMMIT;
/*!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 */;
|
-- base tables
DROP TABLE IF EXISTS post;
CREATE TABLE post (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
title VARCHAR(200) NOT NULL,
slug VARCHAR(200) NOT NULL,
content TEXT NOT NULL,
hit_counter BIGINT UNSIGNED NOT NULL DEFAULT 0,
created_at DATETIME NULL DEFAULT NULL,
updated_at DATETIME NULL DEFAULT NULL,
user_id INT UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`slug`)
) ENGINE = MyISAM;
DROP TABLE IF EXISTS category;
CREATE TABLE category (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
category VARCHAR(200) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`category`)
) ENGINE = MyISAM;
DROP TABLE IF EXISTS post_category;
CREATE TABLE post_category (
post_id INT UNSIGNED NOT NULL,
category_id INT UNSIGNED NOT NULL,
PRIMARY KEY (`post_id`, `category_id`)
) ENGINE = MyISAM;
DROP TABLE IF EXISTS user;
CREATE TABLE user (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
username VARCHAR(32) NOT NULL,
password VARCHAR(128) NOT NULL,
fullname VARCHAR(100) NOT NULL,
coolname VARCHAR(50) NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`username`)
) ENGINE = MyISAM;
-- views
DROP VIEW IF EXISTS view_post;
CREATE VIEW view_post AS
SELECT
p.id,
p.title,
p.slug,
p.content,
p.hit_counter,
p.created_at,
p.updated_at,
p.user_id,
u.username as author_username,
u.fullname as author_fullname,
u.coolname as author_coolname,
group_concat(c.category) as categories
FROM post p
JOIN user u ON u.id = p.user_id
LEFT JOIN post_category pc ON pc.post_id = p.id
LEFT JOIN category c ON c.id = pc.category_id
GROUP BY p.id;
-- triggers
DROP TRIGGER IF EXISTS post_after_delete;
DELIMITER $$
CREATE TRIGGER post_after_delete
AFTER DELETE ON post
FOR EACH ROW
BEGIN
DELETE FROM post_category WHERE post_id = OLD.id;
END$$
DELIMITER ;
DROP TRIGGER IF EXISTS category_after_delete;
DELIMITER $$
CREATE TRIGGER category_after_delete
AFTER DELETE ON category
FOR EACH ROW
BEGIN
DELETE FROM post_category WHERE category_id = OLD.id;
END$$
DELIMITER ;
|
select
a
, b
from
test_table as t1
join join_table1 as jt1
on t1.a = jt1.a
inner join join_table2 as jt2
on t1.a = jt2.a
left join join_table3 as jt3
on t1.a = jt3.a
left outer join join_table4 as jt4
on t1.a = jt4.a
right join join_table5 as jt5
on t1.a = jt5.a
right outer join join_table6 as jt6
on t1.a = jt6.a
full join join_table7 as jt7
on t1.a = jt7.a
full outer join join_table8 as jt8
on t1.a = jt8.a
cross join join_table9 as jt9
on t1.a = jt9.a
|
<reponame>robhubi/GIPrva
CREATE TABLE [dbo].[Link_ImpError] (
[LINK_ID] INT NULL,
[FROM_NODE] INT NULL,
[TO_NODE] INT NULL,
[ACCESS_TOW] INT NULL,
[ACCESS_BKW] INT NULL,
[ErrorCode] INT NULL,
[ErrorColumn] INT NULL
);
|
-- file:circle.sql ln:15 expect:true
INSERT INTO CIRCLE_TBL VALUES ('<(100,200),10>')
|
<reponame>brandt/ybinlogp<filename>testing/gen_test_data.sql
-- Used by testing/gen_test_data.sh to create testing data
CREATE DATABASE ybinlogp;
USE ybinlogp;
CREATE TABLE test1(x INT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO test1 VALUES(1);
INSERT INTO test1 VALUES(2);
INSERT INTO test1 VALUES(3);
INSERT INTO test1 VALUES(4);
INSERT INTO test1 VALUES(5);
INSERT INTO test1 VALUES(6);
INSERT INTO test1 VALUES(7);
CREATE DATABASE foobar;
USE foobar;
CREATE TABLE test2(id INT AUTO_INCREMENT PRIMARY KEY, x VARCHAR(255)) ENGINE=InnoDB;
INSERT INTO test2(x) VALUES("This is the winter of our discontent");
INSERT INTO test2(x) VALUES("Tomorrow and tomorrow and tomorrow");
INSERT INTO test2(x) VALUES("Bananas r good");
FLUSH LOGS;
USE ybinlogp;
BEGIN;
INSERT INTO test1 VALUES(8);
ROLLBACK;
BEGIN;
INSERT INTO test1 VALUES(8);
COMMIT;
INSERT INTO test1 VALUES(9);
FLUSH LOGS;
|
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5568890_sys_warehouse_and_olcand_minor_tweaksl.sql
-- 2020-09-26T12:56:14.840Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,Description,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540553,0,190,TO_TIMESTAMP('2020-09-26 14:56:14','YYYY-MM-DD HH24:MI:SS'),100,'Der Lager-Suchschlüssel muss eindeutig sein','D','Y','Y','WarehouseValue_UniqueIndex','N',TO_TIMESTAMP('2020-09-26 14:56:14','YYYY-MM-DD HH24:MI:SS'),100,'IsActive=''Y''')
;
-- 2020-09-26T12:56:14.843Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Index_Table_ID=540553 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID)
;
-- 2020-09-26T12:56:35.892Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,1248,541041,540553,0,TO_TIMESTAMP('2020-09-26 14:56:35','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',20,TO_TIMESTAMP('2020-09-26 14:56:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-09-26T12:56:53.276Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,3005,541042,540553,0,TO_TIMESTAMP('2020-09-26 14:56:53','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',10,TO_TIMESTAMP('2020-09-26 14:56:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-09-26T12:57:08.444Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE UNIQUE INDEX WarehouseValue_UniqueIndex ON M_Warehouse (Value,AD_Client_ID) WHERE IsActive='Y'
;
-- 2020-09-26T13:08:40.058Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', IsCalculated='Y', IsRangeFilter='Y',Updated=TO_TIMESTAMP('2020-09-26 15:08:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=544276
;
-- 2020-09-26T13:09:57.662Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=550426
;
-- 2020-09-26T13:09:57.670Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=70,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=544279
;
-- 2020-09-26T13:09:57.675Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=80,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549849
;
-- 2020-09-26T13:09:57.679Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=90,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=550427
;
-- 2020-09-26T13:09:57.684Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=100,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=563706
;
-- 2020-09-26T13:09:57.688Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=110,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=559589
;
-- 2020-09-26T13:09:57.692Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=120,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=544276
;
-- 2020-09-26T13:09:57.696Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=130,Updated=TO_TIMESTAMP('2020-09-26 15:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=544273
;
|
<filename>plugins/myad/install/install.sql
INSERT INTO `qb_config` (`id`, `type`, `title`, `c_key`, `c_value`, `form_type`, `options`, `ifsys`, `htmlcode`, `c_descrip`, `list`, `sys_id`) VALUES(0, -1, '是否开放申请', 'is_allow_add', '1', 'radio', '1|开启\r\n0|关闭', 0, '', '', 0, 5);
INSERT INTO `qb_config` (`id`, `type`, `title`, `c_key`, `c_value`, `form_type`, `options`, `ifsys`, `htmlcode`, `c_descrip`, `list`, `sys_id`) VALUES(0, -1, '每个广告位最多申请几天', 'total_day', '0', 'nummber', '', 0, '', '', 0, 5);
DROP TABLE IF EXISTS `qb_myad_info`;
CREATE TABLE IF NOT EXISTS `qb_myad_info` (
`id` int(8) NOT NULL AUTO_INCREMENT,
`fid` int(7) NOT NULL COMMENT '广告位置',
`type` tinyint(1) NOT NULL COMMENT '广告类型.0文字广告,1单图广告,2幻灯片广告',
`title` varchar(100) NOT NULL COMMENT '广告标题',
`picurl` varchar(150) NOT NULL COMMENT '广告单图',
`picurls` text NOT NULL COMMENT '组图',
`about` text NOT NULL COMMENT '广告介绍',
`url` varchar(255) NOT NULL COMMENT '连接网址',
`uid` int(8) NOT NULL COMMENT '用户ID',
`status` tinyint(4) NOT NULL COMMENT '审核状态',
`create_time` int(10) NOT NULL COMMENT '添加时间',
`begin_time` int(10) NOT NULL COMMENT '投放开始日期',
`end_time` int(10) NOT NULL COMMENT '投放结束日期',
PRIMARY KEY (`id`),
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='广告列表' AUTO_INCREMENT=1 ;
|
<reponame>cjackie/DuduShopping
CREATE TABLE ChatRooms(
RoomId BIGINT PRIMARY KEY IDENTITY,
Name VARCHAR(50) NOT NULL DEFAULT '',
CreatedAt DATETIME NOT NULL DEFAULT SYSDATETIME()
)
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 22, 2016 at 08:46 AM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `sixthformapplication`
--
-- --------------------------------------------------------
--
-- Table structure for table `applicant`
--
CREATE TABLE `applicant` (
`login_id` int(11) DEFAULT NULL,
`applicant_id` int(11) NOT NULL,
`fname` varchar(25) NOT NULL,
`sname` varchar(25) NOT NULL,
`email` varchar(50) NOT NULL,
`gender` enum('male','female') NOT NULL,
`uln` varchar(10) NOT NULL,
`uci` varchar(13) NOT NULL,
`addressline1` varchar(30) NOT NULL,
`addressline2` varchar(30) NOT NULL,
`postcode` varchar(7) NOT NULL,
`telnumber` varchar(11) NOT NULL,
`mobilenumber` varchar(11) NOT NULL,
`year11school` varchar(25) NOT NULL,
`schooladdressline1` varchar(30) NOT NULL,
`schooladdressline2` varchar(30) NOT NULL,
`year11schoolpostcode` varchar(7) NOT NULL,
`year11completed` year(4) NOT NULL,
`highdownstudent` bit(1) NOT NULL,
`parentcarerfname` varchar(25) NOT NULL,
`parentcarersname` varchar(25) NOT NULL,
`parentcareraddressline1` varchar(30) NOT NULL,
`parentcareraddressline2` varchar(30) NOT NULL,
`parentcarerpostcode` varchar(7) NOT NULL,
`parentcarertelnumber` varchar(11) NOT NULL,
`parentcarermobilenumber` varchar(11) NOT NULL,
`contact2fname` varchar(25) NOT NULL,
`contact2sname` varchar(25) NOT NULL,
`contact2addressline1` varchar(30) NOT NULL,
`contact2addressline2` varchar(30) NOT NULL,
`contact2postcode` varchar(7) NOT NULL,
`contact2telnumber` varchar(11) NOT NULL,
`contact2mobilenumber` varchar(11) NOT NULL,
`studentcourseinterest` bit(1) NOT NULL,
`entryrequirementsknown` bit(1) NOT NULL,
`specialrequirements` text NOT NULL,
`interviewnotes` text NOT NULL,
`subjectchoice` int(11) NOT NULL,
`enrichment` text NOT NULL,
`tutoremail` varchar(50) NOT NULL,
`studentachievements` text NOT NULL,
`learningneeds` bit(1) NOT NULL,
`learningneedsdetails` text NOT NULL,
`learningsupport` bit(1) NOT NULL,
`learningsupportdetails` text NOT NULL,
`statemented` bit(1) NOT NULL,
`statementeddetails` text NOT NULL,
`specialconsiderations` bit(1) NOT NULL,
`specialconsiderationsdetails` text NOT NULL,
`freeschoolmeals` bit(1) NOT NULL,
`fnameoftutor` varchar(25) NOT NULL,
`snameoftutor` varchar(25) NOT NULL,
`predictedoractualqualifications` bit(1) NOT NULL,
`tutorauthenticator` varchar(20) NOT NULL,
`selectedcourses_id` int(11) NOT NULL,
`accepted` bit(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `applicant`
--
INSERT INTO `applicant` (`login_id`, `applicant_id`, `fname`, `sname`, `email`, `gender`, `uln`, `uci`, `addressline1`, `addressline2`, `postcode`, `telnumber`, `mobilenumber`, `year11school`, `schooladdressline1`, `schooladdressline2`, `year11schoolpostcode`, `year11completed`, `highdownstudent`, `parentcarerfname`, `parentcarersname`, `parentcareraddressline1`, `parentcareraddressline2`, `parentcarerpostcode`, `parentcarertelnumber`, `parentcarermobilenumber`, `contact2fname`, `contact2sname`, `contact2addressline1`, `contact2addressline2`, `contact2postcode`, `contact2telnumber`, `contact2mobilenumber`, `studentcourseinterest`, `entryrequirementsknown`, `specialrequirements`, `interviewnotes`, `subjectchoice`, `enrichment`, `tutoremail`, `studentachievements`, `learningneeds`, `learningneedsdetails`, `learningsupport`, `learningsupportdetails`, `statemented`, `statementeddetails`, `specialconsiderations`, `specialconsiderationsdetails`, `freeschoolmeals`, `fnameoftutor`, `snameoftutor`, `predictedoractualqualifications`, `tutorauthenticator`, `selectedcourses_id`, `accepted`) VALUES
(3, 1, 'Ermal', 'Laci', '<EMAIL>', 'male', '', '', '', '', '', '', '', '', '', '', '', 2014, b'1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', b'1', b'0', '', '', 0, '', '<EMAIL>', 'loads', b'0', '', b'0', '', b'0', '', b'0', '', b'0', '', '', b'1', '7Rge46fiCLEp8AuVYB3N', 1, b'0'),
(4, 2, 'Erion', 'Laci', '<EMAIL>', 'male', '', '', '', '', '', '', '', '', '', '', '', 2014, b'1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', b'0', b'0', '', '', 0, '', '<EMAIL>', '', b'0', '', b'0', '', b'0', '', b'0', '', b'0', '', '', b'0', 'oim2nxB7HfjOEe85gUFh', 2, b'0');
-- --------------------------------------------------------
--
-- Table structure for table `grades`
--
CREATE TABLE `grades` (
`grade_id` int(11) NOT NULL,
`subject_id` int(11) DEFAULT NULL,
`predicted_grade` enum('A*','A','B','C','D','E','F','G','U') NOT NULL,
`mock_result` enum('A*','A','B','C','D','E','F','G','U') NOT NULL,
`actual_result` enum('A*','A','B','C','D','E','F','G','U') NOT NULL,
`year_taken` year(4) NOT NULL,
`applicant_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `grades`
--
INSERT INTO `grades` (`grade_id`, `subject_id`, `predicted_grade`, `mock_result`, `actual_result`, `year_taken`, `applicant_id`) VALUES
(1, 1, 'A', 'A', 'A', 2015, 1),
(2, 2, 'A*', 'B', 'C', 2015, 1),
(3, 1, 'B', 'C', 'D', 2015, 2),
(4, 2, 'A', 'A', 'A', 2015, 2);
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE `login` (
`login_id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`password` varchar(25) NOT NULL,
`type` enum('admin','teacher','applicant') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`login_id`, `username`, `password`, `type`) VALUES
(2, 'admin', '<PASSWORD>', '<PASSWORD>'),
(3, 'ELaci', 'vjA0WXmydgFTLf1xM8JN', 'applicant'),
(4, 'ELaci2', '<PASSWORD>', 'applicant');
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE `news` (
`news_id` int(11) NOT NULL,
`information` text,
`nameofinformation` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `recipient`
--
CREATE TABLE `recipient` (
`login_id` int(11) NOT NULL,
`news_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `selected courses`
--
CREATE TABLE `selected courses` (
`selectedcourse_id` int(11) NOT NULL,
`block_a` int(11) DEFAULT NULL,
`block_b` int(11) DEFAULT NULL,
`block_c` int(11) DEFAULT NULL,
`block_d` int(11) DEFAULT NULL,
`block_e` int(11) DEFAULT NULL,
`level2_block` int(11) DEFAULT NULL,
`courses_reasons` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `selected courses`
--
INSERT INTO `selected courses` (`selectedcourse_id`, `block_a`, `block_b`, `block_c`, `block_d`, `block_e`, `level2_block`, `courses_reasons`) VALUES
(1, 1, 3, 8, 9, 12, NULL, 'Want'),
(2, 2, 4, 7, 9, 12, NULL, 've');
-- --------------------------------------------------------
--
-- Table structure for table `sixth form subject`
--
CREATE TABLE `sixth form subject` (
`sixthformsubject_id` int(11) NOT NULL,
`name` varchar(25) DEFAULT NULL,
`level` enum('A Level','Level 2') DEFAULT NULL,
`block` enum('A','B','C','D','E') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sixth form subject`
--
INSERT INTO `sixth form subject` (`sixthformsubject_id`, `name`, `level`, `block`) VALUES
(1, 'Maths', 'A Level', 'A'),
(2, 'English', 'A Level', 'A'),
(3, 'Physics', 'A Level', 'B'),
(4, 'Biology', 'A Level', 'B'),
(5, 'Government Politics', 'A Level', 'B'),
(6, 'Sociology', 'A Level', 'B'),
(7, 'Physics', 'A Level', 'C'),
(8, 'Computing', 'A Level', 'C'),
(9, 'ICT', 'A Level', 'D'),
(10, 'Computing', 'A Level', 'D'),
(11, 'Further Maths', 'A Level', 'E'),
(12, 'Art', 'A Level', 'E'),
(13, 'Maths', 'Level 2', NULL),
(14, 'English', 'Level 2', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `storedinformation`
--
CREATE TABLE `storedinformation` (
`dataid` int(11) NOT NULL,
`name` varchar(25) NOT NULL,
`type` enum('VARCHAR','ENUM','INT','TEXT','BIT','YEAR') NOT NULL,
`length` varchar(50) NOT NULL,
`display` varchar(60) NOT NULL,
`validate` enum('postcode','email','numeric','name','none') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `storedinformation`
--
INSERT INTO `storedinformation` (`dataid`, `name`, `type`, `length`, `display`, `validate`) VALUES
(12, 'fname', 'VARCHAR', '25', 'First Name:', 'name'),
(13, 'sname', 'VARCHAR', '25', 'Surname:', 'name'),
(14, 'email', 'VARCHAR', '25', 'Email:', 'email'),
(15, 'gender', 'ENUM', 'male,female', 'Gender:', 'none'),
(17, 'uln', 'VARCHAR', '10', 'Unique Learner Number:', 'numeric'),
(18, 'uci', 'VARCHAR', '13', 'Unique Candidate Identifier:', 'numeric'),
(19, 'addressline1', 'VARCHAR', '30', 'Address:', 'none'),
(20, 'addressline2', 'VARCHAR', '30', 'Address line 2:', 'none'),
(21, 'postcode', 'VARCHAR', '7', 'Postcode:', 'postcode'),
(22, 'telnumber', 'VARCHAR', '11', 'Telephone Number:', 'numeric'),
(23, 'mobilenumber', 'VARCHAR', '11', 'Mobile Number:', 'numeric'),
(24, 'year11completed', 'YEAR', '2014-2016', 'Year in which you will complete (or have completed) Year 11:', 'none'),
(25, 'year11school', 'VARCHAR', '25', 'School attended in Year 11:', 'none'),
(26, 'schooladdressline1', 'VARCHAR', '30', 'Year 11 School Address:', 'none'),
(27, 'schooladdressline2', 'VARCHAR', '30', 'Year 11 School Address line 2:', 'none'),
(28, 'year11schoolpostcode', 'VARCHAR', '7', 'Year 11 School Postcode:', 'postcode'),
(29, 'highdownstudent', 'BIT', '1', 'Have you previously been a student at Highdown School?', 'none'),
(30, 'parentcarerfname', 'VARCHAR', '25', 'First Name Of Parent/Carer:', 'name'),
(31, 'parentcarersname', 'VARCHAR', '25', 'Surname Of Parent/Carer:', 'name'),
(32, 'parentcareraddressline1', 'VARCHAR', '30', 'Parent/Carer Address:', 'none'),
(33, 'parentcareraddressline2', 'VARCHAR', '30', 'Parent/Carer Address line 2:', 'none'),
(34, 'parentcarerpostcode', 'VARCHAR', '7', 'Parent/Carer Postcode:', 'postcode'),
(35, 'parentcarertelnumber', 'VARCHAR', '11', 'Parent/Carer Telephone Number:', 'numeric'),
(36, 'parentcarermobilenumber', 'VARCHAR', '11', 'Parent/Carer Mobile Number:', 'numeric'),
(37, 'contact2fname', 'VARCHAR', '25', 'Emergency Contact 2 First Name:', 'none'),
(38, 'contact2sname', 'VARCHAR', '25', 'Emergency Contact 2 Surname:', 'name'),
(39, 'contact2addressline1', 'VARCHAR', '30', 'Emergency contact 2 Address:', 'none'),
(40, 'contact2addressline2', 'VARCHAR', '30', 'Emergency contact 2 Address line 2:', 'none'),
(41, 'contact2postcode', 'VARCHAR', '7', 'Emergency Contact 2 Postcode:', 'postcode'),
(42, 'contact2telnumber', 'VARCHAR', '11', 'Emergency Contact 2 Telephone Number:', 'numeric'),
(43, 'contact2mobilenumber', 'VARCHAR', '11', 'Emergency Contact 2 Mobile Number:', 'numeric'),
(44, 'tutoremail', 'VARCHAR', '25', 'Tutor Email:', 'email');
-- --------------------------------------------------------
--
-- Table structure for table `subject`
--
CREATE TABLE `subject` (
`subject_id` int(11) NOT NULL,
`name` varchar(25) NOT NULL,
`exam_board` enum('AQA','OCR','EDEXCEL') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subject`
--
INSERT INTO `subject` (`subject_id`, `name`, `exam_board`) VALUES
(1, 'Maths', 'AQA'),
(2, 'English', 'AQA'),
(3, 'History', 'AQA'),
(4, 'Geography', 'AQA'),
(5, 'Further Maths', 'AQA'),
(6, 'ICT', 'AQA'),
(7, 'Computing', 'AQA'),
(8, 'P.E', 'AQA'),
(9, 'Physics', 'AQA'),
(10, 'Chemistry', 'AQA'),
(11, 'Biology', 'AQA'),
(12, 'Art Graphics', 'AQA'),
(13, 'Fine Art', 'AQA'),
(14, 'Drama', 'AQA'),
(15, 'Maths', 'OCR'),
(16, 'English', 'OCR'),
(17, 'History', 'OCR'),
(18, 'Geography', 'OCR'),
(19, 'Further Maths', 'OCR'),
(20, 'ICT', 'OCR'),
(21, 'Computing', 'OCR'),
(22, 'P.E', 'OCR'),
(23, 'Physics', 'OCR'),
(24, 'Chemistry', 'OCR'),
(25, 'Biology', 'OCR'),
(26, 'Art Graphics', 'OCR'),
(27, 'Fine Art', 'OCR'),
(28, 'Drama', 'OCR'),
(29, 'No Subject', NULL),
(30, 'No Subject', NULL),
(31, 'No Subject', 'AQA');
-- --------------------------------------------------------
--
-- Table structure for table `teacher`
--
CREATE TABLE `teacher` (
`teacher_id` int(11) NOT NULL,
`fname` varchar(25) DEFAULT NULL,
`sname` varchar(25) DEFAULT NULL,
`department` set('Maths','English') DEFAULT NULL,
`login_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `applicant`
--
ALTER TABLE `applicant`
ADD PRIMARY KEY (`applicant_id`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `selectedcourses_id` (`selectedcourses_id`),
ADD KEY `applicant` (`login_id`);
--
-- Indexes for table `grades`
--
ALTER TABLE `grades`
ADD PRIMARY KEY (`grade_id`),
ADD KEY `subject_id` (`subject_id`),
ADD KEY `applicant_id` (`applicant_id`);
--
-- Indexes for table `login`
--
ALTER TABLE `login`
ADD PRIMARY KEY (`login_id`);
--
-- Indexes for table `news`
--
ALTER TABLE `news`
ADD PRIMARY KEY (`news_id`);
--
-- Indexes for table `recipient`
--
ALTER TABLE `recipient`
ADD PRIMARY KEY (`login_id`,`news_id`),
ADD KEY `news_id` (`news_id`);
--
-- Indexes for table `selected courses`
--
ALTER TABLE `selected courses`
ADD PRIMARY KEY (`selectedcourse_id`),
ADD KEY `level2_block` (`level2_block`),
ADD KEY `block_a` (`block_a`) USING BTREE,
ADD KEY `block_b` (`block_b`) USING BTREE,
ADD KEY `block_c` (`block_c`) USING BTREE,
ADD KEY `block_d` (`block_d`) USING BTREE,
ADD KEY `block_e` (`block_e`) USING BTREE;
--
-- Indexes for table `sixth form subject`
--
ALTER TABLE `sixth form subject`
ADD PRIMARY KEY (`sixthformsubject_id`);
--
-- Indexes for table `storedinformation`
--
ALTER TABLE `storedinformation`
ADD PRIMARY KEY (`dataid`),
ADD UNIQUE KEY `display` (`display`);
--
-- Indexes for table `subject`
--
ALTER TABLE `subject`
ADD PRIMARY KEY (`subject_id`);
--
-- Indexes for table `teacher`
--
ALTER TABLE `teacher`
ADD PRIMARY KEY (`teacher_id`),
ADD KEY `login_id` (`login_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `applicant`
--
ALTER TABLE `applicant`
MODIFY `applicant_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `grades`
--
ALTER TABLE `grades`
MODIFY `grade_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `login`
--
ALTER TABLE `login`
MODIFY `login_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
MODIFY `news_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `selected courses`
--
ALTER TABLE `selected courses`
MODIFY `selectedcourse_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `sixth form subject`
--
ALTER TABLE `sixth form subject`
MODIFY `sixthformsubject_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `storedinformation`
--
ALTER TABLE `storedinformation`
MODIFY `dataid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT for table `subject`
--
ALTER TABLE `subject`
MODIFY `subject_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `teacher`
--
ALTER TABLE `teacher`
MODIFY `teacher_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `applicant`
--
ALTER TABLE `applicant`
ADD CONSTRAINT `applicant_ibfk_1` FOREIGN KEY (`login_id`) REFERENCES `login` (`login_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `applicant_ibfk_2` FOREIGN KEY (`selectedcourses_id`) REFERENCES `selected courses` (`selectedcourse_id`);
--
-- Constraints for table `grades`
--
ALTER TABLE `grades`
ADD CONSTRAINT `grades_ibfk_1` FOREIGN KEY (`subject_id`) REFERENCES `subject` (`subject_id`) ON DELETE CASCADE;
--
-- Constraints for table `recipient`
--
ALTER TABLE `recipient`
ADD CONSTRAINT `recipient_ibfk_1` FOREIGN KEY (`login_id`) REFERENCES `login` (`login_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `recipient_ibfk_2` FOREIGN KEY (`news_id`) REFERENCES `news` (`news_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `selected courses`
--
ALTER TABLE `selected courses`
ADD CONSTRAINT `selected courses_ibfk_1` FOREIGN KEY (`block_a`) REFERENCES `sixth form subject` (`sixthformsubject_id`),
ADD CONSTRAINT `selected courses_ibfk_2` FOREIGN KEY (`block_b`) REFERENCES `sixth form subject` (`sixthformsubject_id`),
ADD CONSTRAINT `selected courses_ibfk_3` FOREIGN KEY (`block_c`) REFERENCES `sixth form subject` (`sixthformsubject_id`),
ADD CONSTRAINT `selected courses_ibfk_4` FOREIGN KEY (`block_d`) REFERENCES `sixth form subject` (`sixthformsubject_id`),
ADD CONSTRAINT `selected courses_ibfk_5` FOREIGN KEY (`block_e`) REFERENCES `sixth form subject` (`sixthformsubject_id`),
ADD CONSTRAINT `selected courses_ibfk_6` FOREIGN KEY (`level2_block`) REFERENCES `sixth form subject` (`sixthformsubject_id`);
--
-- Constraints for table `teacher`
--
ALTER TABLE `teacher`
ADD CONSTRAINT `teacher_ibfk_1` FOREIGN KEY (`login_id`) REFERENCES `login` (`login_id`);
/*!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 */;
|
DROP TABLE REF_WA_DESTINATION;
DROP TABLE REF_WA_EXCHANGE;
DROP TABLE REF_WA_RELEASETYPE;
|
:on error exit
use master;
go
if @@trancount > 0
rollback
go
if db_id('target') is not null
begin
alter database [target] set single_user with rollback immediate;
drop database [target];
end
go
create database [target];
go
use [target];
go
create queue [q];
go
create service [target_service] on queue [q] ([DEFAULT]);
go
grant send on service::[target_service] to [public];
go
create route [source] with service_name = N'source_service',
address = 'tcp://localhost:4022';
go
create procedure usp_target
as
begin
set nocount on;
declare @h uniqueidentifier, @mt sysname;
begin transaction;
receive top(1) @mt = message_type_name, @h = conversation_handle from q;
if (@mt = N'http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog' or
@mt = N'http://schemas.microsoft.com/SQL/ServiceBroker/Error' or
@mt = N'DEFAULT')
begin
end conversation @h;
end
commit
end
go
alter queue q with activation (
status = on,
max_queue_readers = 1,
procedure_name = [usp_target],
execute as owner);
go
|
<filename>postgres-nmon/scripts/03_create_table_cpu.sql
create table server1_cpu(
time timestamp,
usr real,
sys real,
wait real,
idle real,
steal real,
busy real,
cpus real,
cpu real,
PRIMARY KEY (time)
);
|
<reponame>ps-deepakc/yii_hello
CREATE TABLE `country` (
`code` CHAR(2) NOT NULL PRIMARY KEY,
`name` CHAR(52) NOT NULL,
`population` INT(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `country` VALUES ('AU','Australia',24016400);
INSERT INTO `country` VALUES ('BR','Brazil',205722000);
INSERT INTO `country` VALUES ('CA','Canada',35985751);
INSERT INTO `country` VALUES ('CN','China',1375210000);
INSERT INTO `country` VALUES ('DE','Germany',81459000);
INSERT INTO `country` VALUES ('FR','France',64513242);
INSERT INTO `country` VALUES ('GB','United Kingdom',65097000);
INSERT INTO `country` VALUES ('IN','India',1285400000);
INSERT INTO `country` VALUES ('RU','Russia',146519759);
INSERT INTO `country` VALUES ('US','United States',322976000);
|
-- @testpoint: 关键字under,用作字段类型,合理报错
drop table if exists under_test cascade;
create table if not exists under_test(id int,name under);
create or replace procedure under_insert
as
begin
for i in 1..10 loop
insert into under_test values(i,'under'||i);
end loop;
end;
/
call under_insert();
select * from under_test;
--清理环境
drop procedure under_insert;
|
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: ComputerInventory
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.04.1
/*!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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `wksrequest`
--
DROP TABLE IF EXISTS `wksrequest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wksrequest` (
`req_no` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(55) DEFAULT NULL,
`sn` varchar(12) DEFAULT NULL,
`request_time` datetime DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY `req_no` (`req_no`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wksrequest`
--
LOCK TABLES `wksrequest` WRITE;
/*!40000 ALTER TABLE `wksrequest` DISABLE KEYS */;
INSERT INTO `wksrequest` VALUES (3,'hashman2','ABC78D1','2018-03-23 02:53:51');
/*!40000 ALTER TABLE `wksrequest` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-03-23 3:10:14
|
<filename>gaji_ukm.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 21, 2021 at 09:40 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `gaji_ukm`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`nama` varchar(30) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `nama`, `email`, `password`) VALUES
(1, '<NAME>', '<EMAIL>', '<PASSWORD>'),
(2, '<NAME>', '<EMAIL>', '<PASSWORD>'),
(4, 'Dikaa', '<EMAIL>', '<PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `hitung`
--
CREATE TABLE `hitung` (
`id` int(11) NOT NULL,
`id_karyawan` int(11) NOT NULL,
`id_periode` int(11) NOT NULL,
`gaji_pokok` int(11) NOT NULL,
`gaji_lembur` int(11) NOT NULL,
`jumlah_lembur` int(11) NOT NULL,
`sakit` int(11) NOT NULL,
`izin` int(11) NOT NULL,
`telat` int(11) NOT NULL,
`alpa` int(11) NOT NULL,
`potongan_lainnya` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `hitung`
--
INSERT INTO `hitung` (`id`, `id_karyawan`, `id_periode`, `gaji_pokok`, `gaji_lembur`, `jumlah_lembur`, `sakit`, `izin`, `telat`, `alpa`, `potongan_lainnya`) VALUES
(5, 1, 1, 2600000, 15000, 6, 1, 0, 1, 1, 10000);
-- --------------------------------------------------------
--
-- Table structure for table `karyawan`
--
CREATE TABLE `karyawan` (
`id` int(11) NOT NULL,
`nik` varchar(25) NOT NULL,
`nama_karyawan` varchar(50) NOT NULL,
`no_telp` varchar(20) NOT NULL,
`email` varchar(30) NOT NULL,
`alamat` varchar(100) NOT NULL,
`jabatan` varchar(20) NOT NULL,
`pendidikan_terakhir` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `karyawan`
--
INSERT INTO `karyawan` (`id`, `nik`, `nama_karyawan`, `no_telp`, `email`, `alamat`, `jabatan`, `pendidikan_terakhir`) VALUES
(1, '1111111111', '<NAME>,M.Kom.', '0832334332', '<EMAIL>', 'jl.karang tineung dalam rt 8 rw 4 ', 'Konsultan ', 'S1 Teknik'),
(2, '222211', '<NAME>', '08323243411', '<EMAIL>', 'Jl.Dr <NAME>', 'Editor Senior', 'S1 Ilkom'),
(4, '111222333', '<NAME>', '0823232', '<EMAIL>', 'Jl.Sukabumi no.2', 'Desainer', 'S1 Teknik Informatika');
-- --------------------------------------------------------
--
-- Table structure for table `periode`
--
CREATE TABLE `periode` (
`id` int(11) NOT NULL,
`bulan` varchar(20) NOT NULL,
`tahun` int(11) NOT NULL,
`waktu_kerja` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `periode`
--
INSERT INTO `periode` (`id`, `bulan`, `tahun`, `waktu_kerja`) VALUES
(1, 'Januari', 2021, 28),
(2, 'Februari', 2021, 25),
(3, 'Agustus', 2021, 20);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `hitung`
--
ALTER TABLE `hitung`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `karyawan`
--
ALTER TABLE `karyawan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `periode`
--
ALTER TABLE `periode`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `hitung`
--
ALTER TABLE `hitung`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `karyawan`
--
ALTER TABLE `karyawan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `periode`
--
ALTER TABLE `periode`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;
/*!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 */;
|
WITH subquery AS (
SELECT text, sentiment(text) as result from InputData
)
Select text, result.[Scored Labels]
Into output
From subquery
|
create database signature;
use signature;
create table sign (
id SERIAL NOT NULL,
user_id TEXT NOT NULL,
user_name TEXT NOT NULL,
state TEXT NOT NULL,
sign_time TIMESTAMP NOT NULL,
PRIMARY KEY(id)
);
|
<filename>ComandoOrderBy3.sql
SELECT TOP 4 Name, ProductNumber
FROM Production.Product
ORDER BY ProductID ASC
|
INSERT INTO portti_bundle (name, startup, config) VALUES (
'myplacesimport','{
"title" : "myplacesimport",
"fi" : "myplacesimport",
"sv" : "myplacesimport",
"en" : "myplacesimport",
"bundlename" : "myplacesimport",
"bundleinstancename" : "myplacesimport",
"metadata" : {
"Import-Bundle" : {
"myplacesimport" : {
"bundlePath" : "/Oskari/packages/framework/bundle/"
}
},
"Require-Bundle-Instance" : []
},
"instanceProps" : {}
}', '{
"name": "MyPlacesImport",
"sandbox": "sandbox",
"flyoutClazz": "Oskari.mapframework.bundle.myplacesimport.Flyout"
}');
|
<gh_stars>0
SELECT setprotocol_v2.insert_daily_component_prices(
date_trunc('day', now()) - interval '3 days',
date_trunc('day', now()) + interval '1 day');
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.58.3
-- Generation Time: Jul 06, 2020 at 12:35 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.2.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `db_ci2020`
--
-- --------------------------------------------------------
--
-- Table structure for table `tb_alumni`
--
CREATE TABLE `tb_alumni` (
`id` int(5) NOT NULL,
`npm` varchar(10) NOT NULL,
`nama` varchar(25) NOT NULL,
`jk` varchar(15) NOT NULL,
`alamat` text NOT NULL,
`prodi` varchar(20) NOT NULL,
`angkatan` varchar(25) NOT NULL,
`id_pekerjaan` varchar(15) NOT NULL,
`alamat_kantor` text NOT NULL,
`keterangan` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `tb_buku_tamu`
--
CREATE TABLE `tb_buku_tamu` (
`id` int(5) NOT NULL,
`nama` varchar(25) NOT NULL,
`email` varchar(30) NOT NULL,
`pesan` text NOT NULL,
`tgl_pesan` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `tb_mahasiswa`
--
CREATE TABLE `tb_mahasiswa` (
`id` int(5) NOT NULL,
`npm` varchar(9) NOT NULL,
`nama` varchar(25) NOT NULL,
`jk` varchar(15) NOT NULL,
`prodi` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_mahasiswa`
--
INSERT INTO `tb_mahasiswa` (`id`, `npm`, `nama`, `jk`, `prodi`) VALUES
(1, '17420117', 'dela dwi septianti', 'perempuan', 'teknik informatika'),
(2, '17420118', 'putra', 'laki-laki', 'teknik sipil');
-- --------------------------------------------------------
--
-- Table structure for table `tb_pekerjaan`
--
CREATE TABLE `tb_pekerjaan` (
`id_pekerjaan` int(5) NOT NULL,
`pekerjaan` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_pekerjaan`
--
INSERT INTO `tb_pekerjaan` (`id_pekerjaan`, `pekerjaan`) VALUES
(5, 'asc');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tb_alumni`
--
ALTER TABLE `tb_alumni`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `npm` (`npm`);
--
-- Indexes for table `tb_buku_tamu`
--
ALTER TABLE `tb_buku_tamu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tb_mahasiswa`
--
ALTER TABLE `tb_mahasiswa`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tb_pekerjaan`
--
ALTER TABLE `tb_pekerjaan`
ADD PRIMARY KEY (`id_pekerjaan`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tb_alumni`
--
ALTER TABLE `tb_alumni`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `tb_buku_tamu`
--
ALTER TABLE `tb_buku_tamu`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tb_mahasiswa`
--
ALTER TABLE `tb_mahasiswa`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_pekerjaan`
--
ALTER TABLE `tb_pekerjaan`
MODIFY `id_pekerjaan` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!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 */;
|
<filename>archipelago.sql
CREATE OR REPLACE FUNCTION where_in_the_null (crs integer) RETURNS
geometry AS $$
WITH null_island AS (
SELECT ST_MakePoint(0,0) AS geom
),
null_island_crs AS (
SELECT ST_SetSRID(geom, crs) AS geom FROM null_island
)
SELECT ST_Transform(geom, 4326) FROM null_island_crs
$$ LANGUAGE SQL VOLATILE;
DROP TABLE IF EXISTS null_archipelago;
CREATE TABLE null_archipelago AS
SELECT srid, where_in_the_null(auth_srid) FROM spatial_ref_sys
WHERE srtext LIKE 'PROJCS%' AND auth_srid > 2000 AND auth_srid < 3000;
|
-- datasource for "PxWEB on City of Helsinki"
INSERT INTO oskari_statistical_datasource (locale, config, plugin)
VALUES ('{"fi":{"name":"<NAME>"},"en":{"name":"City of Helsinki"}}"',
'{"url":"http://api.aluesarjat.fi/PXWeb/api/v1/fi/Helsingin%20seudun%20tilastot/P%C3%A4%C3%A4kaupunkiseutu%20alueittain","info":{"url":"http://api.aluesarjat.fi"},"regionKey":"Alue","ignoredVariables":["Alue"]}', 'PxWEB');
-- Add layers
INSERT INTO oskari_maplayer(type, url,
name, dataprovider_id,
locale,
attributes, opacity, srs_name, version)
VALUES(
'statslayer', 'http://geoserver.hel.fi/geoserver/wms',
'seutukartta:Seutu_suuralueet', (select id from oskari_dataprovider where locale LIKE '%Yhteistyöaineistot%'),
'{ "en" : {
"name":"Pääkaupunkiseudun suuraluejako"
},"fi" : {
"name":"Pääkaupunkiseudun suuraluejako"
}}',
'{"statistics":{"featuresUrl":"http://geoserver.hel.fi/geoserver/wfs","regionIdTag":"kokotun","nameIdTag":"nimi"}}', 80, 'EPSG:3067', '1.3.0');
INSERT INTO oskari_maplayer(type, url,
name, dataprovider_id,
locale,
attributes, opacity, srs_name, version)
VALUES(
'statslayer', 'http://geoserver.hel.fi/geoserver/wms',
'seutukartta:Seutu_pienalueet', (select id from oskari_dataprovider where locale LIKE '%Yhteistyöaineistot%'),
'{ "en" : {
"name":"Pääkaupunkiseudun pienaluejako"
},"fi" : {
"name":"Pääkaupunkiseudun pienaluejako"
}}',
'{"statistics":{"featuresUrl":"http://geoserver.hel.fi/geoserver/wfs","regionIdTag":"kokotun","nameIdTag":"nimi"}}', 80, 'EPSG:3067', '1.3.0');
-- Link layers to datasource
INSERT INTO
oskari_statistical_datasource_regionsets(datasource_id, layer_id)
VALUES(
(SELECT id FROM oskari_statistical_datasource
WHERE locale like '%Helsingin kaupunki%'),
(SELECT id FROM oskari_maplayer WHERE type='statslayer' AND name = 'seutukartta:Seutu_suuralueet'));
INSERT INTO
oskari_statistical_datasource_regionsets(datasource_id, layer_id)
VALUES(
(SELECT id FROM oskari_statistical_datasource
WHERE locale like '%Helsingin kaupunki%'),
(SELECT id FROM oskari_maplayer WHERE type='statslayer' AND name = 'seutukartta:Seutu_pienalueet'));
|
CREATE TABLE [dbo].[AspNetUserRoles](
[UserId] [nvarchar](128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[RoleId] [nvarchar](128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
CONSTRAINT [PK_dbo.AspNetUserRoles] PRIMARY KEY CLUSTERED
(
[UserId] ASC,
[RoleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
ALTER TABLE [dbo].[AspNetUserRoles] WITH CHECK ADD CONSTRAINT [FK_dbo.AspNetUserRoles_dbo.AspNetRoles_RoleId] FOREIGN KEY([RoleId])
REFERENCES [dbo].[AspNetRoles] ([Id])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AspNetUserRoles] CHECK CONSTRAINT [FK_dbo.AspNetUserRoles_dbo.AspNetRoles_RoleId]
GO
ALTER TABLE [dbo].[AspNetUserRoles] WITH CHECK ADD CONSTRAINT [FK_dbo.AspNetUserRoles_dbo.AspNetUsers_UserId] FOREIGN KEY([UserId])
REFERENCES [dbo].[AspNetUsers] ([Id])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AspNetUserRoles] CHECK CONSTRAINT [FK_dbo.AspNetUserRoles_dbo.AspNetUsers_UserId]
GO
CREATE NONCLUSTERED INDEX [IX_RoleId] ON [dbo].[AspNetUserRoles]
(
[RoleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO
CREATE NONCLUSTERED INDEX [IX_UserId] ON [dbo].[AspNetUserRoles]
(
[UserId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
INSERT INTO test_char_to_text VALUES (%s)
SELECT user_id FROM test_addc
SELECT * FROM raw_query_friendlyauthor
select * from user;
select 1 from dual where '1936-12-29 00:00' < sysdate
INSERT INTO lamps VALUES (25, 53, 'chair4', 'a big lamp5')
SELECT text FROM %s WHERE id = %d
SELECT sql FROM sqlite_master WHERE tbl_name = %s
CREATE TABLE vars (key varchar(24), value varchar(128))
select col1,col2,col3 from test_datetime_def
CREATE TABLE %(nonces)s ( server_url VARCHAR(2047) NOT NULL, timestamp INTEGER NOT NULL, salt CHAR(40) NOT NULL, PRIMARY KEY (server_url, timestamp, salt) )
SELECT * FROM raw_query_author WHERE first_name = %s
SELECT sql FROM sqlite_master WHERE tbl_name = %s AND type = %s", [table_name, "table
SELECT * FROM raw_query_coffee
select * from foo where bar = 1 and baz = 2 or bzz = 3;
SELECT * FROM bar;
CREATE TABLE %s (id INTEGER)
CREATE TABLE %(associations)s ( server_url VARCHAR(2047) NOT NULL, handle VARCHAR(255) NOT NULL, secret BYTEA NOT NULL, issued INTEGER NOT NULL, lifetime INTEGER NOT NULL, assoc_type VARCHAR(64) NOT NULL, PRIMARY KEY (server_url, handle), CONSTRAINT secret_length_constraint CHECK (LENGTH(secret) <= 128) )
SELECT ST_Extent3D(point) FROM geo3d_city3d;
SELECT cache_key FROM %s ORDER BY cache_key LIMIT 1 OFFSET %%s
select * from foo; select * from bar;
INSERT INTO lamps VALUES (21, 50, 'chair1', 'a big lamp1')
CREATE TABLE %(nonces)s ( server_url VARCHAR, timestamp INTEGER, salt CHAR(40), UNIQUE(server_url, timestamp, salt) )
SELECT spam FROM testtr2
select * from postings order by token, docnum
create table items (item text primary key)
SELECT spam FROM test_rn
CREATE TABLE %(associations)s ( server_url VARCHAR(2047), handle VARCHAR(255), secret BLOB(128), issued INTEGER, lifetime INTEGER, assoc_type VARCHAR(64), PRIMARY KEY (server_url, handle) )
select * from foo;
CREATE TABLE articles ( article_id SERIAL, message_id TEXT, header TEXT, body TEXT )
select * from foo where id in (select id from bar);
CREATE TABLE paste (paste_id integer, code text, parsed_code text, pub_datevarchar(24), language varchar(64), parent_id integer, url varchar(128))
select value from %s
select count(*) from %s
SELECT age FROM users WHERE name = ?"
SELECT * FROM raw_query_book
create table '\\db_name\\.#sql-4a8_ab' (errno: 150)
CREATE TABLE statements (#925)
CREATE TABLE INTROSPECT_TEST (X INT)
INSERT INTO measurement_y2008m01 VALUES (NEW.*)
CREATE TABLE testrooms( roomId int PRIMARY KEY, town_id int, name varchar(64), owner varchar(64), posx int, posy int, width int, height int)
SELECT name FROM %s WHERE id = %d
insert into postings values (?, ?, ?, ?)
CREATE TABLE furniture( furnId int PRIMARY KEY, roomId int, name varchar(64), posx int, posy int)
select id, message from %s order by priority desc limit 1
SELECT %s FROM %s;
select * from Bar;
CREATE TABLE %(table)s (%(columns)s)
CREATE INDEX tastypie_apikey_key_index ON tastypie_apikey (`key`);
SELECT eggs FROM test_rn
UPDATE pg_database SET datistemplate=true WHERE datname=template_postgis
SELECT id, first_name, dob FROM raw_query_author
CREATE TABLE %s (%s)
SELECT * FROM %s WHERE ROWNUM < 2
SELECT * FROM `%s` %s
INSERT INTO lamps VALUES (22, 50, 'chair1', 'a big lamp2')
select * from NOTABLE
select * from foo order by c1 desc, c2, c3;
Select A from Sys.dual
select key from %s
CREATE TABLE rugs( rugId int PRIMARY KEY, roomId int, name varchar(64))
SELECT TABLE_NAME FROM USER_TABLES
CREATE TABLE groups ( group_id SERIAL, name VARCHAR(80) NOT NULL, flags INTEGER DEFAULT 0 NOT NULL )
SELECT %s FROM DUAL" % ", ".join(["%s
SELECT spam FROM test_drn
insert into asdf values (10)
Select A, B, C from Sys.dual
SELECT * FROM %(db_table)s %(for_update)s;
Select AA,BB,CC from Sys.dual
SELECT host from moz_cookies
select * from bar;
SELECT foo FROM bar WHERE baz = %s
SELECT %s FROM raw_query_author
INSERT INTO rugs VALUES (85, 12, 'a dirty rug')
select message, priority from %s order by priority desc
select * from foo where bar = 1 and (baz = 2 or bzz = 3);
CREATE TABLE %(associations)s ( server_url BLOB NOT NULL, handle VARCHAR(255) NOT NULL, secret BLOB NOT NULL, issued INTEGER NOT NULL, lifetime INTEGER NOT NULL, assoc_type VARCHAR(64) NOT NULL, PRIMARY KEY (server_url(255), handle) )
None
SELECT ham FROM test_cd_empty
SELECT * FROM raw_query_author ORDER BY id ASC
SELECT username, password FROM user WHERE username = %s
SELECT eggs FROM test_drn
SELECT id FROM bar);
INSERT INTO lamps VALUES (23, 53, 'chair4', 'a big lamp3')
INSERT INTO journalinfo VALUES (0)
select x from simple order by x
select x from simple
INSERT INTO test_ora_char_nulls VALUES (NULL, NULL, NULL)
SELECT * FROM test1
SELECT spam FROM testtr
insert into items values (?)
SELECT * FROM dbo.accounts" -FilePath "C:\Scripts\accounts.txt" -Delimiter ",
INSERT INTO testrooms VALUES (11, 100, 'testroom2', 'someguy', 30, 10, 20, 20)
select * from foo;
SELECT * FROM foo"
CREATE TABLE %s ( server_url VARCHAR(2047), timestamp INTEGER, salt CHAR(40), PRIMARY KEY (server_url, timestamp, salt) )
SELECT * FROM queries_note WHERE note = %s and misc = %s
SELECT ST_Length(line) FROM geo3d_interstateproj2d;
SELECT ST_GeoHash(point) FROM geoapp_city WHERE name='Houston';
CREATE TABLE django_ixn_test_table (id INTEGER)
select * from BAR;
CREATE TABLE postings ( group_id INTEGER, article_id INTEGER, article_index INTEGER NOT NULL )
INSERT INTO rugs VALUES (84, 11, 'a green rug')
INSERT INTO testrooms VALUES (12, 100, 'testroom3', 'someguy', 50, 10, 20, 20)
SELECT ST_Area(poly) FROM geogapp_zipcode WHERE code='77002';
SELECT ST_Length3D(line) FROM geo3d_interstateproj3d;
CREATE TABLE STDDEV_TEST (X INT)
CREATE TABLE overview ( header TEXT )
select * from host;
SELECT spam FROM test_altercd
select * from test_text_to_char
SELECT * FROM :"foo";
INSERT INTO lamps VALUES (24, 53, 'chair4', 'a big lamp4')
SELECT * FROM test_deltable
CREATE TABLE randData (iData I)
INSERT INTO testrooms VALUES (10, 100, 'testroom1', 'someguy', 10, 10, 20, 20)
SELECT 1 FROM pg_database WHERE datname = %s LIMIT 1;
select * from foo where bar = 1 limit 1
select * from foo union select * from bar;
CREATE TABLE subscriptions ( group_id INTEGER )
select count(1) from simple
SELECT MAX(id) FROM auth_user
INSERT INTO test_text_to_char VALUES (%s)
SELECT cache_key, value, expires FROM %s
SELECT * FROM BAR;
insert into foo values (1)
CREATE TABLE django_ixn_real_test_table (number REAL)
select * from foo; ', u'select * from bar;
CREATE TABLE statements (#925)
INSERT INTO rugs VALUES (83, 11, 'a red rug')
UPDATE bar SET foo = 1 WHERE baz = %s
select * from test where foo <= :foo;
create table if not exists %s (key text primary key, value blob)
SELECT * FROM %s LIMIT 1
SELECT * from XYZZY, ABC
select x from simple where x = %d
UPDATE authors SET auth_name = ? WHERE auth_id = ?
CREATE TABLE my_table (first integer not null default 0,second text)
SELECT ST_Area(poly) FROM distapp_southtexaszipcode;
INSERT INTO test_column_constraint VALUES (-42)
SELECT first_name, dob FROM raw_query_author
SELECT * FROM raw_query_author
create table asdf (foo serial primary key)
Select A, B, C from Sys.dual, Table2
select * from foo where bar = \'foo;bar\';
INSERT INTO moz_cookies VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
INSERT INTO my_table VALUES (:'content')
SELECT id FROM bar);
INSERT INTO ltext VALUES (%s)
select value from %s where key=?
None
SELECT cache_key FROM %s
SELECT name, age, relationship FROM PEOPLE WHERE ID=?
SELECT username, password FROM user WHERE username = ?
INSERT INTO test_column_constraint VALUES (-42)
CREATE TABLE DDL_TRANSACTION_TEST (X INT)
CREATE TABLE childTable ( childId integer, foo varchar(64), test_key varchar(64), stuff varchar(64), gogogo integer, data varchar(64))
INSERT INTO rugs VALUES (81, 10, 'a big rug')
create index statement on 'table_name'
create table x (x integer)
SELECT id, parent_id from test LIMIT 2
create index postix on postings (token, docnum)
INSERT INTO lamps VALUES (26, 54, 'couch', 'a big lamp6')
select * from SYS.XYZZY
SELECT * FROM queries_note WHERE note = %s
CREATE TABLE testTable ( key_string varchar(64), col2 integer, another_column varchar(64), Column4 varchar(64), column_5_ integer)
SELECT COUNT(*) FROM %s
CREATE TABLE statements (#925)
CREATE TABLE lamps( lampId int PRIMARY KEY, furnId int, furnName varchar(64), lampName varchar(64))
select * from test_char_to_text
SELECT COUNT(*) FROM ' || p_tabelle || ' WHERE ' || p_key || ' = ' || p_value;
CREATE TABLE %s ( server_url VARCHAR, timestamp INTEGER, salt CHAR(40), UNIQUE(server_url, timestamp, salt) )
CREATE TABLE ROLLBACK_TEST (X INT)
INSERT INTO rugs VALUES (82, 10, 'a blue rug')
select item from items order by item
CREATE TABLE simple ( x integer)
CREATE TABLE IF NOT EXISTS moz_cookies (id INTEGER PRIMARY KEY, name TEXT, value TEXT, host TEXT, path TEXT,expiry INTEGER, lastAccessed INTEGER, isSecure INTEGER, isHttpOnly INTEGER)
SELECT 1 FROM DUAL WHERE DUMMY %s
select key, value from %s
INSERT INTO user VALUES ('guest', 'guest')
INSERT INTO foo VALUES (%s, %d)
CREATE TABLE user ( username string, password string )
SELECT * FROM raw_query_reviewer
SELECT ST_extent(point) FROM geoapp_city WHERE (name='Houston' or name='Dallas');
SELECT * FROM nottheretest1
CREATE TABLE %(nonces)s ( server_url BLOB NOT NULL, timestamp INTEGER NOT NULL, salt CHAR(40) NOT NULL, PRIMARY KEY (server_url(255), timestamp, salt) )
SELECT * FROM authors", "QAUTHORS
CREATE TABLE %s ( server_url BLOB, timestamp INTEGER, salt CHAR(40), PRIMARY KEY (server_url(255), timestamp, salt) )
SELECT cache_key, expires FROM %s
SELECT * FROM blog_entry WHERE pub_date <= '2006-01-01';
select count(*) from (select * from foo);
SELECT spam,add1,add2 FROM test_addnbc
select schemaname from pg_tables limit 3;
SELECT commandIndex FROM journalinfo
SELECT COUNT(*) FROM blog_entry WHERE blog_entry.blog_id = blog_blog.id) AS entry_count FROM blog_blog;
Select * From bar;
SELECT id FROM bar);
|
DELIMITER //
CREATE OR REPLACE PROCEDURE pr_UpdateExpenseValue(IN $expenseId VARCHAR(36),
IN $value DOUBLE)
BEGIN
UPDATE tb_Expense
SET Value = $value
WHERE ExpenseId = $expenseId;
END
//
DELIMITER ;
GRANT EXECUTE ON PROCEDURE Freedom.pr_UpdateExpenseValue TO 'FinancialPeace'@'%';
|
CREATE View property.RepoObjectProperty_sys_repo
As
--
Select
ro.RepoObject_guid
, ses.property_name
, ses.property_value
, ses.SysObject_schema_name
, ses.SysObject_name
, link.RepoObjectProperty_id
, RepoObjectProperty_property_value = link.property_value
From
repo_sys.ExtendedProperties As ses
Inner Join
repo.RepoObject As ro
On
ses.SysObject_schema_name = ro.SysObject_schema_name
And ses.SysObject_name = ro.SysObject_name
And ses.minor_name Is Null
And ses.class = 1 --OBJECT_OR_COLUMN
--todo: handle class = 3 SCHEMA
--todo: handle class = 7 INDEX
And ses.property_name <> 'RepoObject_guid'
Left Join
property.RepoObjectProperty As link
On
ro.RepoObject_guid = link.RepoObject_guid
And ses.property_name = link.property_name
Go
Execute sp_addextendedproperty
@name = N'RepoObject_guid'
, @value = '5790291c-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'aef47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'SysObject_schema_name';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'aff47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'SysObject_name';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'b1f47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'RepoObjectProperty_property_value';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'b0f47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'RepoObjectProperty_id';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'abf47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'RepoObject_guid';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'adf47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'property_value';
Go
Execute sp_addextendedproperty
@name = N'RepoObjectColumn_guid'
, @value = 'acf47926-9d61-eb11-84dc-a81e8446d5b0'
, @level0type = N'SCHEMA'
, @level0name = N'property'
, @level1type = N'VIEW'
, @level1name = N'RepoObjectProperty_sys_repo'
, @level2type = N'COLUMN'
, @level2name = N'property_name';
Go
Go
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [repo_sys].[ExtendedProperties].[SysObject_schema_name]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo', @level2type = N'COLUMN', @level2name = N'SysObject_schema_name';
Go
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [repo_sys].[ExtendedProperties].[SysObject_name]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo', @level2type = N'COLUMN', @level2name = N'SysObject_name';
Go
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [repo].[RepoObject].[RepoObject_guid]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo', @level2type = N'COLUMN', @level2name = N'RepoObject_guid';
Go
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [repo_sys].[ExtendedProperties].[property_value]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo', @level2type = N'COLUMN', @level2name = N'property_value';
Go
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [repo_sys].[ExtendedProperties].[property_name]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo', @level2type = N'COLUMN', @level2name = N'property_name';
GO
EXECUTE sp_addextendedproperty @name = N'ReferencedObjectList', @value = N'* [property].[RepoObjectProperty]
* [repo].[RepoObject]
* [repo_sys].[ExtendedProperties]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
GO
EXECUTE sp_addextendedproperty @name = N'pk_IndexPatternColumnName', @value = N'RepoObject_guid,property_name', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
EXECUTE sp_addextendedproperty @name = N'pk_IndexPatternColumnDatatype', @value = N'uniqueidentifier,sysname', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
EXECUTE sp_addextendedproperty @name = N'pk_index_guid', @value = '219ad28f-5f9f-eb11-84f8-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
EXECUTE sp_addextendedproperty @name = N'AntoraReferencingList', @value = N'* xref:property.usp_sync_ExtendedProperties_Sys2Repo_InsertUpdate.adoc[]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
EXECUTE sp_addextendedproperty @name = N'AntoraReferencedList', @value = N'* xref:property.RepoObjectProperty.adoc[]
* xref:repo.RepoObject.adoc[]
* xref:repo_sys.ExtendedProperties.adoc[]', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
EXECUTE sp_addextendedproperty @name = N'is_ssas', @value = N'0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
GO
EXECUTE sp_addextendedproperty @name = N'is_repo_managed', @value = N'0', @level0type = N'SCHEMA', @level0name = N'property', @level1type = N'VIEW', @level1name = N'RepoObjectProperty_sys_repo';
|
<filename>Allfiles/Demofiles/Mod08/Demo1/Demo1.sql
CREATE TABLE StockPrice
(
Ticker char(4) NOT NULL,
Price int NOT NULL,
QuoteTime DateTime NOT NULL
)
WITH
(
DISTRIBUTION = ROUND_ROBIN
)
|
CREATE TABLE `sap_production_order_general_data`
(
`ManufacturingOrder` varchar(12) NOT NULL,
`ManufacturingOrderCategory` varchar(2) DEFAULT NULL,
`ManufacturingOrderType` varchar(4) DEFAULT NULL,
`OrderIsCreated` varchar(1) DEFAULT NULL,
`OrderIsReleased` varchar(1) DEFAULT NULL,
`OrderIsPrinted` varchar(1) DEFAULT NULL,
`OrderIsConfirmed` varchar(1) DEFAULT NULL,
`OrderIsPartiallyConfirmed` varchar(1) DEFAULT NULL,
`OrderIsDelivered` varchar(1) DEFAULT NULL,
`OrderIsDeleted` varchar(1) DEFAULT NULL,
`OrderIsPreCosted` varchar(1) DEFAULT NULL,
`SettlementRuleIsCreated` varchar(1) DEFAULT NULL,
`OrderIsPartiallyReleased` varchar(1) DEFAULT NULL,
`OrderIsLocked` varchar(1) DEFAULT NULL,
`OrderIsTechnicallyCompleted` varchar(1) DEFAULT NULL,
`OrderIsClosed` varchar(1) DEFAULT NULL,
`OrderIsPartiallyDelivered` varchar(1) DEFAULT NULL,
`OrderIsMarkedForDeletion` varchar(1) DEFAULT NULL,
`OrderIsScheduled` varchar(1) DEFAULT NULL,
`OrderHasGeneratedOperations` varchar(1) DEFAULT NULL,
`MaterialAvailyIsNotChecked` varchar(1) DEFAULT NULL,
`MfgOrderCreationDate` varchar(80) DEFAULT NULL,
`MfgOrderCreationTime` varchar(80) DEFAULT NULL,
`LastChangeDateTime` varchar(80) DEFAULT NULL,
`Material` varchar(40) DEFAULT NULL,
`StorageLocation` varchar(4) DEFAULT NULL,
`GoodsRecipientName` varchar(12) DEFAULT NULL,
`UnloadingPointName` varchar(25) DEFAULT NULL,
`MaterialGoodsReceiptDuration` varchar(4) DEFAULT NULL,
`OrderInternalBillOfOperations` varchar(10) DEFAULT NULL,
`ProductionPlant` varchar(4) DEFAULT NULL,
`Plant` varchar(4) DEFAULT NULL,
`MRPArea` varchar(10) DEFAULT NULL,
`MRPController` varchar(3) DEFAULT NULL,
`ProductionSupervisor` varchar(3) DEFAULT NULL,
`ProductionVersion` varchar(4) DEFAULT NULL,
`PlannedOrder` varchar(10) DEFAULT NULL,
`SalesOrder` varchar(10) DEFAULT NULL,
`SalesOrderItem` varchar(6) DEFAULT NULL,
`BasicSchedulingType` varchar(1) DEFAULT NULL,
`BusinessArea` varchar(4) DEFAULT NULL,
`CompanyCode` varchar(4) DEFAULT NULL,
`ProfitCenter` varchar(10) DEFAULT NULL,
`FunctionalArea` varchar(16) DEFAULT NULL,
`MfgOrderPlannedStartDate` varchar(80) DEFAULT NULL,
`MfgOrderPlannedStartTime` varchar(80) DEFAULT NULL,
`MfgOrderPlannedEndDate` varchar(80) DEFAULT NULL,
`MfgOrderPlannedEndTime` varchar(80) DEFAULT NULL,
`MfgOrderScheduledStartDate` varchar(80) DEFAULT NULL,
`MfgOrderScheduledStartTime` varchar(80) DEFAULT NULL,
`MfgOrderScheduledEndDate` varchar(80) DEFAULT NULL,
`MfgOrderScheduledEndTime` varchar(80) DEFAULT NULL,
`MfgOrderActualReleaseDate` varchar(80) DEFAULT NULL,
`ProductionUnit` varchar(3) DEFAULT NULL,
`TotalQuantity` varchar(15) DEFAULT NULL,
`MfgOrderPlannedScrapQty` varchar(15) DEFAULT NULL,
`MfgOrderConfirmedYieldQty` varchar(15) DEFAULT NULL,
`WBSElementExternalID` varchar(24) DEFAULT NULL,
`OrderLongText` varchar(200) DEFAULT NULL,
PRIMARY KEY (`ManufacturingOrder`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
|
<filename>C8_groupTest.sql<gh_stars>1-10
## 第8章 分组与聚集
use test;
select open_emp_id from account;
select open_emp_id from account group by open_emp_id;
select open_emp_id, count(*) count from account group by open_emp_id;
select open_emp_id, count(*) count from account group by open_emp_id having count > 6;
SELECT
MAX(avail_balance) max_balance,
MIN(avail_balance) min_balance,
AVG(avail_balance) avg_balance,
SUM(avail_balance) sum_bablance,
COUNT(*) num_accounts
FROM
account
WHERE
product_cd = 'CHK';
SELECT
product_cd,
MAX(avail_balance),
MIN(avail_balance),
AVG(avail_balance),
SUM(avail_balance),
COUNT(*)
FROM
account
GROUP BY product_cd;
select * from account;
select open_emp_id, count(account_id) from account group by open_emp_id;
select max(pending_balance - avail_balance) max_uncleared from account;
create table number_tbl (val smallint);
insert into number_tbl values(1);
insert into number_tbl values(3);
insert into number_tbl values(5);
SELECT
COUNT(*) num_rows,
COUNT(val) num_vals,
SUM(val) sum_val,
MAX(val) max_val,
AVG(val) avg_val
FROM
number_tbl;
insert into number_tbl values(null);
select * from account;
select product_cd, sum(avail_balance) prod_balance from account group by product_cd;
SELECT
product_cd, open_branch_id, SUM(avail_balance) tot_balance
FROM
account
GROUP BY product_cd , open_branch_id;
SELECT
YEAR(start_date) year, COUNT(*) count
FROM
employee
GROUP BY year
ORDER BY year;
SELECT
product_cd, open_branch_id, SUM(avail_balance) sum_balance
FROM
account
GROUP BY product_cd , open_branch_id WITH ROLLUP;
SELECT
product_cd, SUM(avail_balance) prod_balance
FROM
account
WHERE
status = 'ACTIVE'
GROUP BY product_cd
HAVING SUM(avail_balance) >= 10000;
SELECT
product_cd, SUM(avail_balance) prod_balance
FROM
account
WHERE
status = 'ACTIVE'
GROUP BY product_cd
HAVING MIN(avail_balance) >= 1000
AND MAX(avail_balance) <= 10000;
############################################### test
# test 8-1
select * from account;
select count(*) from account;
# test 8-2
select cust_id, count(account_id) from account group by cust_id;
# test 8-3
SELECT
cust_id, COUNT(account_id)
FROM
account
GROUP BY cust_id
HAVING COUNT(account_id) >= 2;
# test 8-4
select * from account;
SELECT
product_cd,
open_branch_id,
COUNT(account_id) count_account,
SUM(avail_balance) sum_balance
FROM
account
GROUP BY product_cd , open_branch_id
HAVING COUNT(account_id) >= 1
ORDER BY sum_balance DESC;
|
<filename>db/migrate/000293_credit.sql
ALTER TABLE `credit` ADD `shared` enum('facebook','twitter') DEFAULT null;
|
<reponame>DjordjeVucinac82/crunchbutton
CREATE TABLE `blast` (
`id_blast` int(11) unsigned NOT NULL AUTO_INCREMENT,
`content` text,
`status` enum('new','blasting','complete','failed','canceled') DEFAULT NULL,
`type` enum('email','phone') DEFAULT NULL,
`id_admin` int(11) unsigned DEFAULT NULL,
`date` datetime DEFAULT NULL,
`update` datetime DEFAULT NULL,
PRIMARY KEY (`id_blast`),
KEY `id_admin` (`id_admin`),
CONSTRAINT `blast_ibfk_1` FOREIGN KEY (`id_admin`) REFERENCES `admin` (`id_admin`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `blast_user` (
`id_blast_user` int(11) unsigned NOT NULL AUTO_INCREMENT,
`id_blast` int(11) unsigned DEFAULT NULL,
`id_user` int(11) unsigned DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL,
`email` varchar(20) DEFAULT NULL,
`data` text,
PRIMARY KEY (`id_blast_user`),
KEY `id_blast` (`id_blast`),
KEY `id_user` (`id_user`),
CONSTRAINT `blast_user_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `blast_user_ibfk_1` FOREIGN KEY (`id_blast`) REFERENCES `blast` (`id_blast`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `blast_user_log` (
`id_blast_user_log` int(11) unsigned NOT NULL AUTO_INCREMENT,
`id_blast_user` int(11) unsigned DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id_blast_user_log`),
KEY `id_blast_user` (`id_blast_user`),
CONSTRAINT `blast_user_log_ibfk_1` FOREIGN KEY (`id_blast_user`) REFERENCES `blast_user` (`id_blast_user`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
<filename>dist/db_installer/sql/install/rebirth_manager.sql
-- ----------------------------
-- Table structure for rebirth_manager
-- ----------------------------
CREATE TABLE IF NOT EXISTS `rebirth_manager`(
`playerId` int(20) NOT NULL,
`rebirthCount` int(2) NOT NULL,
PRIMARY KEY (`playerId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
|
DROP INDEX IF EXISTS idx_forms_from_org_id
|
CREATE TABLE tokens (
token_id CHAR(64) NOT NULL PRIMARY KEY,
token_hash VARCHAR(255) NOT NULL,
auth_me VARCHAR(255) NOT NULL,
auth_client_id VARCHAR(255) NOT NULL,
auth_scope VARCHAR(255) NOT NULL,
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
last_use TIMESTAMP DEFAULT NULL,
revoked TIMESTAMP DEFAULT NULL
);
CREATE TABLE settings (
setting_name VARCHAR(255) NOT NULL,
setting_value VARCHAR(255) NOT NULL,
CONSTRAINT setting UNIQUE (setting_name, setting_value)
);
|
/** SOURCE DATA
* Drop tables and recreate
*/
-- informal_district
drop table if exists vectiles_input.informal_district;
create table vectiles_input.informal_district (
oid serial not null,
name varchar(250),
geom geometry(Polygon, 3301)
);
alter table vectiles_input.informal_district
add constraint pk__informal_district
primary key (oid)
;
create index sidx__informal_district
on vectiles_input.informal_district
using gist(geom)
;
-- bridges_for_rails
drop table if exists vectiles_input.bridges_for_rails;
create table vectiles_input.bridges_for_rails (
oid serial not null,
etak_id int,
for_rail boolean,
geom geometry(Polygon, 3301)
);
alter table vectiles_input.bridges_for_rails
add constraint pk__bridges_for_rails
primary key (oid)
;
create index sidx__bridges_for_rails
on vectiles_input.bridges_for_rails
using gist(geom)
;
-- bridges_for_rails
drop table if exists vectiles_input.bridges_for_roads;
create table vectiles_input.bridges_for_roads (
oid serial not null,
etak_id int,
for_road boolean,
geom geometry(Polygon, 3301)
);
alter table vectiles_input.bridges_for_roads
add constraint pk__bridges_for_roads
primary key (oid)
;
create index sidx__bridges_for_roads
on vectiles_input.bridges_for_roads
using gist(geom)
;
-- ee_address_object
drop table if exists vectiles_input.ee_address_object;
create table vectiles_input.ee_address_object (
adob_id int,
ads_oid varchar(20),
adob_liik varchar(2),
orig_tunnus varchar(50),
etak_id int,
ads_kehtiv timestamp,
un_tunnus smallint,
hoone_oid varchar(20),
adr_id int,
koodaadress varchar(50),
taisaadress varchar(500),
lahiaadress varchar(150),
aadr_olek varchar(1),
viitepunkt_x numeric(10,2),
viitepunkt_y numeric(10,2),
tase1_kood varchar(4),
tase1_nimetus varchar(250),
tase1_nimetus_liigiga varchar(250),
tase2_kood varchar(4),
tase2_nimetus varchar(250),
tase2_nimetus_liigiga varchar(250),
tase3_kood varchar(4),
tase3_nimetus varchar(250),
tase3_nimetus_liigiga varchar(250),
tase4_kood varchar(4),
tase4_nimetus varchar(250),
tase4_nimetus_liigiga varchar(250),
tase5_kood varchar(4),
tase5_nimetus varchar(250),
tase5_nimetus_liigiga varchar(250),
tase6_kood varchar(4),
tase6_nimetus varchar(250),
tase6_nimetus_liigiga varchar(250),
tase7_kood varchar(4),
tase7_nimetus varchar(250),
tase7_nimetus_liigiga varchar(250),
tase8_kood varchar(4),
tase8_nimetus varchar(250),
tase8_nimetus_liigiga varchar(250),
geom geometry(point, 3301),
oid serial not null
);
alter table vectiles_input.ee_address_object
add constraint pk__ee_address_object
primary key (oid)
;
create index idx__ee_address__tase5_kood
on vectiles_input.ee_address_object
using btree (tase5_kood)
;
create index idx__ee_address_object__adob_liik
on vectiles_input.ee_address_object
using btree (adob_liik)
;
create index sidx__ee_address_object
on vectiles_input.ee_address_object
using gist (geom)
;
-- baltic_admin
drop table if exists vectiles_input.baltic_a0_expanded;
create table vectiles_input.baltic_a0_expanded(
oid serial not null,
left_name varchar(255),
right_name varchar(255),
left_country_code varchar(5),
right_country_code varchar(5),
on_water boolean,
geom geometry(LineString, 3301)
);
alter table vectiles_input.baltic_a0_expanded
add constraint pk__baltic_a0_expanded
primary key (oid)
;
create index sidx__baltic_a0_expanded
on vectiles_input.baltic_a0_expanded
using gist (geom)
;
drop table if exists vectiles_input.baltic_admin;
create table vectiles_input.baltic_admin (
hash varchar not null,
geom geometry(LineString, 3301),
left_country_code varchar(5),
right_country_code varchar(5),
left_a1_code varchar(20),
left_a2_code varchar(20),
left_a3_code varchar(20),
left_a1 varchar(250),
left_a2 varchar(250),
left_a3 varchar(250),
right_a1_code varchar(20),
right_a2_code varchar(20),
right_a3_code varchar(20),
right_a1 varchar(250),
right_a2 varchar(250),
right_a3 varchar(250)
);
alter table vectiles_input.baltic_admin
add constraint pk__baltic_admin
primary key (hash)
;
create index sidx__baltic_admin
on vectiles_input.baltic_admin
using gist (geom)
;
-- oceans
drop table if exists vectiles_input.oceans;
create table vectiles_input.oceans (
geom geometry(Polygon, 4326),
oid serial not null
);
alter table vectiles_input.oceans
add constraint pk__oceans
primary key (oid)
;
create index sidx__oceans
on vectiles_input.oceans
using gist(geom)
;
-- lv_waterways
drop table if exists vectiles_input.lv_waterways;
create table vectiles_input.lv_waterways (
oid serial,
osm_id bigint,
code int,
fclass varchar(150),
width int,
name varchar(250),
geom geometry(LineString, 4326)
);
alter table vectiles_input.lv_waterways
add constraint pk__lv_waterways
primary key (oid)
;
create index sidx__lv_waterways
on vectiles_input.lv_waterways
using gist(geom)
;
-- lv_water
drop table if exists vectiles_input.lv_water;
create table vectiles_input.lv_water (
oid serial,
osm_id bigint,
code int,
fclass varchar(150),
name varchar(250),
geom geometry(Polygon, 4326)
);
alter table vectiles_input.lv_water
add constraint pk__lv_water
primary key (oid)
;
create index sidx__lv_water
on vectiles_input.lv_water
using gist(geom)
;
-- lv_landuse
drop table if exists vectiles_input.lv_landuse;
create table vectiles_input.lv_landuse (
oid serial,
osm_id bigint,
code int,
fclass varchar(150),
name varchar(250),
geom geometry(Polygon, 4326)
);
alter table vectiles_input.lv_landuse
add constraint pk__lv_landuse
primary key (oid)
;
create index sidx__lv_landuse
on vectiles_input.lv_landuse
using gist(geom)
;
-- lv_roads
drop table if exists vectiles_input.lv_roads;
create table vectiles_input.lv_roads (
oid serial,
osm_id bigint,
code int,
fclass varchar(150),
name varchar(250),
ref varchar(100),
oneway varchar(10),
bridge varchar(10),
tunnel varchar(10),
geom geometry(LineString, 4326)
);
alter table vectiles_input.lv_roads
add constraint pk__lv_roads
primary key (oid)
;
create index sidx__lv_roads
on vectiles_input.lv_roads
using gist(geom)
;
--lv_railways
drop table if exists vectiles_input.lv_railways;
create table vectiles_input.lv_railways (
oid serial,
category int,
disp_scale varchar(50),
geom geometry(LineString, 4326)
);
alter table vectiles_input.lv_railways
add constraint pk__lv_railways
primary key (oid)
;
create index sidx__lv_railways
on vectiles_input.lv_railways
using gist(geom)
;
|
<reponame>Ambal/mangos
DELETE FROM `spell_affect` WHERE `entry` IN
(12873,12872,11095,11252,12605,20244,20245,23565,16040,16113,16114,16115,16116,22804,14171,14172,14173,12290,12963,16858,16859,16860,16861,16862,
17815,17833,17834,17835,17836,21744,12866,12325,12863,12864,12865,12866,16194,16218,16219,16220,16221,23236,14143,14149,14151,26130,27848);
DELETE FROM `spell_affect` WHERE `entry` IN (12945,16544,18372) AND `effectId` = 0;
DELETE FROM `spell_affect` WHERE `entry` IN (14075,14074,14073,14072,14057,16544,23566) AND `effectId` = 1;
INSERT INTO `spell_affect` VALUES
(14143,0,0x0000000004000206),
(14149,0,0x0000000004000206);
|
<gh_stars>0
/**********************************************************************************************************
NAME: Segment example
SYNOPSIS: Main metrics for basic ecommerce KPIs querying GA360 BigQuery export
DEPENDENCIES: BigQuery Editor role (at least)
AUTHOR: <NAME> - @fserrey (inspiration source: ga4bigquery.com)
CREATED: 2020-12-22
VERSION: 1.0
LICENSE: Apache License v2
----------------------------------------------------------------------------
DISCLAIMER:
This code and information are provided "AS IS" without warranty of any kind,
either expressed or implied, including but not limited to the implied
warranties or merchantability and/or fitness for a particular purpose.
----------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
-- DATE VERSION AUTHOR DESCRIPTION --
---------------------------------------------------------------------------------------------------------
20201222 1.0 fserrey Open Sourced on GitHub
**********************************************************************************************************/
#standardSQL
WITH transactions AS(
SELECT
CONCAT(fullVisitorId, CAST(visitStartTime AS STRING)) AS session_id,
hits.transaction.transactionId AS transaction_id,
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_*`, UNNEST(hits) AS hits, UNNEST(product) AS product
WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20201130'
AND totals.visits = 1
AND (STARTS_WITH(v2ProductCategory, "Category_1/") OR REGEXP_CONTAINS(v2ProductCategory, "Category_1/"))
),
segment AS (
SELECT
CONCAT(fullVisitorId, CAST(visitStartTime AS STRING)) AS session_id,
COUNT(CASE WHEN hits.eCommerceAction.action_type = '2' THEN fullvisitorid ELSE NULL END) AS product_detail_views,
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_*`, UNNEST(hits) AS hits
WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20201130'
AND totals.visits = 1
AND REGEXP_CONTAINS(hits.page.pagePath, "Category_1/")
GROUP BY 1
HAVING product_detail_views >= 1
)
SELECT
COUNT(DISTINCT transaction_id) AS total_transactions_of_sessions_that_visited_a_pdp
FROM transactions t
JOIN segmento s ON t.session_id = s.session_id
--For this purpose, you can use a WHERE filter too (instead of JOIN):
--WHERE session_id IN (SELECT DISTINCT session_id FROM segment)
|
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (27,NULL,'2017-09-27 09:59:01.677000',NULL,NULL,'The following SNOMED CT Concept ID has been proposed to classify the type of composition/document.',NULL,'Document Type Codes SnCT',1,'ValueSet/document-type-codes-snct-1',NULL,'https://fhir.nhs.uk/ValueSet/document-type-codes-snct-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (28,NULL,'2017-09-27 09:59:01.934000',NULL,NULL,'Spine error or warning code in response to a request.',NULL,'Spine Error or Warning Code',1,'ValueSet/spine-error-or-warning-code-1',NULL,'https://fhir.nhs.uk/ValueSet/spine-error-or-warning-code-1',28);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (29,NULL,'2017-09-27 09:59:02.038000',NULL,NULL,'Basic chargeable status for the patient.',NULL,'Spine Chargeable Status',0,'ValueSet/spine-chargeable-status-1',NULL,'https://fhir.nhs.uk/ValueSet/spine-chargeable-status-1',30);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (30,NULL,'2017-09-27 09:59:03.011000',NULL,NULL,'Codes identifying the Visitors and Migrants observation component.',NULL,'Spine VM Observation Component',0,'ValueSet/spine-vm-observation-component-1',NULL,'https://fhir.nhs.uk/ValueSet/spine-vm-observation-component-1',32);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (31,NULL,'2017-09-27 09:59:03.027000',NULL,NULL,'The following SNOMED CT Concept ID has been proposed to classify the type of device.',NULL,'Device Type Codes SnCT',1,'ValueSet/device-type-codes-snct-1',NULL,'https://fhir.nhs.uk/ValueSet/device-type-codes-snct-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (32,NULL,'2017-09-27 09:59:03.101000',NULL,NULL,'Category chargeable status for the patient.',NULL,'Spine Category Status',0,'ValueSet/spine-category-status-1',NULL,'https://fhir.nhs.uk/ValueSet/spine-category-status-1',34);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (33,NULL,'2017-09-27 09:59:03.167000',NULL,NULL,'Codes identifying the type of observation.',NULL,'FHIR Observation Code',0,'ValueSet/fhir-observation-code-1',NULL,'https://fhir.nhs.uk/ValueSet/fhir-observation-code-1',36);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (34,NULL,'2017-09-27 09:59:03.211000',NULL,NULL,'The following SNOMED CT Concept ID has been proposed to classify the type of care setting.',NULL,'Care Setting Codes SnCT',1,'ValueSet/care-setting-codes-snct-1',NULL,'https://fhir.nhs.uk/ValueSet/care-setting-codes-snct-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (35,NULL,'2017-09-27 09:59:03.247000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes the setting in which a care event occurs, such as home, GMP surgery, outpatient, etc. Any code from the SNOMED CT UK ''CDA Care Setting Type'' subset with subset original id 1271000000134; the corresponding SNOMED CT UK Refset fully specified name is ''Clinical document architecture care setting type simple reference set (foundation metadata concept)'' with Refset Id 999000331000000108.',NULL,'CDA Care Setting Type SnCT',1,'ValueSet/cda-care-setting-type-snct-1',NULL,'https://fhir.nhs.uk/ValueSet/cda-care-setting-type-snct-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (36,NULL,'2017-09-27 09:59:03.738000',NULL,NULL,'A set of codes to classify a section of a composition/document.',NULL,'GP Connect Record Section',1,'ValueSet/gpconnect-record-section-1',NULL,'https://fhir.nhs.uk/ValueSet/gpconnect-record-section-1',44);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (37,NULL,'2017-09-27 09:59:03.754000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes the religious or other belief system affiliation of a person. Any code from the SNOMED CT UK ''Religious Affiliation SnCT'' subset with subset original id 10791000000130; the corresponding SNOMED CT UK Refset fully specified name is ''Religious or other belief system affiliation simple reference set (foundation metadata concept)'' with Refset Id 999000531000000100.',NULL,'Care Connect Religious Affiliation',1,'ValueSet/CareConnect-ReligiousAffiliation-1',NULL,'https://fhir-test.hl7.org.uk/ValueSet/CareConnect-ReligiousAffiliation-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (38,NULL,'2017-09-27 09:59:09.420000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes an encounter between a care professional and the patient (or patient''s record). The patient may be represented by a third party such as a carer or family member. Any code from the SNOMED CT UK ''Encounter Type'' subset with subset original id 1341000000130; the corresponding SNOMED CT UK Refset fully specified name is ''Clinical document architecture encounter type simple reference set (foundation metadata concept)'' with Refset Id 999000351000000101.',NULL,'Care Connect Encounter Type',1,'ValueSet/CareConnect-EncounterType-1',NULL,'https://fhir-test.hl7.org.uk/ValueSet/CareConnect-EncounterType-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (39,NULL,'2017-09-27 09:59:09.452000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes the e-Prescribing route of administration. Any code from the SNOMED CT UK ''NHS e-Prescribing route of administration subset'' with subset original id 30201000001137; the corresponding SNOMED CT UK Refset FSN is ''ePrescribing route of administration simple reference set (foundation metadata concept)'' with Refset Id 999000051000001100.',NULL,'Care Connect Medication Dosage Route',1,'ValueSet/CareConnect-MedicationDosageRoute-1',NULL,'https://fhir-test.hl7.org.uk/ValueSet/CareConnect-MedicationDosageRoute-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (40,NULL,'2017-09-27 09:59:09.556000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes the e-Prescribing method. Any code from the SNOMED CT UK ''NHS e-Prescribing method subset'' with subset original id 30101000001130; the corresponding SNOMED CT UK Refset fully specified name is ''ePrescribing method simple reference set (foundation metadata concept)'' with Refset Id 999000041000001103.',NULL,'Care Connect Medication Dosage Method',1,'ValueSet/CareConnect-MedicationDosageMethod-1',NULL,'https://fhir-test.hl7.org.uk/ValueSet/CareConnect-MedicationDosageMethod-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (41,NULL,'2017-09-27 09:59:09.748000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes the certainty of an allergy.',NULL,'Care Connect Allergy Certainty',1,'ValueSet/CareConnect-AllergyCertainty-1',NULL,'https://fhir-test.hl7.org.uk/ValueSet/CareConnect-AllergyCertainty-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (42,NULL,'2017-09-27 09:59:10.319000',NULL,NULL,'A code from the SNOMED Clinical Terminology UK coding system that describes a manufactured material (e.g. a pharmaceutical product or personal medical device). These will form part of the NHS dm+d. Any code from the SNOMED CT UK ''Manufactured Material'' subset with subset original id 1391000000139; the corresponding SNOMED CT UK Refset fully specified name is ''Manufactured material simple reference set (foundation metadata concept)'' with Refset Id 999000031000001105.',NULL,'Care Connect Manufactured Material SnCT',1,'ValueSet/CareConnect-ManufacturedMaterialSnCT-1',NULL,'https://fhir-test.hl7.org.uk/ValueSet/CareConnect-ManufacturedMaterialSnCT-1',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (43,NULL,'2017-09-27 09:59:11.077000',NULL,NULL,'This is an example value set that includes all the LOINC codes for serum/plasma cholesterol from v2.36.',NULL,'LOINC Codes for Cholesterol in Serum/Plasma',0,'ValueSet/example-extensional',NULL,'http://hl7.org/fhir/ValueSet/example-extensional',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (44,NULL,'2017-09-27 09:59:11.100000',NULL,NULL,'This is an example value set that includes all the ACME codes for serum/plasma cholesterol from v2.36.',NULL,'ACME Codes for Cholesterol in Serum/Plasma',0,'ValueSet/example-inline',NULL,'http://hl7.org/fhir/ValueSet/example-inline',65);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (45,NULL,'2017-09-27 09:59:11.107000',NULL,NULL,'This is an example value set that includes all the LOINC codes for serum/plasma cholesterol from v2.36.',NULL,'LOINC Codes for Cholesterol in Serum/Plasma',0,'ValueSet/example-intensional',NULL,'http://hl7.org/fhir/ValueSet/example-intensional',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (46,NULL,'2017-09-27 09:59:11.125000',NULL,NULL,'This is an example value set that includes all the LOINC codes for serum/plasma cholesterol from v2.36.',NULL,'LOINC Codes for Cholesterol in Serum/Plasma',0,'ValueSet/example-expansion',NULL,'http://hl7.org/fhir/ValueSet/example-expansion',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (47,NULL,'2017-09-27 09:59:14.499000',NULL,NULL,'DICOM Code Definitions (Coding Scheme Designator \"DCM\" Coding Scheme Version \"01\")',NULL,'DICOM Controlled Terminology Definitions',1,'ValueSet/dicom-dcim',NULL,'http://hl7.org/fhir/ValueSet/dicom-dcim',66);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (48,NULL,'2017-09-27 09:59:14.575000',NULL,NULL,'The set of interactions defined by the RESTful part of the FHIR specification.',NULL,'FHIR Restful Interactions',0,'ValueSet/restful-interaction',NULL,'http://hl7.org/fhir/ValueSet/restful-interaction',67);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (49,NULL,'2017-09-27 09:59:14.611000',NULL,NULL,'Commonly encountered UCUM units (for purposes of helping populate look ups.',NULL,'Common UCUM units',0,'ValueSet/ucum-common',NULL,'http://hl7.org/fhir/ValueSet/ucum-common',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (50,NULL,'2017-09-27 09:59:16.231000',NULL,NULL,'A value set that includes all CPT codes',NULL,'All CPT codes',1,'ValueSet/cpt-all',NULL,'http://hl7.org/fhir/ValueSet/cpt-all',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (51,NULL,'2017-09-27 09:59:16.246000',NULL,NULL,'For Capturing simple yes-no-don''t know answers',NULL,'Yes/No/Don''t Know',0,'ValueSet/yesnodontknow',NULL,'http://hl7.org/fhir/ValueSet/yesnodontknow',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (52,NULL,'2017-09-27 09:59:16.279000',NULL,NULL,'This value set is suitable for use with the provenance resource. It is derived from, but not compatible with, the HL7 v3 Purpose of use Code system.',NULL,'NHIN PurposeOfUse',1,'ValueSet/nhin-purposeofuse',NULL,'http://hl7.org/fhir/ValueSet/nhin-purposeofuse',71);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (53,NULL,'2017-09-27 09:59:16.295000',NULL,NULL,'The answer list for question 1 on the AHRQ ''Medication or Other Substance'' form',NULL,'AHRQ Medication Q1',1,'ValueSet/valueset-sdc-profile-example',NULL,'http://hl7.org/fhir/ValueSet/valueset-sdc-profile-example',72);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (54,NULL,'2017-09-27 09:59:16.309000',NULL,NULL,'General reasons for a list to be empty. Reasons are either related to a summary list (i.e. problem or medication list) or to a workflow related list (i.e. consultation list).',NULL,'List Empty Reasons',0,'ValueSet/list-empty-reason',NULL,'http://hl7.org/fhir/ValueSet/list-empty-reason',73);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (55,NULL,'2017-09-27 09:59:16.316000',NULL,NULL,'Procedure Outcome code: A selection of relevant SNOMED CT codes.',NULL,'Procedure Outcome Codes (SNOMED CT)',0,'ValueSet/procedure-outcome',NULL,'http://hl7.org/fhir/ValueSet/procedure-outcome',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (56,NULL,'2017-09-27 09:59:16.352000',NULL,NULL,'The nature of the relationship with this procedure.',NULL,'ProcedureRelationshipType',0,'ValueSet/procedure-relationship-type',NULL,'http://hl7.org/fhir/ValueSet/procedure-relationship-type',74);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (57,NULL,'2017-09-27 09:59:16.368000',NULL,NULL,'How slices are interpreted when evaluating an instance.',NULL,'SlicingRules',0,'ValueSet/resource-slicing-rules',NULL,'http://hl7.org/fhir/ValueSet/resource-slicing-rules',75);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (58,NULL,'2017-09-27 09:59:16.388000',NULL,NULL,'Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.',NULL,'Media SubType',0,'ValueSet/digital-media-subtype',NULL,'http://hl7.org/fhir/ValueSet/digital-media-subtype',76);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (59,NULL,'2017-09-27 09:59:16.414000',NULL,NULL,'This value set includes smattering of a Adjustment Reason codes.',NULL,'Adjustment Reason Codes',0,'ValueSet/adjustment-reason',NULL,'http://hl7.org/fhir/ValueSet/adjustment-reason',77);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (60,NULL,'2017-09-27 09:59:16.427000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate the purpose for which you would contact a contact party.',NULL,'ContactEntityType',0,'ValueSet/contactentity-type',NULL,'http://hl7.org/fhir/ValueSet/contactentity-type',78);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (61,NULL,'2017-09-27 09:59:16.438000',NULL,NULL,'Statement about the degree of clinical certainty that a Specific Substance was the cause of the Manifestation in an reaction event.',NULL,'AllergyIntoleranceCertainty',0,'ValueSet/reaction-event-certainty',NULL,'http://hl7.org/fhir/ValueSet/reaction-event-certainty',79);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (62,NULL,'2017-09-27 09:59:16.451000',NULL,NULL,'How a search parameter relates to the set of elements returned by evaluating its xpath query.',NULL,'XPathUsageType',0,'ValueSet/search-xpath-usage',NULL,'http://hl7.org/fhir/ValueSet/search-xpath-usage',80);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (63,NULL,'2017-09-27 09:59:16.462000',NULL,NULL,'The status of the encounter.',NULL,'EpisodeOfCareStatus',0,'ValueSet/episode-of-care-status',NULL,'http://hl7.org/fhir/ValueSet/episode-of-care-status',81);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (64,NULL,'2017-09-27 09:59:16.468000',NULL,NULL,'Example codes indicating the timing of when the request should be (is intended to be) fulfilled.',NULL,'Supply Request When',0,'ValueSet/supplyrequest-when',NULL,'http://hl7.org/fhir/ValueSet/supplyrequest-when',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (65,NULL,'2017-09-27 09:59:16.488000',NULL,NULL,'Codes specifying how two observations are related.',NULL,'ObservationRelationshipType',0,'ValueSet/observation-relationshiptypes',NULL,'http://hl7.org/fhir/ValueSet/observation-relationshiptypes',82);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (66,NULL,'2017-09-27 09:59:16.501000',NULL,NULL,'Indicates the potential degree of impact of the identified issue on the patient.',NULL,'DetectedIssueSeverity',0,'ValueSet/detectedissue-severity',NULL,'http://hl7.org/fhir/ValueSet/detectedissue-severity',83);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (67,NULL,'2017-09-27 09:59:16.514000',NULL,NULL,'This value set defines a set of codes that can be used to indicate the kinds of special arrangements in place for a patients visit.',NULL,'SpecialArrangements',0,'ValueSet/encounter-special-arrangements',NULL,'http://hl7.org/fhir/ValueSet/encounter-special-arrangements',84);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (68,NULL,'2017-09-27 09:59:16.531000',NULL,NULL,'SupplementType : Codes for nutritional supplements to be provided to the patient. This value set is is composed of SNOMED CT (US Extension) Concepts from SCTID 470581016 Enteral+supplement feeds hierarchy and is provided as a suggestive example.',NULL,'Supplement Type Codes',0,'ValueSet/supplement-type',NULL,'http://hl7.org/fhir/ValueSet/supplement-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (69,NULL,'2017-09-27 09:59:16.638000',NULL,NULL,'Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified Substance.',NULL,'AllergyIntoleranceStatus',0,'ValueSet/allergy-intolerance-status',NULL,'http://hl7.org/fhir/ValueSet/allergy-intolerance-status',85);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (70,NULL,'2017-09-27 09:59:16.651000',NULL,NULL,'A set of codes that can be used to indicate the relationship between a Patient and a Related Person.',NULL,'PatientRelationshipType',0,'ValueSet/relatedperson-relationshiptype',NULL,'http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (71,NULL,'2017-09-27 09:59:16.716000',NULL,NULL,'This value set is provided as an exemplar. The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process.',NULL,'Reason Medication Not Given Codes',0,'ValueSet/reason-medication-not-given-codes',NULL,'http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes',86);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (72,NULL,'2017-09-27 09:59:16.725000',NULL,NULL,'Procedure Code: All SNOMED CT procedure codes.',NULL,'Procedure Codes (SNOMED CT)',0,'ValueSet/procedure-code',NULL,'http://hl7.org/fhir/ValueSet/procedure-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (73,NULL,'2017-09-27 09:59:16.759000',NULL,NULL,'This value set defines a set of codes that can be used to where the patient left the hospital.',NULL,'DischargeDisposition',0,'ValueSet/encounter-discharge-disposition',NULL,'http://hl7.org/fhir/ValueSet/encounter-discharge-disposition',87);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (74,NULL,'2017-09-27 09:59:16.772000',NULL,NULL,'The status of the communication.',NULL,'CommunicationRequestStatus',0,'ValueSet/communication-request-status',NULL,'http://hl7.org/fhir/ValueSet/communication-request-status',88);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (75,NULL,'2017-09-27 09:59:16.784000',NULL,NULL,'The way in which a person authenticated a composition.',NULL,'CompositionAttestationMode',0,'ValueSet/composition-attestation-mode',NULL,'http://hl7.org/fhir/ValueSet/composition-attestation-mode',89);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (76,NULL,'2017-09-27 09:59:16.793000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Vaccination Protocol Dose Status codes',0,'ValueSet/vaccination-protocol-dose-status',NULL,'http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status',90);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (77,NULL,'2017-09-27 09:59:16.803000',NULL,NULL,'Indicates whether the location is still in use.',NULL,'LocationStatus',0,'ValueSet/location-status',NULL,'http://hl7.org/fhir/ValueSet/location-status',91);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (78,NULL,'2017-09-27 09:59:16.814000',NULL,NULL,'How the system supports versioning for a resource.',NULL,'ResourceVersionPolicy',0,'ValueSet/versioning-policy',NULL,'http://hl7.org/fhir/ValueSet/versioning-policy',92);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (79,NULL,'2017-09-27 09:59:16.824000',NULL,NULL,'Whether the Media is a photo, video, or audio',NULL,'DigitalMediaType',0,'ValueSet/digital-media-type',NULL,'http://hl7.org/fhir/ValueSet/digital-media-type',93);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (80,NULL,'2017-09-27 09:59:16.836000',NULL,NULL,'This value set includes sample Contract Type codes.',NULL,'Contract Type Codes',0,'ValueSet/contract-type',NULL,'http://hl7.org/fhir/ValueSet/contract-type',94);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (81,NULL,'2017-09-27 09:59:16.850000',NULL,NULL,'Codes specifying the state of the request. Describes the lifecycle of the nutrition order.',NULL,'NutritionOrderStatus',0,'ValueSet/nutrition-order-status',NULL,'http://hl7.org/fhir/ValueSet/nutrition-order-status',95);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (82,NULL,'2017-09-27 09:59:16.862000',NULL,NULL,'Example use codes for the List resource - typical kinds of use.',NULL,'Example Use Codes for List',0,'ValueSet/list-example-codes',NULL,'http://hl7.org/fhir/ValueSet/list-example-codes',96);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (83,NULL,'2017-09-27 09:59:16.873000',NULL,NULL,'Identifies the purpose for this identifier, if known .',NULL,'IdentifierUse',0,'ValueSet/identifier-use',NULL,'http://hl7.org/fhir/ValueSet/identifier-use',97);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (84,NULL,'2017-09-27 09:59:16.880000',NULL,NULL,'Example list of potential categegories for questionnaires.',NULL,'Questionnaire Category Codes',0,'ValueSet/questionnaire-category',NULL,'http://hl7.org/fhir/ValueSet/questionnaire-category',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (85,NULL,'2017-09-27 09:59:16.906000',NULL,NULL,'Identifies the purpose of the naming system.',NULL,'NamingSystemType',0,'ValueSet/namingsystem-type',NULL,'http://hl7.org/fhir/ValueSet/namingsystem-type',98);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (86,NULL,'2017-09-27 09:59:16.924000',NULL,NULL,'The type of response code to use for assertion. The response code to expect in the response.',NULL,'AssertionResponseTypes',0,'ValueSet/assert-response-code-types',NULL,'http://hl7.org/fhir/ValueSet/assert-response-code-types',99);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (87,NULL,'2017-09-27 09:59:16.935000',NULL,NULL,'The mode of a RESTful conformance statement.',NULL,'RestfulConformanceMode',0,'ValueSet/restful-conformance-mode',NULL,'http://hl7.org/fhir/ValueSet/restful-conformance-mode',100);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (88,NULL,'2017-09-27 09:59:16.947000',NULL,NULL,'Types of relationships between two goals',NULL,'GoalRelationshipType',0,'ValueSet/goal-relationship-type',NULL,'http://hl7.org/fhir/ValueSet/goal-relationship-type',101);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (89,NULL,'2017-09-27 09:59:16.959000',NULL,NULL,'A code that indicates how transactions are supported.',NULL,'TransactionMode',0,'ValueSet/transaction-mode',NULL,'http://hl7.org/fhir/ValueSet/transaction-mode',102);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (90,NULL,'2017-09-27 09:59:16.967000',NULL,NULL,'Codes defined in SNOMED CT that can be used to record Media Recording views.',NULL,'Media Collection View/Projection',0,'ValueSet/media-view',NULL,'http://hl7.org/fhir/ValueSet/media-view',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (91,NULL,'2017-09-27 09:59:16.987000',NULL,NULL,'Observation Method codes from SNOMED CT (codes subsumed by 272394005 \"Technique\", and the v3 Code System \"ObservationMethod\" (which is no longer actively maintained).',NULL,'Observation Methods',0,'ValueSet/observation-methods',NULL,'http://hl7.org/fhir/ValueSet/observation-methods',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (92,NULL,'2017-09-27 09:59:17.018000',NULL,NULL,'This value set defines a set of codes that can be used to indicate dietary preferences or restrictions a patient may have.',NULL,'Diet',0,'ValueSet/encounter-diet',NULL,'http://hl7.org/fhir/ValueSet/encounter-diet',104);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (93,NULL,'2017-09-27 09:59:17.029000',NULL,NULL,'This value set defines a base set of codes that can be used to indicate that the content in a resource was developed with a focus and intent of supporting use within particular contexts.',NULL,'Context of Use ValueSet',0,'ValueSet/use-context',NULL,'http://hl7.org/fhir/ValueSet/use-context',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (94,NULL,'2017-09-27 09:59:17.055000',NULL,NULL,'Example codes indicating the reason for a current status. Note that these are in no way complete and may not even be appropriate for some uses.',NULL,'GoalStatusReason',0,'ValueSet/goal-status-reason',NULL,'http://hl7.org/fhir/ValueSet/goal-status-reason',107);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (95,NULL,'2017-09-27 09:59:17.065000',NULL,NULL,'A Master Patient Index (MPI) assessment of whether a candidate patient record is a match or not.',NULL,'MPIMatch',0,'ValueSet/patient-mpi-match',NULL,'http://hl7.org/fhir/ValueSet/patient-mpi-match',108);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (96,NULL,'2017-09-27 09:59:17.076000',NULL,NULL,'The mode of a message conformance statement.',NULL,'ConformanceEventMode',0,'ValueSet/message-conformance-event-mode',NULL,'http://hl7.org/fhir/ValueSet/message-conformance-event-mode',109);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (97,NULL,'2017-09-27 09:59:17.083000',NULL,NULL,'This examples value set defines the set of codes that can be used to indicate reasons for an encounter.',NULL,'Encounter Reason Codes',0,'ValueSet/encounter-reason',NULL,'http://hl7.org/fhir/ValueSet/encounter-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (98,NULL,'2017-09-27 09:59:17.105000',NULL,NULL,'Indicates whether a resource instance represents a specific location or a class of locations.',NULL,'LocationMode',0,'ValueSet/location-mode',NULL,'http://hl7.org/fhir/ValueSet/location-mode',110);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (99,NULL,'2017-09-27 09:59:17.116000',NULL,NULL,'Enumeration indicating whether the condition is currently active, inactive, or has been resolved. active| inactive| resolved',NULL,'ConditionState',0,'ValueSet/condition-state',NULL,'http://hl7.org/fhir/ValueSet/condition-state',111);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (100,NULL,'2017-09-27 09:59:17.127000',NULL,NULL,'How a property is represented on the wire.',NULL,'PropertyRepresentation',0,'ValueSet/property-representation',NULL,'http://hl7.org/fhir/ValueSet/property-representation',112);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (101,NULL,'2017-09-27 09:59:17.139000',NULL,NULL,'Preferred value set for Condition Clinical Status.',NULL,'Condition Clinical Status Codes',0,'ValueSet/condition-clinical',NULL,'http://hl7.org/fhir/ValueSet/condition-clinical',113);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (102,NULL,'2017-09-27 09:59:17.146000',NULL,NULL,'This value set includes all the \"Anatomical Structure\" SNOMED CT codes (i.e. codes with an is-a relationship with 91723000: Anatomical structure).',NULL,'SNOMED CT Body Structures',0,'ValueSet/body-site',NULL,'http://hl7.org/fhir/ValueSet/body-site',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (103,NULL,'2017-09-27 09:59:17.172000',NULL,NULL,'Indicator for type of action performed during the event that generated the audit.',NULL,'AuditEventAction',0,'ValueSet/audit-event-action',NULL,'http://hl7.org/fhir/ValueSet/audit-event-action',114);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (104,NULL,'2017-09-27 09:59:17.180000',NULL,NULL,'Example value set for stages of cancer and other conditions',NULL,'Condition Stage',0,'ValueSet/condition-stage',NULL,'http://hl7.org/fhir/ValueSet/condition-stage',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (105,NULL,'2017-09-27 09:59:17.199000',NULL,NULL,'The value set is defined to be the set of format codes defined by the IHE Technical Framework, and also including additional format codes defined by the HL7. The value set is listed in HITSP C80 Table 2-153 Format Code Value Set Definition, with additions published later by IHE as published at http://wiki.ihe.net/index.php?title=IHE_Format_Codes and with additions published later by HL7 as published at http://wiki.hl7.org/index.php?title=CDA_Format_Codes_for_IHE_XDS. This is the code specifying the technical format of the document. Along with the typeCode, it should provide sufficient information to allow any potential document consumer to know if it will be able to process the document. The code shall be sufficiently specific to ensure processing/display by identifying a document encoding, structure and template. The actual list of codes here is incomplete',NULL,'DocumentReference Format Code Set',1,'ValueSet/formatcodes',NULL,'http://hl7.org/fhir/ValueSet/formatcodes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (106,NULL,'2017-09-27 09:59:17.288000',NULL,NULL,'SNOMED-CT concepts modifying the anatomic location',NULL,'Bodysite Location Modifier',0,'ValueSet/bodysite-relative-location',NULL,'http://hl7.org/fhir/ValueSet/bodysite-relative-location',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (107,NULL,'2017-09-27 09:59:17.322000',NULL,NULL,'Why a resource is included in the guide.',NULL,'GuideResourcePurpose',0,'ValueSet/guide-resource-purpose',NULL,'http://hl7.org/fhir/ValueSet/guide-resource-purpose',116);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (108,NULL,'2017-09-27 09:59:17.336000',NULL,NULL,'Status of the supply request',NULL,'SupplyRequestStatus',0,'ValueSet/supplyrequest-status',NULL,'http://hl7.org/fhir/ValueSet/supplyrequest-status',117);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (109,NULL,'2017-09-27 09:59:17.348000',NULL,NULL,'How resource references can be aggregated.',NULL,'AggregationMode',0,'ValueSet/resource-aggregation-mode',NULL,'http://hl7.org/fhir/ValueSet/resource-aggregation-mode',118);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (110,NULL,'2017-09-27 09:59:17.361000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate breeds of species.',NULL,'AnimalBreeds',0,'ValueSet/animal-breeds',NULL,'http://hl7.org/fhir/ValueSet/animal-breeds',119);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (111,NULL,'2017-09-27 09:59:17.370000',NULL,NULL,'The document title code of key object selection',NULL,'KOStitle',0,'ValueSet/kos-title',NULL,'http://hl7.org/fhir/ValueSet/kos-title',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (112,NULL,'2017-09-27 09:59:17.591000',NULL,NULL,'The Digital Signature Purposes, an indication of the reason an entity signs a document. This is included in the signed information and can be used when determining accountability for various actions concerning the document. Examples include: author, transcriptionist/recorder, and witness.',NULL,'Signature Type Codes',0,'ValueSet/signature-type',NULL,'http://hl7.org/fhir/ValueSet/signature-type',120);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (113,NULL,'2017-09-27 09:59:17.605000',NULL,NULL,'How a dependency is represented when the guide is published.',NULL,'GuideDependencyType',0,'ValueSet/guide-dependency-type',NULL,'http://hl7.org/fhir/ValueSet/guide-dependency-type',121);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (114,NULL,'2017-09-27 09:59:17.617000',NULL,NULL,'This value set includes sample Exception codes.',NULL,'Exception Codes',0,'ValueSet/claim-exception',NULL,'http://hl7.org/fhir/ValueSet/claim-exception',122);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (115,NULL,'2017-09-27 09:59:17.635000',NULL,NULL,'This value set defines a set of codes that can be used to indicate from where the patient came in.',NULL,'AdmitSource',0,'ValueSet/encounter-admit-source',NULL,'http://hl7.org/fhir/ValueSet/encounter-admit-source',123);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (116,NULL,'2017-09-27 09:59:17.648000',NULL,NULL,'The current state of the list',NULL,'ListStatus',0,'ValueSet/list-status',NULL,'http://hl7.org/fhir/ValueSet/list-status',124);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (117,NULL,'2017-09-27 09:59:17.695000',NULL,NULL,'A code that describes the type of issue.',NULL,'IssueType',0,'ValueSet/issue-type',NULL,'http://hl7.org/fhir/ValueSet/issue-type',125);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (118,NULL,'2017-09-27 09:59:17.709000',NULL,NULL,'The type of an address (physical / postal) The type of an address (physical / postal).',NULL,'AddressType',0,'ValueSet/address-type',NULL,'http://hl7.org/fhir/ValueSet/address-type',126);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (119,NULL,'2017-09-27 09:59:17.722000',NULL,NULL,'The type of link between this patient resource and another patient resource.',NULL,'LinkType',0,'ValueSet/link-type',NULL,'http://hl7.org/fhir/ValueSet/link-type',127);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (120,NULL,'2017-09-27 09:59:17.731000',NULL,NULL,'Codes specifying the type of probability distribution',NULL,'ProbabilityDistributionType',0,'ValueSet/probability-distribution-type',NULL,'http://hl7.org/fhir/ValueSet/probability-distribution-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (121,NULL,'2017-09-27 09:59:17.772000',NULL,NULL,'This value set includes a smattering of USCLS codes.',NULL,'USCLS Codes',0,'ValueSet/service-uscls',NULL,'http://hl7.org/fhir/ValueSet/service-uscls',129);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (122,NULL,'2017-09-27 09:59:17.785000',NULL,NULL,'The gender of a person used for administrative purposes.',NULL,'AdministrativeGender',0,'ValueSet/administrative-gender',NULL,'http://hl7.org/fhir/ValueSet/administrative-gender',22);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (123,NULL,'2017-09-27 09:59:17.866000',NULL,NULL,'One of the resource types defined as part of FHIR.',NULL,'ResourceType',0,'ValueSet/resource-types',NULL,'http://hl7.org/fhir/ValueSet/resource-types',130);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (124,NULL,'2017-09-27 09:59:17.884000',NULL,NULL,'The kind of an included page.',NULL,'GuidePageKind',0,'ValueSet/guide-page-kind',NULL,'http://hl7.org/fhir/ValueSet/guide-page-kind',131);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (125,NULL,'2017-09-27 09:59:17.893000',NULL,NULL,'Example Codes for types of activities that can appear in a care plan.',NULL,'Care Plan Activity',0,'ValueSet/care-plan-activity',NULL,'http://hl7.org/fhir/ValueSet/care-plan-activity',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (126,NULL,'2017-09-27 09:59:17.918000',NULL,NULL,'The protocol used for message transport.',NULL,'MessageTransport',0,'ValueSet/message-transport',NULL,'http://hl7.org/fhir/ValueSet/message-transport',132);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (127,NULL,'2017-09-27 09:59:17.932000',NULL,NULL,'Example Item Flags for the List Resource. In this case, these are the kind of flags that would be used on a medication list at the end of a consultation.',NULL,'Patient Medicine Change Types',0,'ValueSet/list-item-flag',NULL,'http://hl7.org/fhir/ValueSet/list-item-flag',133);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (128,NULL,'2017-09-27 09:59:17.943000',NULL,NULL,'This value sets refers to a specific supply item.',NULL,'Supply Item Type',0,'ValueSet/supplydelivery-type',NULL,'http://hl7.org/fhir/ValueSet/supplydelivery-type',134);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (129,NULL,'2017-09-27 09:59:17.960000',NULL,NULL,'This value set includes a smattering of FDI tooth surface codes.',NULL,'Surface Codes',0,'ValueSet/surface',NULL,'http://hl7.org/fhir/ValueSet/surface',135);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (130,NULL,'2017-09-27 09:59:17.972000',NULL,NULL,'Lifecycle status of the questionnaire response.',NULL,'QuestionnaireResponseStatus',0,'ValueSet/questionnaire-answers-status',NULL,'http://hl7.org/fhir/ValueSet/questionnaire-answers-status',136);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (131,NULL,'2017-09-27 09:59:17.986000',NULL,NULL,'The free/busy status of a slot.',NULL,'SlotStatus',0,'ValueSet/slotstatus',NULL,'http://hl7.org/fhir/ValueSet/slotstatus',137);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (132,NULL,'2017-09-27 09:59:18.005000',NULL,NULL,'The verification status to support or decline the clinical status of the condition or diagnosis.',NULL,'ConditionVerificationStatus',0,'ValueSet/condition-ver-status',NULL,'http://hl7.org/fhir/ValueSet/condition-ver-status',138);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (133,NULL,'2017-09-27 09:59:18.019000',NULL,NULL,'Complete, proposed, exploratory, other.',NULL,'Use',0,'ValueSet/claim-use-link',NULL,'http://hl7.org/fhir/ValueSet/claim-use-link',139);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (134,NULL,'2017-09-27 09:59:18.027000',NULL,NULL,'Operations supported by REST at the system level.',NULL,'SystemRestfulInteraction',0,'ValueSet/system-restful-interaction',NULL,'http://hl7.org/fhir/ValueSet/system-restful-interaction',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (135,NULL,'2017-09-27 09:59:18.052000',NULL,NULL,'Indicates whether the event succeeded or failed',NULL,'AuditEventOutcome',0,'ValueSet/audit-event-outcome',NULL,'http://hl7.org/fhir/ValueSet/audit-event-outcome',140);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (136,NULL,'2017-09-27 09:59:18.059000',NULL,NULL,'Containers which may hold specimens or specimen containers - all SNOMED CT specimen containers.',NULL,'SpecimenContainer',0,'ValueSet/specimen-container-type',NULL,'http://hl7.org/fhir/ValueSet/specimen-container-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (137,NULL,'2017-09-27 09:59:18.085000',NULL,NULL,'This value set includes a smattering of adjudication codes.',NULL,'Adjudication Error Codes',0,'ValueSet/adjudication-error',NULL,'http://hl7.org/fhir/ValueSet/adjudication-error',141);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (138,NULL,'2017-09-27 09:59:18.101000',NULL,NULL,'This value set includes sample Modifier type codes.',NULL,'Modifier type Codes',0,'ValueSet/claim-modifiers',NULL,'http://hl7.org/fhir/ValueSet/claim-modifiers',142);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (139,NULL,'2017-09-27 09:59:18.108000',NULL,NULL,'DietCode : Codes that can be used to indicate the type of food being ordered for a patient. This value set includes all children of SNOMED CT Concepts (US Extension and Core) from SCTID 182922004 Dietary regime (Therapeutic or Preventive Procedure) and is provided as a suggestive example.',NULL,'Diet Codes',0,'ValueSet/diet-type',NULL,'http://hl7.org/fhir/ValueSet/diet-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (140,NULL,'2017-09-27 09:59:18.132000',NULL,NULL,'Substance category codes',NULL,'Substance Category Codes',0,'ValueSet/substance-category',NULL,'http://hl7.org/fhir/ValueSet/substance-category',143);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (141,NULL,'2017-09-27 09:59:18.145000',NULL,NULL,'A set of codes indicating the current status of a MedicationAdministration.',NULL,'MedicationAdministrationStatus',0,'ValueSet/medication-admin-status',NULL,'http://hl7.org/fhir/ValueSet/medication-admin-status',144);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (142,NULL,'2017-09-27 09:59:18.236000',NULL,NULL,'This is the code specifying the precise type of document (e.g. Pulmonary History and Physical, Discharge Summary, Ultrasound Report, etc.). The Document Type value set includes all LOINC values listed in HITSP C80 Table 2-144 Document Class Value Set Definition above used for Document Class, and all LOINC values whose SCALE is DOC in the LOINC database.',NULL,'Document Type Value Set',1,'ValueSet/c80-doc-typecodes',NULL,'http://hl7.org/fhir/ValueSet/c80-doc-typecodes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (143,NULL,'2017-09-27 09:59:28.040000',NULL,NULL,'A set of codes indicating the current status of a MedicationStatement.',NULL,'MedicationStatementStatus',0,'ValueSet/medication-statement-status',NULL,'http://hl7.org/fhir/ValueSet/medication-statement-status',145);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (144,NULL,'2017-09-27 09:59:28.055000',NULL,NULL,'This value set is provided as an exemplar. The value set is driven by IHE Table B.8-4: Abnormal Flags, Alert Priority.',NULL,'Flag Priority Codes',0,'ValueSet/flag-priority',NULL,'http://hl7.org/fhir/ValueSet/flag-priority',146);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (145,NULL,'2017-09-27 09:59:28.067000',NULL,NULL,'This value set includes a smattering of Service/Product codes.',NULL,'Example Service/Product Codes',0,'ValueSet/service-product',NULL,'http://hl7.org/fhir/ValueSet/service-product',147);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (146,NULL,'2017-09-27 09:59:28.084000',NULL,NULL,'The content or mime type. The content type or mime type to be specified in Accept or Content-Type header.',NULL,'ContentType',0,'ValueSet/content-type',NULL,'http://hl7.org/fhir/ValueSet/content-type',148);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (147,NULL,'2017-09-27 09:59:28.095000',NULL,NULL,'Identification of the underlying physiological mechanism for a Reaction Risk.',NULL,'AllergyIntoleranceType',0,'ValueSet/allergy-intolerance-type',NULL,'http://hl7.org/fhir/ValueSet/allergy-intolerance-type',149);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (148,NULL,'2017-09-27 09:59:28.109000',NULL,NULL,'This value set is provided as an exemplar. The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process.',NULL,'Reason Medication Given Codes',0,'ValueSet/reason-medication-given-codes',NULL,'http://hl7.org/fhir/ValueSet/reason-medication-given-codes',150);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (149,NULL,'2017-09-27 09:59:28.123000',NULL,NULL,'This value set includes sample Conditions codes.',NULL,'Conditions Codes',0,'ValueSet/fm-conditions',NULL,'http://hl7.org/fhir/ValueSet/fm-conditions',151);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (150,NULL,'2017-09-27 09:59:28.131000',NULL,NULL,'LOINC codes for Document Kind, taken from the LOINC document ontology.',NULL,'FHIR Document Class Codes',0,'ValueSet/doc-classcodes',NULL,'http://hl7.org/fhir/ValueSet/doc-classcodes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (151,NULL,'2017-09-27 09:59:28.471000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Vaccination Protocol Dose Status Reason codes',0,'ValueSet/vaccination-protocol-dose-status-reason',NULL,'http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status-reason',152);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (152,NULL,'2017-09-27 09:59:28.482000',NULL,NULL,'Whether an operation parameter is an input or an output parameter.',NULL,'OperationParameterUse',0,'ValueSet/operation-parameter-use',NULL,'http://hl7.org/fhir/ValueSet/operation-parameter-use',153);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (153,NULL,'2017-09-27 09:59:28.494000',NULL,NULL,'The presentation types of notes.',NULL,'NoteType',0,'ValueSet/note-type',NULL,'http://hl7.org/fhir/ValueSet/note-type',154);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (154,NULL,'2017-09-27 09:59:28.508000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate the specialty of a Practitioner.',NULL,'PractitionerSpecialty',0,'ValueSet/practitioner-specialty',NULL,'http://hl7.org/fhir/ValueSet/practitioner-specialty',155);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (155,NULL,'2017-09-27 09:59:28.522000',NULL,NULL,'This is an example value set defined by the FHIR project, that could be used in Emergency to indicate the encounter priority as determined by triage.',NULL,'Encounter Priority',0,'ValueSet/encounter-priority',NULL,'http://hl7.org/fhir/ValueSet/encounter-priority',156);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (156,NULL,'2017-09-27 09:59:28.535000',NULL,NULL,'The allowed codes for identifying the ISO 11179 ObjectClass for a particular data element if intended for registration/use within the U.S. Structured Data Capture (SDC) project.',NULL,'DataElement SDC Object Class',0,'ValueSet/dataelement-sdcobjectclass',NULL,'http://hl7.org/fhir/ValueSet/dataelement-sdcobjectclass',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (157,NULL,'2017-09-27 09:59:28.568000',NULL,NULL,'Code representing the role the Object played in the event.',NULL,'AuditEventObjectRole',0,'ValueSet/object-role',NULL,'http://hl7.org/fhir/ValueSet/object-role',158);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (158,NULL,'2017-09-27 09:59:28.578000',NULL,NULL,'Example list of detail codes for flagged issues. (Not complete or necessarily appropriate.)',NULL,'Flag Code',0,'ValueSet/flag-code',NULL,'http://hl7.org/fhir/ValueSet/flag-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (159,NULL,'2017-09-27 09:59:28.608000',NULL,NULL,'This value sets refers to a Category of supply.',NULL,'Supply Type',0,'ValueSet/supplyrequest-kind',NULL,'http://hl7.org/fhir/ValueSet/supplyrequest-kind',159);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (160,NULL,'2017-09-27 09:59:28.617000',NULL,NULL,'Uses of an address not included in Address.use',NULL,'PostalAddressUse',0,'ValueSet/postal-address-use',NULL,'http://hl7.org/fhir/ValueSet/postal-address-use',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (161,NULL,'2017-09-27 09:59:28.636000',NULL,NULL,'A code specifying the state of the dispense event. Describes the lifecycle of the dispense.',NULL,'MedicationDispenseStatus',0,'ValueSet/medication-dispense-status',NULL,'http://hl7.org/fhir/ValueSet/medication-dispense-status',161);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (162,NULL,'2017-09-27 09:59:28.649000',NULL,NULL,'This value set defines a set of codes that are used to indicate the nature of the relationship between a patient and a contactperson for that patient.',NULL,'PatientContactRelationship',0,'ValueSet/patient-contact-relationship',NULL,'http://hl7.org/fhir/ValueSet/patient-contact-relationship',162);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (163,NULL,'2017-09-27 09:59:28.658000',NULL,NULL,'The status of the location.',NULL,'EncounterLocationStatus',0,'ValueSet/encounter-location-status',NULL,'http://hl7.org/fhir/ValueSet/encounter-location-status',163);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (164,NULL,'2017-09-27 09:59:28.665000',NULL,NULL,'EnteralRouteOfAdministration: Codes specifying the route of administration of enteral formula. This value set is composed of HL7 v3 codes and is provided as a suggestive example.',NULL,'Enteral Route Codes',0,'ValueSet/enteral-route',NULL,'http://hl7.org/fhir/ValueSet/enteral-route',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (165,NULL,'2017-09-27 09:59:28.679000',NULL,NULL,'A set of codes each of which specifies a certain subcategory of the name part in addition to the main name part type',NULL,'EntityNamePartQualifier',0,'ValueSet/name-part-qualifier',NULL,'http://hl7.org/fhir/ValueSet/name-part-qualifier',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (166,NULL,'2017-09-27 09:59:28.700000',NULL,NULL,'Identifier for the data life-cycle stage for the object.',NULL,'AuditEventObjectLifecycle',0,'ValueSet/object-lifecycle',NULL,'http://hl7.org/fhir/ValueSet/object-lifecycle',166);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (167,NULL,'2017-09-27 09:59:28.712000',NULL,NULL,'The Digital Signature Purposes, an indication of the reason an entity signs a document. This is included in the signed information and can be used when determining accountability for various actions concerning the document. Examples include: author, transcriptionist/recorder, and witness.',NULL,'Signature Type Codes',0,'ValueSet/contract-signer-type',NULL,'http://hl7.org/fhir/ValueSet/contract-signer-type',167);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (168,NULL,'2017-09-27 09:59:28.718000',NULL,NULL,'Example value set for Condition Predecessor codes',NULL,'Condition Predecessor Codes',0,'ValueSet/condition-predecessor',NULL,'http://hl7.org/fhir/ValueSet/condition-predecessor',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (169,NULL,'2017-09-27 09:59:28.732000',NULL,NULL,'One of the message events defined as part of FHIR.',NULL,'MessageEvent',0,'ValueSet/message-events',NULL,'http://hl7.org/fhir/ValueSet/message-events',168);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (170,NULL,'2017-09-27 09:59:28.738000',NULL,NULL,'This is the code representing the clinical specialty of the clinician or provider who interacted with, treated, or provided a service to/for the patient. The value set used for clinical specialty has been limited by HITSP to the value set reproduced from HITSP C80 Table 2-149 Clinical Specialty Value Set Definition.',NULL,'Practice Setting Code Value Set',1,'ValueSet/c80-practice-codes',NULL,'http://hl7.org/fhir/ValueSet/c80-practice-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (171,NULL,'2017-09-27 09:59:28.809000',NULL,NULL,'Audit Active Participant Role ID Code',NULL,'Audit Active Participant Role ID Code',1,'ValueSet/dicm-402-roleid',NULL,'http://hl7.org/fhir/ValueSet/dicm-402-roleid',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (172,NULL,'2017-09-27 09:59:28.905000',NULL,NULL,'The kind of operation to perform as a part of a property based filter.',NULL,'FilterOperator',0,'ValueSet/filter-operator',NULL,'http://hl7.org/fhir/ValueSet/filter-operator',169);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (173,NULL,'2017-09-27 09:59:28.915000',NULL,NULL,'Event Types for Audit Events - defined by DICOM with some FHIR specific additions.',NULL,'Audit Event ID',1,'ValueSet/audit-event-type',NULL,'http://hl7.org/fhir/ValueSet/audit-event-type',170);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (174,NULL,'2017-09-27 09:59:29.018000',NULL,NULL,'This value set includes sample Contract Term Type codes.',NULL,'Contract Term Type Codes',0,'ValueSet/contract-term-type',NULL,'http://hl7.org/fhir/ValueSet/contract-term-type',171);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (175,NULL,'2017-09-27 09:59:29.027000',NULL,NULL,'This value set includes concept codes for specific substances and negation codes to specify the absence of specific types of allergies.',NULL,'AllergyIntolerance Substance and Negation Codes',0,'ValueSet/allergyintolerance-substance-code',NULL,'http://hl7.org/fhir/ValueSet/allergyintolerance-substance-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (176,NULL,'2017-09-27 09:59:29.051000',NULL,NULL,'SHALL applications comply with this constraint?',NULL,'ConstraintSeverity',0,'ValueSet/constraint-severity',NULL,'http://hl7.org/fhir/ValueSet/constraint-severity',172);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (177,NULL,'2017-09-27 09:59:29.061000',NULL,NULL,'Status of the supply delivery.',NULL,'SupplyDeliveryStatus',0,'ValueSet/supplydelivery-status',NULL,'http://hl7.org/fhir/ValueSet/supplydelivery-status',173);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (178,NULL,'2017-09-27 09:59:29.087000',NULL,NULL,'Identifies whether a useContext represents a context or classification for the element',NULL,'ClassificationOrContext',0,'ValueSet/classification-or-context',NULL,'http://hl7.org/fhir/ValueSet/classification-or-context',174);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (179,NULL,'2017-09-27 09:59:29.103000',NULL,NULL,'The availability status of the device.',NULL,'DeviceStatus',0,'ValueSet/devicestatus',NULL,'http://hl7.org/fhir/ValueSet/devicestatus',175);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (180,NULL,'2017-09-27 09:59:29.114000',NULL,NULL,'The workflow/clinical status of the composition.',NULL,'CompositionStatus',0,'ValueSet/composition-status',NULL,'http://hl7.org/fhir/ValueSet/composition-status',176);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (181,NULL,'2017-09-27 09:59:29.126000',NULL,NULL,'Example value set for Procedure Device Action code (what happened to a device during a procedure.',NULL,'Procedure Device Action Codes',0,'ValueSet/device-action',NULL,'http://hl7.org/fhir/ValueSet/device-action',177);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (182,NULL,'2017-09-27 09:59:29.141000',NULL,NULL,'The status of the request.',NULL,'ProcedureRequestStatus',0,'ValueSet/procedure-request-status',NULL,'http://hl7.org/fhir/ValueSet/procedure-request-status',178);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (183,NULL,'2017-09-27 09:59:29.149000',NULL,NULL,'The technique that is used to perform the process or preserve the specimen.',NULL,'SpecimenTreatmentProcedure',0,'ValueSet/specimen-treatment-procedure',NULL,'http://hl7.org/fhir/ValueSet/specimen-treatment-procedure',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (184,NULL,'2017-09-27 09:59:29.161000',NULL,NULL,'This value set includes the financial processing priority codes.',NULL,'Priority Codes',0,'ValueSet/process-priority',NULL,'http://hl7.org/fhir/ValueSet/process-priority',180);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (185,NULL,'2017-09-27 09:59:29.167000',NULL,NULL,'Procedure follow up codes: a selection of SNOMED CT codes relevant to procedure follow up.',NULL,'Procedure Follow up Codes (SNOMED CT)',0,'ValueSet/procedure-followup',NULL,'http://hl7.org/fhir/ValueSet/procedure-followup',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (186,NULL,'2017-09-27 09:59:29.189000',NULL,NULL,'The status of a subscription.',NULL,'SubscriptionStatus',0,'ValueSet/subscription-status',NULL,'http://hl7.org/fhir/ValueSet/subscription-status',181);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (187,NULL,'2017-09-27 09:59:29.194000',NULL,NULL,'Preferred value set for Condition/Diagnosis severity grading',NULL,'Condition/Diagnosis Severity',0,'ValueSet/condition-severity',NULL,'http://hl7.org/fhir/ValueSet/condition-severity',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (188,NULL,'2017-09-27 09:59:29.208000',NULL,NULL,'Procedure Category code: A selection of relevant SNOMED CT codes.',NULL,'Procedure Category Codes (SNOMED CT)',0,'ValueSet/procedure-category',NULL,'http://hl7.org/fhir/ValueSet/procedure-category',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (189,NULL,'2017-09-27 09:59:29.237000',NULL,NULL,'This value set includes the FDI Teeth codes.',NULL,'Teeth Codes',0,'ValueSet/teeth',NULL,'http://hl7.org/fhir/ValueSet/teeth',182);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (190,NULL,'2017-09-27 09:59:29.246000',NULL,NULL,'The type or discipline-style of the claim.',NULL,'ClaimType',0,'ValueSet/claim-type-link',NULL,'http://hl7.org/fhir/ValueSet/claim-type-link',183);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (191,NULL,'2017-09-27 09:59:29.253000',NULL,NULL,'Example list of codes for answers to questions. (Not complete or necessarily appropriate.)',NULL,'Questionnaire Answer Codes',0,'ValueSet/questionnaire-answers',NULL,'http://hl7.org/fhir/ValueSet/questionnaire-answers',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (192,NULL,'2017-09-27 09:59:29.265000',NULL,NULL,'Describes the type of a metric calibration.',NULL,'DeviceMetricCalibrationType',0,'ValueSet/metric-calibration-type',NULL,'http://hl7.org/fhir/ValueSet/metric-calibration-type',184);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (193,NULL,'2017-09-27 09:59:29.275000',NULL,NULL,'Defines the type of structure that a definition is describing.',NULL,'StructureDefinitionKind',0,'ValueSet/structure-definition-kind',NULL,'http://hl7.org/fhir/ValueSet/structure-definition-kind',185);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (194,NULL,'2017-09-27 09:59:29.282000',NULL,NULL,'This value set contains concept codes for specific substances.',NULL,'Substance Code',0,'ValueSet/substance-code',NULL,'http://hl7.org/fhir/ValueSet/substance-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (195,NULL,'2017-09-27 09:59:29.306000',NULL,NULL,'This value set includes sample Contract Actor Role codes.',NULL,'Contract Actor Role Codes',0,'ValueSet/contract-actorrole',NULL,'http://hl7.org/fhir/ValueSet/contract-actorrole',186);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (196,NULL,'2017-09-27 09:59:29.315000',NULL,NULL,'Codes providing the status of an observation.',NULL,'ObservationStatus',0,'ValueSet/observation-status',NULL,'http://hl7.org/fhir/ValueSet/observation-status',187);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (197,NULL,'2017-09-27 09:59:29.325000',NULL,NULL,'The degree of equivalence between concepts.',NULL,'ConceptMapEquivalence',0,'ValueSet/concept-map-equivalence',NULL,'http://hl7.org/fhir/ValueSet/concept-map-equivalence',188);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (198,NULL,'2017-09-27 09:59:29.332000',NULL,NULL,'Example value set for Condition/Problem/Diagnosis codes',NULL,'Condition/Problem/Diagnosis Codes',0,'ValueSet/condition-code',NULL,'http://hl7.org/fhir/ValueSet/condition-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (199,NULL,'2017-09-27 09:59:29.348000',NULL,NULL,'Example codes indicating the category a care plan falls within. Note that these are in no way complete and may not even be appropriate for some uses.',NULL,'Care Plan Category',0,'ValueSet/care-plan-category',NULL,'http://hl7.org/fhir/ValueSet/care-plan-category',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (200,NULL,'2017-09-27 09:59:29.363000',NULL,NULL,'Example value set for Condition Outcomes',NULL,'Condition Outcome Codes',0,'ValueSet/condition-outcome',NULL,'http://hl7.org/fhir/ValueSet/condition-outcome',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (201,NULL,'2017-09-27 09:59:29.881000',NULL,NULL,'Developed for use in the collection, analysis and dissemination of occupation statistics in Australia and New Zealand.',NULL,'ANZSCO -- Australian and New Zealand Standard Classification of Occupations, 2013, Version 1.2',1,'ValueSet/anzsco-occupations',NULL,'http://hl7.org/fhir/ValueSet/anzsco-occupations',189);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (202,NULL,'2017-09-27 09:59:29.894000',NULL,NULL,'Media Type Code',NULL,'Media Type Code',1,'ValueSet/dicm-405-mediatype',NULL,'http://hl7.org/fhir/ValueSet/dicm-405-mediatype',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (203,NULL,'2017-09-27 09:59:29.967000',NULL,NULL,'The lifecycle status of a Value Set or Concept Map.',NULL,'ConformanceResourceStatus',0,'ValueSet/conformance-resource-status',NULL,'http://hl7.org/fhir/ValueSet/conformance-resource-status',190);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (204,NULL,'2017-09-27 09:59:29.975000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Codes for Immunization Site of Administration',0,'ValueSet/immunization-site',NULL,'http://hl7.org/fhir/ValueSet/immunization-site',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (205,NULL,'2017-09-27 09:59:29.989000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate the current state of the animal''s reproductive organs.',NULL,'GenderStatus',0,'ValueSet/animal-genderstatus',NULL,'http://hl7.org/fhir/ValueSet/animal-genderstatus',192);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (206,NULL,'2017-09-27 09:59:30.001000',NULL,NULL,'The free/busy status of an appointment.',NULL,'AppointmentStatus',0,'ValueSet/appointmentstatus',NULL,'http://hl7.org/fhir/ValueSet/appointmentstatus',193);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (207,NULL,'2017-09-27 09:59:30.013000',NULL,NULL,'Classification of the encounter',NULL,'EncounterClass',0,'ValueSet/encounter-class',NULL,'http://hl7.org/fhir/ValueSet/encounter-class',194);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (208,NULL,'2017-09-27 09:59:30.024000',NULL,NULL,'Starter set of user interface controls that might be used when capturing data from Questionnaire questions.',NULL,'Questionnaire Question UI Control Codes',0,'ValueSet/questionnaire-question-control',NULL,'http://hl7.org/fhir/ValueSet/questionnaire-question-control',195);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (209,NULL,'2017-09-27 09:59:30.033000',NULL,NULL,'This value set includes sample Process Outcome codes.',NULL,'Process Outcome Codes',0,'ValueSet/process-outcome',NULL,'http://hl7.org/fhir/ValueSet/process-outcome',196);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (210,NULL,'2017-09-27 09:59:30.042000',NULL,NULL,'Tags to put on a resource after subscriptions have been sent.',NULL,'SubscriptionTag',0,'ValueSet/subscription-tag',NULL,'http://hl7.org/fhir/ValueSet/subscription-tag',197);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (211,NULL,'2017-09-27 09:59:30.048000',NULL,NULL,'The status indicates the level of maturity of the design and may be used to manage the use of the design',NULL,'TemplateStatusCode',1,'ValueSet/template-status-code',NULL,'http://hl7.org/fhir/ValueSet/template-status-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (212,NULL,'2017-09-27 09:59:30.068000',NULL,NULL,'Current state of the encounter',NULL,'EncounterState',0,'ValueSet/encounter-state',NULL,'http://hl7.org/fhir/ValueSet/encounter-state',199);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (213,NULL,'2017-09-27 09:59:30.079000',NULL,NULL,'The kind of response to a message',NULL,'ResponseType',0,'ValueSet/response-code',NULL,'http://hl7.org/fhir/ValueSet/response-code',200);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (214,NULL,'2017-09-27 09:59:30.090000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Immunization Recommendation Status Codes',0,'ValueSet/immunization-recommendation-status',NULL,'http://hl7.org/fhir/ValueSet/immunization-recommendation-status',201);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (215,NULL,'2017-09-27 09:59:30.099000',NULL,NULL,'Example value set for Condition/Problem/Diagnosis certainty',NULL,'Condition/Diagnosis Certainty',0,'ValueSet/investigation-sets',NULL,'http://hl7.org/fhir/ValueSet/investigation-sets',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (216,NULL,'2017-09-27 09:59:30.116000',NULL,NULL,'Different measurement principle supported by the device.',NULL,'Measmnt-Principle',0,'ValueSet/measurement-principle',NULL,'http://hl7.org/fhir/ValueSet/measurement-principle',202);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (217,NULL,'2017-09-27 09:59:30.125000',NULL,NULL,'This value set includes a sample set of Forms codes.',NULL,'Form Codes',0,'ValueSet/forms',NULL,'http://hl7.org/fhir/ValueSet/forms',203);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (218,NULL,'2017-09-27 09:59:30.130000',NULL,NULL,'Example list of codes for questions and groups of questions. (Not necessariliy complete or appropriate.)',NULL,'Questionnaire Question Codes',0,'ValueSet/questionnaire-questions',NULL,'http://hl7.org/fhir/ValueSet/questionnaire-questions',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (219,NULL,'2017-09-27 09:59:30.139000',NULL,NULL,'HTTP verbs (in the HTTP command line).',NULL,'HTTPVerb',0,'ValueSet/http-verb',NULL,'http://hl7.org/fhir/ValueSet/http-verb',204);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (220,NULL,'2017-09-27 09:59:30.145000',NULL,NULL,'This value set defines the set of codes that can be used to indicate the meaning/use of a reference range.',NULL,'Observation Interpretation Codes',0,'ValueSet/observation-interpretation',NULL,'http://hl7.org/fhir/ValueSet/observation-interpretation',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (221,NULL,'2017-09-27 09:59:30.152000',NULL,NULL,'This examples value set defines the set of codes that can be used to indicate a role of procedure performer.',NULL,'Procedure Performer Role Codes',0,'ValueSet/performer-role',NULL,'http://hl7.org/fhir/ValueSet/performer-role',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (222,NULL,'2017-09-27 09:59:30.165000',NULL,NULL,'Document section codes (LOINC codes used in CCDA sections).',NULL,'Document Section Codes',0,'ValueSet/doc-section-codes',NULL,'http://hl7.org/fhir/ValueSet/doc-section-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (223,NULL,'2017-09-27 09:59:30.365000',NULL,NULL,'A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.',NULL,'Identifier Type Codes',0,'ValueSet/identifier-type',NULL,'http://hl7.org/fhir/ValueSet/identifier-type',206);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (224,NULL,'2017-09-27 09:59:30.383000',NULL,NULL,'TextureModifier: Codes for food consistency types or texture modifications to apply to foods. This value set is composed of SNOMED CT (US Extension and Core) Concepts from SCTID 229961002 Food consistency types (substance) hierarchy and is provided as a suggestive example.',NULL,'Texture Modifier Codes',0,'ValueSet/texture-code',NULL,'http://hl7.org/fhir/ValueSet/texture-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (225,NULL,'2017-09-27 09:59:30.420000',NULL,NULL,'The status of the communication.',NULL,'CommunicationStatus',0,'ValueSet/communication-status',NULL,'http://hl7.org/fhir/ValueSet/communication-status',208);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (226,NULL,'2017-09-27 09:59:30.434000',NULL,NULL,'This value set includes the Patient to subscriber relationship codes.',NULL,'Surface Codes',0,'ValueSet/relationship',NULL,'http://hl7.org/fhir/ValueSet/relationship',209);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (227,NULL,'2017-09-27 09:59:30.443000',NULL,NULL,'A unit of time (units from UCUM).',NULL,'UnitsOfTime',0,'ValueSet/units-of-time',NULL,'http://hl7.org/fhir/ValueSet/units-of-time',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (228,NULL,'2017-09-27 09:59:30.499000',NULL,NULL,'Types of security services used with FHIR.',NULL,'RestfulSecurityService',0,'ValueSet/restful-security-service',NULL,'http://hl7.org/fhir/ValueSet/restful-security-service',210);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (229,NULL,'2017-09-27 09:59:30.506000',NULL,NULL,'Situation codes describing the reason that a procedure, which might otherwise be expected, was not performed, or a procedure that was started and was not completed. Consists of SNOMED CT codes, children of procedure contraindicated (183932001), procedure discontinued (416406003), procedure not done (416237000), procedure not indicated (428119001), procedure not offered (416064006), procedure not wanted (416432009), procedure refused (183944003), and procedure stopped (394908001).',NULL,'Procedure Not Performed Reason (SNOMED-CT)',1,'ValueSet/procedure-not-performed-reason',NULL,'http://hl7.org/fhir/ValueSet/procedure-not-performed-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (230,NULL,'2017-09-27 09:59:30.545000',NULL,NULL,'Parameter Types used in Operation Definitions',NULL,'Parameter Types used in Operation Definitions',0,'ValueSet/operation-parameter-type',NULL,'http://hl7.org/fhir/ValueSet/operation-parameter-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (231,NULL,'2017-09-27 09:59:30.557000',NULL,NULL,'The clinical priority of a diagnostic order.',NULL,'DiagnosticOrderPriority',0,'ValueSet/diagnostic-order-priority',NULL,'http://hl7.org/fhir/ValueSet/diagnostic-order-priority',211);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (232,NULL,'2017-09-27 09:59:30.568000',NULL,NULL,'The type of process where the audit event originated from.',NULL,'Audit Event Source Type',1,'ValueSet/audit-source-type',NULL,'http://hl7.org/fhir/ValueSet/audit-source-type',212);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (233,NULL,'2017-09-27 09:59:30.579000',NULL,NULL,'A code that indicates how the server supports conditional delete.',NULL,'ConditionalDeleteStatus',0,'ValueSet/conditional-delete-status',NULL,'http://hl7.org/fhir/ValueSet/conditional-delete-status',213);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (234,NULL,'2017-09-27 09:59:30.586000',NULL,NULL,'A valueSet of UCUM codes for representing age value units.',NULL,'AgeUnits',0,'ValueSet/age-units',NULL,'http://hl7.org/fhir/ValueSet/age-units',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (235,NULL,'2017-09-27 09:59:30.629000',NULL,NULL,'This value set defines two letter USPS alphabetic codes.',NULL,'USPS Two Letter Alphabetic Codes',0,'ValueSet/usps-state',NULL,'http://hl7.org/fhir/ValueSet/usps-state',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (236,NULL,'2017-09-27 09:59:30.673000',NULL,NULL,'Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.',NULL,'FlagStatus',0,'ValueSet/flag-status',NULL,'http://hl7.org/fhir/ValueSet/flag-status',215);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (237,NULL,'2017-09-27 09:59:30.683000',NULL,NULL,'The type of relationship between documents.',NULL,'DocumentRelationshipType',0,'ValueSet/document-relationship-type',NULL,'http://hl7.org/fhir/ValueSet/document-relationship-type',216);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (238,NULL,'2017-09-27 09:59:30.694000',NULL,NULL,'The type of method used to execute a subscription.',NULL,'SubscriptionChannelType',0,'ValueSet/subscription-channel-type',NULL,'http://hl7.org/fhir/ValueSet/subscription-channel-type',217);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (239,NULL,'2017-09-27 09:59:30.701000',NULL,NULL,'This value set includes all Medication codes from SNOMED CT - provided as an exemplar.',NULL,'SNOMED CT Medication Codes',0,'ValueSet/medication-codes',NULL,'http://hl7.org/fhir/ValueSet/medication-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (240,NULL,'2017-09-27 09:59:30.713000',NULL,NULL,' This example value set defines a set of codes that can be used to indicate the priority of collection of a specimen.',NULL,'SpecimenCollectionPriority',0,'ValueSet/specimen-collection-priority',NULL,'http://hl7.org/fhir/ValueSet/specimen-collection-priority',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (241,NULL,'2017-09-27 09:59:30.725000',NULL,NULL,'TextureModifiedFoodType: Codes for types of foods that are texture modified. This value set is composed SNOMED CT Concepts from SCTID 255620007 Foods (substance) and is provided as a suggestive example.',NULL,'Texture Modified Food Type Codes',0,'ValueSet/modified-foodtype',NULL,'http://hl7.org/fhir/ValueSet/modified-foodtype',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (242,NULL,'2017-09-27 09:59:30.763000',NULL,NULL,'Operation Outcome codes used by FHIR test servers (see Implementation file translations.xml)',NULL,'Operation Outcome Codes',0,'ValueSet/operation-outcome',NULL,'http://hl7.org/fhir/ValueSet/operation-outcome',219);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (243,NULL,'2017-09-27 09:59:30.774000',NULL,NULL,'This value set includes sample Oral Prosthodontic Material type codes.',NULL,'Oral Prostho Material type Codes',0,'ValueSet/oral-prosthodontic-material',NULL,'http://hl7.org/fhir/ValueSet/oral-prosthodontic-material',220);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (244,NULL,'2017-09-27 09:59:30.787000',NULL,NULL,'Estimate of the potential clinical harm, or seriousness, of a reaction to an identified Substance.',NULL,'AllergyIntoleranceCriticality',0,'ValueSet/allergy-intolerance-criticality',NULL,'http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality',221);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (245,NULL,'2017-09-27 09:59:30.796000',NULL,NULL,'Kinds of mitigating actions and observations that can be associated with a detected issue or contraindication, such as ''added concurrent therapy'', ''prior therapy documented'', etc.',NULL,'Detected Issue Mitigation Action',0,'ValueSet/detectedissue-mitigation-action',NULL,'http://hl7.org/fhir/ValueSet/detectedissue-mitigation-action',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (246,NULL,'2017-09-27 09:59:30.807000',NULL,NULL,'Operations supported by REST at the type or instance level.',NULL,'TypeRestfulInteraction',0,'ValueSet/type-restful-interaction',NULL,'http://hl7.org/fhir/ValueSet/type-restful-interaction',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (247,NULL,'2017-09-27 09:59:30.818000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Immunization Reason Codes',0,'ValueSet/immunization-reason',NULL,'http://hl7.org/fhir/ValueSet/immunization-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (248,NULL,'2017-09-27 09:59:30.833000',NULL,NULL,'This value set includes all the \"Clinical finding\" SNOMED CT codes (i.e. codes with an is-a relationship with 404684003: Clinical finding).',NULL,'SNOMED CT Clinical Findings',0,'ValueSet/clinical-findings',NULL,'http://hl7.org/fhir/ValueSet/clinical-findings',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (249,NULL,'2017-09-27 09:59:30.853000',NULL,NULL,'Either a resource or a data type.',NULL,'FHIRDefinedType',0,'ValueSet/defined-types',NULL,'http://hl7.org/fhir/ValueSet/defined-types',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (250,NULL,'2017-09-27 09:59:30.865000',NULL,NULL,'The priority of the request.',NULL,'ProcedureRequestPriority',0,'ValueSet/procedure-request-priority',NULL,'http://hl7.org/fhir/ValueSet/procedure-request-priority',224);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (251,NULL,'2017-09-27 09:59:30.873000',NULL,NULL,'This value set includes sample UDI codes.',NULL,'UDI Codes',0,'ValueSet/udi',NULL,'http://hl7.org/fhir/ValueSet/udi',225);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (252,NULL,'2017-09-27 09:59:30.881000',NULL,NULL,'Codes representing the priority of the request.',NULL,'DeviceUseRequestPriority',0,'ValueSet/device-use-request-priority',NULL,'http://hl7.org/fhir/ValueSet/device-use-request-priority',226);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (253,NULL,'2017-09-27 09:59:30.889000',NULL,NULL,'Whether the application produces or consumes documents.',NULL,'DocumentMode',0,'ValueSet/document-mode',NULL,'http://hl7.org/fhir/ValueSet/document-mode',227);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (254,NULL,'2017-09-27 09:59:30.915000',NULL,NULL,'The type of an element - one of the FHIR data types.',NULL,'DataType',0,'ValueSet/data-types',NULL,'http://hl7.org/fhir/ValueSet/data-types',223);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (255,NULL,'2017-09-27 09:59:30.922000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Immunization Route Codes',0,'ValueSet/immunization-route',NULL,'http://hl7.org/fhir/ValueSet/immunization-route',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (256,NULL,'2017-09-27 09:59:30.937000',NULL,NULL,'Describes the category of the metric.',NULL,'DeviceMetricCategory',0,'ValueSet/metric-category',NULL,'http://hl7.org/fhir/ValueSet/metric-category',228);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (257,NULL,'2017-09-27 09:59:30.955000',NULL,NULL,'This value set defines a set of codes that can be used to indicate the meaning/use of a reference range.',NULL,'Observation Reference Range Meaning Codes',0,'ValueSet/referencerange-meaning',NULL,'http://hl7.org/fhir/ValueSet/referencerange-meaning',229);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (258,NULL,'2017-09-27 09:59:30.981000',NULL,NULL,'Indication of the degree of conformance expectations associated with a binding.',NULL,'BindingStrength',0,'ValueSet/binding-strength',NULL,'http://hl7.org/fhir/ValueSet/binding-strength',230);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (259,NULL,'2017-09-27 09:59:30.994000',NULL,NULL,'The status of a resource narrative',NULL,'NarrativeStatus',0,'ValueSet/narrative-status',NULL,'http://hl7.org/fhir/ValueSet/narrative-status',231);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (260,NULL,'2017-09-27 09:59:31.006000',NULL,NULL,'A supported modifier for a search parameter.',NULL,'SearchModifierCode',0,'ValueSet/search-modifier-code',NULL,'http://hl7.org/fhir/ValueSet/search-modifier-code',232);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (261,NULL,'2017-09-27 09:59:31.016000',NULL,NULL,'The use of a human name',NULL,'NameUse',0,'ValueSet/name-use',NULL,'http://hl7.org/fhir/ValueSet/name-use',233);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (262,NULL,'2017-09-27 09:59:31.024000',NULL,NULL,'Flags an element as having unlimited repetitions',NULL,'MaxOccurs',0,'ValueSet/question-max-occurs',NULL,'http://hl7.org/fhir/ValueSet/question-max-occurs',234);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (263,NULL,'2017-09-27 09:59:31.030000',NULL,NULL,'The value set includes the v3 RoleCode PRN (parent), TWIN (twin) and all of their specializations. It covers the relationships needed to establish genetic pedigree relationships between family members.',NULL,'Parent Relationship Codes',0,'ValueSet/parent-relationship-codes',NULL,'http://hl7.org/fhir/ValueSet/parent-relationship-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (264,NULL,'2017-09-27 09:59:31.051000',NULL,NULL,'Whether an operation is a normal operation or a query.',NULL,'OperationKind',0,'ValueSet/operation-kind',NULL,'http://hl7.org/fhir/ValueSet/operation-kind',235);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (265,NULL,'2017-09-27 09:59:31.058000',NULL,NULL,'This is the code representing the type of organizational setting where the clinical encounter, service, interaction, or treatment occurred. The value set used for Healthcare Facility Type has been defined by HITSP to be the value set reproduced from HITSP C80 Table 2-147.',NULL,'Facility Type Code Value Set',1,'ValueSet/c80-facilitycodes',NULL,'http://hl7.org/fhir/ValueSet/c80-facilitycodes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (266,NULL,'2017-09-27 09:59:31.124000',NULL,NULL,'This value set defines the set of codes for identifying the reason why the expected result in Observation.value[x] is missing.',NULL,'Observation Value Absent Reason',0,'ValueSet/observation-valueabsentreason',NULL,'http://hl7.org/fhir/ValueSet/observation-valueabsentreason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (267,NULL,'2017-09-27 09:59:31.131000',NULL,NULL,'Example codes indicating the reason for a clinical activity being performed.',NULL,'Activity Reason',0,'ValueSet/activity-reason',NULL,'http://hl7.org/fhir/ValueSet/activity-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (268,NULL,'2017-09-27 09:59:31.147000',NULL,NULL,'Codes indicating whether the goal has been accepted by a stakeholder',NULL,'GoalAcceptanceStatus',0,'ValueSet/goal-acceptance-status',NULL,'http://hl7.org/fhir/ValueSet/goal-acceptance-status',236);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (269,NULL,'2017-09-27 09:59:31.155000',NULL,NULL,'This value set includes sample funds reservation type codes.',NULL,'Funds Reservation Codes',0,'ValueSet/fundsreserve',NULL,'http://hl7.org/fhir/ValueSet/fundsreserve',237);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (270,NULL,'2017-09-27 09:59:31.166000',NULL,NULL,'Observation Category codes.',NULL,'Observation Category Codes',0,'ValueSet/observation-category',NULL,'http://hl7.org/fhir/ValueSet/observation-category',238);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (271,NULL,'2017-09-27 09:59:31.177000',NULL,NULL,'A set of generally useful codes defined so they can be included in value sets.',NULL,'SpecialValues',0,'ValueSet/special-values',NULL,'http://hl7.org/fhir/ValueSet/special-values',239);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (272,NULL,'2017-09-27 09:59:31.184000',NULL,NULL,'This value set includes all LOINC codes',NULL,'LOINC Codes',0,'ValueSet/observation-codes',NULL,'http://hl7.org/fhir/ValueSet/observation-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (273,NULL,'2017-09-27 09:59:31.196000',NULL,NULL,'The days of the week.',NULL,'DaysOfWeek',0,'ValueSet/days-of-week',NULL,'http://hl7.org/fhir/ValueSet/days-of-week',240);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (274,NULL,'2017-09-27 09:59:31.202000',NULL,NULL,'More detailed code concerning the type of the audit event - defined by DICOM with some FHIR specific additions.',NULL,'Audit Event Sub-Type',1,'ValueSet/audit-event-sub-type',NULL,'http://hl7.org/fhir/ValueSet/audit-event-sub-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (275,NULL,'2017-09-27 09:59:31.316000',NULL,NULL,'Identifies the style of unique identifier used to identify a namespace.',NULL,'NamingSystemIdentifierType',0,'ValueSet/namingsystem-identifier-type',NULL,'http://hl7.org/fhir/ValueSet/namingsystem-identifier-type',241);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (276,NULL,'2017-09-27 09:59:31.367000',NULL,NULL,'Describes the typical color of representation.',NULL,'DeviceMetricColor',0,'ValueSet/metric-color',NULL,'http://hl7.org/fhir/ValueSet/metric-color',242);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (277,NULL,'2017-09-27 09:59:31.378000',NULL,NULL,'The Participation status of an appointment.',NULL,'ParticipantStatus',0,'ValueSet/participantstatus',NULL,'http://hl7.org/fhir/ValueSet/participantstatus',243);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (278,NULL,'2017-09-27 09:59:31.384000',NULL,NULL,'This value set includes all SNOMED CT Clinical Findings.',NULL,'SNOMED CT Clinical Findings',0,'ValueSet/manifestation-codes',NULL,'http://hl7.org/fhir/ValueSet/manifestation-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (279,NULL,'2017-09-27 09:59:31.420000',NULL,NULL,'The status of a diagnostic order.',NULL,'DiagnosticOrderStatus',0,'ValueSet/diagnostic-order-status',NULL,'http://hl7.org/fhir/ValueSet/diagnostic-order-status',244);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (280,NULL,'2017-09-27 09:59:31.426000',NULL,NULL,'This value set includes all the LOINC codes which relate to Diagnostic Observations.',NULL,'LOINC Diagnostic Report Codes',0,'ValueSet/report-codes',NULL,'http://hl7.org/fhir/ValueSet/report-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (281,NULL,'2017-09-27 09:59:31.433000',NULL,NULL,'Additional information about an event that occurred to a diagnostic order',NULL,'Diagnostic Order Event Codes',0,'ValueSet/diagnostic-order-event',NULL,'http://hl7.org/fhir/ValueSet/diagnostic-order-event',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (282,NULL,'2017-09-27 09:59:31.449000',NULL,NULL,'This Value Set includes codes that may be used to identify an image or waveform acquisition modality, as used in the ImagingStudy resource, Dicom Attribute Modality (0008,0060) or HL7 v2 Table 0259 (see HL7 v2.6 Chapter 8 Section 8.8.8.47). It generally corresponds to a class of diagnostic equipment, or to a specific acquisition function or technique in a device.',NULL,'Acquisition Modality Codes',1,'ValueSet/dicom-cid29',NULL,'http://hl7.org/fhir/ValueSet/dicom-cid29',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (283,NULL,'2017-09-27 09:59:31.534000',NULL,NULL,'The Participation status of an appointment.',NULL,'ParticipationStatus',0,'ValueSet/participationstatus',NULL,'http://hl7.org/fhir/ValueSet/participationstatus',245);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (284,NULL,'2017-09-27 09:59:31.543000',NULL,NULL,'Indicates the degree of adherence to a specified behavior or capability expected in order for a system to be deemed conformant with a specification.',NULL,'ConformanceExpectation',0,'ValueSet/conformance-expectation',NULL,'http://hl7.org/fhir/ValueSet/conformance-expectation',246);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (285,NULL,'2017-09-27 09:59:31.551000',NULL,NULL,'Category of an identified Substance.',NULL,'AllergyIntoleranceCategory',0,'ValueSet/allergy-intolerance-category',NULL,'http://hl7.org/fhir/ValueSet/allergy-intolerance-category',247);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (286,NULL,'2017-09-27 09:59:31.560000',NULL,NULL,'This value set includes sample Missing Tooth Reason codes.',NULL,'Missing Tooth Reason Codes',0,'ValueSet/missing-tooth-reason',NULL,'http://hl7.org/fhir/ValueSet/missing-tooth-reason',248);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (287,NULL,'2017-09-27 09:59:31.570000',NULL,NULL,'List of allowable action which this resource can request.',NULL,'ActionList',0,'ValueSet/actionlist',NULL,'http://hl7.org/fhir/ValueSet/actionlist',249);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (288,NULL,'2017-09-27 09:59:31.578000',NULL,NULL,'This value set includes sample Contract Subtype codes.',NULL,'Contract Subtype Codes',0,'ValueSet/contract-subtype',NULL,'http://hl7.org/fhir/ValueSet/contract-subtype',250);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (289,NULL,'2017-09-27 09:59:31.588000',NULL,NULL,'This value set includes sample additional material type codes.',NULL,'Additional Material Codes',0,'ValueSet/additionalmaterials',NULL,'http://hl7.org/fhir/ValueSet/additionalmaterials',251);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (290,NULL,'2017-09-27 09:59:31.603000',NULL,NULL,'Is the Participant required to attend the appointment.',NULL,'ParticipantRequired',0,'ValueSet/participantrequired',NULL,'http://hl7.org/fhir/ValueSet/participantrequired',252);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (291,NULL,'2017-09-27 09:59:31.612000',NULL,NULL,'The workflow state of a clinical impression.',NULL,'ClinicalImpressionStatus',0,'ValueSet/clinical-impression-status',NULL,'http://hl7.org/fhir/ValueSet/clinical-impression-status',253);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (292,NULL,'2017-09-27 09:59:31.622000',NULL,NULL,'How an extension context is interpreted.',NULL,'ExtensionContext',0,'ValueSet/extension-context',NULL,'http://hl7.org/fhir/ValueSet/extension-context',254);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (293,NULL,'2017-09-27 09:59:31.632000',NULL,NULL,'Lifecycle status of the questionnaire.',NULL,'QuestionnaireStatus',0,'ValueSet/questionnaire-status',NULL,'http://hl7.org/fhir/ValueSet/questionnaire-status',255);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (294,NULL,'2017-09-27 09:59:31.639000',NULL,NULL,'The outcome of the processing.',NULL,'RemittanceOutcome',0,'ValueSet/remittance-outcome',NULL,'http://hl7.org/fhir/ValueSet/remittance-outcome',256);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (295,NULL,'2017-09-27 09:59:31.647000',NULL,NULL,'Codes identifying the types of relationships between two plans.',NULL,'CarePlanRelationship',0,'ValueSet/care-plan-relationship',NULL,'http://hl7.org/fhir/ValueSet/care-plan-relationship',257);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (296,NULL,'2017-09-27 09:59:31.656000',NULL,NULL,'A code that indicates whether an application accepts unknown elements or extensions when reading resources.',NULL,'UnknownContentCode',0,'ValueSet/unknown-content-code',NULL,'http://hl7.org/fhir/ValueSet/unknown-content-code',258);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (297,NULL,'2017-09-27 09:59:31.666000',NULL,NULL,'How the issue affects the success of the action.',NULL,'IssueSeverity',0,'ValueSet/issue-severity',NULL,'http://hl7.org/fhir/ValueSet/issue-severity',259);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (298,NULL,'2017-09-27 09:59:31.676000',NULL,NULL,'The status of the referral.',NULL,'ReferralStatus',0,'ValueSet/referralstatus',NULL,'http://hl7.org/fhir/ValueSet/referralstatus',260);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (299,NULL,'2017-09-27 09:59:31.682000',NULL,NULL,'This is the code specifying the high-level kind of document (e.g. Prescription, Discharge Summary, Report, etc.). The Document Class value set is reproduced from HITSP C80 Table 2-144 Document Class Value Set Definition. Note: Class code for documents comes from LOINC, and is based upon one of the following:The type of service described by the document. It is described at a very high level in Section 7.3 of the LOINC Manual. The type study performed. It was determined by identifying modalities for study reports. The section of the chart where the document is placed. It was determined from the SETs created for Claims Attachment requests.',NULL,'Document Class Value Set',1,'ValueSet/c80-doc-classcodes',NULL,'http://hl7.org/fhir/ValueSet/c80-doc-classcodes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (300,NULL,'2017-09-27 09:59:31.840000',NULL,NULL,'FHIR Document Codes - all LOINC codes where scale type = ''DOC''.',NULL,'FHIR Document Type Codes',0,'ValueSet/doc-typecodes',NULL,'http://hl7.org/fhir/ValueSet/doc-typecodes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (301,NULL,'2017-09-27 09:59:31.958000',NULL,NULL,'Describes the state of a metric calibration.',NULL,'DeviceMetricCalibrationState',0,'ValueSet/metric-calibration-state',NULL,'http://hl7.org/fhir/ValueSet/metric-calibration-state',261);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (302,NULL,'2017-09-27 09:59:31.969000',NULL,NULL,'Used to specify why the normally expected content of the data element is missing.',NULL,'DataAbsentReason',0,'ValueSet/data-absent-reason',NULL,'http://hl7.org/fhir/ValueSet/data-absent-reason',70);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (303,NULL,'2017-09-27 09:59:31.978000',NULL,NULL,'This value set includes sample ruleset codes.',NULL,'Ruleset Codes',0,'ValueSet/ruleset',NULL,'http://hl7.org/fhir/ValueSet/ruleset',262);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (304,NULL,'2017-09-27 09:59:31.987000',NULL,NULL,'Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.',NULL,'CarePlanStatus',0,'ValueSet/care-plan-status',NULL,'http://hl7.org/fhir/ValueSet/care-plan-status',263);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (305,NULL,'2017-09-27 09:59:31.993000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example and includes tSNOMED CT concepts from the 64572001 (Disease) hierarchy.',NULL,'Vaccination Protocol Dose Target Codes',0,'ValueSet/vaccination-protocol-dose-target',NULL,'http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-target',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (306,NULL,'2017-09-27 09:59:32.016000',NULL,NULL,'The role that a provenance participant played',NULL,'ProvenanceParticipantRole',0,'ValueSet/provenance-agent-role',NULL,'http://hl7.org/fhir/ValueSet/provenance-agent-role',264);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (307,NULL,'2017-09-27 09:59:32.026000',NULL,NULL,'The level of confidence that this link represents the same actual person, based on NIST Authentication Levels.',NULL,'IdentityAssuranceLevel',0,'ValueSet/identity-assuranceLevel',NULL,'http://hl7.org/fhir/ValueSet/identity-assuranceLevel',265);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (308,NULL,'2017-09-27 09:59:32.035000',NULL,NULL,'This value set includes sample Payee Type codes.',NULL,'Payee Type Codes',0,'ValueSet/payeetype',NULL,'http://hl7.org/fhir/ValueSet/payeetype',266);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (309,NULL,'2017-09-27 09:59:32.048000',NULL,NULL,'Why the supply item was requested',NULL,'SupplyRequestReason',0,'ValueSet/supplyrequest-reason',NULL,'http://hl7.org/fhir/ValueSet/supplyrequest-reason',267);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (310,NULL,'2017-09-27 09:59:32.057000',NULL,NULL,'The impact of the content of a message.',NULL,'MessageSignificanceCategory',0,'ValueSet/message-significance-category',NULL,'http://hl7.org/fhir/ValueSet/message-significance-category',268);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (311,NULL,'2017-09-27 09:59:32.064000',NULL,NULL,'The processing mode that applies to this list',NULL,'ListMode',0,'ValueSet/list-mode',NULL,'http://hl7.org/fhir/ValueSet/list-mode',269);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (312,NULL,'2017-09-27 09:59:32.073000',NULL,NULL,'The type of network access point of this participant in the audit event',NULL,'AuditEventParticipantNetworkType',0,'ValueSet/network-type',NULL,'http://hl7.org/fhir/ValueSet/network-type',270);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (313,NULL,'2017-09-27 09:59:32.079000',NULL,NULL,'This value set includes all Form codes from SNOMED CT - provided as an exemplar.',NULL,'SNOMED CT Form Codes',0,'ValueSet/medication-form-codes',NULL,'http://hl7.org/fhir/ValueSet/medication-form-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (314,NULL,'2017-09-27 09:59:32.101000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate the role of a Practitioner.',NULL,'PractitionerRole',0,'ValueSet/practitioner-role',NULL,'http://hl7.org/fhir/ValueSet/practitioner-role',271);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (315,NULL,'2017-09-27 09:59:32.114000',NULL,NULL,'Example list of detail codes for flagged issues. (Not complete or necessarily appropriate.)',NULL,'Flag Category',0,'ValueSet/flag-category',NULL,'http://hl7.org/fhir/ValueSet/flag-category',272);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (316,NULL,'2017-09-27 09:59:32.123000',NULL,NULL,'This value set includes all the LOINC Order codes.',NULL,'LOINC Diagnostic Order Codes',0,'ValueSet/diagnostic-requests',NULL,'http://hl7.org/fhir/ValueSet/diagnostic-requests',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (317,NULL,'2017-09-27 09:59:32.261000',NULL,NULL,'Base values for the order of the items in a list resource.',NULL,'List Order Codes',0,'ValueSet/list-order',NULL,'http://hl7.org/fhir/ValueSet/list-order',273);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (318,NULL,'2017-09-27 09:59:32.271000',NULL,NULL,'A coded concept listing the base codes.',NULL,'VisionBase',0,'ValueSet/vision-base-codes',NULL,'http://hl7.org/fhir/ValueSet/vision-base-codes',274);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (319,NULL,'2017-09-27 09:59:32.285000',NULL,NULL,'This value set defines codes for resources not yet supported by (or which will never be supported by) FHIR. Many of the codes listed here will eventually be turned into official resources. However, there is no guarantee that any particular resource will be created nor that the scope will be exactly as defined by the codes presented here. Codes in this set will be deprecated if/when formal resources are defined that encompass these concepts.',NULL,'Basic Resource Types',0,'ValueSet/basic-resource-type',NULL,'http://hl7.org/fhir/ValueSet/basic-resource-type',275);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (320,NULL,'2017-09-27 09:59:32.299000',NULL,NULL,'This value set defines a set of codes that are used to indicate the supported operations of a testing engine or tool.',NULL,'TestScriptOperationCodes',0,'ValueSet/testscript-operation-codes',NULL,'http://hl7.org/fhir/ValueSet/testscript-operation-codes',276);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (321,NULL,'2017-09-27 09:59:32.311000',NULL,NULL,'EnteralFormulaAdditiveType: Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula. This value set is provided as a suggestive example.',NULL,'Enteral Formula Additive Type Code',0,'ValueSet/entformula-additive',NULL,'http://hl7.org/fhir/ValueSet/entformula-additive',277);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (322,NULL,'2017-09-27 09:59:32.321000',NULL,NULL,'This value set includes a smattering of Prescription Product codes.',NULL,'Example Vision Prescription Product Codes',0,'ValueSet/vision-product',NULL,'http://hl7.org/fhir/ValueSet/vision-product',278);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (323,NULL,'2017-09-27 09:59:32.327000',NULL,NULL,'Laterality: SNOMED-CT concepts for ''left'', ''right'', and ''bilateral''',NULL,'Laterality',0,'ValueSet/bodysite-laterality',NULL,'http://hl7.org/fhir/ValueSet/bodysite-laterality',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (324,NULL,'2017-09-27 09:59:32.347000',NULL,NULL,'Indicates the degree of precision of the data element definition.',NULL,'DataElementStringency',0,'ValueSet/dataelement-stringency',NULL,'http://hl7.org/fhir/ValueSet/dataelement-stringency',279);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (325,NULL,'2017-09-27 09:59:32.355000',NULL,NULL,'Clinical assessment of the severity of a reaction event as a whole, potentially considering multiple different manifestations.',NULL,'AllergyIntoleranceSeverity',0,'ValueSet/reaction-event-severity',NULL,'http://hl7.org/fhir/ValueSet/reaction-event-severity',280);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (326,NULL,'2017-09-27 09:59:32.365000',NULL,NULL,'High-level categorization of the type of activity in a care plan.',NULL,'CarePlanActivityCategory',0,'ValueSet/care-plan-activity-category',NULL,'http://hl7.org/fhir/ValueSet/care-plan-activity-category',281);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (327,NULL,'2017-09-27 09:59:32.374000',NULL,NULL,'Codes providing the status/availability of a specimen.',NULL,'SpecimenStatus',0,'ValueSet/specimen-status',NULL,'http://hl7.org/fhir/ValueSet/specimen-status',282);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (328,NULL,'2017-09-27 09:59:32.380000',NULL,NULL,'FluidConsistencyType : Codes used to represent the consistency of fluids and liquids provided to the patient. This value set includes all the children of SNOMED CT Concepts from SCTID(US Extension): 435681000124103 Dietary liquid consistency diet (regime/therapy) and is provided as a suggestive example.',NULL,'Fluid Consistency Type Codes',0,'ValueSet/consistency-type',NULL,'http://hl7.org/fhir/ValueSet/consistency-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (329,NULL,'2017-09-27 09:59:32.399000',NULL,NULL,'A code specifying the state of the prescribing event. Describes the lifecycle of the prescription.',NULL,'MedicationOrderStatus',0,'ValueSet/medication-order-status',NULL,'http://hl7.org/fhir/ValueSet/medication-order-status',283);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (330,NULL,'2017-09-27 09:59:32.405000',NULL,NULL,'This value set defines a set of codes that can be used to indicate special courtesies provided to the patient.',NULL,'SpecialCourtesy',0,'ValueSet/encounter-special-courtesy',NULL,'http://hl7.org/fhir/ValueSet/encounter-special-courtesy',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (331,NULL,'2017-09-27 09:59:32.420000',NULL,NULL,'A coded concept listing the eye codes.',NULL,'VisionEyes',0,'ValueSet/vision-eye-codes',NULL,'http://hl7.org/fhir/ValueSet/vision-eye-codes',285);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (332,NULL,'2017-09-27 09:59:32.431000',NULL,NULL,'Example Message Reasons. These are the set of codes that might be used an updating an encounter using admin-update.',NULL,'Example Message Reason Codes',0,'ValueSet/message-reason-encounter',NULL,'http://hl7.org/fhir/ValueSet/message-reason-encounter',286);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (333,NULL,'2017-09-27 09:59:32.442000',NULL,NULL,'Indicates where the activity is at in its overall life cycle.',NULL,'CarePlanActivityStatus',0,'ValueSet/care-plan-activity-status',NULL,'http://hl7.org/fhir/ValueSet/care-plan-activity-status',287);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (334,NULL,'2017-09-27 09:59:32.456000',NULL,NULL,'The status of the response to an order.',NULL,'OrderStatus',0,'ValueSet/order-status',NULL,'http://hl7.org/fhir/ValueSet/order-status',288);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (335,NULL,'2017-09-27 09:59:32.462000',NULL,NULL,'This identifies the vaccine substance administered - CVX codes.',NULL,'Vaccine Administered Value Set',1,'ValueSet/vaccine-code',NULL,'http://hl7.org/fhir/ValueSet/vaccine-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (336,NULL,'2017-09-27 09:59:32.475000',NULL,NULL,'Data types allowed to be used for search parameters.',NULL,'SearchParamType',0,'ValueSet/search-param-type',NULL,'http://hl7.org/fhir/ValueSet/search-param-type',291);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (337,NULL,'2017-09-27 09:59:32.482000',NULL,NULL,'Identifies types of events that might trigger the start of a goal.',NULL,'GoalStartEvent',0,'ValueSet/goal-start-event',NULL,'http://hl7.org/fhir/ValueSet/goal-start-event',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (338,NULL,'2017-09-27 09:59:32.503000',NULL,NULL,'Describes the operational status of the DeviceMetric.',NULL,'DeviceMetricOperationalStatus',0,'ValueSet/metric-operational-status',NULL,'http://hl7.org/fhir/ValueSet/metric-operational-status',292);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (339,NULL,'2017-09-27 09:59:32.513000',NULL,NULL,'This value set includes sample Contract Term SubType codes.',NULL,'Contract Term Type Codes',0,'ValueSet/contract-term-subtype',NULL,'http://hl7.org/fhir/ValueSet/contract-term-subtype',293);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (340,NULL,'2017-09-27 09:59:32.521000',NULL,NULL,'This value set includes Anatomical Structure codes from SNOMED CT - provided as an exemplar.',NULL,'SNOMED CT Anatomical Structure for Administration Site Codes',0,'ValueSet/approach-site-codes',NULL,'http://hl7.org/fhir/ValueSet/approach-site-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (341,NULL,'2017-09-27 09:59:32.546000',NULL,NULL,'This value set includes a smattering of FDI tooth surface codes.',NULL,'Surface Codes',0,'ValueSet/tooth',NULL,'http://hl7.org/fhir/ValueSet/tooth',294);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (342,NULL,'2017-09-27 09:59:32.554000',NULL,NULL,'Codes indicating the type of validation to perform',NULL,'ResourceValidationMode',0,'ValueSet/resource-validation-mode',NULL,'http://hl7.org/fhir/ValueSet/resource-validation-mode',295);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (343,NULL,'2017-09-27 09:59:32.560000',NULL,NULL,'Availability of the resource',NULL,'InstanceAvailability',0,'ValueSet/instance-availability',NULL,'http://hl7.org/fhir/ValueSet/instance-availability',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (344,NULL,'2017-09-27 09:59:32.623000',NULL,NULL,'This value set includes sample Intervention codes.',NULL,'Intervention Codes',0,'ValueSet/intervention',NULL,'http://hl7.org/fhir/ValueSet/intervention',296);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (345,NULL,'2017-09-27 09:59:32.632000',NULL,NULL,'This value set includes a smattering of Pharmacy Service codes.',NULL,'Example Pharmacy Service Codes',0,'ValueSet/service-pharmacy',NULL,'http://hl7.org/fhir/ValueSet/service-pharmacy',297);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (346,NULL,'2017-09-27 09:59:32.638000',NULL,NULL,'Codes for the meaning of the defined structure.',NULL,'Structure Definition Codes',0,'ValueSet/profile-code',NULL,'http://hl7.org/fhir/ValueSet/profile-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (347,NULL,'2017-09-27 09:59:32.649000',NULL,NULL,'Use of contact point',NULL,'ContactPointUse',0,'ValueSet/contact-point-use',NULL,'http://hl7.org/fhir/ValueSet/contact-point-use',298);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (348,NULL,'2017-09-27 09:59:32.659000',NULL,NULL,'Indicates the purpose of a bundle - how it was intended to be used.',NULL,'BundleType',0,'ValueSet/bundle-type',NULL,'http://hl7.org/fhir/ValueSet/bundle-type',299);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (349,NULL,'2017-09-27 09:59:32.665000',NULL,NULL,'Example value set for Cause of Condition codes',NULL,'Condition Cause Codes',0,'ValueSet/condition-cause',NULL,'http://hl7.org/fhir/ValueSet/condition-cause',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (350,NULL,'2017-09-27 09:59:32.676000',NULL,NULL,'A code that identifies the status of the family history record.',NULL,'FamilyHistoryStatus',0,'ValueSet/history-status',NULL,'http://hl7.org/fhir/ValueSet/history-status',300);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (351,NULL,'2017-09-27 09:59:32.682000',NULL,NULL,'LDL Cholesterol codes - measured or calculated',NULL,'LDLCodes',0,'ValueSet/ldlcholesterol-codes',NULL,'http://hl7.org/fhir/ValueSet/ldlcholesterol-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (352,NULL,'2017-09-27 09:59:32.796000',NULL,NULL,'Code for a known / defined timing pattern.',NULL,'TimingAbbreviation',0,'ValueSet/timing-abbreviation',NULL,'http://hl7.org/fhir/ValueSet/timing-abbreviation',301);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (353,NULL,'2017-09-27 09:59:32.815000',NULL,NULL,'The type of operator to use for assertion. The type of operator to use for assertions.',NULL,'AssertionOperatorType',0,'ValueSet/assert-operator-codes',NULL,'http://hl7.org/fhir/ValueSet/assert-operator-codes',303);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (354,NULL,'2017-09-27 09:59:32.823000',NULL,NULL,'The type of direction to use for assertion. The direction to use for assertions.',NULL,'AssertionDirectionType',0,'ValueSet/assert-direction-codes',NULL,'http://hl7.org/fhir/ValueSet/assert-direction-codes',304);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (355,NULL,'2017-09-27 09:59:32.832000',NULL,NULL,'The type of a provenance participant. Use either a defined FHIR resource type, or, if the reference is not to a resource, one of the defined codes, or some other code if none of the defined codes are appropriate.',NULL,'ProvenanceParticipantType',0,'ValueSet/provenance-agent-type',NULL,'http://hl7.org/fhir/ValueSet/provenance-agent-type',305);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (356,NULL,'2017-09-27 09:59:32.840000',NULL,NULL,'The methods of referral can be used when referring to a specific HealthCareService resource.',NULL,'ReferralMethod',0,'ValueSet/service-referral-method',NULL,'http://hl7.org/fhir/ValueSet/service-referral-method',306);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (357,NULL,'2017-09-27 09:59:32.846000',NULL,NULL,'NutrientModifier : Codes for types of nutrient that is being modified such as carbohydrate or sodium. This value set includes all the children of SNOMED CT Concepts from SCTID 226355009 Nutrients (substance), Sodium, Potassium and Fluid and is provided as a suggestive example.',NULL,'Nutrient Modifier Codes',0,'ValueSet/nutrient-code',NULL,'http://hl7.org/fhir/ValueSet/nutrient-code',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (358,NULL,'2017-09-27 09:59:32.873000',NULL,NULL,'The expected format of an answer.',NULL,'AnswerFormat',0,'ValueSet/answer-format',NULL,'http://hl7.org/fhir/ValueSet/answer-format',307);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (359,NULL,'2017-09-27 09:59:32.883000',NULL,NULL,'Codes representing the status of the request.',NULL,'DeviceUseRequestStatus',0,'ValueSet/device-use-request-status',NULL,'http://hl7.org/fhir/ValueSet/device-use-request-status',308);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (360,NULL,'2017-09-27 09:59:32.889000',NULL,NULL,'This value set includes sample ICD-10 codes.',NULL,'ICD-10 Codes',0,'ValueSet/icd-10',NULL,'http://hl7.org/fhir/ValueSet/icd-10',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (361,NULL,'2017-09-27 09:59:32.902000',NULL,NULL,'Preferred value set for Condition Categories.',NULL,'Condition Category Codes',0,'ValueSet/condition-category',NULL,'http://hl7.org/fhir/ValueSet/condition-category',310);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (362,NULL,'2017-09-27 09:59:32.910000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate species of animal patients.',NULL,'AnimalSpecies',0,'ValueSet/animal-species',NULL,'http://hl7.org/fhir/ValueSet/animal-species',311);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (363,NULL,'2017-09-27 09:59:32.916000',NULL,NULL,'Details of how a designation would be used',NULL,'Designation Use',0,'ValueSet/designation-use',NULL,'http://hl7.org/fhir/ValueSet/designation-use',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (364,NULL,'2017-09-27 09:59:32.935000',NULL,NULL,'Example codes for grouping goals for filtering or presentation.',NULL,'GoalCategory',0,'ValueSet/goal-category',NULL,'http://hl7.org/fhir/ValueSet/goal-category',312);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (365,NULL,'2017-09-27 09:59:32.945000',NULL,NULL,'The status of the diagnostic report as a whole.',NULL,'DiagnosticReportStatus',0,'ValueSet/diagnostic-report-status',NULL,'http://hl7.org/fhir/ValueSet/diagnostic-report-status',313);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (366,NULL,'2017-09-27 09:59:32.951000',NULL,NULL,'Example VS composed from SNOMED CT and HL7 v3 codes for observation targets: donor, fetus, spouse. As use cases are discovered more values may be added.',NULL,'Focal Subject Codes',0,'ValueSet/focal-subject',NULL,'http://hl7.org/fhir/ValueSet/focal-subject',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (367,NULL,'2017-09-27 09:59:32.987000',NULL,NULL,'Codes representing the likelihood of a particular outcome in a risk assessment.',NULL,'Risk Probability',0,'ValueSet/risk-probability',NULL,'http://hl7.org/fhir/ValueSet/risk-probability',315);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (368,NULL,'2017-09-27 09:59:32.992000',NULL,NULL,'Real world event that the relating to the schedule.',NULL,'EventTiming',0,'ValueSet/event-timing',NULL,'http://hl7.org/fhir/ValueSet/event-timing',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (369,NULL,'2017-09-27 09:59:33.011000',NULL,NULL,'This value set defines a set of codes that can be used to indicate how an individual participates in an encounter.',NULL,'ParticipantType',0,'ValueSet/encounter-participant-type',NULL,'http://hl7.org/fhir/ValueSet/encounter-participant-type',317);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (370,NULL,'2017-09-27 09:59:33.026000',NULL,NULL,' This example value set defines a set of codes that can be used to indicate the method of collection of a specimen. It includes values from HL7 v2 table 0048.',NULL,'SpecimenCollectionMethod',0,'ValueSet/specimen-collection-method',NULL,'http://hl7.org/fhir/ValueSet/specimen-collection-method',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (371,NULL,'2017-09-27 09:59:33.055000',NULL,NULL,'This value set includes all Route codes from SNOMED CT - provided as an exemplar.',NULL,'SNOMED CT Route Codes',0,'ValueSet/route-codes',NULL,'http://hl7.org/fhir/ValueSet/route-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (372,NULL,'2017-09-27 09:59:33.077000',NULL,NULL,'Code for the object type involved audited.',NULL,'AuditEventObjectType',0,'ValueSet/object-type',NULL,'http://hl7.org/fhir/ValueSet/object-type',319);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (373,NULL,'2017-09-27 09:59:33.087000',NULL,NULL,'How the Quantity should be understood and represented.',NULL,'QuantityComparator',0,'ValueSet/quantity-comparator',NULL,'http://hl7.org/fhir/ValueSet/quantity-comparator',320);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (374,NULL,'2017-09-27 09:59:33.093000',NULL,NULL,'A single value set for all security labels defined by FHIR.',NULL,'All Security Labels',0,'ValueSet/security-labels',NULL,'http://hl7.org/fhir/ValueSet/security-labels',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (375,NULL,'2017-09-27 09:59:33.102000',NULL,NULL,'Telecommunications form for contact point',NULL,'ContactPointSystem',0,'ValueSet/contact-point-system',NULL,'http://hl7.org/fhir/ValueSet/contact-point-system',321);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (376,NULL,'2017-09-27 09:59:33.118000',NULL,NULL,'How an entity was used in an activity.',NULL,'ProvenanceEntityRole',0,'ValueSet/provenance-entity-role',NULL,'http://hl7.org/fhir/ValueSet/provenance-entity-role',322);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (377,NULL,'2017-09-27 09:59:33.126000',NULL,NULL,'This value set includes sample Payment Type codes.',NULL,'Payment Type Codes',0,'ValueSet/payment-type',NULL,'http://hl7.org/fhir/ValueSet/payment-type',323);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (378,NULL,'2017-09-27 09:59:33.136000',NULL,NULL,'The kind of relationship between two XDS documents.',NULL,'XDSRelationshipType',0,'ValueSet/xds-relationship-type',NULL,'http://hl7.org/fhir/ValueSet/xds-relationship-type',324);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (379,NULL,'2017-09-27 09:59:33.141000',NULL,NULL,'FoodType : This value set represents SNOMED CT codes for types of foods. This value set includes all the children of SNOMED CT Concepts from SCTID 255620007 Foods (substance) and is provided as a suggestive example.',NULL,'Food Type Codes',0,'ValueSet/food-type',NULL,'http://hl7.org/fhir/ValueSet/food-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (380,NULL,'2017-09-27 09:59:33.155000',NULL,NULL,'This value set includes all Form codes from SNOMED CT - provided as an exemplar.',NULL,'SNOMED CT Form Codes',0,'ValueSet/medication-package-form-codes',NULL,'http://hl7.org/fhir/ValueSet/medication-package-form-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (381,NULL,'2017-09-27 09:59:33.173000',NULL,NULL,'Types of resources that are part of group',NULL,'GroupType',0,'ValueSet/group-type',NULL,'http://hl7.org/fhir/ValueSet/group-type',325);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (382,NULL,'2017-09-27 09:59:33.182000',NULL,NULL,'Why an entry is in the result set - whether it''s included as a match or because of an _include requirement.',NULL,'SearchEntryMode',0,'ValueSet/search-entry-mode',NULL,'http://hl7.org/fhir/ValueSet/search-entry-mode',326);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (383,NULL,'2017-09-27 09:59:33.187000',NULL,NULL,'This examples value set defines the set of codes that can be used to indicate a reasons for a procedure.',NULL,'Procedure Reason Codes',0,'ValueSet/procedure-reason',NULL,'http://hl7.org/fhir/ValueSet/procedure-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (384,NULL,'2017-09-27 09:59:33.207000',NULL,NULL,'Indicates whether the account is available to be used.',NULL,'AccountStatus',0,'ValueSet/account-status',NULL,'http://hl7.org/fhir/ValueSet/account-status',327);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (385,NULL,'2017-09-27 09:59:33.212000',NULL,NULL,'Roles of Participants that may be included in a CarePlan.Participants, or in an EpisodeOfCare.CareTeam. Defined as: Is a Person, Healthcare professional (occupation) or Healthcare related organization (qualifier value).',NULL,'Participant Roles',0,'ValueSet/participant-role',NULL,'http://hl7.org/fhir/ValueSet/participant-role',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (386,NULL,'2017-09-27 09:59:33.231000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Immunization Reasons for Not Immunizing Codes',0,'ValueSet/no-immunization-reason',NULL,'http://hl7.org/fhir/ValueSet/no-immunization-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (387,NULL,'2017-09-27 09:59:33.254000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the medication process, in particular the process and reasons for dispensing. This value set is provided as a suggestive example.',NULL,'Immunization Recommendation Date Criterion Codes',0,'ValueSet/immunization-recommendation-date-criterion',NULL,'http://hl7.org/fhir/ValueSet/immunization-recommendation-date-criterion',329);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (388,NULL,'2017-09-27 09:59:33.262000',NULL,NULL,'Direction in which lists of question options should be displayed',NULL,'ChoiceListOrientation',0,'ValueSet/choice-list-orientation',NULL,'http://hl7.org/fhir/ValueSet/choice-list-orientation',330);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (389,NULL,'2017-09-27 09:59:33.267000',NULL,NULL,'This value set includes all the codes in HL7 v2 table 0074.',NULL,'Diagnostic Service Section Codes',0,'ValueSet/diagnostic-service-sections',NULL,'http://hl7.org/fhir/ValueSet/diagnostic-service-sections',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (390,NULL,'2017-09-27 09:59:33.276000',NULL,NULL,'The code(s) that detail the conditions under which the healthcare service is available/offered.',NULL,'ServiceProvisionConditions',0,'ValueSet/service-provision-conditions',NULL,'http://hl7.org/fhir/ValueSet/service-provision-conditions',332);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (391,NULL,'2017-09-27 09:59:33.285000',NULL,NULL,'This value set is provided as an exemplar. The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the procedure performance process.',NULL,'Procedure Progress Status Codes',0,'ValueSet/procedure-progress-status-codes',NULL,'http://hl7.org/fhir/ValueSet/procedure-progress-status-codes',333);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (392,NULL,'2017-09-27 09:59:33.292000',NULL,NULL,'This value set defines the set of codes that can be used to indicate the marital status of a person.',NULL,'Marital Status Codes',0,'ValueSet/marital-status',NULL,'http://hl7.org/fhir/ValueSet/marital-status',17);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (393,NULL,'2017-09-27 09:59:33.304000',NULL,NULL,'EnteralFormulaType : Codes for type of enteral formula to be administered to patient. This value set is is composed of SNOMED CT (US Extension) Concepts from SCTID 470581016 Enteral+supplement feeds hierarchy and is provided as a suggestive example.',NULL,'Enteral Formula Type Codes',0,'ValueSet/entformula-type',NULL,'http://hl7.org/fhir/ValueSet/entformula-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (394,NULL,'2017-09-27 09:59:33.336000',NULL,NULL,'This value set includes a smattering of Adjudication codes.',NULL,'Adjudication Codes',0,'ValueSet/adjudication',NULL,'http://hl7.org/fhir/ValueSet/adjudication',334);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (395,NULL,'2017-09-27 09:59:33.343000',NULL,NULL,'The status of the document reference.',NULL,'DocumentReferenceStatus',0,'ValueSet/document-reference-status',NULL,'http://hl7.org/fhir/ValueSet/document-reference-status',335);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (396,NULL,'2017-09-27 09:59:33.354000',NULL,NULL,'This value set includes sample Contract Action codes.',NULL,'Contract Action Codes',0,'ValueSet/contract-action',NULL,'http://hl7.org/fhir/ValueSet/contract-action',336);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (397,NULL,'2017-09-27 09:59:33.362000',NULL,NULL,'Indicates the level of importance associated with reaching or sustaining a goal.',NULL,'GoalPriority',0,'ValueSet/goal-priority',NULL,'http://hl7.org/fhir/ValueSet/goal-priority',337);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (398,NULL,'2017-09-27 09:59:33.370000',NULL,NULL,'A code specifying the state of the procedure.',NULL,'ProcedureStatus',0,'ValueSet/procedure-status',NULL,'http://hl7.org/fhir/ValueSet/procedure-status',338);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (399,NULL,'2017-09-27 09:59:33.376000',NULL,NULL,'The allowed codes for identifying the ISO 11179 ObjectClass Property for a particular data element if intended for registration/use within the U.S. Structured Data Capture (SDC) project.',NULL,'DataElement SDC Object Class',0,'ValueSet/dataelement-sdcobjectclassproperty',NULL,'http://hl7.org/fhir/ValueSet/dataelement-sdcobjectclassproperty',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (400,NULL,'2017-09-27 09:59:33.387000',NULL,NULL,'This value set includes a sample set of Payment Status codes.',NULL,'Payment Status Codes',0,'ValueSet/payment-status',NULL,'http://hl7.org/fhir/ValueSet/payment-status',339);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (401,NULL,'2017-09-27 09:59:33.393000',NULL,NULL,'Example value set for Manifestation and Symptom codes.',NULL,'Manifestation and Symptom Codes',0,'ValueSet/manifestation-or-symptom',NULL,'http://hl7.org/fhir/ValueSet/manifestation-or-symptom',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (402,NULL,'2017-09-27 09:59:33.409000',NULL,NULL,'The use of an address The use of an address (home / work / etc.).',NULL,'AddressUse',0,'ValueSet/address-use',NULL,'http://hl7.org/fhir/ValueSet/address-use',340);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (403,NULL,'2017-09-27 09:59:33.417000',NULL,NULL,'How a conformance statement is intended to be used.',NULL,'ConformanceStatementKind',0,'ValueSet/conformance-statement-kind',NULL,'http://hl7.org/fhir/ValueSet/conformance-statement-kind',341);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (404,NULL,'2017-09-27 09:59:33.423000',NULL,NULL,'Kinds of issues or contraindications, such as ''drug-drug interaction'', ''duplicate therapy'', etc.',NULL,'Detected Issue Category',0,'ValueSet/detectedissue-category',NULL,'http://hl7.org/fhir/ValueSet/detectedissue-category',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (405,NULL,'2017-09-27 09:59:33.438000',NULL,NULL,'Indicates whether the goal has been met and is still being targeted',NULL,'GoalStatus',0,'ValueSet/goal-status',NULL,'http://hl7.org/fhir/ValueSet/goal-status',342);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (406,NULL,'2017-09-27 09:59:33.446000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate the type of encounter: a specific code indicating type of service provided.',NULL,'EncounterType',0,'ValueSet/encounter-type',NULL,'http://hl7.org/fhir/ValueSet/encounter-type',343);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (407,NULL,'2017-09-27 09:59:33.469000',NULL,NULL,'This value set defines FIPS codes for US counties and county equivalent entities.',NULL,'US counties and county equivalent entities codes',0,'ValueSet/fips-county',NULL,'http://hl7.org/fhir/ValueSet/fips-county',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (408,NULL,'2017-09-27 09:59:36.307000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system for reasons of rejecting a diagnostic order. This value set is provided as a suggestive example.',NULL,'Reasons for rejecting a diagnostic order',0,'ValueSet/qicore-diagnosticorder-reason-rejected',NULL,'http://hl7.org/fhir/ValueSet/qicore-diagnosticorder-reason-rejected',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (409,NULL,'2017-09-27 09:59:36.341000',NULL,NULL,'Value Set for QICore Condition Criticality (Example)',NULL,'QICore Condition Criticality Codes',0,'ValueSet/qicore-condition-criticality',NULL,'http://hl7.org/fhir/ValueSet/qicore-condition-criticality',345);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (410,NULL,'2017-09-27 09:59:36.354000',NULL,NULL,'Any involvement of the peritoneum should be recorded.',NULL,'NehtaPeritoneumInvasion',0,'ValueSet/nehta-nehta-crc-peritoneum-invasion',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-peritoneum-invasion',346);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (411,NULL,'2017-09-27 09:59:36.361000',NULL,NULL,'This identifies the vaccine substance administered - CVX codes',NULL,'Vaccine Administered Value Set',1,'ValueSet/daf-cvx',NULL,'http://hl7.org/fhir/ValueSet/daf-cvx',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (412,NULL,'2017-09-27 09:59:36.370000',NULL,NULL,'The set of values for the agent or substance causing the adverse reaction experienced by the subject of care.',NULL,'SubstanceAgentValues',1,'ValueSet/nehta-nehta-SubstanceAgentValues',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-SubstanceAgentValues',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (413,NULL,'2017-09-27 09:59:36.388000',NULL,NULL,'Encounter Diagnoses: a specific code indicating type of service provided: SNOMED CT, ICD-10-AM, or CPT',NULL,'DAF Encounter Diagnoses',0,'ValueSet/daf-encounter-reason',NULL,'http://hl7.org/fhir/ValueSet/daf-encounter-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (414,NULL,'2017-09-27 09:59:36.399000',NULL,NULL,'This is the code indicates presence or abscence.',NULL,'PresentAbsent',1,'ValueSet/nehta-nehta-present-absent',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-present-absent',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (415,NULL,'2017-09-27 09:59:36.417000',NULL,NULL,'Lists the options for recording the a new primary cancer or a residual cancer, if known.',NULL,'NewCancerOrRecurrence',0,'ValueSet/nehta-nehta-new-cancer-or-recurrence',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-new-cancer-or-recurrence',347);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (416,NULL,'2017-09-27 09:59:36.425000',NULL,NULL,'This is the code has the options of Yes or No.',NULL,'YesNoNotStated',1,'ValueSet/nehta-nehta-yes-no-ns',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-yes-no-ns',348);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (417,NULL,'2017-09-27 09:59:36.451000',NULL,NULL,'SNOMED CT code system values descending from the following:''body position finding'' 9851009',NULL,'Body Position',0,'ValueSet/qicore-observation-body-position',NULL,'http://hl7.org/fhir/ValueSet/qicore-observation-body-position',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (418,NULL,'2017-09-27 09:59:36.465000',NULL,NULL,'UCUM Codes for units of measure. This value set includes all UCUM codes',NULL,'UCUM Codes',0,'ValueSet/uslab-units',NULL,'http://hl7.org/fhir/ValueSet/uslab-units',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (419,NULL,'2017-09-27 09:59:36.473000',NULL,NULL,'Indicates whether a specimen was Received or Not received.',NULL,'ReceivedNotreceived',1,'ValueSet/nehta-nehta-received-notreceived',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-received-notreceived',349);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (420,NULL,'2017-09-27 09:59:36.490000',NULL,NULL,'The status of a knowledge response',NULL,'KnowledgeResponseStatus',0,'ValueSet/cqif-knowledge-response-status',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-response-status',350);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (421,NULL,'2017-09-27 09:59:36.502000',NULL,NULL,'Lists the options for Colorectal cancer tumour stage T',NULL,'CrcTumourStageT',0,'ValueSet/nehta-nehta-crc-tumour-stage-t',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-tumour-stage-t',351);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (422,NULL,'2017-09-27 09:59:36.517000',NULL,NULL,'Lists the options for Colorectal cancer tumour stage N',NULL,'CrcTumourStageN',0,'ValueSet/nehta-nehta-crc-tumour-stage-n',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-tumour-stage-n',352);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (423,NULL,'2017-09-27 09:59:36.531000',NULL,NULL,'The status of the knowledge module',NULL,'KnowledgeModuleStatus',0,'ValueSet/cqif-knowledge-module-status',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-module-status',353);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (424,NULL,'2017-09-27 09:59:36.538000',NULL,NULL,'The code for knowledge responses',NULL,'KnowledgeResponseCode',0,'ValueSet/cqif-knowledge-response-code',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-response-code',354);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (425,NULL,'2017-09-27 09:59:36.547000',NULL,NULL,'Lists the options for Colorectal cancer tumour stage M',NULL,'CrcTumourStageM',0,'ValueSet/nehta-nehta-crc-tumour-stage-m',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-tumour-stage-m',355);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (426,NULL,'2017-09-27 09:59:36.557000',NULL,NULL,'The set of values that indicate the booking status of the arranged service.',NULL,'ServiceBookingStatusValues',0,'ValueSet/nehta-service-booking-status-values',NULL,'http://hl7.org/fhir/ValueSet/nehta-service-booking-status-values',356);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (427,NULL,'2017-09-27 09:59:36.563000',NULL,NULL,'This value set includes all the \"Priorities\" SNOMED CT codes (i.e. codes with an is-a relationship with 272125009: Priorities).',NULL,'SNOMED CT Priorities Codes',0,'ValueSet/qicore-priority',NULL,'http://hl7.org/fhir/ValueSet/qicore-priority',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (428,NULL,'2017-09-27 09:59:36.580000',NULL,NULL,'The code for knowledge modules',NULL,'KnowledgeModuleCode',0,'ValueSet/cqif-knowledge-module-code',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-module-code',357);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (429,NULL,'2017-09-27 09:59:36.588000',NULL,NULL,'Value Set for QICore Adverse Event Type Codes (Preferred)',NULL,'QICore Adverse Event Type Codes',0,'ValueSet/qicore-adverseevent-type',NULL,'http://hl7.org/fhir/ValueSet/qicore-adverseevent-type',358);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (430,NULL,'2017-09-27 09:59:36.598000',NULL,NULL,'A code that records tumour stage grouping',NULL,'TumourStageGrouping',0,'ValueSet/nehta-tumour-stage-grouping',NULL,'http://hl7.org/fhir/ValueSet/nehta-tumour-stage-grouping',359);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (431,NULL,'2017-09-27 09:59:36.609000',NULL,NULL,'Set of values for the imaging examination result status.',NULL,'ImagingExaminationResultStatusValues',0,'ValueSet/nehta-imaging-examination-result-stat',NULL,'http://hl7.org/fhir/ValueSet/nehta-imaging-examination-result-stat',360);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (432,NULL,'2017-09-27 09:59:36.618000',NULL,NULL,'Stain type options',NULL,'StainType',0,'ValueSet/nehta-nehta-stain-type',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-stain-type',361);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (433,NULL,'2017-09-27 09:59:36.625000',NULL,NULL,'Indicates whether a colorectal tumour specimen was involved or not involved.',NULL,'CRCInvolvedNotinvolved',1,'ValueSet/nehta-nehta-crc-involved-notinvolved',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-involved-notinvolved',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (434,NULL,'2017-09-27 09:59:36.650000',NULL,NULL,'SNOMED CT Substance concepts Other Than Clinical Drug Substances that are not represented by RXNORM drug concepts or FDA UNII substance concepts. This value set is meant to be quite broad and includes many substances that may never be prescribed or be a reactant. It does not remove all overlap with RXNORM and UNII; for those concepts, the alternative code system should be chosen.',NULL,'DAF SNOMED CT Substances Other Than Clinical Drugs',0,'ValueSet/substance-sct',NULL,'http://hl7.org/fhir/ValueSet/substance-sct',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (435,NULL,'2017-09-27 09:59:36.670000',NULL,NULL,'Lists the R code options for recording the residual tumour status',NULL,'ResidualTumourStatus',0,'ValueSet/nehta-nehta-residual-tumour-status',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-residual-tumour-status',362);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (436,NULL,'2017-09-27 09:59:36.679000',NULL,NULL,'Indicates whether a specimen was involved or not involved.',NULL,'InvolvedNotinvolved',1,'ValueSet/nehta-nehta-involved-notinvolved',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-involved-notinvolved',363);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (437,NULL,'2017-09-27 09:59:36.695000',NULL,NULL,'The name types for US Laboratory reporting to Public Health',NULL,'USLabPHNameUse',0,'ValueSet/uslab-patient-uslabph-nameuse',NULL,'http://hl7.org/fhir/ValueSet/uslab-patient-uslabph-nameuse',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (438,NULL,'2017-09-27 09:59:36.704000',NULL,NULL,'The list of mime types that identify mapping languages supported by DEX.',NULL,'DEX mapping language mime types',0,'ValueSet/sdc-dex-mimetype',NULL,'http://hl7.org/fhir/ValueSet/sdc-dex-mimetype',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (439,NULL,'2017-09-27 09:59:36.714000',NULL,NULL,'Indicates the histological grade of the tumour',NULL,'HistologicalGrade',0,'ValueSet/nehta-nehta-histological-grade',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-histological-grade',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (440,NULL,'2017-09-27 09:59:36.729000',NULL,NULL,'This value set defines the set of Codes identifying interpretations of observations',NULL,'US Laboratory Observation Profile Interpretation Codes',0,'ValueSet/uslab-obs-interpretation',NULL,'http://hl7.org/fhir/ValueSet/uslab-obs-interpretation',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (441,NULL,'2017-09-27 09:59:36.735000',NULL,NULL,'A substance or other type of agent (e.g., sunshine) that may be associated with an intolerance reaction event or a propensity to such an event. These concepts are expected to be at a more general level of abstraction (ingredients versus more specific formulations). This value set is quite general and includes concepts that may never cause an adverse event, particularly the included SNOMED CT concepts. The code system-specific value sets in this grouping value set are intended to provide broad coverage of all kinds of agents, but the expectation for use is that the chosen concept identifier for a substance should be appropriately specific and drawn from the available code systems in the following priority order: NDFRT, then RXNORM, then UNII, then SNOMED CT. This overarching grouping value set is intended to support identification of drug classes, individual medication ingredients, foods, general substances and environmental entities',NULL,'DAF Substance-Reactant for Intolerance and Negation Codes',0,'ValueSet/daf-substance',NULL,'http://hl7.org/fhir/ValueSet/daf-substance',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (442,NULL,'2017-09-27 09:59:36.749000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the goal process, in particular the process and reasons for rejecting a goal. This value set is provided as a suggestive example.',NULL,'Reasons for rejecting goal codes',0,'ValueSet/qicore-goal-reason-rejected',NULL,'http://hl7.org/fhir/ValueSet/qicore-goal-reason-rejected',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (443,NULL,'2017-09-27 09:59:36.767000',NULL,NULL,'This value set includes all the \"Qualifier for type of diagnosis\" SNOMED CT codes (i.e. codes with an is-a relationship with 106229004: Qualifier for type of diagnosis).',NULL,'SNOMED CT Qualifier For Type of Diagnosis Codes',0,'ValueSet/qicore-encounter-condition-role',NULL,'http://hl7.org/fhir/ValueSet/qicore-encounter-condition-role',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (444,NULL,'2017-09-27 09:59:36.785000',NULL,NULL,'Specifies clinical metadata that can be used to retrieve, index and/or categorize the knowledge artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)',NULL,'KnowledgeModuleFocusType',0,'ValueSet/cqif-knowledge-module-focus-type',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-module-focus-type',364);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (445,NULL,'2017-09-27 09:59:36.793000',NULL,NULL,'This is the code has the options of Not identified or present.',NULL,'NotIdentifiedPresent',1,'ValueSet/nehta-nehta-notidentified-present',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-notidentified-present',365);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (446,NULL,'2017-09-27 09:59:36.811000',NULL,NULL,'This value set includes all ICD-9CM and ICD-10CM concepts and is part of the of the The USLabOrder and USLabReport Implementation Guides. This content may not be published ( EH:Todo - whether and how can display this)',NULL,'USlabConditonCodes',0,'ValueSet/uslab-cond-reasonforstudy',NULL,'http://hl7.org/fhir/ValueSet/uslab-cond-reasonforstudy',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (447,NULL,'2017-09-27 09:59:36.827000',NULL,NULL,'USLab Specimen Type: Codes to describe the Specimen. This value set includes all SNOMED CT concepts that are descendents of the Specimen Hierarchy (123038009)',NULL,'USLab Specimen Type',0,'ValueSet/uslab-spec-type',NULL,'http://hl7.org/fhir/ValueSet/uslab-spec-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (448,NULL,'2017-09-27 09:59:36.846000',NULL,NULL,'This value set defines the set of code for identifying the reason why the specimen condition prevented the test form being completed. ',NULL,'US Laboratory Observation Specimen Rejection Codes',0,'ValueSet/uslab-obs-spec-reject',NULL,'http://hl7.org/fhir/ValueSet/uslab-obs-spec-reject',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (449,NULL,'2017-09-27 09:59:36.854000',NULL,NULL,'Discharge Disposition - NUBC manual UB-04, UB form locator 17',NULL,'DAF Encounter Discharge Disposition',0,'ValueSet/daf-encounter-dischargedisposition',NULL,'http://hl7.org/fhir/ValueSet/daf-encounter-dischargedisposition',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (450,NULL,'2017-09-27 09:59:36.869000',NULL,NULL,'Indicates whether a new primary cancer or a regional recurrence or distant metastases.',NULL,'NehtaCancerPrimaryOrRecurrence',0,'ValueSet/nehta-nehta-cancer-primary-or-recurrence',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-cancer-primary-or-recurrence',370);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (451,NULL,'2017-09-27 09:59:36.876000',NULL,NULL,'LOINC codes. This value set includes all LOINCs',NULL,'US Laboratory Observation Profile Observation Name Codes',0,'ValueSet/uslab-obs-codes',NULL,'http://hl7.org/fhir/ValueSet/uslab-obs-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (452,NULL,'2017-09-27 09:59:36.883000',NULL,NULL,'This value set indicates the allowed vital sign result types. The vocabulary selected for this value set align with requirements in the Meaningful Use (MU) Stage 2. Note the concept Blood pressure systolic and diastolic (55284-4) is used to group the related observations Systolic blood pressure (8480-6) and Diastolic blood pressure (8462-4). It SHALL NOT be used alone, but both 8480-6 and 8462-2 SHALL also be valued.',NULL,'C-CDA Vital Sign Result ',1,'ValueSet/daf-observation-CCDAVitalSignResult',NULL,'http://hl7.org/fhir/ValueSet/daf-observation-CCDAVitalSignResult',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (453,NULL,'2017-09-27 09:59:37.013000',NULL,NULL,'This identifies the body site at which the substance was administered',NULL,'Vaccine Administered Body Site',1,'ValueSet/daf-bodysite',NULL,'http://hl7.org/fhir/ValueSet/daf-bodysite',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (454,NULL,'2017-09-27 09:59:37.042000',NULL,NULL,'Disability is broadly defined as a physical or mental condition that limits a person''s movements, senses, or activities. This includes items such as handicap, impairment, invalidism, functional dependency, and incompetence.',NULL,'Disability Value Set',1,'ValueSet/qicore-patient-disability',NULL,'http://hl7.org/fhir/ValueSet/qicore-patient-disability',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (455,NULL,'2017-09-27 09:59:37.057000',NULL,NULL,'Example value set for Condition/Problem/Diagnosis certainty',NULL,'Condition/Diagnosis Certainty',0,'ValueSet/qicore-condition-certainty',NULL,'http://hl7.org/fhir/ValueSet/qicore-condition-certainty',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (456,NULL,'2017-09-27 09:59:37.073000',NULL,NULL,'This is the code indicates presence or abscence and not stated.',NULL,'PresentAbsentNotstated',1,'ValueSet/nehta-nehta-present-absent-ns',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-present-absent-ns',371);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (457,NULL,'2017-09-27 09:59:37.092000',NULL,NULL,'This is the code has the options of Distal or Proximal.',NULL,'DistalProximal',1,'ValueSet/nehta-nehta-distal-proximal',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-distal-proximal',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (458,NULL,'2017-09-27 09:59:37.110000',NULL,NULL,'This code indicates the location of the colorectal tumour.',NULL,'ColorectalCancerTumourLocation',1,'ValueSet/nehta-nehta-crc-tumour-location',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-tumour-location',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (459,NULL,'2017-09-27 09:59:37.136000',NULL,NULL,'Code for method by which the observation result was validated, e.g., human review, sliding average.',NULL,'QICore Observation Verification Method',0,'ValueSet/qicore-observation-verification',NULL,'http://hl7.org/fhir/ValueSet/qicore-observation-verification',372);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (460,NULL,'2017-09-27 09:59:37.143000',NULL,NULL,'This value set indicates the allowed Medication list values in list.code. The vocabulary selected for this value set aligns with the C-CDA section codes.',NULL,'DAF Medication List Codes',1,'ValueSet/daf-list-DAFMedListCode',NULL,'http://hl7.org/fhir/ValueSet/daf-list-DAFMedListCode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (461,NULL,'2017-09-27 09:59:37.259000',NULL,NULL,'This value set includes all the \"Dosages\" SNOMED CT codes (i.e. codes with an is-a relationship with 277406006: Dosages).',NULL,'SNOMED CT Dosages Codes',0,'ValueSet/qicore-medication-dose-type',NULL,'http://hl7.org/fhir/ValueSet/qicore-medication-dose-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (462,NULL,'2017-09-27 09:59:37.274000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support the encounter process, in particular the process and reasons for canceling or refusing an encounter. This value set is provided as a suggestive example',NULL,'Reasons for canceled or refused encounter codes',0,'ValueSet/qicore-encounter-canceled-reason',NULL,'http://hl7.org/fhir/ValueSet/qicore-encounter-canceled-reason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (463,NULL,'2017-09-27 09:59:37.299000',NULL,NULL,'The type of contributor',NULL,'KnowledgeModuleContributorType',0,'ValueSet/cqif-knowledge-module-contributor',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-module-contributor',373);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (464,NULL,'2017-09-27 09:59:37.309000',NULL,NULL,'Indicates the options for indicating the type(s) of perforation.',NULL,'NehtaNatureOfPerforation',0,'ValueSet/nehta-nehta-perforation-type',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-perforation-type',374);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (465,NULL,'2017-09-27 09:59:37.314000',NULL,NULL,'This is the code indicates presence or abscence.',NULL,'PresentAbsent',1,'ValueSet/nehta-nehta-present-absent-na',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-present-absent-na',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (466,NULL,'2017-09-27 09:59:37.336000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system for reasons of rejecting or canceling a referral request. This value set is provided as a suggestive example.',NULL,'Reasons for rejecting a referral request',0,'ValueSet/qicore-referralrequest-reason-rejected',NULL,'http://hl7.org/fhir/ValueSet/qicore-referralrequest-reason-rejected',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (467,NULL,'2017-09-27 09:59:37.357000',NULL,NULL,'Gene mutation options',NULL,'MutatedWildtype',0,'ValueSet/nehta-nehta-mutated-wildtype',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-mutated-wildtype',375);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (468,NULL,'2017-09-27 09:59:37.367000',NULL,NULL,'Value Set for QICore Adverse Event Category (Preferred)',NULL,'QICore Adverse Event Category Codes',0,'ValueSet/qicore-adverseevent-category',NULL,'http://hl7.org/fhir/ValueSet/qicore-adverseevent-category',376);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (469,NULL,'2017-09-27 09:59:37.373000',NULL,NULL,'The name types for US Laboratory ordering and reporting in ambulatory care setting',NULL,'USLabNameUse',0,'ValueSet/uslab-patient-uslab-nameuse',NULL,'http://hl7.org/fhir/ValueSet/uslab-patient-uslab-nameuse',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (470,NULL,'2017-09-27 09:59:37.384000',NULL,NULL,'The type of guidance artifact',NULL,'ArtifactType',0,'ValueSet/cqif-artifact-type',NULL,'http://hl7.org/fhir/ValueSet/cqif-artifact-type',377);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (471,NULL,'2017-09-27 09:59:37.389000',NULL,NULL,'Meaningful use race code. The 5 base codes (see http://forum.sitenv.org/viewtopic.php?f=16&t=23&sid=8fb101254557843fa05ac94d8d83a095) from PHIN VADS https://phinvads.cdc.gov/vads/ViewValueSet.action?id=94E75E17-176B-DE11-9B52-0015173D1785 (oid: 2.16.840.1.113883.1.11.14914).',NULL,'MU Race Value Set',1,'ValueSet/daf-race',NULL,'http://hl7.org/fhir/ValueSet/daf-race',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (472,NULL,'2017-09-27 09:59:37.406000',NULL,NULL,'Reason communication was not performed. A set of codes specifying the motivation, cause, or rationale of not performing a communication such as being rejected or refused. This value set is provided as a suggestive example.',NULL,'Communication reason not performed codes',0,'ValueSet/qicore-communication-reason-not-performed',NULL,'http://hl7.org/fhir/ValueSet/qicore-communication-reason-not-performed',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (473,NULL,'2017-09-27 09:59:37.427000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system for reasons of rejecting requests for using a device. This value set is provided as a suggestive example.',NULL,'Reasons for rejecting device use request codes',0,'ValueSet/qicore-deviceuserequest-reason-rejected',NULL,'http://hl7.org/fhir/ValueSet/qicore-deviceuserequest-reason-rejected',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (474,NULL,'2017-09-27 09:59:37.448000',NULL,NULL,'USLab Specimen Body Site: Codes to describe the specimen collection body site. This value set includes all SNOMED CT concepts that are descendents of Anatomical Structure (91723000)',NULL,'USLab Specimen Body Site',0,'ValueSet/uslab-spec-bodysite',NULL,'http://hl7.org/fhir/ValueSet/uslab-spec-bodysite',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (475,NULL,'2017-09-27 09:59:37.463000',NULL,NULL,'This is the physical form of the product as presented to the individual. For example: tablet, capsule, liquid or ointment. NCI concept code for pharmaceutical dosage form: C42636',NULL,'Medication Product Form Value Set',1,'ValueSet/daf-product-form',NULL,'http://hl7.org/fhir/ValueSet/daf-product-form',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (476,NULL,'2017-09-27 09:59:37.565000',NULL,NULL,'Value Set for QICore Communication Medium (Example)',NULL,'QICore Communication Medium Codes',0,'ValueSet/qicore-communication-medium',NULL,'http://hl7.org/fhir/ValueSet/qicore-communication-medium',380);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (477,NULL,'2017-09-27 09:59:37.579000',NULL,NULL,'The RAND scoring for appropriateness of the procedure.',NULL,'QICoreAppropriatenessScore',0,'ValueSet/qicore-appropriateness-score',NULL,'http://hl7.org/fhir/ValueSet/qicore-appropriateness-score',381);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (478,NULL,'2017-09-27 09:59:37.590000',NULL,NULL,'Set of values for the pathology test result status.',NULL,'PathologyTestResultStatusValues',0,'ValueSet/nehta-pathology-test-result-status-va',NULL,'http://hl7.org/fhir/ValueSet/nehta-pathology-test-result-status-va',382);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (479,NULL,'2017-09-27 09:59:37.596000',NULL,NULL,'Code indicating how the current observation compares to previous observations - e.g., no change, rising trend, decreasing trend, etc...',NULL,'QICore Observation Delta Value Set Definition',0,'ValueSet/qicore-observation-delta',NULL,'http://hl7.org/fhir/ValueSet/qicore-observation-delta',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (480,NULL,'2017-09-27 09:59:37.606000',NULL,NULL,'The set of values for recording clinical manifestation of an adverse reaction.',NULL,'ClinicalManifestationValues',1,'ValueSet/nehta-nehta-ClinicalManifestationValues',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-ClinicalManifestationValues',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (481,NULL,'2017-09-27 09:59:37.623000',NULL,NULL,'The type of encounter: a specific code indicating type of service provided, from CPT',NULL,'DAF Encounter Type',0,'ValueSet/daf-encounter-type',NULL,'http://hl7.org/fhir/ValueSet/daf-encounter-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (482,NULL,'2017-09-27 09:59:37.632000',NULL,NULL,'All RxNorm codes that have TTY = IN,PIN,MIN,BN, but TTY != OCD.',NULL,'DAF Substance RxNorm Codes',0,'ValueSet/substance-rxnorm',NULL,'http://hl7.org/fhir/ValueSet/substance-rxnorm',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (483,NULL,'2017-09-27 09:59:37.651000',NULL,NULL,'All ND-FRT NUIs for concepts that are subsumed by ''Mechanism of Action - N0000000223'', ''Physiologic Effect - N0000009802'' or ''Chemical Structure - N0000000002''.',NULL,'DAF Substance ND-FRT codes',0,'ValueSet/substance-ndfrt',NULL,'http://hl7.org/fhir/ValueSet/substance-ndfrt',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (484,NULL,'2017-09-27 09:59:37.663000',NULL,NULL,'This example value set defines a set of codes that can be used to indicate the type of procedure: a specific code indicating type of procedure performed, from CPT, SNOMED CT, ICD10-PCS.',NULL,'DAFProcedureType',0,'ValueSet/daf-procedure-type',NULL,'http://hl7.org/fhir/ValueSet/daf-procedure-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (485,NULL,'2017-09-27 09:59:37.687000',NULL,NULL,'Value Set for Military Service (Example)',NULL,'Military Service Codes',0,'ValueSet/qicore-patient-military-service',NULL,'http://hl7.org/fhir/ValueSet/qicore-patient-military-service',385);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (486,NULL,'2017-09-27 09:59:37.694000',NULL,NULL,'Indicates the presence or absence of dysplasia',NULL,'Dysplasia',0,'ValueSet/nehta-nehta-dysplasia',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-dysplasia',386);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (487,NULL,'2017-09-27 09:59:37.699000',NULL,NULL,'This value set indicates the current smoking status of a patient. The vocabulary selected for this value set is the best approximation of the statuses in Meaningful Use (MU) Stage 2. The smoking status value set includes a special code to communicate if the smoking status is unknown',NULL,'Smoking Status',1,'ValueSet/daf-observation-ccdasmokingstatus',NULL,'http://hl7.org/fhir/ValueSet/daf-observation-ccdasmokingstatus',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (488,NULL,'2017-09-27 09:59:37.724000',NULL,NULL,'The type of trigger',NULL,'TriggerType',0,'ValueSet/cqif-trigger-type',NULL,'http://hl7.org/fhir/ValueSet/cqif-trigger-type',387);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (489,NULL,'2017-09-27 09:59:37.732000',NULL,NULL,'This is the code indicates the type of operation for the colorectal cancer.',NULL,'ColorectalCancerOperationType',1,'ValueSet/nehta-nehta-crc-operation-type',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-operation-type',388);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (490,NULL,'2017-09-27 09:59:37.751000',NULL,NULL,'A set of values used to refer to medicines and other therapeutic goods.',NULL,'MedicinesTerminology',1,'ValueSet/nehta-nehta-MedicinesTerminology',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-MedicinesTerminology',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (491,NULL,'2017-09-27 09:59:37.769000',NULL,NULL,'The type of related resource for the module',NULL,'KnowledgeModuleResourceType',0,'ValueSet/cqif-knowledge-module-resource-type',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-module-resource-type',389);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (492,NULL,'2017-09-27 09:59:37.778000',NULL,NULL,'Code to classify the kind of observation in Observation.value[x]',NULL,'uslab-observationkind',0,'ValueSet/uslab-obs-kind',NULL,'http://hl7.org/fhir/ValueSet/uslab-obs-kind',390);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (493,NULL,'2017-09-27 09:59:37.784000',NULL,NULL,'Codes identifying atomic results of observations when value is type codeableConcept. This value set includes all the children of SNOMED CT Concepts from SCTIDs 404684003 Clinical finding (finding), 410607006 Organism (organism),362981000 Qualifier value (qualifier value), 105590001 Substance (substance), and 123037004 Body structure (body structure). It is provided as a suggestive example',NULL,'SNOMED CT Codes',0,'ValueSet/uslab-obs-codedresults',NULL,'http://hl7.org/fhir/ValueSet/uslab-obs-codedresults',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (494,NULL,'2017-09-27 09:59:37.810000',NULL,NULL,'This is the code indicates the maximum degree of local invasion into or through the bowel wall.',NULL,'DegreeInvasionBowelWall',1,'ValueSet/nehta-nehta-crc-deg-inv-bowel-wall',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-deg-inv-bowel-wall',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (495,NULL,'2017-09-27 09:59:37.828000',NULL,NULL,'For rectal resections this field indicates the intactness of the mesorectum.',NULL,'MesorectumIntactness',1,'ValueSet/nehta-nehta-crc-intactness-of-mesorectum',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-intactness-of-mesorectum',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (496,NULL,'2017-09-27 09:59:37.846000',NULL,NULL,'This value set includes all the \"Clinical finding\" SNOMED CT codes (i.e. codes with an is-a relationship with 404684003: Clinical finding)',NULL,'SNOMED CT Clinical Findings',0,'ValueSet/uslab-clinical-findings',NULL,'http://hl7.org/fhir/ValueSet/uslab-clinical-findings',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (497,NULL,'2017-09-27 09:59:37.863000',NULL,NULL,'This value set includes all SNOMED CT Clinical Findings or Situation with Explicit Context hierarchies.',NULL,'Manifestation C-CDA codes',0,'ValueSet/daf-manifestation-ccda-codes',NULL,'http://hl7.org/fhir/ValueSet/daf-manifestation-ccda-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (498,NULL,'2017-09-27 09:59:37.881000',NULL,NULL,'The value set to instantiate this attribute should be drawn from a terminologically robust code system for reasons of refuting an allergy or intolerance. This value set is provided as a suggestive example.',NULL,'Reasons for refuting allergy or intolerance codes',0,'ValueSet/qicore-allergyintolerance-reason-refuted',NULL,'http://hl7.org/fhir/ValueSet/qicore-allergyintolerance-reason-refuted',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (499,NULL,'2017-09-27 09:59:37.903000',NULL,NULL,'This describes the problem. Diagnosis/Problem List is broadly defined as a series of brief statements that catalog a patient''s medical, nursing, dental, social, preventative and psychiatric events and issues that are relevant to that patient''s healthcare (e.g., signs, symptoms, and defined conditions)',NULL,'Problem Value Set',1,'ValueSet/daf-problem',NULL,'http://hl7.org/fhir/ValueSet/daf-problem',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (500,NULL,'2017-09-27 09:59:37.928000',NULL,NULL,'Route of Administration value set is based upon FDA Drug Registration and Listing Database (FDA Orange Book) which are used in FDA structured product and labelling (SPL)',NULL,'Medication Route FDA Value Set',1,'ValueSet/daf-medication-route',NULL,'http://hl7.org/fhir/ValueSet/daf-medication-route',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (501,NULL,'2017-09-27 09:59:38.024000',NULL,NULL,'This is the code indicates the type of course.',NULL,'TypeOfCourse',1,'ValueSet/nehta-nehta-course-type',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-course-type',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (502,NULL,'2017-09-27 09:59:38.039000',NULL,NULL,'These codes are the relevant colorectal cancer associated coexistent pathological abnormalities.',NULL,'CoexistentPathologicalAbnormalities',1,'ValueSet/nehta-nehta-crc-coexist-path-abnormalities',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-coexist-path-abnormalities',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (503,NULL,'2017-09-27 09:59:38.058000',NULL,NULL,'The response of the tumour to neoadjuvant treatment must be recorded.',NULL,'ResponseToNeoadjuvantTherapy',0,'ValueSet/nehta-nehta-response-to-neoadjuvant-therapy',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-response-to-neoadjuvant-therapy',391);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (504,NULL,'2017-09-27 09:59:38.079000',NULL,NULL,'Value Set for Flag Category (Example). This value set defines category codes for Patient Record Flags. Patient record flags is a mechanism in which an alert can be assigned to patients who have certain high risk clinical needs or behavior problems. Flags can be configured to appear during the patient look-up process.',NULL,'Flag Category Codes',0,'ValueSet/qicore-flag-category',NULL,'http://hl7.org/fhir/ValueSet/qicore-flag-category',392);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (505,NULL,'2017-09-27 09:59:38.087000',NULL,NULL,'The set of values for the statement about the absence or exclusion.',NULL,'GlobalStatementValues',0,'ValueSet/nehta-global-statement-values',NULL,'http://hl7.org/fhir/ValueSet/nehta-global-statement-values',393);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (506,NULL,'2017-09-27 09:59:38.095000',NULL,NULL,'US Realm ambulatory care event codes that correspond the Use cases outlined in the USLabOrder Implementation Guide.',NULL,'USLAB Diagnostic Order Event Codes',0,'ValueSet/uslab-do-event',NULL,'http://hl7.org/fhir/ValueSet/uslab-do-event',394);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (507,NULL,'2017-09-27 09:59:38.106000',NULL,NULL,'The condition, state, or problem that the patient is in or has prior to a therapy or procedure. This captures temporal (temporary circumstances) that have bearing on the data that it qualifies but will not necessarily modify its meaning. Things like ''after activity'', ''at rest'', or ''post-op''. ',NULL,'QICore Diagnostic Order Precondition',0,'ValueSet/qicore-diagnosticorder-precondition',NULL,'http://hl7.org/fhir/ValueSet/qicore-diagnosticorder-precondition',395);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (508,NULL,'2017-09-27 09:59:38.112000',NULL,NULL,'All prescribable medication formulations represented using either a ''generic'' or ''brand-specific'' concept. This includes RxNorm codes whose Term Type is SCD (semantic clinical drug), SBD (semantic brand drug), GPCK (generic pack), BPCK (brand pack), SCDG (semantic clinical drug group), SBDG (semantic brand drug group), SCDF (semantic clinical drug form), or SBDF (semantic brand drug form)',NULL,'Medication Clinical Drug (RxNorm)',0,'ValueSet/daf-medication-codes',NULL,'http://hl7.org/fhir/ValueSet/daf-medication-codes',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (509,NULL,'2017-09-27 09:59:38.129000',NULL,NULL,'For rectal tumours this indicates the options for the relationship to anterior peritoneal reflection.',NULL,'NehtaRelAnteriorPeritonealReflection',0,'ValueSet/nehta-nehta-crc-rel-anterior-peritoneal-reflection',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-crc-rel-anterior-peritoneal-reflection',396);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (510,NULL,'2017-09-27 09:59:38.141000',NULL,NULL,'The allowed codes for identifying the ISO 11179 data element concept if intended for registration/use within the U.S. Structured Data Capture (SDC) project.',NULL,'DataElement SDC Concept',0,'ValueSet/sdcde-dataelement-sdccode',NULL,'http://hl7.org/fhir/ValueSet/sdcde-dataelement-sdccode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (511,NULL,'2017-09-27 09:59:38.156000',NULL,NULL,'Common UCUM units for recording Vital Signs',NULL,'Common UCUM units',0,'ValueSet/daf-ucum-vitals-common',NULL,'http://hl7.org/fhir/ValueSet/daf-ucum-vitals-common',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (512,NULL,'2017-09-27 09:59:38.205000',NULL,NULL,'A code from the WHO Calssification that indicates the tumour type',NULL,'TumourType',0,'ValueSet/nehta-tumour-type',NULL,'http://hl7.org/fhir/ValueSet/nehta-tumour-type',397);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (513,NULL,'2017-09-27 09:59:38.213000',NULL,NULL,'The code for knowledge requests',NULL,'KnowledgeRequestCode',0,'ValueSet/cqif-knowledge-request-code',NULL,'http://hl7.org/fhir/ValueSet/cqif-knowledge-request-code',398);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (514,NULL,'2017-09-27 09:59:38.218000',NULL,NULL,'This is the code has the options of High, Low and Ultralow.',NULL,'HiLowUltralow',1,'ValueSet/nehta-nehta-hi-lo-ultralo',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-hi-lo-ultralo',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (515,NULL,'2017-09-27 09:59:38.237000',NULL,NULL,'This is the code has the options of Not identified, present and present and extensive.',NULL,'NotIdentifiedPresentPresentExtensive',1,'ValueSet/nehta-nehta-notidentified-present-presentextensive',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-notidentified-present-presentextensive',399);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (516,NULL,'2017-09-27 09:59:38.252000',NULL,NULL,'The allowed codes for identifying the ISO 11179 data element concept if intended for registration/use within the U.S. Structured Data Capture (SDC) project.',NULL,'DataElement SDC Concept',0,'ValueSet/dataelement-sdccode',NULL,'http://hl7.org/fhir/ValueSet/dataelement-sdccode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (517,NULL,'2017-09-27 09:59:38.261000',NULL,NULL,'Whether the patient is hispanic or not',NULL,'Ethnicity group',1,'ValueSet/daf-ethnicity',NULL,'http://hl7.org/fhir/ValueSet/daf-ethnicity',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (518,NULL,'2017-09-27 09:59:38.272000',NULL,NULL,'All UNII codes.',NULL,'DAF Substance UNII Codes',0,'ValueSet/substance-unii',NULL,'http://hl7.org/fhir/ValueSet/substance-unii',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (519,NULL,'2017-09-27 09:59:38.282000',NULL,NULL,'Identifies special types of groups within questionnaires',NULL,'QuestionnaireGroupSpecialType',0,'ValueSet/sdc-group-special-type',NULL,'http://hl7.org/fhir/ValueSet/sdc-group-special-type',402);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (520,NULL,'2017-09-27 09:59:38.290000',NULL,NULL,'Provides the results options of stable, unstable or not tested.',NULL,'UnstableStable',0,'ValueSet/nehta-nehta-unstable-stable',NULL,'http://hl7.org/fhir/ValueSet/nehta-nehta-unstable-stable',403);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (521,NULL,'2017-09-27 09:59:38.432000',NULL,NULL,' The codes identify the conditions under which accept acknowledgements are required to be returned in response to this message. Note that accept acknowledgement address two different issues at the same time: reliable transport as well as syntactical correctness',NULL,'v3 Code System AcknowledgementCondition',1,'ValueSet/v3-AcknowledgementCondition',NULL,'http://hl7.org/fhir/ValueSet/v3-AcknowledgementCondition',404);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (522,NULL,'2017-09-27 09:59:38.456000',NULL,NULL,' OpenIssue: Missing description.',NULL,'v3 Code System AcknowledgementDetailCode',1,'ValueSet/v3-AcknowledgementDetailCode',NULL,'http://hl7.org/fhir/ValueSet/v3-AcknowledgementDetailCode',405);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (523,NULL,'2017-09-27 09:59:38.466000',NULL,NULL,' A code identifying the specific message to be provided. Discussion: A textual value may be specified as the print name, or for non-coded messages, as the original text. Examples: ''Required attribute xxx is missing'', ''System will be unavailable March 19 from 0100 to 0300''',NULL,'v3 Code System AcknowledgementDetailType',1,'ValueSet/v3-AcknowledgementDetailType',NULL,'http://hl7.org/fhir/ValueSet/v3-AcknowledgementDetailType',406);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (524,NULL,'2017-09-27 09:59:38.483000',NULL,NULL,' This attribute contains an acknowledgement code as described in the HL7 message processing rules. OpenIssue: Description was copied from attribute and needs to be improved to be appropriate for a code system.',NULL,'v3 Code System AcknowledgementType',1,'ValueSet/v3-AcknowledgementType',NULL,'http://hl7.org/fhir/ValueSet/v3-AcknowledgementType',407);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (525,NULL,'2017-09-27 09:59:38.725000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ActClass',1,'ValueSet/v3-ActClass',NULL,'http://hl7.org/fhir/ValueSet/v3-ActClass',408);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (526,NULL,'2017-09-27 09:59:39.555000',NULL,NULL,' A code specifying the particular kind of Act that the Act-instance represents within its class. Constraints: The kind of Act (e.g. physical examination, serum potassium, inpatient encounter, charge financial transaction, etc.) is specified with a code from one of several, typically external, coding systems. The coding system will depend on the class of Act, such as LOINC for observations, etc. Conceptually, the Act.code must be a specialization of the Act.classCode. This is why the structure of ActClass domain should be reflected in the superstructure of the ActCode domain and then individual codes or externally referenced vocabularies subordinated under these domains that reflect the ActClass structure. Act.classCode and Act.code are not modifiers of each other but the Act.code concept should really imply the Act.classCode concept. For a negative example, it is not appropriate to use an Act.code \"potassium\" together with and Act.classCode for \"laboratory observation\" to somehow mean \"potassium laboratory observation\" and then use the same Act.code for \"potassium\" together with Act.classCode for \"medication\" to mean \"substitution of potassium\". This mutually modifying use of Act.code and Act.classCode is not permitted.',NULL,'v3 Code System ActCode',1,'ValueSet/v3-ActCode',NULL,'http://hl7.org/fhir/ValueSet/v3-ActCode',222);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (527,NULL,'2017-09-27 09:59:39.573000',NULL,NULL,' A qualitative measure of the degree of exposure to the causative agent. This includes concepts such as \"low\", \"medium\" and \"high\". This quantifies how the quantity that was available to be administered to the target differs from typical or background levels of the substance.',NULL,'v3 Code System ActExposureLevelCode',1,'ValueSet/v3-ActExposureLevelCode',NULL,'http://hl7.org/fhir/ValueSet/v3-ActExposureLevelCode',409);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (528,NULL,'2017-09-27 09:59:39.581000',NULL,NULL,' Processing consideration and clarification codes.',NULL,'v3 Code System ActInvoiceElementModifier',1,'ValueSet/v3-ActInvoiceElementModifier',NULL,'http://hl7.org/fhir/ValueSet/v3-ActInvoiceElementModifier',410);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (529,NULL,'2017-09-27 09:59:39.600000',NULL,NULL,' OpenIssue: In Ballot 2009May, a strong Negative vote was lodged against several of the concept definitions in the vocabulary used for Act.moodCode. The vote was found \"Persuasive With Mod\", with the understanding that M and M would undertake a detailed review of these concept definitions for a future release of the RIM.',NULL,'v3 Code System ActMood',1,'ValueSet/v3-ActMood',NULL,'http://hl7.org/fhir/ValueSet/v3-ActMood',411);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (530,NULL,'2017-09-27 09:59:39.614000',NULL,NULL,' A set of codes (e.g. for routine, emergency), specifying the urgency under which the Act happened, can happen, is happening, is intended to happen, or is requested/demanded to happen.',NULL,'v3 Code System ActPriority',1,'ValueSet/v3-ActPriority',NULL,'http://hl7.org/fhir/ValueSet/v3-ActPriority',412);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (531,NULL,'2017-09-27 09:59:39.749000',NULL,NULL,' A set of codes specifying the motivation, cause, or rationale of an Act, when such rationale is not reasonably represented as an ActRelationship of type \"has reason\" linking to another Act. Examples: Example reasons that might qualify for being coded in this field might be: \"routine requirement\", \"infectious disease reporting requirement\", \"on patient request\", \"required by law\".',NULL,'v3 Code System ActReason',1,'ValueSet/v3-ActReason',NULL,'http://hl7.org/fhir/ValueSet/v3-ActReason',328);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (532,NULL,'2017-09-27 09:59:39.760000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ActRelationshipCheckpoint',1,'ValueSet/v3-ActRelationshipCheckpoint',NULL,'http://hl7.org/fhir/ValueSet/v3-ActRelationshipCheckpoint',413);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (533,NULL,'2017-09-27 09:59:39.769000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ActRelationshipJoin',1,'ValueSet/v3-ActRelationshipJoin',NULL,'http://hl7.org/fhir/ValueSet/v3-ActRelationshipJoin',414);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (534,NULL,'2017-09-27 09:59:39.777000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ActRelationshipSplit',1,'ValueSet/v3-ActRelationshipSplit',NULL,'http://hl7.org/fhir/ValueSet/v3-ActRelationshipSplit',415);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (535,NULL,'2017-09-27 09:59:39.791000',NULL,NULL,' <ns1:p>Used to indicate that the target of the relationship will be a filtered subset of the total related set of targets.</ns1:p><ns1:p>Used when there is a need to limit the number of components to the first, the last, the next, the total, the average or some other filtered or calculated subset.</ns1:p>',NULL,'v3 Code System ActRelationshipSubset',1,'ValueSet/v3-ActRelationshipSubset',NULL,'http://hl7.org/fhir/ValueSet/v3-ActRelationshipSubset',416);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (536,NULL,'2017-09-27 09:59:39.876000',NULL,NULL,' The source is an excerpt from the target.',NULL,'v3 Code System ActRelationshipType',1,'ValueSet/v3-ActRelationshipType',NULL,'http://hl7.org/fhir/ValueSet/v3-ActRelationshipType',417);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (537,NULL,'2017-09-27 09:59:39.912000',NULL,NULL,' An anatomical location on an organism which can be the focus of an act.',NULL,'v3 Code System ActSite',1,'ValueSet/v3-ActSite',NULL,'http://hl7.org/fhir/ValueSet/v3-ActSite',191);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (538,NULL,'2017-09-27 09:59:39.924000',NULL,NULL,' Codes representing the defined possible states of an Act, as defined by the Act class state machine.',NULL,'v3 Code System ActStatus',1,'ValueSet/v3-ActStatus',NULL,'http://hl7.org/fhir/ValueSet/v3-ActStatus',418);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (539,NULL,'2017-09-27 09:59:39.932000',NULL,NULL,' OpenIssue: Missing Description',NULL,'v3 Code System ActUncertainty',1,'ValueSet/v3-ActUncertainty',NULL,'http://hl7.org/fhir/ValueSet/v3-ActUncertainty',419);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (540,NULL,'2017-09-27 09:59:39.942000',NULL,NULL,' Description: A jurisdictional mandate in the US relating to privacy.',NULL,'v3 Code System ActUSPrivacyLaw',1,'ValueSet/v3-ActUSPrivacyLaw',NULL,'http://hl7.org/fhir/ValueSet/v3-ActUSPrivacyLaw',420);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (541,NULL,'2017-09-27 09:59:39.958000',NULL,NULL,' Description: Code that specifies whether an address part names the street, city, country, postal code, post box, etc. Discussion: The hierarchical nature of these concepts shows composition; e.g. \"Street Name\" is part of \"Street Address Line\"',NULL,'v3 Code System AddressPartType',1,'ValueSet/v3-AddressPartType',NULL,'http://hl7.org/fhir/ValueSet/v3-AddressPartType',421);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (542,NULL,'2017-09-27 09:59:39.973000',NULL,NULL,' Codes that provide guidance around the circumstances in which a given address should be used.',NULL,'v3 Code System AddressUse',1,'ValueSet/v3-AddressUse',NULL,'http://hl7.org/fhir/ValueSet/v3-AddressUse',160);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (543,NULL,'2017-09-27 09:59:39.982000',NULL,NULL,' The gender of a person used for adminstrative purposes (as opposed to clinical gender)',NULL,'v3 Code System AdministrativeGender',1,'ValueSet/v3-AdministrativeGender',NULL,'http://hl7.org/fhir/ValueSet/v3-AdministrativeGender',422);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (544,NULL,'2017-09-27 09:59:40.106000',NULL,NULL,' American Indian and Alaska Native languages currently being used in the United States.',NULL,'v3 Code System AmericanIndianAlaskaNativeLanguages',1,'ValueSet/v3-AmericanIndianAlaskaNativeLanguages',NULL,'http://hl7.org/fhir/ValueSet/v3-AmericanIndianAlaskaNativeLanguages',423);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (545,NULL,'2017-09-27 09:59:40.116000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System Calendar',1,'ValueSet/v3-Calendar',NULL,'http://hl7.org/fhir/ValueSet/v3-Calendar',424);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (546,NULL,'2017-09-27 09:59:40.131000',NULL,NULL,' Calendar cycle identifiers',NULL,'v3 Code System CalendarCycle',1,'ValueSet/v3-CalendarCycle',NULL,'http://hl7.org/fhir/ValueSet/v3-CalendarCycle',425);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (547,NULL,'2017-09-27 09:59:40.139000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System CalendarType',1,'ValueSet/v3-CalendarType',NULL,'http://hl7.org/fhir/ValueSet/v3-CalendarType',426);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (548,NULL,'2017-09-27 09:59:40.148000',NULL,NULL,' Internet Assigned Numbers Authority (IANA) Charset Types',NULL,'v3 Code System Charset',1,'ValueSet/v3-Charset',NULL,'http://hl7.org/fhir/ValueSet/v3-Charset',427);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (549,NULL,'2017-09-27 09:59:40.159000',NULL,NULL,' Identifies how to interpret the instance of the code, codeSystem value in a set of translations. Since HL7 (or a government body) may mandate that codes from certain code systems be sent in conformant messages, other synonyms that are sent in the translation set need to be distinguished among the originally captured source, the HL7 specified code, or some future role. When this code is NULL, it indicates that the translation is an undefined type. When valued, this property must contain one of the following values: SRC - Source (or original) code HL7 - HL7 Specified or Mandated SH - both HL7 mandated and the original code (precoordination) There may be additional values added to this value set as we work through the use of codes in messages and determine other Use Cases requiring special interpretation of the translations.',NULL,'v3 Code System CodingRationale',1,'ValueSet/v3-CodingRationale',NULL,'http://hl7.org/fhir/ValueSet/v3-CodingRationale',428);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (550,NULL,'2017-09-27 09:59:40.166000',NULL,NULL,' Describes the type of communication function that the associated entity plays in the associated transmission.',NULL,'v3 Code System CommunicationFunctionType',1,'ValueSet/v3-CommunicationFunctionType',NULL,'http://hl7.org/fhir/ValueSet/v3-CommunicationFunctionType',429);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (551,NULL,'2017-09-27 09:59:40.175000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System CompressionAlgorithm',1,'ValueSet/v3-CompressionAlgorithm',NULL,'http://hl7.org/fhir/ValueSet/v3-CompressionAlgorithm',430);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (552,NULL,'2017-09-27 09:59:40.192000',NULL,NULL,' A set of codes specifying the security classification of acts and roles in accordance with the definition for concept domain \"Confidentiality\".',NULL,'v3 Code System Confidentiality',1,'ValueSet/v3-Confidentiality',NULL,'http://hl7.org/fhir/ValueSet/v3-Confidentiality',431);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (553,NULL,'2017-09-27 09:59:40.202000',NULL,NULL,' The type of cap associated with a container',NULL,'v3 Code System ContainerCap',1,'ValueSet/v3-ContainerCap',NULL,'http://hl7.org/fhir/ValueSet/v3-ContainerCap',432);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (554,NULL,'2017-09-27 09:59:40.211000',NULL,NULL,' A material in a blood collection container that facilites the separation of of blood cells from serum or plasma',NULL,'v3 Code System ContainerSeparator',1,'ValueSet/v3-ContainerSeparator',NULL,'http://hl7.org/fhir/ValueSet/v3-ContainerSeparator',433);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (555,NULL,'2017-09-27 09:59:40.221000',NULL,NULL,' Description: Identifies the order in which content should be processed.',NULL,'v3 Code System ContentProcessingMode',1,'ValueSet/v3-ContentProcessingMode',NULL,'http://hl7.org/fhir/ValueSet/v3-ContentProcessingMode',434);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (556,NULL,'2017-09-27 09:59:40.233000',NULL,NULL,' A code that specifies how an ActRelationship or Participation contributes to the context of an Act, and whether it may be propagated to descendent Acts whose association allows such propagation (see also attributes Participation.contextControlCode, ActRelationship.contextControlCode, ActRelationship.contextConductionInd).',NULL,'v3 Code System ContextControl',1,'ValueSet/v3-ContextControl',NULL,'http://hl7.org/fhir/ValueSet/v3-ContextControl',435);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (557,NULL,'2017-09-27 09:59:40.248000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System DataOperation',1,'ValueSet/v3-DataOperation',NULL,'http://hl7.org/fhir/ValueSet/v3-DataOperation',436);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (558,NULL,'2017-09-27 09:59:40.256000',NULL,NULL,' Domain values for the Device.Alert_levelCode',NULL,'v3 Code System DeviceAlertLevel',1,'ValueSet/v3-DeviceAlertLevel',NULL,'http://hl7.org/fhir/ValueSet/v3-DeviceAlertLevel',437);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (559,NULL,'2017-09-27 09:59:40.266000',NULL,NULL,' Identifies the current completion state of a clinical document.',NULL,'v3 Code System DocumentCompletion',1,'ValueSet/v3-DocumentCompletion',NULL,'http://hl7.org/fhir/ValueSet/v3-DocumentCompletion',438);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (560,NULL,'2017-09-27 09:59:40.276000',NULL,NULL,' Identifies the storage status of a document.',NULL,'v3 Code System DocumentStorage',1,'ValueSet/v3-DocumentStorage',NULL,'http://hl7.org/fhir/ValueSet/v3-DocumentStorage',439);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (561,NULL,'2017-09-27 09:59:40.286000',NULL,NULL,' Years of education that a person has completed',NULL,'v3 Code System EducationLevel',1,'ValueSet/v3-EducationLevel',NULL,'http://hl7.org/fhir/ValueSet/v3-EducationLevel',440);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (562,NULL,'2017-09-27 09:59:40.294000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EmployeeJobClass',1,'ValueSet/v3-EmployeeJobClass',NULL,'http://hl7.org/fhir/ValueSet/v3-EmployeeJobClass',441);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (563,NULL,'2017-09-27 09:59:40.301000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EncounterAdmissionSource',1,'ValueSet/v3-EncounterAdmissionSource',NULL,'http://hl7.org/fhir/ValueSet/v3-EncounterAdmissionSource',442);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (564,NULL,'2017-09-27 09:59:40.308000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EncounterSpecialCourtesy',1,'ValueSet/v3-EncounterSpecialCourtesy',NULL,'http://hl7.org/fhir/ValueSet/v3-EncounterSpecialCourtesy',284);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (565,NULL,'2017-09-27 09:59:40.329000',NULL,NULL,' Classifies the Entity class and all of its subclasses. The terminology is hierarchical. At the top is this HL7-defined domain of high-level categories (such as represented by the Entity subclasses). Each of these terms must be harmonized and is specializable. The value sets beneath are drawn from multiple, frequently external, domains that reflect much more fine-grained typing.',NULL,'v3 Code System EntityClass',1,'ValueSet/v3-EntityClass',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityClass',443);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (566,NULL,'2017-09-27 09:59:40.406000',NULL,NULL,' OpenIssue: Missing description.',NULL,'v3 Code System EntityCode',1,'ValueSet/v3-EntityCode',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityCode',444);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (567,NULL,'2017-09-27 09:59:40.417000',NULL,NULL,' EntityDeterminer in natural language grammar is the class of words that comprises articles, demonstrative pronouns, and quantifiers. In the RIM, determiner is a structural code in the Entity class to distinguish whether any given Entity object stands for some, any one, or a specific thing.',NULL,'v3 Code System EntityDeterminer',1,'ValueSet/v3-EntityDeterminer',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityDeterminer',445);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (568,NULL,'2017-09-27 09:59:40.429000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EntityHandling',1,'ValueSet/v3-EntityHandling',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityHandling',446);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (569,NULL,'2017-09-27 09:59:40.450000',NULL,NULL,' OpenIssue: Needs description',NULL,'v3 Code System EntityNamePartQualifier',1,'ValueSet/v3-EntityNamePartQualifier',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityNamePartQualifier',447);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (570,NULL,'2017-09-27 09:59:40.467000',NULL,NULL,' Description: The qualifier is a set of codes each of which specifies a certain subcategory of the name part in addition to the main name part type. For example, a given name may be flagged as a nickname, a family name may be a pseudonym or a name of public records.',NULL,'v3 Code System EntityNamePartQualifierR2',1,'ValueSet/v3-EntityNamePartQualifierR2',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityNamePartQualifierR2',165);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (571,NULL,'2017-09-27 09:59:40.476000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EntityNamePartType',1,'ValueSet/v3-EntityNamePartType',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityNamePartType',448);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (572,NULL,'2017-09-27 09:59:40.484000',NULL,NULL,' Description: Indicates whether the name part is a given name, family name, prefix, suffix, etc.',NULL,'v3 Code System EntityNamePartTypeR2',1,'ValueSet/v3-EntityNamePartTypeR2',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityNamePartTypeR2',449);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (573,NULL,'2017-09-27 09:59:40.496000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EntityNameUse',1,'ValueSet/v3-EntityNameUse',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityNameUse',450);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (574,NULL,'2017-09-27 09:59:40.510000',NULL,NULL,' Description: A set of codes advising a system or user which name in a set of names to select for a given purpose.',NULL,'v3 Code System EntityNameUseR2',1,'ValueSet/v3-EntityNameUseR2',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityNameUseR2',451);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (575,NULL,'2017-09-27 09:59:40.524000',NULL,NULL,' Kinds of risks associated with the handling of the material..',NULL,'v3 Code System EntityRisk',1,'ValueSet/v3-EntityRisk',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityRisk',452);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (576,NULL,'2017-09-27 09:59:40.535000',NULL,NULL,' Codes representing the defined possible states of an Entity, as defined by the Entity class state machine.',NULL,'v3 Code System EntityStatus',1,'ValueSet/v3-EntityStatus',NULL,'http://hl7.org/fhir/ValueSet/v3-EntityStatus',453);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (577,NULL,'2017-09-27 09:59:40.547000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System EquipmentAlertLevel',1,'ValueSet/v3-EquipmentAlertLevel',NULL,'http://hl7.org/fhir/ValueSet/v3-EquipmentAlertLevel',454);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (578,NULL,'2017-09-27 09:59:40.574000',NULL,NULL,' In the United States, federal standards for classifying data on ethnicity determine the categories used by federal agencies and exert a strong influence on categorization by state and local agencies and private sector organizations. The federal standards do not conceptually define ethnicity, and they recognize the absence of an anthropological or scientific basis for ethnicity classification. Instead, the federal standards acknowledge that ethnicity is a social-political construct in which an individual''s own identification with a particular ethnicity is preferred to observer identification. The standards specify two minimum ethnicity categories: Hispanic or Latino, and Not Hispanic or Latino. The standards define a Hispanic or Latino as a person of \"Mexican, Puerto Rican, Cuban, South or Central America, or other Spanish culture or origin, regardless of race.\" The standards stipulate that ethnicity data need not be limited to the two minimum categories, but any expansion must be collapsible to those categories. In addition, the standards stipulate that an individual can be Hispanic or Latino or can be Not Hispanic or Latino, but cannot be both.',NULL,'v3 Code System Ethnicity',1,'ValueSet/v3-Ethnicity',NULL,'http://hl7.org/fhir/ValueSet/v3-Ethnicity',400);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (579,NULL,'2017-09-27 09:59:40.584000',NULL,NULL,' Code for the mechanism by which the exposure agent was exchanged or potentially exchanged by the participants involved in the exposure.',NULL,'v3 Code System ExposureMode',1,'ValueSet/v3-ExposureMode',NULL,'http://hl7.org/fhir/ValueSet/v3-ExposureMode',455);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (580,NULL,'2017-09-27 09:59:40.591000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System GenderStatus',1,'ValueSet/v3-GenderStatus',NULL,'http://hl7.org/fhir/ValueSet/v3-GenderStatus',456);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (581,NULL,'2017-09-27 09:59:40.613000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System GTSAbbreviation',1,'ValueSet/v3-GTSAbbreviation',NULL,'http://hl7.org/fhir/ValueSet/v3-GTSAbbreviation',302);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (582,NULL,'2017-09-27 09:59:40.647000',NULL,NULL,' Description: Coded concepts representing Binding Realms (used for Context Binding of terminology in HL7 models) and/or Namespace Realms (used to help ensure unique identification of HL7 artifacts). This code system is partitioned into three sections: Affiliate realms, Binding realms and Namespace realms. All affiliate realm codes may automatically be used as both binding realms and namespace realms. Furthermore, affiliate realms are the only realms that have authority over the creation of binding realms. (Note that ''affiliate'' includes the idea of both international affiliates and the HL7 International organization.) All other codes must be associated with an owning affiliate realm and must appear as a specialization of _BindingRealm or _NamespaceRealm. For affiliates whose concepts align with nations, the country codes from ISO 3166-1 2-character alpha are used for the code when possible so these codes should not be used for other realm types. It is recommended that binding realm and namespace codes submitted by affiliates use the realm code as a prefix to avoid possible collisions with ISO codes. However, tooling does not currently support namepace realm codes greater than 2 characters. Open Issue: The name of the concept property \"owningAffiliate\" should be changed to better reflect that the property value is the human readable name of the organizational entity that manages the Realm identified by the Realm Code. Open Issue: In spite of the inability of tooling to process codes longer than 2 characters, there is at least one realm codes (''SOA'') that was added that is 3 characters in length.',NULL,'v3 Code System hl7Realm',1,'ValueSet/v3-hl7Realm',NULL,'http://hl7.org/fhir/ValueSet/v3-hl7Realm',457);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (583,NULL,'2017-09-27 09:59:40.665000',NULL,NULL,' The possible modes of updating that occur when an attribute is received by a system that already contains values for that attribute.',NULL,'v3 Code System HL7UpdateMode',1,'ValueSet/v3-HL7UpdateMode',NULL,'http://hl7.org/fhir/ValueSet/v3-HL7UpdateMode',458);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (584,NULL,'2017-09-27 09:59:40.679000',NULL,NULL,' Description: Identifies allowed codes for HL7aTMs v3 conformance property.',NULL,'v3 Code System hl7V3Conformance',1,'ValueSet/v3-hl7V3Conformance',NULL,'http://hl7.org/fhir/ValueSet/v3-hl7V3Conformance',459);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (585,NULL,'2017-09-27 09:59:40.696000',NULL,NULL,' HtmlLinkType values are drawn from HTML 4.0 and describe the relationship between the current document and the anchor that is the target of the link',NULL,'v3 Code System HtmlLinkType',1,'ValueSet/v3-HtmlLinkType',NULL,'http://hl7.org/fhir/ValueSet/v3-HtmlLinkType',460);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (586,NULL,'2017-09-27 09:59:40.707000',NULL,NULL,' Specifies the reliability with which the identifier is known. This attribute MAY be used to assist with identifier matching algorithms.',NULL,'v3 Code System IdentifierReliability',1,'ValueSet/v3-IdentifierReliability',NULL,'http://hl7.org/fhir/ValueSet/v3-IdentifierReliability',461);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (587,NULL,'2017-09-27 09:59:40.725000',NULL,NULL,' Description: Codes to specify the scope in which the identifier applies to the object with which it is associated, and used in the datatype property II.',NULL,'v3 Code System IdentifierScope',1,'ValueSet/v3-IdentifierScope',NULL,'http://hl7.org/fhir/ValueSet/v3-IdentifierScope',462);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (588,NULL,'2017-09-27 09:59:40.738000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System IntegrityCheckAlgorithm',1,'ValueSet/v3-IntegrityCheckAlgorithm',NULL,'http://hl7.org/fhir/ValueSet/v3-IntegrityCheckAlgorithm',463);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (589,NULL,'2017-09-27 09:59:40.751000',NULL,NULL,' A value representing the method of expression of the language. Example: Expressed spoken, expressed written, expressed signed, received spoken, received written, received signed. OpenIssue: Description copied from Concept Domain of same name. Must be verified.',NULL,'v3 Code System LanguageAbilityMode',1,'ValueSet/v3-LanguageAbilityMode',NULL,'http://hl7.org/fhir/ValueSet/v3-LanguageAbilityMode',464);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (590,NULL,'2017-09-27 09:59:40.762000',NULL,NULL,' A value representing the level of proficiency in a language. Example: Excellent, good, fair, poor. OpenIssue: Description copied from Concept Domain of same name. Must be verified.',NULL,'v3 Code System LanguageAbilityProficiency',1,'ValueSet/v3-LanguageAbilityProficiency',NULL,'http://hl7.org/fhir/ValueSet/v3-LanguageAbilityProficiency',465);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (591,NULL,'2017-09-27 09:59:40.776000',NULL,NULL,' A code depicting the living arrangements of a person',NULL,'v3 Code System LivingArrangement',1,'ValueSet/v3-LivingArrangement',NULL,'http://hl7.org/fhir/ValueSet/v3-LivingArrangement',466);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (592,NULL,'2017-09-27 09:59:40.783000',NULL,NULL,' Tells a receiver to ignore just the local markup tags (local_markup, local_header, local_attr) when value=\"markup\", or to ignore the local markup tags and all contained content when value=\"all\"',NULL,'v3 Code System LocalMarkupIgnore',1,'ValueSet/v3-LocalMarkupIgnore',NULL,'http://hl7.org/fhir/ValueSet/v3-LocalMarkupIgnore',467);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (593,NULL,'2017-09-27 09:59:40.790000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System LocalRemoteControlState',1,'ValueSet/v3-LocalRemoteControlState',NULL,'http://hl7.org/fhir/ValueSet/v3-LocalRemoteControlState',468);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (594,NULL,'2017-09-27 09:59:40.800000',NULL,NULL,' Codes representing the defined possible states of a Managed Participation, as defined by the Managed Participation class state machine.',NULL,'v3 Code System ManagedParticipationStatus',1,'ValueSet/v3-ManagedParticipationStatus',NULL,'http://hl7.org/fhir/ValueSet/v3-ManagedParticipationStatus',469);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (595,NULL,'2017-09-27 09:59:40.807000',NULL,NULL,' The closeness or quality of the mapping between the HL7 concept (as represented by the HL7 concept identifier) and the source coding system. The values are patterned after the similar relationships used in the UMLS Metathesaurus. Because the HL7 coding sy',NULL,'v3 Code System MapRelationship',1,'ValueSet/v3-MapRelationship',NULL,'http://hl7.org/fhir/ValueSet/v3-MapRelationship',470);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (596,NULL,'2017-09-27 09:59:40.823000',NULL,NULL,' Indicates that the receiver has messages for the sender OpenIssue: Description does not make sense relative to name of coding system. Must be reviewed and improved.',NULL,'v3 Code System MessageWaitingPriority',1,'ValueSet/v3-MessageWaitingPriority',NULL,'http://hl7.org/fhir/ValueSet/v3-MessageWaitingPriority',471);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (597,NULL,'2017-09-27 09:59:40.830000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ModifyIndicator',1,'ValueSet/v3-ModifyIndicator',NULL,'http://hl7.org/fhir/ValueSet/v3-ModifyIndicator',472);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (598,NULL,'2017-09-27 09:59:40.848000',NULL,NULL,' A collection of codes specifying why a valid value is not present.',NULL,'v3 Code System NullFlavor',1,'ValueSet/v3-NullFlavor',NULL,'http://hl7.org/fhir/ValueSet/v3-NullFlavor',18);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (599,NULL,'2017-09-27 09:59:40.878000',NULL,NULL,' One or more codes specifying a rough qualitative interpretation of the observation, such as \"normal\", \"abnormal\", \"below normal\", \"change up\", \"resistant\", \"susceptible\", etc. OpenIssue: Description copied from Concept Domain of same name. Must be verified. Note also that this might be identical to the V2 code system of interpretation codes (formerly Abnormal Flags in older versions).',NULL,'v3 Code System ObservationInterpretation',1,'ValueSet/v3-ObservationInterpretation',NULL,'http://hl7.org/fhir/ValueSet/v3-ObservationInterpretation',473);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (600,NULL,'2017-09-27 09:59:40.965000',NULL,NULL,' A code that provides additional detail about the means or technique used to ascertain the observation. Examples: Blood pressure measurement method: arterial puncture vs. sphygmomanometer (Riva-Rocci), sitting vs. supine position, etc. OpenIssue: Description copied from Concept Domain of same name. Must be verified. Note that the Domain has a full discussion about use of the attribute and constraining that is not appropriate for the code system description. Needs to be improved.',NULL,'v3 Code System ObservationMethod',1,'ValueSet/v3-ObservationMethod',NULL,'http://hl7.org/fhir/ValueSet/v3-ObservationMethod',103);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (601,NULL,'2017-09-27 09:59:41.070000',NULL,NULL,' This domain is the root domain to which all HL7-recognized value sets for the Observation.value attribute will be linked when Observation.value has a coded data type. OpenIssue: Description copied from Concept Domain of same name. Must be corrected..',NULL,'v3 Code System ObservationValue',1,'ValueSet/v3-ObservationValue',NULL,'http://hl7.org/fhir/ValueSet/v3-ObservationValue',474);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (602,NULL,'2017-09-27 09:59:41.185000',NULL,NULL,' OpenIssue: Missing description.',NULL,'v3 Code System orderableDrugForm',1,'ValueSet/v3-orderableDrugForm',NULL,'http://hl7.org/fhir/ValueSet/v3-orderableDrugForm',475);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (603,NULL,'2017-09-27 09:59:41.229000',NULL,NULL,' This code is used to specify the exact function an actor had in a service in all necessary detail. This domain may include local extensions (CWE).',NULL,'v3 Code System ParticipationFunction',1,'ValueSet/v3-ParticipationFunction',NULL,'http://hl7.org/fhir/ValueSet/v3-ParticipationFunction',476);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (604,NULL,'2017-09-27 09:59:41.251000',NULL,NULL,' A set of codes specifying the modality by which the Entity playing the Role is participating in the Act. Examples: Physically present, over the telephone, written communication. Rationale: Particularly for author (originator) participants this is used to specify whether the information represented by the act was initially provided verbally, (hand-)written, or electronically. Open Issue: There needs to be a reexamination of the hierarchies as there seems to be some muddling between ELECTRONIC and other concepts that involve electronic communication that are in other hierarchies.',NULL,'v3 Code System ParticipationMode',1,'ValueSet/v3-ParticipationMode',NULL,'http://hl7.org/fhir/ValueSet/v3-ParticipationMode',477);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (605,NULL,'2017-09-27 09:59:41.262000',NULL,NULL,' A set of codes specifying whether and how the participant has attested his participation through a signature and or whether such a signature is needed. Examples: A surgical Procedure act object (representing a procedure report) requires a signature of the performing and responsible surgeon, and possibly other participants. (See also: Participation.signatureText.)',NULL,'v3 Code System ParticipationSignature',1,'ValueSet/v3-ParticipationSignature',NULL,'http://hl7.org/fhir/ValueSet/v3-ParticipationSignature',478);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (606,NULL,'2017-09-27 09:59:41.301000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ParticipationType',1,'ValueSet/v3-ParticipationType',NULL,'http://hl7.org/fhir/ValueSet/v3-ParticipationType',314);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (607,NULL,'2017-09-27 09:59:41.311000',NULL,NULL,' Patient VIP code',NULL,'v3 Code System PatientImportance',1,'ValueSet/v3-PatientImportance',NULL,'http://hl7.org/fhir/ValueSet/v3-PatientImportance',479);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (608,NULL,'2017-09-27 09:59:41.319000',NULL,NULL,' Describes payment terms for a financial transaction, used in an invoice. This is typically expressed as a responsibility of the acceptor or payor of an invoice.',NULL,'v3 Code System PaymentTerms',1,'ValueSet/v3-PaymentTerms',NULL,'http://hl7.org/fhir/ValueSet/v3-PaymentTerms',480);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (609,NULL,'2017-09-27 09:59:41.330000',NULL,NULL,' A code identifying a person''s disability.',NULL,'v3 Code System PersonDisabilityType',1,'ValueSet/v3-PersonDisabilityType',NULL,'http://hl7.org/fhir/ValueSet/v3-PersonDisabilityType',481);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (610,NULL,'2017-09-27 09:59:41.338000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ProbabilityDistributionType',1,'ValueSet/v3-ProbabilityDistributionType',NULL,'http://hl7.org/fhir/ValueSet/v3-ProbabilityDistributionType',128);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (611,NULL,'2017-09-27 09:59:41.347000',NULL,NULL,' Codes used to specify whether a message is part of a production, training, or debugging system.',NULL,'v3 Code System ProcessingID',1,'ValueSet/v3-ProcessingID',NULL,'http://hl7.org/fhir/ValueSet/v3-ProcessingID',482);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (612,NULL,'2017-09-27 09:59:41.357000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System ProcessingMode',1,'ValueSet/v3-ProcessingMode',NULL,'http://hl7.org/fhir/ValueSet/v3-ProcessingMode',483);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (613,NULL,'2017-09-27 09:59:41.372000',NULL,NULL,' The domain of coded values used as parameters within QueryByParameter queries.',NULL,'v3 Code System QueryParameterValue',1,'ValueSet/v3-QueryParameterValue',NULL,'http://hl7.org/fhir/ValueSet/v3-QueryParameterValue',484);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (614,NULL,'2017-09-27 09:59:41.379000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System QueryPriority',1,'ValueSet/v3-QueryPriority',NULL,'http://hl7.org/fhir/ValueSet/v3-QueryPriority',485);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (615,NULL,'2017-09-27 09:59:41.387000',NULL,NULL,' Definition: Defines the units associated with the magnitude of the maximum size limit of a query response that can be accepted by the requesting application.',NULL,'v3 Code System QueryRequestLimit',1,'ValueSet/v3-QueryRequestLimit',NULL,'http://hl7.org/fhir/ValueSet/v3-QueryRequestLimit',486);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (616,NULL,'2017-09-27 09:59:41.395000',NULL,NULL,' A code classifying the general nature of the response to a given query. Includes whether or not data was found, or whether an error occurred.',NULL,'v3 Code System QueryResponse',1,'ValueSet/v3-QueryResponse',NULL,'http://hl7.org/fhir/ValueSet/v3-QueryResponse',487);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (617,NULL,'2017-09-27 09:59:41.403000',NULL,NULL,' A code specifying the state of the Query.',NULL,'v3 Code System QueryStatusCode',1,'ValueSet/v3-QueryStatusCode',NULL,'http://hl7.org/fhir/ValueSet/v3-QueryStatusCode',488);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (618,NULL,'2017-09-27 09:59:41.915000',NULL,NULL,' In the United States, federal standards for classifying data on race determine the categories used by federal agencies and exert a strong influence on categorization by state and local agencies and private sector organizations. The federal standards do not conceptually define race, and they recognize the absence of an anthropological or scientific basis for racial classification. Instead, the federal standards acknowledge that race is a social-political construct in which an individual''s own identification with one more race categories is preferred to observer identification. The standards use a variety of features to define five minimum race categories. Among these features are descent from \"the original peoples\" of a specified region or nation. The minimum race categories are American Indian or Alaska Native, Asian, Black or African American, Native Hawaiian or Other Pacific Islander, and White. The federal standards stipulate that race data need not be limited to the five minimum categories, but any expansion must be collapsible to those categories.',NULL,'v3 Code System Race',1,'ValueSet/v3-Race',NULL,'http://hl7.org/fhir/ValueSet/v3-Race',378);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (619,NULL,'2017-09-27 09:59:41.933000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System RelationalOperator',1,'ValueSet/v3-RelationalOperator',NULL,'http://hl7.org/fhir/ValueSet/v3-RelationalOperator',489);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (620,NULL,'2017-09-27 09:59:41.940000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System RelationshipConjunction',1,'ValueSet/v3-RelationshipConjunction',NULL,'http://hl7.org/fhir/ValueSet/v3-RelationshipConjunction',490);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (621,NULL,'2017-09-27 09:59:41.973000',NULL,NULL,' Assigment of spiritual faith affiliation',NULL,'v3 Code System ReligiousAffiliation',1,'ValueSet/v3-ReligiousAffiliation',NULL,'http://hl7.org/fhir/ValueSet/v3-ReligiousAffiliation',491);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (622,NULL,'2017-09-27 09:59:41.982000',NULL,NULL,' Specifies whether a response is expected from the addressee of this interaction and what level of detail that response should include',NULL,'v3 Code System ResponseLevel',1,'ValueSet/v3-ResponseLevel',NULL,'http://hl7.org/fhir/ValueSet/v3-ResponseLevel',492);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (623,NULL,'2017-09-27 09:59:41.990000',NULL,NULL,' Defines the timing and grouping of the response instances. OpenIssue: Description copied from Concept Domain of same name. Must be verified.',NULL,'v3 Code System ResponseModality',1,'ValueSet/v3-ResponseModality',NULL,'http://hl7.org/fhir/ValueSet/v3-ResponseModality',493);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (624,NULL,'2017-09-27 09:59:41.998000',NULL,NULL,' Specifies the mode, immediate versus deferred or queued, by which a receiver should communicate its receiver responsibilities.',NULL,'v3 Code System ResponseMode',1,'ValueSet/v3-ResponseMode',NULL,'http://hl7.org/fhir/ValueSet/v3-ResponseMode',494);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (625,NULL,'2017-09-27 09:59:42.062000',NULL,NULL,' Codes for the Role class hierarchy. The values in this hierarchy, represent a Role which is an association or relationship between two entities - the entity that plays the role and the entity that scopes the role. Roles names are derived from the name of the playing entity in that role. The role hierarchy stems from three core concepts, or abstract domains: RoleClassOntological is an abstract domain that collects roles in which the playing entity is defined or specified by the scoping entity. RoleClassPartitive collects roles in which the playing entity is in some sense a \"part\" of the scoping entity. RoleClassAssociative collects all of the remaining forms of association between the playing entity and the scoping entity. This set of roles is further partitioned between: RoleClassPassive which are roles in which the playing entity is used, known, treated, handled, built, or destroyed, etc. under the auspices of the scoping entity. The playing entity is passive in these roles in that the role exists without an agreement from the playing entity. RoleClassMutualRelationship which are relationships based on mutual behavior of the two entities. The basis of these relationship may be formal agreements or they may bede facto behavior. Thus, this sub-domain is further divided into: RoleClassRelationshipFormal in which the relationship is formally defined, frequently by a contract or agreement. Personal relationship which inks two people in a personal relationship. The hierarchy discussed above is represented In the current vocabulary tables as a set of abstract domains, with the exception of the \"Personal relationship\" which is a leaf concept. OpenIssue: Description copied from Concept Domain of same name. Must be verified.',NULL,'v3 Code System RoleClass',1,'ValueSet/v3-RoleClass',NULL,'http://hl7.org/fhir/ValueSet/v3-RoleClass',495);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (626,NULL,'2017-09-27 09:59:42.411000',NULL,NULL,' Description: Codes representing possible states of a RoleLink, as defined by the RoleLink class state machine.',NULL,'v3 Code System RoleLinkStatus',1,'ValueSet/v3-RoleLinkStatus',NULL,'http://hl7.org/fhir/ValueSet/v3-RoleLinkStatus',496);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (627,NULL,'2017-09-27 09:59:42.426000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System RoleLinkType',1,'ValueSet/v3-RoleLinkType',NULL,'http://hl7.org/fhir/ValueSet/v3-RoleLinkType',497);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (628,NULL,'2017-09-27 09:59:42.439000',NULL,NULL,' Codes representing the defined possible states of an Role, as defined by the Role class state machine.',NULL,'v3 Code System RoleStatus',1,'ValueSet/v3-RoleStatus',NULL,'http://hl7.org/fhir/ValueSet/v3-RoleStatus',498);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (629,NULL,'2017-09-27 09:59:42.711000',NULL,NULL,' The path the administered medication takes to get into the body or into contact with the body.',NULL,'v3 Code System RouteOfAdministration',1,'ValueSet/v3-RouteOfAdministration',NULL,'http://hl7.org/fhir/ValueSet/v3-RouteOfAdministration',164);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (630,NULL,'2017-09-27 09:59:42.727000',NULL,NULL,' Specifies sequence of sort order.',NULL,'v3 Code System Sequencing',1,'ValueSet/v3-Sequencing',NULL,'http://hl7.org/fhir/ValueSet/v3-Sequencing',499);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (631,NULL,'2017-09-27 09:59:42.742000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System SetOperator',1,'ValueSet/v3-SetOperator',NULL,'http://hl7.org/fhir/ValueSet/v3-SetOperator',500);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (632,NULL,'2017-09-27 09:59:42.826000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System SpecimenType',1,'ValueSet/v3-SpecimenType',NULL,'http://hl7.org/fhir/ValueSet/v3-SpecimenType',501);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (633,NULL,'2017-09-27 09:59:42.841000',NULL,NULL,' Identifies what sort of change is permitted or has occurred between the therapy that was ordered and the therapy that was/will be provided.',NULL,'v3 Code System substanceAdminSubstitution',1,'ValueSet/v3-substanceAdminSubstitution',NULL,'http://hl7.org/fhir/ValueSet/v3-substanceAdminSubstitution',502);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (634,NULL,'2017-09-27 09:59:42.853000',NULL,NULL,' Identifies what sort of change is permitted or has occurred between the item that was ordered/requested and the one that was/will be provided.',NULL,'v3 Code System SubstitutionCondition',1,'ValueSet/v3-SubstitutionCondition',NULL,'http://hl7.org/fhir/ValueSet/v3-SubstitutionCondition',503);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (635,NULL,'2017-09-27 09:59:42.865000',NULL,NULL,' These values are defined within the XHTML 4.0 Table Model',NULL,'v3 Code System TableCellHorizontalAlign',1,'ValueSet/v3-TableCellHorizontalAlign',NULL,'http://hl7.org/fhir/ValueSet/v3-TableCellHorizontalAlign',504);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (636,NULL,'2017-09-27 09:59:42.876000',NULL,NULL,' These values are defined within the XHTML 4.0 Table Model',NULL,'v3 Code System TableCellScope',1,'ValueSet/v3-TableCellScope',NULL,'http://hl7.org/fhir/ValueSet/v3-TableCellScope',505);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (637,NULL,'2017-09-27 09:59:42.886000',NULL,NULL,' These values are defined within the XHTML 4.0 Table Model',NULL,'v3 Code System TableCellVerticalAlign',1,'ValueSet/v3-TableCellVerticalAlign',NULL,'http://hl7.org/fhir/ValueSet/v3-TableCellVerticalAlign',506);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (638,NULL,'2017-09-27 09:59:42.896000',NULL,NULL,' These values are defined within the XHTML 4.0 Table Model',NULL,'v3 Code System TableFrame',1,'ValueSet/v3-TableFrame',NULL,'http://hl7.org/fhir/ValueSet/v3-TableFrame',507);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (639,NULL,'2017-09-27 09:59:42.907000',NULL,NULL,' These values are defined within the XHTML 4.0 Table Model',NULL,'v3 Code System TableRules',1,'ValueSet/v3-TableRules',NULL,'http://hl7.org/fhir/ValueSet/v3-TableRules',508);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (640,NULL,'2017-09-27 09:59:42.918000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System TargetAwareness',1,'ValueSet/v3-TargetAwareness',NULL,'http://hl7.org/fhir/ValueSet/v3-TargetAwareness',509);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (641,NULL,'2017-09-27 09:59:42.929000',NULL,NULL,' Description: Concepts that define the telecommunication capabilities of a particular device. Used to identify the expected capabilities to be found at a particular telecommunication address.',NULL,'v3 Code System TelecommunicationCapabilities',1,'ValueSet/v3-TelecommunicationCapabilities',NULL,'http://hl7.org/fhir/ValueSet/v3-TelecommunicationCapabilities',510);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (642,NULL,'2017-09-27 09:59:42.946000',NULL,NULL,'**** MISSING DEFINITIONS ****',NULL,'v3 Code System TimingEvent',1,'ValueSet/v3-TimingEvent',NULL,'http://hl7.org/fhir/ValueSet/v3-TimingEvent',316);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (643,NULL,'2017-09-27 09:59:42.956000',NULL,NULL,' Description: A code specifying the meaning and purpose of every TransmissionRelationship instance. Each of its values implies specific constraints to what kinds of Transmission objects can be related and in which way.',NULL,'v3 Code System TransmissionRelationshipTypeCode',1,'ValueSet/v3-TransmissionRelationshipTypeCode',NULL,'http://hl7.org/fhir/ValueSet/v3-TransmissionRelationshipTypeCode',511);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (644,NULL,'2017-09-27 09:59:43.334000',NULL,NULL,' INDIAN ENTITIES RECOGNIZED AND ELIGIBLE TO RECEIVE SERVICES FROM THE UNITED STATES BUREAU OF INDIAN AFFAIRS',NULL,'v3 Code System TribalEntityUS',1,'ValueSet/v3-TribalEntityUS',NULL,'http://hl7.org/fhir/ValueSet/v3-TribalEntityUS',512);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (645,NULL,'2017-09-27 09:59:43.366000',NULL,NULL,' The manufacturer of a vaccine.',NULL,'v3 Code System VaccineManufacturer',1,'ValueSet/v3-VaccineManufacturer',NULL,'http://hl7.org/fhir/ValueSet/v3-VaccineManufacturer',513);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (646,NULL,'2017-09-27 09:59:43.373000',NULL,NULL,' Identifies types of dispensing events',NULL,'ActPharmacySupplyType',1,'ValueSet/v3-ActPharmacySupplyType',NULL,'http://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (647,NULL,'2017-09-27 09:59:43.418000',NULL,NULL,' Identifies the kinds of observations that can be performed',NULL,'ObservationType',1,'ValueSet/v3-ObservationType',NULL,'http://hl7.org/fhir/ValueSet/v3-ObservationType',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (648,NULL,'2017-09-27 09:59:43.461000',NULL,NULL,' Set of codes indicating the type of incident or accident.',NULL,'ActIncidentCode',1,'ValueSet/v3-ActIncidentCode',NULL,'http://hl7.org/fhir/ValueSet/v3-ActIncidentCode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (649,NULL,'2017-09-27 09:59:43.495000',NULL,NULL,'No Description Provided',NULL,'ActSubstanceAdminSubstitutionCode',1,'ValueSet/v3-ActSubstanceAdminSubstitutionCode',NULL,'http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (650,NULL,'2017-09-27 09:59:43.515000',NULL,NULL,' Potential values for observations of severity.',NULL,'SeverityObservation',1,'ValueSet/v3-SeverityObservation',NULL,'http://hl7.org/fhir/ValueSet/v3-SeverityObservation',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (651,NULL,'2017-09-27 09:59:43.641000',NULL,NULL,' Description: Used to enumerate the typical confidentiality constraints placed upon a clinical document. Usage Note: x_BasicConfidentialityKind is a subset of Confidentiality codes that are used as metadata indicating the receiver responsibility to comply with normally applicable jurisdictional privacy law or disclosure authorization; that the receiver may not disclose this information except as directed by the information custodian, who may be the information subject; or that the receiver may not disclose this information except as directed by the information custodian, who may be the information subject.',NULL,'x_BasicConfidentialityKind',1,'ValueSet/v3-xBasicConfidentialityKind',NULL,'http://hl7.org/fhir/ValueSet/v3-xBasicConfidentialityKind',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (652,NULL,'2017-09-27 09:59:43.673000',NULL,NULL,' A role of a place that further classifies the setting (e.g. accident site, road side, work site, community location) in which services are delivered.',NULL,'ServiceDeliveryLocationRoleType',1,'ValueSet/v3-ServiceDeliveryLocationRoleType',NULL,'http://hl7.org/fhir/ValueSet/v3-ServiceDeliveryLocationRoleType',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (653,NULL,'2017-09-27 09:59:43.697000',NULL,NULL,' Definition: A person playing the role of program eligible under a program based on military status. Discussion: This CoveredPartyRoleType.code is typically used when the CoveredPartyRole class code is either \"program eligible\" or \"subscriber\" and the person''s status as a member of the military meets jurisdictional or program criteria',NULL,'MilitaryRoleType',1,'ValueSet/v3-MilitaryRoleType',NULL,'http://hl7.org/fhir/ValueSet/v3-MilitaryRoleType',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (654,NULL,'2017-09-27 09:59:43.720000',NULL,NULL,' An formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event. This investigation could be conducted at a local institutional level or at the level of a local or national government.',NULL,'ActClassInvestigation',1,'ValueSet/v3-ActClassInvestigation',NULL,'http://hl7.org/fhir/ValueSet/v3-ActClassInvestigation',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (655,NULL,'2017-09-27 09:59:43.744000',NULL,NULL,'No Description Provided',NULL,'SubstanceAdminSubstitutionReason',1,'ValueSet/v3-SubstanceAdminSubstitutionReason',NULL,'http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (656,NULL,'2017-09-27 09:59:43.764000',NULL,NULL,' Type of invoice element that is used to assist in describing an Invoice that is either submitted for adjudication or for which is returned on adjudication results. Invoice elements of this type signify a grouping of one or more children (detail) invoice elements. They do not have intrinsic costing associated with them, but merely reflect the sum of all costing for it''s immediate children invoice elements.',NULL,'ActInvoiceGroupCode',1,'ValueSet/v3-ActInvoiceGroupCode',NULL,'http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (657,NULL,'2017-09-27 09:59:43.804000',NULL,NULL,' Types of personal relationships between two living subjects. Example: Parent, sibling, unrelated friend, neighbor',NULL,'PersonalRelationshipRoleType',1,'ValueSet/v3-PersonalRelationshipRoleType',NULL,'http://hl7.org/fhir/ValueSet/v3-PersonalRelationshipRoleType',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (658,NULL,'2017-09-27 09:59:43.823000',NULL,NULL,' A relationship between two people characterizing their \"familial\" relationship',NULL,'FamilyMember',1,'ValueSet/v3-FamilyMember',NULL,'http://hl7.org/fhir/ValueSet/v3-FamilyMember',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (659,NULL,'2017-09-27 09:59:43.839000',NULL,NULL,'No Description Provided',NULL,'VerificationMethod',1,'ValueSet/v3-VerificationMethod',NULL,'http://hl7.org/fhir/ValueSet/v3-VerificationMethod',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (660,NULL,'2017-09-27 09:59:43.851000',NULL,NULL,' Definition: Set of codes indicating the type of insurance policy or program that pays for the cost of benefits provided to covered parties.',NULL,'ActCoverageTypeCode',1,'ValueSet/v3-ActCoverageTypeCode',NULL,'http://hl7.org/fhir/ValueSet/v3-ActCoverageTypeCode',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (661,NULL,'2017-09-27 09:59:43.877000',NULL,NULL,' Definition: The type of consent directive, e.g. to consent or dissent to collect, access, or use in specific ways within an EHRS or for health information exchange; or to disclose health information for purposes such as research.',NULL,'ActConsentType',1,'ValueSet/v3-ActConsentType',NULL,'http://hl7.org/fhir/ValueSet/v3-ActConsentType',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (662,NULL,'2017-09-27 09:59:43.899000',NULL,NULL,' Sensitivity codes are not useful for interoperability outside of a policy domain because sensitivity policies are typically localized and vary drastically across policy domains even for the same information category because of differing organizational business rules, security policies, and jurisdictional requirements. For example, an \"employee\" sensitivity code would make little sense for use outside of a policy domain. \"Taboo\" would rarely be useful outside of a policy domain unless there are jurisdictional requirements requiring that a provider disclose sensitive information to a patient directly. Sensitivity codes may be more appropriate in a legacy system''s Master Files in order to notify those who access a patient''s orders and observations about the sensitivity policies that apply. Newer systems may have a security engine that uses a sensitivity policy''s criteria directly. The specializable Sensitivity Act.code may be useful in some scenarious if used in combination with a sensitivity identifier and/or Act.title.',NULL,'InformationSensitivityPolicy',1,'ValueSet/v3-InformationSensitivityPolicy',NULL,'http://hl7.org/fhir/ValueSet/v3-InformationSensitivityPolicy',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (663,NULL,'2017-09-27 09:59:43.921000',NULL,NULL,' Types of security policies that further specify the ActClassPolicy value set. Examples: encrypt prohibit redisclosure without consent directive',NULL,'SecurityPolicy',1,'ValueSet/v3-SecurityPolicy',NULL,'http://hl7.org/fhir/ValueSet/v3-SecurityPolicy',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (664,NULL,'2017-09-27 09:59:43.943000',NULL,NULL,' Conveys the mandated workflow action that an information custodian, receiver, or user must perform. Examples: encrypt Usage Note: Per OASIS XACML, an obligation is an operation specified in a policy or policy that is performed in conjunction with the enforcement of an access control decision.',NULL,'ObligationPolicy',1,'ValueSet/v3-ObligationPolicy',NULL,'http://hl7.org/fhir/ValueSet/v3-ObligationPolicy',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (665,NULL,'2017-09-27 09:59:43.966000',NULL,NULL,' Conveys prohibited actions which an information custodian, receiver, or user is not permitted to perform unless otherwise authorized or permitted under specified circumstances. Examples: prohibit redisclosure without consent directive',NULL,'RefrainPolicy',1,'ValueSet/v3-RefrainPolicy',NULL,'http://hl7.org/fhir/ValueSet/v3-RefrainPolicy',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (666,NULL,'2017-09-27 09:59:43.988000',NULL,NULL,' Supports communication of purpose of use at a general level.',NULL,'PurposeOfUse',1,'ValueSet/v3-PurposeOfUse',NULL,'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (667,NULL,'2017-09-27 09:59:43.999000',NULL,NULL,' Supports communication of purpose of use at a general level.',NULL,'GeneralPurposeOfUse',1,'ValueSet/v3-GeneralPurposeOfUse',NULL,'http://hl7.org/fhir/ValueSet/v3-GeneralPurposeOfUse',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (668,NULL,'2017-09-27 09:59:44.012000',NULL,NULL,' Security observation values used to indicate security control metadata. V:SecurityControl is the union of V:SecurityPolicy,V:ObligationPolicy, V:RefrainPolicy, V:PurposeOfUse, and V:GeneralPurpose of Use used to populate the SecurityControlObservationValue attribute in order to convey one or more nonhierarchical security control metadata dictating handling caveats, purpose of use, dissemination controls and other refrain policies, and obligations to which a custodian or receiver is required to comply.',NULL,'SecurityControlObservationValue',1,'ValueSet/v3-SecurityControlObservationValue',NULL,'http://hl7.org/fhir/ValueSet/v3-SecurityControlObservationValue',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (669,NULL,'2017-09-27 09:59:44.018000',NULL,NULL,' A named tag set for metadata used to populate a security category label field that \"segments\" an IT resource per policy by indicating that access and use is restricted to members of a defined community or project. (HL7 Healthcare Privacy and Security Classification System) Usage Note: This is the healthcare analog to the US Intelligence Community''s concept of a Special Access Program. Compartment codes may be used in as a field value in an initiator''s clearance to indicate permission to access and use an IT Resource with a security label having the same compartment value in security category label field. Map: Aligns with ISO 2382-8 definition of Compartment - \"A division of data into isolated blocks with separate security controls for the purpose of reducing risk.\"',NULL,'Compartment',1,'ValueSet/v3-Compartment',NULL,'http://hl7.org/fhir/ValueSet/v3-Compartment',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (670,NULL,'2017-09-27 09:59:44.040000',NULL,NULL,'No Description Provided',NULL,'SecurityIntegrityObservationValue',1,'ValueSet/v3-SecurityIntegrityObservationValue',NULL,'http://hl7.org/fhir/ValueSet/v3-SecurityIntegrityObservationValue',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (671,NULL,'2017-09-27 09:59:44.050000',NULL,NULL,' Specifies the state change of a target Act, using ActStatus codes, from its previous state as a predecessor Act. For example, if the target Act is the result of a predecessor Act being \"obsoleted\" and replaced with the target Act, the source ProvenanceEventCurrentState Act code would be \"obsoleted\".',NULL,'ProvenanceEventCurrentState-AS',1,'ValueSet/v3-ProvenanceEventCurrentState-AS',NULL,'http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState-AS',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (672,NULL,'2017-09-27 09:59:44.059000',NULL,NULL,' Specifies the state change of a target Act using DocuymentCompletion codes, from its previous state as a predecessor Act. For example, if the target Act is the result of a predecessor Act being \"obsoleted\" and replaced with the target Act, the source ProvenanceEventCurrentState Act code would be \"obsoleted\".',NULL,'ProvenanceEventCurrentState-DC',1,'ValueSet/v3-ProvenanceEventCurrentState-DC',NULL,'http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState-DC',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (673,NULL,'2017-09-27 09:59:44.067000',NULL,NULL,' Specifies the state change of a target Act, such as a document or an entry, from its previous state as a predecessor Act. For example, if the target Act is the result of a predecessor Act being \"obsoleted\" and replaced with the target Act, the source ProvenanceEventCurrentState Act code would be \"obsoleted\".',NULL,'ProvenanceEventCurrentState',1,'ValueSet/v3-ProvenanceEventCurrentState',NULL,'http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (674,NULL,'2017-09-27 09:59:44.219000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0001 ( Administrative Sex)',NULL,'v2 Administrative Sex',1,'ValueSet/v2-0001',NULL,'http://hl7.org/fhir/ValueSet/v2-0001',514);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (675,NULL,'2017-09-27 09:59:44.239000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0002 ( Marital Status)',NULL,'v2 Marital Status',1,'ValueSet/v2-0002',NULL,'http://hl7.org/fhir/ValueSet/v2-0002',515);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (676,NULL,'2017-09-27 09:59:44.400000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0003 ( Event Type)',NULL,'v2 Event Type',1,'ValueSet/v2-0003',NULL,'http://hl7.org/fhir/ValueSet/v2-0003',516);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (677,NULL,'2017-09-27 09:59:44.413000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0004 ( Patient Class)',NULL,'v2 Patient Class',1,'ValueSet/v2-0004',NULL,'http://hl7.org/fhir/ValueSet/v2-0004',517);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (678,NULL,'2017-09-27 09:59:44.419000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0005 ( Race)',NULL,'v2 Race',1,'ValueSet/v2-0005',NULL,'http://hl7.org/fhir/ValueSet/v2-0005',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (679,NULL,'2017-09-27 09:59:44.448000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0006 ver 2.1 ( RELIGION)',NULL,'v2 table 0006, Version 2.1',1,'ValueSet/v2-2.1-0006',NULL,'http://hl7.org/fhir/ValueSet/v2-2.1-0006',518);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (680,NULL,'2017-09-27 09:59:44.484000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0006 ver 2.8.2 ( Religion)',NULL,'v2 table 0006, Version 2.4',1,'ValueSet/v2-2.4-0006',NULL,'http://hl7.org/fhir/ValueSet/v2-2.4-0006',519);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (681,NULL,'2017-09-27 09:59:44.493000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0007 ( Admission Type)',NULL,'v2 Admission Type',1,'ValueSet/v2-0007',NULL,'http://hl7.org/fhir/ValueSet/v2-0007',520);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (682,NULL,'2017-09-27 09:59:44.503000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0008 ( Acknowledgment code)',NULL,'v2 Acknowledgment code',1,'ValueSet/v2-0008',NULL,'http://hl7.org/fhir/ValueSet/v2-0008',521);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (683,NULL,'2017-09-27 09:59:44.516000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0009 ( Ambulatory Status)',NULL,'v2 Ambulatory Status',1,'ValueSet/v2-0009',NULL,'http://hl7.org/fhir/ValueSet/v2-0009',522);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (684,NULL,'2017-09-27 09:59:44.524000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0012 ( STOCK LOCATION)',NULL,'v2 STOCK LOCATION',1,'ValueSet/v2-0012',NULL,'http://hl7.org/fhir/ValueSet/v2-0012',523);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (685,NULL,'2017-09-27 09:59:44.535000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0017 ( Transaction Type)',NULL,'v2 Transaction Type',1,'ValueSet/v2-0017',NULL,'http://hl7.org/fhir/ValueSet/v2-0017',524);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (686,NULL,'2017-09-27 09:59:44.547000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0023 ( Admit Source)',NULL,'v2 Admit Source',1,'ValueSet/v2-0023',NULL,'http://hl7.org/fhir/ValueSet/v2-0023',525);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (687,NULL,'2017-09-27 09:59:44.563000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0027 ( Priority)',NULL,'v2 Priority',1,'ValueSet/v2-0027',NULL,'http://hl7.org/fhir/ValueSet/v2-0027',526);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (688,NULL,'2017-09-27 09:59:44.582000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0033 ( ROUTE)',NULL,'v2 ROUTE',1,'ValueSet/v2-0033',NULL,'http://hl7.org/fhir/ValueSet/v2-0033',527);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (689,NULL,'2017-09-27 09:59:44.590000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0034 ( SITE ADMINISTERED)',NULL,'v2 SITE ADMINISTERED',1,'ValueSet/v2-0034',NULL,'http://hl7.org/fhir/ValueSet/v2-0034',528);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (690,NULL,'2017-09-27 09:59:44.600000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0038 ( Order status)',NULL,'v2 Order status',1,'ValueSet/v2-0038',NULL,'http://hl7.org/fhir/ValueSet/v2-0038',529);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (691,NULL,'2017-09-27 09:59:44.628000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0043 ( Condition Code)',NULL,'v2 Condition Code',1,'ValueSet/v2-0043',NULL,'http://hl7.org/fhir/ValueSet/v2-0043',530);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (692,NULL,'2017-09-27 09:59:44.648000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0048 ( What subject filter)',NULL,'v2 What subject filter',1,'ValueSet/v2-0048',NULL,'http://hl7.org/fhir/ValueSet/v2-0048',531);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (693,NULL,'2017-09-27 09:59:44.656000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0052 ( Diagnosis Type)',NULL,'v2 Diagnosis Type',1,'ValueSet/v2-0052',NULL,'http://hl7.org/fhir/ValueSet/v2-0052',532);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (694,NULL,'2017-09-27 09:59:44.665000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0061 ( Check Digit Scheme)',NULL,'v2 Check Digit Scheme',1,'ValueSet/v2-0061',NULL,'http://hl7.org/fhir/ValueSet/v2-0061',533);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (695,NULL,'2017-09-27 09:59:44.674000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0062 ( Event Reason)',NULL,'v2 Event Reason',1,'ValueSet/v2-0062',NULL,'http://hl7.org/fhir/ValueSet/v2-0062',534);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (696,NULL,'2017-09-27 09:59:44.695000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0063 ( Relationship)',NULL,'v2 Relationship',1,'ValueSet/v2-0063',NULL,'http://hl7.org/fhir/ValueSet/v2-0063',535);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (697,NULL,'2017-09-27 09:59:44.706000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0065 ( Specimen Action Code)',NULL,'v2 Specimen Action Code',1,'ValueSet/v2-0065',NULL,'http://hl7.org/fhir/ValueSet/v2-0065',536);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (698,NULL,'2017-09-27 09:59:44.720000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0066 ( Employment Status)',NULL,'v2 Employment Status',1,'ValueSet/v2-0066',NULL,'http://hl7.org/fhir/ValueSet/v2-0066',537);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (699,NULL,'2017-09-27 09:59:44.736000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0069 ( Hospital Service)',NULL,'v2 Hospital Service',1,'ValueSet/v2-0069',NULL,'http://hl7.org/fhir/ValueSet/v2-0069',538);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (700,NULL,'2017-09-27 09:59:44.798000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0070 ( Specimen Source Codes)',NULL,'v2 Specimen Source Codes',1,'ValueSet/v2-0070',NULL,'http://hl7.org/fhir/ValueSet/v2-0070',539);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (701,NULL,'2017-09-27 09:59:44.823000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0074 ( Diagnostic Service Section ID)',NULL,'v2 Diagnostic Service Section ID',1,'ValueSet/v2-0074',NULL,'http://hl7.org/fhir/ValueSet/v2-0074',331);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (702,NULL,'2017-09-27 09:59:44.894000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0076 ( Message Type)',NULL,'v2 Message Type',1,'ValueSet/v2-0076',NULL,'http://hl7.org/fhir/ValueSet/v2-0076',540);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (703,NULL,'2017-09-27 09:59:44.916000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0078 ( Interpretation Codes)',NULL,'v2 Interpretation Codes',1,'ValueSet/v2-0078',NULL,'http://hl7.org/fhir/ValueSet/v2-0078',205);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (704,NULL,'2017-09-27 09:59:44.925000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0080 ( Nature of Abnormal Testing)',NULL,'v2 Nature of Abnormal Testing',1,'ValueSet/v2-0080',NULL,'http://hl7.org/fhir/ValueSet/v2-0080',541);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (705,NULL,'2017-09-27 09:59:44.933000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0083 ( Outlier Type)',NULL,'v2 Outlier Type',1,'ValueSet/v2-0083',NULL,'http://hl7.org/fhir/ValueSet/v2-0083',542);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (706,NULL,'2017-09-27 09:59:44.944000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0085 ( Observation Result Status Codes Interpretation)',NULL,'v2 Observation Result Status Codes Interpretation',1,'ValueSet/v2-0085',NULL,'http://hl7.org/fhir/ValueSet/v2-0085',543);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (707,NULL,'2017-09-27 09:59:44.951000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0091 ( Query Priority)',NULL,'v2 Query Priority',1,'ValueSet/v2-0091',NULL,'http://hl7.org/fhir/ValueSet/v2-0091',544);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (708,NULL,'2017-09-27 09:59:44.957000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0092 ( Re-Admission Indicator)',NULL,'v2 Re-Admission Indicator',1,'ValueSet/v2-0092',NULL,'http://hl7.org/fhir/ValueSet/v2-0092',545);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (709,NULL,'2017-09-27 09:59:44.965000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0098 ( Type of Agreement)',NULL,'v2 Type of Agreement',1,'ValueSet/v2-0098',NULL,'http://hl7.org/fhir/ValueSet/v2-0098',546);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (710,NULL,'2017-09-27 09:59:44.973000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0100 ( Invocation event)',NULL,'v2 Invocation event',1,'ValueSet/v2-0100',NULL,'http://hl7.org/fhir/ValueSet/v2-0100',547);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (711,NULL,'2017-09-27 09:59:44.981000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0102 ( Delayed acknowledgment type)',NULL,'v2 Delayed acknowledgment type',1,'ValueSet/v2-0102',NULL,'http://hl7.org/fhir/ValueSet/v2-0102',548);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (712,NULL,'2017-09-27 09:59:44.989000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0103 ( Processing ID)',NULL,'v2 Processing ID',1,'ValueSet/v2-0103',NULL,'http://hl7.org/fhir/ValueSet/v2-0103',549);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (713,NULL,'2017-09-27 09:59:45.001000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0104 ( Version ID)',NULL,'v2 Version ID',1,'ValueSet/v2-0104',NULL,'http://hl7.org/fhir/ValueSet/v2-0104',550);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (714,NULL,'2017-09-27 09:59:45.010000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0105 ( Source of Comment)',NULL,'v2 Source of Comment',1,'ValueSet/v2-0105',NULL,'http://hl7.org/fhir/ValueSet/v2-0105',551);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (715,NULL,'2017-09-27 09:59:45.019000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0106 ( Query/response format code)',NULL,'v2 Query/response format code',1,'ValueSet/v2-0106',NULL,'http://hl7.org/fhir/ValueSet/v2-0106',552);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (716,NULL,'2017-09-27 09:59:45.029000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0107 ( Deferred response type)',NULL,'v2 Deferred response type',1,'ValueSet/v2-0107',NULL,'http://hl7.org/fhir/ValueSet/v2-0107',553);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (717,NULL,'2017-09-27 09:59:45.042000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0108 ( Query results level)',NULL,'v2 Query results level',1,'ValueSet/v2-0108',NULL,'http://hl7.org/fhir/ValueSet/v2-0108',554);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (718,NULL,'2017-09-27 09:59:45.056000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0109 ( Report priority)',NULL,'v2 Report priority',1,'ValueSet/v2-0109',NULL,'http://hl7.org/fhir/ValueSet/v2-0109',555);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (719,NULL,'2017-09-27 09:59:45.064000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0116 ( Bed Status)',NULL,'v2 Bed Status',1,'ValueSet/v2-0116',NULL,'http://hl7.org/fhir/ValueSet/v2-0116',556);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (720,NULL,'2017-09-27 09:59:45.091000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0119 ( Order Control Codes)',NULL,'v2 Order Control Codes',1,'ValueSet/v2-0119',NULL,'http://hl7.org/fhir/ValueSet/v2-0119',557);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (721,NULL,'2017-09-27 09:59:45.100000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0121 ( Response Flag)',NULL,'v2 Response Flag',1,'ValueSet/v2-0121',NULL,'http://hl7.org/fhir/ValueSet/v2-0121',558);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (722,NULL,'2017-09-27 09:59:45.109000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0122 ( Charge Type)',NULL,'v2 Charge Type',1,'ValueSet/v2-0122',NULL,'http://hl7.org/fhir/ValueSet/v2-0122',559);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (723,NULL,'2017-09-27 09:59:45.120000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0123 ( Result Status)',NULL,'v2 Result Status',1,'ValueSet/v2-0123',NULL,'http://hl7.org/fhir/ValueSet/v2-0123',560);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (724,NULL,'2017-09-27 09:59:45.128000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0124 ( Transportation Mode)',NULL,'v2 Transportation Mode',1,'ValueSet/v2-0124',NULL,'http://hl7.org/fhir/ValueSet/v2-0124',561);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (725,NULL,'2017-09-27 09:59:45.135000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0125 ( Value Type)',NULL,'v2 Value Type',1,'ValueSet/v2-0125',NULL,'http://hl7.org/fhir/ValueSet/v2-0125',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (726,NULL,'2017-09-27 09:59:45.193000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0126 ( Quantity Limited Request)',NULL,'v2 Quantity Limited Request',1,'ValueSet/v2-0126',NULL,'http://hl7.org/fhir/ValueSet/v2-0126',563);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (727,NULL,'2017-09-27 09:59:45.203000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0127 ( Allergen Type)',NULL,'v2 Allergen Type',1,'ValueSet/v2-0127',NULL,'http://hl7.org/fhir/ValueSet/v2-0127',564);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (728,NULL,'2017-09-27 09:59:45.213000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0128 ( Allergy Severity)',NULL,'v2 Allergy Severity',1,'ValueSet/v2-0128',NULL,'http://hl7.org/fhir/ValueSet/v2-0128',565);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (729,NULL,'2017-09-27 09:59:45.221000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0130 ( Visit User Code)',NULL,'v2 Visit User Code',1,'ValueSet/v2-0130',NULL,'http://hl7.org/fhir/ValueSet/v2-0130',566);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (730,NULL,'2017-09-27 09:59:45.236000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0131 ( Contact Role)',NULL,'v2 Contact Role',1,'ValueSet/v2-0131',NULL,'http://hl7.org/fhir/ValueSet/v2-0131',567);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (731,NULL,'2017-09-27 09:59:45.248000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0133 ( Procedure Practitioner Identifier Code Type)',NULL,'v2 Procedure Practitioner Identifier Code Type',1,'ValueSet/v2-0133',NULL,'http://hl7.org/fhir/ValueSet/v2-0133',568);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (732,NULL,'2017-09-27 09:59:45.256000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0135 ( Assignment of Benefits)',NULL,'v2 Assignment of Benefits',1,'ValueSet/v2-0135',NULL,'http://hl7.org/fhir/ValueSet/v2-0135',569);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (733,NULL,'2017-09-27 09:59:45.264000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0136 ( Yes/no Indicator)',NULL,'v2 Yes/no Indicator',1,'ValueSet/v2-0136',NULL,'http://hl7.org/fhir/ValueSet/v2-0136',570);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (734,NULL,'2017-09-27 09:59:45.273000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0137 ( Mail Claim Party)',NULL,'v2 Mail Claim Party',1,'ValueSet/v2-0137',NULL,'http://hl7.org/fhir/ValueSet/v2-0137',571);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (735,NULL,'2017-09-27 09:59:45.284000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0140 ( Military Service)',NULL,'v2 Military Service',1,'ValueSet/v2-0140',NULL,'http://hl7.org/fhir/ValueSet/v2-0140',572);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (736,NULL,'2017-09-27 09:59:45.293000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0141 ( Military Rank/Grade)',NULL,'v2 Military Rank/Grade',1,'ValueSet/v2-0141',NULL,'http://hl7.org/fhir/ValueSet/v2-0141',573);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (737,NULL,'2017-09-27 09:59:45.303000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0142 ( Military Status)',NULL,'v2 Military Status',1,'ValueSet/v2-0142',NULL,'http://hl7.org/fhir/ValueSet/v2-0142',574);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (738,NULL,'2017-09-27 09:59:45.313000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0144 ( Eligibility Source)',NULL,'v2 Eligibility Source',1,'ValueSet/v2-0144',NULL,'http://hl7.org/fhir/ValueSet/v2-0144',575);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (739,NULL,'2017-09-27 09:59:45.321000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0145 ( Room Type)',NULL,'v2 Room Type',1,'ValueSet/v2-0145',NULL,'http://hl7.org/fhir/ValueSet/v2-0145',576);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (740,NULL,'2017-09-27 09:59:45.332000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0146 ( Amount Type)',NULL,'v2 Amount Type',1,'ValueSet/v2-0146',NULL,'http://hl7.org/fhir/ValueSet/v2-0146',577);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (741,NULL,'2017-09-27 09:59:45.343000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0147 ( Policy Type)',NULL,'v2 Policy Type',1,'ValueSet/v2-0147',NULL,'http://hl7.org/fhir/ValueSet/v2-0147',578);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (742,NULL,'2017-09-27 09:59:45.352000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0148 ( Money or Percentage Indicator)',NULL,'v2 Money or Percentage Indicator',1,'ValueSet/v2-0148',NULL,'http://hl7.org/fhir/ValueSet/v2-0148',579);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (743,NULL,'2017-09-27 09:59:45.360000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0149 ( Day Type)',NULL,'v2 Day Type',1,'ValueSet/v2-0149',NULL,'http://hl7.org/fhir/ValueSet/v2-0149',580);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (744,NULL,'2017-09-27 09:59:45.368000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0150 ( Certification Patient Type)',NULL,'v2 Certification Patient Type',1,'ValueSet/v2-0150',NULL,'http://hl7.org/fhir/ValueSet/v2-0150',581);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (745,NULL,'2017-09-27 09:59:45.399000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0153 ( Value Code)',NULL,'v2 Value Code',1,'ValueSet/v2-0153',NULL,'http://hl7.org/fhir/ValueSet/v2-0153',582);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (746,NULL,'2017-09-27 09:59:45.408000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0155 ( Accept/Application Acknowledgment Conditions)',NULL,'v2 Accept/Application Acknowledgment Conditions',1,'ValueSet/v2-0155',NULL,'http://hl7.org/fhir/ValueSet/v2-0155',583);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (747,NULL,'2017-09-27 09:59:45.418000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0156 ( Which date/time qualifier)',NULL,'v2 Which date/time qualifier',1,'ValueSet/v2-0156',NULL,'http://hl7.org/fhir/ValueSet/v2-0156',584);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (748,NULL,'2017-09-27 09:59:45.427000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0157 ( Which date/time status qualifier)',NULL,'v2 Which date/time status qualifier',1,'ValueSet/v2-0157',NULL,'http://hl7.org/fhir/ValueSet/v2-0157',585);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (749,NULL,'2017-09-27 09:59:45.436000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0158 ( Date/time selection qualifier)',NULL,'v2 Date/time selection qualifier',1,'ValueSet/v2-0158',NULL,'http://hl7.org/fhir/ValueSet/v2-0158',586);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (750,NULL,'2017-09-27 09:59:45.445000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0159 ( Diet Code Specification Type)',NULL,'v2 Diet Code Specification Type',1,'ValueSet/v2-0159',NULL,'http://hl7.org/fhir/ValueSet/v2-0159',587);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (751,NULL,'2017-09-27 09:59:45.457000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0160 ( Tray Type)',NULL,'v2 Tray Type',1,'ValueSet/v2-0160',NULL,'http://hl7.org/fhir/ValueSet/v2-0160',588);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (752,NULL,'2017-09-27 09:59:45.477000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0161 ( Allow Substitution)',NULL,'v2 Allow Substitution',1,'ValueSet/v2-0161',NULL,'http://hl7.org/fhir/ValueSet/v2-0161',589);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (753,NULL,'2017-09-27 09:59:45.520000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0162 ( Route of Administration)',NULL,'v2 Route of Administration',1,'ValueSet/v2-0162',NULL,'http://hl7.org/fhir/ValueSet/v2-0162',590);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (754,NULL,'2017-09-27 09:59:45.550000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0163 ( Body Site)',NULL,'v2 Body Site',1,'ValueSet/v2-0163',NULL,'http://hl7.org/fhir/ValueSet/v2-0163',591);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (755,NULL,'2017-09-27 09:59:45.562000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0164 ( Administration Device)',NULL,'v2 Administration Device',1,'ValueSet/v2-0164',NULL,'http://hl7.org/fhir/ValueSet/v2-0164',592);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (756,NULL,'2017-09-27 09:59:45.574000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0165 ( Administration Method)',NULL,'v2 Administration Method',1,'ValueSet/v2-0165',NULL,'http://hl7.org/fhir/ValueSet/v2-0165',593);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (757,NULL,'2017-09-27 09:59:45.581000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0166 ( RX Component Type)',NULL,'v2 RX Component Type',1,'ValueSet/v2-0166',NULL,'http://hl7.org/fhir/ValueSet/v2-0166',594);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (758,NULL,'2017-09-27 09:59:45.591000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0167 ( Substitution Status)',NULL,'v2 Substitution Status',1,'ValueSet/v2-0167',NULL,'http://hl7.org/fhir/ValueSet/v2-0167',595);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (759,NULL,'2017-09-27 09:59:45.601000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0168 ( Processing Priority)',NULL,'v2 Processing Priority',1,'ValueSet/v2-0168',NULL,'http://hl7.org/fhir/ValueSet/v2-0168',596);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (760,NULL,'2017-09-27 09:59:45.609000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0169 ( Reporting Priority)',NULL,'v2 Reporting Priority',1,'ValueSet/v2-0169',NULL,'http://hl7.org/fhir/ValueSet/v2-0169',597);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (761,NULL,'2017-09-27 09:59:45.616000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0170 ( Derived Specimen)',NULL,'v2 Derived Specimen',1,'ValueSet/v2-0170',NULL,'http://hl7.org/fhir/ValueSet/v2-0170',598);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (762,NULL,'2017-09-27 09:59:45.623000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0173 ( Coordination of Benefits)',NULL,'v2 Coordination of Benefits',1,'ValueSet/v2-0173',NULL,'http://hl7.org/fhir/ValueSet/v2-0173',599);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (763,NULL,'2017-09-27 09:59:45.631000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0174 ( Nature of Service/Test/Observation)',NULL,'v2 Nature of Service/Test/Observation',1,'ValueSet/v2-0174',NULL,'http://hl7.org/fhir/ValueSet/v2-0174',600);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (764,NULL,'2017-09-27 09:59:45.645000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0175 ( Master File Identifier Code)',NULL,'v2 Master File Identifier Code',1,'ValueSet/v2-0175',NULL,'http://hl7.org/fhir/ValueSet/v2-0175',601);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (765,NULL,'2017-09-27 09:59:45.656000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0177 ( Confidentiality Code)',NULL,'v2 Confidentiality Code',1,'ValueSet/v2-0177',NULL,'http://hl7.org/fhir/ValueSet/v2-0177',602);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (766,NULL,'2017-09-27 09:59:45.664000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0178 ( File Level Event Code)',NULL,'v2 File Level Event Code',1,'ValueSet/v2-0178',NULL,'http://hl7.org/fhir/ValueSet/v2-0178',603);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (767,NULL,'2017-09-27 09:59:45.671000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0179 ( Response Level)',NULL,'v2 Response Level',1,'ValueSet/v2-0179',NULL,'http://hl7.org/fhir/ValueSet/v2-0179',604);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (768,NULL,'2017-09-27 09:59:45.680000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0180 ( Record-level Event Code)',NULL,'v2 Record-level Event Code',1,'ValueSet/v2-0180',NULL,'http://hl7.org/fhir/ValueSet/v2-0180',605);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (769,NULL,'2017-09-27 09:59:45.688000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0181 ( MFN Record-level Error Return)',NULL,'v2 MFN Record-level Error Return',1,'ValueSet/v2-0181',NULL,'http://hl7.org/fhir/ValueSet/v2-0181',606);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (770,NULL,'2017-09-27 09:59:45.696000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0183 ( Active/Inactive)',NULL,'v2 Active/Inactive',1,'ValueSet/v2-0183',NULL,'http://hl7.org/fhir/ValueSet/v2-0183',607);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (771,NULL,'2017-09-27 09:59:45.704000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0185 ( Preferred Method of Contact)',NULL,'v2 Preferred Method of Contact',1,'ValueSet/v2-0185',NULL,'http://hl7.org/fhir/ValueSet/v2-0185',608);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (772,NULL,'2017-09-27 09:59:45.712000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0187 ( Provider Billing)',NULL,'v2 Provider Billing',1,'ValueSet/v2-0187',NULL,'http://hl7.org/fhir/ValueSet/v2-0187',609);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (773,NULL,'2017-09-27 09:59:45.719000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0189 ( Ethnic Group)',NULL,'v2 Ethnic Group',1,'ValueSet/v2-0189',NULL,'http://hl7.org/fhir/ValueSet/v2-0189',610);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (774,NULL,'2017-09-27 09:59:45.739000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0190 ( Address Type)',NULL,'v2 Address Type',1,'ValueSet/v2-0190',NULL,'http://hl7.org/fhir/ValueSet/v2-0190',611);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (775,NULL,'2017-09-27 09:59:45.756000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0191 ( Type of Referenced Data)',NULL,'v2 Type of Referenced Data',1,'ValueSet/v2-0191',NULL,'http://hl7.org/fhir/ValueSet/v2-0191',612);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (776,NULL,'2017-09-27 09:59:45.767000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0193 ( Amount Class)',NULL,'v2 Amount Class',1,'ValueSet/v2-0193',NULL,'http://hl7.org/fhir/ValueSet/v2-0193',613);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (777,NULL,'2017-09-27 09:59:45.792000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0200 ( Name Type)',NULL,'v2 Name Type',1,'ValueSet/v2-0200',NULL,'http://hl7.org/fhir/ValueSet/v2-0200',614);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (778,NULL,'2017-09-27 09:59:45.809000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0201 ( Telecommunication Use Code)',NULL,'v2 Telecommunication Use Code',1,'ValueSet/v2-0201',NULL,'http://hl7.org/fhir/ValueSet/v2-0201',615);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (779,NULL,'2017-09-27 09:59:45.838000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0202 ( Telecommunication Equipment Type)',NULL,'v2 Telecommunication Equipment Type',1,'ValueSet/v2-0202',NULL,'http://hl7.org/fhir/ValueSet/v2-0202',616);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (780,NULL,'2017-09-27 09:59:45.904000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0203 ( Identifier Type)',NULL,'v2 Identifier Type',1,'ValueSet/v2-0203',NULL,'http://hl7.org/fhir/ValueSet/v2-0203',207);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (781,NULL,'2017-09-27 09:59:45.913000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0204 ( Organizational Name Type)',NULL,'v2 Organizational Name Type',1,'ValueSet/v2-0204',NULL,'http://hl7.org/fhir/ValueSet/v2-0204',617);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (782,NULL,'2017-09-27 09:59:45.922000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0205 ( Price Type)',NULL,'v2 Price Type',1,'ValueSet/v2-0205',NULL,'http://hl7.org/fhir/ValueSet/v2-0205',618);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (783,NULL,'2017-09-27 09:59:45.931000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0206 ( Segment Action Code)',NULL,'v2 Segment Action Code',1,'ValueSet/v2-0206',NULL,'http://hl7.org/fhir/ValueSet/v2-0206',619);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (784,NULL,'2017-09-27 09:59:45.939000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0207 ( Processing Mode)',NULL,'v2 Processing Mode',1,'ValueSet/v2-0207',NULL,'http://hl7.org/fhir/ValueSet/v2-0207',620);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (785,NULL,'2017-09-27 09:59:45.947000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0208 ( Query Response Status)',NULL,'v2 Query Response Status',1,'ValueSet/v2-0208',NULL,'http://hl7.org/fhir/ValueSet/v2-0208',621);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (786,NULL,'2017-09-27 09:59:45.957000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0209 ( Relational Operator)',NULL,'v2 Relational Operator',1,'ValueSet/v2-0209',NULL,'http://hl7.org/fhir/ValueSet/v2-0209',622);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (787,NULL,'2017-09-27 09:59:45.964000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0210 ( Relational Conjunction)',NULL,'v2 Relational Conjunction',1,'ValueSet/v2-0210',NULL,'http://hl7.org/fhir/ValueSet/v2-0210',623);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (788,NULL,'2017-09-27 09:59:45.978000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0211 ( Alternate Character Sets)',NULL,'v2 Alternate Character Sets',1,'ValueSet/v2-0211',NULL,'http://hl7.org/fhir/ValueSet/v2-0211',624);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (789,NULL,'2017-09-27 09:59:45.986000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0213 ( Purge Status Code)',NULL,'v2 Purge Status Code',1,'ValueSet/v2-0213',NULL,'http://hl7.org/fhir/ValueSet/v2-0213',625);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (790,NULL,'2017-09-27 09:59:45.994000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0214 ( Special Program Code)',NULL,'v2 Special Program Code',1,'ValueSet/v2-0214',NULL,'http://hl7.org/fhir/ValueSet/v2-0214',626);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (791,NULL,'2017-09-27 09:59:46.002000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0215 ( Publicity Code)',NULL,'v2 Publicity Code',1,'ValueSet/v2-0215',NULL,'http://hl7.org/fhir/ValueSet/v2-0215',627);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (792,NULL,'2017-09-27 09:59:46.009000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0216 ( Patient Status Code)',NULL,'v2 Patient Status Code',1,'ValueSet/v2-0216',NULL,'http://hl7.org/fhir/ValueSet/v2-0216',628);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (793,NULL,'2017-09-27 09:59:46.017000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0217 ( Visit Priority Code)',NULL,'v2 Visit Priority Code',1,'ValueSet/v2-0217',NULL,'http://hl7.org/fhir/ValueSet/v2-0217',629);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (794,NULL,'2017-09-27 09:59:46.029000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0220 ( Living Arrangement)',NULL,'v2 Living Arrangement',1,'ValueSet/v2-0220',NULL,'http://hl7.org/fhir/ValueSet/v2-0220',630);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (795,NULL,'2017-09-27 09:59:46.040000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0223 ( Living Dependency)',NULL,'v2 Living Dependency',1,'ValueSet/v2-0223',NULL,'http://hl7.org/fhir/ValueSet/v2-0223',631);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (796,NULL,'2017-09-27 09:59:46.048000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0224 ( Transport Arranged)',NULL,'v2 Transport Arranged',1,'ValueSet/v2-0224',NULL,'http://hl7.org/fhir/ValueSet/v2-0224',632);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (797,NULL,'2017-09-27 09:59:46.059000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0225 ( Escort Required)',NULL,'v2 Escort Required',1,'ValueSet/v2-0225',NULL,'http://hl7.org/fhir/ValueSet/v2-0225',633);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (798,NULL,'2017-09-27 09:59:46.089000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0227 ( Manufacturers of Vaccines (code=MVX))',NULL,'v2 Manufacturers of Vaccines (code=MVX)',1,'ValueSet/v2-0227',NULL,'http://hl7.org/fhir/ValueSet/v2-0227',634);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (799,NULL,'2017-09-27 09:59:46.100000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0228 ( Diagnosis Classification)',NULL,'v2 Diagnosis Classification',1,'ValueSet/v2-0228',NULL,'http://hl7.org/fhir/ValueSet/v2-0228',635);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (800,NULL,'2017-09-27 09:59:46.108000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0229 ( DRG Payor)',NULL,'v2 DRG Payor',1,'ValueSet/v2-0229',NULL,'http://hl7.org/fhir/ValueSet/v2-0229',636);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (801,NULL,'2017-09-27 09:59:46.117000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0230 ( Procedure Functional Type)',NULL,'v2 Procedure Functional Type',1,'ValueSet/v2-0230',NULL,'http://hl7.org/fhir/ValueSet/v2-0230',637);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (802,NULL,'2017-09-27 09:59:46.125000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0231 ( Student Status)',NULL,'v2 Student Status',1,'ValueSet/v2-0231',NULL,'http://hl7.org/fhir/ValueSet/v2-0231',638);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (803,NULL,'2017-09-27 09:59:46.133000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0232 ( - Insurance Company Contact Reason)',NULL,'v2 - Insurance Company Contact Reason',1,'ValueSet/v2-0232',NULL,'http://hl7.org/fhir/ValueSet/v2-0232',639);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (804,NULL,'2017-09-27 09:59:46.143000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0234 ( Report Timing)',NULL,'v2 Report Timing',1,'ValueSet/v2-0234',NULL,'http://hl7.org/fhir/ValueSet/v2-0234',640);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (805,NULL,'2017-09-27 09:59:46.153000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0235 ( Report Source)',NULL,'v2 Report Source',1,'ValueSet/v2-0235',NULL,'http://hl7.org/fhir/ValueSet/v2-0235',641);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (806,NULL,'2017-09-27 09:59:46.161000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0236 ( Event Reported To)',NULL,'v2 Event Reported To',1,'ValueSet/v2-0236',NULL,'http://hl7.org/fhir/ValueSet/v2-0236',642);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (807,NULL,'2017-09-27 09:59:46.171000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0237 ( Event Qualification)',NULL,'v2 Event Qualification',1,'ValueSet/v2-0237',NULL,'http://hl7.org/fhir/ValueSet/v2-0237',643);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (808,NULL,'2017-09-27 09:59:46.179000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0238 ( Event Seriousness)',NULL,'v2 Event Seriousness',1,'ValueSet/v2-0238',NULL,'http://hl7.org/fhir/ValueSet/v2-0238',644);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (809,NULL,'2017-09-27 09:59:46.187000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0239 ( Event Expected)',NULL,'v2 Event Expected',1,'ValueSet/v2-0239',NULL,'http://hl7.org/fhir/ValueSet/v2-0239',645);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (810,NULL,'2017-09-27 09:59:46.196000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0240 ( Event Consequence)',NULL,'v2 Event Consequence',1,'ValueSet/v2-0240',NULL,'http://hl7.org/fhir/ValueSet/v2-0240',646);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (811,NULL,'2017-09-27 09:59:46.205000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0241 ( Patient Outcome)',NULL,'v2 Patient Outcome',1,'ValueSet/v2-0241',NULL,'http://hl7.org/fhir/ValueSet/v2-0241',647);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (812,NULL,'2017-09-27 09:59:46.220000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0242 ( Primary Observer''s Qualification)',NULL,'v2 Primary Observer''s Qualification',1,'ValueSet/v2-0242',NULL,'http://hl7.org/fhir/ValueSet/v2-0242',648);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (813,NULL,'2017-09-27 09:59:46.228000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0243 ( Identity May Be Divulged)',NULL,'v2 Identity May Be Divulged',1,'ValueSet/v2-0243',NULL,'http://hl7.org/fhir/ValueSet/v2-0243',649);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (814,NULL,'2017-09-27 09:59:46.245000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0247 ( Status of Evaluation)',NULL,'v2 Status of Evaluation',1,'ValueSet/v2-0247',NULL,'http://hl7.org/fhir/ValueSet/v2-0247',650);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (815,NULL,'2017-09-27 09:59:46.254000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0248 ( Product Source)',NULL,'v2 Product Source',1,'ValueSet/v2-0248',NULL,'http://hl7.org/fhir/ValueSet/v2-0248',651);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (816,NULL,'2017-09-27 09:59:46.262000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0250 ( Relatedness Assessment)',NULL,'v2 Relatedness Assessment',1,'ValueSet/v2-0250',NULL,'http://hl7.org/fhir/ValueSet/v2-0250',652);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (817,NULL,'2017-09-27 09:59:46.271000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0251 ( Action Taken in Response to the Event)',NULL,'v2 Action Taken in Response to the Event',1,'ValueSet/v2-0251',NULL,'http://hl7.org/fhir/ValueSet/v2-0251',653);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (818,NULL,'2017-09-27 09:59:46.283000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0252 ( Causality Observations)',NULL,'v2 Causality Observations',1,'ValueSet/v2-0252',NULL,'http://hl7.org/fhir/ValueSet/v2-0252',654);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (819,NULL,'2017-09-27 09:59:46.292000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0253 ( Indirect Exposure Mechanism)',NULL,'v2 Indirect Exposure Mechanism',1,'ValueSet/v2-0253',NULL,'http://hl7.org/fhir/ValueSet/v2-0253',655);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (820,NULL,'2017-09-27 09:59:46.361000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0254 ( Kind of Quantity)',NULL,'v2 Kind of Quantity',1,'ValueSet/v2-0254',NULL,'http://hl7.org/fhir/ValueSet/v2-0254',656);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (821,NULL,'2017-09-27 09:59:46.394000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0255 ( Duration Categories)',NULL,'v2 Duration Categories',1,'ValueSet/v2-0255',NULL,'http://hl7.org/fhir/ValueSet/v2-0255',657);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (822,NULL,'2017-09-27 09:59:46.416000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0256 ( Time Delay Post Challenge)',NULL,'v2 Time Delay Post Challenge',1,'ValueSet/v2-0256',NULL,'http://hl7.org/fhir/ValueSet/v2-0256',658);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (823,NULL,'2017-09-27 09:59:46.424000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0257 ( Nature of Challenge)',NULL,'v2 Nature of Challenge',1,'ValueSet/v2-0257',NULL,'http://hl7.org/fhir/ValueSet/v2-0257',659);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (824,NULL,'2017-09-27 09:59:46.432000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0258 ( Relationship Modifier)',NULL,'v2 Relationship Modifier',1,'ValueSet/v2-0258',NULL,'http://hl7.org/fhir/ValueSet/v2-0258',660);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (825,NULL,'2017-09-27 09:59:46.447000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0259 ( Modality)',NULL,'v2 Modality',1,'ValueSet/v2-0259',NULL,'http://hl7.org/fhir/ValueSet/v2-0259',661);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (826,NULL,'2017-09-27 09:59:46.456000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0260 ( Patient Location Type)',NULL,'v2 Patient Location Type',1,'ValueSet/v2-0260',NULL,'http://hl7.org/fhir/ValueSet/v2-0260',662);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (827,NULL,'2017-09-27 09:59:46.465000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0261 ( Location Equipment)',NULL,'v2 Location Equipment',1,'ValueSet/v2-0261',NULL,'http://hl7.org/fhir/ValueSet/v2-0261',663);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (828,NULL,'2017-09-27 09:59:46.473000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0262 ( Privacy Level)',NULL,'v2 Privacy Level',1,'ValueSet/v2-0262',NULL,'http://hl7.org/fhir/ValueSet/v2-0262',664);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (829,NULL,'2017-09-27 09:59:46.482000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0263 ( Level of Care)',NULL,'v2 Level of Care',1,'ValueSet/v2-0263',NULL,'http://hl7.org/fhir/ValueSet/v2-0263',665);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (830,NULL,'2017-09-27 09:59:46.498000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0265 ( Specialty Type)',NULL,'v2 Specialty Type',1,'ValueSet/v2-0265',NULL,'http://hl7.org/fhir/ValueSet/v2-0265',666);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (831,NULL,'2017-09-27 09:59:46.508000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0267 ( Days of the Week)',NULL,'v2 Days of the Week',1,'ValueSet/v2-0267',NULL,'http://hl7.org/fhir/ValueSet/v2-0267',667);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (832,NULL,'2017-09-27 09:59:46.516000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0268 ( Override)',NULL,'v2 Override',1,'ValueSet/v2-0268',NULL,'http://hl7.org/fhir/ValueSet/v2-0268',668);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (833,NULL,'2017-09-27 09:59:46.523000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0269 ( Charge On Indicator)',NULL,'v2 Charge On Indicator',1,'ValueSet/v2-0269',NULL,'http://hl7.org/fhir/ValueSet/v2-0269',669);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (834,NULL,'2017-09-27 09:59:46.543000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0270 ( Document Type)',NULL,'v2 Document Type',1,'ValueSet/v2-0270',NULL,'http://hl7.org/fhir/ValueSet/v2-0270',670);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (835,NULL,'2017-09-27 09:59:46.553000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0271 ( Document Completion Status)',NULL,'v2 Document Completion Status',1,'ValueSet/v2-0271',NULL,'http://hl7.org/fhir/ValueSet/v2-0271',671);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (836,NULL,'2017-09-27 09:59:46.566000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0272 ( Document Confidentiality Status)',NULL,'v2 Document Confidentiality Status',1,'ValueSet/v2-0272',NULL,'http://hl7.org/fhir/ValueSet/v2-0272',672);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (837,NULL,'2017-09-27 09:59:46.575000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0273 ( Document Availability Status)',NULL,'v2 Document Availability Status',1,'ValueSet/v2-0273',NULL,'http://hl7.org/fhir/ValueSet/v2-0273',673);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (838,NULL,'2017-09-27 09:59:46.583000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0275 ( Document Storage Status)',NULL,'v2 Document Storage Status',1,'ValueSet/v2-0275',NULL,'http://hl7.org/fhir/ValueSet/v2-0275',674);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (839,NULL,'2017-09-27 09:59:46.590000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0276 ( Appointment reason codes)',NULL,'v2 Appointment reason codes',1,'ValueSet/v2-0276',NULL,'http://hl7.org/fhir/ValueSet/v2-0276',675);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (840,NULL,'2017-09-27 09:59:46.599000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0277 ( Appointment Type Codes)',NULL,'v2 Appointment Type Codes',1,'ValueSet/v2-0277',NULL,'http://hl7.org/fhir/ValueSet/v2-0277',676);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (841,NULL,'2017-09-27 09:59:46.612000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0278 ( Filler status codes)',NULL,'v2 Filler status codes',1,'ValueSet/v2-0278',NULL,'http://hl7.org/fhir/ValueSet/v2-0278',677);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (842,NULL,'2017-09-27 09:59:46.621000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0279 ( Allow Substitution Codes)',NULL,'v2 Allow Substitution Codes',1,'ValueSet/v2-0279',NULL,'http://hl7.org/fhir/ValueSet/v2-0279',678);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (843,NULL,'2017-09-27 09:59:46.629000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0280 ( Referral Priority)',NULL,'v2 Referral Priority',1,'ValueSet/v2-0280',NULL,'http://hl7.org/fhir/ValueSet/v2-0280',679);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (844,NULL,'2017-09-27 09:59:46.643000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0281 ( Referral Type)',NULL,'v2 Referral Type',1,'ValueSet/v2-0281',NULL,'http://hl7.org/fhir/ValueSet/v2-0281',680);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (845,NULL,'2017-09-27 09:59:46.653000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0282 ( Referral Disposition)',NULL,'v2 Referral Disposition',1,'ValueSet/v2-0282',NULL,'http://hl7.org/fhir/ValueSet/v2-0282',681);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (846,NULL,'2017-09-27 09:59:46.663000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0283 ( Referral Status)',NULL,'v2 Referral Status',1,'ValueSet/v2-0283',NULL,'http://hl7.org/fhir/ValueSet/v2-0283',682);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (847,NULL,'2017-09-27 09:59:46.672000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0284 ( Referral Category)',NULL,'v2 Referral Category',1,'ValueSet/v2-0284',NULL,'http://hl7.org/fhir/ValueSet/v2-0284',683);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (848,NULL,'2017-09-27 09:59:46.680000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0286 ( Provider Role)',NULL,'v2 Provider Role',1,'ValueSet/v2-0286',NULL,'http://hl7.org/fhir/ValueSet/v2-0286',684);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (849,NULL,'2017-09-27 09:59:46.690000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0287 ( Problem/Goal Action Code)',NULL,'v2 Problem/Goal Action Code',1,'ValueSet/v2-0287',NULL,'http://hl7.org/fhir/ValueSet/v2-0287',685);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (850,NULL,'2017-09-27 09:59:46.717000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0290 ( MIME base64 encoding characters)',NULL,'v2 MIME base64 encoding characters',1,'ValueSet/v2-0290',NULL,'http://hl7.org/fhir/ValueSet/v2-0290',686);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (851,NULL,'2017-09-27 09:59:46.729000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0291 ( Subtype of Referenced Data)',NULL,'v2 Subtype of Referenced Data',1,'ValueSet/v2-0291',NULL,'http://hl7.org/fhir/ValueSet/v2-0291',687);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (852,NULL,'2017-09-27 09:59:46.782000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0292 ( Vaccines Administered (code = CVX) (parenteral, un)',NULL,'v2 Vaccines Administered (code = CVX) (parenteral, un',1,'ValueSet/v2-0292',NULL,'http://hl7.org/fhir/ValueSet/v2-0292',688);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (853,NULL,'2017-09-27 09:59:46.795000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0294 ( Time Selection Criteria Parameter Class Codes)',NULL,'v2 Time Selection Criteria Parameter Class Codes',1,'ValueSet/v2-0294',NULL,'http://hl7.org/fhir/ValueSet/v2-0294',689);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (854,NULL,'2017-09-27 09:59:46.803000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0298 ( CP Range Type)',NULL,'v2 CP Range Type',1,'ValueSet/v2-0298',NULL,'http://hl7.org/fhir/ValueSet/v2-0298',690);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (855,NULL,'2017-09-27 09:59:46.810000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0299 ( Encoding)',NULL,'v2 Encoding',1,'ValueSet/v2-0299',NULL,'http://hl7.org/fhir/ValueSet/v2-0299',691);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (856,NULL,'2017-09-27 09:59:46.821000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0301 ( Universal ID Type)',NULL,'v2 Universal ID Type',1,'ValueSet/v2-0301',NULL,'http://hl7.org/fhir/ValueSet/v2-0301',692);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (857,NULL,'2017-09-27 09:59:46.831000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0305 ( Person Location Type)',NULL,'v2 Person Location Type',1,'ValueSet/v2-0305',NULL,'http://hl7.org/fhir/ValueSet/v2-0305',693);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (858,NULL,'2017-09-27 09:59:46.839000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0309 ( Coverage Type)',NULL,'v2 Coverage Type',1,'ValueSet/v2-0309',NULL,'http://hl7.org/fhir/ValueSet/v2-0309',694);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (859,NULL,'2017-09-27 09:59:46.847000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0311 ( Job Status)',NULL,'v2 Job Status',1,'ValueSet/v2-0311',NULL,'http://hl7.org/fhir/ValueSet/v2-0311',695);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (860,NULL,'2017-09-27 09:59:46.856000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0315 ( Living Will Code)',NULL,'v2 Living Will Code',1,'ValueSet/v2-0315',NULL,'http://hl7.org/fhir/ValueSet/v2-0315',696);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (861,NULL,'2017-09-27 09:59:46.867000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0316 ( Organ Donor Code)',NULL,'v2 Organ Donor Code',1,'ValueSet/v2-0316',NULL,'http://hl7.org/fhir/ValueSet/v2-0316',697);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (862,NULL,'2017-09-27 09:59:46.877000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0317 ( Annotations)',NULL,'v2 Annotations',1,'ValueSet/v2-0317',NULL,'http://hl7.org/fhir/ValueSet/v2-0317',698);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (863,NULL,'2017-09-27 09:59:46.886000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0321 ( Dispense Method)',NULL,'v2 Dispense Method',1,'ValueSet/v2-0321',NULL,'http://hl7.org/fhir/ValueSet/v2-0321',699);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (864,NULL,'2017-09-27 09:59:46.894000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0322 ( Completion Status)',NULL,'v2 Completion Status',1,'ValueSet/v2-0322',NULL,'http://hl7.org/fhir/ValueSet/v2-0322',700);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (865,NULL,'2017-09-27 09:59:46.902000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0323 ( Action Code)',NULL,'v2 Action Code',1,'ValueSet/v2-0323',NULL,'http://hl7.org/fhir/ValueSet/v2-0323',701);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (866,NULL,'2017-09-27 09:59:46.913000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0324 ( Location Characteristic ID)',NULL,'v2 Location Characteristic ID',1,'ValueSet/v2-0324',NULL,'http://hl7.org/fhir/ValueSet/v2-0324',702);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (867,NULL,'2017-09-27 09:59:46.922000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0325 ( Location Relationship ID)',NULL,'v2 Location Relationship ID',1,'ValueSet/v2-0325',NULL,'http://hl7.org/fhir/ValueSet/v2-0325',703);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (868,NULL,'2017-09-27 09:59:46.929000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0326 ( Visit Indicator)',NULL,'v2 Visit Indicator',1,'ValueSet/v2-0326',NULL,'http://hl7.org/fhir/ValueSet/v2-0326',704);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (869,NULL,'2017-09-27 09:59:46.936000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0329 ( Quantity Method)',NULL,'v2 Quantity Method',1,'ValueSet/v2-0329',NULL,'http://hl7.org/fhir/ValueSet/v2-0329',705);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (870,NULL,'2017-09-27 09:59:46.945000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0330 ( Marketing Basis)',NULL,'v2 Marketing Basis',1,'ValueSet/v2-0330',NULL,'http://hl7.org/fhir/ValueSet/v2-0330',706);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (871,NULL,'2017-09-27 09:59:46.953000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0331 ( Facility Type)',NULL,'v2 Facility Type',1,'ValueSet/v2-0331',NULL,'http://hl7.org/fhir/ValueSet/v2-0331',707);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (872,NULL,'2017-09-27 09:59:46.960000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0332 ( Source Type)',NULL,'v2 Source Type',1,'ValueSet/v2-0332',NULL,'http://hl7.org/fhir/ValueSet/v2-0332',708);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (873,NULL,'2017-09-27 09:59:46.967000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0334 ( Disabled Person Code)',NULL,'v2 Disabled Person Code',1,'ValueSet/v2-0334',NULL,'http://hl7.org/fhir/ValueSet/v2-0334',709);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (874,NULL,'2017-09-27 09:59:46.983000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0335 ( Repeat Pattern)',NULL,'v2 Repeat Pattern',1,'ValueSet/v2-0335',NULL,'http://hl7.org/fhir/ValueSet/v2-0335',710);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (875,NULL,'2017-09-27 09:59:46.991000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0336 ( Referral Reason)',NULL,'v2 Referral Reason',1,'ValueSet/v2-0336',NULL,'http://hl7.org/fhir/ValueSet/v2-0336',711);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (876,NULL,'2017-09-27 09:59:46.998000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0337 ( Certification Status)',NULL,'v2 Certification Status',1,'ValueSet/v2-0337',NULL,'http://hl7.org/fhir/ValueSet/v2-0337',712);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (877,NULL,'2017-09-27 09:59:47.010000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0338 ( Practitioner ID Number Type)',NULL,'v2 Practitioner ID Number Type',1,'ValueSet/v2-0338',NULL,'http://hl7.org/fhir/ValueSet/v2-0338',713);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (878,NULL,'2017-09-27 09:59:47.018000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0339 ( Advanced Beneficiary Notice Code)',NULL,'v2 Advanced Beneficiary Notice Code',1,'ValueSet/v2-0339',NULL,'http://hl7.org/fhir/ValueSet/v2-0339',714);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (879,NULL,'2017-09-27 09:59:47.031000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0344 ( Patient''s Relationship to Insured)',NULL,'v2 Patient''s Relationship to Insured',1,'ValueSet/v2-0344',NULL,'http://hl7.org/fhir/ValueSet/v2-0344',715);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (880,NULL,'2017-09-27 09:59:47.074000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0350 ( Occurrence Code)',NULL,'v2 Occurrence Code',1,'ValueSet/v2-0350',NULL,'http://hl7.org/fhir/ValueSet/v2-0350',716);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (881,NULL,'2017-09-27 09:59:47.089000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0351 ( Occurrence Span)',NULL,'v2 Occurrence Span',1,'ValueSet/v2-0351',NULL,'http://hl7.org/fhir/ValueSet/v2-0351',717);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (882,NULL,'2017-09-27 09:59:47.100000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0353 ( CWE statuses)',NULL,'v2 CWE statuses',1,'ValueSet/v2-0353',NULL,'http://hl7.org/fhir/ValueSet/v2-0353',718);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (883,NULL,'2017-09-27 09:59:47.227000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0354 ( Message Structure)',NULL,'v2 Message Structure',1,'ValueSet/v2-0354',NULL,'http://hl7.org/fhir/ValueSet/v2-0354',719);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (884,NULL,'2017-09-27 09:59:47.236000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0355 ( Primary Key Value Type)',NULL,'v2 Primary Key Value Type',1,'ValueSet/v2-0355',NULL,'http://hl7.org/fhir/ValueSet/v2-0355',720);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (885,NULL,'2017-09-27 09:59:47.248000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0356 ( Alternate Character Set Handling Scheme)',NULL,'v2 Alternate Character Set Handling Scheme',1,'ValueSet/v2-0356',NULL,'http://hl7.org/fhir/ValueSet/v2-0356',721);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (886,NULL,'2017-09-27 09:59:47.262000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0357 ( Message Error Condition Codes)',NULL,'v2 Message Error Condition Codes',1,'ValueSet/v2-0357',NULL,'http://hl7.org/fhir/ValueSet/v2-0357',722);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (887,NULL,'2017-09-27 09:59:47.273000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0359 ( Diagnosis Priority)',NULL,'v2 Diagnosis Priority',1,'ValueSet/v2-0359',NULL,'http://hl7.org/fhir/ValueSet/v2-0359',723);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (888,NULL,'2017-09-27 09:59:47.301000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0360 ver 2.6 ( Degree/license/certificate)',NULL,'v2 table 0360, Version 2.3.1',1,'ValueSet/v2-2.3.1-0360',NULL,'http://hl7.org/fhir/ValueSet/v2-2.3.1-0360',724);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (889,NULL,'2017-09-27 09:59:47.330000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0360 ver 2.8.2 ( Degree/License/Certificate)',NULL,'v2 table 0360, Version 2.7',1,'ValueSet/v2-2.7-0360',NULL,'http://hl7.org/fhir/ValueSet/v2-2.7-0360',725);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (890,NULL,'2017-09-27 09:59:47.345000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0363 ( Assigning Authority)',NULL,'v2 Assigning Authority',1,'ValueSet/v2-0363',NULL,'http://hl7.org/fhir/ValueSet/v2-0363',726);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (891,NULL,'2017-09-27 09:59:47.357000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0364 ( Comment Type)',NULL,'v2 Comment Type',1,'ValueSet/v2-0364',NULL,'http://hl7.org/fhir/ValueSet/v2-0364',727);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (892,NULL,'2017-09-27 09:59:47.372000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0365 ( Equipment State)',NULL,'v2 Equipment State',1,'ValueSet/v2-0365',NULL,'http://hl7.org/fhir/ValueSet/v2-0365',728);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (893,NULL,'2017-09-27 09:59:47.386000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0366 ( Local/Remote Control State)',NULL,'v2 Local/Remote Control State',1,'ValueSet/v2-0366',NULL,'http://hl7.org/fhir/ValueSet/v2-0366',729);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (894,NULL,'2017-09-27 09:59:47.395000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0367 ( Alert Level)',NULL,'v2 Alert Level',1,'ValueSet/v2-0367',NULL,'http://hl7.org/fhir/ValueSet/v2-0367',730);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (895,NULL,'2017-09-27 09:59:47.408000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0368 ( Remote Control Command)',NULL,'v2 Remote Control Command',1,'ValueSet/v2-0368',NULL,'http://hl7.org/fhir/ValueSet/v2-0368',731);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (896,NULL,'2017-09-27 09:59:47.419000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0369 ( Specimen Role)',NULL,'v2 Specimen Role',1,'ValueSet/v2-0369',NULL,'http://hl7.org/fhir/ValueSet/v2-0369',732);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (897,NULL,'2017-09-27 09:59:47.429000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0370 ( Container Status)',NULL,'v2 Container Status',1,'ValueSet/v2-0370',NULL,'http://hl7.org/fhir/ValueSet/v2-0370',733);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (898,NULL,'2017-09-27 09:59:47.453000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0371 ( Additive/Preservative)',NULL,'v2 Additive/Preservative',1,'ValueSet/v2-0371',NULL,'http://hl7.org/fhir/ValueSet/v2-0371',734);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (899,NULL,'2017-09-27 09:59:47.463000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0372 ( Specimen Component)',NULL,'v2 Specimen Component',1,'ValueSet/v2-0372',NULL,'http://hl7.org/fhir/ValueSet/v2-0372',735);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (900,NULL,'2017-09-27 09:59:47.472000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0373 ( Treatment)',NULL,'v2 Treatment',1,'ValueSet/v2-0373',NULL,'http://hl7.org/fhir/ValueSet/v2-0373',179);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (901,NULL,'2017-09-27 09:59:47.479000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0374 ( System Induced Contaminants)',NULL,'v2 System Induced Contaminants',1,'ValueSet/v2-0374',NULL,'http://hl7.org/fhir/ValueSet/v2-0374',736);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (902,NULL,'2017-09-27 09:59:47.486000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0375 ( Artificial Blood)',NULL,'v2 Artificial Blood',1,'ValueSet/v2-0375',NULL,'http://hl7.org/fhir/ValueSet/v2-0375',737);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (903,NULL,'2017-09-27 09:59:47.498000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0376 ( Special Handling Code)',NULL,'v2 Special Handling Code',1,'ValueSet/v2-0376',NULL,'http://hl7.org/fhir/ValueSet/v2-0376',738);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (904,NULL,'2017-09-27 09:59:47.506000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0377 ( Other Environmental Factors)',NULL,'v2 Other Environmental Factors',1,'ValueSet/v2-0377',NULL,'http://hl7.org/fhir/ValueSet/v2-0377',739);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (905,NULL,'2017-09-27 09:59:47.516000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0383 ( Substance Status)',NULL,'v2 Substance Status',1,'ValueSet/v2-0383',NULL,'http://hl7.org/fhir/ValueSet/v2-0383',740);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (906,NULL,'2017-09-27 09:59:47.527000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0384 ( Substance Type)',NULL,'v2 Substance Type',1,'ValueSet/v2-0384',NULL,'http://hl7.org/fhir/ValueSet/v2-0384',741);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (907,NULL,'2017-09-27 09:59:47.540000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0387 ( Command Response)',NULL,'v2 Command Response',1,'ValueSet/v2-0387',NULL,'http://hl7.org/fhir/ValueSet/v2-0387',742);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (908,NULL,'2017-09-27 09:59:47.550000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0388 ( Processing Type)',NULL,'v2 Processing Type',1,'ValueSet/v2-0388',NULL,'http://hl7.org/fhir/ValueSet/v2-0388',743);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (909,NULL,'2017-09-27 09:59:47.558000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0389 ( Analyte Repeat Status)',NULL,'v2 Analyte Repeat Status',1,'ValueSet/v2-0389',NULL,'http://hl7.org/fhir/ValueSet/v2-0389',744);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (910,NULL,'2017-09-27 09:59:47.575000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0391 ver 2.5.1 ( Segment group)',NULL,'v2 table 0391, Version 2.4',1,'ValueSet/v2-2.4-0391',NULL,'http://hl7.org/fhir/ValueSet/v2-2.4-0391',745);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (911,NULL,'2017-09-27 09:59:47.646000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0391 ver 2.8.2 ( Segment Group)',NULL,'v2 table 0391, Version 2.6',1,'ValueSet/v2-2.6-0391',NULL,'http://hl7.org/fhir/ValueSet/v2-2.6-0391',746);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (912,NULL,'2017-09-27 09:59:47.655000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0392 ( Match Reason)',NULL,'v2 Match Reason',1,'ValueSet/v2-0392',NULL,'http://hl7.org/fhir/ValueSet/v2-0392',747);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (913,NULL,'2017-09-27 09:59:47.666000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0393 ( Match Algorithms)',NULL,'v2 Match Algorithms',1,'ValueSet/v2-0393',NULL,'http://hl7.org/fhir/ValueSet/v2-0393',748);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (914,NULL,'2017-09-27 09:59:47.675000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0394 ( Response Modality)',NULL,'v2 Response Modality',1,'ValueSet/v2-0394',NULL,'http://hl7.org/fhir/ValueSet/v2-0394',749);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (915,NULL,'2017-09-27 09:59:47.684000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0395 ( Modify Indicator)',NULL,'v2 Modify Indicator',1,'ValueSet/v2-0395',NULL,'http://hl7.org/fhir/ValueSet/v2-0395',750);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (916,NULL,'2017-09-27 09:59:47.762000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0396 ( Coding System)',NULL,'v2 Coding System',1,'ValueSet/v2-0396',NULL,'http://hl7.org/fhir/ValueSet/v2-0396',751);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (917,NULL,'2017-09-27 09:59:47.773000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0397 ( Sequencing)',NULL,'v2 Sequencing',1,'ValueSet/v2-0397',NULL,'http://hl7.org/fhir/ValueSet/v2-0397',752);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (918,NULL,'2017-09-27 09:59:47.783000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0398 ( Continuation Style Code)',NULL,'v2 Continuation Style Code',1,'ValueSet/v2-0398',NULL,'http://hl7.org/fhir/ValueSet/v2-0398',753);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (919,NULL,'2017-09-27 09:59:47.793000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0401 ( Government Reimbursement Program)',NULL,'v2 Government Reimbursement Program',1,'ValueSet/v2-0401',NULL,'http://hl7.org/fhir/ValueSet/v2-0401',754);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (920,NULL,'2017-09-27 09:59:47.801000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0402 ( School Type)',NULL,'v2 School Type',1,'ValueSet/v2-0402',NULL,'http://hl7.org/fhir/ValueSet/v2-0402',755);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (921,NULL,'2017-09-27 09:59:47.810000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0403 ( Language Ability)',NULL,'v2 Language Ability',1,'ValueSet/v2-0403',NULL,'http://hl7.org/fhir/ValueSet/v2-0403',756);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (922,NULL,'2017-09-27 09:59:47.819000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0404 ( Language Proficiency)',NULL,'v2 Language Proficiency',1,'ValueSet/v2-0404',NULL,'http://hl7.org/fhir/ValueSet/v2-0404',757);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (923,NULL,'2017-09-27 09:59:47.828000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0406 ( Organization Unit Type)',NULL,'v2 Organization Unit Type',1,'ValueSet/v2-0406',NULL,'http://hl7.org/fhir/ValueSet/v2-0406',758);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (924,NULL,'2017-09-27 09:59:47.836000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0409 ( Application Change Type)',NULL,'v2 Application Change Type',1,'ValueSet/v2-0409',NULL,'http://hl7.org/fhir/ValueSet/v2-0409',759);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (925,NULL,'2017-09-27 09:59:47.854000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0411 ( Supplemental Service Information Values)',NULL,'v2 Supplemental Service Information Values',1,'ValueSet/v2-0411',NULL,'http://hl7.org/fhir/ValueSet/v2-0411',760);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (926,NULL,'2017-09-27 09:59:47.865000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0415 ( Transfer Type)',NULL,'v2 Transfer Type',1,'ValueSet/v2-0415',NULL,'http://hl7.org/fhir/ValueSet/v2-0415',761);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (927,NULL,'2017-09-27 09:59:47.874000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0416 ( Procedure DRG Type)',NULL,'v2 Procedure DRG Type',1,'ValueSet/v2-0416',NULL,'http://hl7.org/fhir/ValueSet/v2-0416',762);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (928,NULL,'2017-09-27 09:59:47.885000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0417 ( Tissue Type Code)',NULL,'v2 Tissue Type Code',1,'ValueSet/v2-0417',NULL,'http://hl7.org/fhir/ValueSet/v2-0417',763);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (929,NULL,'2017-09-27 09:59:47.894000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0418 ( Procedure Priority)',NULL,'v2 Procedure Priority',1,'ValueSet/v2-0418',NULL,'http://hl7.org/fhir/ValueSet/v2-0418',764);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (930,NULL,'2017-09-27 09:59:47.902000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0421 ( Severity of Illness Code)',NULL,'v2 Severity of Illness Code',1,'ValueSet/v2-0421',NULL,'http://hl7.org/fhir/ValueSet/v2-0421',765);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (931,NULL,'2017-09-27 09:59:47.910000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0422 ( Triage Code)',NULL,'v2 Triage Code',1,'ValueSet/v2-0422',NULL,'http://hl7.org/fhir/ValueSet/v2-0422',766);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (932,NULL,'2017-09-27 09:59:47.916000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0423 ( Case Category Code)',NULL,'v2 Case Category Code',1,'ValueSet/v2-0423',NULL,'http://hl7.org/fhir/ValueSet/v2-0423',767);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (933,NULL,'2017-09-27 09:59:47.924000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0424 ( Gestation Category Code)',NULL,'v2 Gestation Category Code',1,'ValueSet/v2-0424',NULL,'http://hl7.org/fhir/ValueSet/v2-0424',768);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (934,NULL,'2017-09-27 09:59:47.932000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0425 ( Newborn Code)',NULL,'v2 Newborn Code',1,'ValueSet/v2-0425',NULL,'http://hl7.org/fhir/ValueSet/v2-0425',769);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (935,NULL,'2017-09-27 09:59:47.942000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0426 ( Blood Product Code)',NULL,'v2 Blood Product Code',1,'ValueSet/v2-0426',NULL,'http://hl7.org/fhir/ValueSet/v2-0426',770);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (936,NULL,'2017-09-27 09:59:47.952000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0427 ( Risk Management Incident Code)',NULL,'v2 Risk Management Incident Code',1,'ValueSet/v2-0427',NULL,'http://hl7.org/fhir/ValueSet/v2-0427',771);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (937,NULL,'2017-09-27 09:59:47.960000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0428 ( Incident Type Code)',NULL,'v2 Incident Type Code',1,'ValueSet/v2-0428',NULL,'http://hl7.org/fhir/ValueSet/v2-0428',772);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (938,NULL,'2017-09-27 09:59:47.970000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0429 ( Production Class Code)',NULL,'v2 Production Class Code',1,'ValueSet/v2-0429',NULL,'http://hl7.org/fhir/ValueSet/v2-0429',773);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (939,NULL,'2017-09-27 09:59:47.978000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0430 ( Mode of Arrival Code)',NULL,'v2 Mode of Arrival Code',1,'ValueSet/v2-0430',NULL,'http://hl7.org/fhir/ValueSet/v2-0430',774);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (940,NULL,'2017-09-27 09:59:47.986000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0431 ( Recreational Drug Use Code)',NULL,'v2 Recreational Drug Use Code',1,'ValueSet/v2-0431',NULL,'http://hl7.org/fhir/ValueSet/v2-0431',775);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (941,NULL,'2017-09-27 09:59:47.995000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0432 ( Admission Level of Care Code)',NULL,'v2 Admission Level of Care Code',1,'ValueSet/v2-0432',NULL,'http://hl7.org/fhir/ValueSet/v2-0432',776);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (942,NULL,'2017-09-27 09:59:48.004000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0433 ( Precaution Code)',NULL,'v2 Precaution Code',1,'ValueSet/v2-0433',NULL,'http://hl7.org/fhir/ValueSet/v2-0433',777);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (943,NULL,'2017-09-27 09:59:48.013000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0434 ( Patient Condition Code)',NULL,'v2 Patient Condition Code',1,'ValueSet/v2-0434',NULL,'http://hl7.org/fhir/ValueSet/v2-0434',778);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (944,NULL,'2017-09-27 09:59:48.020000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0435 ( Advance Directive Code)',NULL,'v2 Advance Directive Code',1,'ValueSet/v2-0435',NULL,'http://hl7.org/fhir/ValueSet/v2-0435',779);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (945,NULL,'2017-09-27 09:59:48.028000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0436 ( Sensitivity to Causative Agent Code)',NULL,'v2 Sensitivity to Causative Agent Code',1,'ValueSet/v2-0436',NULL,'http://hl7.org/fhir/ValueSet/v2-0436',780);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (946,NULL,'2017-09-27 09:59:48.035000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0437 ( Alert Device Code)',NULL,'v2 Alert Device Code',1,'ValueSet/v2-0437',NULL,'http://hl7.org/fhir/ValueSet/v2-0437',781);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (947,NULL,'2017-09-27 09:59:48.044000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0438 ( Allergy Clinical Status)',NULL,'v2 Allergy Clinical Status',1,'ValueSet/v2-0438',NULL,'http://hl7.org/fhir/ValueSet/v2-0438',782);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (948,NULL,'2017-09-27 09:59:48.055000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0440 ( Data Types)',NULL,'v2 Data Types',1,'ValueSet/v2-0440',NULL,'http://hl7.org/fhir/ValueSet/v2-0440',562);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (949,NULL,'2017-09-27 09:59:48.064000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0441 ( Immunization Registry Status)',NULL,'v2 Immunization Registry Status',1,'ValueSet/v2-0441',NULL,'http://hl7.org/fhir/ValueSet/v2-0441',783);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (950,NULL,'2017-09-27 09:59:48.072000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0442 ( Location Service Code)',NULL,'v2 Location Service Code',1,'ValueSet/v2-0442',NULL,'http://hl7.org/fhir/ValueSet/v2-0442',784);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (951,NULL,'2017-09-27 09:59:48.086000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0443 ( Provider Role)',NULL,'v2 Provider Role',1,'ValueSet/v2-0443',NULL,'http://hl7.org/fhir/ValueSet/v2-0443',785);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (952,NULL,'2017-09-27 09:59:48.094000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0444 ( Name Assembly Order)',NULL,'v2 Name Assembly Order',1,'ValueSet/v2-0444',NULL,'http://hl7.org/fhir/ValueSet/v2-0444',786);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (953,NULL,'2017-09-27 09:59:48.101000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0445 ( Identity Reliability Code)',NULL,'v2 Identity Reliability Code',1,'ValueSet/v2-0445',NULL,'http://hl7.org/fhir/ValueSet/v2-0445',787);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (954,NULL,'2017-09-27 09:59:48.110000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0450 ( Event Type)',NULL,'v2 Event Type',1,'ValueSet/v2-0450',NULL,'http://hl7.org/fhir/ValueSet/v2-0450',788);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (955,NULL,'2017-09-27 09:59:48.117000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0452 ( Health Care Provider Type Code)',NULL,'v2 Health Care Provider Type Code',1,'ValueSet/v2-0452',NULL,'http://hl7.org/fhir/ValueSet/v2-0452',789);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (956,NULL,'2017-09-27 09:59:48.124000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0453 ( Health Care Provider Classification)',NULL,'v2 Health Care Provider Classification',1,'ValueSet/v2-0453',NULL,'http://hl7.org/fhir/ValueSet/v2-0453',790);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (957,NULL,'2017-09-27 09:59:48.132000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0454 ( Health Care Provider Area of Specialization)',NULL,'v2 Health Care Provider Area of Specialization',1,'ValueSet/v2-0454',NULL,'http://hl7.org/fhir/ValueSet/v2-0454',791);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (958,NULL,'2017-09-27 09:59:48.141000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0455 ( Type of Bill Code)',NULL,'v2 Type of Bill Code',1,'ValueSet/v2-0455',NULL,'http://hl7.org/fhir/ValueSet/v2-0455',792);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (959,NULL,'2017-09-27 09:59:48.149000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0456 ( Revenue code)',NULL,'v2 Revenue code',1,'ValueSet/v2-0456',NULL,'http://hl7.org/fhir/ValueSet/v2-0456',793);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (960,NULL,'2017-09-27 09:59:48.160000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0457 ( Overall Claim Disposition Code)',NULL,'v2 Overall Claim Disposition Code',1,'ValueSet/v2-0457',NULL,'http://hl7.org/fhir/ValueSet/v2-0457',794);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (961,NULL,'2017-09-27 09:59:48.168000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0459 ( Reimbursement Action Code)',NULL,'v2 Reimbursement Action Code',1,'ValueSet/v2-0459',NULL,'http://hl7.org/fhir/ValueSet/v2-0459',795);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (962,NULL,'2017-09-27 09:59:48.176000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0460 ( Denial or Rejection Code)',NULL,'v2 Denial or Rejection Code',1,'ValueSet/v2-0460',NULL,'http://hl7.org/fhir/ValueSet/v2-0460',796);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (963,NULL,'2017-09-27 09:59:48.184000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0465 ( Name/Address Representation)',NULL,'v2 Name/Address Representation',1,'ValueSet/v2-0465',NULL,'http://hl7.org/fhir/ValueSet/v2-0465',797);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (964,NULL,'2017-09-27 09:59:48.192000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0466 ( Ambulatory Payment Classification Code)',NULL,'v2 Ambulatory Payment Classification Code',1,'ValueSet/v2-0466',NULL,'http://hl7.org/fhir/ValueSet/v2-0466',798);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (965,NULL,'2017-09-27 09:59:48.200000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0468 ( Payment Adjustment Code)',NULL,'v2 Payment Adjustment Code',1,'ValueSet/v2-0468',NULL,'http://hl7.org/fhir/ValueSet/v2-0468',799);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (966,NULL,'2017-09-27 09:59:48.210000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0469 ( Packaging Status Code)',NULL,'v2 Packaging Status Code',1,'ValueSet/v2-0469',NULL,'http://hl7.org/fhir/ValueSet/v2-0469',800);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (967,NULL,'2017-09-27 09:59:48.224000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0470 ( - Reimbursement Type Code)',NULL,'v2 - Reimbursement Type Code',1,'ValueSet/v2-0470',NULL,'http://hl7.org/fhir/ValueSet/v2-0470',801);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (968,NULL,'2017-09-27 09:59:48.235000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0472 ( TQ Conjunction ID)',NULL,'v2 TQ Conjunction ID',1,'ValueSet/v2-0472',NULL,'http://hl7.org/fhir/ValueSet/v2-0472',802);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (969,NULL,'2017-09-27 09:59:48.245000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0473 ( Formulary Status)',NULL,'v2 Formulary Status',1,'ValueSet/v2-0473',NULL,'http://hl7.org/fhir/ValueSet/v2-0473',803);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (970,NULL,'2017-09-27 09:59:48.263000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0474 ( Organization Unit Type)',NULL,'v2 Organization Unit Type',1,'ValueSet/v2-0474',NULL,'http://hl7.org/fhir/ValueSet/v2-0474',804);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (971,NULL,'2017-09-27 09:59:48.281000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0475 ( Charge Type Reason)',NULL,'v2 Charge Type Reason',1,'ValueSet/v2-0475',NULL,'http://hl7.org/fhir/ValueSet/v2-0475',805);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (972,NULL,'2017-09-27 09:59:48.294000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0477 ( Controlled Substance Schedule)',NULL,'v2 Controlled Substance Schedule',1,'ValueSet/v2-0477',NULL,'http://hl7.org/fhir/ValueSet/v2-0477',806);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (973,NULL,'2017-09-27 09:59:48.304000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0478 ( Formulary Status)',NULL,'v2 Formulary Status',1,'ValueSet/v2-0478',NULL,'http://hl7.org/fhir/ValueSet/v2-0478',807);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (974,NULL,'2017-09-27 09:59:48.315000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0480 ( Pharmacy Order Types)',NULL,'v2 Pharmacy Order Types',1,'ValueSet/v2-0480',NULL,'http://hl7.org/fhir/ValueSet/v2-0480',808);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (975,NULL,'2017-09-27 09:59:48.339000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0482 ( Order Type)',NULL,'v2 Order Type',1,'ValueSet/v2-0482',NULL,'http://hl7.org/fhir/ValueSet/v2-0482',809);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (976,NULL,'2017-09-27 09:59:48.353000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0483 ( Authorization Mode)',NULL,'v2 Authorization Mode',1,'ValueSet/v2-0483',NULL,'http://hl7.org/fhir/ValueSet/v2-0483',810);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (977,NULL,'2017-09-27 09:59:48.366000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0484 ( Dispense Type)',NULL,'v2 Dispense Type',1,'ValueSet/v2-0484',NULL,'http://hl7.org/fhir/ValueSet/v2-0484',811);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (978,NULL,'2017-09-27 09:59:48.385000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0485 ( Extended Priority Codes)',NULL,'v2 Extended Priority Codes',1,'ValueSet/v2-0485',NULL,'http://hl7.org/fhir/ValueSet/v2-0485',812);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (979,NULL,'2017-09-27 09:59:48.720000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0487 ( Specimen Type)',NULL,'v2 Specimen Type',1,'ValueSet/v2-0487',NULL,'http://hl7.org/fhir/ValueSet/v2-0487',813);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (980,NULL,'2017-09-27 09:59:48.767000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0488 ( Specimen Collection Method)',NULL,'v2 Specimen Collection Method',1,'ValueSet/v2-0488',NULL,'http://hl7.org/fhir/ValueSet/v2-0488',318);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (981,NULL,'2017-09-27 09:59:48.783000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0489 ( Risk Codes)',NULL,'v2 Risk Codes',1,'ValueSet/v2-0489',NULL,'http://hl7.org/fhir/ValueSet/v2-0489',814);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (982,NULL,'2017-09-27 09:59:48.809000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0490 ( Specimen Reject Reason)',NULL,'v2 Specimen Reject Reason',1,'ValueSet/v2-0490',NULL,'http://hl7.org/fhir/ValueSet/v2-0490',368);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (983,NULL,'2017-09-27 09:59:48.820000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0491 ( Specimen Quality)',NULL,'v2 Specimen Quality',1,'ValueSet/v2-0491',NULL,'http://hl7.org/fhir/ValueSet/v2-0491',815);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (984,NULL,'2017-09-27 09:59:48.831000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0492 ( Specimen Appropriateness)',NULL,'v2 Specimen Appropriateness',1,'ValueSet/v2-0492',NULL,'http://hl7.org/fhir/ValueSet/v2-0492',816);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (985,NULL,'2017-09-27 09:59:48.845000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0493 ( Specimen Condition)',NULL,'v2 Specimen Condition',1,'ValueSet/v2-0493',NULL,'http://hl7.org/fhir/ValueSet/v2-0493',817);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (986,NULL,'2017-09-27 09:59:48.856000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0494 ( Specimen Child Role)',NULL,'v2 Specimen Child Role',1,'ValueSet/v2-0494',NULL,'http://hl7.org/fhir/ValueSet/v2-0494',818);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (987,NULL,'2017-09-27 09:59:48.870000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0495 ( Body Site Modifier)',NULL,'v2 Body Site Modifier',1,'ValueSet/v2-0495',NULL,'http://hl7.org/fhir/ValueSet/v2-0495',819);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (988,NULL,'2017-09-27 09:59:48.940000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0496 ( Consent Type)',NULL,'v2 Consent Type',1,'ValueSet/v2-0496',NULL,'http://hl7.org/fhir/ValueSet/v2-0496',820);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (989,NULL,'2017-09-27 09:59:48.953000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0497 ( Consent Mode)',NULL,'v2 Consent Mode',1,'ValueSet/v2-0497',NULL,'http://hl7.org/fhir/ValueSet/v2-0497',821);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (990,NULL,'2017-09-27 09:59:48.964000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0498 ( Consent Status)',NULL,'v2 Consent Status',1,'ValueSet/v2-0498',NULL,'http://hl7.org/fhir/ValueSet/v2-0498',822);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (991,NULL,'2017-09-27 09:59:48.972000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0499 ( Consent Bypass Reason)',NULL,'v2 Consent Bypass Reason',1,'ValueSet/v2-0499',NULL,'http://hl7.org/fhir/ValueSet/v2-0499',823);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (992,NULL,'2017-09-27 09:59:48.981000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0500 ( Consent Disclosure Level)',NULL,'v2 Consent Disclosure Level',1,'ValueSet/v2-0500',NULL,'http://hl7.org/fhir/ValueSet/v2-0500',824);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (993,NULL,'2017-09-27 09:59:48.991000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0501 ( Consent Non-Disclosure Reason)',NULL,'v2 Consent Non-Disclosure Reason',1,'ValueSet/v2-0501',NULL,'http://hl7.org/fhir/ValueSet/v2-0501',825);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (994,NULL,'2017-09-27 09:59:49.002000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0502 ( Non-Subject Consenter Reason)',NULL,'v2 Non-Subject Consenter Reason',1,'ValueSet/v2-0502',NULL,'http://hl7.org/fhir/ValueSet/v2-0502',826);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (995,NULL,'2017-09-27 09:59:49.012000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0503 ( Sequence/Results Flag)',NULL,'v2 Sequence/Results Flag',1,'ValueSet/v2-0503',NULL,'http://hl7.org/fhir/ValueSet/v2-0503',827);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (996,NULL,'2017-09-27 09:59:49.023000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0504 ( Sequence Condition Code)',NULL,'v2 Sequence Condition Code',1,'ValueSet/v2-0504',NULL,'http://hl7.org/fhir/ValueSet/v2-0504',828);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (997,NULL,'2017-09-27 09:59:49.031000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0505 ( Cyclic Entry/Exit Indicator)',NULL,'v2 Cyclic Entry/Exit Indicator',1,'ValueSet/v2-0505',NULL,'http://hl7.org/fhir/ValueSet/v2-0505',829);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (998,NULL,'2017-09-27 09:59:49.045000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0506 ( Service Request Relationship)',NULL,'v2 Service Request Relationship',1,'ValueSet/v2-0506',NULL,'http://hl7.org/fhir/ValueSet/v2-0506',830);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (999,NULL,'2017-09-27 09:59:49.058000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0507 ( Observation Result Handling)',NULL,'v2 Observation Result Handling',1,'ValueSet/v2-0507',NULL,'http://hl7.org/fhir/ValueSet/v2-0507',831);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1000,NULL,'2017-09-27 09:59:49.069000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0508 ( Blood Product Processing Requirements)',NULL,'v2 Blood Product Processing Requirements',1,'ValueSet/v2-0508',NULL,'http://hl7.org/fhir/ValueSet/v2-0508',832);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1001,NULL,'2017-09-27 09:59:49.081000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0510 ( Blood Product Dispense Status)',NULL,'v2 Blood Product Dispense Status',1,'ValueSet/v2-0510',NULL,'http://hl7.org/fhir/ValueSet/v2-0510',833);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1002,NULL,'2017-09-27 09:59:49.092000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0511 ( BP Observation Status Codes Interpretation)',NULL,'v2 BP Observation Status Codes Interpretation',1,'ValueSet/v2-0511',NULL,'http://hl7.org/fhir/ValueSet/v2-0511',834);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1003,NULL,'2017-09-27 09:59:49.102000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0513 ( Blood Product Transfusion/Disposition Status)',NULL,'v2 Blood Product Transfusion/Disposition Status',1,'ValueSet/v2-0513',NULL,'http://hl7.org/fhir/ValueSet/v2-0513',835);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1004,NULL,'2017-09-27 09:59:49.114000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0514 ( Transfusion Adverse Reaction)',NULL,'v2 Transfusion Adverse Reaction',1,'ValueSet/v2-0514',NULL,'http://hl7.org/fhir/ValueSet/v2-0514',836);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1005,NULL,'2017-09-27 09:59:49.123000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0516 ( Error Severity)',NULL,'v2 Error Severity',1,'ValueSet/v2-0516',NULL,'http://hl7.org/fhir/ValueSet/v2-0516',837);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1006,NULL,'2017-09-27 09:59:49.131000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0517 ( Inform Person Code)',NULL,'v2 Inform Person Code',1,'ValueSet/v2-0517',NULL,'http://hl7.org/fhir/ValueSet/v2-0517',838);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1007,NULL,'2017-09-27 09:59:49.142000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0518 ( Override Type)',NULL,'v2 Override Type',1,'ValueSet/v2-0518',NULL,'http://hl7.org/fhir/ValueSet/v2-0518',839);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1008,NULL,'2017-09-27 09:59:49.153000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0520 ( Message Waiting Priority)',NULL,'v2 Message Waiting Priority',1,'ValueSet/v2-0520',NULL,'http://hl7.org/fhir/ValueSet/v2-0520',840);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1009,NULL,'2017-09-27 09:59:49.163000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0523 ( Computation Type)',NULL,'v2 Computation Type',1,'ValueSet/v2-0523',NULL,'http://hl7.org/fhir/ValueSet/v2-0523',841);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1010,NULL,'2017-09-27 09:59:49.175000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0524 ( Sequence condition)',NULL,'v2 Sequence condition',1,'ValueSet/v2-0524',NULL,'http://hl7.org/fhir/ValueSet/v2-0524',842);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1011,NULL,'2017-09-27 09:59:49.185000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0527 ( Calendar Alignment)',NULL,'v2 Calendar Alignment',1,'ValueSet/v2-0527',NULL,'http://hl7.org/fhir/ValueSet/v2-0527',843);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1012,NULL,'2017-09-27 09:59:49.195000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0528 ( Event Related Period)',NULL,'v2 Event Related Period',1,'ValueSet/v2-0528',NULL,'http://hl7.org/fhir/ValueSet/v2-0528',844);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1013,NULL,'2017-09-27 09:59:49.204000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0529 ( Precision)',NULL,'v2 Precision',1,'ValueSet/v2-0529',NULL,'http://hl7.org/fhir/ValueSet/v2-0529',845);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1014,NULL,'2017-09-27 09:59:49.213000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0530 ( Organization, Agency, Department)',NULL,'v2 Organization, Agency, Department',1,'ValueSet/v2-0530',NULL,'http://hl7.org/fhir/ValueSet/v2-0530',846);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1015,NULL,'2017-09-27 09:59:49.219000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0532 ( Expanded Yes/no Indicator)',NULL,'v2 Expanded Yes/no Indicator',1,'ValueSet/v2-0532',NULL,'http://hl7.org/fhir/ValueSet/v2-0532',NULL);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1016,NULL,'2017-09-27 09:59:49.235000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0534 ( Notify Clergy Code)',NULL,'v2 Notify Clergy Code',1,'ValueSet/v2-0534',NULL,'http://hl7.org/fhir/ValueSet/v2-0534',847);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1017,NULL,'2017-09-27 09:59:49.243000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0535 ( Signature Code)',NULL,'v2 Signature Code',1,'ValueSet/v2-0535',NULL,'http://hl7.org/fhir/ValueSet/v2-0535',848);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1018,NULL,'2017-09-27 09:59:49.253000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0536 ( Certificate Status)',NULL,'v2 Certificate Status',1,'ValueSet/v2-0536',NULL,'http://hl7.org/fhir/ValueSet/v2-0536',849);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1019,NULL,'2017-09-27 09:59:49.265000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0538 ( Institution Relationship Type)',NULL,'v2 Institution Relationship Type',1,'ValueSet/v2-0538',NULL,'http://hl7.org/fhir/ValueSet/v2-0538',850);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1020,NULL,'2017-09-27 09:59:49.273000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0540 ( Inactive Reason Code)',NULL,'v2 Inactive Reason Code',1,'ValueSet/v2-0540',NULL,'http://hl7.org/fhir/ValueSet/v2-0540',851);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1021,NULL,'2017-09-27 09:59:49.288000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0544 ( Container Condition)',NULL,'v2 Container Condition',1,'ValueSet/v2-0544',NULL,'http://hl7.org/fhir/ValueSet/v2-0544',852);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1022,NULL,'2017-09-27 09:59:49.296000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0547 ( Jurisdictional Breadth)',NULL,'v2 Jurisdictional Breadth',1,'ValueSet/v2-0547',NULL,'http://hl7.org/fhir/ValueSet/v2-0547',853);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1023,NULL,'2017-09-27 09:59:49.304000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0548 ( Signatory''s Relationship to Subject)',NULL,'v2 Signatory''s Relationship to Subject',1,'ValueSet/v2-0548',NULL,'http://hl7.org/fhir/ValueSet/v2-0548',854);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1024,NULL,'2017-09-27 09:59:49.424000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0550 ( Body Parts)',NULL,'v2 Body Parts',1,'ValueSet/v2-0550',NULL,'http://hl7.org/fhir/ValueSet/v2-0550',855);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1025,NULL,'2017-09-27 09:59:49.432000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0552 ( Advanced Beneficiary Notice Override Reason)',NULL,'v2 Advanced Beneficiary Notice Override Reason',1,'ValueSet/v2-0552',NULL,'http://hl7.org/fhir/ValueSet/v2-0552',856);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1026,NULL,'2017-09-27 09:59:49.445000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0553 ( Invoice Control Code)',NULL,'v2 Invoice Control Code',1,'ValueSet/v2-0553',NULL,'http://hl7.org/fhir/ValueSet/v2-0553',857);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1027,NULL,'2017-09-27 09:59:49.452000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0554 ( Invoice Reason Codes)',NULL,'v2 Invoice Reason Codes',1,'ValueSet/v2-0554',NULL,'http://hl7.org/fhir/ValueSet/v2-0554',858);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1028,NULL,'2017-09-27 09:59:49.461000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0555 ( Invoice Type)',NULL,'v2 Invoice Type',1,'ValueSet/v2-0555',NULL,'http://hl7.org/fhir/ValueSet/v2-0555',859);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1029,NULL,'2017-09-27 09:59:49.469000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0556 ( Benefit Group)',NULL,'v2 Benefit Group',1,'ValueSet/v2-0556',NULL,'http://hl7.org/fhir/ValueSet/v2-0556',860);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1030,NULL,'2017-09-27 09:59:49.476000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0557 ( Payee Type)',NULL,'v2 Payee Type',1,'ValueSet/v2-0557',NULL,'http://hl7.org/fhir/ValueSet/v2-0557',861);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1031,NULL,'2017-09-27 09:59:49.484000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0558 ( Payee Relationship to Invoice)',NULL,'v2 Payee Relationship to Invoice',1,'ValueSet/v2-0558',NULL,'http://hl7.org/fhir/ValueSet/v2-0558',862);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1032,NULL,'2017-09-27 09:59:49.492000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0559 ( Product/Service Status)',NULL,'v2 Product/Service Status',1,'ValueSet/v2-0559',NULL,'http://hl7.org/fhir/ValueSet/v2-0559',863);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1033,NULL,'2017-09-27 09:59:49.501000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0561 ( Product/Services Clarification Codes)',NULL,'v2 Product/Services Clarification Codes',1,'ValueSet/v2-0561',NULL,'http://hl7.org/fhir/ValueSet/v2-0561',864);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1034,NULL,'2017-09-27 09:59:49.509000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0562 ( Processing Consideration Codes)',NULL,'v2 Processing Consideration Codes',1,'ValueSet/v2-0562',NULL,'http://hl7.org/fhir/ValueSet/v2-0562',865);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1035,NULL,'2017-09-27 09:59:49.517000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0564 ( Adjustment Category Code)',NULL,'v2 Adjustment Category Code',1,'ValueSet/v2-0564',NULL,'http://hl7.org/fhir/ValueSet/v2-0564',866);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1036,NULL,'2017-09-27 09:59:49.528000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0565 ( Provider Adjustment Reason Code)',NULL,'v2 Provider Adjustment Reason Code',1,'ValueSet/v2-0565',NULL,'http://hl7.org/fhir/ValueSet/v2-0565',867);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1037,NULL,'2017-09-27 09:59:49.538000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0566 ( Blood Unit Type)',NULL,'v2 Blood Unit Type',1,'ValueSet/v2-0566',NULL,'http://hl7.org/fhir/ValueSet/v2-0566',868);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1038,NULL,'2017-09-27 09:59:49.549000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0569 ( Adjustment Action)',NULL,'v2 Adjustment Action',1,'ValueSet/v2-0569',NULL,'http://hl7.org/fhir/ValueSet/v2-0569',869);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1039,NULL,'2017-09-27 09:59:49.558000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0570 ( Payment Method Code)',NULL,'v2 Payment Method Code',1,'ValueSet/v2-0570',NULL,'http://hl7.org/fhir/ValueSet/v2-0570',870);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1040,NULL,'2017-09-27 09:59:49.567000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0571 ( Invoice Processing Results Status)',NULL,'v2 Invoice Processing Results Status',1,'ValueSet/v2-0571',NULL,'http://hl7.org/fhir/ValueSet/v2-0571',871);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1041,NULL,'2017-09-27 09:59:49.574000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0572 ( Tax status)',NULL,'v2 Tax status',1,'ValueSet/v2-0572',NULL,'http://hl7.org/fhir/ValueSet/v2-0572',872);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1042,NULL,'2017-09-27 09:59:49.581000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0615 ( User Authentication Credential Type Code)',NULL,'v2 User Authentication Credential Type Code',1,'ValueSet/v2-0615',NULL,'http://hl7.org/fhir/ValueSet/v2-0615',873);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1043,NULL,'2017-09-27 09:59:49.589000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0616 ( Address Expiration Reason)',NULL,'v2 Address Expiration Reason',1,'ValueSet/v2-0616',NULL,'http://hl7.org/fhir/ValueSet/v2-0616',874);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1044,NULL,'2017-09-27 09:59:49.596000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0617 ( Address Usage)',NULL,'v2 Address Usage',1,'ValueSet/v2-0617',NULL,'http://hl7.org/fhir/ValueSet/v2-0617',875);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1045,NULL,'2017-09-27 09:59:49.603000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0618 ( Protection Code)',NULL,'v2 Protection Code',1,'ValueSet/v2-0618',NULL,'http://hl7.org/fhir/ValueSet/v2-0618',876);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1046,NULL,'2017-09-27 09:59:49.610000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0625 ( Item Status Codes)',NULL,'v2 Item Status Codes',1,'ValueSet/v2-0625',NULL,'http://hl7.org/fhir/ValueSet/v2-0625',877);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1047,NULL,'2017-09-27 09:59:49.617000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0634 ( Item Importance Codes)',NULL,'v2 Item Importance Codes',1,'ValueSet/v2-0634',NULL,'http://hl7.org/fhir/ValueSet/v2-0634',878);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1048,NULL,'2017-09-27 09:59:49.624000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0642 ( Reorder Theory Codes)',NULL,'v2 Reorder Theory Codes',1,'ValueSet/v2-0642',NULL,'http://hl7.org/fhir/ValueSet/v2-0642',879);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1049,NULL,'2017-09-27 09:59:49.630000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0651 ( Labor Calculation Type)',NULL,'v2 Labor Calculation Type',1,'ValueSet/v2-0651',NULL,'http://hl7.org/fhir/ValueSet/v2-0651',880);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1050,NULL,'2017-09-27 09:59:49.639000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0653 ( Date Format)',NULL,'v2 Date Format',1,'ValueSet/v2-0653',NULL,'http://hl7.org/fhir/ValueSet/v2-0653',881);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1051,NULL,'2017-09-27 09:59:49.646000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0657 ( Device Type)',NULL,'v2 Device Type',1,'ValueSet/v2-0657',NULL,'http://hl7.org/fhir/ValueSet/v2-0657',882);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1052,NULL,'2017-09-27 09:59:49.655000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0659 ( Lot Control)',NULL,'v2 Lot Control',1,'ValueSet/v2-0659',NULL,'http://hl7.org/fhir/ValueSet/v2-0659',883);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1053,NULL,'2017-09-27 09:59:49.662000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0667 ( Device Data State)',NULL,'v2 Device Data State',1,'ValueSet/v2-0667',NULL,'http://hl7.org/fhir/ValueSet/v2-0667',884);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1054,NULL,'2017-09-27 09:59:49.670000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0669 ( Load Status)',NULL,'v2 Load Status',1,'ValueSet/v2-0669',NULL,'http://hl7.org/fhir/ValueSet/v2-0669',885);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1055,NULL,'2017-09-27 09:59:49.677000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0682 ( Device Status)',NULL,'v2 Device Status',1,'ValueSet/v2-0682',NULL,'http://hl7.org/fhir/ValueSet/v2-0682',886);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1056,NULL,'2017-09-27 09:59:49.694000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0702 ( Cycle Type)',NULL,'v2 Cycle Type',1,'ValueSet/v2-0702',NULL,'http://hl7.org/fhir/ValueSet/v2-0702',887);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1057,NULL,'2017-09-27 09:59:49.705000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0717 ( Access Restriction Value)',NULL,'v2 Access Restriction Value',1,'ValueSet/v2-0717',NULL,'http://hl7.org/fhir/ValueSet/v2-0717',888);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1058,NULL,'2017-09-27 09:59:49.716000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0719 ( Access Restriction Reason Code)',NULL,'v2 Access Restriction Reason Code',1,'ValueSet/v2-0719',NULL,'http://hl7.org/fhir/ValueSet/v2-0719',889);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1059,NULL,'2017-09-27 09:59:49.727000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0725 ( Mood Codes)',NULL,'v2 Mood Codes',1,'ValueSet/v2-0725',NULL,'http://hl7.org/fhir/ValueSet/v2-0725',890);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1060,NULL,'2017-09-27 09:59:49.736000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0728 ( CCL Value)',NULL,'v2 CCL Value',1,'ValueSet/v2-0728',NULL,'http://hl7.org/fhir/ValueSet/v2-0728',891);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1061,NULL,'2017-09-27 09:59:49.745000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0731 ( DRG Diagnosis Determination Status)',NULL,'v2 DRG Diagnosis Determination Status',1,'ValueSet/v2-0731',NULL,'http://hl7.org/fhir/ValueSet/v2-0731',892);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1062,NULL,'2017-09-27 09:59:49.762000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0734 ( Grouper Status)',NULL,'v2 Grouper Status',1,'ValueSet/v2-0734',NULL,'http://hl7.org/fhir/ValueSet/v2-0734',893);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1063,NULL,'2017-09-27 09:59:49.770000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0739 ( DRG Status Patient)',NULL,'v2 DRG Status Patient',1,'ValueSet/v2-0739',NULL,'http://hl7.org/fhir/ValueSet/v2-0739',894);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1064,NULL,'2017-09-27 09:59:49.778000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0742 ( DRG Status Financial Calculation)',NULL,'v2 DRG Status Financial Calculation',1,'ValueSet/v2-0742',NULL,'http://hl7.org/fhir/ValueSet/v2-0742',895);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1065,NULL,'2017-09-27 09:59:49.785000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0749 ( DRG Grouping Status)',NULL,'v2 DRG Grouping Status',1,'ValueSet/v2-0749',NULL,'http://hl7.org/fhir/ValueSet/v2-0749',896);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1066,NULL,'2017-09-27 09:59:49.793000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0755 ( Status Weight At Birth)',NULL,'v2 Status Weight At Birth',1,'ValueSet/v2-0755',NULL,'http://hl7.org/fhir/ValueSet/v2-0755',897);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1067,NULL,'2017-09-27 09:59:49.800000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0757 ( DRG Status Respiration Minutes)',NULL,'v2 DRG Status Respiration Minutes',1,'ValueSet/v2-0757',NULL,'http://hl7.org/fhir/ValueSet/v2-0757',898);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1068,NULL,'2017-09-27 09:59:49.807000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0759 ( Status Admission)',NULL,'v2 Status Admission',1,'ValueSet/v2-0759',NULL,'http://hl7.org/fhir/ValueSet/v2-0759',899);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1069,NULL,'2017-09-27 09:59:49.815000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0761 ( DRG Procedure Determination Status)',NULL,'v2 DRG Procedure Determination Status',1,'ValueSet/v2-0761',NULL,'http://hl7.org/fhir/ValueSet/v2-0761',900);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1070,NULL,'2017-09-27 09:59:49.822000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0763 ( DRG Procedure Relevance)',NULL,'v2 DRG Procedure Relevance',1,'ValueSet/v2-0763',NULL,'http://hl7.org/fhir/ValueSet/v2-0763',901);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1071,NULL,'2017-09-27 09:59:49.829000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0776 ( Item Status)',NULL,'v2 Item Status',1,'ValueSet/v2-0776',NULL,'http://hl7.org/fhir/ValueSet/v2-0776',902);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1072,NULL,'2017-09-27 09:59:49.838000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0778 ( Item Type)',NULL,'v2 Item Type',1,'ValueSet/v2-0778',NULL,'http://hl7.org/fhir/ValueSet/v2-0778',903);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1073,NULL,'2017-09-27 09:59:49.845000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0790 ( Approving Regulatory Agency)',NULL,'v2 Approving Regulatory Agency',1,'ValueSet/v2-0790',NULL,'http://hl7.org/fhir/ValueSet/v2-0790',904);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1074,NULL,'2017-09-27 09:59:49.852000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0793 ( Ruling Act)',NULL,'v2 Ruling Act',1,'ValueSet/v2-0793',NULL,'http://hl7.org/fhir/ValueSet/v2-0793',905);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1075,NULL,'2017-09-27 09:59:49.859000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0806 ( Sterilization Type)',NULL,'v2 Sterilization Type',1,'ValueSet/v2-0806',NULL,'http://hl7.org/fhir/ValueSet/v2-0806',906);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1076,NULL,'2017-09-27 09:59:49.866000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0818 ( Package)',NULL,'v2 Package',1,'ValueSet/v2-0818',NULL,'http://hl7.org/fhir/ValueSet/v2-0818',907);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1077,NULL,'2017-09-27 09:59:49.874000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0834 ( MIME Types)',NULL,'v2 MIME Types',1,'ValueSet/v2-0834',NULL,'http://hl7.org/fhir/ValueSet/v2-0834',908);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1078,NULL,'2017-09-27 09:59:49.884000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0868 ( Telecommunication Expiration Reason)',NULL,'v2 Telecommunication Expiration Reason',1,'ValueSet/v2-0868',NULL,'http://hl7.org/fhir/ValueSet/v2-0868',909);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1079,NULL,'2017-09-27 09:59:49.895000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0871 ( Supply Risk Codes)',NULL,'v2 Supply Risk Codes',1,'ValueSet/v2-0871',NULL,'http://hl7.org/fhir/ValueSet/v2-0871',910);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1080,NULL,'2017-09-27 09:59:49.904000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0881 ( Role Executing Physician)',NULL,'v2 Role Executing Physician',1,'ValueSet/v2-0881',NULL,'http://hl7.org/fhir/ValueSet/v2-0881',911);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1081,NULL,'2017-09-27 09:59:49.911000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0882 ( Medical Role Executing Physician)',NULL,'v2 Medical Role Executing Physician',1,'ValueSet/v2-0882',NULL,'http://hl7.org/fhir/ValueSet/v2-0882',912);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1082,NULL,'2017-09-27 09:59:49.918000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0894 ( Side of body)',NULL,'v2 Side of body',1,'ValueSet/v2-0894',NULL,'http://hl7.org/fhir/ValueSet/v2-0894',913);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1083,NULL,'2017-09-27 09:59:49.925000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0895 ( Present On Admission (POA) Indicator)',NULL,'v2 Present On Admission (POA) Indicator',1,'ValueSet/v2-0895',NULL,'http://hl7.org/fhir/ValueSet/v2-0895',914);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1084,NULL,'2017-09-27 09:59:49.933000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0904 ( Security Check Scheme)',NULL,'v2 Security Check Scheme',1,'ValueSet/v2-0904',NULL,'http://hl7.org/fhir/ValueSet/v2-0904',915);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1085,NULL,'2017-09-27 09:59:49.942000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0905 ( Shipment Status)',NULL,'v2 Shipment Status',1,'ValueSet/v2-0905',NULL,'http://hl7.org/fhir/ValueSet/v2-0905',916);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1086,NULL,'2017-09-27 09:59:49.953000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0906 ( ActPriority)',NULL,'v2 ActPriority',1,'ValueSet/v2-0906',NULL,'http://hl7.org/fhir/ValueSet/v2-0906',917);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1087,NULL,'2017-09-27 09:59:49.965000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0907 ( Confidentiality)',NULL,'v2 Confidentiality',1,'ValueSet/v2-0907',NULL,'http://hl7.org/fhir/ValueSet/v2-0907',918);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1088,NULL,'2017-09-27 09:59:49.973000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0909 ( Patient Results Release Categorization Scheme)',NULL,'v2 Patient Results Release Categorization Scheme',1,'ValueSet/v2-0909',NULL,'http://hl7.org/fhir/ValueSet/v2-0909',919);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1089,NULL,'2017-09-27 09:59:49.989000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0912 ( Participation)',NULL,'v2 Participation',1,'ValueSet/v2-0912',NULL,'http://hl7.org/fhir/ValueSet/v2-0912',920);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1090,NULL,'2017-09-27 09:59:49.997000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0914 ( Root Cause)',NULL,'v2 Root Cause',1,'ValueSet/v2-0914',NULL,'http://hl7.org/fhir/ValueSet/v2-0914',921);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1091,NULL,'2017-09-27 09:59:50.006000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0916 ( Relevant Clincial Information)',NULL,'v2 Relevant Clincial Information',1,'ValueSet/v2-0916',NULL,'http://hl7.org/fhir/ValueSet/v2-0916',922);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1092,NULL,'2017-09-27 09:59:50.013000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0917 ( Bolus Type)',NULL,'v2 Bolus Type',1,'ValueSet/v2-0917',NULL,'http://hl7.org/fhir/ValueSet/v2-0917',923);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1093,NULL,'2017-09-27 09:59:50.020000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0918 ( PCA Type)',NULL,'v2 PCA Type',1,'ValueSet/v2-0918',NULL,'http://hl7.org/fhir/ValueSet/v2-0918',924);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1094,NULL,'2017-09-27 09:59:50.027000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0919 ( Exclusive Test)',NULL,'v2 Exclusive Test',1,'ValueSet/v2-0919',NULL,'http://hl7.org/fhir/ValueSet/v2-0919',925);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1095,NULL,'2017-09-27 09:59:50.034000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0920 ( Preferred Specimen/Attribute Status)',NULL,'v2 Preferred Specimen/Attribute Status',1,'ValueSet/v2-0920',NULL,'http://hl7.org/fhir/ValueSet/v2-0920',926);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1096,NULL,'2017-09-27 09:59:50.043000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0921 ( Certification Type Code)',NULL,'v2 Certification Type Code',1,'ValueSet/v2-0921',NULL,'http://hl7.org/fhir/ValueSet/v2-0921',927);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1097,NULL,'2017-09-27 09:59:50.052000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0922 ( Certification Category Code)',NULL,'v2 Certification Category Code',1,'ValueSet/v2-0922',NULL,'http://hl7.org/fhir/ValueSet/v2-0922',928);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1098,NULL,'2017-09-27 09:59:50.059000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0923 ( Process Interruption)',NULL,'v2 Process Interruption',1,'ValueSet/v2-0923',NULL,'http://hl7.org/fhir/ValueSet/v2-0923',929);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1099,NULL,'2017-09-27 09:59:50.067000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0924 ( Cumulative Dosage Limit UoM)',NULL,'v2 Cumulative Dosage Limit UoM',1,'ValueSet/v2-0924',NULL,'http://hl7.org/fhir/ValueSet/v2-0924',930);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1100,NULL,'2017-09-27 09:59:50.097000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0925 ( Phlebotomy Issue)',NULL,'v2 Phlebotomy Issue',1,'ValueSet/v2-0925',NULL,'http://hl7.org/fhir/ValueSet/v2-0925',931);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1101,NULL,'2017-09-27 09:59:50.104000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0926 ( Phlebotomy Status)',NULL,'v2 Phlebotomy Status',1,'ValueSet/v2-0926',NULL,'http://hl7.org/fhir/ValueSet/v2-0926',932);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1102,NULL,'2017-09-27 09:59:50.111000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0927 ( Arm Stick)',NULL,'v2 Arm Stick',1,'ValueSet/v2-0927',NULL,'http://hl7.org/fhir/ValueSet/v2-0927',933);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1103,NULL,'2017-09-27 09:59:50.121000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0933 ( Intended Procedure Type)',NULL,'v2 Intended Procedure Type',1,'ValueSet/v2-0933',NULL,'http://hl7.org/fhir/ValueSet/v2-0933',934);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1104,NULL,'2017-09-27 09:59:50.130000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 0935 ( Process Interruption Reason)',NULL,'v2 Process Interruption Reason',1,'ValueSet/v2-0935',NULL,'http://hl7.org/fhir/ValueSet/v2-0935',935);
INSERT INTO ValueSet (VALUESET_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,description,CODESYSTEM_URL,VALUESET_NAME,status,VALUESET_STRID,title,url,CODESYSTEM_PID) VALUES (1105,NULL,'2017-09-27 09:59:50.138000',NULL,NULL,'FHIR Value set/code system definition for HL7 v2 table 4000 ( Name/address representation)',NULL,'v2 Name/address representation',1,'ValueSet/v2-4000',NULL,'http://hl7.org/fhir/ValueSet/v2-4000',936);
|
<reponame>a1209023760/code-java<filename>006-springboot-mybatis/mybatis-generator-plugin/doc/mybatis_puls.sql
/*
Navicat Premium Data Transfer
Source Server : 192.168.3.11
Source Server Type : MySQL
Source Server Version : 50729
Source Host : 192.168.3.11:3306
Source Schema : mybatis_puls
Target Server Type : MySQL
Target Server Version : 50729
File Encoding : 65001
Date: 26/02/2020 13:41:41
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for T_MANUAL_INSPECTION
-- ----------------------------
DROP TABLE IF EXISTS `T_MANUAL_INSPECTION`;
CREATE TABLE `T_MANUAL_INSPECTION` (
`ID` bigint(20) NOT NULL AUTO_INCREMENT,
`PLAN_NAME` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '巡检计划名称',
`PLAN_CONTENT` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '巡检内容描述',
`PERIOD_TYPE` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '巡检周期类型 (Y固定时间,N不固定时间)',
`PEOPLE_TYPE` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '巡检人员类型 (Y不固定人员,N固定人员)',
`RUN_PERIOD` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '执行周期',
`RUN_PERIOD_UNIT` char(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '周期单位(MONTH/WEEK/DAY)',
`RUN_PERIOD_DATE` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '执行日期(WEEK:1-7,MONTH:1-31)',
`RUN_PERIOD_START` datetime(0) NULL DEFAULT NULL COMMENT '开始时间',
`ACTIVE` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '启用状态(Y启用,N停用)',
`CREATE_USER` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`UPDATE_USER` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后修改人',
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '最后修改时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '人工巡检计划表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for t_code_gen
-- ----------------------------
DROP TABLE IF EXISTS `t_code_gen`;
CREATE TABLE `t_code_gen` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
`age` int(11) NULL DEFAULT NULL COMMENT '年龄',
`weight` double NULL DEFAULT NULL COMMENT '重量',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of t_code_gen
-- ----------------------------
INSERT INTO `t_code_gen` VALUES (1, 'keqi', 23, 75.5, '2020-01-06 18:10:59', '2020-01-06 18:11:01', 'admin', 'admin');
INSERT INTO `t_code_gen` VALUES (2, 'hjt', 23, 49.3, '2020-01-06 18:11:32', '2020-01-06 18:11:35', 'admin', 'admin');
INSERT INTO `t_code_gen` VALUES (3, 'fdafa', 12, 23.32, '2020-01-08 11:49:32', '2020-01-08 11:49:32', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (4, 'fdafa', 1223, 23.32, '2020-01-08 11:51:39', '2020-01-08 11:54:49', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (5, NULL, NULL, NULL, '2020-02-19 00:56:40', '2020-02-19 00:56:40', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (6, NULL, NULL, NULL, '2020-02-19 00:56:46', '2020-02-19 00:56:46', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (7, NULL, NULL, NULL, '2020-02-19 00:57:00', '2020-02-19 00:57:00', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (8, NULL, NULL, NULL, '2020-02-19 00:57:07', '2020-02-19 00:57:07', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (9, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:57:56', '2020-02-19 00:57:56', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (10, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:02', '2020-02-19 00:58:02', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (11, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:04', '2020-02-19 00:58:04', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (12, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:08', '2020-02-19 00:58:08', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (13, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:09', '2020-02-19 00:58:09', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (14, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:10', '2020-02-19 00:58:10', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (15, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:11', '2020-02-19 00:58:11', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (16, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:12', '2020-02-19 00:58:12', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (17, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:13', '2020-02-19 00:58:13', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (18, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:14', '2020-02-19 00:58:14', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (19, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:15', '2020-02-19 00:58:15', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (20, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:16', '2020-02-19 00:58:16', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (21, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:17', '2020-02-19 00:58:17', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (22, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:17', '2020-02-19 00:58:17', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (23, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:18', '2020-02-19 00:58:18', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (24, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:19', '2020-02-19 00:58:19', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (25, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:20', '2020-02-19 00:58:20', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (26, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:58:43', '2020-02-19 00:58:43', NULL, NULL);
INSERT INTO `t_code_gen` VALUES (27, 'fdasfsdaf', NULL, NULL, '2020-02-19 00:59:07', '2020-02-19 00:59:07', NULL, NULL);
-- ----------------------------
-- Table structure for t_code_gen_db
-- ----------------------------
DROP TABLE IF EXISTS `t_code_gen_db`;
CREATE TABLE `t_code_gen_db` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
`age` int(11) NULL DEFAULT NULL COMMENT '年龄',
`weight` double NULL DEFAULT NULL COMMENT '重量',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
`create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of t_code_gen_db
-- ----------------------------
INSERT INTO `t_code_gen_db` VALUES (1, 'keqi', 23, 75.5, '2020-01-06 18:10:59', '2020-01-06 18:11:01', 'admin', 'admin');
INSERT INTO `t_code_gen_db` VALUES (2, 'hjt', 22, 49.3, '2020-01-06 18:11:32', '2020-01-08 10:38:05', 'admin', 'admin');
INSERT INTO `t_code_gen_db` VALUES (3, 'fja', 25, 234, '2020-01-08 10:51:46', '2020-01-08 10:52:23', NULL, NULL);
INSERT INTO `t_code_gen_db` VALUES (4, 'ds', 32564, 23, '2020-01-08 12:00:58', '2020-01-08 12:01:05', NULL, NULL);
INSERT INTO `t_code_gen_db` VALUES (5, 'fdafa', 12234312, 23.32, '2020-01-08 13:48:08', '2020-01-08 13:50:17', NULL, NULL);
SET FOREIGN_KEY_CHECKS = 1;
|
-- gmail_active_users_30day
SELECT
date AS date,
EXACT_COUNT_DISTINCT(email) AS count
FROM (
SELECT
DATE(_PARTITIONTIME) AS date,
user_email AS email,
NTH(2, SPLIT(user_email, '@')) AS domain
FROM
[YOUR_PROJECT_ID:EXPORT_DATASET.usage]
WHERE
_PARTITIONTIME = TIMESTAMP(YOUR_TIMESTAMP_PARAMETER)
AND record_type = 'user'
AND SEC_TO_TIMESTAMP(gmail.last_interaction_time) >= DATE_ADD(TIMESTAMP(YOUR_TIMESTAMP_PARAMETER), -30, "DAY")
AND gmail.last_interaction_time > 0) gmail_usage
WHERE
domain IN ( YOUR_DOMAINS )
GROUP BY
1
|
<reponame>Rob--W/phabricator
ALTER TABLE {$NAMESPACE}_pholio.pholio_mock
ADD COLUMN status VARCHAR(12) NOT NULL COLLATE utf8_bin;
UPDATE {$NAMESPACE}_pholio.pholio_mock
SET status = "open" WHERE status = "";
|
<gh_stars>1-10
-- Deploy nz-buildings:buildings_common/functions/capture_source_group to pg
BEGIN;
--------------------------------------------
-- buildings_common.capture_source_group
-- Functions:
-- capture_source_group_insert (insert new capture source group into table)
-- params: varchar(80) value, varchar(400) description
-- return: integer capture_source_group_id
--------------------------------------------
-- Functions
-- capture_source_group_insert (insert new capture source group into table)
-- params: varchar(80) value, varchar(400) description
-- return: integer capture_source_group_id
CREATE OR REPLACE FUNCTION buildings_common.capture_source_group_insert(
p_value varchar(80)
, p_description varchar(400)
)
RETURNS integer AS
$$
INSERT INTO buildings_common.capture_source_group(
capture_source_group_id
, value
, description
)
VALUES (
DEFAULT -- sequence
, p_value
, p_description
)
RETURNING capture_source_group_id;
$$
LANGUAGE sql VOLATILE;
COMMENT ON FUNCTION buildings_common.capture_source_group_insert(varchar(80), varchar(400)) IS
'Insert new capture source group into table';
COMMIT;
|
drop table if exists testt,foo,foo2;
create table testt(id int,v varchar(20),f float, c varchar(10));
insert into testt values(NULL,'abc',5.64,'45d');
insert into testt values(NULL,'45d',-3.44,'df');
create table foo as
with cte as
(
select /*+ recompile */ * from testt where (select ('aaa' regexp 'a{6,}'))<>0 order by 2
) select *from cte;
insert into foo
with cte as
(
select /*+ recompile */ * from testt where (select (not 'aaa' regexp 'a{6,}'))<>0 order by 2
) select *from cte;
replace into foo
with cte as
(
select /*+ recompile */ * from testt where (select (not 'aaa' regexp 'a{6,}'))<>0 order by 2
) select *from cte;
select * from foo order by 1,2,3,4;
create table foo2 as
with cte as
(
select /*+ recompile */ * from testt where (select ('aaa' not regexp 'a{6,}'))<>0 order by 2
) select *from cte;
with cte as
(
select /*+ recompile */ * from testt where (select 1)<>0 order by 2
) delete from foo,foo2 using foo,foo2,cte where foo.v=foo2.v and foo2.f=cte.f;
select * from foo2 order by 1,2,3,4;
select * from foo order by 1,2,3,4;
insert into foo
with cte as
(
select /*+ recompile */ * from testt where (select ('aaa' like 'bbb'))<>0 order by 2
)select *from cte;
select * from foo order by 1,2,3,4;
replace into foo2
with cte as
(
select /*+ recompile */ * from testt where (select ('aaa' like 'aaa'))<>0 order by 2
)select *from cte;
select * from foo2 order by 1,2,3,4;
replace into foo2
with cte as
(
select /*+ recompile */ * from testt where (select ('aaa' not like 'aaa'))<>0 order by 2
)select *from cte;
select * from foo2 order by 1,2,3,4;
drop table if exists foo,foo2, testt;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 02, 2015 at 01:16 AM
-- Server version: 5.5.46-0ubuntu0.14.04.2
-- PHP Version: 5.5.9-1ubuntu4.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 utf8 */;
--
-- Database: `scheduler`
--
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `schedule`
--
CREATE TABLE IF NOT EXISTS `schedule` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`created_by` int(11) NOT NULL,
`updated_by` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=51 ;
-- --------------------------------------------------------
--
-- Table structure for table `schedule_reminder`
--
CREATE TABLE IF NOT EXISTS `schedule_reminder` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`schedule_id` int(10) unsigned NOT NULL,
`reminder_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`reminder_email` text COLLATE utf8_unicode_ci NOT NULL,
`reminder_text` longtext COLLATE utf8_unicode_ci NOT NULL,
`created_by` int(11) NOT NULL,
`updated_by` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `schedule_reminder_schedule_id_foreign` (`schedule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=78 ;
-- --------------------------------------------------------
--
-- Table structure for table `temp_table`
--
CREATE TABLE IF NOT EXISTS `temp_table` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_by` int(11) NOT NULL,
`updated_by` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`company_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`email_status` varchar(5) NOT NULL,
`email` varchar(40) NOT NULL,
`password` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`status` int(2) NOT NULL DEFAULT '1',
`created_by` int(11) NOT NULL,
`updated_by` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
`remember_token` varchar(100) NOT NULL,
`first_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `schedule_reminder`
--
ALTER TABLE `schedule_reminder`
ADD CONSTRAINT `schedule_reminder_schedule_id_foreign` FOREIGN KEY (`schedule_id`) REFERENCES `schedule` (`id`);
/*!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 */;
|
CREATE TABLE `tblCronJobCommand` (
`CronJobCommandID` int(11) NOT NULL AUTO_INCREMENT,
`CompanyID` int(11) NOT NULL,
`GatewayID` int(11) DEFAULT NULL,
`Title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`Command` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`Settings` longtext COLLATE utf8_unicode_ci,
`Status` tinyint(3) unsigned NOT NULL,
`created_at` datetime DEFAULT NULL,
`created_by` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`CronJobCommandID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
|
<reponame>martineserios/ConuFOrecast
CREATE TABLE "models" (
"model_id" varchar NOT NULL,
"model_name" varchar,
"model_version" varchar,
"flow_units" varchar,
"infiltration" varchar,
"flow_routing" varchar,
"link_offsets" varchar,
"min_slope" float,
"allow_ponding" boolean,
"skip_steady_state" boolean,
"start_date" date,
"start_time" time,
"report_start_date" date,
"report_start_time" time,
"end_date" date,
"end_time" time,
"sweep_start" date,
"sweep_end" date,
"report_step" time,
"wet_step" time,
"dry_step" time,
"routing_step" time,
"inertial_damping" varchar,
"normal_flow_limited" varchar,
"force_main_equation" varchar,
"variable_step" float,
"lengthening_step" integer,
"min_surfarea" float,
"max_trials" integer,
"head_tolerance" float,
"sys_flow" integer,
"lat_flow_tol" integer,
"minimum_step" float,
"threads" integer,
PRIMARY KEY ("model_id")
-- FOREIGN KEY ("model_id") REFERENCES events ("model_id")
);
CREATE TABLE "nodes_coordinates" (
"model_id" varchar NOT NULL,
"node_id" varchar NOT NULL,
"x_coord" float,
"y_coord" float,
"lat" float,
"lon" float,
PRIMARY KEY ("model_id", "node_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "subcatchments" (
"model_id" varchar NOT NULL,
"subcatchment_id" varchar NOT NULL,
"raingage_id" varchar,
"outlet" varchar,
"area" float,
"imperv" float,
"width" float,
"slope" float,
"curb_len" float,
-- "snow_pack" float,
PRIMARY KEY ("model_id", "subcatchment_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
-- CREATE TABLE "files" (
-- "model_id" varchar NOT NULL,
-- "interfacing_fails" varchar
-- );weirs
CREATE TABLE "evaporation" (
"model_id" varchar NOT NULL,
"data_source" varchar,
"parameters" varchar,
PRIMARY KEY ("model_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "links_conduits" (
"model_id" varchar NOT NULL,
"conduit_id" varchar NOT NULL,
"from_node" varchar,
"to_node" varchar,
"length" float,
"roughness" float,
"in_offset" float,
"out_offset" float,
"init_flow" float,
"max_flow" float,
PRIMARY KEY ("model_id", "conduit_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "links_orifices" (
"model_id" varchar NOT NULL,
"orifice_id" varchar NOT NULL,
"from_node" varchar,
"to_node" varchar,
"type" varchar,
"offset" float,
"q_coeff" float,
"gated" boolean,
"close_time" float,
PRIMARY KEY ("model_id", "orifice_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "links_weirs" (
"model_id" varchar NOT NULL,
"weir_id" varchar NOT NULL,
"from_node" varchar,
"to_node" varchar,
"type" varchar,
"crest_ht" float,
"q_coeff" float,
"gated" boolean,
"end_con" float,
"end_coeff" float,
"surcharge" boolean,
-- "road_width" float,
-- "road_surf" float,
PRIMARY KEY ("model_id", "weir_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "xsections" (
"model_id" varchar NOT NULL,
"conduit_id" varchar,
"shape" varchar,
"geom_1" varchar,
"geom_2" varchar,
"geom_3" varchar,
"geom_4" varchar,
"barrels" varchar,
-- "culvert" varchar,
PRIMARY KEY ("model_id", "conduit_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
-- CREATE TABLE "transects" (
-- "transect_id" varchar
-- );
CREATE TABLE "losses" (
"model_id" varchar NOT NULL,
"link_id" varchar NOT NULL,
"k_entry" float,
"k_exit" float,
"k_avg" float,
"flap_gate" boolean,
"seepage" float,
PRIMARY KEY ("model_id", "link_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "subareas" (
"model_id" varchar NOT NULL,
"subcatchment_id" varchar NOT NULL,
"n_imperv" float,
"n_perv" float,
"s_imperv" float,
"s_perv" float,
"pct_zero" float,
"route_to" varchar,
-- "pct_routed" integer,
PRIMARY KEY ("model_id", "subcatchment_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
-- CREATE TABLE "curves" (
-- "model_id" varchar NOT NULL,
-- "storage_id" varchar NOT NULL,
-- "type" varchar,
-- "x_value" float,
-- "y_value" float,
-- PRIMARY KEY ("model_id", "storage_id")
-- );
CREATE TABLE "coorrdinates" (
"model_id" varchar NOT NULL,
"node_id" varchar NOT NULL,
"x_coord" float,
"y_coord" float,
PRIMARY KEY ("model_id", "node_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
-- CREATE TABLE "map" (
-- "model_id" varchar NOT NULL,
-- "dimensions" varchar,
-- "units" varchar,
-- PRIMARY KEY ("model_id")
-- );
CREATE TABLE "vertices" (
"model_id" varchar NOT NULL,
"link_id" varchar NOT NULL,
"x_coord" float,
"y_coord" float,
PRIMARY KEY ("model_id", "link_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "polygons" (
"model_id" varchar NOT NULL,
"subcatchment_id" varchar NOT NULL,
"x_coord" float,
"y_coord" float,
PRIMARY KEY ("model_id", "subcatchment_id"),
FOREIGN KEY ("model_id","subcatchment_id") REFERENCES subcatchments ("model_id","subcatchment_id")
);
-- CREATE TABLE "profiles" (
-- "model_id" varchar NOT NULL,
-- "profile_id" varchar NOT NULL,
-- "links" varchar,
-- PRIMARY KEY ("model_id", "profile_id")
-- );
-- CREATE TABLE "symbols" (
-- "model_id" varchar NOT NULL,
-- "raingage_id" varchar NOT NULL,
-- "x_coord" float,
-- "y_coord" float,
-- PRIMARY KEY ("model_id", "raingage_id")
-- );
CREATE TABLE "infiltration" (
"model_id" varchar NOT NULL,
"subcatchment_id" varchar NOT NULL,
"max_rate" float,
"min_rate" float,
"decay" float,
"dry_time" float,
"max_infil" float,
PRIMARY KEY ("model_id", "subcatchment_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "nodes_junctions" (
"model_id" varchar NOT NULL,
"junction_id" varchar NOT NULL,
"elevation" float,
"max_depth" float,
"init_depth" float,
"sur_depth" float,
"aponded" float,
PRIMARY KEY ("model_id", "junction_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "nodes_outfalls" (
"model_id" varchar NOT NULL,
"outfall_id" varchar,
"elevation" float,
"type" varchar,
-- "stage_data" integer,
"gated" varchar,
-- "route_to" varchar,
PRIMARY KEY ("model_id", "outfall_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "nodes_storage" (
"model_id" varchar NOT NULL,
"storage_id" varchar NOT NULL,
"elevation" float,
"max_depth" float,
"init_depth" float,
"shape" varchar,
"curve_name_params" varchar,
"n_a" float,
"f_evap" float,
-- "psi" float,
-- "k_sat" float,
-- "imd" float,
PRIMARY KEY ("model_id", "storage_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id")
);
CREATE TABLE "precipitation_event" (
"precipitation_id" varchar NOT NULL,
PRIMARY KEY ("precipitation_id")
);
CREATE TABLE "raingages_metadata" (
"precipitation_id" varchar NOT NULL,
"raingage_id" varchar NOT NULL,
"interval" time,
"format" varchar,
"unit" varchar,
PRIMARY KEY ("precipitation_id","raingage_id"),
FOREIGN KEY ("precipitation_id") REFERENCES precipitation_event ("precipitation_id")
);
CREATE TABLE "raingages_timeseries" (
"precipitation_id" varchar NOT NULL,
"raingage_id" varchar NOT NULL,
"elapsed_time" timestamp NOT NULL,
"value" float,
PRIMARY KEY ("precipitation_id","raingage_id", "elapsed_time"),
FOREIGN KEY ("precipitation_id","raingage_id") REFERENCES raingages_metadata ("precipitation_id", "raingage_id")
);
CREATE TABLE "events" (
"event_id" varchar NOT NULL,
"model_id" varchar NOT NULL,
"precipitation_id" varchar NOT NULL,
PRIMARY KEY ("event_id"),
FOREIGN KEY ("model_id") REFERENCES models ("model_id"),
FOREIGN KEY ("precipitation_id") REFERENCES precipitation_event ("precipitation_id")
);
CREATE TABLE "events_subcatchments" (
"event_id" varchar NOT NULL,
"elapsed_time" timestamp NOT NULL,
"subcatchment_id" varchar NOT NULL,
"rainfall" float,
"snow_depth" float,
"evaporation_loss" float,
"infiltration_loss" float,
"runoff_rate" float,
"groundwater_outflow" float,
"groundwater_elevation" float,
"soil_moisture" float,
PRIMARY KEY ("event_id", "subcatchment_id", "elapsed_time"),
FOREIGN KEY ("event_id") REFERENCES events ("event_id")
);
CREATE TABLE "events_nodes" (
"event_id" varchar NOT NULL,
"elapsed_time" timestamp NOT NULL,
"node_id" varchar NOT NULL,
"depth_above_invert" float,
"hydraulic_head" float,
"volume_stored_ponded" float,
"lateral_inflow" float,
"total_inflow" float,
"flow_lost_flooding" float,
PRIMARY KEY ("event_id", "node_id", "elapsed_time"),
FOREIGN KEY ("event_id") REFERENCES events ("event_id")
);
CREATE TABLE "events_links" (
"event_id" varchar NOT NULL,
"elapsed_time" timestamp NOT NULL,
"link_id" varchar NOT NULL,
"flow_rate" float,
"flow_depth" float,
"flow_velocity" float,
"froude_number" float,
"capacity" float,
PRIMARY KEY ("event_id", "link_id", "elapsed_time"),
FOREIGN KEY ("event_id") REFERENCES events ("event_id")
);
CREATE TABLE "events_systems" (
"event_id" varchar NOT NULL,
"elapsed_time" timestamp NOT NULL,
"system_id" varchar NOT NULL,
"air_tempreture" float,
"rainfall" float,
"runoff" float,
"dry_weather_inflow" float,
"groundwater_inflow" float,
"rdii_inflow" float,
"user_direct_inflow" float,
"total_lateral_inflow" float,
"flow_lost_to_flooding" float,
"flow_leaving_outfalls" float,
"volume_stored_water" float,
"evaporation_rate" float,
"potential_pet" float,
PRIMARY KEY ("event_id", "system_id", "elapsed_time"),
FOREIGN KEY ("event_id") REFERENCES events ("event_id")
);
CREATE TABLE "events_pollutants" (
"event_id" varchar NOT NULL,
"elapsed_time" timestamp NOT NULL,
"pollutant_id" int NOT NULL,
PRIMARY KEY ("event_id", "pollutant_id", "elapsed_time"),
FOREIGN KEY ("event_id") REFERENCES events ("event_id")
);
|
<filename>testing.sql
/*
SQLyog Community v13.1.7 (64 bit)
MySQL - 10.4.20-MariaDB : Database - testing
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`testing` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `testing`;
/*Table structure for table `mstr_father` */
DROP TABLE IF EXISTS `mstr_father`;
CREATE TABLE `mstr_father` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`age` varchar(20) DEFAULT NULL,
`dob` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
/*Data for the table `mstr_father` */
insert into `mstr_father`(`id`,`user_id`,`name`,`age`,`dob`) values
(1,1,'Prasad','23 years','1985-02-01'),
(3,4,'nagesh','23 years','1985-02-01'),
(4,2,'sangram','50 years','1912-02-01'),
(5,5,'Nitesh','50 years','1912-02-01');
/*Table structure for table `mstr_mother` */
DROP TABLE IF EXISTS `mstr_mother`;
CREATE TABLE `mstr_mother` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`age` varchar(20) DEFAULT NULL,
`dob` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;
/*Data for the table `mstr_mother` */
insert into `mstr_mother`(`id`,`user_id`,`name`,`age`,`dob`) values
(1,5,'sangita','50 years','1912-02-01'),
(2,1,'pratiksha','40 years','1945-02-05'),
(3,2,'namrata','30 years','1999-03-15'),
(4,3,'harshada','30 years','1999-03-15');
/*Table structure for table `mstr_user` */
DROP TABLE IF EXISTS `mstr_user`;
CREATE TABLE `mstr_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`address` varchar(100) NOT NULL,
`dob` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
/*Data for the table `mstr_user` */
insert into `mstr_user`(`id`,`name`,`address`,`dob`) values
(1,'aa','aaa','2020-02-01'),
(2,'Siya','Mumbai','1998-10-02'),
(3,'Siya','Mumbai','1998-10-02'),
(4,'Prabhas','Mumbai','1998-10-02'),
(5,'Pratik','Mumbai','1998-10-02');
/* Procedure structure for procedure `pro_add_father` */
/*!50003 DROP PROCEDURE IF EXISTS `pro_add_father` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_add_father`(in `_user_id` int,in `_name` varchar(50),in `_age` varchar(50),in `_dob` date)
NO SQL
BEGIN
set @usercont:=(select count(user_id) from mstr_father where user_id=_user_id);
if @usercont=0 then
insert into mstr_father(user_id,name,age,dob) values(_user_id,_name,_age,_dob);
select 1 as result;
else
UPDATE mstr_father SET NAME=_name,age=_age,dob=_dob WHERE user_id=_user_id;
select 2 as result;
end if;
END */$$
DELIMITER ;
/* Procedure structure for procedure `pro_add_mother` */
/*!50003 DROP PROCEDURE IF EXISTS `pro_add_mother` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_add_mother`(in `_user_id` int,in `_name`varchar(50),in `_age` varchar(50),in `_dob` date)
NO SQL
BEGIN
set @usercont:=(select count(user_id)from mstr_mother where user_id=_user_id);
if @usercont=0 then
INSERT INTO mstr_mother(user_id,NAME,age,dob) VALUES(_user_id,_name,_age,_dob);
SELECT 1 AS result;
else
UPDATE mstr_mother SET NAME=_name,age=_age,dob=_dob WHERE user_id=_user_id;
SELECT 2 AS result;
end if;
END */$$
DELIMITER ;
/* Procedure structure for procedure `pro_family_list` */
/*!50003 DROP PROCEDURE IF EXISTS `pro_family_list` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_family_list`()
NO SQL
BEGIN
SELECT users.name,users.address,users.dob,father.name AS father_name,father.age AS father_age,father.dob AS father_dob,mother.name AS mother_name,mother.age AS mother_age,mother.dob AS mother_dob
FROM mstr_user users
INNER JOIN mstr_father father ON users.id=father.user_id
INNER JOIN mstr_mother mother ON users.id=mother.user_id;
select * from mstr_user;
END */$$
DELIMITER ;
/* Procedure structure for procedure `pro_list_show` */
/*!50003 DROP PROCEDURE IF EXISTS `pro_list_show` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_list_show`()
BEGIN
select * from mstr_user;
end */$$
DELIMITER ;
/* Procedure structure for procedure `pro_update_user` */
/*!50003 DROP PROCEDURE IF EXISTS `pro_update_user` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_update_user`(in `_user_id` int,in `_name` varchar(50),in `_age` varchar(20),in `_dob` date)
NO SQL
BEGIN
update mstr_father set name=_name,age=_age,dob=_dob where user_id=_user_id;
select 1 as result;
END */$$
DELIMITER ;
/* Procedure structure for procedure `pro_user_list` */
/*!50003 DROP PROCEDURE IF EXISTS `pro_user_list` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_user_list`(in `_dob` date)
NO SQL
BEGIN
if _dob="2020-02-01" then
select * from mstr_user where dob=_dob;
else
SELECT * FROM testingnew.mstr_user WHERE dob=_dob;
end if;
END */$$
DELIMITER ;
/* Procedure structure for procedure `sproc_adduser` */
/*!50003 DROP PROCEDURE IF EXISTS `sproc_adduser` */;
DELIMITER $$
/*!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `sproc_adduser`(in `_name` varchar(50),in `_address` varchar(100),in `_dob` date)
NO SQL
BEGIN
insert into mstr_user(name,address,dob) values(_name,_address,_dob);
select 1 as result;
END */$$
DELIMITER ;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<filename>db/udemy.sql
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 06, 2019 at 04:15 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `udemy`
--
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_11_06_103905_create_products_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`detail` text COLLATE utf8mb4_unicode_ci NOT NULL,
`price` int(11) NOT NULL,
`stock` int(11) NOT NULL,
`discount` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `name`, `detail`, `price`, `stock`, `discount`, `created_at`, `updated_at`) VALUES
(1, 'iure', 'Cupiditate at et dignissimos aut voluptatem nulla quidem. Quis et voluptates nesciunt. Recusandae velit alias aut omnis ipsam praesentium modi.', 210, 1, 26, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(2, 'sit', 'In molestias ex ut est nam harum adipisci. Amet nam sit rerum blanditiis optio architecto ipsam. A nihil ipsa laboriosam ut nisi.', 788, 9, 14, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(3, 'explicabo', 'Voluptatibus eaque voluptatem in deleniti alias voluptatem est. Accusantium nemo sed laboriosam totam qui dicta. Molestiae mollitia quia voluptatum et praesentium mollitia in et. Atque consequatur sequi quis aut.', 815, 1, 25, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(4, 'molestias', 'Libero consequatur consectetur dolorem ducimus omnis est enim. Autem blanditiis reprehenderit iste consequuntur odit eum deleniti. Architecto asperiores eos earum sint.', 946, 6, 25, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(5, 'veritatis', 'Quidem laudantium tempora et doloremque assumenda ut nihil. Ratione voluptate vitae dignissimos.', 982, 7, 28, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(6, 'et', 'Maxime quia corrupti et dignissimos non incidunt illum. Molestiae a repellendus occaecati quia perspiciatis. Velit sequi repudiandae enim.', 589, 7, 29, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(7, 'ea', 'Deserunt eligendi repudiandae placeat rerum laborum nihil nostrum. Assumenda totam debitis quam ut quisquam. Et non dolor mollitia ea. Ut dolorem doloribus dicta aliquam eligendi. Dolorem eum suscipit ut sunt.', 300, 0, 17, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(8, 'dolorum', 'Iure voluptate commodi quas illum molestiae officia. Magni officia dolores et optio culpa. Sequi excepturi et optio non non. Voluptatem ut commodi molestias ullam doloribus.', 345, 3, 21, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(9, 'aut', 'Quia placeat pariatur occaecati fugiat assumenda. In quis enim tenetur et eum praesentium natus eum. Consequatur provident sint cum. Sequi voluptatem velit eligendi optio reiciendis vitae ad saepe. Ad sit molestias ratione rerum recusandae.', 277, 2, 25, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(10, 'est', 'Itaque quia eaque ratione saepe veritatis at et. Qui maxime eligendi explicabo praesentium qui. Ut molestias et vel id possimus. Labore cumque cupiditate ad quidem.', 109, 2, 29, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(11, 'expedita', 'Maxime ratione aut reiciendis dolores doloremque. Dolores velit nam et rerum natus eligendi. Quibusdam porro dignissimos amet consectetur provident doloribus. Voluptatem illo quos nemo nisi veritatis sunt tenetur.', 225, 0, 15, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(12, 'adipisci', 'Aut ut qui incidunt necessitatibus blanditiis est. Non dolores laudantium et voluptatem. Sit ad vel doloribus asperiores perspiciatis ad expedita. Hic voluptatem minima delectus corrupti in consequatur.', 856, 0, 16, '2019-11-06 08:13:21', '2019-11-06 08:13:21'),
(13, 'laborum', 'Qui dolor consectetur occaecati dolor sunt. Quia eum ab deserunt a culpa. Rerum cum accusantium voluptatem aut quia. Molestiae illum eum ducimus fugit est aut quam.', 258, 7, 25, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(14, 'eveniet', 'Veniam eligendi velit odio sint. Quas eos magnam quae eos quo atque et. Sed autem sequi sint harum temporibus magnam necessitatibus iste. Consequatur qui necessitatibus exercitationem incidunt eos natus velit.', 608, 3, 5, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(15, 'minus', 'Dolore soluta nobis porro sint aperiam in cumque ipsam. Non delectus id maiores laborum nulla voluptatum. Illum quo et et magni exercitationem alias sequi aut. Soluta facilis et ut deleniti veritatis.', 693, 9, 7, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(16, 'tempore', 'Nostrum et qui sed in fugiat provident eius. Vel nesciunt odio cumque et voluptas. Voluptatem adipisci voluptas voluptate iusto corrupti quasi suscipit velit. Non qui non eos et enim quia.', 738, 2, 26, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(17, 'quas', 'Explicabo nobis quia repellat libero fuga sapiente et. Et pariatur tenetur suscipit aut. Neque eaque commodi corporis.', 782, 2, 25, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(18, 'a', 'Asperiores quos et et voluptatem doloribus perspiciatis. Ut sit ullam ipsum. Aliquam qui et soluta assumenda eveniet et aut.', 458, 2, 2, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(19, 'dolor', 'Dolorum optio beatae quidem iure. Et atque earum ea. Aliquam recusandae inventore sit consequatur nostrum.', 899, 8, 25, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(20, 'assumenda', 'Enim asperiores rem necessitatibus nesciunt cupiditate. Assumenda fugiat impedit illum placeat. Quibusdam qui tenetur eius magni rerum. Temporibus amet consequatur rerum natus autem aut.', 454, 2, 17, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(21, 'officia', 'Aut quis et sint non iure consequatur eaque. Dignissimos est et a et ipsa numquam. Nemo veniam ad qui ad.', 350, 1, 6, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(22, 'magnam', 'Et nulla at dolorum nulla assumenda doloremque officiis occaecati. Non eos ex odit dignissimos. Tempore et numquam accusantium. Voluptatem dignissimos sint cumque autem fugiat quas.', 669, 8, 23, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(23, 'et', 'Quasi tenetur voluptates repudiandae. Neque delectus alias sequi saepe minus doloribus est. Aut iusto voluptate eos non.', 680, 6, 8, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(24, 'recusandae', 'Animi cum aliquid maiores enim enim rerum quasi. Est asperiores beatae explicabo ut veniam. Adipisci eligendi assumenda dolore et minima nobis.', 798, 0, 21, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(25, 'omnis', 'Quis quia ut harum ipsam dolorem earum. Illum adipisci repudiandae doloribus aut sapiente fugit sed. Placeat omnis nemo earum eos.', 131, 2, 29, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(26, 'maiores', 'Velit voluptas sunt perspiciatis amet soluta quas aut. Facilis eius ullam nihil dolores. Et accusamus porro dignissimos quas magnam nisi.', 669, 8, 21, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(27, 'aut', 'Et voluptatibus ut dolores rerum reprehenderit quo eveniet. Vel sit reprehenderit commodi eveniet. Velit ut laborum ex provident incidunt est eaque.', 144, 5, 29, '2019-11-06 08:13:22', '2019-11-06 08:13:22'),
(28, 'non', 'Temporibus neque veniam a porro velit amet. Illum provident veniam magni ad deleniti id cumque. Rerum sunt quia quaerat commodi voluptas molestiae.', 677, 0, 19, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(29, 'ducimus', 'Autem mollitia deleniti tempore vitae fugiat. Neque quis modi nihil in quia perferendis. Consectetur quisquam unde quam voluptatum.', 765, 7, 13, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(30, 'rem', 'Et quam vel debitis sint consectetur consequatur rem fuga. In illum quo ad non aut. Voluptatem est commodi suscipit qui illum et.', 328, 4, 25, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(31, 'distinctio', 'Animi ea voluptatibus est soluta accusantium. Sint error et velit. Ratione nihil nihil alias odio beatae dolores.', 953, 1, 10, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(32, 'placeat', 'Qui dolores voluptatem qui perferendis provident porro ipsum quaerat. Consectetur reprehenderit quibusdam aut sint consequatur dolores labore cupiditate. Ipsam qui vitae neque libero quo incidunt quisquam.', 724, 7, 2, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(33, 'molestias', 'Qui et eos dolor rerum nemo facere enim. In dicta id repellat aperiam fugit. Qui consequatur vel dignissimos facilis qui corrupti consequatur. Quia aut totam minus laboriosam.', 398, 7, 8, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(34, 'aut', 'Laudantium esse explicabo provident ut id exercitationem. Sed beatae non et odit. Beatae modi aut optio molestiae eveniet similique voluptatem.', 119, 2, 5, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(35, 'non', 'Cum eaque non aut veritatis in ipsa repellendus. Omnis id aut quasi saepe. Animi rem voluptatem perspiciatis quia enim inventore nesciunt.', 500, 5, 14, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(36, 'vitae', 'Nisi sit expedita eveniet similique cum iste. Asperiores voluptate illum pariatur fugiat iusto aut. Dolorem quia dolorem et sint. Et pariatur cum voluptatibus non vel sed architecto ipsum. Eaque rerum libero qui ipsa.', 387, 9, 22, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(37, 'rerum', 'Aut rerum quasi voluptatem laboriosam. Id harum similique hic dolor. Cupiditate velit quos sed illum quo facere nihil. Sunt nostrum incidunt officia corrupti. Saepe ut molestias consequatur.', 838, 4, 10, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(38, 'magni', 'Non dignissimos omnis dolore consequatur est. Doloremque delectus quod fugit facilis ipsa enim. Quibusdam voluptatum veniam ut tempora et consequuntur non eveniet. Quas non fuga debitis tenetur quis nisi aut sunt.', 654, 8, 21, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(39, 'facilis', 'Est qui possimus vel quisquam quis. Vel mollitia magni ex quibusdam ea.', 189, 4, 2, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(40, 'quo', 'Molestiae nemo et dolor maxime minus ipsam facere. Veritatis veritatis laboriosam fugiat optio voluptatibus ratione dignissimos. Ratione distinctio quo inventore qui.', 369, 2, 26, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(41, 'quo', 'Et blanditiis nesciunt atque consequatur. Commodi ut neque dignissimos quia et impedit. Commodi dolores nesciunt at officiis.', 357, 6, 19, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(42, 'reiciendis', 'Recusandae vitae sed delectus quibusdam nam qui aut. Ducimus velit et nulla quo dolorum consequatur recusandae. Sit est quis blanditiis beatae cumque soluta.', 451, 1, 25, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(43, 'illum', 'Esse sed hic eius temporibus sunt vitae. Consequatur animi aut ullam quisquam dignissimos. Et sunt est dolorum quas qui natus unde.', 423, 0, 11, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(44, 'alias', 'Eos et atque sed magni et mollitia. Quam ut non aspernatur et ab in. Hic itaque distinctio praesentium. Aut saepe et magnam temporibus porro sed deserunt.', 455, 6, 27, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(45, 'repudiandae', 'Et corporis rerum id eveniet. Eveniet nam sint totam voluptas. Ea sed asperiores aut amet magnam. Nulla quod quasi libero.', 766, 0, 9, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(46, 'modi', 'Laborum voluptatibus culpa qui veniam maiores quia. Eveniet et exercitationem in earum. In illo et repellendus sunt accusantium praesentium. Eos ut magnam quibusdam rerum est asperiores.', 131, 0, 13, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(47, 'omnis', 'Et repellat rerum accusantium et voluptatem. Iste alias est nulla culpa et. Eum ducimus et voluptas voluptatibus ipsam sed reprehenderit accusantium. Impedit molestiae facilis eum cumque incidunt voluptas quia tempora.', 913, 6, 21, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(48, 'non', 'Est aliquid sunt et blanditiis. Totam nostrum ut in voluptatem libero porro quia. Enim eos consequatur sed facere reiciendis libero.', 290, 7, 23, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(49, 'et', 'Sit et placeat nesciunt voluptatem deleniti fuga est. Quisquam et dicta sit odio porro laboriosam voluptate et. Asperiores eligendi ex est nesciunt eum. Molestias amet suscipit non.', 597, 4, 14, '2019-11-06 08:13:23', '2019-11-06 08:13:23'),
(50, 'expedita', 'Veniam voluptates omnis quisquam. Aliquid et et commodi ea. Consequatur qui nostrum tempore at aperiam aut non.', 457, 0, 30, '2019-11-06 08:13:23', '2019-11-06 08:13:23');
-- --------------------------------------------------------
--
-- Table structure for table `reviews`
--
CREATE TABLE `reviews` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED NOT NULL,
`customer` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`review` text COLLATE utf8mb4_unicode_ci NOT NULL,
`star` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `reviews`
--
ALTER TABLE `reviews`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
--
-- AUTO_INCREMENT for table `reviews`
--
ALTER TABLE `reviews`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;
/*!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 */;
|
INSERT INTO burgers (name) VALUES ('Big Mac');
INSERT INTO burgers (name) VALUES ('Double Cheese');
|
<filename>src/apex/application/shared_components/navigation/breadcrumbs/breadcrumb.sql
prompt --application/shared_components/navigation/breadcrumbs/breadcrumb
begin
-- Manifest
-- MENU: Breadcrumb
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2020.03.31'
,p_release=>'20.1.0.00.13'
,p_default_workspace_id=>2400405578329584
,p_default_application_id=>984337
,p_default_id_offset=>0
,p_default_owner=>'MT_NDBRUIJN'
);
wwv_flow_api.create_menu(
p_id=>wwv_flow_api.id(12495636486941880396)
,p_name=>'Breadcrumb'
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(12495636202992880393)
,p_short_name=>'Home'
,p_link=>'f?p=&APP_ID.:1:&APP_SESSION.::&DEBUG.'
,p_page_id=>1
);
wwv_flow_api.component_end;
end;
/
|
<reponame>sacarlson/stellar_federation_emailer
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 19, 2017 at 02:45 AM
-- Server version: 5.7.13-0ubuntu0.16.04.2
-- PHP Version: 7.0.15-0ubuntu0.16.04.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `fed2`
--
-- --------------------------------------------------------
--
-- Table structure for table `challenge`
--
CREATE TABLE `challenge` (
`index2` int(11) NOT NULL,
`id` text NOT NULL,
`new_id` text NOT NULL,
`new_email` text NOT NULL,
`message` text NOT NULL,
`sig` text,
`status` text NOT NULL,
`date_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `transactions`
--
CREATE TABLE `transactions` (
`id` int(11) NOT NULL,
`username` text NOT NULL,
`sent_to` text NOT NULL,
`sent_from` text NOT NULL,
`amount` text NOT NULL,
`asset_code` text NOT NULL,
`status` text NOT NULL,
`memo` text NOT NULL,
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `Users`
--
CREATE TABLE `Users` (
`index` int(11) NOT NULL,
`username` text NOT NULL,
`account_id` text,
`seed` text,
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` text NOT NULL,
`b64_tx_last` text
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `Users`
--
INSERT INTO `Users` (`index`, `username`, `account_id`, `seed`, `date_added`, `date_updated`, `status`, `b64_tx_last`) VALUES
(1, 'sacarlson_CEO', 'GDISHVYORUA5BKL6QBZX5DOFXELIEIM7RWLECYAI5YSV5JRELXD53BDT', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(2, 'funtracker_CFO', 'GBIZ6M3S6ES4HR56S6CHWZVEK4IKOGI5KC2OZHPUBRWQ7U5IYKHTETIB', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(3, 'funtracker_promotional_funding', 'GBURK32BMC7XORYES62HDKY7VTA5MO7JYBDH7KTML4EPN4BV2MIRQOVR', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(5, 'bank', 'GBUYUAI75XXWDZEKLY66CFYKQPET5JR4EENXZBUZ3YXZ7DS56Z4OKOFU', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(6, 'scotty', 'GDW3CNKSP5AOTDQ2YCKNGC6L65CE4JDX3JS5BV427OB54HCF2J4PUEVG', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(7, 'funtracker_trader', 'GARTYWZWFKB27CNMRFTHESYMVTNT52YXO247XBQHF7DPBBB2J724SFJG', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(8, 'mick', 'GBUEOF4RW6MVRZUWUGNSRD3X4VD6VCPTQOWRVSQ3JGY775VZIG3VX55O', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(9, 'peter', 'GD2CGUAH3GDKNFFSZ3X3B7TCSH7ANP4JAPQCVECD3MAIFW2RWD5CSABG', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(10, 'laserpaul', 'GC5HYBXIIWWAAIM56CQMIJ77ZGY7L4WU35C65IFSXOYJLXDLVMVUOVP7', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(11, 'raf', 'GC6EY2HOEPB4LOOBB56D3PLMN75ITUN4XYUE2JHXVALFZSSO2PHEM2BR', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(12, 'bruce', 'GAG3ZROJLYXC37WKNDSASCEQRJ7KTD6FZ4PSF2AVRBFZ43XV72HRYJDO', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(13, 'rex', 'GB4NDCXRGI7PR4DCDYTV6DS4AOVWZ7EGWNWUGIUKKIUUY4SFYFP6WGKF', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(14, 'steve', 'GC33WZGPXXKVVA4LUFOA5YGV3HFYKISVW25DRG3NURNB5BLF6NS3FH3Q', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(15, 'david', 'GAAXXKG7WRAGAKJKASDUEROGCRLPHMDCY2IYT5DBAFGXXBUMWGGQAJIS', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(16, 'dzham', 'GD6MFAURGW4PEXJYMXLRGGIRCKTONRQRPFRQ56H2SUDALAZNGVQNARZ3', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(17, 'jean', 'GBITWN744ZOE6LOIJXSV6K4FE6TI3R63XDAFYF7BPNQASOO6QYCVQ6NF', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(18, 'scottc', 'GBZIEC6NPW4FT6FUWF5ULPYXAQLDS2J4ZCICKV64VASY27L2BBKKVUB5', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(19, 'san2ok', 'GCOWSXX5VBKK5R2FEWWU2ZWXDWNPADD37ESPCN3WT7IQJQCGMGITVI5T', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(20, 'sacarlson', 'GDW3CNKSP5AOTDQ2YCKNGC6L65CE4JDX3JS5BV427OB54HCF2J4PUEVG', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(21, 'mom', 'GDORMC3MJUBUXJ47YOEP7EWZL5X63OTX5OX3GVSSQ32KOOC2NWNZ3R2B', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(22, 'lab', 'GCOXWRJIH5V6RV6UUF6EPFN2SFRUJIZKB4BSO5XOFJCWNSWNJS5T2SQI', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(23, 'bankt', 'GAX4CUJEOUA27MDHTLSQCFRGQPEXCC6GMO2P2TZCG7IEBZIEGPOD6HKF', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(24, 'powderfan', 'GAZMSGSJC6W3EPYEJG2Y3QPMPXKTWWRR5HMAQLRAOSBNHI524RGZT547', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(25, 'florincm', 'GDAVUV7FHDAXC7RNBTQYYYVJGKEIOZAYTGRXPSOFZJGSJRHOXEWY3IMI', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(26, 'Test', 'GBROAGZJGZSSQWJIIH2OHOPQUI4ZDZL4MOH7CSWLQBDGWBYDCDQT7CU4', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL),
(27, 'lcipciriuc', 'GAZWF3WPLFMBVEDSDSBEGYMXLSFLXZTNHMIIX32Z7SJ7DC4DJ6P5C353', '', '2017-04-09 01:40:18', '2017-04-09 08:54:47', '', NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `challenge`
--
ALTER TABLE `challenge`
ADD PRIMARY KEY (`index2`);
--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `Users`
--
ALTER TABLE `Users`
ADD PRIMARY KEY (`index`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `challenge`
--
ALTER TABLE `challenge`
MODIFY `index2` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT for table `Users`
--
ALTER TABLE `Users`
MODIFY `index` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;
/*!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 */;
|
drop table if exists MB_EXCHANGE_TRAN_HIST;
/*==============================================================*/
/* Table: MB_EXCHANGE_TRAN_HIST */
/*==============================================================*/
create table MB_EXCHANGE_TRAN_HIST
(
SEQ_NO varchar(50) not null comment '交易序号',
TRAN_TYPE varchar(10) not null comment '交易类型',
TRAN_DATE varchar(8) not null comment '交易日期',
VALUE_DATE varchar(8) not null comment '生效日期',
DEPOSIT_SEQ_NO varchar(50) comment '贷方交易序号',
DEPOSIT_INTERNAL_KEY Decimal(15) comment '贷方账户主键',
DEPOSIT_BASE_ACCT_NO varchar(150) comment '贷方账户账号',
DEPOSIT_PROD_TYPE varchar(50) comment '贷方账户产品类型',
DEPOSIT_ACCT_SEQ_NO varchar(8) comment '贷方账户序列号',
DEPOSIT_ACCT_CCY varchar(3) comment '贷方账户币种',
DEPOSIT_BALANCE_TYPE varchar(2) comment '贷方余额类型 ',
WITHDRAW_SEQ_NO varchar(50) comment '借方交易序号',
WITHDRAW_INTERNAL_KEY Decimal(15) comment '借方账户主键',
WITHDRAW_BASE_ACCT_NO varchar(150) comment '借方账户账号',
WITHDRAW_PROD_TYPE varchar(50) comment '借方账户产品类型',
WITHDRAW_ACCT_CCY varchar(3) comment '借方方账户币种',
WITHDRAW_ACCT_SEQ_NO varchar(8) comment '借方账户序列号',
WITHDRAW_BALANCE_TYPE varchar(2) comment '借方余额类型',
CLIENT_NO varchar(20) not null comment '客户号',
CASH_SEQ_NO varchar(50) comment '现金交易序号',
SELL_BUY_IND varchar(1) comment '买卖固定放',
BUY_CCY varchar(3) not null comment '买入币种',
BUY_AMOUNT Decimal(17,2) not null comment '买入金额',
SELL_CCY varchar(3) not null comment '卖出币种',
SELL_AMOUNT Decimal(17,2) not null comment '卖出金额',
RATE_TYPE varchar(3) not null comment '汇率类型',
QUOTE_TYPE varchar(1) not null comment '报价类型',
CROSS_RATE Decimal(15,8) not null comment '交叉汇率',
FLOAT_RATE Decimal(15,8) not null comment '浮动汇率',
BUY_RATE Decimal(15,8) not null comment '买方汇率',
SELL_RATE Decimal(15,8) not null comment '卖方汇率',
INNER_RATE Decimal(15,8) not null comment '内部价',
EXCH_RATE Decimal(15,8) not null comment '执行汇率',
CROSS_RATE_ATTR varchar(30) comment '交叉汇率属性',
BASE_RATE_TYPE varchar(3) comment '基础汇率类型',
BASE_QUOTE_TYPE varchar(1) comment '基础报价方式',
BASE_RATE Decimal(15,8) comment '基础汇率',
BASE_EQUIV_AMT Decimal(17,2) comment '基础等值金额',
CHANGE_SELL_AMOUNT Decimal(17,2) comment '找零金额',
CHANGE_CNY_AMOUNT Decimal(17,2) comment '找零金额',
CHANGE_SEQ_NO varchar(50) comment '找零信息',
CHANGE_RATE_TYPE varchar(3) comment '找零信息',
CHANGE_QUOTE_TYPE varchar(1) comment '找零信息',
CHANGE_RATE Decimal(15,8) comment '找零信息',
CHANGE_BASE_RATE_TYPE varchar(3) comment '找零信息',
CHANGE_BASE_QUOTE_TYPE varchar(1) comment '找零信息',
CHANGE_BASE_RATE Decimal(15,8) comment '找零信息',
CHANGE_BASE_EQUIV_AMT Decimal(17,2) comment '找零信息',
UNC_CROSS_RATE Decimal(15,8) comment '平盘交叉汇率',
REMARK varchar(200) comment '备注',
SOURCE_MODULE varchar(10) comment '模块',
SOURCE_TYPE varchar(10) comment '渠道',
BRANCH varchar(20) not null comment '交易行',
PROFIT_CENTRE varchar(12) comment '利润中心',
USER_ID varchar(30) not null comment '交易柜员',
TRAN_TIMESTAMP varchar(17) comment '时间戳',
AUTH_USER_ID varchar(30) comment '授权柜员',
TERMINAL_ID varchar(200) comment '终端ID',
REVERSAL_TRAN_TYPE varchar(10) comment '冲正交易类型',
REVERSAL_DATE varchar(8) comment '冲正日期',
REVERSAL_TRAN_TIMESTAMP varchar(17) comment '冲正时间戳',
REVERSAL_USER_ID varchar(30) comment '冲正柜员',
REVERSAL_AUTH_USER_ID varchar(30) comment '冲正授权柜员',
APPROVAL_DATE varchar(8) comment '复核日期',
APPR_USER_ID varchar(30) comment '复核柜员',
APPR_AUTH_USER_ID varchar(30) comment '复核授权柜员',
BANK_SEQ_NO varchar(50) comment '银行交易序号',
REFERENCE varchar(50) not null comment '交易参考号',
TRACE_REF_NO varchar(50),
TRACE_REF_CODE varchar(50),
STATUS varchar(3) comment '状态',
TRAN_TIME Decimal(11,0) comment '交易时间',
ROUTER_KEY varchar(100) comment '分库路由关键字',
primary key (SEQ_NO)
);
alter table MB_EXCHANGE_TRAN_HIST comment '结售汇交易流水表 undefined';
|
<filename>src/main/resources/db/migration/h2/V1_0__create_role.sql
CREATE USER RISK_PROFILER PASSWORD '<PASSWORD>';
|
ALTER TABLE extra
RENAME COLUMN extra TO extra_value_id;
ALTER TABLE extra
ADD CONSTRAINT fk_extra_value FOREIGN KEY (extra_value_id)
REFERENCES extra_value (extra_value_id);
|
<reponame>va1ery/CSharp-and-.NET-Core-Test-Driven-Development<gh_stars>10-100
CREATE TABLE [dbo].[Palindrome](
[word] [varchar](50) NOT NULL
) ;
INSERT INTO [dbo].[Palindrome] ([word]) VALUES ('civic')
GO
INSERT INTO [dbo].[Palindrome] ([word]) VALUES ('dad')
GO
INSERT INTO [dbo].[Palindrome] ([word]) VALUES ('omo')
GO
|
<filename>09-SQL/1/Extra_Content/Activities/04-Stu_MakeIDColumn/Unsolved/programming_db_unsolved.sql
-- Create a database called programming_db --
CREATE DATABASE programming_db;
-- Use programming db for the following statements --
CREATE TABLE programming_languages(
-- Create a numeric column called "id" which will automatically increment its default value as we create new rows. --
-- Create a string column called "language" --
-- Create an integer column called "popularity" --
-- Create a boolean column called "mastered" that will automatically fill --
-- with TRUE when a new row is made and the value isn't otherwise defined. --
-- Set the id as this table's primary key
);
-- Create new example rows
|
<filename>templates/template_view.sql
create or replace force view CHANGEME as
select
'Y' pass_fail,
apex_string.format('%0', aa.application_id) reference_code,
aa.application_id
from apex_applications aa
where aa.availability_status != 'Unavailable'
order by aa.application_id
;
/* No need to :
* - add application_name
* - add application status
* - add application type
* - join on eba_stds_applications
*/
|
<reponame>tesfayet11/sakai
-- SAK-25784 Convert News to RSS Portlet
-- ---------------------------
-- Add the titles from all existing news tools
INSERT INTO SAKAI_SITE_TOOL_PROPERTY (site_id, tool_id, name, value)
SELECT site_id, tool_id, 'javax.portlet-portlet_title', title FROM SAKAI_SITE_TOOL WHERE registration = 'sakai.news';
-- Setup all instances with the URL
UPDATE SAKAI_SITE_TOOL_PROPERTY SET name = 'javax.portlet-feed_url' WHERE name = 'channel-url';
-- Finally, convert all news tools to the new portlet (must run last)
UPDATE SAKAI_SITE_TOOL SET registration = 'sakai.simple.rss' WHERE registration = 'sakai.news';
-- End SAK-25784
-- New permissions
-- KNL-1350 / SAK-11647
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'dropbox.maintain.own.groups');
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'dropbox.maintain.own.groups'))
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!group.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'dropbox.maintain.own.groups'))
-- END KNL-1350 / SAK-11647
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'msg.permissions.allowToField.myGroupMembers');
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'msg.permissions.allowToField.myGroups');
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'msg.permissions.allowToField.users');
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'msg.permissions.viewHidden.groups');
-- Access
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'access'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'access'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'access'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Maintain
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Access
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'access'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'access'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'access'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Maintain
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Instructor
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Student
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Student'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Student'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Student'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- TA
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Coordinator
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Participant
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Participant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Participant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'CIG Participant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Reviewer
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Reviewer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Reviewer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Reviewer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Reviewer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Evaluator
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Evaluator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Evaluator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Evaluator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolio'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Evaluator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Prog Admin
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Admin'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Admin'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Admin'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Admin'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Prog Coord
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.portfolioAdmin'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Program Coordinator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Student
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Student'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Student'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Student'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Faculty
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Faculty'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Faculty'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Faculty'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Faculty'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Member
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Member'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Member'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Member'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Learner
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Learner'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Learner'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Learner'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Mentor
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Mentor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Mentor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Mentor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Mentor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Staff
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Staff'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Staff'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Staff'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Staff'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Alumni
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Alumni'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Alumni'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Alumni'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Prospective Student
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'ProspectiveStudent'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'ProspectiveStudent'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'ProspectiveStudent'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Other
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Other'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Other'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Other'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Guest
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Guest'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Guest'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Guest'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
-- Observer
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Observer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Observer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Observer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Observer'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Admininstrator
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- Instructor
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroupMembers'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.myGroups'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.allowToField.users'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'msg.permissions.viewHidden.groups'));
-- --------------------------------------------------------------------------------------------------------------------------------------
-- backfill new permissions into existing realms
--
-- msg.permissions.allowToField.myGroupMembers
-- msg.permissions.allowToField.myGroups
-- msg.permissions.allowToField.users
-- msg.permissions.viewHidden.groups
-- dropbox.maintain.own.groups (Just for Teaching Assistant)
-- --------------------------------------------------------------------------------------------------------------------------------------
-- for each realm that has a role matching something in this table, we will add to that role the function from this table
CREATE TABLE PERMISSIONS_SRC_TEMP (ROLE_NAME VARCHAR(99), FUNCTION_NAME VARCHAR(99));
-- maintain
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','msg.permissions.viewHidden.groups');
-- access
INSERT INTO PERMISSIONS_SRC_TEMP values ('access','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('access','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('access','msg.permissions.allowToField.users');
-- Instructor
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','msg.permissions.viewHidden.groups');
-- TA
INSERT INTO PERMISSIONS_SRC_TEMP values ('Teaching Assistant','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Teaching Assistant','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Teaching Assistant','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Teaching Assistant','msg.permissions.viewHidden.groups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Teaching Assistant','dropbox.maintain.own.groups');
-- Student
INSERT INTO PERMISSIONS_SRC_TEMP values ('Student','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Student','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Student','msg.permissions.allowToField.users');
-- CIG Coordinator
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Coordinator','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Coordinator','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Coordinator','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Coordinator','msg.permissions.viewHidden.groups');
-- Evaluator
INSERT INTO PERMISSIONS_SRC_TEMP values ('Evaluator','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Evaluator','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Evaluator','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Evaluator','msg.permissions.viewHidden.groups');
-- Reviewer
INSERT INTO PERMISSIONS_SRC_TEMP values ('Reviewer','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Reviewer','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Reviewer','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Reviewer','msg.permissions.viewHidden.groups');
-- CIG Participant
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Participant','msg.permissions.allowToField.myGroupMembers');
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Participant','msg.permissions.allowToField.myGroups');
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Participant','msg.permissions.allowToField.users');
INSERT INTO PERMISSIONS_SRC_TEMP values ('CIG Participant','msg.permissions.viewHidden.groups');
-- lookup the role and function numbers
CREATE TABLE PERMISSIONS_TEMP (ROLE_KEY INTEGER, FUNCTION_KEY INTEGER);
INSERT INTO PERMISSIONS_TEMP (ROLE_KEY, FUNCTION_KEY)
SELECT SRR.ROLE_KEY, SRF.FUNCTION_KEY
from PERMISSIONS_SRC_TEMP TMPSRC
JOIN SAKAI_REALM_ROLE SRR ON (TMPSRC.ROLE_NAME = SRR.ROLE_NAME)
JOIN SAKAI_REALM_FUNCTION SRF ON (TMPSRC.FUNCTION_NAME = SRF.FUNCTION_NAME);
-- insert the new functions into the roles of any existing realm that has the role (don't convert the "!site.helper" or "!user.template")
INSERT INTO SAKAI_REALM_RL_FN (REALM_KEY, ROLE_KEY, FUNCTION_KEY)
SELECT
SRRFD.REALM_KEY, SRRFD.ROLE_KEY, TMP.FUNCTION_KEY
FROM
(SELECT DISTINCT SRRF.REALM_KEY, SRRF.ROLE_KEY FROM SAKAI_REALM_RL_FN SRRF) SRRFD
JOIN PERMISSIONS_TEMP TMP ON (SRRFD.ROLE_KEY = TMP.ROLE_KEY)
JOIN SAKAI_REALM SR ON (SRRFD.REALM_KEY = SR.REALM_KEY)
WHERE SR.REALM_ID != '!site.helper' AND SR.REALM_ID NOT LIKE '!user.template%'
AND NOT EXISTS (
SELECT 1
FROM SAKAI_REALM_RL_FN SRRFI
WHERE SRRFI.REALM_KEY=SRRFD.REALM_KEY AND SRRFI.ROLE_KEY=SRRFD.ROLE_KEY AND SRRFI.FUNCTION_KEY=TMP.FUNCTION_KEY
);
-- clean up the temp tables
DROP TABLE PERMISSIONS_TEMP;
DROP TABLE PERMISSIONS_SRC_TEMP;
-- ------------------------------
-- END permission backfill -----
-- ------------------------------
-- KNL-1336 - Add status for all nodes in a cluster.
ALTER TABLE SAKAI_CLUSTER ADD COLUMN STATUS VARCHAR(8);
-- We rename the column so we don't have update the primary key index
ALTER TABLE SAKAI_CLUSTER CHANGE SERVER_ID SERVER_ID_INSTANCE VARCHAR (64);
ALTER TABLE SAKAI_CLUSTER ADD COLUMN SERVER_ID VARCHAR (64);
-- SAK-27937 - Course grade to disable course points
ALTER TABLE GB_GRADEBOOK_T ADD COLUMN COURSE_POINTS_DISPLAYED bit(1) NOT NULL DEFAULT b'0';
-- End SAK-27937
-- SAK-25385
ALTER TABLE GB_GRADABLE_OBJECT_T MODIFY DUE_DATE DATETIME;
-- End SAK-25385
-- SAK-23666 Add OAuth Admin tool to Administration workspace
INSERT INTO SAKAI_SITE_PAGE VALUES ('!admin-1500', '!admin', 'OAuth Admin', '0', 20, '0');
INSERT INTO SAKAI_SITE_TOOL VALUES ('!admin-1550', '!admin-1500', '!admin', 'sakai.oauth.admin', 1, 'OAuth Admin', NULL);
-- SAK-23666 Add OAuth Admin tool to My Workspace template
INSERT INTO SAKAI_SITE_PAGE VALUES ('!user-650', '!user', 'Trusted Applications', '0', 9, '0');
INSERT INTO SAKAI_SITE_TOOL VALUES ('!user-655', '!user-650', '!user', 'sakai.oauth', 1, 'Trusted Applications', NULL);
-- SAK-28084 Roles for adding .auth/.anon to a site.
INSERT INTO SAKAI_REALM VALUES (DEFAULT, '!site.roles', '', NULL, 'admin', 'admin', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP());
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'annc.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'chat.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'content.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'mail.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'rwiki.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.anon'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'site.visit'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'annc.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'chat.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'content.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'mail.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'rwiki.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.auth'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'site.visit'));
-- SAK-29432 Add dropDate field to Enrollment
ALTER TABLE CM_ENROLLMENT_T ADD COLUMN DROP_DATE DATE;
-- SAK-29422 Incorporate NYU's "public announcement system"
CREATE TABLE `pasystem_popup_screens` (
`uuid` CHAR(36) PRIMARY KEY,
`descriptor` VARCHAR(255),
`start_time` BIGINT,
`end_time` BIGINT,
`open_campaign` int(1) DEFAULT NULL,
INDEX `start_time` (`start_time`),
INDEX `descriptor` (`descriptor`)
);
CREATE TABLE `pasystem_popup_content` (
`uuid` char(36) PRIMARY KEY,
`template_content` MEDIUMTEXT,
FOREIGN KEY (uuid) REFERENCES pasystem_popup_screens(uuid)
);
CREATE TABLE `pasystem_popup_assign` (
`uuid` char(36),
`user_eid` varchar(255) DEFAULT NULL,
FOREIGN KEY (uuid) REFERENCES pasystem_popup_screens(uuid),
INDEX `user_eid` (`user_eid`)
);
CREATE TABLE `pasystem_popup_dismissed` (
`uuid` char(36),
`user_eid` varchar(255) DEFAULT NULL,
`state` varchar(50) DEFAULT NULL,
`dismiss_time` BIGINT,
UNIQUE KEY `unique_popup_dismissed` (`user_eid`,`state`, `uuid`),
FOREIGN KEY (uuid) REFERENCES pasystem_popup_screens(uuid),
INDEX `user_eid` (`user_eid`),
INDEX `state` (`state`)
);
CREATE TABLE pasystem_banner_alert
( `uuid` CHAR(36) PRIMARY KEY,
`message` VARCHAR(4000) NOT NULL,
`hosts` VARCHAR(512) DEFAULT NULL,
`active` INT(1) NOT NULL DEFAULT 0,
`start_time` BIGINT DEFAULT NULL,
`end_time` BIGINT DEFAULT NULL,
`banner_type` VARCHAR(255) DEFAULT 'warning'
);
INSERT IGNORE INTO SAKAI_REALM_FUNCTION (FUNCTION_NAME) VALUES ('pasystem.manage');
CREATE TABLE `pasystem_banner_dismissed` (
`uuid` char(36),
`user_eid` varchar(255) DEFAULT NULL,
`state` varchar(50) DEFAULT NULL,
`dismiss_time` BIGINT,
UNIQUE KEY `unique_banner_dismissed` (`user_eid`,`state`, `uuid`),
FOREIGN KEY (uuid) REFERENCES pasystem_banner_alert(uuid),
INDEX `user_eid` (`user_eid`),
INDEX `state` (`state`)
);
INSERT INTO SAKAI_SITE_PAGE VALUES('!admin-1600', '!admin', 'PA System', '0', 20, '0' );
INSERT INTO SAKAI_SITE_TOOL VALUES('!admin-1650', '!admin-1600', '!admin', 'sakai.pasystem', 1, 'PA System', NULL );
INSERT INTO SAKAI_SITE_PAGE_PROPERTY VALUES('!admin', '!admin-1600', 'sitePage.customTitle', 'true');
-- END SAK-29422 Incorporate NYU's "public announcement system"
-- SAK-29571 MFR_MESSAGE_DELETD_I causes bad performance
drop index MFR_MESSAGE_DELETED_I on MFR_MESSAGE_T;
-- END SAK-29571 MFR_MESSAGE_DELETD_I causes bad performance
-- LSNBLDR-646
drop index lesson_builder_qr_questionId on lesson_builder_q_responses;
-- END LSNBLDR-646
-- SAK-29546 Add site visit totals per user
CREATE TABLE SST_PRESENCE_TOTALS (
ID int(20) NOT NULL auto_increment,
SITE_ID varchar(99) NOT NULL,
USER_ID varchar(99) NOT NULL,
TOTAL_VISITS int NOT NULL,
LAST_VISIT_TIME datetime NOT NULL,
UNIQUE KEY(SITE_ID, USER_ID),
PRIMARY KEY(ID));
-- END SAK-29546
-- KNL-1369 Update kernel DDL with new roster.viewsitevisits permission
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'roster.viewsitevisits');
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'roster.viewsitevisits'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'roster.viewsitevisits'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!group.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Teaching Assistant'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'roster.viewsitevisits'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'roster.viewsitevisits'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'roster.viewsitevisits'));
-- END KNL-1369
-- SAK-29497 Improve usability of Schedule's "List of events" page
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'calendar.view.audience');
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.view.audience'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.view.audience'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.view.audience'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.view.audience'));
-- END SAK-29497
-- SAK-29271 Feedback Tool
CREATE TABLE IF NOT EXISTS sakai_feedback (
id INT NOT NULL AUTO_INCREMENT,
user_id VARCHAR(99),
email VARCHAR(255) NOT NULL,
site_id VARCHAR(99) NOT NULL,
report_type ENUM('content','technical', 'helpdesk') NOT NULL,
title VARCHAR(40) NOT NULL,
content TEXT NOT NULL, PRIMARY KEY(id));
INSERT INTO SAKAI_SITE VALUES('!contact-us', 'Contact Us', null, null, null, '', '', null, 1, 0, 0, '', 'admin', 'admin', NOW(), NOW(), 1, 0, 0, 0, null);
INSERT INTO SAKAI_SITE_PAGE VALUES('!contact-us', '!contact-us', 'Contact Us', '0', 1, '0' );
INSERT INTO SAKAI_SITE_TOOL VALUES('!contact-us', '!contact-us', '!contact-us', 'sakai.feedback', 1, 'Contact Us', NULL );
-- END SAK-29271
-- SAK-29733 Change Schedule to Calendar for existing sites
UPDATE SAKAI_SITE_TOOL SET TITLE="Calendar" WHERE REGISTRATION = "sakai.schedule" AND TITLE = "Schedule";
UPDATE SAKAI_SITE_PAGE SET TITLE="Calendar" WHERE TITLE = "Schedule";
-- SAK-29974 Nested citation lists
ALTER TABLE CITATION_COLLECTION_ORDER ADD SECTION_TYPE ENUM('HEADING1','HEADING2', 'HEADING3', 'DESCRIPTION', 'CITATION') DEFAULT NULL;
ALTER TABLE CITATION_COLLECTION_ORDER ADD VALUE TEXT DEFAULT NULL;
ALTER TABLE CITATION_COLLECTION_ORDER MODIFY COLUMN CITATION_ID VARCHAR(36) NULL;
-- End SAK-29974
-- SAK-30000 Site creation notification email template updates
UPDATE email_template_item
SET message = '
From Worksite Setup to ${serviceName} support:
<#if courseSite ="true">Official Course Site<#else>Site </#if> ${siteTitle} (ID ${siteId}) was set up by ${currentUserDisplayName} (${currentUserDisplayId}, email ${currentUserEmail}) on ${dateDisplay} <#if courseSite ="true">for ${termTitle} </#if>
<#if numSections = "1">with access to the roster for this section:<#elseif numSections != "0">with access to rosters for these ${numSections} sections:</#if>
${sections}
'
WHERE template_key = 'sitemanage.notifySiteCreation' AND template_locale = 'default';
UPDATE email_template_item
SET subject = 'Site "${siteTitle}" was successfully created by ${currentUserDisplayName}', message = '
Hi, ${currentUserDisplayName}:
Your site "${siteTitle}" has been successfully created. The following is a copy of the site creation notification email sent to ${serviceName} support:
From Worksite Setup to ${serviceName} support:
<#if courseSite ="true">Official Course Site<#else>Site </#if> ${siteTitle} (ID ${siteId}) was set up by ${currentUserDisplayName} (${currentUserDisplayId}, email ${currentUserEmail}) on ${dateDisplay} <#if courseSite ="true">for ${termTitle} </#if>
<#if numSections = "1">with access to the roster for this section:<#elseif numSections != "0">with access to rosters for these ${numSections} sections:</#if>
${sections}
'
WHERE template_key = 'sitemanage.notifySiteCreation.confirmation' AND template_locale = 'default';
-- END SAK-30000
-- SAK-29740 update gradebook settings
ALTER TABLE gb_gradebook_t ADD course_letter_grade_displayed BIT(1) NOT NULL DEFAULT true;
-- SAK-29401/SAK-29977 Role based access to sites --
INSERT INTO SAKAI_REALM_ROLE VALUES (DEFAULT, '.default');
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'annc.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'calendar.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'chat.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'content.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'mail.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'rwiki.read'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.roles'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = '.default'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'site.visit'));
-- SAK-25099 Anonymous topics in forums
ALTER TABLE MFR_TOPIC_T ADD COLUMN POST_ANONYMOUS BIT(1) NOT NULL DEFAULT 0;
ALTER TABLE MFR_TOPIC_T ADD COLUMN REVEAL_IDS_TO_ROLES BIT(1) NOT NULL DEFAULT 0;
ALTER TABLE MFR_PERMISSION_LEVEL_T ADD COLUMN IDENTIFY_ANON_AUTHORS BIT(1) NOT NULL DEFAULT 0;
UPDATE MFR_PERMISSION_LEVEL_T SET IDENTIFY_ANON_AUTHORS = 1 WHERE NAME = 'Owner';
-- SAM-2627
ALTER TABLE SAM_GRADINGATTACHMENT_T ADD COLUMN `ASSESSMENTGRADINGID` BIGINT(20) NULL AFTER `ITEMGRADINGID`;
-- SAK-25544 - Quartz updated to 2.2.1
-- drop tables that are no longer used
--
DROP TABLE QRTZ_JOB_LISTENERS;
DROP TABLE QRTZ_TRIGGER_LISTENERS;
--
-- drop columns that are no longer used
--
ALTER TABLE QRTZ_JOB_DETAILS DROP COLUMN IS_VOLATILE;
ALTER TABLE QRTZ_TRIGGERS DROP COLUMN IS_VOLATILE;
ALTER TABLE QRTZ_FIRED_TRIGGERS DROP COLUMN IS_VOLATILE;
--
-- add new columns that replace the 'is_stateful' column
--
ALTER TABLE QRTZ_JOB_DETAILS ADD COLUMN IS_NONCONCURRENT BOOL;
ALTER TABLE QRTZ_JOB_DETAILS ADD COLUMN IS_UPDATE_DATA BOOL;
UPDATE QRTZ_JOB_DETAILS SET IS_NONCONCURRENT = IS_STATEFUL;
UPDATE QRTZ_JOB_DETAILS SET IS_UPDATE_DATA = IS_STATEFUL;
ALTER TABLE QRTZ_JOB_DETAILS DROP COLUMN IS_STATEFUL;
ALTER TABLE QRTZ_FIRED_TRIGGERS ADD COLUMN IS_NONCONCURRENT BOOL;
UPDATE QRTZ_FIRED_TRIGGERS SET IS_NONCONCURRENT = IS_STATEFUL;
ALTER TABLE QRTZ_FIRED_TRIGGERS DROP COLUMN IS_STATEFUL;
--
-- add new 'sched_name' column to all tables
--
ALTER TABLE QRTZ_BLOB_TRIGGERS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_CALENDARS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_CRON_TRIGGERS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_FIRED_TRIGGERS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_JOB_DETAILS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_LOCKS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_PAUSED_TRIGGER_GRPS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_SCHEDULER_STATE ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_SIMPLE_TRIGGERS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
ALTER TABLE QRTZ_TRIGGERS ADD COLUMN SCHED_NAME VARCHAR(120) NOT NULL default 'QuartzScheduler';
--
-- add new 'sched_time' column to all tables
--
ALTER TABLE QRTZ_FIRED_TRIGGERS ADD COLUMN SCHED_TIME bigint(13) NOT NULL;
--
-- drop all foreign key constraints, so that we can define new ones
--
ALTER TABLE QRTZ_TRIGGERS DROP FOREIGN KEY QRTZ_TRIGGERS_IBFK_1;
ALTER TABLE QRTZ_TRIGGERS DROP KEY JOB_NAME;
ALTER TABLE QRTZ_BLOB_TRIGGERS DROP FOREIGN KEY QRTZ_BLOB_TRIGGERS_IBFK_1;
ALTER TABLE QRTZ_SIMPLE_TRIGGERS DROP FOREIGN KEY QRTZ_SIMPLE_TRIGGERS_IBFK_1;
ALTER TABLE QRTZ_CRON_TRIGGERS DROP FOREIGN KEY QRTZ_CRON_TRIGGERS_IBFK_1;
--
-- add all primary and foreign key constraints, based on new columns
--
ALTER TABLE QRTZ_JOB_DETAILS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, JOB_NAME, JOB_GROUP);
ALTER TABLE QRTZ_TRIGGERS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_TRIGGERS ADD FOREIGN KEY (SCHED_NAME, JOB_NAME, JOB_GROUP) REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME, JOB_NAME, JOB_GROUP);
ALTER TABLE QRTZ_BLOB_TRIGGERS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_BLOB_TRIGGERS ADD FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_CRON_TRIGGERS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_CRON_TRIGGERS ADD FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_SIMPLE_TRIGGERS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_SIMPLE_TRIGGERS ADD FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_FIRED_TRIGGERS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, ENTRY_ID);
ALTER TABLE QRTZ_CALENDARS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, CALENDAR_NAME);
ALTER TABLE QRTZ_LOCKS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, LOCK_NAME);
ALTER TABLE QRTZ_PAUSED_TRIGGER_GRPS DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, TRIGGER_GROUP);
ALTER TABLE QRTZ_SCHEDULER_STATE DROP PRIMARY KEY, ADD PRIMARY KEY (SCHED_NAME, INSTANCE_NAME);
--
-- add new simprop_triggers table
--
CREATE TABLE QRTZ_SIMPROP_TRIGGERS
(
SCHED_NAME VARCHAR(120) NOT NULL,
TRIGGER_NAME VARCHAR(200) NOT NULL,
TRIGGER_GROUP VARCHAR(200) NOT NULL,
STR_PROP_1 VARCHAR(512) NULL,
STR_PROP_2 VARCHAR(512) NULL,
STR_PROP_3 VARCHAR(512) NULL,
INT_PROP_1 INT NULL,
INT_PROP_2 INT NULL,
LONG_PROP_1 BIGINT NULL,
LONG_PROP_2 BIGINT NULL,
DEC_PROP_1 NUMERIC(13,4) NULL,
DEC_PROP_2 NUMERIC(13,4) NULL,
BOOL_PROP_1 BOOL NULL,
BOOL_PROP_2 BOOL NULL,
PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
);
--
-- create indexes for faster queries
--
CREATE INDEX IDX_QRTZ_J_REQ_RECOVERY ON QRTZ_JOB_DETAILS(SCHED_NAME,REQUESTS_RECOVERY);
CREATE INDEX IDX_QRTZ_J_GRP ON QRTZ_JOB_DETAILS(SCHED_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_T_J ON QRTZ_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_T_JG ON QRTZ_TRIGGERS(SCHED_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_T_C ON QRTZ_TRIGGERS(SCHED_NAME,CALENDAR_NAME);
CREATE INDEX IDX_QRTZ_T_G ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
CREATE INDEX IDX_QRTZ_T_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_N_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_N_G_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_NEXT_FIRE_TIME ON QRTZ_TRIGGERS(SCHED_NAME,NEXT_FIRE_TIME);
CREATE INDEX IDX_QRTZ_T_NFT_ST ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE,NEXT_FIRE_TIME);
CREATE INDEX IDX_QRTZ_T_NFT_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME);
CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE_GRP ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_GROUP,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_FT_TRIG_INST_NAME ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME);
CREATE INDEX IDX_QRTZ_FT_INST_JOB_REQ_RCVRY ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME,REQUESTS_RECOVERY);
CREATE INDEX IDX_QRTZ_FT_J_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_FT_JG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_FT_T_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP);
CREATE INDEX IDX_QRTZ_FT_TG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
--
-- SAM-948 - MIN_SCORE option in Samigo
--
alter table SAM_ITEM_T add column MIN_SCORE double NULL;
alter table SAM_PUBLISHEDITEM_T add column MIN_SCORE double NULL;
-- KNL-1405 Don't have defaults for TIMESTAMP in SAKAI_SESSION
ALTER TABLE SAKAI_SESSION MODIFY SESSION_START NULL;
ALTER TABLE SAKAI_SESSION MODIFY SESSION_END NULL;
-- 1389 GradebookNG sortable assignments within categories, add CATEGORIZED_SORT_ORDER to GB_GRADABLE_OBJECT_T
ALTER TABLE GB_GRADABLE_OBJECT_T ADD COLUMN CATEGORIZED_SORT_ORDER int NULL;
-- 1840 Allow quick queries of grading events by date graded
CREATE INDEX GB_GRADING_EVENT_T_DATE_OBJ_ID ON GB_GRADING_EVENT_T (DATE_GRADED, GRADABLE_OBJECT_ID);
--
-- SAM-1117 - Option to not show score
--
ALTER TABLE SAM_ASSESSACCESSCONTROL_T ADD COLUMN DISPLAYSCORE integer;
ALTER TABLE SAM_PUBLISHEDACCESSCONTROL_T ADD COLUMN DISPLAYSCORE integer;
ALTER TABLE SAM_ITEM_T ADD COLUMN SCORE_DISPLAY_FLAG bit(1);
ALTER TABLE SAM_PUBLISHEDITEM_T ADD COLUMN SCORE_DISPLAY_FLAG bit(1);
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, 1, 'displayScores_isInstructorEditable', 'true') ;
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Formative Assessment'
AND TYPEID='142' AND ISTEMPLATE=1),
'displayScores_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Quiz'
AND TYPEID='142' AND ISTEMPLATE=1),
'displayScores_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Problem Set'
AND TYPEID='142' AND ISTEMPLATE=1),
'displayScores_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Survey'
AND TYPEID='142' AND ISTEMPLATE=1),
'displayScores_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Test'
AND TYPEID='142' AND ISTEMPLATE=1),
'displayScores_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL,
ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Timed Test'
AND TYPEID='142' AND ISTEMPLATE=1),
'displayScores_isInstructorEditable', 'true');
-- LTI CHANGES !!!
alter table LTI_CONTENT add FA_ICON varchar(1024);
alter table LTI_CONTENT add CONTENTITEM mediumtext;
alter table lti_tools add pl_launch tinyint(4) default 0;
alter table lti_tools add pl_linkselection tinyint(4) default 0;
alter table lti_tools add pl_fileitem tinyint(4) default 0;
alter table lti_tools add pl_contenteditor tinyint(4) default 0;
alter table lti_tools add pl_assessmentselection tinyint(4) default 0;
alter table lti_tools add pl_importitem tinyint(4) default 0;
alter table lti_tools add fa_icon varchar(1024);
alter table lti_tools add tool_proxy_binding mediumtext;
ALTER TABLE lti_content MODIFY ( title VARCHAR(1024) );
ALTER TABLE lti_content MODIFY ( pagetitle VARCHAR(1024) );
ALTER TABLE lti_content MODIFY ( consumerkey VARCHAR(1024) );
ALTER TABLE lti_content MODIFY ( secret VARCHAR(1024) );
alter table lti_content modify ( custom varchar(65536) );
ALTER TABLE lti_tools MODIFY ( title VARCHAR(1024) );
ALTER TABLE lti_tools MODIFY ( pagetitle VARCHAR(1024) );
ALTER TABLE lti_tools MODIFY ( consumerkey VARCHAR(1024) );
ALTER TABLE lti_tools MODIFY ( secret VARCHAR(1024) );
alter table lti_tools modify ( custom varchar(65536) );
ALTER TABLE lti_deploy MODIFY ( title VARCHAR(1024) );
ALTER TABLE lti_deploy MODIFY ( pagetitle VARCHAR(1024) );
ALTER TABLE lti_deploy ADD ( allowcontentitem tinyint(4) DEFAULT 0 );
ALTER TABLE lti_deploy MODIFY ( reg_key VARCHAR(1024) );
ALTER TABLE lti_deploy MODIFY ( reg_password VARCHAR(1024) );
ALTER TABLE lti_deploy ADD ( reg_ack CLOB );
ALTER TABLE lti_deploy MODIFY ( consumerkey VARCHAR(1024) );
ALTER TABLE lti_deploy MODIFY ( secret VARCHAR(1024) );
ALTER TABLE lti_deploy ADD ( new_secret VARCHAR(1024) );
CREATE TABLE lti_memberships_jobbbs (
SITE_ID VARCHAR(99),
memberships_id VARCHAR(256),
memberships_url mediumtext,
consumerkey VARCHAR(1024),
lti_version VARCHAR(32)
);
-- END LTI CHANGES !!
-- LSNBLDR-622
alter table lesson_builder_items modify column name varchar(255);
alter table lesson_builder_pages modify column title varchar(255);
alter table lesson_builder_p_eval_results modify column gradee varchar(99) null;
alter table lesson_builder_p_eval_results modify column row_text varchar(255) null;
alter table lesson_builder_p_eval_results add column gradee_group varchar(99) null;
alter table lesson_builder_p_eval_results add column row_id bigint(20) default 0;
-- sites new with 10 will already have this but it was missing in 10 conversion scripts
alter table lesson_builder_groups modify column groups longtext;
create table lesson_builder_ch_status (
checklistId bigint(20) not null,
checklistItemId bigint(20) not null,
owner varchar(99) not null,
done bit(1),
primary key (checklistId,checklistItemId,owner)
);
create index lesson_builder_p_eval_res_row on lesson_builder_p_eval_results(page_id);
-- ---------------------------------------------------------------------------
-- SAKAI_CONFIG_ITEM - KNL-1063 - MYSQL
-- ---------------------------------------------------------------------------
CREATE TABLE SAKAI_CONFIG_ITEM (
ID BIGINT(20) NOT NULL AUTO_INCREMENT,
NODE VARCHAR(255),
NAME VARCHAR(255) NOT NULL,
VALUE LONGTEXT,
RAW_VALUE LONGTEXT,
TYPE VARCHAR(255) NOT NULL,
DEFAULT_VALUE LONGTEXT,
DESCRIPTION LONGTEXT,
SOURCE VARCHAR(255) DEFAULT NULL,
DEFAULTED BIT(1) NOT NULL,
REGISTERED BIT(1) NOT NULL,
SECURED BIT(1) NOT NULL,
DYNAMIC BIT(1) NOT NULL,
CREATED DATETIME NOT NULL,
MODIFIED DATETIME NOT NULL,
POLL_ON DATETIME DEFAULT NULL,
PRIMARY KEY (ID)
);
CREATE INDEX SCI_NODE_IDX ON SAKAI_CONFIG_ITEM (NODE ASC);
CREATE INDEX SCI_NAME_IDX ON SAKAI_CONFIG_ITEM (NAME ASC);
-- SAK-30032 Create table to handle Peer Review attachments --
CREATE TABLE ASN_PEER_ASSESSMENT_ATTACH_T (
ID int NOT NULL AUTO_INCREMENT,
SUBMISSION_ID varchar(255) NOT NULL,
ASSESSOR_USER_ID varchar(255) NOT NULL,
RESOURCE_ID varchar(255) NOT NULL,
PRIMARY KEY(ID)
);
create index PEER_ASSESSOR_I on ASN_PEER_ASSESSMENT_ATTACH_T (SUBMISSION_ID, ASSESSOR_USER_ID);
-- END SAK-30032
-- KNL-1424 Add Message Bundle Manager to admin workspace
INSERT INTO SAKAI_SITE_PAGE VALUES('!admin-1575', '!admin', 'Message Bundle Manager', '0', 21, '0' );
INSERT INTO SAKAI_SITE_TOOL VALUES('!admin-1575', '!admin-1575', '!admin', 'sakai.message.bundle.manager', 1, 'Message Bundle Manager', NULL );
INSERT INTO SAKAI_SITE_PAGE_PROPERTY VALUES('!admin', '!admin-1575', 'sitePage.customTitle', 'true');
-- END KNL-1424
--SAM-2709 Submission Email Notifications Hidden Inappropriately--
ALTER TABLE SAM_ASSESSACCESSCONTROL_T ADD COLUMN INSTRUCTORNOTIFICATION integer;
ALTER TABLE SAM_PUBLISHEDACCESSCONTROL_T ADD COLUMN INSTRUCTORNOTIFICATION integer;
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, 1, 'instructorNotification_isInstructorEditable', 'true') ;
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Formative Assessment'
AND TYPEID='142' AND ISTEMPLATE=1),
'instructorNotification_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Quiz'
AND TYPEID='142' AND ISTEMPLATE=1),
'instructorNotification_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Problem Set'
AND TYPEID='142' AND ISTEMPLATE=1),
'instructorNotification_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Survey'
AND TYPEID='142' AND ISTEMPLATE=1),
'instructorNotification_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Test'
AND TYPEID='142' AND ISTEMPLATE=1),
'instructorNotification_isInstructorEditable', 'true');
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTMETADATAID, ASSESSMENTID, LABEL, ENTRY)
VALUES(NULL, (SELECT ID FROM SAM_ASSESSMENTBASE_T WHERE TITLE='Timed Test'
AND TYPEID='142' AND ISTEMPLATE=1),
'instructorNotification_isInstructorEditable', 'true');
--END SAM-2709
-- SAM-2751
ALTER TABLE SAM_ASSESSACCESSCONTROL_T ADD HONORPLEDGE BIT;
ALTER TABLE SAM_PUBLISHEDACCESSCONTROL_T ADD HONORPLEDGE BIT;
INSERT INTO SAM_ASSESSMETADATA_T (ASSESSMENTID, LABEL, ENTRY)
SELECT DISTINCT ASSESSMENTID, 'honorpledge_isInstructorEditable' as LABEL, 'true' as ENTRY
FROM SAM_ASSESSMETADATA_T WHERE ASSESSMENTID NOT IN
(SELECT DISTINCT ASSESSMENTID FROM SAM_ASSESSMETADATA_T WHERE LABEL = 'honorpledge_isInstructorEditable');
-- END SAM-2751
-- SAM-1200 - Increase column data sizes
alter table SAM_PUBLISHEDASSESSMENT_T change description description mediumtext null;
alter table SAM_PUBLISHEDSECTION_T change description description mediumtext null;
alter table SAM_ASSESSMENTBASE_T change description description mediumtext null;
alter table SAM_SECTION_T change description description mediumtext null;
alter table SAM_ITEMGRADING_T change comments comments mediumtext null;
alter table SAM_ASSESSMENTGRADING_T change comments comments mediumtext null;
-- END SAM-1200
CREATE TABLE SST_LESSONBUILDER (
ID bigint(20) NOT NULL AUTO_INCREMENT,
USER_ID varchar(99) NOT NULL,
SITE_ID varchar(99) NOT NULL,
PAGE_REF varchar(255) NOT NULL,
PAGE_ID bigint(20) NOT NULL,
PAGE_ACTION varchar(12) NOT NULL,
PAGE_DATE date NOT NULL,
PAGE_COUNT bigint(20) NOT NULL,
PRIMARY KEY (ID),
KEY SST_LESSONBUILDER_PAGE_ACT_IDX (PAGE_ACTION),
KEY SST_LESSONBUILDER_DATE_IX (PAGE_DATE),
KEY SST_LESSONBUILDER_SITE_ID_IX (SITE_ID),
KEY SST_LESSONBUILDER_USER_ID_IX (USER_ID)
);
CREATE TABLE MFR_ANONYMOUS_MAPPING_T (
SITE_ID varchar(255) NOT NULL,
USER_ID varchar(255) NOT NULL,
ANON_ID varchar(255) NOT NULL,
PRIMARY KEY (SITE_ID,USER_ID)
);
CREATE TABLE MFR_RANK_INDIVIDUAL_T (
RANK_ID bigint(20) NOT NULL,
USER_ID varchar(99) NOT NULL,
PRIMARY KEY (RANK_ID,USER_ID),
KEY mfr_rank_indiv_fk (RANK_ID),
CONSTRAINT mfr_rank_indiv_fk FOREIGN KEY (RANK_ID) REFERENCES MFR_RANK_T (ID)
);
-- New permissions for SAK-30141
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'syllabus.add.item');
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'syllabus.bulk.add.item');
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'syllabus.bulk.edit.item');
INSERT INTO SAKAI_REALM_FUNCTION VALUES (DEFAULT, 'syllabus.redirect');
-- Maintain
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.edit.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.user'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.redirect'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.edit.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'maintain'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.redirect'));
-- Instructor
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.edit.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.course'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.redirect'));
-- Admininstrator
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.edit.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Administrator'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.redirect'));
-- Instructor
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.add.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.bulk.edit.item'));
INSERT INTO SAKAI_REALM_RL_FN VALUES((select REALM_KEY from SAKAI_REALM where REALM_ID = '!site.template.lti'), (select ROLE_KEY from SAKAI_REALM_ROLE where ROLE_NAME = 'Instructor'), (select FUNCTION_KEY from SAKAI_REALM_FUNCTION where FUNCTION_NAME = 'syllabus.redirect'));
-- --------------------------------------------------------------------------------------------------------------------------------------
-- backfill new permissions into existing realms
--
-- syllabus.add.item
-- syllabus.bulk.add.item
-- syllabus.bulk.edit.item
-- syllabus.redirect
-- --------------------------------------------------------------------------------------------------------------------------------------
-- for each realm that has a role matching something in this table, we will add to that role the function from this table
CREATE TABLE PERMISSIONS_SRC_TEMP (ROLE_NAME VARCHAR(99), FUNCTION_NAME VARCHAR(99));
-- maintain
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','syllabus.add.item');
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','syllabus.bulk.add.item');
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','syllabus.bulk.edit.item');
INSERT INTO PERMISSIONS_SRC_TEMP values ('maintain','syllabus.redirect');
-- Instructor
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','syllabus.add.item');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','syllabus.bulk.add.item');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','syllabus.bulk.edit.item');
INSERT INTO PERMISSIONS_SRC_TEMP values ('Instructor','syllabus.redirect');
-- lookup the role and function numbers
CREATE TABLE PERMISSIONS_TEMP (ROLE_KEY INTEGER, FUNCTION_KEY INTEGER);
INSERT INTO PERMISSIONS_TEMP (ROLE_KEY, FUNCTION_KEY)
SELECT SRR.ROLE_KEY, SRF.FUNCTION_KEY
from PERMISSIONS_SRC_TEMP TMPSRC
JOIN SAKAI_REALM_ROLE SRR ON (TMPSRC.ROLE_NAME = SRR.ROLE_NAME)
JOIN SAKAI_REALM_FUNCTION SRF ON (TMPSRC.FUNCTION_NAME = SRF.FUNCTION_NAME);
-- insert the new functions into the roles of any existing realm that has the role (don't convert the "!site.helper" or "!user.template")
INSERT INTO SAKAI_REALM_RL_FN (REALM_KEY, ROLE_KEY, FUNCTION_KEY)
SELECT
SRRFD.REALM_KEY, SRRFD.ROLE_KEY, TMP.FUNCTION_KEY
FROM
(SELECT DISTINCT SRRF.REALM_KEY, SRRF.ROLE_KEY FROM SAKAI_REALM_RL_FN SRRF) SRRFD
JOIN PERMISSIONS_TEMP TMP ON (SRRFD.ROLE_KEY = TMP.ROLE_KEY)
JOIN SAKAI_REALM SR ON (SRRFD.REALM_KEY = SR.REALM_KEY)
WHERE SR.REALM_ID != '!site.helper' AND SR.REALM_ID NOT LIKE '!user.template%'
AND NOT EXISTS (
SELECT 1
FROM SAKAI_REALM_RL_FN SRRFI
WHERE SRRFI.REALM_KEY=SRRFD.REALM_KEY AND SRRFI.ROLE_KEY=SRRFD.ROLE_KEY AND SRRFI.FUNCTION_KEY=TMP.FUNCTION_KEY
);
-- clean up the temp tables
DROP TABLE PERMISSIONS_TEMP;
DROP TABLE PERMISSIONS_SRC_TEMP;
-- ------------------------------
-- END permission backfill -----
-- ------------------------------
-- End permissions for SAK-30141
-- SAK-30144: Add the new 'EID' column to the VALIDATIONACCOUNT_ITEM table
ALTER TABLE VALIDATIONACCOUNT_ITEM ADD COLUMN EID VARCHAR(255);
|
CREATE SCHEMA IF NOT EXISTS ${dbName};
USE ${dbName};
/*
Create the batch_change table. This table stores the metadata of a batch change.
It supports easy query by batch change ID, user_id, and combination of user_id & created_time.
*/
CREATE TABLE batch_change (
id CHAR(36) NOT NULL,
user_id CHAR(36) NOT NULL,
user_name VARCHAR(45) NOT NULL,
created_time DATETIME NOT NULL,
comments VARCHAR(1024) NULL,
PRIMARY KEY (id),
INDEX batch_change_user_id_index (user_id ASC),
INDEX batch_change_user_id_created_time_index (user_id ASC, created_time ASC));
/*
Create the single_change table. This table stores the single changes and associated them with batch change via foreign key.
It stores single change data as encoded protobuf in the data BLOLB. Whenever any column in the table is updated, the data column must be updated too.
Just reading from the data column and decode the protobuf format can get all the data for a single change.
It also stores other IDs to associate with zone, record set and record set change. These IDs allow getting additional data from the dynamodb where they're stored.
*/
CREATE TABLE single_change (
id CHAR(36) NOT NULL,
seq_num SMALLINT NOT NULL,
input_name VARCHAR(45) NOT NULL,
change_type VARCHAR(20) NOT NULL,
data BLOB NOT NULL,
status VARCHAR(10) NOT NULL,
batch_change_id CHAR(36) NOT NULL,
record_set_change_id CHAR(36) NULL,
record_set_id CHAR(36) NULL,
zone_id CHAR(36) NOT NULL,
PRIMARY KEY (id),
INDEX batch_change_id_index (batch_change_id ASC),
INDEX record_set_change_id_index (record_set_change_id ASC),
CONSTRAINT fk_single_change_batch_change1
FOREIGN KEY (batch_change_id)
REFERENCES ${dbName}.batch_change (id)
ON DELETE CASCADE);
|
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/add_ms_view_with_columns_diff.sql
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW [dbo].[view1] ([c1], [c2])
WITH VIEW_METADATA AS
SELECT a.[c1], a.[c2] FROM [dbo].[table1] a
GO
|
<gh_stars>0
CREATE OR REPLACE FUNCTION {databaseSchema}.mt_immutable_timestamp(value text) RETURNS timestamp with time zone LANGUAGE sql IMMUTABLE AS $function$
select value::timestamptz
$function$;
|
<gh_stars>0
-- --------------------------------------------------------
-- -
-- テーブルの構造 `journal`
-- -
CREATE TABLE `journal` (
`journal_id` int(11) NOT NULL default '0',
`room_id` int(11) NOT NULL default '0',
`journal_name` varchar(255) NOT NULL default '',
`active_flag` tinyint(1) NOT NULL default '0',
`post_authority` tinyint(1) NOT NULL default '0',
`mobile_mail_flag` tinyint(1) NOT NULL default '0',
`mail_flag` tinyint(1) NOT NULL default '0',
`mail_authority` tinyint(1) NOT NULL default '0',
`mail_subject` varchar(255) default NULL,
`mail_body` text,
`vote_flag` tinyint(1) NOT NULL default '0',
`comment_flag` tinyint(1) NOT NULL default '0',
`sns_flag` tinyint(1) unsigned NOT NULL default '1',
`new_period` int(11) NOT NULL default '0',
`trackback_transmit_flag` tinyint(1) NOT NULL default '0',
`trackback_receive_flag` tinyint(1) NOT NULL default '0',
`transmit_blogname` text,
`agree_flag` tinyint(1) NOT NULL default '0',
`agree_mail_flag` tinyint(1) NOT NULL default '0',
`agree_mail_subject` varchar(255) default NULL,
`agree_mail_body` text,
`comment_agree_flag` tinyint(1) NOT NULL default '0',
`comment_agree_mail_flag` tinyint(1) NOT NULL default '0',
`comment_agree_mail_subject` varchar(255) default NULL,
`comment_agree_mail_body` text,
`insert_time` varchar(14) NOT NULL default '',
`insert_site_id` varchar(40) NOT NULL default '',
`insert_user_id` varchar(40) NOT NULL default '',
`insert_user_name` varchar(255) NOT NULL default '',
`update_time` varchar(14) NOT NULL default '',
`update_site_id` varchar(40) NOT NULL default '',
`update_user_id` varchar(40) NOT NULL default '',
`update_user_name` varchar(255) NOT NULL default '',
PRIMARY KEY (`journal_id`),
KEY `room_id` (`room_id`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
-- -
-- テーブルの構造 `journal_block`
-- -
CREATE TABLE `journal_block` (
`block_id` int(11) NOT NULL default '0',
`journal_id` int(11) NOT NULL default '0',
`visible_item` int(11) NOT NULL default '0',
`room_id` int(11) NOT NULL default '0',
`insert_time` varchar(14) NOT NULL default '',
`insert_site_id` varchar(40) NOT NULL default '',
`insert_user_id` varchar(40) NOT NULL default '',
`insert_user_name` varchar(255) NOT NULL default '',
`update_time` varchar(14) NOT NULL default '',
`update_site_id` varchar(40) NOT NULL default '',
`update_user_id` varchar(40) NOT NULL default '',
`update_user_name` varchar(255) NOT NULL default '',
PRIMARY KEY (`block_id`),
KEY `journal_id` (`journal_id`),
KEY `room_id` (`room_id`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
-- -
-- テーブルの構造 `journal_post`
-- -
CREATE TABLE `journal_post` (
`post_id` int(11) NOT NULL default '0',
`journal_id` int(11) NOT NULL default '0',
`journal_date` varchar(14) NOT NULL default '',
`category_id` int(11) NOT NULL default '0',
`root_id` int(11) NOT NULL default '0',
`parent_id` int(11) default NULL,
`title` varchar(255) NOT NULL default '',
`icon_name` varchar(128) default NULL,
`content` text,
`more_content` text,
`more_title` varchar(255) default NULL,
`hide_more_title` varchar(255) default NULL,
`vote` text,
`status` tinyint(1) NOT NULL default '0',
`agree_flag` tinyint(1) NOT NULL default '0',
`blog_name` varchar(255) NOT NULL default '',
`direction_flag` tinyint(1) NOT NULL default '0',
`tb_url` text,
`link` text,
`updateping` tinyint(1) NOT NULL default '0',
`room_id` int(11) NOT NULL default '0',
`insert_time` varchar(14) NOT NULL default '',
`insert_site_id` varchar(40) NOT NULL default '',
`insert_user_id` varchar(40) NOT NULL default '',
`insert_user_name` varchar(255) NOT NULL default '',
`update_time` varchar(14) NOT NULL default '',
`update_site_id` varchar(40) NOT NULL default '',
`update_user_id` varchar(40) NOT NULL default '',
`update_user_name` varchar(255) NOT NULL default '',
PRIMARY KEY (`post_id`),
KEY `root_id` (`root_id`),
KEY `parent_id` (`parent_id`),
KEY `journal_id_2` (`journal_id`,`journal_date`,`insert_time`),
KEY `category_id` (`category_id`),
KEY `room_id` (`room_id`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
-- -
-- テーブルの構造 `journal_category`
-- -
CREATE TABLE `journal_category` (
`category_id` int(11) NOT NULL default '0',
`journal_id` int(11) NOT NULL default '0',
`category_name` varchar(255) default NULL,
`display_sequence` int(11) default NULL,
`room_id` int(11) NOT NULL default '0',
`insert_time` varchar(14) NOT NULL default '',
`insert_site_id` varchar(40) NOT NULL default '',
`insert_user_id` varchar(40) NOT NULL default '',
`insert_user_name` varchar(255) NOT NULL default '',
`update_time` varchar(14) NOT NULL default '',
`update_site_id` varchar(40) NOT NULL default '',
`update_user_id` varchar(40) NOT NULL default '',
`update_user_name` varchar(255) NOT NULL default '',
PRIMARY KEY (`category_id`),
KEY `room_id` (`room_id`),
KEY `journal_id` (`journal_id`,`display_sequence`)
) ENGINE=MyISAM;
|
<gh_stars>0
ALTER TABLE `oxmanufacturers` ADD `EXTLONGDESC` TEXT NOT NULL AFTER `OXSHORTDESC`;
ALTER TABLE `oxmanufacturers` ADD `EXTLONGDESC_1` TEXT NOT NULL AFTER `OXSHORTDESC_1`;
ALTER TABLE `oxmanufacturers` ADD `EXTLONGDESC_2` TEXT NOT NULL AFTER `OXSHORTDESC_2`;
ALTER TABLE `oxmanufacturers` ADD `EXTLONGDESC_3` TEXT NOT NULL AFTER `OXSHORTDESC_3`;
|
<gh_stars>0
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2017-09-30',@EPS = N'-0.002',@EPSDeduct = N'0',@Revenue = N'5322.99万',@RevenueYoy = N'-25.60',@RevenueQoq = N'27.22',@Profit = N'-48.01万',@ProfitYoy = N'-109.95',@ProfiltQoq = N'208.13',@NAVPerUnit = N'0.2400',@ROE = N'-0.87',@CashPerUnit = N'-0.0278',@GrossProfitRate = N'25.38',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-20'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2017-03-31',@EPS = N'-0.002',@EPSDeduct = N'0',@Revenue = N'1493.70万',@RevenueYoy = N'-21.56',@RevenueQoq = N'-24.92',@Profit = N'-54.83万',@ProfitYoy = N'-131.21',@ProfiltQoq = N'69.75',@NAVPerUnit = N'0.2371',@ROE = N'-1.00',@CashPerUnit = N'-0.0553',@GrossProfitRate = N'30.94',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-18'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2016-12-31',@EPS = N'0.013',@EPSDeduct = N'0.013',@Revenue = N'9144.57万',@RevenueYoy = N'-20.14',@RevenueQoq = N'-34.23',@Profit = N'301.30万',@ProfitYoy = N'-73.47',@ProfiltQoq = N'-184.49',@NAVPerUnit = N'0.2390',@ROE = N'5.65',@CashPerUnit = N'0.0813',@GrossProfitRate = N'33.62',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-04-08'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2017-09-30',@EPS = N'-0.002',@EPSDeduct = N'0',@Revenue = N'5322.99万',@RevenueYoy = N'-25.60',@RevenueQoq = N'27.22',@Profit = N'-48.01万',@ProfitYoy = N'-109.95',@ProfiltQoq = N'208.13',@NAVPerUnit = N'0.2400',@ROE = N'-0.87',@CashPerUnit = N'-0.0278',@GrossProfitRate = N'25.38',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-20'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2016-09-30',@EPS = N'0.021',@EPSDeduct = N'0',@Revenue = N'7155.01万',@RevenueYoy = N'-12.84',@RevenueQoq = N'35.90',@Profit = N'482.58万',@ProfitYoy = N'-54.22',@ProfiltQoq = N'132.33',@NAVPerUnit = N'0.2506',@ROE = N'8.22',@CashPerUnit = N'0.0352',@GrossProfitRate = N'31.74',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-20'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2017-06-30',@EPS = N'-0.006',@EPSDeduct = N'-0.006',@Revenue = N'3179.01万',@RevenueYoy = N'-23.03',@RevenueQoq = N'12.83',@Profit = N'-138.72万',@ProfitYoy = N'-151.75',@ProfiltQoq = N'-53.00',@NAVPerUnit = N'0.2349',@ROE = N'-2.53',@CashPerUnit = N'-0.0266',@GrossProfitRate = N'27.73',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2015-12-31',@EPS = N'0.049',@EPSDeduct = N'0.049',@Revenue = N'1.15亿',@RevenueYoy = N'26.42',@RevenueQoq = N'125.41',@Profit = N'1135.78万',@ProfitYoy = N'94.98',@ProfiltQoq = N'2.45',@NAVPerUnit = N'0.2250',@ROE = N'25.11',@CashPerUnit = N'-0.3368',@GrossProfitRate = N'36.90',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-04-08'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2015-09-30',@EPS = N'0.046',@EPSDeduct = N'0',@Revenue = N'8209.20万',@RevenueYoy = N'35.41',@RevenueQoq = N'-68.22',@Profit = N'1054.11万',@ProfitYoy = N'232.51',@ProfiltQoq = N'-90.60',@NAVPerUnit = N'0.2193',@ROE = N'23.96',@CashPerUnit = N'-0.3405',@GrossProfitRate = N'38.55',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2015-06-30',@EPS = N'0.042',@EPSDeduct = N'0.042',@Revenue = N'6771.16万',@RevenueYoy = N'101.15',@RevenueQoq = N'101.49',@Profit = N'974.40万',@ProfitYoy = N'381.23',@ProfiltQoq = N'571.71',@NAVPerUnit = N'0.2152',@ROE = N'22.35',@CashPerUnit = N'-0.3669',@GrossProfitRate = N'39.49',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-07-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2015-03-31',@EPS = N'0.005',@EPSDeduct = N'0',@Revenue = N'2245.90万',@RevenueYoy = N'487.08',@RevenueQoq = N'-25.02',@Profit = N'126.27万',@ProfitYoy = N'168.06',@ProfiltQoq = N'-52.44',@NAVPerUnit = N'0.1753',@ROE = N'3.21',@CashPerUnit = N'-0.3603',@GrossProfitRate = N'28.55',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2014-12-31',@EPS = N'0.025',@EPSDeduct = N'0.025',@Revenue = N'9057.71万',@RevenueYoy = N'10.41',@RevenueQoq = N'11.11',@Profit = N'582.50万',@ProfitYoy = N'-22.18',@ProfiltQoq = N'131.79',@NAVPerUnit = N'0.1684',@ROE = N'16.87',@CashPerUnit = N'0.2667',@GrossProfitRate = N'28.14',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2014-06-30',@EPS = N'0.009',@EPSDeduct = N'0.009',@Revenue = N'3366.21万',@RevenueYoy = N'87.38',@RevenueQoq = N'679.93',@Profit = N'202.48万',@ProfitYoy = N'271.53',@ProfiltQoq = N'309.15',@NAVPerUnit = N'0.1485',@ROE = N'6.20',@CashPerUnit = N'-0.0279',@GrossProfitRate = N'31.10',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-08'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2014-03-31',@EPS = N'-0.008',@EPSDeduct = N'0',@Revenue = N'382.55万',@RevenueYoy = N'-42.83',@RevenueQoq = N'-81.65',@Profit = N'-185.51万',@ProfitYoy = N'-7.00',@ProfiltQoq = N'-265.22',@NAVPerUnit = N'0.1297',@ROE = N'-6.04',@CashPerUnit = N'-0.0552',@GrossProfitRate = N'21.46',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2013-12-31',@EPS = N'0.033',@EPSDeduct = N'0.033',@Revenue = N'8203.91万',@RevenueYoy = N'588.92',@RevenueQoq = N'-51.77',@Profit = N'748.50万',@ProfitYoy = N'217.72',@ProfiltQoq = N'-85.11',@NAVPerUnit = N'0.1375',@ROE = N'27.95',@CashPerUnit = N'0.0502',@GrossProfitRate = N'28.50',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2013-09-30',@EPS = N'0.028',@EPSDeduct = N'0',@Revenue = N'6119.06万',@RevenueYoy = N'904.02',@RevenueQoq = N'283.43',@Profit = N'636.22万',@ProfitYoy = N'259.23',@ProfiltQoq = N'1263.07',@NAVPerUnit = N'0.1278',@ROE = N'24.27',@CashPerUnit = N'0.0287',@GrossProfitRate = N'28.64',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2013-06-30',@EPS = N'-0.005',@EPSDeduct = N'-0.005',@Revenue = N'1796.49万',@RevenueYoy = N'1261.79',@RevenueQoq = N'68.48',@Profit = N'-118.04万',@ProfitYoy = N'59.54',@ProfiltQoq = N'131.92',@NAVPerUnit = N'0.0950',@ROE = N'-5.26',@CashPerUnit = N'0.0007',@GrossProfitRate = N'19.39',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2013-03-31',@EPS = N'-0.008',@EPSDeduct = N'-0.008',@Revenue = N'669.14万',@RevenueYoy = N'-',@RevenueQoq = N'15.10',@Profit = N'-173.38万',@ProfitYoy = N'-16.23',@ProfiltQoq = N'26.63',@NAVPerUnit = N'0.0926',@ROE = N'-7.82',@CashPerUnit = N'-0.0113',@GrossProfitRate = N'1.70',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2012-12-31',@EPS = N'-0.028',@EPSDeduct = N'-0.028',@Revenue = N'1190.84万',@RevenueYoy = N'-',@RevenueQoq = N'21.75',@Profit = N'-635.85万',@ProfitYoy = N'-138.44',@ProfiltQoq = N'-119.13',@NAVPerUnit = N'0.1002',@ROE = N'-24.25',@CashPerUnit = N'0.0352',@GrossProfitRate = N'0.99',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-03-04'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2012-09-30',@EPS = N'-0.017',@EPSDeduct = N'-0.017',@Revenue = N'609.46万',@RevenueYoy = N'-',@RevenueQoq = N'261.99',@Profit = N'-399.56万',@ProfitYoy = N'-130.41',@ProfiltQoq = N'24.36',@NAVPerUnit = N'0.1104',@ROE = N'-14.58',@CashPerUnit = N'-0.0247',@GrossProfitRate = N'0.99',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2012-06-30',@EPS = N'-0.013',@EPSDeduct = N'-0.013',@Revenue = N'131.92万',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-291.73万',@ProfitYoy = N'-125.20',@ProfiltQoq = N'4.42',@NAVPerUnit = N'0.1151',@ROE = N'-10.44',@CashPerUnit = N'-0.0146',@GrossProfitRate = N'0.99',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-08-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2016-03-31',@EPS = N'0.008',@EPSDeduct = N'0',@Revenue = N'1904.23万',@RevenueYoy = N'-15.21',@RevenueQoq = N'-41.25',@Profit = N'175.70万',@ProfitYoy = N'39.15',@ProfiltQoq = N'115.15',@NAVPerUnit = N'0.2339',@ROE = N'3.33',@CashPerUnit = N'0.0040',@GrossProfitRate = N'40.83',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-18'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2016-06-30',@EPS = N'0.012',@EPSDeduct = N'0.012',@Revenue = N'4130.12万',@RevenueYoy = N'-39.00',@RevenueQoq = N'16.89',@Profit = N'268.04万',@ProfitYoy = N'-72.49',@ProfiltQoq = N'-47.44',@NAVPerUnit = N'0.2393',@ROE = N'4.67',@CashPerUnit = N'0.0236',@GrossProfitRate = N'35.52',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2011-12-31',@EPS = N'0.072',@EPSDeduct = N'-0.018',@Revenue = N'-',@RevenueYoy = N'-100.00',@RevenueQoq = N'-',@Profit = N'1653.96万',@ProfitYoy = N'467.13',@ProfiltQoq = N'117.61',@NAVPerUnit = N'0.1278',@ROE = N'78.29',@CashPerUnit = N'-0.0961',@GrossProfitRate = N'-',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-01-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2011-09-30',@EPS = N'0.057',@EPSDeduct = N'-0.014',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'1313.80万',@ProfitYoy = N'513.34',@ProfiltQoq = N'215.46',@NAVPerUnit = N'0.1130',@ROE = N'67.63',@CashPerUnit = N'-0.0928',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2011-06-30',@EPS = N'0.05',@EPSDeduct = N'-0.013',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'1157.48万',@ProfitYoy = N'539.47',@ProfiltQoq = N'-110.47',@NAVPerUnit = N'0.1060',@ROE = N'62.08',@CashPerUnit = N'-0.0792',@GrossProfitRate = N'-',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-08-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2011-03-31',@EPS = N'0.056',@EPSDeduct = N'-0.008',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'1292.86万',@ProfitYoy = N'1227.22',@ProfiltQoq = N'1074.51',@NAVPerUnit = N'0.1120',@ROE = N'66.91',@CashPerUnit = N'-0.0737',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2010-12-31',@EPS = N'-0.02',@EPSDeduct = N'-0.024',@Revenue = N'480.83万',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-450.51万',@ProfitYoy = N'58.63',@ProfiltQoq = N'-143.60',@NAVPerUnit = N'0.0559',@ROE = N'-29.82',@CashPerUnit = N'0.0969',@GrossProfitRate = N'2.59',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-03-16'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2010-09-30',@EPS = N'-0.014',@EPSDeduct = N'-0.018',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-317.85万',@ProfitYoy = N'48.12',@ProfiltQoq = N'63.37',@NAVPerUnit = N'0.0620',@ROE = N'-20.15',@CashPerUnit = N'0.0330',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2010-06-30',@EPS = N'-0.011',@EPSDeduct = N'-0.011',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-263.38万',@ProfitYoy = N'42.82',@ProfiltQoq = N'-29.64',@NAVPerUnit = N'0.0640',@ROE = N'-16.41',@CashPerUnit = N'0.0365',@GrossProfitRate = N'-',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-08-03'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2010-03-31',@EPS = N'-0.005',@EPSDeduct = N'-0.005',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-114.69万',@ProfitYoy = N'9.52',@ProfiltQoq = N'75.91',@NAVPerUnit = N'0.0710',@ROE = N'-6.83',@CashPerUnit = N'0.0005',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-04-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2009-12-31',@EPS = N'-0.047',@EPSDeduct = N'-0.042',@Revenue = N'-',@RevenueYoy = N'-100.00',@RevenueQoq = N'-',@Profit = N'-1088.88万',@ProfitYoy = N'-1147.06',@ProfiltQoq = N'-213.19',@NAVPerUnit = N'0.0750',@ROE = N'-47.74',@CashPerUnit = N'-0.0331',@GrossProfitRate = N'-',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-03-01'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2014-09-30',@EPS = N'0.014',@EPSDeduct = N'0',@Revenue = N'6062.26万',@RevenueYoy = N'-0.93',@RevenueQoq = N'-9.64',@Profit = N'317.02万',@ProfitYoy = N'-50.17',@ProfiltQoq = N'-70.48',@NAVPerUnit = N'0.1552',@ROE = N'9.55',@CashPerUnit = N'-0.0793',@GrossProfitRate = N'27.20',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2012-03-31',@EPS = N'-0.006',@EPSDeduct = N'-0.006',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-149.16万',@ProfitYoy = N'-111.54',@ProfiltQoq = N'-143.85',@NAVPerUnit = N'0.1213',@ROE = N'-5.21',@CashPerUnit = N'-0.0048',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2009-06-30',@EPS = N'-0.02',@EPSDeduct = N'-0.0165',@Revenue = N'-',@RevenueYoy = N'-100.00',@RevenueQoq = N'-',@Profit = N'-460.66万',@ProfitYoy = N'-726.81',@ProfiltQoq = N'-163.42',@NAVPerUnit = N'0.1030',@ROE = N'19.48',@CashPerUnit = N'-0.0526',@GrossProfitRate = N'-',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-08-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2009-03-31',@EPS = N'-0.047',@EPSDeduct = N'0',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-126.76万',@ProfitYoy = N'2.63',@ProfiltQoq = N'-209.02',@NAVPerUnit = N'0.1200',@ROE = N'-',@CashPerUnit = N'-0.0893',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2008-12-31',@EPS = N'0.005',@EPSDeduct = N'-0.001',@Revenue = N'317.70万',@RevenueYoy = N'-91.91',@RevenueQoq = N'-',@Profit = N'103.99万',@ProfitYoy = N'-97.43',@ProfiltQoq = N'235.56',@NAVPerUnit = N'0.1230',@ROE = N'3.75',@CashPerUnit = N'-0.0766',@GrossProfitRate = N'86.72',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2008-09-30',@EPS = N'-0.0005',@EPSDeduct = N'-0.0083',@Revenue = N'34.69万',@RevenueYoy = N'-99.02',@RevenueQoq = N'-',@Profit = N'-12.27万',@ProfitYoy = N'-100.29',@ProfiltQoq = N'-142.11',@NAVPerUnit = N'0.1180',@ROE = N'-',@CashPerUnit = N'-0.0665',@GrossProfitRate = N'-17.00',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-10-14'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2008-06-30',@EPS = N'0.003',@EPSDeduct = N'-0.005',@Revenue = N'34.69万',@RevenueYoy = N'-98.76',@RevenueQoq = N'-100.00',@Profit = N'73.49万',@ProfitYoy = N'-98.21',@ProfiltQoq = N'256.46',@NAVPerUnit = N'0.1220',@ROE = N'2.66',@CashPerUnit = N'-0.0024',@GrossProfitRate = N'-17.00',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2007-12-31',@EPS = N'0.1761',@EPSDeduct = N'-0.0288',@Revenue = N'3928.95万',@RevenueYoy = N'-78.89',@RevenueQoq = N'-48.51',@Profit = N'4050.59万',@ProfitYoy = N'165.54',@ProfiltQoq = N'-250.64',@NAVPerUnit = N'0.1180',@ROE = N'111.01',@CashPerUnit = N'0.0211',@GrossProfitRate = N'-11.79',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2007-09-30',@EPS = N'0.185',@EPSDeduct = N'-0.026',@Revenue = N'3541.07万',@RevenueYoy = N'-72.21',@RevenueQoq = N'-38.81',@Profit = N'4245.21万',@ProfitYoy = N'174.55',@ProfiltQoq = N'-95.76',@NAVPerUnit = N'0.1770',@ROE = N'-',@CashPerUnit = N'-0.0140',@GrossProfitRate = N'-5.10',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2007-06-30',@EPS = N'0.179',@EPSDeduct = N'-0.038',@Revenue = N'2787.71万',@RevenueYoy = N'-61.51',@RevenueQoq = N'-20.91',@Profit = N'4116.01万',@ProfitYoy = N'173.20',@ProfiltQoq = N'185.65',@NAVPerUnit = N'0.1680',@ROE = N'124.48',@CashPerUnit = N'0.0021',@GrossProfitRate = N'-6.36',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-08-21'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2007-03-31',@EPS = N'0.046',@EPSDeduct = N'0',@Revenue = N'1556.61万',@RevenueYoy = N'-45.23',@RevenueQoq = N'-73.45',@Profit = N'1067.30万',@ProfitYoy = N'201.21',@ProfiltQoq = N'319.70',@NAVPerUnit = N'0.0990',@ROE = N'-',@CashPerUnit = N'-0.0081',@GrossProfitRate = N'-4.07',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2006-12-31',@EPS = N'-0.2687',@EPSDeduct = N'-0.2857',@Revenue = N'1.86亿',@RevenueYoy = N'56.44',@RevenueQoq = N'6.60',@Profit = N'-6180.54万',@ProfitYoy = N'-35.02',@ProfiltQoq = N'-576.13',@NAVPerUnit = N'0.0540',@ROE = N'-',@CashPerUnit = N'0.0975',@GrossProfitRate = N'8.46',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-02-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2006-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'1.27亿',@RevenueYoy = N'49.47',@RevenueQoq = N'25.00',@Profit = N'-5694.74万',@ProfitYoy = N'-84.58',@ProfiltQoq = N'98.43',@NAVPerUnit = N'-0.2970',@ROE = N'-',@CashPerUnit = N'0.0218',@GrossProfitRate = N'6.96',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-10-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2006-06-30',@EPS = N'-0.244',@EPSDeduct = N'0',@Revenue = N'7242.90万',@RevenueYoy = N'23.69',@RevenueQoq = N'54.84',@Profit = N'-5622.89万',@ProfitYoy = N'-156.19',@ProfiltQoq = N'-333.23',@NAVPerUnit = N'-0.2930',@ROE = N'-',@CashPerUnit = N'0.0412',@GrossProfitRate = N'3.99',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-08-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2006-03-31',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'2842.09万',@RevenueYoy = N'-8.36',@RevenueQoq = N'-15.64',@Profit = N'-1054.50万',@ProfitYoy = N'-208.55',@ProfiltQoq = N'29.33',@NAVPerUnit = N'-0.1700',@ROE = N'-',@CashPerUnit = N'0.0975',@GrossProfitRate = N'-6.31',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-04-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2005-12-31',@EPS = N'-0.199',@EPSDeduct = N'0',@Revenue = N'1.19亿',@RevenueYoy = N'-26.26',@RevenueQoq = N'26.16',@Profit = N'-4577.38万',@ProfitYoy = N'-1899.13',@ProfiltQoq = N'-67.56',@NAVPerUnit = N'-0.1070',@ROE = N'-',@CashPerUnit = N'-0.0002',@GrossProfitRate = N'1.94',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2005-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'8526.14万',@RevenueYoy = N'-27.19',@RevenueQoq = N'-3.05',@Profit = N'-3085.31万',@ProfitYoy = N'-318.18',@ProfiltQoq = N'51.95',@NAVPerUnit = N'-0.0440',@ROE = N'-',@CashPerUnit = N'-0.0339',@GrossProfitRate = N'1.19',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-10-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2008-03-31',@EPS = N'-0.006',@EPSDeduct = N'-0.006',@Revenue = N'34.69万',@RevenueYoy = N'-97.77',@RevenueQoq = N'-91.06',@Profit = N'-130.18万',@ProfitYoy = N'-112.20',@ProfiltQoq = N'33.11',@NAVPerUnit = N'0.1130',@ROE = N'-',@CashPerUnit = N'0.0096',@GrossProfitRate = N'-17.00',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2005-06-30',@EPS = N'-0.095',@EPSDeduct = N'0',@Revenue = N'5855.83万',@RevenueYoy = N'-32.36',@RevenueQoq = N'-11.19',@Profit = N'-2194.85万',@ProfitYoy = N'-377.19',@ProfiltQoq = N'-442.21',@NAVPerUnit = N'-0.0060',@ROE = N'-',@CashPerUnit = N'-0.0453',@GrossProfitRate = N'3.14',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2006-08-12'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600083',@CutoffDate = N'2009-09-30',@EPS = N'-0.027',@EPSDeduct = N'-0.0232',@Revenue = N'-',@RevenueYoy = N'-',@RevenueQoq = N'-',@Profit = N'-612.70万',@ProfitYoy = N'-4892.22',@ProfiltQoq = N'54.47',@NAVPerUnit = N'0.0962',@ROE = N'-',@CashPerUnit = N'-0.0564',@GrossProfitRate = N'-',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-10-28'
|
<reponame>edersonlrf/ulbra-ads-bddi-aulas
// Exemplo 6: - “Criação da tabela funcionario”
create table funcionario (
codFunc integer not null,
nomeFunc varchar2(20) not null,
dtNascFunc date,
salarioFunc number(15,2) default 0,
numFilhosfunc integer default 0,
codDep integer not null
)
|
<filename>mysql_schema.sql<gh_stars>1-10
CREATE DATABASE IF NOT EXISTS quotesbot;
USE quotesbot;
CREATE TABLE IF NOT EXISTS authors (
id INTEGER PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
name_hash CHAR(32) NOT NULL,
image_path VARCHAR(255) DEFAULT '',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME ON UPDATE CURRENT_TIMESTAMP,
UNIQUE (name_hash)
);
DELIMITER //
DROP TRIGGER IF EXISTS before_insert_authors //
CREATE TRIGGER before_insert_authors BEFORE INSERT ON authors
FOR EACH ROW
BEGIN
SET NEW.name_hash = MD5(NEW.name);
END; //
DELIMITER ;
DELIMITER //
DROP TRIGGER IF EXISTS before_update_authors //
CREATE TRIGGER before_update_authors BEFORE UPDATE ON authors
FOR EACH ROW
BEGIN
SET NEW.name_hash = MD5(NEW.name);
END; //
DELIMITER ;
CREATE TABLE IF NOT EXISTS tags (
id INTEGER PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
name_hash CHAR(32) NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME ON UPDATE CURRENT_TIMESTAMP,
UNIQUE (name_hash)
);
DELIMITER //
DROP TRIGGER IF EXISTS before_insert_tags //
CREATE TRIGGER before_insert_tags BEFORE INSERT ON tags
FOR EACH ROW
BEGIN
SET NEW.name_hash = MD5(NEW.name);
END; //
DELIMITER ;
DELIMITER //
DROP TRIGGER IF EXISTS before_update_tags //
CREATE TRIGGER before_update_tags BEFORE UPDATE ON tags
FOR EACH ROW
BEGIN
SET NEW.name_hash = MD5(NEW.name);
END; //
DELIMITER ;
CREATE TABLE IF NOT EXISTS quotes (
id INTEGER PRIMARY KEY AUTO_INCREMENT,
`text` TEXT NOT NULL,
text_hash CHAR(32) NOT NULL,
author_id INTEGER,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (author_id) REFERENCES authors(id),
UNIQUE (author_id, text_hash)
);
DELIMITER //
DROP TRIGGER IF EXISTS before_insert_quotes //
CREATE TRIGGER before_insert_quotes BEFORE INSERT ON quotes
FOR EACH ROW
BEGIN
SET NEW.text_hash = MD5(NEW.text);
END; //
DELIMITER ;
DELIMITER $$
DROP TRIGGER IF EXISTS before_update_quotes $$
CREATE TRIGGER before_update_quotes BEFORE UPDATE ON quotes
FOR EACH ROW
BEGIN
set NEW.text_hash = MD5(NEW.text);
END; $$
DELIMITER ;
CREATE TABLE IF NOT EXISTS quote_tag_assoc (
id INTEGER PRIMARY KEY AUTO_INCREMENT,
quote_id INTEGER NOT NULL,
tag_id INTEGER NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME ON UPDATE CURRENT_TIMESTAMP,
FOREIGN KEY (quote_id) REFERENCES quotes(id),
FOREIGN KEY (tag_id) REFERENCES tags(id),
UNIQUE (quote_id, tag_id)
);
|
<reponame>MCW-BMI/AKI_CDM
/********************************************************************************/
/*@file cohort_final.sql
/*
/*in: #AKI_stages_daily, #AKI_Initial
/*
/*out: #AKI_onsets
/*
/*action: write
/********************************************************************************/
with pat_enc as (
select distinct
cast(PATID as integer) PATID
,cast(ENCOUNTERID as integer) ENCOUNTERID
,CONVERT(DATETIME, CONVERT(DATE, ADMIT_DATE_TIME)) ADMIT_DATE
,SERUM_CREAT_BASE
from #AKI_stages_daily
)
,onsets as (
select ENCOUNTERID, [0] as NONAKI_ANCHOR, [1] as AKI1_ONSET, [2] as AKI2_ONSET, [3] as AKI3_ONSET from
(select ENCOUNTERID
,AKI_STAGE
,SPECIMEN_DATE
from #AKI_stages_daily
where rn_asc = 1 and AKI_STAGE_max > 0 and AKI_STAGE > 0
union all
select ENCOUNTERID
,AKI_STAGE
,SPECIMEN_DATE
from #AKI_stages_daily
where rn_desc = 1 and AKI_STAGE_max = 0 and AKI_STAGE = 0
)as s1
pivot
(min(SPECIMEN_DATE)
for AKI_STAGE in ([0] ,
[1] ,
[2] ,
[3] )
) as pvt1
)
,onsets_val as (
select ENCOUNTERID, [0] as NON_AKI_SCR, [1] as AKI1_SCR, [2] as AKI2_SCR, [3] as AKI3_SCR from
(select ENCOUNTERID
,AKI_STAGE
,SERUM_CREAT
from #AKI_stages_daily
where rn_asc = 1 and AKI_STAGE_max > 0 and AKI_STAGE > 0
union all
select ENCOUNTERID
,AKI_STAGE
,SERUM_CREAT
from #AKI_stages_daily
where rn_desc = 1 and AKI_STAGE_max = 0 and AKI_STAGE = 0) as s2
pivot
(max(SERUM_CREAT)
for AKI_STAGE in ([0] ,
[1] ,
[2] ,
[3] )
) as pvt2
)
,onsets_inc as (
select ENCOUNTERID, [0] as NON_AKI_INC, [1] as AKI1_INC, [2] as AKI2_INC, [3] as AKI3_INC from
(select ENCOUNTERID
,AKI_STAGE
,SERUM_CREAT_INC
from #AKI_stages_daily
where rn_asc = 1 and AKI_STAGE_max > 0 and AKI_STAGE > 0
union all
select ENCOUNTERID
,AKI_STAGE
,SERUM_CREAT_INC
from #AKI_stages_daily
where rn_desc = 1 and AKI_STAGE_max = 0 and AKI_STAGE = 0) as s3
pivot
(max(SERUM_CREAT_INC)
for AKI_STAGE in ([0],
[1],
[2],
[3])
) as pvt3
)
,raw_onset as (
select pe.PATID
,pe.ENCOUNTERID
,pe.ADMIT_DATE
,CONVERT(DATETIME, CONVERT(DATE,init.DISCHARGE_DATE_TIME)) DISCHARGE_DATE
,pe.SERUM_CREAT_BASE
,ons.NONAKI_ANCHOR
,datediff(dd,pe.ADMIT_DATE,ons.NONAKI_ANCHOR) NONAKI_SINCE_ADMIT
,NON_AKI_SCR
,NON_AKI_INC
,ons.AKI1_ONSET
,datediff(dd,pe.ADMIT_DATE,ons.AKI1_ONSET) AKI1_SINCE_ADMIT
,scr.AKI1_SCR
,inc.AKI1_INC
,ons.AKI2_ONSET
,datediff(dd,pe.ADMIT_DATE,ons.AKI2_ONSET) AKI2_SINCE_ADMIT
,scr.AKI2_SCR
,inc.AKI2_INC
,ons.AKI3_ONSET
,datediff(dd,pe.ADMIT_DATE,ons.AKI3_ONSET) AKI3_SINCE_ADMIT
,scr.AKI3_SCR
,inc.AKI3_INC
from pat_enc pe
join #AKI_Initial init
on pe.ENCOUNTERID = init.ENCOUNTERID
left join onsets ons
on pe.ENCOUNTERID = ons.ENCOUNTERID
left join onsets_val scr
on pe.ENCOUNTERID = scr.ENCOUNTERID
left join onsets_inc inc
on pe.ENCOUNTERID = inc.ENCOUNTERID
)
-- some pruning (recovering progress doesn't count)
select distinct
PATID
,ENCOUNTERID
,ADMIT_DATE
,DISCHARGE_DATE
,SERUM_CREAT_BASE
,NONAKI_ANCHOR
,NONAKI_SINCE_ADMIT
,NON_AKI_SCR
,NON_AKI_INC
,case when AKI1_SINCE_ADMIT >= AKI2_SINCE_ADMIT or AKI1_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI1_ONSET end as AKI1_ONSET
,case when AKI1_SINCE_ADMIT >= AKI2_SINCE_ADMIT or AKI1_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI1_SINCE_ADMIT end as AKI1_SINCE_ADMIT
,case when AKI1_SINCE_ADMIT >= AKI2_SINCE_ADMIT or AKI1_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI1_SCR end as AKI1_SCR
,case when AKI1_SINCE_ADMIT >= AKI2_SINCE_ADMIT or AKI1_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI1_INC end as AKI1_INC
,case when AKI2_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI2_ONSET end as AKI2_ONSET
,case when AKI2_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI2_SINCE_ADMIT end as AKI2_SINCE_ADMIT
,case when AKI2_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI2_SCR end as AKI2_SCR
,case when AKI2_SINCE_ADMIT >= AKI3_SINCE_ADMIT then null
else AKI2_INC end as AKI2_INC
,AKI3_ONSET
,AKI3_SINCE_ADMIT
,AKI3_SCR
,AKI3_INC
into #AKI_onsets
from raw_onset
order by PATID, ENCOUNTERID
|
<filename>ChitChatInstaller/SQLScripts/constants_create.sql
CREATE TABLE "RMREP"."APPLICATION_CONSTANT"
( "ID" NUMBER(19,0),
"VERSION" NUMBER(19,0),
"KEY" VARCHAR2(50 CHAR),
"VALUE" VARCHAR2(4000 CHAR),
"ENCRYPTED" NUMBER(1,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 8388608 NEXT 8388608 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "RMREP_TS" ;
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (0,0,'admin','weblogic',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (1,0,'serverport','9502',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (2,0,'protocol','http',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (3,0,'uploadpath','/app/oracle',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (7,0,'security','n',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (4,0,'smtp_server','dummy',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (5,0,'smtp_sender','dummy',0);
Insert into RMREP.APPLICATION_CONSTANT (ID,VERSION,KEY,VALUE,ENCRYPTED) values (6,0,'smtp_password','<PASSWORD>',0);
commit;
|
<filename>data/train/sql/3cf32c03229b46c0545f1e331728239c8df1dd0edata.sql<gh_stars>10-100
INSERT INTO `post` VALUES (1, 1, 1, 1, 'discovery回复:探索频道系列节目shark week的广告之一,效果是制作出来的,不是偶然拍到的!', 2, 5, '2013-08-14 14:45:49');
INSERT INTO `post` VALUES (2, 1, 1, 2, 'YOUTUBE点击过200多万。她打扮得像小公主,说话奶声奶气的,可是一张嘴唱歌全场震惊了。6岁的Aaralyn在哥哥Izzy的鼓声下演唱自己的原创重金属摇滚歌曲《Zombie Skin》,整个一“嘶吼小辣妹”啊!', 12, 9, '2013-08-15 14:45:49');
INSERT INTO `post` VALUES (3, 1, 1, 3, '白天鹅一家子在马路中间气定神闲地走着,一辆警车在后面跟着缓缓前行,挡住后方的来车,为他们“保驾护航”~~直到他们走到路边。超级有爱呀~~~博爱的警察蜀黍!', 7, 4, '2013-08-15 15:45:49');
INSERT INTO `follow` VALUES (1, 1, 1, '2013-08-14 14:25:49');
INSERT INTO `channel` VALUES (1, 'TheDailyShow', '每一个优秀的人,都有一段沉默的时光。那一段时光,是付出了很多努力,忍受孤独和寂寞。', 'https://lh3.googleusercontent.com/-vdFZnVWkv4A/AAAAAAAAAAI/AAAAAAAAAF4/htRO1z5SDeU/s120-c/photo.jpg', 1, 7, 21, 2, 1, '2013-08-14 14:45:49');
INSERT INTO `video` VALUES (1, 'http://v.youku.com/v_show/id_XNTk0NDU4ODU2.html?f=19561778', 'U.S. Postal Service Logging All Mail for Law Enforcement', 'http://p1.v.iask.com/349/782/108331779_1.jpg');
INSERT INTO `video` VALUES (2, 'http://v.youku.com/v_show/id_XNTk0NDU4ODU2.html?f=19561778', '吉米鸡毛秀 约翰尼德普做客热吻连连 @铁手Desperado译制', 'http://p3.v.iask.com/849/338/108335999_1.jpg');
INSERT INTO `video` VALUES (3, 'http://v.youku.com/v_show/id_XNTk0NDU4ODU2.html?f=19561778', '棕色的时钟 (2012)', 'http://p2.v.iask.com/336/345/108037927_1.jpg');
INSERT INTO `nav` VALUES (1, 'video', '短片');
INSERT INTO `nav` VALUES (2, 'movie', '电影');
INSERT INTO `nav` VALUES (3, 'tv', '电视剧');
INSERT INTO `nav` VALUES (4, 'star', '明星');
|
<gh_stars>1-10
COPY ADDRESS_ALIAS_TYPE_AUT
FROM :address_alias_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY ADDRESS_CHANGE_TYPE_AUT
FROM :address_change_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY ADDRESS_TYPE_AUT
FROM :address_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY FLAT_TYPE_AUT
FROM :flat_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY GEOCODED_LEVEL_TYPE_AUT
FROM :geocoded_level_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY GEOCODE_RELIABILITY_AUT
FROM :geocode_reliability_aut_path
DELIMITER '|'
CSV HEADER;
COPY GEOCODE_TYPE_AUT
FROM :geocode_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY LEVEL_TYPE_AUT
FROM :level_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY LOCALITY_ALIAS_TYPE_AUT
FROM :locality_alias_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY LOCALITY_CLASS_AUT
FROM :locality_class_aut_path
DELIMITER '|'
CSV HEADER;
COPY MB_MATCH_CODE_AUT
FROM :mb_match_code_aut_path
DELIMITER '|'
CSV HEADER;
COPY PS_JOIN_TYPE_AUT
FROM :ps_join_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY STREET_CLASS_AUT
FROM :street_class_aut_path
DELIMITER '|'
CSV HEADER;
COPY STREET_LOCALITY_ALIAS_TYPE_AUT
FROM :street_locality_alias_type_aut_path
DELIMITER '|'
CSV HEADER;
COPY STREET_SUFFIX_AUT
FROM :street_suffix_aut_path
DELIMITER '|'
CSV HEADER;
COPY STREET_TYPE_AUT
FROM :street_type_aut_path
DELIMITER '|'
CSV HEADER;
|
-- file:join.sql ln:451 expect:true
DROP TABLE J1_TBL
|
<gh_stars>1-10
INSERT INTO [Lookup].[NotificationStatus] ([Id], [Description]) VALUES (15, 'Consented Unlock')
|
<filename>webapps/app-core/WEB-INF/db/10-cuba/update/postgres/15/150205-addSubstituteUserInScreenHistory.sql
-- $Id$
-- Description:
alter table sec_screen_history add substituted_user_id uuid;
alter table sec_screen_history add constraint FK_SEC_HISTORY_SUBSTITUTED_USER foreign key (substituted_user_id) references sec_user (id);
|
alter table REPORT_TEMPLATE add IS_GROOVY tinyint default 0^
update REPORT_TEMPLATE set IS_GROOVY = 0 where IS_GROOVY is null^
|
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
--
-- Name: address_reference_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE address_reference_type AS ENUM (
'conditional_true',
'conditional_false',
'unconditional',
'switch',
'call_direct',
'call_indirect',
'call_virtual',
'data',
'data_string'
);
ALTER TYPE public.address_reference_type OWNER TO postgres;
--
-- Name: TYPE address_reference_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE address_reference_type IS 'The address_reference_type defines all possible address reference types.';
--
-- Name: architecture_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE architecture_type AS ENUM (
'x86-32',
'x86-64',
'ARM-32',
'PowerPC-32',
'PowerPC-64',
'MIPS-32',
'MIPS-64',
'GENERIC-32',
'GENERIC-64',
'REIL',
'RREIL'
);
ALTER TYPE public.architecture_type OWNER TO postgres;
--
-- Name: TYPE architecture_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE architecture_type IS 'The architecture_type defines all architectures known to BinNavi.
Unknown architectures used the generic type.';
--
-- Name: edge_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE edge_type AS ENUM (
'jump_conditional_true',
'jump_conditional_false',
'jump_unconditional',
'jump_switch',
'jump_conditional_true_loop',
'jump_conditional_false_loop',
'jump_unconditional_loop',
'enter_inlined_function',
'leave_inlined_function',
'inter_module',
'inter_addressspace_edge',
'textnode_edge',
'dummy'
);
ALTER TYPE public.edge_type OWNER TO postgres;
--
-- Name: TYPE edge_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE edge_type IS 'The edge_type defines all possible types of an edge.
This type is used in BinNavi to enable specific functions for an edge.';
--
-- Name: ex_1_section_permission_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ex_1_section_permission_type AS ENUM (
'READ',
'WRITE',
'EXECUTE',
'READ_WRITE',
'READ_EXECUTE',
'WRITE_EXECUTE',
'READ_WRITE_EXECUTE'
);
ALTER TYPE public.ex_1_section_permission_type OWNER TO postgres;
--
-- Name: ex_1_type_category; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ex_1_type_category AS ENUM (
'atomic',
'pointer',
'array',
'struct',
'union',
'function_pointer'
);
ALTER TYPE public.ex_1_type_category OWNER TO postgres;
--
-- Name: ex_1_type_renderers_renderer_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ex_1_type_renderers_renderer_type AS ENUM (
'integer',
'floating point',
'boolean',
'ascii',
'utf8',
'utf16'
);
ALTER TYPE public.ex_1_type_renderers_renderer_type OWNER TO postgres;
--
-- Name: ex_2_section_permission_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ex_2_section_permission_type AS ENUM (
'READ',
'WRITE',
'EXECUTE',
'READ_WRITE',
'READ_EXECUTE',
'WRITE_EXECUTE',
'READ_WRITE_EXECUTE'
);
ALTER TYPE public.ex_2_section_permission_type OWNER TO postgres;
--
-- Name: ex_2_type_category; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ex_2_type_category AS ENUM (
'atomic',
'pointer',
'array',
'struct',
'union',
'function_pointer'
);
ALTER TYPE public.ex_2_type_category OWNER TO postgres;
--
-- Name: ex_2_type_renderers_renderer_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE ex_2_type_renderers_renderer_type AS ENUM (
'integer',
'floating point',
'boolean',
'ascii',
'utf8',
'utf16'
);
ALTER TYPE public.ex_2_type_renderers_renderer_type OWNER TO postgres;
--
-- Name: function_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE function_type AS ENUM (
'normal',
'library',
'import',
'thunk',
'adjustor_thunk',
'invalid'
);
ALTER TYPE public.function_type OWNER TO postgres;
--
-- Name: TYPE function_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE function_type IS 'The function_type defines all possible function types.
This type is used in BinNavi to enable specific functions for a function.';
--
-- Name: node_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE node_type AS ENUM (
'code',
'function',
'group',
'text'
);
ALTER TYPE public.node_type OWNER TO postgres;
--
-- Name: TYPE node_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE node_type IS 'The node_type defines all possible node type.
The type is used in BinNavi to enable specific functions for a node.';
--
-- Name: permission_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE permission_type AS ENUM (
'READ',
'WRITE',
'EXECUTE',
'READ_WRITE',
'READ_EXECUTE',
'READ_WRITE_EXECUTE',
'WRITE_EXECUTE'
);
ALTER TYPE public.permission_type OWNER TO postgres;
--
-- Name: TYPE permission_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE permission_type IS 'The permission_type is used to describe the permission a section has.
This information can either come from the exporter or from the debugger.';
--
-- Name: tag_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE tag_type AS ENUM (
'view_tag',
'node_tag'
);
ALTER TYPE public.tag_type OWNER TO postgres;
--
-- Name: TYPE tag_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE tag_type IS 'The tag_type defines to which taggable instance the tags belongs.
A tag can either be a view tag or a node tag.';
--
-- Name: type_category; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE type_category AS ENUM (
'atomic',
'array',
'pointer',
'struct',
'union',
'function_pointer'
);
ALTER TYPE public.type_category OWNER TO postgres;
--
-- Name: TYPE type_category; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE type_category IS 'The type_category enum specifies the category of a given base type as defined in a C type system.';
--
-- Name: view_type; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE view_type AS ENUM (
'native',
'non-native'
);
ALTER TYPE public.view_type OWNER TO postgres;
--
-- Name: TYPE view_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TYPE view_type IS 'The view_type defines where a view comes from.
Native views come from the export / disassembler.
Non-native views have been generated in BinNavi.
Native views are immutable.';
--
-- Name: append_comment(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_comment(parent_id integer, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $_$
DECLARE
comment_id integer;
child integer;
BEGIN
--
-- Find out if the node in question has a child
-- node.
--
SELECT two.id INTO child FROM bn_comments AS one
JOIN bn_comments AS two
ON (one.id = two.parent_id)
WHERE one.id = $1;
--
-- If we find a child node we must exit as append
-- only works on a node which has no child.
--
IF FOUND THEN
RAISE EXCEPTION 'can not append comment to node % as it has a child comment', $1;
END IF;
--
-- If we did not find a child node we perform the append
-- operation and return the newly generated
--
INSERT INTO bn_comments(id, parent_id, user_id, comment_text)
VALUES (nextval('bn_comments_id_seq'::regclass), $1, $2, $3)
RETURNING id INTO STRICT comment_id;
RETURN comment_id;
END;
$_$;
ALTER FUNCTION public.append_comment(parent_id integer, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_comment(parent_id integer, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_comment(parent_id integer, user_id integer, comment_text text) IS 'This function appends a comment to a comment owned by the user given as argument.
It returns the generated id of the comment.
This function is used by all other append comment functions.';
--
-- Name: append_function_comment(integer, bigint, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_function_comment(moduleid integer, functionaddress bigint, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the function already has a comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_functions
WHERE module_id = moduleid
AND address = functionaddress;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the function nodes table with the newly generated comment.
--
UPDATE bn_functions
SET comment_id = commentid
WHERE module_id = moduleid
AND address = functionaddress;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_function_comment(moduleid integer, functionaddress bigint, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_function_comment(moduleid integer, functionaddress bigint, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_function_comment(moduleid integer, functionaddress bigint, user_id integer, comment_text text) IS 'This function appends a comment to a function. It returns the generated id of the comment.';
--
-- Name: append_function_node_comment(integer, integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_function_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the function already has a comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_function_nodes
WHERE node_id = nodeid
AND module_id = moduleid;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the function nodes table with the newly generated comment.
--
UPDATE bn_function_nodes
SET comment_id = commentid
WHERE node_id = nodeid
AND module_id = moduleid;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_function_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_function_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_function_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text) IS 'This function appends a comment to a function node. It returns the generated id of the comment.';
--
-- Name: append_global_code_node_comment(integer, integer, bigint, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the code node already has a global comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_global_node_comments
WHERE module_id = moduleid
AND address = node_address;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- We use the information from the parent id to decide
-- if we need to update or if we need to insert.
--
IF (parentid IS NOT NULL) THEN
UPDATE bn_global_node_comments
SET comment_id = commentid
WHERE module_id = moduleid
AND address = node_address
AND comment_id = parentid;
ELSE
INSERT INTO bn_global_node_comments
VALUES(moduleid, node_address, commentid);
END IF;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, user_id integer, comment_text text) IS 'This function appends a global code node comment. It returns the generated id of the comment.';
--
-- Name: append_global_edge_comment(integer, integer, bigint, bigint, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the edge already has a global comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_global_edge_comments
WHERE src_module_id = srcmoduleid
AND dst_module_id = dstmoduleid
AND src_address = srcnodeaddress
AND dst_address = dstnodeaddress;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- We use the information from the parent id to decide
-- if we need to update or if we need to insert.
--
IF (parentid IS NOT NULL) THEN
UPDATE bn_global_edge_comments
SET comment_id = commentid
WHERE src_module_id = srcmoduleid
AND dst_module_id = dstmoduleid
AND src_address = srcnodeaddress
AND dst_address = dstnodeaddress
AND comment_id = parentid;
ELSE
INSERT INTO bn_global_edge_comments
VALUES(srcmoduleid, dstmoduleid, srcnodeaddress, dstnodeaddress, commentid);
END IF;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, user_id integer, comment_text text) IS 'This function appends a global edge comment. It returns the generated id of the comment.';
--
-- Name: append_global_instruction_comment(integer, bigint, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_global_instruction_comment(moduleid integer, instruction_address bigint, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the instruction already has a global comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_instructions
WHERE module_id = moduleid
AND address = instruction_address;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the record of the instruction to point to the
-- new comment.
--
UPDATE bn_instructions
SET comment_id = commentid
WHERE module_id = moduleid
AND address = instruction_address;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_global_instruction_comment(moduleid integer, instruction_address bigint, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_global_instruction_comment(moduleid integer, instruction_address bigint, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_global_instruction_comment(moduleid integer, instruction_address bigint, user_id integer, comment_text text) IS 'This function appends a global instruction comment. It returns the generated id of the comment.';
--
-- Name: append_group_node_comment(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_group_node_comment(nodeid integer, userid integer, comment text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the group node already has a comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_group_nodes
WHERE node_id = nodeId;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, userId, comment)
INTO commentid;
--
-- Update the group nodes with the newly generated comment.
--
UPDATE bn_group_nodes
SET comment_id = commentid
WHERE node_id = nodeId;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_group_node_comment(nodeid integer, userid integer, comment text) OWNER TO postgres;
--
-- Name: FUNCTION append_group_node_comment(nodeid integer, userid integer, comment text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_group_node_comment(nodeid integer, userid integer, comment text) IS 'This function appends a comment to a group node. It returns the generated id of the comment.';
--
-- Name: append_local_code_node_comment(integer, integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_local_code_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Find out if our current code node already
-- had a local comment and save its comment_id.
--
SELECT comment_id INTO parentid
FROM bn_code_nodes
WHERE module_id = moduleid
AND node_id = nodeid;
--
-- Create a comment using the append comment function
-- with the optional current_node_comment_id as the new paremt.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the code node with the newly generated comment.
--
UPDATE bn_code_nodes
SET comment_id = commentid
WHERE module_id = moduleid
AND node_id = nodeid;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_local_code_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_local_code_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_local_code_node_comment(moduleid integer, nodeid integer, user_id integer, comment_text text) IS 'This function appends a local comment to a code node. It returns the generated id of the comment.';
--
-- Name: append_local_edge_comment(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_local_edge_comment(edge_id integer, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Find out if our current code node already
-- had a local comment and save its comment_id.
--
SELECT comment_id INTO parentid
FROM bn_edges
WHERE id = edge_id;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the edge with the newly generated comment.
--
UPDATE bn_edges
SET comment_id = commentid
WHERE id = edge_id;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_local_edge_comment(edge_id integer, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_local_edge_comment(edge_id integer, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_local_edge_comment(edge_id integer, user_id integer, comment_text text) IS 'This function appends a local edge comment to an edge. It returns the generated id of the comment.';
--
-- Name: append_local_instruction_comment(integer, integer, bigint, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Find out if our current code node already
-- had a local comment and save its comment_id.
--
SELECT comment_id INTO parentid
FROM bn_codenode_instructions
WHERE module_id = moduleid
AND node_id = nodeid
AND address = instruction_address;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the record of the instruction to point to the
-- new comment.
--
UPDATE bn_codenode_instructions
SET comment_id = commentid
WHERE module_id = moduleid
AND node_id = nodeid
AND address = instruction_address;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, user_id integer, comment_text text) IS 'This function appends a local instruction comment to an instruction in a code node. It returns the generated id of the comment.';
--
-- Name: append_section_comment(integer, integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_section_comment(moduleid integer, sectionid integer, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the section already has a comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_sections
WHERE module_id = moduleid
AND id = sectionid;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the sections table with the newly generated comment.
--
UPDATE bn_sections
SET comment_id = commentid
WHERE module_id = moduleid
AND id = sectionid;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_section_comment(moduleid integer, sectionid integer, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_section_comment(moduleid integer, sectionid integer, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_section_comment(moduleid integer, sectionid integer, user_id integer, comment_text text) IS 'This function appends a comment to a section. It returns the generated id of the comment.';
--
-- Name: append_text_node_comment(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_text_node_comment(nodeid integer, userid integer, comment text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the text node already has a comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_text_nodes
WHERE node_id = nodeId;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, userId, comment)
INTO commentid;
--
-- Update the group nodes with the newly generated comment.
--
UPDATE bn_text_nodes
SET comment_id = commentid
WHERE node_id = nodeId;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_text_node_comment(nodeid integer, userid integer, comment text) OWNER TO postgres;
--
-- Name: FUNCTION append_text_node_comment(nodeid integer, userid integer, comment text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_text_node_comment(nodeid integer, userid integer, comment text) IS 'This function appends a comment to a text node. It returns the generated id of the comment.';
--
-- Name: append_type_instance_comment(integer, integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION append_type_instance_comment(moduleid integer, typeinstanceid integer, user_id integer, comment_text text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
commentid integer;
parentid integer;
BEGIN
--
-- Check if the type instance already has a comment
-- associated with it.
--
SELECT comment_id INTO parentid
FROM bn_type_instances
WHERE module_id = moduleid
AND id = typeinstanceid;
--
-- Create a comment using the append comment function.
--
SELECT append_comment(parentid, user_id, comment_text)
INTO commentid;
--
-- Update the type instances table with the newly generated comment.
--
UPDATE bn_type_instances
SET comment_id = commentid
WHERE module_id = moduleid
AND id = typeinstanceid;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.append_type_instance_comment(moduleid integer, typeinstanceid integer, user_id integer, comment_text text) OWNER TO postgres;
--
-- Name: FUNCTION append_type_instance_comment(moduleid integer, typeinstanceid integer, user_id integer, comment_text text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION append_type_instance_comment(moduleid integer, typeinstanceid integer, user_id integer, comment_text text) IS 'This function appends a comment to a type instance. It returns the generated id of the comment.';
--
-- Name: bn_base_types_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_base_types_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_base_types_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_base_types_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_base_types_trigger() IS 'The bn_base_types_trigger is called for all altering operations on the bn_base_types table and will perform a pg_notify with the altered information.
This information will be used in BinNavi to provide synchronisation between multiple instances of BinNavi';
--
-- Name: bn_code_node_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_code_node_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.node_id || ' ' || NEW.parent_function || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_code_node_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_code_node_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_code_node_comment_trigger() IS 'The bn_bn_code_node_comment_trigger is called for UPDATE operations on the bn_code_nodes table an will perform a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of local comments associated to code nodes between multiple instances of BinNavi.';
--
-- Name: bn_codenode_instructions_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_codenode_instructions_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.node_id || ' ' || NEW.position || ' ' || NEW.address || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_codenode_instructions_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_codenode_instructions_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_codenode_instructions_comment_trigger() IS 'The bn_codenode_instructions_comment_trigger is called for UPDATE operations on the bn_codenode_instructions table and will perform a pg_notify with the altered information
This information is used in BinNavi to provide synchronisation of local comments associated to instructions between multiple instances of BinNavi.';
--
-- Name: bn_comments_audit_logger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_comments_audit_logger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
--
-- Create a row in bn_comments_audit to reflect the operation performed on bn_comments,
--
IF (TG_OP = 'DELETE') THEN
INSERT INTO bn_comments_audit SELECT 'D', now(), OLD.id, OLD.parent_id, OLD.user_id, OLD.comment_text;
RETURN OLD;
ELSIF (TG_OP = 'UPDATE') THEN
INSERT INTO bn_comments_audit SELECT 'U', now(), NEW.id, NEW.parent_id, NEW.user_id, NEW.comment_text;
RETURN NEW;
ELSIF (TG_OP = 'INSERT') THEN
INSERT INTO bn_comments_audit SELECT 'I', now(), NEW.id, NEW.parent_id, NEW.user_id, NEW.comment_text;
RETURN NEW;
END IF;
RETURN NULL;
END;
$$;
ALTER FUNCTION public.bn_comments_audit_logger() OWNER TO postgres;
--
-- Name: FUNCTION bn_comments_audit_logger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_comments_audit_logger() IS 'The bn_comments_audit_logger is called for all operations performed on the bn_comments table and saves the operation with the altered information in the table
bn_comments_audit. This information can be used to track changes to comments which have been performed to a database over time.';
--
-- Name: bn_comments_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_comments_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
parentid text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_text IS NULL) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_text AS TEXT);
END IF;
IF( NEW.parent_id IS NULL) THEN
parentid = 'null';
ELSE
parentid = CAST(NEW.parent_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.id || ' ' || parentid || ' ' || NEW.user_id || ' ' || comment );
RETURN NEW;
ELSIF (TG_OP = 'DELETE') THEN
IF ( OLD.comment_text IS NULL) THEN
comment = 'null';
ELSE
comment = CAST(OLD.comment_text AS TEXT);
END IF;
IF( OLD.parent_id IS NULL) THEN
parentid = 'null';
ELSE
parentid = CAST(OLD.parent_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.id || ' ' || parentid || ' ' || OLD.user_id || ' ' || comment );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_comments_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_comments_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_comments_trigger() IS 'The bn_comments_trigger is called for UPDATE and DELETE operations on the bn_comments table and will perform a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of comments between multiple instances of BinNavi.';
--
-- Name: bn_edges_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_edges_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.id || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_edges_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_edges_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_edges_comment_trigger() IS 'The bn_edges_comment_trigger is called for UPDATE operations on the bn_edges table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of local comments associated to edges between multiple instances of BinNavi.';
--
-- Name: bn_expression_type_instances_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_expression_type_instances_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('type_instances_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || NEW."position" || ' ' || NEW.expression_id || ' ' || NEW.type_instance_id);
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('type_instances_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || NEW."position" || ' ' || NEW.expression_id || ' ' || NEW.type_instance_id);
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('type_instances_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.address || ' ' || OLD."position" || ' ' || OLD.expression_id || ' ' || OLD.type_instance_id);
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_expression_type_instances_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_expression_type_instances_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_expression_type_instances_trigger() IS 'The bn_expression_type_instances_trigger is called for all operations on the bn_expression_type_instances table an will perform a pg_notify with the altered information.
This information is used in BinNavi to provide synchronization of type instances associated to type instances between multiple instances of BinNavi.';
--
-- Name: bn_expression_types_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_expression_types_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || NEW."position" || ' ' || NEW.expression_id);
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || NEW."position" || ' ' || NEW.expression_id);
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.address || ' ' || OLD."position" || ' ' || OLD.expression_id);
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_expression_types_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_expression_types_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_expression_types_trigger() IS 'The bn_expression_types_trigger is called for all altering operations on the bn_expression_types table and will perform a pg_notify with the altered information.
This information will be used in BinNavi to provide synchronization between multiple instances of BinNavi';
--
-- Name: bn_function_nodes_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_function_nodes_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.node_id || ' ' || NEW.function || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_function_nodes_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_function_nodes_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_function_nodes_comment_trigger() IS 'The bn_function_nodes_comment_trigger is called for UPDATE operations on the bn_function_nodes table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of comments associated to function nodes between multiple instances of BinNavi.';
--
-- Name: bn_functions_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_functions_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_functions_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_functions_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_functions_comment_trigger() IS 'The bn_functions_comment_trigger is called for UPDATE operations on the bn_function table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of comments associated to functions between multiple instances of BinNavi.';
--
-- Name: bn_functions_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_functions_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('function_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('function_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('function_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.address );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_functions_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_functions_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_functions_trigger() IS 'The bn_functions_trigger is called for all altering operations on the bn_functions table and will perform a pg_notify with the altered information.
This information will be used in BinNavi to provide synchronisation between multiple instances of BinNavi';
--
-- Name: bn_global_edge_comments_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_global_edge_comments_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
BEGIN
IF ( TG_OP = 'INSERT' OR TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.src_module_id || ' ' || NEW.dst_module_id || ' ' || NEW.src_address || ' ' || NEW.dst_address || ' ' || NEW.comment_id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.src_module_id || ' ' || OLD.dst_module_id || ' ' || OLD.src_address || ' ' || OLD.dst_address);
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_global_edge_comments_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_global_edge_comments_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_global_edge_comments_trigger() IS 'The bn_global_edge_comments_trigger is called for all operations on the bn_global_edge_comments table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of global comments associated to edges between multiple instances of BinNavi.';
--
-- Name: bn_global_node_comments_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_global_node_comments_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
BEGIN
IF ( TG_OP = 'INSERT' OR TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || NEW.comment_id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.address);
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_global_node_comments_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_global_node_comments_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_global_node_comments_trigger() IS 'The bn_global_node_comments_trigger is called for all operations on the bn_global_node_comments table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of global comments associated to nodes between multiple instances of BinNavi.';
--
-- Name: bn_group_nodes_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_group_nodes_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'INSERT' OR TG_OP = 'UPDATE' ) THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.node_id || ' ' || comment );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.node_id);
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_group_nodes_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_group_nodes_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_group_nodes_comment_trigger() IS 'The bn_group_nodes_comment_trigger is called for all operations on the bn_group_nodes table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of comments associated to group nodes between multiple instances of BinNavi.';
--
-- Name: bn_instructions_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_instructions_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.address || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_instructions_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_instructions_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_instructions_comment_trigger() IS 'The bn_instructions_comment_trigger is called for UPDATE operations on the bn_instructions table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of global comments associated to instructions between multiple instances of BinNavi.';
--
-- Name: bn_module_views_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_module_views_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.view_id || ' ' || NEW.module_id );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.view_id || ' ' || NEW.module_id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.view_id || ' ' || OLD.module_id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_module_views_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_module_views_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_module_views_trigger() IS 'The bn_module_views_trigger is called for all altering operations on the bn_module_views table and will perform a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of module views between multiple instances of BinNavi.';
--
-- Name: bn_project_views_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_project_views_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.view_id || ' ' || NEW.project_id );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.view_id || ' ' || NEW.project_id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.view_id || ' ' || OLD.project_id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_project_views_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_project_views_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_project_views_trigger() IS 'The bn_project_views_trigger is called for all altering operations on the bn_project_views table and will perform a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of project views between multiple instances of BinNavi.';
--
-- Name: bn_sections_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_sections_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('section_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('section_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('section_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_sections_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_sections_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_sections_trigger() IS 'The bn_sections_trigger is called for all altering operations on the bn_sections table and will perform a pg_notify with the altered information.
This information will be used in BinNavi to provide synchronisation between multiple instances of BinNavi';
--
-- Name: bn_text_nodes_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_text_nodes_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'INSERT' OR TG_OP = 'UPDATE' ) THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.node_id || ' ' || comment );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.node_id);
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_text_nodes_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_text_nodes_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_text_nodes_comment_trigger() IS 'The bn_text_nodes_comment_trigger is called for all operations on the bn_text_nodes table and will perfrom a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of comments associated to text nodes between multiple instances of BinNavi.';
--
-- Name: bn_type_instances_comment_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_type_instances_comment_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
comment text;
BEGIN
IF ( TG_OP = 'UPDATE') THEN
IF ( NEW.comment_id is null) THEN
comment = 'null';
ELSE
comment = CAST(NEW.comment_id AS TEXT);
END IF;
PERFORM pg_notify('comment_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id || ' ' || comment );
RETURN NEW;
END IF;
END;
$$;
ALTER FUNCTION public.bn_type_instances_comment_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_type_instances_comment_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_type_instances_comment_trigger() IS 'The bn_type_instances_comment_trigger is called for UPDATE operations on the bn_type_instances table an will perform a pg_notify with the altered information.
This information is used in BinNavi to provide synchronisation of comments associated to type instances between multiple instances of BinNavi.';
--
-- Name: bn_type_instances_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_type_instances_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('type_instances_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('type_instances_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('type_instances_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_type_instances_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_type_instances_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_type_instances_trigger() IS 'The bn_expression_type_instances_trigger is called for all altering operations on the bn_expression_type_instances table and will perform a pg_notify with the altered information.
This information will be used in BinNavi to provide synchronisation between multiple instances of BinNavi.';
--
-- Name: bn_types_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_types_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'INSERT' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.module_id || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('types_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.module_id || ' ' || OLD.id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_types_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_types_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_types_trigger() IS 'The bn_types_trigger is called for all altering operations on the bn_types table and will perform a pg_notify with the altered information.
This information will be used in BinNavi to provide synchronisation between multiple instances of BinNavi';
--
-- Name: bn_views_trigger(); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION bn_views_trigger() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
IF ( TG_OP = 'UPDATE' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || NEW.id );
RETURN NEW;
ELSIF ( TG_OP = 'DELETE' ) THEN
PERFORM pg_notify('view_changes', TG_TABLE_NAME || ' ' || TG_OP || ' ' || OLD.id );
RETURN OLD;
END IF;
END;
$$;
ALTER FUNCTION public.bn_views_trigger() OWNER TO postgres;
--
-- Name: FUNCTION bn_views_trigger(); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION bn_views_trigger() IS 'The bn_views_trigger is called for UPDATE and DELETE operations on the bn_views table and will perform a pg_notify with the altered information.
This infromation is used in BinNavi to provide synchronisation of views between multiple instances of BinNavi.';
--
-- Name: colorize_module_nodes(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION colorize_module_nodes(moduleid integer) RETURNS void
LANGUAGE sql
AS $_$
WITH entry_nodes AS (
SELECT bn_nodes.id AS nodes_id FROM bn_nodes
JOIN bn_module_views ON bn_nodes.view_id = bn_module_views.view_id
AND bn_module_views.module_id = $1
LEFT JOIN bn_edges ON bn_nodes.id = bn_edges.target_node_id
WHERE target_node_id IS NULL
AND bn_nodes.type = 'code'
), exit_nodes AS (
SELECT bn_nodes.id AS nodes_id FROM bn_nodes
JOIN bn_module_views ON bn_nodes.view_id = bn_module_views.view_id
AND bn_module_views.module_id = $1
LEFT JOIN bn_edges ON bn_nodes.id = bn_edges.source_node_id
WHERE source_node_id IS NULL
AND bn_nodes.type = 'code'
), single_nodes AS (
SELECT nodes_id FROM entry_nodes INTERSECT SELECT nodes_id from exit_nodes
), update_entry_nodes AS (
UPDATE bn_nodes SET bordercolor = -16736256 WHERE bn_nodes.id IN
(SELECT * FROM entry_nodes)
), update_exit_nodes AS (
UPDATE bn_nodes SET bordercolor = -6291456 WHERE bn_nodes.id IN
(SELECT * FROM exit_nodes)
)
UPDATE bn_nodes SET bordercolor = -6250496 WHERE bn_nodes.id IN
(SELECT * FROM single_nodes);
$_$;
ALTER FUNCTION public.colorize_module_nodes(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION colorize_module_nodes(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION colorize_module_nodes(moduleid integer) IS 'This function creates the initial colors for nodes of a module that is getting converted.';
--
-- Name: connect_instructions_to_code_nodes(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION connect_instructions_to_code_nodes(rawmoduleid integer, moduleid integer) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
minnodeid int;
BEGIN
SELECT MIN(node_id) INTO minnodeid
FROM bn_code_nodes
WHERE module_id = moduleid;
EXECUTE 'INSERT INTO bn_codenode_instructions
(module_id, node_id, position, address, comment_id)
SELECT '|| moduleid ||', basic_block_id + '|| minnodeid ||' - 1 AS nodeId,
bbi.sequence, bbi.instruction, null
FROM ex_'|| rawmoduleid ||'_basic_block_instructions AS bbi';
END;
$$;
ALTER FUNCTION public.connect_instructions_to_code_nodes(rawmoduleid integer, moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION connect_instructions_to_code_nodes(rawmoduleid integer, moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION connect_instructions_to_code_nodes(rawmoduleid integer, moduleid integer) IS 'This function connects the instruction to code nodes in the conversion from a raw module to a BinNavi module.';
--
-- Name: create_expression_type_instance(integer, bigint, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_expression_type_instance(moduleid integer, operandaddress bigint, operandposition integer, expressionid integer, typeinstanceid integer) RETURNS void
LANGUAGE sql
AS $_$
INSERT INTO bn_expression_type_instances (module_id, address, position, expression_id, type_instance_id)
VALUES ($1, $2, $3, $4, $5);
$_$;
ALTER FUNCTION public.create_expression_type_instance(moduleid integer, operandaddress bigint, operandposition integer, expressionid integer, typeinstanceid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_expression_type_instance(moduleid integer, operandaddress bigint, operandposition integer, expressionid integer, typeinstanceid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_expression_type_instance(moduleid integer, operandaddress bigint, operandposition integer, expressionid integer, typeinstanceid integer) IS 'This function creates a new expression type instance which connects a type instance in a section to an operand in the graph view.';
--
-- Name: create_module(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_module(rawmoduleid integer) RETURNS integer
LANGUAGE sql
AS $_$
INSERT INTO bn_modules
(name, raw_module_id, md5, sha1, description, file_base, image_base, import_time)
(SELECT name, id, md5, sha1, comment, base_address, base_address, NOW()
FROM modules WHERE id = $1) RETURNING id
$_$;
ALTER FUNCTION public.create_module(rawmoduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_module(rawmoduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_module(rawmoduleid integer) IS 'This function creates the entry in the BinNavi modules table in a raw module to BinNavi module conversion.';
--
-- Name: create_native_call_graph_view(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_native_call_graph_view(moduleid integer) RETURNS integer
LANGUAGE sql
AS $_$
WITH callgraphid AS (
INSERT INTO bn_views
(type, name, description, creation_date, modification_date)
VALUES('native', 'Native Callgraph', null, NOW(), NOW())
RETURNING id
)
INSERT INTO bn_module_views (view_id, module_id)
SELECT id, $1 FROM callgraphid
RETURNING view_id;
$_$;
ALTER FUNCTION public.create_native_call_graph_view(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_native_call_graph_view(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_native_call_graph_view(moduleid integer) IS 'This function creates the native call graph information and updates the tables accordingly.';
--
-- Name: create_native_callgraph_edges(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_native_callgraph_edges(rawmoduleid integer, moduleid integer) RETURNS void
LANGUAGE plpgsql
AS $$
BEGIN
EXECUTE 'DROP INDEX IF EXISTS ex_'|| rawmoduleid ||'_callgraph_source_idx';
EXECUTE 'DROP INDEX IF EXISTS ex_'|| rawmoduleid ||'_callgraph_destination_idx';
EXECUTE 'CREATE INDEX ex_'|| rawmoduleid ||'_callgraph_source_idx
ON ex_'|| rawmoduleid ||'_callgraph USING btree(source)';
EXECUTE 'CREATE INDEX ex_'|| rawmoduleid ||'_callgraph_destination_idx
ON ex_'|| rawmoduleid ||'_callgraph USING btree(destination)';
EXECUTE 'INSERT INTO bn_edges
(source_node_id, target_node_id, x1, y1, x2, y2, type, color, selected, visible, comment_id)
SELECT source_function.node_id, destination_function.node_id, 0, 0, 0, 0, ''jump_unconditional'', 0, false, true, null
FROM ex_'|| rawmoduleid ||'_callgraph AS callgraph
INNER JOIN bn_function_nodes AS source_function ON source_function.module_id = '|| moduleid ||'
AND source_function.function = callgraph.source
INNER JOIN bn_function_nodes as destination_function ON destination_function.module_id = '|| moduleid ||'
AND destination_function.function = callgraph.destination';
END;
$$;
ALTER FUNCTION public.create_native_callgraph_edges(rawmoduleid integer, moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_native_callgraph_edges(rawmoduleid integer, moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_native_callgraph_edges(rawmoduleid integer, moduleid integer) IS 'This function creates the edges for the native call graph of a module.';
--
-- Name: create_native_callgraph_nodes(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_native_callgraph_nodes(viewid integer, moduleid integer) RETURNS void
LANGUAGE sql
AS $_$
WITH allinfo AS (
SELECT nextval('bn_nodes_id_seq'::regclass) as id ,$1 as view_id, address, $2 as module_id
FROM bn_functions WHERE module_id = $2
), ni AS (
INSERT INTO bn_nodes
(id, view_id, parent_id, type, x, y, width, height, color, selected, visible)
SELECT id, view_id, null, 'function', 0, 0, 0, 0, 0, false, true FROM allinfo
)
INSERT INTO bn_function_nodes
(node_id, module_id, function, comment_id)
SELECT id, module_id, address, null FROM allinfo
$_$;
ALTER FUNCTION public.create_native_callgraph_nodes(viewid integer, moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_native_callgraph_nodes(viewid integer, moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_native_callgraph_nodes(viewid integer, moduleid integer) IS 'This function creates the function nodes for the native call graph in a raw module to BinNavi module conversion.';
--
-- Name: create_native_code_nodes(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_native_code_nodes(rawmoduleid integer, moduleid integer) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
minnodeid int;
BEGIN
EXECUTE 'DROP INDEX IF EXISTS ex_'|| rawmoduleid ||'_basic_blocks_parent_function_idx';
EXECUTE 'CREATE INDEX ex_'|| rawmoduleid ||'_basic_blocks_parent_function_idx
ON ex_'|| rawmoduleid ||'_basic_blocks USING btree(parent_function)';
EXECUTE 'INSERT INTO bn_nodes
(view_id, parent_id, type, x, y, width, height, color, selected, visible)
SELECT view_id, null, ''code'', 0, 0, 0, 0, 0, false, true
FROM ex_'|| rawmoduleid ||'_basic_blocks as basic_blocks
INNER JOIN bn_functions AS functions ON functions.module_id = '|| moduleid ||'
AND functions.address = basic_blocks.parent_function
AND functions.type != ''import''
INNER JOIN bn_function_views AS fvt ON fvt.module_id = '|| moduleid ||'
AND fvt.function = basic_blocks.parent_function
ORDER BY id
RETURNING id' INTO minnodeid;
INSERT INTO bn_code_nodes SELECT moduleid, nt.id, function, null
FROM bn_function_views AS fvt
INNER JOIN bn_nodes AS nt ON nt.view_id = fvt.view_id AND nt.type = 'code'
AND nt.id >= minnodeid WHERE fvt.module_id = moduleid;
END;
$$;
ALTER FUNCTION public.create_native_code_nodes(rawmoduleid integer, moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_native_code_nodes(rawmoduleid integer, moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_native_code_nodes(rawmoduleid integer, moduleid integer) IS 'This function creates the code nodes for all native flow graphs in a raw module to BinNavi module conversion.';
--
-- Name: create_native_flowgraph_edges(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_native_flowgraph_edges(rawmoduleid integer, moduleid integer) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
minnodeid int;
BEGIN
SELECT MIN(node_id) INTO minnodeid
FROM bn_code_nodes
WHERE module_id = moduleid;
EXECUTE 'INSERT INTO bn_edges
(source_node_id, target_node_id, x1, y1, x2, y2, type, color, visible, selected, comment_id)
SELECT fg.source + '|| minnodeid ||' - 1 AS source,
fg.destination + '|| minnodeid ||' - 1 AS target, 0, 0, 0, 0,
(ENUM_RANGE(NULL::edge_type))[fg.type + 1], 0, true, false, null
FROM ex_'|| rawmoduleid ||'_control_flow_graphs AS fg';
END;
$$;
ALTER FUNCTION public.create_native_flowgraph_edges(rawmoduleid integer, moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_native_flowgraph_edges(rawmoduleid integer, moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_native_flowgraph_edges(rawmoduleid integer, moduleid integer) IS 'This function creates the edges in the native flowgraphs during a rawmodule to module converstion.';
--
-- Name: create_native_flowgraph_views(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_native_flowgraph_views(moduleid integer) RETURNS void
LANGUAGE sql
AS $_$
WITH allinfo AS (
SELECT nextval('bn_views_id_seq') AS id, address, COALESCE(name, original_name) AS name
FROM bn_functions WHERE module_id = $1
), views AS (
INSERT INTO bn_views(id, type, name, description)
SELECT id, 'native', name, null FROM allinfo
), function_views AS (
INSERT INTO bn_function_views
SELECT $1, id, address FROM allinfo
)
INSERT INTO bn_module_views (view_id, module_id)
SELECT id, $1 FROM allinfo
$_$;
ALTER FUNCTION public.create_native_flowgraph_views(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION create_native_flowgraph_views(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_native_flowgraph_views(moduleid integer) IS 'This function creates the native flowgraph information in the database during a conversion and updates the related tables accordingly.';
--
-- Name: create_section(integer, text, integer, bigint, bigint, permission_type, bytea); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_section(moduleid integer, name text, comment_id integer, start_address bigint, end_address bigint, permission permission_type, data bytea) RETURNS integer
LANGUAGE sql
AS $_$
INSERT INTO bn_sections (module_id, name, comment_id, start_address, end_address, permission, data)
VALUES ($1, $2, $3, $4, $5, $6, $7)
RETURNING id;
$_$;
ALTER FUNCTION public.create_section(moduleid integer, name text, comment_id integer, start_address bigint, end_address bigint, permission permission_type, data bytea) OWNER TO postgres;
--
-- Name: FUNCTION create_section(moduleid integer, name text, comment_id integer, start_address bigint, end_address bigint, permission permission_type, data bytea); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_section(moduleid integer, name text, comment_id integer, start_address bigint, end_address bigint, permission permission_type, data bytea) IS 'This function creates a new section and returns its id';
--
-- Name: create_type_instance(integer, text, integer, integer, integer, bigint); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_type_instance(moduleid integer, instancename text, commentid integer, typeid integer, sectionid integer, instanceaddress bigint) RETURNS integer
LANGUAGE sql
AS $_$
INSERT INTO bn_type_instances (module_id, name, comment_id, type_id, section_id, section_offset)
VALUES ($1, $2, $3, $4, $5, $6) RETURNING id;
$_$;
ALTER FUNCTION public.create_type_instance(moduleid integer, instancename text, commentid integer, typeid integer, sectionid integer, instanceaddress bigint) OWNER TO postgres;
--
-- Name: FUNCTION create_type_instance(moduleid integer, instancename text, commentid integer, typeid integer, sectionid integer, instanceaddress bigint); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_type_instance(moduleid integer, instancename text, commentid integer, typeid integer, sectionid integer, instanceaddress bigint) IS 'This function creates a new type instance and returns the generated id of it.';
--
-- Name: create_type_substitution(integer, bigint, integer, integer, integer, integer[], integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION create_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer, basetypeid integer, path integer[], "offset" integer) RETURNS void
LANGUAGE sql
AS $_$
INSERT INTO bn_expression_types (module_id, address, position, expression_id, base_type_id, path, offset)
VALUES($1, $2, $3, $4, $5, $6, $7);
$_$;
ALTER FUNCTION public.create_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer, basetypeid integer, path integer[], "offset" integer) OWNER TO postgres;
--
-- Name: FUNCTION create_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer, basetypeid integer, path integer[], "offset" integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION create_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer, basetypeid integer, path integer[], "offset" integer) IS 'This function creates a single type substitution';
--
-- Name: delete_comment_by_id(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_comment_by_id(commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
WITH parent_comment AS (
SELECT one.id AS id, one.parent_id AS parent FROM bn_comments AS one
JOIN bn_comments AS two
ON one.parent_id = two.id
WHERE one.id = commentid
),
child_comment AS (
SELECT one.id AS id, two.id AS child FROM bn_comments AS one
JOIN bn_comments AS two
ON one.id = two.parent_id
WHERE one.id = commentid
),
update AS (UPDATE bn_comments SET parent_id =
(
SELECT parent FROM parent_comment
LEFT JOIN child_comment
ON child_comment.id = parent_comment.id
) WHERE id =
(
SELECT child FROM parent_comment
LEFT JOIN child_comment
ON child_comment.id = parent_comment.id
)
AND user_id = userid
)
DELETE FROM bn_comments
WHERE bn_comments.id = commentid
AND bn_comments.user_id = userid
RETURNING bn_comments.parent_id INTO STRICT parentid;
RETURN parentid;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE EXCEPTION 'the comment with id % does not exist or is not owned by the user with id %', commentId, userId;
END;
$$;
ALTER FUNCTION public.delete_comment_by_id(commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_comment_by_id(commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_comment_by_id(commentid integer, userid integer) IS 'This function deletes a comment by id. It is used by all other comment delete functions as core functionality.
It does verify if the user id given as argument is the actual owner of the comment which is requested to be deleted and will fail otherwise.';
--
-- Name: delete_expression_type_instance(integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_expression_type_instance(moduleid integer, address bigint, "position" integer, expressionid integer) RETURNS void
LANGUAGE sql
AS $_$
DELETE
FROM bn_expression_type_instances
WHERE module_id = $1
AND address = $2
AND "position" = $3
AND expression_id = $4;
$_$;
ALTER FUNCTION public.delete_expression_type_instance(moduleid integer, address bigint, "position" integer, expressionid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_expression_type_instance(moduleid integer, address bigint, "position" integer, expressionid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_expression_type_instance(moduleid integer, address bigint, "position" integer, expressionid integer) IS 'This function deletes a expression type instance (cross reference).';
--
-- Name: delete_function_comment(integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_function_comment(moduleid integer, functionaddress bigint, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the function nodes table with the newly generated comment.
--
UPDATE bn_functions
SET comment_id = parentid
WHERE module_id = moduleid
AND address = functionaddress
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_function_comment(moduleid integer, functionaddress bigint, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_function_comment(moduleid integer, functionaddress bigint, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_function_comment(moduleid integer, functionaddress bigint, commentid integer, userid integer) IS 'This function deletes a comment associated to a function. It does return the id of the deleted comment.';
--
-- Name: delete_function_node_comment(integer, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_function_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the function nodes table with the newly generated comment.
--
UPDATE bn_function_nodes
SET comment_id = parentid
WHERE node_id = nodeid
AND module_id = moduleid
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_function_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_function_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_function_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer) IS 'This function deletes a comment associated to a function node. It returns the id of the deleted comment.';
--
-- Name: delete_global_code_node_comment(integer, integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the global comments according to the changes.
--
IF parentid IS NULL THEN
DELETE FROM bn_global_node_comments
WHERE module_id = moduleid
AND address = node_address
AND comment_id = commentId;
ELSE
UPDATE bn_global_node_comments
SET comment_id = parentid
WHERE module_id = moduleId
AND address = node_address
AND comment_id = commentId;
END IF;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_global_code_node_comment(moduleid integer, node_id integer, node_address bigint, commentid integer, userid integer) IS 'This function deletes a global comment assocatiated with a code node. It returns the id of the deleted comment.';
--
-- Name: delete_global_edge_comment(integer, integer, bigint, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the global comments according to the changes.
--
IF parentid IS NULL THEN
DELETE FROM bn_global_edge_comments
WHERE src_module_id = srcmoduleid
AND dst_module_id = dstmoduleid
AND src_address = srcnodeaddress
AND dst_address = dstnodeaddress
AND comment_id = commentId;
ELSE
UPDATE bn_global_edge_comments
SET comment_id = parentid
WHERE dst_module_id = dstmoduleid
AND src_address = srcnodeaddress
AND dst_address = dstnodeaddress
AND comment_id = commentId;
END IF;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_global_edge_comment(srcmoduleid integer, dstmoduleid integer, srcnodeaddress bigint, dstnodeaddress bigint, commentid integer, userid integer) IS 'This function deletes a global comment associated with an edge. It does return the id of the deleted comment.';
--
-- Name: delete_global_instruction_comment(integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_global_instruction_comment(moduleid integer, instruction_address bigint, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the record of the instruction to point to the
-- new comment.
--
UPDATE bn_instructions
SET comment_id = parentid
WHERE module_id = moduleid
AND address = instruction_address
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_global_instruction_comment(moduleid integer, instruction_address bigint, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_global_instruction_comment(moduleid integer, instruction_address bigint, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_global_instruction_comment(moduleid integer, instruction_address bigint, commentid integer, userid integer) IS 'This function deletes a global comment associated with an instruction. It returns the id of the deleted comment.';
--
-- Name: delete_group_node_comment(integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_group_node_comment(nodeid integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the group nodes table with the newly generated comment.
--
UPDATE bn_group_nodes
SET comment_id = parentid
WHERE node_id = nodeId
AND comment_id = commentid;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.delete_group_node_comment(nodeid integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_group_node_comment(nodeid integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_group_node_comment(nodeid integer, commentid integer, userid integer) IS 'This function deletes a comment from a group node. It returns the id of the deleted comment.';
--
-- Name: delete_local_code_node_comment(integer, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_local_code_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the code node with the newly generated comment.
--
UPDATE bn_code_nodes
SET comment_id = parentid
WHERE module_id = moduleid
AND node_id = nodeid
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_local_code_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_local_code_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_local_code_node_comment(moduleid integer, nodeid integer, commentid integer, userid integer) IS 'This funciton deletes a local comment associated with a code node. It returns the id of the deleted comment.';
--
-- Name: delete_local_edge_comment(integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_local_edge_comment(edge_id integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the edge with the newly generated comment.
--
UPDATE bn_edges
SET comment_id = parentid
WHERE id = edge_id
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_local_edge_comment(edge_id integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_local_edge_comment(edge_id integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_local_edge_comment(edge_id integer, commentid integer, userid integer) IS 'This function deletes a local comment associated with an edge. It returns the id of the deleted comment.';
--
-- Name: delete_local_instruction_comment(integer, integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the record of the instruction to point to the
-- new comment.
--
UPDATE bn_codenode_instructions
SET comment_id = parentid
WHERE module_id = moduleid
AND node_id = nodeid
AND address = instruction_address
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_local_instruction_comment(moduleid integer, nodeid integer, instruction_address bigint, commentid integer, userid integer) IS 'This function deletes a local comment associated with an instruction in a code node. It returns the id of the deleted comment.';
--
-- Name: delete_section(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_section(moduleid integer, sectionid integer) RETURNS void
LANGUAGE sql
AS $_$
DELETE
FROM bn_sections
WHERE module_id = $1
AND id = $2;
$_$;
ALTER FUNCTION public.delete_section(moduleid integer, sectionid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_section(moduleid integer, sectionid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_section(moduleid integer, sectionid integer) IS 'This function deletes a section.';
--
-- Name: delete_section_comment(integer, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_section_comment(moduleid integer, sectionid integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the function nodes table with the newly generated comment.
--
UPDATE bn_sections
SET comment_id = parentid
WHERE module_id = moduleid
AND id = sectionid
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_section_comment(moduleid integer, sectionid integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_section_comment(moduleid integer, sectionid integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_section_comment(moduleid integer, sectionid integer, commentid integer, userid integer) IS 'This function deletes a comment associated to a section. It does return the id of the deleted comment.';
--
-- Name: delete_text_node_comment(integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_text_node_comment(nodeid integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the text nodes table with the newly generated comment.
--
UPDATE bn_text_nodes
SET comment_id = parentid
WHERE node_id = nodeId
AND comment_id = commentid;
RETURN commentid;
END;
$$;
ALTER FUNCTION public.delete_text_node_comment(nodeid integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_text_node_comment(nodeid integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_text_node_comment(nodeid integer, commentid integer, userid integer) IS 'This function deletes a comment from a text node. It returns the id of the deleted comment.';
--
-- Name: delete_type(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_type(module_id integer, type_id integer) RETURNS void
LANGUAGE sql
AS $_$
DELETE FROM bn_types AS t
WHERE t.module_id = $1
AND t.id = $2;
$_$;
ALTER FUNCTION public.delete_type(module_id integer, type_id integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_type(module_id integer, type_id integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_type(module_id integer, type_id integer) IS 'This function deletes a single type from bn_types also known as a member type if leaves a hole in the compound type at the member offset as large as the members size.';
--
-- Name: delete_type_compact(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_type_compact(module_id integer, type_id integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
deleted bn_types;
deletedsize integer;
BEGIN
--
-- Delete the type first.
--
SELECT delete_type(module_id, type_id)
INTO deleted;
--
-- Find the size of the type.
--
SELECT size FROM bn_base_types bt
WHERE bt.module_id = module_id
AND bt.id = deleted.base_type
INTO deletedsize;
--
-- Then update the offsets.
--
PERFORM update_type_offsets(module_id, deleted.parent_id, deletedsize, deleted.offset);
END;
$$;
ALTER FUNCTION public.delete_type_compact(module_id integer, type_id integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_type_compact(module_id integer, type_id integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_type_compact(module_id integer, type_id integer) IS 'This function deletes a single type from bn_types and compacts the other elements in the compound type to leave no hole where the element has been.';
--
-- Name: delete_type_instance(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_type_instance(moduleid integer, typeinstanceid integer) RETURNS void
LANGUAGE sql
AS $_$
DELETE
FROM bn_type_instances
WHERE module_id = $1
AND id = $2;
$_$;
ALTER FUNCTION public.delete_type_instance(moduleid integer, typeinstanceid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_type_instance(moduleid integer, typeinstanceid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_type_instance(moduleid integer, typeinstanceid integer) IS 'This function delete a type instance.';
--
-- Name: delete_type_instance_comment(integer, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_type_instance_comment(moduleid integer, typeinstanceid integer, commentid integer, userid integer) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
parentid integer;
BEGIN
--
-- Delete the comment according to the specified user and
-- comment ids.
--
SELECT delete_comment_by_id(commentId, userId)
INTO parentid;
--
-- Update the function nodes table with the newly generated comment.
--
UPDATE bn_type_instances
SET comment_id = parentid
WHERE module_id = moduleid
AND id = typeinstanceid
AND comment_id = commentId;
RETURN commentId;
END;
$$;
ALTER FUNCTION public.delete_type_instance_comment(moduleid integer, typeinstanceid integer, commentid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_type_instance_comment(moduleid integer, typeinstanceid integer, commentid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_type_instance_comment(moduleid integer, typeinstanceid integer, commentid integer, userid integer) IS 'This function deletes a comment associated to a type instance. It does return the id of the deleted comment.';
--
-- Name: delete_type_substitution(integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION delete_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer) RETURNS void
LANGUAGE sql
AS $_$
DELETE FROM bn_expression_types AS et
WHERE et.module_id = $1
AND et.address = $2
AND et.position = $3
AND et.expression_id = $4;
$_$;
ALTER FUNCTION public.delete_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer) OWNER TO postgres;
--
-- Name: FUNCTION delete_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION delete_type_substitution(moduleid integer, address bigint, "position" integer, expressionid integer) IS 'This function deletes a single type substitution';
--
-- Name: edit_comment(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION edit_comment(comment_id integer, userid integer, commenttext text) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
result integer;
BEGIN
--
-- Find out if there is a comment record which is owned
-- by the user id given as argument.
--
SELECT c.id INTO STRICT result FROM bn_comments AS c
WHERE c.id = comment_id
AND c.user_id = userid;
--
-- If the record exists proceed with the update.
--
IF FOUND THEN
UPDATE bn_comments
SET comment_text = commenttext
WHERE id = comment_id
AND user_id = userid;
END IF;
--
-- If either the comment is not owned by the supplied user id
-- or if there are actually more comments which come up for the same
-- key we bail out and inform the caller.
--
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE EXCEPTION 'Error: there is no comment record in the database which satisfies id = % user = %.', comment_id, userid;
WHEN TOO_MANY_ROWS THEN
RAISE EXCEPTION 'Error: there is more then one comment which satisfies id = % user = %.', comment_id, userid;
END;
$$;
ALTER FUNCTION public.edit_comment(comment_id integer, userid integer, commenttext text) OWNER TO postgres;
--
-- Name: FUNCTION edit_comment(comment_id integer, userid integer, commenttext text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION edit_comment(comment_id integer, userid integer, commenttext text) IS 'This function edits a comment based on the id and the comment text provided.
It checks if the user given is the owner of the comment and will fail if this is not the case.
This function is used for all edit functions.';
--
-- Name: get_all_comment_ancestors(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION get_all_comment_ancestors(comment_id integer) RETURNS TABLE(level integer, id integer, parent_id integer, user_id integer, comment text)
LANGUAGE sql
AS $_$
WITH RECURSIVE
q AS
(
SELECT h.*, 1 AS level
FROM bn_comments h
WHERE id = $1
UNION ALL
SELECT hp.*, level + 1
FROM q
JOIN bn_comments hp
ON hp.id = q.parent_id
)
SELECT level, id, parent_id, user_id, comment_text
FROM q
ORDER BY level DESC
$_$;
ALTER FUNCTION public.get_all_comment_ancestors(comment_id integer) OWNER TO postgres;
--
-- Name: FUNCTION get_all_comment_ancestors(comment_id integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION get_all_comment_ancestors(comment_id integer) IS 'This function gets all ancestors of a comment for the provided comment id.';
--
-- Name: get_all_comment_ancestors_multiple(integer[]); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION get_all_comment_ancestors_multiple(commentids integer[]) RETURNS TABLE(commentid integer, level integer, id integer, parent_id integer, user_id integer, comment text)
LANGUAGE plpgsql
AS $_$
DECLARE
commentId integer;
BEGIN
FOREACH commentId IN ARRAY $1
LOOP
RETURN QUERY(
SELECT commentId, * FROM get_all_comment_ancestors(commentId)
);
END LOOP;
END;
$_$;
ALTER FUNCTION public.get_all_comment_ancestors_multiple(commentids integer[]) OWNER TO postgres;
--
-- Name: FUNCTION get_all_comment_ancestors_multiple(commentids integer[]); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION get_all_comment_ancestors_multiple(commentids integer[]) IS 'This function gets all ancestors of all comment ids provided as argument.
It can be used as to batch load comments and reduce the number of querries needed to do so.';
--
-- Name: get_derived_views(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION get_derived_views(viewid integer) RETURNS integer
LANGUAGE sql
AS $_$
SELECT vt.id FROM bn_codenode_instructions AS cit
JOIN (
SELECT cit.address FROM bn_views AS vt
JOIN bn_nodes AS nt ON vt.id = nt.view_id
JOIN bn_codenode_instructions AS cit ON nt.id = cit.node_id
WHERE vt.id = $1
) AS a ON cit.address = a.address
JOIN bn_nodes AS nt ON cit.node_id = nt.id
JOIN bn_views AS vt ON vt.id = nt.view_id
WHERE vt.type = 'non-native' GROUP by vt.id;
$_$;
ALTER FUNCTION public.get_derived_views(viewid integer) OWNER TO postgres;
--
-- Name: FUNCTION get_derived_views(viewid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION get_derived_views(viewid integer) IS 'This function retrieves the views from the database which have been derived from the given view.';
--
-- Name: get_sections(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION get_sections(moduleid integer) RETURNS TABLE(module_id integer, id integer, name text, comment_id integer, start_address bigint, end_address bigint, permission permission_type, data bytea)
LANGUAGE sql
AS $_$
SELECT *
FROM bn_sections
WHERE module_id = $1;
$_$;
ALTER FUNCTION public.get_sections(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION get_sections(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION get_sections(moduleid integer) IS 'This function returns all sections associated with the given module id.';
--
-- Name: import(integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION import(rawmoduleid integer, moduleid integer, userid integer) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
arch text;
viewid int;
BEGIN
--
-- Disable all trigger procedures during the import.
--
SET session_replication_role = replica;
SELECT architecture INTO arch FROM modules WHERE id = rawmoduleid;
--
-- import expression tree ids.
--
EXECUTE 'INSERT INTO bn_expression_tree_ids
SELECT '|| moduleid ||', id
FROM ex_'|| rawmoduleid ||'_expression_trees';
--
-- import expression trees.
--
EXECUTE 'INSERT INTO bn_expression_tree
(module_id, id, type, symbol, immediate, position, parent_id)
SELECT '|| moduleid ||', id, type, symbol, immediate, position, parent_id
FROM ex_'|| rawmoduleid ||'_expression_nodes';
--
-- Connect expression trees.
--
EXECUTE 'INSERT INTO bn_expression_tree_mapping
(SELECT '|| moduleid ||', expression_tree_id, expression_node_id
FROM ex_'|| rawmoduleid ||'_expression_tree_nodes)';
--
-- import instructions.
--
EXECUTE 'WITH comments_to_id(id, address, comment) AS (
SELECT nextval(''bn_comments_id_seq''::regclass), address, comment
FROM ex_'|| rawmoduleid ||'_address_comments
), comments_table AS (
INSERT INTO bn_comments
(id, parent_id, user_id, comment_text)
SELECT id, null, '|| userid ||', comment
FROM comments_to_id
)
INSERT INTO bn_instructions
(module_id, address, mnemonic, data, native, architecture, comment_id)
SELECT '|| moduleid ||', isn.address, mnemonic, data, true, '|| quote_literal(arch) ||', com.id
FROM ex_'|| rawmoduleid ||'_instructions AS isn
LEFT JOIN comments_to_id AS com ON com.address = isn.address';
--
-- import operands.
--
EXECUTE 'INSERT INTO bn_operands SELECT '|| moduleid ||', address, expression_tree_id, position
FROM ex_'|| rawmoduleid ||'_operands';
--
-- import expression substitutions.
--
EXECUTE 'INSERT INTO bn_expression_substitutions
(module_id, address, position, expression_id, replacement)
SELECT '|| moduleid ||', address, position, expression_node_id, replacement
FROM ex_'|| rawmoduleid ||'_expression_substitutions';
--
-- Import address references.
--
EXECUTE 'INSERT INTO bn_address_references
(module_id, address, position, expression_id, type, target)
SELECT '|| moduleid ||', address, position, expression_node_id,
(ENUM_RANGE(NULL::address_reference_type))[type + 1], destination
FROM ex_'|| rawmoduleid ||'_address_references
WHERE position IS NOT NULL AND expression_node_id IS NOT NULL';
--
-- Import functions.
--
EXECUTE 'INSERT INTO bn_functions
(module_id, address, name, original_name, type, description,
parent_module_name, parent_module_id, parent_module_function, comment_id, stack_frame)
SELECT '|| moduleid ||', address, demangled_name, name, (ENUM_RANGE(NULL::function_type))[type + 1],
null, module_name, null, null, null, stack_frame
FROM ex_'|| rawmoduleid ||'_functions';
--
-- import base types.
--
EXECUTE 'INSERT INTO bn_base_types
SELECT '|| moduleid ||', id, name, size, pointer, signed, category::text::type_category
FROM ex_'|| rawmoduleid ||'_base_types';
EXECUTE 'SELECT setval(''bn_base_types_id_seq'', MAX(id)) FROM bn_base_types';
--
-- import types.
--
EXECUTE 'INSERT INTO bn_types
SELECT '|| moduleid ||', raw_types.id, raw_types.name, raw_types.base_type, raw_types.parent_id,
raw_types.offset, raw_types.argument, raw_types.number_of_elements
FROM ex_'|| rawmoduleid ||'_types AS raw_types';
EXECUTE 'SELECT setval(''bn_types_id_seq'', MAX(id)) FROM bn_types';
--
-- import expression types.
--
EXECUTE 'INSERT INTO bn_expression_types
SELECT '|| moduleid ||', et.address, et.position, et.expression_id, et.type, et.path, et.offset
FROM ex_'|| rawmoduleid ||'_expression_types AS et';
--
-- import sections
--
EXECUTE 'INSERT INTO bn_sections (module_id, id, name, comment_id, start_address, end_address, permission, data)
SELECT '|| moduleid ||', id, name, NULL, start_address, end_address, permission::text::permission_type, data
FROM ex_'|| rawmoduleid ||'_sections';
EXECUTE 'SELECT setval(''bn_sections_id_seq'', MAX(id)) FROM bn_sections';
--
-- import type instances
--
EXECUTE 'INSERT INTO bn_type_instances (module_id, id, name, type_id, section_id, section_offset)
SELECT '|| moduleid ||', id, name, type_id, section_id, section_offset
FROM ex_'|| rawmoduleid ||'_type_instances';
EXECUTE 'SELECT setval(''bn_type_instances_id_seq'', MAX(id)) FROM bn_type_instances';
--
-- import expression type instances
--
EXECUTE 'INSERT INTO bn_expression_type_instances
SELECT '|| moduleid ||', address, position, expression_node_id, type_instance_id
FROM ex_'|| rawmoduleid ||'_expression_type_instances';
PERFORM create_native_flowgraph_views(moduleid);
PERFORM create_native_code_nodes(rawmoduleid, moduleid);
PERFORM connect_instructions_to_code_nodes(rawmoduleid, moduleid);
PERFORM create_native_flowgraph_edges(rawmoduleid,moduleid);
PERFORM colorize_module_nodes(moduleid);
SELECT * INTO viewid FROM create_native_call_graph_view(moduleid);
PERFORM create_native_callgraph_nodes(viewid, moduleid);
PERFORM create_native_callgraph_edges(rawmoduleid, moduleid);
UPDATE bn_modules SET initialization_state = 2147483647 WHERE id = moduleid;
--
-- Enable all trigger procedures after the import.
--
SET session_replication_role = DEFAULT;
ANALYZE bn_nodes;
ANALYZE bn_code_nodes;
ANALYZE bn_function_nodes;
ANALYZE bn_edges;
ANALYZE bn_functions;
ANALYZE bn_function_views;
ANALYZE bn_views;
ANALYZE bn_address_references;
ANALYZE bn_expression_substitutions;
ANALYZE bn_instructions;
ANALYZE bn_codenode_instructions;
END;
$$;
ALTER FUNCTION public.import(rawmoduleid integer, moduleid integer, userid integer) OWNER TO postgres;
--
-- Name: FUNCTION import(rawmoduleid integer, moduleid integer, userid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION import(rawmoduleid integer, moduleid integer, userid integer) IS 'This function performs all necessary conversions to transform a raw module from the exporter tables into a BinNavi type module.';
--
-- Name: load_code_nodes(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_code_nodes(viewid integer) RETURNS TABLE(module_id integer, instruction_address bigint, operand_position integer, view_id integer, node_id integer, parent_function bigint, local_code_node_comment integer, global_code_node_comment integer, local_instruction_comment integer, global_instruction_comment integer, instruction_data bytea, x double precision, y double precision, width double precision, height double precision, color integer, bordercolor integer, selected boolean, visible boolean, mnemonic text, architecture architecture_type, expression_tree_id integer, expression_tree_type integer, symbol text, immediate bigint, expression_tree_parent_id integer, replacement text, target bigint, expression_types_type integer, expression_types_offset integer, expression_types_position integer, expression_types_path integer[], address_references_type address_reference_type, function_address bigint, type_instance_id integer)
LANGUAGE sql
AS $_$
SELECT bi.module_id AS module_id,
bi.address AS instruction_address,
bo.position AS operand_position,
bv.id AS view_id,
bn.id AS node_id,
parent_function,
bcn.comment_id AS local_code_node_comment,
bgnc.comment_id AS global_code_node_comment,
bci.comment_id AS local_instruction_comment,
bi.comment_id AS global_instruction_comment,
bi.data AS instruction_data,
x,
y,
width,
height,
color,
bordercolor,
selected,
visible,
mnemonic,
architecture,
bet.id AS expression_tree_id,
bet.type AS expression_tree_type,
symbol,
immediate,
bet.parent_id AS expression_tree_parent_id,
replacement,
target,
bety.base_type_id AS expression_types_type,
bety.offset AS expression_types_offset,
bety.position AS expression_types_position,
bety.path AS expression_types_path,
bar.type AS address_references_type,
bf.address AS function_address,
beti.type_instance_id AS type_instance_id
FROM bn_views as bv
JOIN bn_nodes as bn
ON bn.view_id = bv.id
AND bn.type = 'code'::node_type
LEFT JOIN bn_code_nodes AS bcn
ON bcn.node_id = bn.id
LEFT JOIN bn_codenode_instructions AS bci
ON bci.module_id = bcn.module_id
AND bci.node_id = bcn.node_id
LEFT JOIN bn_global_node_comments AS bgnc
ON bgnc.module_id = bci.module_id
AND bgnc.address = bci.address
LEFT JOIN bn_instructions AS bi
ON bi.module_id = bci.module_id
AND bi.address = bci.address
LEFT JOIN bn_operands AS bo
ON bo.module_id = bi.module_id
AND bo.address = bi.address
LEFT JOIN bn_expression_tree_mapping AS betm
ON betm.module_id = bo.module_id
AND betm.tree_id = bo.expression_tree_id
LEFT JOIN bn_expression_tree AS bet
ON bet.module_id = betm.module_id
and bet.id = betm.tree_node_id
LEFT JOIN bn_address_references AS bar
ON bar.module_id = betm.module_id
AND bar.address = bi.address
AND bar.position = bo.position
AND bar.expression_id = bet.id
LEFT JOIN bn_expression_substitutions AS bes
ON bes.module_id = bet.module_id
AND bes.address = bi.address
AND bes.position = bo.position
AND bes.expression_id = bet.id
LEFT JOIN bn_expression_types AS bety
ON bety.module_id = bet.module_id
AND bety.address = bi.address
AND bety.expression_id = bet.id
LEFT JOIN bn_functions AS bf
ON bf.module_id = bet.module_id
AND bf.address = bet.immediate
LEFT JOIN bn_expression_type_instances AS beti
ON beti.module_id = bet.module_id
AND beti.address = bi.address
AND beti.position = bo.position
AND beti.expression_id = bet.id
WHERE bv.id = $1
ORDER BY bn.id, bci.position, bo.position, bet.position, bet.id;
$_$;
ALTER FUNCTION public.load_code_nodes(viewid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_code_nodes(viewid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_code_nodes(viewid integer) IS 'Loads the code nodes for a view.';
--
-- Name: load_expression_type_instance(integer, integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_expression_type_instance(moduleid integer, typeinstanceid integer, address bigint, "position" integer, expressionid integer) RETURNS TABLE(view_id integer, module_id integer, address bigint, "position" integer, expression_id integer, type_instance_id integer)
LANGUAGE sql
AS $_$
SELECT bv.id AS view_id, beti.module_id, beti.address, beti.position, beti.expression_id, beti.type_instance_id
FROM bn_views AS bv
JOIN bn_nodes AS bn
ON bn.view_id = bv.id
AND bn.type = 'code'::node_type
LEFT JOIN bn_code_nodes AS bcn
ON bcn.node_id = bn.id
LEFT JOIN bn_codenode_instructions AS bcni
ON bcni.module_id = bcn.module_id
AND bcni.node_id = bcn.node_id
LEFT JOIN bn_instructions AS bi
ON bi.module_id = bcni.module_id
AND bi.address = bcni.address
JOIN bn_expression_type_instances AS beti
ON beti.module_id = bi.module_id
AND beti.address = bi.address
WHERE bcn.module_id = $1
AND beti.type_instance_id = $2
AND beti.address = $3
AND beti.position = $4
AND beti.expression_id = $5
$_$;
ALTER FUNCTION public.load_expression_type_instance(moduleid integer, typeinstanceid integer, address bigint, "position" integer, expressionid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_expression_type_instance(moduleid integer, typeinstanceid integer, address bigint, "position" integer, expressionid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_expression_type_instance(moduleid integer, typeinstanceid integer, address bigint, "position" integer, expressionid integer) IS 'Loads a single cross reference from the database.';
--
-- Name: load_expression_type_instances(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_expression_type_instances(moduleid integer) RETURNS TABLE(view_id integer, module_id integer, address bigint, "position" integer, expression_id integer, type_instance_id integer)
LANGUAGE sql
AS $_$
SELECT bv.id AS view_id, beti.module_id, beti.address, beti.position, beti.expression_id, beti.type_instance_id
FROM bn_views AS bv
JOIN bn_nodes AS bn
ON bn.view_id = bv.id
AND bn.type = 'code'::node_type
LEFT JOIN bn_code_nodes AS bcn
ON bcn.node_id = bn.id
LEFT JOIN bn_codenode_instructions AS bcni
ON bcni.module_id = bcn.module_id
AND bcni.node_id = bcn.node_id
LEFT JOIN bn_instructions AS bi
ON bi.module_id = bcni.module_id
AND bi.address = bcni.address
JOIN bn_expression_type_instances AS beti
ON beti.module_id = bi.module_id
AND beti.address = bi.address
WHERE bcn.module_id = $1
$_$;
ALTER FUNCTION public.load_expression_type_instances(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_expression_type_instances(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_expression_type_instances(moduleid integer) IS 'The function retrieves all expression type instances for a given module.';
--
-- Name: load_function_information(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_function_information(moduleid integer) RETURNS TABLE(view_id integer, address bigint, name text, original_name text, description text, bbcount bigint, edgecount bigint, incount bigint, outcount bigint, global_comment integer, type function_type, parent_module_name text, parent_module_id integer, parent_module_function integer, stack_frame integer)
LANGUAGE sql
AS $_$
WITH function_block_count AS (
SELECT function, count(nt.id) AS bbcount FROM bn_views AS vt
LEFT JOIN bn_function_views AS fvt ON vt.id = fvt.view_id
LEFT JOIN bn_nodes AS nt ON nt.view_id = vt.id
WHERE fvt.module_id = $1
GROUP BY fvt.function
), function_edge_count AS (
SELECT function, count(et.id) AS edgecount FROM bn_views AS vt
LEFT JOIN bn_function_views AS fvt ON vt.id = fvt.view_id
LEFT JOIN bn_nodes AS nt ON nt.view_id = vt.id
LEFT JOIN bn_edges AS et ON source_node_id = nt.id
WHERE fvt.module_id = $1
GROUP BY function
), function_in_count AS (
SELECT function, COUNT(source_node_id) AS incount FROM bn_views AS vt
JOIN bn_nodes AS nt ON nt.view_id = vt.id
JOIN bn_function_nodes AS fnt ON nt.id = fnt.node_id
LEFT JOIN bn_edges ON target_node_id = fnt.node_id
WHERE vt.type = 'native' AND module_id = $1
GROUP BY function
), function_out_count AS (
SELECT function, COUNT(target_node_id) AS outcount FROM bn_views AS vt
JOIN bn_nodes AS nt ON nt.view_id = vt.id
JOIN bn_function_nodes AS fnt ON nt.id = fnt.node_id
LEFT JOIN bn_edges ON source_node_id = fnt.node_id
WHERE vt.type = 'native' and module_id = $1
GROUP BY function
)
SELECT view_id, ft.address, name, original_name, description,
bc.bbcount, ec.edgecount, ic.incount, oc.outcount,
comment_id AS global_comment, type, parent_module_name,
parent_module_id, parent_module_function, stack_frame FROM bn_functions AS ft
JOIN bn_function_views AS fviews ON fviews.module_id = ft.module_id
AND function = ft.address
JOIN function_block_count AS bc ON bc.function = ft.address
JOIN function_edge_count AS ec ON ec.function = ft.address
JOIN function_in_count AS ic ON ic.function = ft.address
JOIN function_out_count AS oc ON oc.function = ft.address
WHERE ft.module_id = $1
ORDER BY ft.address
$_$;
ALTER FUNCTION public.load_function_information(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_function_information(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_function_information(moduleid integer) IS 'This function provides the information about all view / function information stored in the database under a specific module id.';
--
-- Name: load_function_information(integer, bigint); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_function_information(moduleid integer, address bigint) RETURNS TABLE(view_id integer, address bigint, name text, original_name text, description text, bbcount bigint, edgecount bigint, incount bigint, outcount bigint, global_comment integer, type function_type, parent_module_name text, parent_module_id integer, parent_module_function integer)
LANGUAGE sql
AS $_$
WITH function_block_count AS (
SELECT function, count(nt.id) AS bbcount FROM bn_views AS vt
LEFT JOIN bn_function_views AS fvt ON vt.id = fvt.view_id
LEFT JOIN bn_nodes AS nt ON nt.view_id = vt.id
WHERE fvt.module_id = $1 AND function = $2
GROUP BY fvt.function
), function_edge_count AS (
SELECT function, count(et.id) AS edgecount FROM bn_views AS vt
LEFT JOIN bn_function_views AS fvt ON vt.id = fvt.view_id
LEFT JOIN bn_nodes AS nt ON nt.view_id = vt.id
LEFT JOIN bn_edges AS et ON source_node_id = nt.id
WHERE fvt.module_id = $1 AND function = $2
GROUP BY function
), function_in_count AS (
SELECT function, COUNT(source_node_id) AS incount FROM bn_views AS vt
JOIN bn_nodes AS nt ON nt.view_id = vt.id
JOIN bn_function_nodes AS fnt ON nt.id = fnt.node_id
LEFT JOIN bn_edges ON target_node_id = fnt.node_id
WHERE vt.type = 'native' AND module_id = $1 AND function = $2
GROUP BY function
), function_out_count AS (
SELECT function, COUNT(target_node_id) AS outcount FROM bn_views AS vt
JOIN bn_nodes AS nt ON nt.view_id = vt.id
JOIN bn_function_nodes AS fnt ON nt.id = fnt.node_id
LEFT JOIN bn_edges ON source_node_id = fnt.node_id
WHERE vt.type = 'native' AND module_id = $1 AND function = $2
GROUP BY function
)
SELECT view_id, ft.address, name, original_name, description,
bc.bbcount, ec.edgecount, ic.incount, oc.outcount,
comment_id AS global_comment, type, parent_module_name,
parent_module_id, parent_module_function, stack_frame FROM bn_functions AS ft
JOIN bn_function_views AS fviews ON fviews.module_id = ft.module_id
AND function = ft.address
JOIN function_block_count AS bc ON bc.function = ft.address
JOIN function_edge_count AS ec ON ec.function = ft.address
JOIN function_in_count AS ic ON ic.function = ft.address
JOIN function_out_count AS oc ON oc.function = ft.address
WHERE ft.module_id = $1 AND ft.address = $2
$_$;
ALTER FUNCTION public.load_function_information(moduleid integer, address bigint) OWNER TO postgres;
--
-- Name: FUNCTION load_function_information(moduleid integer, address bigint); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_function_information(moduleid integer, address bigint) IS 'This function provides the information about a single view / function information stored in the database.';
--
-- Name: load_global_variables(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_global_variables(moduleid integer) RETURNS TABLE(target bigint, replacement text, view_id integer)
LANGUAGE sql
AS $_$
WITH first AS (
SELECT target, replacement, ref.module_id, ref.address FROM bn_address_references AS ref
INNER JOIN bn_expression_substitutions AS sub ON sub.module_id = $1
AND ref.module_id = $1
AND sub.address = ref.address
AND sub.position = ref.position
AND sub.expression_id = ref.expression_id
AND ref.type IN ( 'data', 'data_string' )
), second AS (
SELECT target, replacement, node_id FROM first
INNER JOIN bn_codenode_instructions AS ci ON ci.module_id = $1 AND ci.address = first.address
)
SELECT target, replacement, nodes.view_id FROM second
INNER JOIN bn_nodes AS nodes ON nodes.id = second.node_id
JOIN bn_module_views AS bmv ON bmv.view_id = nodes.view_id
AND bmv.module_id = $1
$_$;
ALTER FUNCTION public.load_global_variables(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_global_variables(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_global_variables(moduleid integer) IS 'This function loads all global variables for a given module.';
--
-- Name: load_module_call_graph(integer, view_type); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_module_call_graph(moduleid integer, viewtype view_type) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount,
COUNT(et.id) AS edgecount,
COUNT(DISTINCT(nt.type)) AS type_count,
nt.type AS node_type
FROM bn_views AS vt
JOIN bn_module_views AS mvt ON vt.id = mvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = $2 AND mvt.module_id = $1
GROUP BY vt.id, nt.type
HAVING COUNT(DISTINCT(nt.type)) = 1
AND nt.type = 'function'
ORDER BY vt.id;
$_$;
ALTER FUNCTION public.load_module_call_graph(moduleid integer, viewtype view_type) OWNER TO postgres;
--
-- Name: FUNCTION load_module_call_graph(moduleid integer, viewtype view_type); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_module_call_graph(moduleid integer, viewtype view_type) IS 'This function loads module call graph information. But not the call graph itself.';
--
-- Name: load_module_call_graphs(integer, view_type); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_module_call_graphs(moduleid integer, viewtype view_type) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count,
MAX(nt.type) AS node_type
FROM bn_views AS vt
JOIN bn_module_views AS mvt ON vt.id = mvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = $2
AND mvt.module_id = $1
GROUP BY vt.id
HAVING COUNT(DISTINCT(nt.type)) = 1
AND MAX(nt.type) = 'function'
$_$;
ALTER FUNCTION public.load_module_call_graphs(moduleid integer, viewtype view_type) OWNER TO postgres;
--
-- Name: FUNCTION load_module_call_graphs(moduleid integer, viewtype view_type); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_module_call_graphs(moduleid integer, viewtype view_type) IS 'This function loads call graph type graphs for a module.';
--
-- Name: load_module_flow_graphs(integer, view_type); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_module_flow_graphs(moduleid integer, viewtype view_type) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count,
MAX(nt.type) AS node_type
FROM bn_views AS vt
JOIN bn_module_views AS mvt ON vt.id = mvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = $2
AND mvt.module_id = $1
GROUP BY vt.id
HAVING COUNT(DISTINCT(nt.type)) <= 1
AND MAX(nt.type) = 'code' OR MAX(nt.type) is null
$_$;
ALTER FUNCTION public.load_module_flow_graphs(moduleid integer, viewtype view_type) OWNER TO postgres;
--
-- Name: FUNCTION load_module_flow_graphs(moduleid integer, viewtype view_type); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_module_flow_graphs(moduleid integer, viewtype view_type) IS 'This function loads flow graph type graphs for a module.';
--
-- Name: load_module_flowgraph_information(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_module_flowgraph_information(moduleid integer, viewid integer) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count,
nt.type AS node_type
FROM bn_views AS vt
JOIN bn_module_views AS mvt ON vt.id = mvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.id = $2
AND mvt.module_id = $1
AND (nt.type IN ('code', 'function') OR nt.type IS NULL)
GROUP BY vt.id, nt.type
$_$;
ALTER FUNCTION public.load_module_flowgraph_information(moduleid integer, viewid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_module_flowgraph_information(moduleid integer, viewid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_module_flowgraph_information(moduleid integer, viewid integer) IS 'This function loads aggregated information about a specific view / function from the database.';
--
-- Name: load_module_mixed_graph(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_module_mixed_graph(moduleid integer) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count
FROM bn_views AS vt
JOIN bn_module_views AS mvt ON vt.id = mvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = 'non-native' AND mvt.module_id = $1
GROUP BY vt.id
HAVING COUNT(DISTINCT(nt.type)) = 2
$_$;
ALTER FUNCTION public.load_module_mixed_graph(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_module_mixed_graph(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_module_mixed_graph(moduleid integer) IS 'This function loads all mixed graph information for the specified module from the database.';
--
-- Name: load_module_node_tags(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_module_node_tags(moduleid integer) RETURNS TABLE(view_id integer, tag_id integer)
LANGUAGE sql
AS $_$
SELECT nt.view_id, tnt.tag_id FROM bn_tagged_nodes AS tnt
JOIN bn_nodes AS nt ON node_id = nt.id
JOIN bn_module_views AS mvt ON mvt.view_id = nt.view_id
WHERE mvt.module_id = $1
GROUP BY nt.view_id, tnt.tag_id
ORDER BY nt.view_id;
$_$;
ALTER FUNCTION public.load_module_node_tags(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_module_node_tags(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_module_node_tags(moduleid integer) IS 'Loads the node tags for the module given as argument.';
--
-- Name: load_project_call_graph(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_project_call_graph(projectid integer) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
count(distinct(nt.id)) AS bbcount, count(et.id) AS edgecount, count(distinct(nt.type)) AS type_count, nt.type AS node_type
FROM bn_views AS vt
JOIN bn_project_views AS pvt ON vt.id = pvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE pvt.project_id = $1
GROUP BY vt.id, nt.type
HAVING COUNT(DISTINCT(nt.type)) = 1
AND nt.type = 'function'
ORDER BY vt.id;
$_$;
ALTER FUNCTION public.load_project_call_graph(projectid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_project_call_graph(projectid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_project_call_graph(projectid integer) IS 'This function loads project call graph information. But not the call graph itself.';
--
-- Name: load_project_call_graphs(integer, view_type); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_project_call_graphs(projectid integer, viewtype view_type) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count,
MAX(nt.type) AS node_type
FROM bn_views AS vt
JOIN bn_project_views AS pvt ON vt.id = pvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = $2
AND pvt.project_id = $1
GROUP BY vt.id
HAVING COUNT(DISTINCT(nt.type)) = 1
AND MAX(nt.type) = 'function'
$_$;
ALTER FUNCTION public.load_project_call_graphs(projectid integer, viewtype view_type) OWNER TO postgres;
--
-- Name: FUNCTION load_project_call_graphs(projectid integer, viewtype view_type); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_project_call_graphs(projectid integer, viewtype view_type) IS 'This function loads call graph type graphs for a project.';
--
-- Name: load_project_flow_graphs(integer, view_type); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_project_flow_graphs(projectid integer, viewtype view_type) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count,
MAX(nt.type) AS node_type
FROM bn_views AS vt
JOIN bn_project_views AS pvt ON vt.id = pvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = $2
AND pvt.project_id = $1
GROUP BY vt.id
HAVING COUNT(DISTINCT(nt.type)) <= 1
AND MAX(nt.type) = 'code' OR MAX(nt.type) is null
$_$;
ALTER FUNCTION public.load_project_flow_graphs(projectid integer, viewtype view_type) OWNER TO postgres;
--
-- Name: FUNCTION load_project_flow_graphs(projectid integer, viewtype view_type); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_project_flow_graphs(projectid integer, viewtype view_type) IS 'This function loads flow graph type graphs for a project.';
--
-- Name: load_project_flowgraph(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_project_flowgraph(projectid integer, viewid integer) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint, node_type node_type)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count,
nt.type AS node_type
FROM bn_views AS vt
JOIN bn_project_views AS pvt ON vt.id = pvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = 'non-native'
AND vt.id = $2
AND pvt.project_id = $1
AND nt.type in ('code', 'function')
GROUP BY vt.id, nt.type
HAVING COUNT(DISTINCT(nt.type)) = 1 AND nt.type = 'code'
ORDER BY vt.id
$_$;
ALTER FUNCTION public.load_project_flowgraph(projectid integer, viewid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_project_flowgraph(projectid integer, viewid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_project_flowgraph(projectid integer, viewid integer) IS 'This function loads project view specific configuration information from the database.';
--
-- Name: load_project_mixed_graph(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_project_mixed_graph(projectid integer) RETURNS TABLE(view_id integer, name text, description text, type view_type, creation_date timestamp without time zone, modification_date timestamp without time zone, stared boolean, bbcount bigint, edgecount bigint, type_count bigint)
LANGUAGE sql
AS $_$
SELECT vt.id AS view_id, name, description, vt.type AS type, creation_date, modification_date, stared,
COUNT(DISTINCT(nt.id)) AS bbcount, COUNT(et.id) AS edgecount, COUNT(DISTINCT(nt.type)) AS type_count
FROM bn_views AS vt
JOIN bn_project_views AS mvt ON vt.id = pvt.view_id
LEFT JOIN bn_nodes AS nt ON vt.id = nt.view_id
LEFT JOIN bn_edges AS et ON nt.id = et.source_node_id
WHERE vt.type = 'non-native' AND pvt.project_id = $1
GROUP BY vt.id
HAVING COUNT(DISTINCT(nt.type)) in (0,2)
$_$;
ALTER FUNCTION public.load_project_mixed_graph(projectid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_project_mixed_graph(projectid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_project_mixed_graph(projectid integer) IS 'This function loads all mixed graph information for the specified project from the database.';
--
-- Name: load_project_node_tags(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_project_node_tags(projectid integer) RETURNS TABLE(view_id integer, tag_id integer)
LANGUAGE sql
AS $_$
SELECT nt.view_id, tnt.tag_id FROM bn_tagged_nodes AS tnt
JOIN bn_nodes AS nt ON node_id = nt.id
JOIN bn_project_views AS pvt ON pvt.view_id = nt.view_id
WHERE pvt.project_id = $1
GROUP BY nt.view_id, tnt.tag_id
ORDER BY nt.view_id;
$_$;
ALTER FUNCTION public.load_project_node_tags(projectid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_project_node_tags(projectid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_project_node_tags(projectid integer) IS 'Loads the node tags for the project given as argument.';
--
-- Name: load_type(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type(moduleid integer, typeid integer) RETURNS TABLE(id integer, name text, size integer, pointer integer, signed boolean, category type_category)
LANGUAGE sql
AS $_$
SELECT id, name, size, pointer, signed, category
FROM bn_base_types
WHERE module_id = $1
AND id = $2;
$_$;
ALTER FUNCTION public.load_type(moduleid integer, typeid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type(moduleid integer, typeid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type(moduleid integer, typeid integer) IS 'Loads a single base type.';
--
-- Name: load_type_instance(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type_instance(moduleid integer, typeinstanceid integer) RETURNS TABLE(module_id integer, id integer, name text, comment_id integer, type_id integer, section_id integer, section_offset bigint)
LANGUAGE sql
AS $_$
SELECT * FROM bn_type_instances
WHERE module_id = $1
AND id = $2;
$_$;
ALTER FUNCTION public.load_type_instance(moduleid integer, typeinstanceid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type_instance(moduleid integer, typeinstanceid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type_instance(moduleid integer, typeinstanceid integer) IS 'This function loads a single type instaces.';
--
-- Name: load_type_instances(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type_instances(moduleid integer) RETURNS TABLE(module_id integer, id integer, name text, comment_id integer, type_id integer, section_id integer, section_offset bigint)
LANGUAGE sql
AS $_$
SELECT * FROM bn_type_instances
WHERE module_id = $1;
$_$;
ALTER FUNCTION public.load_type_instances(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type_instances(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type_instances(moduleid integer) IS 'This function retrives all type instaces for a given module id.';
--
-- Name: load_type_member(integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type_member(moduleid integer, typeid integer) RETURNS TABLE(id integer, name text, base_type integer, parent_id integer, "offset" integer, argument integer, number_of_elements integer)
LANGUAGE sql
AS $_$
SELECT id, name, base_type, parent_id, "offset", argument, number_of_elements
FROM bn_types
WHERE module_id = $1
AND id = $2;
$_$;
ALTER FUNCTION public.load_type_member(moduleid integer, typeid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type_member(moduleid integer, typeid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type_member(moduleid integer, typeid integer) IS 'Loads a single type member from the database.';
--
-- Name: load_type_members(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type_members(moduleid integer) RETURNS TABLE(id integer, name text, base_type integer, parent_id integer, "offset" integer, argument integer, number_of_elements integer)
LANGUAGE sql
AS $_$
SELECT id, name, base_type, parent_id, "offset", argument, number_of_elements
FROM bn_types
WHERE module_id = $1;
$_$;
ALTER FUNCTION public.load_type_members(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type_members(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type_members(moduleid integer) IS 'Loads all type members for the given module.';
--
-- Name: load_type_substitution(integer, bigint, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type_substitution(moduleid integer, address bigint, "position" integer, expression_id integer) RETURNS TABLE(address bigint, "position" integer, expression_id integer, base_type_id integer, path integer[], "offset" integer)
LANGUAGE sql
AS $_$
SELECT address, "position", expression_id, base_type_id, path, "offset"
FROM bn_expression_types
WHERE module_id = $1
AND address = $2
AND "position" = $3
AND expression_id = $4;
$_$;
ALTER FUNCTION public.load_type_substitution(moduleid integer, address bigint, "position" integer, expression_id integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type_substitution(moduleid integer, address bigint, "position" integer, expression_id integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type_substitution(moduleid integer, address bigint, "position" integer, expression_id integer) IS 'Loads a aingle type susbtitutions.';
--
-- Name: load_type_substitutions(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_type_substitutions(moduleid integer) RETURNS TABLE(address bigint, "position" integer, expression_id integer, base_type_id integer, path integer[], "offset" integer)
LANGUAGE sql
AS $_$
SELECT address, "position", expression_id, base_type_id, path, "offset"
FROM bn_expression_types
WHERE module_id = $1;
$_$;
ALTER FUNCTION public.load_type_substitutions(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_type_substitutions(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_type_substitutions(moduleid integer) IS 'Loads all type susbtitutions for a single module from the database.';
--
-- Name: load_types(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_types(moduleid integer) RETURNS TABLE(id integer, name text, size integer, pointer integer, signed boolean, category type_category)
LANGUAGE sql
AS $_$
SELECT id, name, size, pointer, signed, category
FROM bn_base_types
WHERE module_id = $1;
$_$;
ALTER FUNCTION public.load_types(moduleid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_types(moduleid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_types(moduleid integer) IS 'Loads all base types for a given module id.';
--
-- Name: load_view_edges(integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION load_view_edges(viewid integer) RETURNS TABLE(id integer, source_node_id integer, target_node_id integer, comment_id integer, x1 double precision, y1 double precision, x2 double precision, y2 double precision, type edge_type, color integer, visible boolean, selected boolean, x double precision, y double precision)
LANGUAGE sql
AS $_$
SELECT edges.id, source_node_id, target_node_id,
comment_id, x1, y1, x2, y2,
edges.type, edges.color, edges.visible, edges.selected, ep.x, ep.y
FROM bn_edges AS edges
JOIN bn_nodes AS bt ON edges.target_node_id = bt.id
JOIN bn_nodes AS bs ON edges.source_node_id = bs.id
LEFT JOIN bn_edge_paths AS ep ON ep.edge_id = edges.id
WHERE bt.view_id = $1
AND bs.view_id = $1;
$_$;
ALTER FUNCTION public.load_view_edges(viewid integer) OWNER TO postgres;
--
-- Name: FUNCTION load_view_edges(viewid integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION load_view_edges(viewid integer) IS 'This function loads the edges of a view.';
--
-- Name: locate_type(integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION locate_type(moduleid integer, parentid integer, currentoffset integer) RETURNS integer
LANGUAGE plpgsql
AS $$
SELECT bt.id FROM bn_types AS bt
JOIN bn_base_types AS bbt
ON bt.base_type = bbt.id
AND bt.module_id = bbt.module_id
WHERE bt.module_id = moduleid
AND bt.parent_id = parentid
AND bt.offset <= currentoffset
AND bt.offset + bbt.size >= currentoffset
$$;
ALTER FUNCTION public.locate_type(moduleid integer, parentid integer, currentoffset integer) OWNER TO postgres;
--
-- Name: FUNCTION locate_type(moduleid integer, parentid integer, currentoffset integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION locate_type(moduleid integer, parentid integer, currentoffset integer) IS 'Locates the bn_type id of a type at a given offset.';
--
-- Name: move_type(integer, integer, integer, integer, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION move_type(moduleid integer, old_parent_id integer, new_parent_id integer, type_id integer, newoffset integer) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
oldoffset integer;
BEGIN
--
-- Determine if the parent ids are the same
--
IF old_parent_id = new_parent_id THEN
--
-- same struct move
--
SELECT offset FROM bn_types
WHERE module_id = moduleid
AND id = type_id
INTO oldoffset;
IF newoffset > oldoffset THEN
--
-- we have moved the member up.
--
ELSE
--
-- we have moved the member down.
--
END IF;
ELSE
--
-- different struct move
--
END IF;
END;
$$;
ALTER FUNCTION public.move_type(moduleid integer, old_parent_id integer, new_parent_id integer, type_id integer, newoffset integer) OWNER TO postgres;
--
-- Name: set_section_name(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION set_section_name(moduleid integer, sectionid integer, newname text) RETURNS void
LANGUAGE sql
AS $_$
UPDATE bn_sections
SET name = $3
WHERE module_id = $1
AND id = $2
$_$;
ALTER FUNCTION public.set_section_name(moduleid integer, sectionid integer, newname text) OWNER TO postgres;
--
-- Name: FUNCTION set_section_name(moduleid integer, sectionid integer, newname text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION set_section_name(moduleid integer, sectionid integer, newname text) IS 'This function creates a new entry in the section table of BinNavi and returns the id of the entry.';
--
-- Name: set_type_instance_name(integer, integer, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION set_type_instance_name(moduleid integer, typeinstanceid integer, newname text) RETURNS void
LANGUAGE sql
AS $_$
UPDATE bn_type_instances
SET name = $3
WHERE module_id = $1
AND id = $2;
$_$;
ALTER FUNCTION public.set_type_instance_name(moduleid integer, typeinstanceid integer, newname text) OWNER TO postgres;
--
-- Name: FUNCTION set_type_instance_name(moduleid integer, typeinstanceid integer, newname text); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION set_type_instance_name(moduleid integer, typeinstanceid integer, newname text) IS 'This functions sets the name of a type instance.';
--
-- Name: update_member_offsets(integer, integer[], integer, integer[], integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION update_member_offsets(module_id integer, updated_members integer[], delta integer, implicitly_updated_members integer[], implicit_delta integer) RETURNS void
LANGUAGE sql
AS $_$
WITH moved AS (
UPDATE bn_types
SET "offset" = "offset" + $3
WHERE module_id = $1
AND id = any($2)
)
UPDATE bn_types
SET "offset" = "offset" + $5
WHERE module_id = $1
AND id = any($4);
$_$;
ALTER FUNCTION public.update_member_offsets(module_id integer, updated_members integer[], delta integer, implicitly_updated_members integer[], implicit_delta integer) OWNER TO postgres;
--
-- Name: FUNCTION update_member_offsets(module_id integer, updated_members integer[], delta integer, implicitly_updated_members integer[], implicit_delta integer); Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON FUNCTION update_member_offsets(module_id integer, updated_members integer[], delta integer, implicitly_updated_members integer[], implicit_delta integer) IS 'This function adjusts the offsets of the updated_members by delta and the offsets of implicitly_updated_members by implicit_dela, respectively.';
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: bn_address_references; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_address_references (
module_id integer NOT NULL,
address bigint NOT NULL,
"position" integer NOT NULL,
expression_id integer NOT NULL,
type address_reference_type NOT NULL,
target bigint NOT NULL
);
ALTER TABLE public.bn_address_references OWNER TO postgres;
--
-- Name: TABLE bn_address_references; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_address_references IS 'This table stores all address references.';
--
-- Name: COLUMN bn_address_references.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_references.module_id IS 'The module id the address reference is associated to.';
--
-- Name: COLUMN bn_address_references.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_references.address IS 'The address where the reference is associated to.';
--
-- Name: COLUMN bn_address_references."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_references."position" IS 'The position of the operand tree to which the address reference is associated to.';
--
-- Name: COLUMN bn_address_references.expression_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_references.expression_id IS 'The id of the expression in the operand tree the address reference is associated to.';
--
-- Name: COLUMN bn_address_references.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_references.type IS 'The type of the address reference see the address_reference_type type for details.';
--
-- Name: COLUMN bn_address_references.target; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_references.target IS 'The target where address reference points to.';
--
-- Name: bn_address_spaces; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_address_spaces (
id integer NOT NULL,
project_id integer NOT NULL,
debugger_id integer,
name text NOT NULL,
description text NOT NULL,
creation_date timestamp without time zone DEFAULT now() NOT NULL,
modification_date timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.bn_address_spaces OWNER TO postgres;
--
-- Name: TABLE bn_address_spaces; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_address_spaces IS 'This table stores the information about address spaces associated to a project.';
--
-- Name: COLUMN bn_address_spaces.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.id IS 'The id of the address space which is backed by the sequence bn_address_spaces_id_seq';
--
-- Name: COLUMN bn_address_spaces.project_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.project_id IS 'The id of the project the address space is associated to.';
--
-- Name: COLUMN bn_address_spaces.debugger_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.debugger_id IS 'The id of the current debugger of the address space.';
--
-- Name: COLUMN bn_address_spaces.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.name IS 'The name of the address space.';
--
-- Name: COLUMN bn_address_spaces.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.description IS 'The description of the address space.';
--
-- Name: COLUMN bn_address_spaces.creation_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.creation_date IS 'The creation date of the address space.';
--
-- Name: COLUMN bn_address_spaces.modification_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_address_spaces.modification_date IS 'The modification date of the address space.';
--
-- Name: bn_address_spaces_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_address_spaces_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_address_spaces_id_seq OWNER TO postgres;
--
-- Name: bn_address_spaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_address_spaces_id_seq OWNED BY bn_address_spaces.id;
--
-- Name: SEQUENCE bn_address_spaces_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_address_spaces_id_seq IS 'This sequence is used by the table bn_address_spaces id field.';
--
-- Name: bn_base_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_base_types (
module_id integer NOT NULL,
id integer NOT NULL,
name text NOT NULL,
size integer NOT NULL,
pointer integer,
signed boolean,
category type_category NOT NULL
);
ALTER TABLE public.bn_base_types OWNER TO postgres;
--
-- Name: TABLE bn_base_types; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_base_types IS 'This table stores all base types for the type system used in BinNavi.';
--
-- Name: COLUMN bn_base_types.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.module_id IS 'The module id the base type is associated to.';
--
-- Name: COLUMN bn_base_types.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.id IS 'The id of the base type.';
--
-- Name: COLUMN bn_base_types.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.name IS 'The name of the base type.';
--
-- Name: COLUMN bn_base_types.size; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.size IS 'The size of the base type in bits.';
--
-- Name: COLUMN bn_base_types.pointer; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.pointer IS 'A flag that indicates if the base type is a pointer or not.';
--
-- Name: COLUMN bn_base_types.signed; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.signed IS 'A flag that indicates if the base type id signed or not.';
--
-- Name: COLUMN bn_base_types.category; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_base_types.category IS 'An enum that describes the category of this base type.';
--
-- Name: bn_base_types_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_base_types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_base_types_id_seq OWNER TO postgres;
--
-- Name: bn_base_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_base_types_id_seq OWNED BY bn_base_types.id;
--
-- Name: SEQUENCE bn_base_types_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_base_types_id_seq IS 'This sequence is used by the table bn_base_types id field.';
--
-- Name: bn_code_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_code_nodes (
module_id integer NOT NULL,
node_id integer NOT NULL,
parent_function bigint,
comment_id integer
);
ALTER TABLE public.bn_code_nodes OWNER TO postgres;
--
-- Name: TABLE bn_code_nodes; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_code_nodes IS 'This table stores all information about code nodes.';
--
-- Name: COLUMN bn_code_nodes.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_code_nodes.module_id IS 'The module id the code node belongs to.';
--
-- Name: COLUMN bn_code_nodes.node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_code_nodes.node_id IS 'The node id the code node is associated with.';
--
-- Name: COLUMN bn_code_nodes.parent_function; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_code_nodes.parent_function IS 'The parent function of the code node.';
--
-- Name: COLUMN bn_code_nodes.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_code_nodes.comment_id IS 'The id of the comment associacted with the code node.';
--
-- Name: bn_codenode_instructions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_codenode_instructions (
module_id integer NOT NULL,
node_id integer NOT NULL,
"position" integer NOT NULL,
address bigint NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_codenode_instructions OWNER TO postgres;
--
-- Name: TABLE bn_codenode_instructions; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_codenode_instructions IS 'This table stores the association between instructions and code nodes.';
--
-- Name: COLUMN bn_codenode_instructions.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_codenode_instructions.module_id IS 'The module id the association between instruction and code node belongs to.';
--
-- Name: COLUMN bn_codenode_instructions.node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_codenode_instructions.node_id IS 'The node id to which the instruction is associated.';
--
-- Name: COLUMN bn_codenode_instructions."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_codenode_instructions."position" IS 'The position within the node the instruction has.';
--
-- Name: COLUMN bn_codenode_instructions.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_codenode_instructions.address IS 'The address of the code node.';
--
-- Name: COLUMN bn_codenode_instructions.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_codenode_instructions.comment_id IS 'The id of the comment associated with the instruction in the code node.';
--
-- Name: bn_comments; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_comments (
id integer NOT NULL,
parent_id integer,
user_id integer NOT NULL,
comment_text text NOT NULL
);
ALTER TABLE public.bn_comments OWNER TO postgres;
--
-- Name: TABLE bn_comments; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_comments IS 'This table stores all information about comments';
--
-- Name: COLUMN bn_comments.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments.id IS 'The id of the comment used in all other tables as reference to this table.';
--
-- Name: COLUMN bn_comments.parent_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments.parent_id IS 'This column contains the id of the comment which is the parent of this comment.nThe idea here is that the latest generated comment will be refered to by the comment_id in the tables having a comment such that we will traverse the comments upwards to generate the complete comment stream ';
--
-- Name: COLUMN bn_comments.user_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments.user_id IS 'The owner of the comment which is the only person to be able to delete or edit this comment.nThis value does not provide any security it is just there to reduce concurrent modification problems.';
--
-- Name: COLUMN bn_comments.comment_text; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments.comment_text IS 'The actual comment.';
--
-- Name: bn_comments_audit; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_comments_audit (
operation bpchar NOT NULL,
time_stamp timestamp with time zone DEFAULT ('now'::text)::date NOT NULL,
id integer NOT NULL,
parent_id integer,
user_id integer NOT NULL,
comment_text text NOT NULL
);
ALTER TABLE public.bn_comments_audit OWNER TO postgres;
--
-- Name: TABLE bn_comments_audit; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_comments_audit IS 'This table contains all operations that have been performed on the table bn_comments.nIts purpose is that for all operations done by multiple clients on the table bn_comments there will be a log of thier activity which can help debug issues if something goes wrong.';
--
-- Name: COLUMN bn_comments_audit.operation; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments_audit.operation IS 'The operation that has been performed where: U is update, I is insert and D is delete.';
--
-- Name: COLUMN bn_comments_audit.time_stamp; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments_audit.time_stamp IS 'The time stamp of the operation such that it is possible to find out when a speciffic event has occured.';
--
-- Name: COLUMN bn_comments_audit.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments_audit.id IS 'see bn_comments.id for description.';
--
-- Name: COLUMN bn_comments_audit.parent_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments_audit.parent_id IS 'see bn_comments.parent_id for description.';
--
-- Name: COLUMN bn_comments_audit.user_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments_audit.user_id IS 'see bn_comments.user_id for description.';
--
-- Name: COLUMN bn_comments_audit.comment_text; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_comments_audit.comment_text IS 'see bn_comments.comment_text for description.';
--
-- Name: bn_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_comments_id_seq OWNER TO postgres;
--
-- Name: bn_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_comments_id_seq OWNED BY bn_comments.id;
--
-- Name: SEQUENCE bn_comments_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_comments_id_seq IS 'This sequence is used by the table bn_comments id field.';
--
-- Name: bn_data_parts; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_data_parts (
module_id integer NOT NULL,
part_id integer NOT NULL,
data bytea
);
ALTER TABLE public.bn_data_parts OWNER TO postgres;
--
-- Name: TABLE bn_data_parts; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_data_parts IS 'This table is used to store the original binary data of the module in the database.';
--
-- Name: COLUMN bn_data_parts.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_data_parts.module_id IS 'Module id of a data part.';
--
-- Name: COLUMN bn_data_parts.part_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_data_parts.part_id IS 'Id of a data part.';
--
-- Name: COLUMN bn_data_parts.data; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_data_parts.data IS 'The actual data of a data part.';
--
-- Name: bn_debuggers; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_debuggers (
id integer NOT NULL,
name text NOT NULL,
host text NOT NULL,
port integer NOT NULL
);
ALTER TABLE public.bn_debuggers OWNER TO postgres;
--
-- Name: TABLE bn_debuggers; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_debuggers IS 'This table contains all information to connect to a debug client.';
--
-- Name: COLUMN bn_debuggers.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_debuggers.id IS 'Id of the debug client.';
--
-- Name: COLUMN bn_debuggers.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_debuggers.name IS 'Name of the debug client.';
--
-- Name: COLUMN bn_debuggers.host; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_debuggers.host IS 'Host name of the debug client.';
--
-- Name: COLUMN bn_debuggers.port; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_debuggers.port IS 'Port number of the debug client.';
--
-- Name: bn_debuggers_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_debuggers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_debuggers_id_seq OWNER TO postgres;
--
-- Name: bn_debuggers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_debuggers_id_seq OWNED BY bn_debuggers.id;
--
-- Name: SEQUENCE bn_debuggers_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_debuggers_id_seq IS 'This sequence is used by the table bn_debuggers id field.';
--
-- Name: bn_edge_paths; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_edge_paths (
edge_id integer NOT NULL,
"position" integer NOT NULL,
x double precision NOT NULL,
y double precision NOT NULL
);
ALTER TABLE public.bn_edge_paths OWNER TO postgres;
--
-- Name: TABLE bn_edge_paths; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_edge_paths IS 'This table stores the layout information of edges.';
--
-- Name: COLUMN bn_edge_paths.edge_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edge_paths.edge_id IS 'The id of the edge which the path information belongs to.';
--
-- Name: COLUMN bn_edge_paths."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edge_paths."position" IS 'The position of the edge path.';
--
-- Name: COLUMN bn_edge_paths.x; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edge_paths.x IS 'The x coordinate of the edge path';
--
-- Name: COLUMN bn_edge_paths.y; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edge_paths.y IS 'The y coordinate of the edge path';
--
-- Name: bn_edges; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_edges (
id integer NOT NULL,
source_node_id integer NOT NULL,
target_node_id integer NOT NULL,
x1 double precision NOT NULL,
y1 double precision NOT NULL,
x2 double precision NOT NULL,
y2 double precision NOT NULL,
type edge_type NOT NULL,
color integer NOT NULL,
visible boolean NOT NULL,
selected boolean NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_edges OWNER TO postgres;
--
-- Name: TABLE bn_edges; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_edges IS 'This table stores information about edges.';
--
-- Name: COLUMN bn_edges.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.id IS 'The id of the edge Globally unique in a single database.';
--
-- Name: COLUMN bn_edges.source_node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.source_node_id IS 'The id of the node where the edge originates from.';
--
-- Name: COLUMN bn_edges.target_node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.target_node_id IS 'The id of the node where the edge destined to.';
--
-- Name: COLUMN bn_edges.x1; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.x1 IS 'The x1 coordinate of the edge.';
--
-- Name: COLUMN bn_edges.y1; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.y1 IS 'The y1 coordinate of the edge.';
--
-- Name: COLUMN bn_edges.x2; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.x2 IS 'The x2 coordinate of the edge.';
--
-- Name: COLUMN bn_edges.y2; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.y2 IS 'The y2 coordinate of the edge.';
--
-- Name: COLUMN bn_edges.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.type IS 'The type of the edge see edge_type for all possible cases.';
--
-- Name: COLUMN bn_edges.color; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.color IS 'The color of the edge.';
--
-- Name: COLUMN bn_edges.visible; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.visible IS 'Flags if the edge is currently visible or not.';
--
-- Name: COLUMN bn_edges.selected; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.selected IS 'Flags if the edge is currently selected or not.';
--
-- Name: COLUMN bn_edges.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_edges.comment_id IS 'The id of the last comment in the comment list associated to the edge.';
--
-- Name: bn_edges_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_edges_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_edges_id_seq OWNER TO postgres;
--
-- Name: bn_edges_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_edges_id_seq OWNED BY bn_edges.id;
--
-- Name: SEQUENCE bn_edges_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_edges_id_seq IS 'This sequence is used by the table bn_edges id field.';
--
-- Name: bn_expression_substitutions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_expression_substitutions (
module_id integer NOT NULL,
address bigint NOT NULL,
"position" integer NOT NULL,
expression_id integer NOT NULL,
replacement text NOT NULL
);
ALTER TABLE public.bn_expression_substitutions OWNER TO postgres;
--
-- Name: TABLE bn_expression_substitutions; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_expression_substitutions IS 'This table defines the expression substitutions.';
--
-- Name: COLUMN bn_expression_substitutions.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_substitutions.module_id IS 'The id of the module to which this expression substitution belongs.';
--
-- Name: COLUMN bn_expression_substitutions.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_substitutions.address IS 'The address of the expression substitution.';
--
-- Name: COLUMN bn_expression_substitutions."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_substitutions."position" IS 'The position of the expression substitution in regards to the operands.';
--
-- Name: COLUMN bn_expression_substitutions.expression_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_substitutions.expression_id IS 'The id of the expression to be substituted.';
--
-- Name: COLUMN bn_expression_substitutions.replacement; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_substitutions.replacement IS 'The text replacement for this expression substitution.';
--
-- Name: bn_expression_tree; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_expression_tree (
module_id integer NOT NULL,
id integer NOT NULL,
type integer NOT NULL,
symbol character varying(256),
immediate bigint,
"position" integer NOT NULL,
parent_id integer
);
ALTER TABLE public.bn_expression_tree OWNER TO postgres;
--
-- Name: TABLE bn_expression_tree; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_expression_tree IS 'This table defines the in BinNavi used expression trees';
--
-- Name: COLUMN bn_expression_tree.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree.module_id IS 'The id of the module tio which the expression tree belongs.';
--
-- Name: COLUMN bn_expression_tree.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree.id IS 'The id of the expression tree.';
--
-- Name: COLUMN bn_expression_tree.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree.type IS 'The type of the expression tree.';
--
-- Name: COLUMN bn_expression_tree.symbol; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree.symbol IS 'If the type is a symbol the string is saved here.';
--
-- Name: COLUMN bn_expression_tree.immediate; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree.immediate IS 'If the type is an immediate the immediate is saved here.';
--
-- Name: COLUMN bn_expression_tree."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree."position" IS 'The position of the expression tree.';
--
-- Name: COLUMN bn_expression_tree.parent_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree.parent_id IS 'If the tree has a parent tree id it is saved here.';
--
-- Name: bn_expression_tree_ids; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_expression_tree_ids (
module_id integer NOT NULL,
id integer NOT NULL
);
ALTER TABLE public.bn_expression_tree_ids OWNER TO postgres;
--
-- Name: TABLE bn_expression_tree_ids; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_expression_tree_ids IS 'This table links expression tree ids to module ids.';
--
-- Name: COLUMN bn_expression_tree_ids.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree_ids.module_id IS 'Module id.';
--
-- Name: COLUMN bn_expression_tree_ids.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree_ids.id IS 'Expression tree id.';
--
-- Name: bn_expression_tree_mapping; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_expression_tree_mapping (
module_id integer NOT NULL,
tree_id integer NOT NULL,
tree_node_id integer NOT NULL
);
ALTER TABLE public.bn_expression_tree_mapping OWNER TO postgres;
--
-- Name: TABLE bn_expression_tree_mapping; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_expression_tree_mapping IS 'This table maps a tree id of an expression tree to a tree node id of an expression tree.';
--
-- Name: COLUMN bn_expression_tree_mapping.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree_mapping.module_id IS 'The module id of the mapping.';
--
-- Name: COLUMN bn_expression_tree_mapping.tree_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree_mapping.tree_id IS 'The tree id of the mapping.';
--
-- Name: COLUMN bn_expression_tree_mapping.tree_node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_tree_mapping.tree_node_id IS 'The tree node id of the mapping.';
--
-- Name: bn_expression_type_instances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_expression_type_instances (
module_id integer NOT NULL,
address bigint NOT NULL,
"position" integer NOT NULL,
expression_id integer NOT NULL,
type_instance_id integer NOT NULL
);
ALTER TABLE public.bn_expression_type_instances OWNER TO postgres;
--
-- Name: TABLE bn_expression_type_instances; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_expression_type_instances IS 'This table stores the information about data cross references. It provides the link between a type instance and an operand tree expression in the graph.';
--
-- Name: COLUMN bn_expression_type_instances.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_type_instances.module_id IS 'The module id of the module this data xref belongs to.';
--
-- Name: COLUMN bn_expression_type_instances.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_type_instances.address IS 'The address of the instruction to which the type instance substitution belongs.';
--
-- Name: COLUMN bn_expression_type_instances."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_type_instances."position" IS 'The position of the operand within the instruction the type instance substitution belongs to.';
--
-- Name: COLUMN bn_expression_type_instances.expression_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_type_instances.expression_id IS 'The expression tree id in the operand the type instance belongs to.';
--
-- Name: COLUMN bn_expression_type_instances.type_instance_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_type_instances.type_instance_id IS 'The type instance to which this substitution points.';
--
-- Name: bn_expression_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_expression_types (
module_id integer NOT NULL,
address bigint NOT NULL,
"position" integer NOT NULL,
expression_id integer NOT NULL,
base_type_id integer NOT NULL,
path integer[],
"offset" integer
);
ALTER TABLE public.bn_expression_types OWNER TO postgres;
--
-- Name: TABLE bn_expression_types; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_expression_types IS 'This table stores the type from the type system for a specific operand.';
--
-- Name: COLUMN bn_expression_types.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types.module_id IS 'The module id the type is associated with.';
--
-- Name: COLUMN bn_expression_types.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types.address IS 'The address where the type association is located.';
--
-- Name: COLUMN bn_expression_types."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types."position" IS 'The position or the operand tree in the instruction where the type is associated to.';
--
-- Name: COLUMN bn_expression_types.expression_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types.expression_id IS 'The expression tree id the type is associated to.';
--
-- Name: COLUMN bn_expression_types.base_type_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types.base_type_id IS 'The bn_base_types type which is associated here.';
--
-- Name: COLUMN bn_expression_types.path; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types.path IS 'The path of the type substitution. Each integer here is an element from bn_types.';
--
-- Name: COLUMN bn_expression_types."offset"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_expression_types."offset" IS 'The offset of the type substitution.';
--
-- Name: bn_function_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_function_nodes (
module_id integer NOT NULL,
node_id integer NOT NULL,
function bigint NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_function_nodes OWNER TO postgres;
--
-- Name: TABLE bn_function_nodes; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_function_nodes IS 'This table holds the information about function nodes in a module.';
--
-- Name: COLUMN bn_function_nodes.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_nodes.module_id IS 'The module id of the function node.';
--
-- Name: COLUMN bn_function_nodes.node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_nodes.node_id IS 'The node id the function node is associated to.';
--
-- Name: COLUMN bn_function_nodes.function; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_nodes.function IS 'The function address the function node is associated to.';
--
-- Name: COLUMN bn_function_nodes.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_nodes.comment_id IS 'The id of the comment associated to the function node.';
--
-- Name: bn_function_views; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_function_views (
module_id integer NOT NULL,
view_id integer NOT NULL,
function bigint NOT NULL
);
ALTER TABLE public.bn_function_views OWNER TO postgres;
--
-- Name: TABLE bn_function_views; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_function_views IS 'This table holds the information about function views.';
--
-- Name: COLUMN bn_function_views.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_views.module_id IS 'The module id the function view is associated to.';
--
-- Name: COLUMN bn_function_views.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_views.view_id IS 'The view id the function view is associated to.';
--
-- Name: COLUMN bn_function_views.function; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_function_views.function IS 'The address of the function the function view is associated to.';
--
-- Name: bn_functions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_functions (
module_id integer NOT NULL,
address bigint NOT NULL,
name text,
original_name text NOT NULL,
type function_type NOT NULL,
description text,
parent_module_name text,
parent_module_id integer,
parent_module_function integer,
stack_frame integer,
comment_id integer
);
ALTER TABLE public.bn_functions OWNER TO postgres;
--
-- Name: TABLE bn_functions; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_functions IS 'This table holds the information about functions and thier relations.';
--
-- Name: COLUMN bn_functions.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.module_id IS 'The id of the module the function belongs to.';
--
-- Name: COLUMN bn_functions.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.address IS 'The address of the function.';
--
-- Name: COLUMN bn_functions.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.name IS 'The current name of the function.';
--
-- Name: COLUMN bn_functions.original_name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.original_name IS 'The original name of the function.';
--
-- Name: COLUMN bn_functions.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.type IS 'The type of the function see the function_type type for more information.';
--
-- Name: COLUMN bn_functions.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.description IS 'The description of the function.';
--
-- Name: COLUMN bn_functions.parent_module_name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.parent_module_name IS 'If the function is forwarded the module name of the function where this function is forwarded to.';
--
-- Name: COLUMN bn_functions.parent_module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.parent_module_id IS 'If the function is forwarded the module id of the function where this function is forwarded to.';
--
-- Name: COLUMN bn_functions.parent_module_function; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.parent_module_function IS 'If the function is forwarded the address of the function where this function is forwarded to.';
--
-- Name: COLUMN bn_functions.stack_frame; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.stack_frame IS 'The bn_base_types id of the stack frame that is associated with the function.';
--
-- Name: COLUMN bn_functions.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_functions.comment_id IS 'The id of the comment associated with the function.';
--
-- Name: bn_global_edge_comments; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_global_edge_comments (
src_module_id integer NOT NULL,
dst_module_id integer NOT NULL,
src_address bigint NOT NULL,
dst_address bigint NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_global_edge_comments OWNER TO postgres;
--
-- Name: TABLE bn_global_edge_comments; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_global_edge_comments IS 'This table holds all global edge comments.';
--
-- Name: COLUMN bn_global_edge_comments.src_module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_edge_comments.src_module_id IS 'The module id of the module where the edge originates from.';
--
-- Name: COLUMN bn_global_edge_comments.dst_module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_edge_comments.dst_module_id IS 'The module if of the module where the edge destined to.';
--
-- Name: COLUMN bn_global_edge_comments.src_address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_edge_comments.src_address IS 'The address of the source node of the edge.';
--
-- Name: COLUMN bn_global_edge_comments.dst_address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_edge_comments.dst_address IS 'The address of the destination node of the edge.';
--
-- Name: COLUMN bn_global_edge_comments.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_edge_comments.comment_id IS 'The id of the global comment';
--
-- Name: bn_global_node_comments; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_global_node_comments (
module_id integer NOT NULL,
address bigint NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_global_node_comments OWNER TO postgres;
--
-- Name: TABLE bn_global_node_comments; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_global_node_comments IS 'This table holds all global node comments.';
--
-- Name: COLUMN bn_global_node_comments.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_node_comments.module_id IS 'The module id of the node.';
--
-- Name: COLUMN bn_global_node_comments.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_node_comments.address IS 'The address of the node.';
--
-- Name: COLUMN bn_global_node_comments.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_global_node_comments.comment_id IS 'The id of the global node comment.';
--
-- Name: bn_group_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_group_nodes (
node_id integer NOT NULL,
collapsed boolean NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_group_nodes OWNER TO postgres;
--
-- Name: TABLE bn_group_nodes; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_group_nodes IS 'This table holds the information about group nodes.';
--
-- Name: COLUMN bn_group_nodes.node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_group_nodes.node_id IS 'The node id of the group node.';
--
-- Name: COLUMN bn_group_nodes.collapsed; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_group_nodes.collapsed IS 'Flag that indicates if the node is collapsed.';
--
-- Name: COLUMN bn_group_nodes.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_group_nodes.comment_id IS 'The id of the comment associated to the group node.';
--
-- Name: bn_instructions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_instructions (
module_id integer NOT NULL,
address bigint NOT NULL,
mnemonic character varying(32) NOT NULL,
data bytea NOT NULL,
native boolean NOT NULL,
architecture architecture_type NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_instructions OWNER TO postgres;
--
-- Name: TABLE bn_instructions; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_instructions IS 'This table holds the information about instruction.';
--
-- Name: COLUMN bn_instructions.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.module_id IS 'The module of the instruction.';
--
-- Name: COLUMN bn_instructions.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.address IS 'The address of the instruction.';
--
-- Name: COLUMN bn_instructions.mnemonic; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.mnemonic IS 'The mnemonic of the instruction.';
--
-- Name: COLUMN bn_instructions.data; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.data IS 'The raw bytes of the instruction from the binary.';
--
-- Name: COLUMN bn_instructions.native; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.native IS 'Flag that indicates if the instruction has been build within BinNavi or came from external sources.';
--
-- Name: COLUMN bn_instructions.architecture; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.architecture IS 'The architecture of the instruction for more information about known architecture types see srchitecture_type type.';
--
-- Name: COLUMN bn_instructions.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_instructions.comment_id IS 'The id of the comment associated to the instruction.';
--
-- Name: bn_module_settings; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_module_settings (
module_id integer NOT NULL,
name character varying(255) NOT NULL,
value text NOT NULL
);
ALTER TABLE public.bn_module_settings OWNER TO postgres;
--
-- Name: TABLE bn_module_settings; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_module_settings IS 'This table stores various settings for modules.';
--
-- Name: COLUMN bn_module_settings.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_settings.module_id IS 'The module id of the setting.';
--
-- Name: COLUMN bn_module_settings.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_settings.name IS 'The name of the setting.';
--
-- Name: COLUMN bn_module_settings.value; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_settings.value IS 'The value of the setting.';
--
-- Name: bn_module_traces; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_module_traces (
module_id integer NOT NULL,
trace_id integer NOT NULL
);
ALTER TABLE public.bn_module_traces OWNER TO postgres;
--
-- Name: TABLE bn_module_traces; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_module_traces IS 'This table stores the association between modules and traces.';
--
-- Name: COLUMN bn_module_traces.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_traces.module_id IS 'The module id a trace belongs to.';
--
-- Name: COLUMN bn_module_traces.trace_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_traces.trace_id IS 'The id of the trace.';
--
-- Name: bn_module_views; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_module_views (
module_id integer NOT NULL,
view_id integer NOT NULL
);
ALTER TABLE public.bn_module_views OWNER TO postgres;
--
-- Name: TABLE bn_module_views; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_module_views IS 'This table stores the association between modules and views.';
--
-- Name: COLUMN bn_module_views.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_views.module_id IS 'The module id a view belongs to.';
--
-- Name: COLUMN bn_module_views.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_module_views.view_id IS 'The id of the view.';
--
-- Name: bn_modules; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_modules (
id integer NOT NULL,
raw_module_id integer,
name text NOT NULL,
description text NOT NULL,
md5 character(32) NOT NULL,
sha1 character(40) NOT NULL,
debugger_id integer,
image_base bigint DEFAULT 0 NOT NULL,
file_base bigint DEFAULT 0 NOT NULL,
import_time timestamp without time zone DEFAULT now() NOT NULL,
modification_date timestamp without time zone DEFAULT now() NOT NULL,
data bytea,
stared boolean DEFAULT false NOT NULL,
initialization_state integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.bn_modules OWNER TO postgres;
--
-- Name: TABLE bn_modules; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_modules IS 'This table holds the information about a BinNavi module.';
--
-- Name: COLUMN bn_modules.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.id IS 'The id of the module.';
--
-- Name: COLUMN bn_modules.raw_module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.raw_module_id IS 'The id of the corresponding raw module.';
--
-- Name: COLUMN bn_modules.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.name IS 'The name of the module.';
--
-- Name: COLUMN bn_modules.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.description IS 'The description of the module.';
--
-- Name: COLUMN bn_modules.md5; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.md5 IS 'The md5 hash of the binary which corresponds to this module.';
--
-- Name: COLUMN bn_modules.sha1; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.sha1 IS 'The sha1 has of the binary which corresponds to this module.';
--
-- Name: COLUMN bn_modules.debugger_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.debugger_id IS 'The id of the debugger currently active for this module.';
--
-- Name: COLUMN bn_modules.image_base; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.image_base IS 'The image base of the executable represented by the module.';
--
-- Name: COLUMN bn_modules.file_base; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.file_base IS 'The file base of the executable represented by the module.';
--
-- Name: COLUMN bn_modules.import_time; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.import_time IS 'The time of import.';
--
-- Name: COLUMN bn_modules.modification_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.modification_date IS 'The time when the database was last updated.';
--
-- Name: COLUMN bn_modules.data; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.data IS 'The data of binary represented by the module.';
--
-- Name: COLUMN bn_modules.stared; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.stared IS 'Flags if the module has been stared.';
--
-- Name: COLUMN bn_modules.initialization_state; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_modules.initialization_state IS 'Indicates the initialization state of the module';
--
-- Name: bn_modules_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_modules_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_modules_id_seq OWNER TO postgres;
--
-- Name: bn_modules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_modules_id_seq OWNED BY bn_modules.id;
--
-- Name: SEQUENCE bn_modules_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_modules_id_seq IS 'This sequence is used in the table bn_modules id field.';
--
-- Name: bn_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_nodes (
id integer NOT NULL,
view_id integer NOT NULL,
parent_id integer,
type node_type NOT NULL,
x double precision NOT NULL,
y double precision NOT NULL,
width double precision NOT NULL,
height double precision NOT NULL,
color integer NOT NULL,
bordercolor integer DEFAULT 0 NOT NULL,
selected boolean NOT NULL,
visible boolean NOT NULL
);
ALTER TABLE public.bn_nodes OWNER TO postgres;
--
-- Name: TABLE bn_nodes; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_nodes IS 'This table holds the information representing a base node.';
--
-- Name: COLUMN bn_nodes.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.id IS 'The id of the node.';
--
-- Name: COLUMN bn_nodes.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.view_id IS 'The id of the view the node belongs to.';
--
-- Name: COLUMN bn_nodes.parent_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.parent_id IS 'The potential parent node of this node in z-axis';
--
-- Name: COLUMN bn_nodes.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.type IS 'The type of the node see node_type.';
--
-- Name: COLUMN bn_nodes.x; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.x IS 'The x coordinate of the node.';
--
-- Name: COLUMN bn_nodes.y; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.y IS 'The y coordinate of the node.';
--
-- Name: COLUMN bn_nodes.width; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.width IS 'The width of the node.';
--
-- Name: COLUMN bn_nodes.height; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.height IS 'The height of the node.';
--
-- Name: COLUMN bn_nodes.color; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.color IS 'The color of the node.';
--
-- Name: COLUMN bn_nodes.bordercolor; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.bordercolor IS 'The border color of the node.';
--
-- Name: COLUMN bn_nodes.selected; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.selected IS 'Flags if the node is selected.';
--
-- Name: COLUMN bn_nodes.visible; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes.visible IS 'Flags if the node is visible.';
--
-- Name: bn_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_nodes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_nodes_id_seq OWNER TO postgres;
--
-- Name: bn_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_nodes_id_seq OWNED BY bn_nodes.id;
--
-- Name: SEQUENCE bn_nodes_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_nodes_id_seq IS 'This sequence is used by the table bn_nodes id field.';
--
-- Name: bn_nodes_spacemodules; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_nodes_spacemodules (
module_id integer NOT NULL,
node integer NOT NULL,
address_space integer
);
ALTER TABLE public.bn_nodes_spacemodules OWNER TO postgres;
--
-- Name: TABLE bn_nodes_spacemodules; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_nodes_spacemodules IS 'This table holds the information about a nodes module association when in a project.';
--
-- Name: COLUMN bn_nodes_spacemodules.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes_spacemodules.module_id IS 'The module id the node is associated to.';
--
-- Name: COLUMN bn_nodes_spacemodules.node; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes_spacemodules.node IS 'The id of the node.';
--
-- Name: COLUMN bn_nodes_spacemodules.address_space; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_nodes_spacemodules.address_space IS 'The id of the address space.';
--
-- Name: bn_operands; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_operands (
module_id integer NOT NULL,
address bigint NOT NULL,
expression_tree_id integer NOT NULL,
"position" integer NOT NULL
);
ALTER TABLE public.bn_operands OWNER TO postgres;
--
-- Name: TABLE bn_operands; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_operands IS 'This table stores the information about operands.';
--
-- Name: COLUMN bn_operands.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_operands.module_id IS 'The module id the operand belongs to.';
--
-- Name: COLUMN bn_operands.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_operands.address IS 'The address where the operand can be found.';
--
-- Name: COLUMN bn_operands.expression_tree_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_operands.expression_tree_id IS 'The expression tree id of the operand.';
--
-- Name: COLUMN bn_operands."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_operands."position" IS 'The position of the operand.';
--
-- Name: bn_project_debuggers; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_project_debuggers (
project_id integer NOT NULL,
debugger_id integer NOT NULL
);
ALTER TABLE public.bn_project_debuggers OWNER TO postgres;
--
-- Name: TABLE bn_project_debuggers; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_project_debuggers IS 'This table stores the information about debuggers associated to projects.';
--
-- Name: COLUMN bn_project_debuggers.project_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_debuggers.project_id IS 'The id of a project.';
--
-- Name: COLUMN bn_project_debuggers.debugger_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_debuggers.debugger_id IS 'The id of a debugger.';
--
-- Name: bn_project_settings; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_project_settings (
project_id integer NOT NULL,
name character varying(255) NOT NULL,
value text NOT NULL
);
ALTER TABLE public.bn_project_settings OWNER TO postgres;
--
-- Name: TABLE bn_project_settings; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_project_settings IS 'This table stores all settings of a project.';
--
-- Name: COLUMN bn_project_settings.project_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_settings.project_id IS 'The id of the project the setting belongs to.';
--
-- Name: COLUMN bn_project_settings.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_settings.name IS 'The name of the setting.';
--
-- Name: COLUMN bn_project_settings.value; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_settings.value IS 'The value of the setting.';
--
-- Name: bn_project_traces; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_project_traces (
project_id integer NOT NULL,
trace_id integer NOT NULL
);
ALTER TABLE public.bn_project_traces OWNER TO postgres;
--
-- Name: TABLE bn_project_traces; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_project_traces IS 'This table stores the association between a project and a trace.';
--
-- Name: COLUMN bn_project_traces.project_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_traces.project_id IS 'The id of the project';
--
-- Name: COLUMN bn_project_traces.trace_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_traces.trace_id IS 'The id of the trace.';
--
-- Name: bn_project_views; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_project_views (
project_id integer NOT NULL,
view_id integer NOT NULL
);
ALTER TABLE public.bn_project_views OWNER TO postgres;
--
-- Name: TABLE bn_project_views; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_project_views IS 'This table stores the association of a view to a project.';
--
-- Name: COLUMN bn_project_views.project_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_views.project_id IS 'The id of the project.';
--
-- Name: COLUMN bn_project_views.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_project_views.view_id IS 'The id of the view.';
--
-- Name: bn_projects; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_projects (
id integer NOT NULL,
name text NOT NULL,
description text NOT NULL,
creation_date timestamp without time zone DEFAULT now() NOT NULL,
modification_date timestamp without time zone DEFAULT now() NOT NULL,
stared boolean DEFAULT false NOT NULL
);
ALTER TABLE public.bn_projects OWNER TO postgres;
--
-- Name: TABLE bn_projects; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_projects IS 'This table stores all information about a project.';
--
-- Name: COLUMN bn_projects.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_projects.id IS 'The id of the project. Backed by bn_projects_id_seq';
--
-- Name: COLUMN bn_projects.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_projects.name IS 'The name of the project.';
--
-- Name: COLUMN bn_projects.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_projects.description IS 'The description of the project.';
--
-- Name: COLUMN bn_projects.creation_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_projects.creation_date IS 'The creation date of the project.';
--
-- Name: COLUMN bn_projects.modification_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_projects.modification_date IS 'The modification date of the project.';
--
-- Name: COLUMN bn_projects.stared; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_projects.stared IS 'Flag which indicates if the project is stared.';
--
-- Name: bn_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_projects_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_projects_id_seq OWNER TO postgres;
--
-- Name: bn_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_projects_id_seq OWNED BY bn_projects.id;
--
-- Name: SEQUENCE bn_projects_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_projects_id_seq IS 'This sequence is used by the table bn_projects id field.';
--
-- Name: bn_sections; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_sections (
module_id integer NOT NULL,
id integer NOT NULL,
name text NOT NULL,
comment_id integer,
start_address bigint NOT NULL,
end_address bigint NOT NULL,
permission permission_type,
data bytea
);
ALTER TABLE public.bn_sections OWNER TO postgres;
--
-- Name: TABLE bn_sections; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_sections IS 'This table stores the information about sections known to BinNavi.';
--
-- Name: COLUMN bn_sections.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.module_id IS 'The module id the section belongs to.';
--
-- Name: COLUMN bn_sections.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.id IS 'The id of the section.';
--
-- Name: COLUMN bn_sections.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.name IS 'The name of the section.';
--
-- Name: COLUMN bn_sections.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.comment_id IS 'The id of the comment associated with this section.';
--
-- Name: COLUMN bn_sections.start_address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.start_address IS 'The start address of the section.';
--
-- Name: COLUMN bn_sections.end_address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.end_address IS 'The end address of the section.';
--
-- Name: COLUMN bn_sections.permission; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.permission IS 'The permissions of the section see bn_permission_type for more information';
--
-- Name: COLUMN bn_sections.data; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_sections.data IS 'The actual data of the section.';
--
-- Name: bn_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_sections_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_sections_id_seq OWNER TO postgres;
--
-- Name: bn_sections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_sections_id_seq OWNED BY bn_sections.id;
--
-- Name: SEQUENCE bn_sections_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_sections_id_seq IS 'This sequence is used by the table bn_sections id field.';
--
-- Name: bn_space_modules; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_space_modules (
module_id integer NOT NULL,
address_space_id integer NOT NULL,
image_base bigint NOT NULL
);
ALTER TABLE public.bn_space_modules OWNER TO postgres;
--
-- Name: TABLE bn_space_modules; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_space_modules IS 'This table stores the association between modules and address spaces.';
--
-- Name: COLUMN bn_space_modules.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_space_modules.module_id IS 'The id of the module.';
--
-- Name: COLUMN bn_space_modules.address_space_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_space_modules.address_space_id IS 'The id of the address space.';
--
-- Name: COLUMN bn_space_modules.image_base; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_space_modules.image_base IS 'The image base of the module in the context of the address space.';
--
-- Name: bn_tagged_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_tagged_nodes (
node_id integer NOT NULL,
tag_id integer NOT NULL
);
ALTER TABLE public.bn_tagged_nodes OWNER TO postgres;
--
-- Name: TABLE bn_tagged_nodes; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_tagged_nodes IS 'This table stores the association between tags and nodes.';
--
-- Name: COLUMN bn_tagged_nodes.node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tagged_nodes.node_id IS 'The node id of a tagged node.';
--
-- Name: COLUMN bn_tagged_nodes.tag_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tagged_nodes.tag_id IS 'The id of a tag.';
--
-- Name: bn_tagged_views; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_tagged_views (
view_id integer NOT NULL,
tag_id integer NOT NULL
);
ALTER TABLE public.bn_tagged_views OWNER TO postgres;
--
-- Name: TABLE bn_tagged_views; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_tagged_views IS 'This table stores the association between tags and views.';
--
-- Name: COLUMN bn_tagged_views.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tagged_views.view_id IS 'The view id of a tagged view.';
--
-- Name: COLUMN bn_tagged_views.tag_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tagged_views.tag_id IS 'The id of a tag.';
--
-- Name: bn_tags; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_tags (
id integer NOT NULL,
parent_id integer,
name text NOT NULL,
description text NOT NULL,
type tag_type NOT NULL
);
ALTER TABLE public.bn_tags OWNER TO postgres;
--
-- Name: TABLE bn_tags; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_tags IS 'This table stores all information about tags';
--
-- Name: COLUMN bn_tags.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tags.id IS 'The id of the tag.';
--
-- Name: COLUMN bn_tags.parent_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tags.parent_id IS 'The id of a potential parent tag.';
--
-- Name: COLUMN bn_tags.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tags.name IS 'The name of the tag.';
--
-- Name: COLUMN bn_tags.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tags.description IS 'The description of the tag.';
--
-- Name: COLUMN bn_tags.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_tags.type IS 'The type of the tag.';
--
-- Name: bn_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_tags_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_tags_id_seq OWNER TO postgres;
--
-- Name: bn_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_tags_id_seq OWNED BY bn_tags.id;
--
-- Name: SEQUENCE bn_tags_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_tags_id_seq IS 'This sequence is used by the table bn_tags id field.';
--
-- Name: bn_text_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_text_nodes (
node_id integer NOT NULL,
comment_id integer
);
ALTER TABLE public.bn_text_nodes OWNER TO postgres;
--
-- Name: TABLE bn_text_nodes; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_text_nodes IS 'This table stores the information about text nodes.';
--
-- Name: COLUMN bn_text_nodes.node_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_text_nodes.node_id IS 'The node id of the text node.';
--
-- Name: COLUMN bn_text_nodes.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_text_nodes.comment_id IS 'The id of the comment associated to the text node.';
--
-- Name: bn_trace_event_values; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_trace_event_values (
trace_id integer NOT NULL,
"position" integer NOT NULL,
register_name character varying(50) NOT NULL,
register_value bigint NOT NULL,
memory_value bytea NOT NULL
);
ALTER TABLE public.bn_trace_event_values OWNER TO postgres;
--
-- Name: TABLE bn_trace_event_values; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_trace_event_values IS 'This table holds the information about register contents for a trace event.';
--
-- Name: COLUMN bn_trace_event_values.trace_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_event_values.trace_id IS 'The id of the trace the event values are associated to.';
--
-- Name: COLUMN bn_trace_event_values."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_event_values."position" IS 'The position of the values within the trace.';
--
-- Name: COLUMN bn_trace_event_values.register_name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_event_values.register_name IS 'The name of the register for which we have the values.';
--
-- Name: COLUMN bn_trace_event_values.register_value; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_event_values.register_value IS 'The values of the register.';
--
-- Name: COLUMN bn_trace_event_values.memory_value; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_event_values.memory_value IS 'The value of the memory pointed to by the register when there was valid memory available.';
--
-- Name: bn_trace_events; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_trace_events (
module_id integer,
trace_id integer NOT NULL,
"position" integer NOT NULL,
tid integer NOT NULL,
address bigint NOT NULL,
type integer
);
ALTER TABLE public.bn_trace_events OWNER TO postgres;
--
-- Name: TABLE bn_trace_events; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_trace_events IS 'This table holds the information about a single trace event.';
--
-- Name: COLUMN bn_trace_events.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_events.module_id IS 'The id of the module the trace is associated to.';
--
-- Name: COLUMN bn_trace_events.trace_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_events.trace_id IS 'The id of the trace.';
--
-- Name: COLUMN bn_trace_events."position"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_events."position" IS 'The position of the trace event within the trace.';
--
-- Name: COLUMN bn_trace_events.tid; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_events.tid IS 'The thread id of the trace event.';
--
-- Name: COLUMN bn_trace_events.address; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_events.address IS 'The address of the trace event.';
--
-- Name: COLUMN bn_trace_events.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_trace_events.type IS 'The type of the trace event.';
--
-- Name: bn_traces; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_traces (
id integer NOT NULL,
view_id integer NOT NULL,
name text NOT NULL,
description text NOT NULL
);
ALTER TABLE public.bn_traces OWNER TO postgres;
--
-- Name: TABLE bn_traces; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_traces IS 'This table holds the information about traces.';
--
-- Name: COLUMN bn_traces.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_traces.id IS 'The id of the trace.';
--
-- Name: COLUMN bn_traces.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_traces.view_id IS 'The view id to which the trace is associated.';
--
-- Name: COLUMN bn_traces.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_traces.name IS 'The name of the trace.';
--
-- Name: COLUMN bn_traces.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_traces.description IS 'The description of the trace.';
--
-- Name: bn_traces_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_traces_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_traces_id_seq OWNER TO postgres;
--
-- Name: bn_traces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_traces_id_seq OWNED BY bn_traces.id;
--
-- Name: SEQUENCE bn_traces_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_traces_id_seq IS 'This sequence is used by the table bn_traces id field.';
--
-- Name: bn_type_instances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_type_instances (
module_id integer NOT NULL,
id integer NOT NULL,
name text,
comment_id integer,
type_id integer NOT NULL,
section_id integer NOT NULL,
section_offset bigint NOT NULL
);
ALTER TABLE public.bn_type_instances OWNER TO postgres;
--
-- Name: TABLE bn_type_instances; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_type_instances IS 'This table stores the information about type instances known to BinNavi.';
--
-- Name: COLUMN bn_type_instances.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.module_id IS 'The module id the type instance belongs to.';
--
-- Name: COLUMN bn_type_instances.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.id IS 'The id of the type instance.';
--
-- Name: COLUMN bn_type_instances.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.name IS 'The name of the type instance.';
--
-- Name: COLUMN bn_type_instances.comment_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.comment_id IS 'The id of the comment associated with this type instance.';
--
-- Name: COLUMN bn_type_instances.type_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.type_id IS 'The type id of the type that backs the type instance.';
--
-- Name: COLUMN bn_type_instances.section_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.section_id IS 'The id of the section where in combination with address types value can be found.';
--
-- Name: COLUMN bn_type_instances.section_offset; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_type_instances.section_offset IS 'The offset of the type instance in the section.';
--
-- Name: bn_type_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_type_instances_id_seq
START WITH 0
INCREMENT BY 1
MINVALUE 0
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_type_instances_id_seq OWNER TO postgres;
--
-- Name: bn_type_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_type_instances_id_seq OWNED BY bn_type_instances.id;
--
-- Name: SEQUENCE bn_type_instances_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_type_instances_id_seq IS 'This sequence is used by the table bn_type_instances id field.';
--
-- Name: bn_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_types (
module_id integer NOT NULL,
id integer NOT NULL,
name text NOT NULL,
base_type integer NOT NULL,
parent_id integer,
"offset" integer,
argument integer,
number_of_elements integer
);
ALTER TABLE public.bn_types OWNER TO postgres;
--
-- Name: TABLE bn_types; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_types IS 'This table holds the information about concrete types.';
--
-- Name: COLUMN bn_types.module_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.module_id IS 'The id of the module the type is associated to.';
--
-- Name: COLUMN bn_types.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.id IS 'The id of the type.';
--
-- Name: COLUMN bn_types.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.name IS 'The name of the type.';
--
-- Name: COLUMN bn_types.base_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.base_type IS 'The base type of this type.';
--
-- Name: COLUMN bn_types.parent_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.parent_id IS 'The potential parent type of this type.';
--
-- Name: COLUMN bn_types."offset"; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types."offset" IS 'Used for struct types and object types to define the offset of the member within the compound type.';
--
-- Name: COLUMN bn_types.argument; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.argument IS 'Used for function pointer types to indicate which argument this type is.';
--
-- Name: COLUMN bn_types.number_of_elements; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_types.number_of_elements IS 'Used for array types to indicate the number of elements in an array';
--
-- Name: bn_types_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_types_id_seq OWNER TO postgres;
--
-- Name: bn_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_types_id_seq OWNED BY bn_types.id;
--
-- Name: SEQUENCE bn_types_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_types_id_seq IS 'This sequence is used by the table bn_types id field.';
--
-- Name: bn_users; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_users (
user_id integer NOT NULL,
user_name text,
user_image bytea,
user_image_filename text
);
ALTER TABLE public.bn_users OWNER TO postgres;
--
-- Name: TABLE bn_users; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_users IS 'This table holds all information about users in BinNavi';
--
-- Name: COLUMN bn_users.user_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_users.user_id IS 'The id of the user.';
--
-- Name: COLUMN bn_users.user_name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_users.user_name IS 'The name of the user.';
--
-- Name: COLUMN bn_users.user_image; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_users.user_image IS 'Currently unused.';
--
-- Name: COLUMN bn_users.user_image_filename; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_users.user_image_filename IS 'Currently unused.';
--
-- Name: bn_users_user_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_users_user_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_users_user_id_seq OWNER TO postgres;
--
-- Name: bn_users_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_users_user_id_seq OWNED BY bn_users.user_id;
--
-- Name: SEQUENCE bn_users_user_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_users_user_id_seq IS 'This sequence is used by the table bn_users id field.';
--
-- Name: bn_view_settings; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_view_settings (
view_id integer NOT NULL,
name character varying(255) NOT NULL,
value text NOT NULL
);
ALTER TABLE public.bn_view_settings OWNER TO postgres;
--
-- Name: TABLE bn_view_settings; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_view_settings IS 'This table holds configuration settings for a particular view.';
--
-- Name: COLUMN bn_view_settings.view_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_view_settings.view_id IS 'The view id associated to this setting.';
--
-- Name: COLUMN bn_view_settings.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_view_settings.name IS 'The name of the setting.';
--
-- Name: COLUMN bn_view_settings.value; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_view_settings.value IS 'The value of the setting.';
--
-- Name: bn_views; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE bn_views (
id integer NOT NULL,
type view_type NOT NULL,
name text NOT NULL,
description text,
creation_date timestamp without time zone DEFAULT now() NOT NULL,
modification_date timestamp without time zone DEFAULT now() NOT NULL,
stared boolean DEFAULT false NOT NULL,
user_id integer
);
ALTER TABLE public.bn_views OWNER TO postgres;
--
-- Name: TABLE bn_views; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE bn_views IS 'This table holds the information about views.';
--
-- Name: COLUMN bn_views.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.id IS 'The id of the view.';
--
-- Name: COLUMN bn_views.type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.type IS 'The type of the view see view_type.';
--
-- Name: COLUMN bn_views.name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.name IS 'The name of the view.';
--
-- Name: COLUMN bn_views.description; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.description IS 'The description of the view.';
--
-- Name: COLUMN bn_views.creation_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.creation_date IS 'The date when the view was originally created.';
--
-- Name: COLUMN bn_views.modification_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.modification_date IS 'The date when the view was last modified.';
--
-- Name: COLUMN bn_views.stared; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.stared IS 'Flags if the view is stared.';
--
-- Name: COLUMN bn_views.user_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN bn_views.user_id IS 'Defines the owner of the view.';
--
-- Name: bn_views_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE bn_views_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bn_views_id_seq OWNER TO postgres;
--
-- Name: bn_views_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE bn_views_id_seq OWNED BY bn_views.id;
--
-- Name: SEQUENCE bn_views_id_seq; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON SEQUENCE bn_views_id_seq IS 'This sequence is used by the table bn_views id field.';
--
-- Name: ex_1_address_comments; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_address_comments (
address bigint NOT NULL,
comment text NOT NULL
);
ALTER TABLE public.ex_1_address_comments OWNER TO postgres;
--
-- Name: ex_1_address_references; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_address_references (
address bigint NOT NULL,
"position" integer,
expression_node_id integer,
destination bigint NOT NULL,
type integer DEFAULT 0 NOT NULL,
CONSTRAINT ex_1_address_references_type_check CHECK (((type >= 0) AND (type <= 8)))
);
ALTER TABLE public.ex_1_address_references OWNER TO postgres;
--
-- Name: ex_1_base_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_base_types (
id integer NOT NULL,
name text NOT NULL,
size integer NOT NULL,
pointer integer,
signed boolean,
category ex_1_type_category NOT NULL
);
ALTER TABLE public.ex_1_base_types OWNER TO postgres;
--
-- Name: ex_1_basic_block_instructions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_basic_block_instructions (
basic_block_id integer NOT NULL,
instruction bigint NOT NULL,
sequence integer NOT NULL
);
ALTER TABLE public.ex_1_basic_block_instructions OWNER TO postgres;
--
-- Name: ex_1_basic_blocks; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_basic_blocks (
id integer NOT NULL,
parent_function bigint NOT NULL,
address bigint NOT NULL
);
ALTER TABLE public.ex_1_basic_blocks OWNER TO postgres;
--
-- Name: ex_1_callgraph; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_callgraph (
id integer NOT NULL,
source bigint NOT NULL,
source_basic_block_id integer NOT NULL,
source_address bigint NOT NULL,
destination bigint NOT NULL
);
ALTER TABLE public.ex_1_callgraph OWNER TO postgres;
--
-- Name: ex_1_callgraph_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_callgraph_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_callgraph_id_seq OWNER TO postgres;
--
-- Name: ex_1_callgraph_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_callgraph_id_seq OWNED BY ex_1_callgraph.id;
--
-- Name: ex_1_control_flow_graphs; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_control_flow_graphs (
id integer NOT NULL,
parent_function bigint NOT NULL,
source integer NOT NULL,
destination integer NOT NULL,
type integer DEFAULT 0 NOT NULL,
CONSTRAINT ex_1_control_flow_graphs_type_check CHECK ((type = ANY (ARRAY[0, 1, 2, 3])))
);
ALTER TABLE public.ex_1_control_flow_graphs OWNER TO postgres;
--
-- Name: ex_1_control_flow_graphs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_control_flow_graphs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_control_flow_graphs_id_seq OWNER TO postgres;
--
-- Name: ex_1_control_flow_graphs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_control_flow_graphs_id_seq OWNED BY ex_1_control_flow_graphs.id;
--
-- Name: ex_1_expression_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_expression_nodes (
id integer NOT NULL,
type integer DEFAULT 0 NOT NULL,
symbol character varying(256),
immediate bigint,
"position" integer,
parent_id integer,
CONSTRAINT ex_1_expression_nodes_check CHECK ((id > parent_id)),
CONSTRAINT ex_1_expression_nodes_type_check CHECK (((type >= 0) AND (type <= 7)))
);
ALTER TABLE public.ex_1_expression_nodes OWNER TO postgres;
--
-- Name: ex_1_expression_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_expression_nodes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_expression_nodes_id_seq OWNER TO postgres;
--
-- Name: ex_1_expression_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_expression_nodes_id_seq OWNED BY ex_1_expression_nodes.id;
--
-- Name: ex_1_expression_substitutions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_expression_substitutions (
id integer NOT NULL,
address bigint NOT NULL,
"position" integer NOT NULL,
expression_node_id integer NOT NULL,
replacement text NOT NULL
);
ALTER TABLE public.ex_1_expression_substitutions OWNER TO postgres;
--
-- Name: ex_1_expression_substitutions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_expression_substitutions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_expression_substitutions_id_seq OWNER TO postgres;
--
-- Name: ex_1_expression_substitutions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_expression_substitutions_id_seq OWNED BY ex_1_expression_substitutions.id;
--
-- Name: ex_1_expression_tree_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_expression_tree_nodes (
expression_tree_id integer NOT NULL,
expression_node_id integer NOT NULL
);
ALTER TABLE public.ex_1_expression_tree_nodes OWNER TO postgres;
--
-- Name: ex_1_expression_trees; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_expression_trees (
id integer NOT NULL
);
ALTER TABLE public.ex_1_expression_trees OWNER TO postgres;
--
-- Name: ex_1_expression_trees_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_expression_trees_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_expression_trees_id_seq OWNER TO postgres;
--
-- Name: ex_1_expression_trees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_expression_trees_id_seq OWNED BY ex_1_expression_trees.id;
--
-- Name: ex_1_expression_type_instances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_expression_type_instances (
address bigint NOT NULL,
"position" integer NOT NULL,
expression_node_id integer NOT NULL,
type_instance_id integer NOT NULL
);
ALTER TABLE public.ex_1_expression_type_instances OWNER TO postgres;
--
-- Name: ex_1_expression_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_expression_types (
address bigint NOT NULL,
"position" integer NOT NULL,
expression_id integer NOT NULL,
type integer NOT NULL,
path integer[] NOT NULL,
"offset" integer
);
ALTER TABLE public.ex_1_expression_types OWNER TO postgres;
--
-- Name: ex_1_functions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_functions (
address bigint NOT NULL,
name text NOT NULL,
demangled_name text,
has_real_name boolean NOT NULL,
type integer DEFAULT 0 NOT NULL,
module_name text,
stack_frame integer,
CONSTRAINT ex_1_functions_type_check CHECK ((type = ANY (ARRAY[0, 1, 2, 3, 4])))
);
ALTER TABLE public.ex_1_functions OWNER TO postgres;
--
-- Name: ex_1_instructions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_instructions (
address bigint NOT NULL,
mnemonic character varying(32) NOT NULL,
data bytea NOT NULL
);
ALTER TABLE public.ex_1_instructions OWNER TO postgres;
--
-- Name: ex_1_operands; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_operands (
address bigint NOT NULL,
expression_tree_id integer NOT NULL,
"position" integer NOT NULL
);
ALTER TABLE public.ex_1_operands OWNER TO postgres;
--
-- Name: ex_1_sections; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_sections (
id integer NOT NULL,
name text NOT NULL,
start_address bigint NOT NULL,
end_address bigint NOT NULL,
permission ex_1_section_permission_type NOT NULL,
data bytea NOT NULL
);
ALTER TABLE public.ex_1_sections OWNER TO postgres;
--
-- Name: ex_1_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_sections_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_sections_id_seq OWNER TO postgres;
--
-- Name: ex_1_sections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_sections_id_seq OWNED BY ex_1_sections.id;
--
-- Name: ex_1_type_instances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_type_instances (
id integer NOT NULL,
name text NOT NULL,
section_offset bigint NOT NULL,
type_id integer NOT NULL,
section_id integer NOT NULL
);
ALTER TABLE public.ex_1_type_instances OWNER TO postgres;
--
-- Name: ex_1_type_renderers; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_type_renderers (
type_id integer NOT NULL,
renderer ex_1_type_renderers_renderer_type NOT NULL
);
ALTER TABLE public.ex_1_type_renderers OWNER TO postgres;
--
-- Name: ex_1_type_substitution_paths; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_type_substitution_paths (
id integer NOT NULL,
child_id integer,
type_id integer NOT NULL
);
ALTER TABLE public.ex_1_type_substitution_paths OWNER TO postgres;
--
-- Name: ex_1_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_1_types (
id integer NOT NULL,
name text NOT NULL,
base_type integer NOT NULL,
parent_id integer,
"offset" integer,
argument integer,
number_of_elements integer
);
ALTER TABLE public.ex_1_types OWNER TO postgres;
--
-- Name: ex_1_types_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_1_types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_1_types_id_seq OWNER TO postgres;
--
-- Name: ex_1_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_1_types_id_seq OWNED BY ex_1_types.id;
--
-- Name: ex_2_address_comments; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_address_comments (
address bigint NOT NULL,
comment text NOT NULL
);
ALTER TABLE public.ex_2_address_comments OWNER TO postgres;
--
-- Name: ex_2_address_references; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_address_references (
address bigint NOT NULL,
"position" integer,
expression_node_id integer,
destination bigint NOT NULL,
type integer DEFAULT 0 NOT NULL,
CONSTRAINT ex_2_address_references_type_check CHECK (((type >= 0) AND (type <= 8)))
);
ALTER TABLE public.ex_2_address_references OWNER TO postgres;
--
-- Name: ex_2_base_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_base_types (
id integer NOT NULL,
name text NOT NULL,
size integer NOT NULL,
pointer integer,
signed boolean,
category ex_2_type_category NOT NULL
);
ALTER TABLE public.ex_2_base_types OWNER TO postgres;
--
-- Name: ex_2_basic_block_instructions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_basic_block_instructions (
basic_block_id integer NOT NULL,
instruction bigint NOT NULL,
sequence integer NOT NULL
);
ALTER TABLE public.ex_2_basic_block_instructions OWNER TO postgres;
--
-- Name: ex_2_basic_blocks; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_basic_blocks (
id integer NOT NULL,
parent_function bigint NOT NULL,
address bigint NOT NULL
);
ALTER TABLE public.ex_2_basic_blocks OWNER TO postgres;
--
-- Name: ex_2_callgraph; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_callgraph (
id integer NOT NULL,
source bigint NOT NULL,
source_basic_block_id integer NOT NULL,
source_address bigint NOT NULL,
destination bigint NOT NULL
);
ALTER TABLE public.ex_2_callgraph OWNER TO postgres;
--
-- Name: ex_2_callgraph_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_callgraph_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_callgraph_id_seq OWNER TO postgres;
--
-- Name: ex_2_callgraph_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_callgraph_id_seq OWNED BY ex_2_callgraph.id;
--
-- Name: ex_2_control_flow_graphs; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_control_flow_graphs (
id integer NOT NULL,
parent_function bigint NOT NULL,
source integer NOT NULL,
destination integer NOT NULL,
type integer DEFAULT 0 NOT NULL,
CONSTRAINT ex_2_control_flow_graphs_type_check CHECK ((type = ANY (ARRAY[0, 1, 2, 3])))
);
ALTER TABLE public.ex_2_control_flow_graphs OWNER TO postgres;
--
-- Name: ex_2_control_flow_graphs_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_control_flow_graphs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_control_flow_graphs_id_seq OWNER TO postgres;
--
-- Name: ex_2_control_flow_graphs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_control_flow_graphs_id_seq OWNED BY ex_2_control_flow_graphs.id;
--
-- Name: ex_2_expression_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_expression_nodes (
id integer NOT NULL,
type integer DEFAULT 0 NOT NULL,
symbol character varying(256),
immediate bigint,
"position" integer,
parent_id integer,
CONSTRAINT ex_2_expression_nodes_check CHECK ((id > parent_id)),
CONSTRAINT ex_2_expression_nodes_type_check CHECK (((type >= 0) AND (type <= 7)))
);
ALTER TABLE public.ex_2_expression_nodes OWNER TO postgres;
--
-- Name: ex_2_expression_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_expression_nodes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_expression_nodes_id_seq OWNER TO postgres;
--
-- Name: ex_2_expression_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_expression_nodes_id_seq OWNED BY ex_2_expression_nodes.id;
--
-- Name: ex_2_expression_substitutions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_expression_substitutions (
id integer NOT NULL,
address bigint NOT NULL,
"position" integer NOT NULL,
expression_node_id integer NOT NULL,
replacement text NOT NULL
);
ALTER TABLE public.ex_2_expression_substitutions OWNER TO postgres;
--
-- Name: ex_2_expression_substitutions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_expression_substitutions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_expression_substitutions_id_seq OWNER TO postgres;
--
-- Name: ex_2_expression_substitutions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_expression_substitutions_id_seq OWNED BY ex_2_expression_substitutions.id;
--
-- Name: ex_2_expression_tree_nodes; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_expression_tree_nodes (
expression_tree_id integer NOT NULL,
expression_node_id integer NOT NULL
);
ALTER TABLE public.ex_2_expression_tree_nodes OWNER TO postgres;
--
-- Name: ex_2_expression_trees; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_expression_trees (
id integer NOT NULL
);
ALTER TABLE public.ex_2_expression_trees OWNER TO postgres;
--
-- Name: ex_2_expression_trees_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_expression_trees_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_expression_trees_id_seq OWNER TO postgres;
--
-- Name: ex_2_expression_trees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_expression_trees_id_seq OWNED BY ex_2_expression_trees.id;
--
-- Name: ex_2_expression_type_instances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_expression_type_instances (
address bigint NOT NULL,
"position" integer NOT NULL,
expression_node_id integer NOT NULL,
type_instance_id integer NOT NULL
);
ALTER TABLE public.ex_2_expression_type_instances OWNER TO postgres;
--
-- Name: ex_2_expression_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_expression_types (
address bigint NOT NULL,
"position" integer NOT NULL,
expression_id integer NOT NULL,
type integer NOT NULL,
path integer[] NOT NULL,
"offset" integer
);
ALTER TABLE public.ex_2_expression_types OWNER TO postgres;
--
-- Name: ex_2_functions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_functions (
address bigint NOT NULL,
name text NOT NULL,
demangled_name text,
has_real_name boolean NOT NULL,
type integer DEFAULT 0 NOT NULL,
module_name text,
stack_frame integer,
CONSTRAINT ex_2_functions_type_check CHECK ((type = ANY (ARRAY[0, 1, 2, 3, 4])))
);
ALTER TABLE public.ex_2_functions OWNER TO postgres;
--
-- Name: ex_2_instructions; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_instructions (
address bigint NOT NULL,
mnemonic character varying(32) NOT NULL,
data bytea NOT NULL
);
ALTER TABLE public.ex_2_instructions OWNER TO postgres;
--
-- Name: ex_2_operands; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_operands (
address bigint NOT NULL,
expression_tree_id integer NOT NULL,
"position" integer NOT NULL
);
ALTER TABLE public.ex_2_operands OWNER TO postgres;
--
-- Name: ex_2_sections; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_sections (
id integer NOT NULL,
name text NOT NULL,
start_address bigint NOT NULL,
end_address bigint NOT NULL,
permission ex_2_section_permission_type NOT NULL,
data bytea NOT NULL
);
ALTER TABLE public.ex_2_sections OWNER TO postgres;
--
-- Name: ex_2_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_sections_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_sections_id_seq OWNER TO postgres;
--
-- Name: ex_2_sections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_sections_id_seq OWNED BY ex_2_sections.id;
--
-- Name: ex_2_type_instances; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_type_instances (
id integer NOT NULL,
name text NOT NULL,
section_offset bigint NOT NULL,
type_id integer NOT NULL,
section_id integer NOT NULL
);
ALTER TABLE public.ex_2_type_instances OWNER TO postgres;
--
-- Name: ex_2_type_renderers; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_type_renderers (
type_id integer NOT NULL,
renderer ex_2_type_renderers_renderer_type NOT NULL
);
ALTER TABLE public.ex_2_type_renderers OWNER TO postgres;
--
-- Name: ex_2_type_substitution_paths; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_type_substitution_paths (
id integer NOT NULL,
child_id integer,
type_id integer NOT NULL
);
ALTER TABLE public.ex_2_type_substitution_paths OWNER TO postgres;
--
-- Name: ex_2_types; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE ex_2_types (
id integer NOT NULL,
name text NOT NULL,
base_type integer NOT NULL,
parent_id integer,
"offset" integer,
argument integer,
number_of_elements integer
);
ALTER TABLE public.ex_2_types OWNER TO postgres;
--
-- Name: ex_2_types_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE ex_2_types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ex_2_types_id_seq OWNER TO postgres;
--
-- Name: ex_2_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE ex_2_types_id_seq OWNED BY ex_2_types.id;
--
-- Name: modules; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE modules (
id integer NOT NULL,
name text NOT NULL,
architecture character varying(32) NOT NULL,
base_address bigint NOT NULL,
exporter character varying(256) NOT NULL,
version integer NOT NULL,
md5 character(32) NOT NULL,
sha1 character(40) NOT NULL,
comment text,
import_time timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.modules OWNER TO postgres;
--
-- Name: modules_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE modules_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.modules_id_seq OWNER TO postgres;
--
-- Name: modules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE modules_id_seq OWNED BY modules.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_address_spaces ALTER COLUMN id SET DEFAULT nextval('bn_address_spaces_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_debuggers ALTER COLUMN id SET DEFAULT nextval('bn_debuggers_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_edges ALTER COLUMN id SET DEFAULT nextval('bn_edges_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_modules ALTER COLUMN id SET DEFAULT nextval('bn_modules_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_nodes ALTER COLUMN id SET DEFAULT nextval('bn_nodes_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_projects ALTER COLUMN id SET DEFAULT nextval('bn_projects_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_sections ALTER COLUMN id SET DEFAULT nextval('bn_sections_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_tags ALTER COLUMN id SET DEFAULT nextval('bn_tags_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_traces ALTER COLUMN id SET DEFAULT nextval('bn_traces_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_type_instances ALTER COLUMN id SET DEFAULT nextval('bn_type_instances_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_types ALTER COLUMN id SET DEFAULT nextval('bn_types_id_seq'::regclass);
--
-- Name: user_id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_users ALTER COLUMN user_id SET DEFAULT nextval('bn_users_user_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY bn_views ALTER COLUMN id SET DEFAULT nextval('bn_views_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_callgraph ALTER COLUMN id SET DEFAULT nextval('ex_1_callgraph_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_control_flow_graphs ALTER COLUMN id SET DEFAULT nextval('ex_1_control_flow_graphs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_expression_nodes ALTER COLUMN id SET DEFAULT nextval('ex_1_expression_nodes_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_expression_substitutions ALTER COLUMN id SET DEFAULT nextval('ex_1_expression_substitutions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_expression_trees ALTER COLUMN id SET DEFAULT nextval('ex_1_expression_trees_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_sections ALTER COLUMN id SET DEFAULT nextval('ex_1_sections_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_1_types ALTER COLUMN id SET DEFAULT nextval('ex_1_types_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_callgraph ALTER COLUMN id SET DEFAULT nextval('ex_2_callgraph_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_control_flow_graphs ALTER COLUMN id SET DEFAULT nextval('ex_2_control_flow_graphs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_expression_nodes ALTER COLUMN id SET DEFAULT nextval('ex_2_expression_nodes_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_expression_substitutions ALTER COLUMN id SET DEFAULT nextval('ex_2_expression_substitutions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_expression_trees ALTER COLUMN id SET DEFAULT nextval('ex_2_expression_trees_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_sections ALTER COLUMN id SET DEFAULT nextval('ex_2_sections_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY ex_2_types ALTER COLUMN id SET DEFAULT nextval('ex_2_types_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY modules ALTER COLUMN id SET DEFAULT nextval('modules_id_seq'::regclass);
|
-- Name: SearchActivityOperations
-- Schema: posda_files
-- Columns: ['operation_name', 'command_line', 'input_line_format']
-- Args: ['op_contains', 'command_contains', 'input_contains']
-- Tags: ['spreadsheet_operations']
-- Description: Do a search of spreadsheet_operations
--
select
operation_name, command_line, input_line_format
from
spreadsheet_operation
where
operation_name like '%' || ? || '%' or
command_line like '%' || ? || '%' or
input_line_format like '%' || ? || '%'
|
<reponame>goldmansachs/obevo-kata
CREATE PROCEDURE SP372(OUT MYCOUNT INTEGER) SPECIFIC SP372_26892 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE360;SELECT COUNT(*)INTO MYCOUNT FROM TABLE265;SELECT COUNT(*)INTO MYCOUNT FROM TABLE432;SELECT COUNT(*)INTO MYCOUNT FROM VIEW48;SELECT COUNT(*)INTO MYCOUNT FROM VIEW70;SELECT COUNT(*)INTO MYCOUNT FROM VIEW21;END
GO
|
CREATE TABLE [dbo].[AccountTypeResourceDefinitions]
(
[Id] INT CONSTRAINT [PK_AccountTypeResourceDefinitions] PRIMARY KEY IDENTITY,
[AccountTypeId] INT NOT NULL CONSTRAINT [FK_AccountTypeResourceDefinitions__AccountTypeId] REFERENCES dbo.[AccountTypes]([Id]) ON DELETE CASCADE,
[ResourceDefinitionId] INT NOT NULL CONSTRAINT [FK_AccountTypeResourceDefinitions__ResourceDefinitionId] REFERENCES dbo.ResourceDefinitions([Id]),
-- Audit details
[SavedById] INT NOT NULL CONSTRAINT [FK_AccountTypeResourceDefinitions__SavedById] REFERENCES [dbo].[Users] ([Id]),
[ValidFrom] DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
[ValidTo] DATETIME2 GENERATED ALWAYS AS ROW END HIDDEN NOT NULL,
PERIOD FOR SYSTEM_TIME ([ValidFrom], [ValidTo])
)
WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE = dbo.[AccountTypeResourceDefinitionsHistory]));
GO
|
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
-- Support for execute_sql_and_filter_server_name_on_error()
\unset ECHO
\o /dev/null
\ir include/remote_exec.sql
\ir include/filter_exec.sql
\o
\set ECHO all
\set DN_DBNAME_1 :TEST_DBNAME _1
\set DN_DBNAME_2 :TEST_DBNAME _2
\set DN_DBNAME_3 :TEST_DBNAME _3
SELECT * FROM add_data_node('data_node_1', host => 'localhost', database => :'DN_DBNAME_1');
SELECT * FROM add_data_node('data_node_2', host => 'localhost', database => :'DN_DBNAME_2');
SELECT * FROM add_data_node('data_node_3', host => 'localhost', database => :'DN_DBNAME_3');
GRANT USAGE ON FOREIGN SERVER data_node_1, data_node_2, data_node_3 TO PUBLIC;
\des+
RESET ROLE;
CREATE FUNCTION _timescaledb_internal.invoke_distributed_commands()
RETURNS void
AS :TSL_MODULE_PATHNAME, 'ts_invoke_distributed_commands'
LANGUAGE C STRICT;
CREATE FUNCTION _timescaledb_internal.invoke_faulty_distributed_command()
RETURNS void
AS :TSL_MODULE_PATHNAME, 'ts_invoke_faulty_distributed_command'
LANGUAGE C STRICT;
SET ROLE :ROLE_1;
SELECT _timescaledb_internal.invoke_distributed_commands();
\c :DN_DBNAME_1
\dt
SELECT * FROM disttable1;
\c :DN_DBNAME_2
\dt
SELECT * FROM disttable1;
\c :DN_DBNAME_3
\dt
SELECT * FROM disttable1;
\c :TEST_DBNAME :ROLE_SUPERUSER
SET ROLE :ROLE_1;
-- Verify failed insert command gets fully rolled back
\set ON_ERROR_STOP 0
SELECT _timescaledb_internal.invoke_faulty_distributed_command();
\set ON_ERROR_STOP 1
\c :DN_DBNAME_1
SELECT * from disttable2;
\c :DN_DBNAME_2
SELECT * from disttable2;
-- Test connection session identity
\c :TEST_DBNAME :ROLE_SUPERUSER
\unset ECHO
\o /dev/null
\ir include/remote_exec.sql
\o
\set ECHO all
-- Register is_frontend_session() function and test that it returns false for
-- connections openned by test suite. This simualates behaviour expected
-- with a client connections.
CREATE OR REPLACE FUNCTION is_frontend_session()
RETURNS BOOL
AS :TSL_MODULE_PATHNAME, 'ts_test_is_frontend_session' LANGUAGE C;
\c :DN_DBNAME_1
CREATE OR REPLACE FUNCTION is_frontend_session()
RETURNS BOOL
AS :TSL_MODULE_PATHNAME, 'ts_test_is_frontend_session' LANGUAGE C;
SELECT is_frontend_session();
\c :DN_DBNAME_2
CREATE OR REPLACE FUNCTION is_frontend_session()
RETURNS BOOL
AS :TSL_MODULE_PATHNAME, 'ts_test_is_frontend_session' LANGUAGE C;
SELECT is_frontend_session();
\c :DN_DBNAME_3
CREATE OR REPLACE FUNCTION is_frontend_session()
RETURNS BOOL
AS :TSL_MODULE_PATHNAME, 'ts_test_is_frontend_session' LANGUAGE C;
SELECT is_frontend_session();
\c :TEST_DBNAME :ROLE_SUPERUSER
SET ROLE :ROLE_1;
SELECT is_frontend_session();
-- Ensure peer dist id is already set and can be set only once
\set ON_ERROR_STOP 0
SELECT * FROM test.remote_exec('{data_node_1}', $$ SELECT * FROM _timescaledb_internal.set_peer_dist_id('77348176-09da-4a80-bc78-e31bdf5e63ec'); $$);
\set ON_ERROR_STOP 1
-- Repeat is_frontend_session() test again, but this time using connections openned from frontend
-- to backend nodes. Must return true.
SELECT * FROM test.remote_exec(NULL, $$ SELECT is_frontend_session(); $$);
-- Test distributed_exec()
-- Make sure dist session is properly set
CALL distributed_exec('DO $$ BEGIN ASSERT(SELECT is_frontend_session()) = true; END; $$;');
-- Test creating and dropping a table
CALL distributed_exec('CREATE TABLE dist_test (id int)');
CALL distributed_exec('INSERT INTO dist_test values (7)');
SELECT * FROM test.remote_exec(NULL, $$ SELECT * from dist_test; $$);
CALL distributed_exec('DROP TABLE dist_test');
\set ON_ERROR_STOP 0
CALL distributed_exec('INSERT INTO dist_test VALUES (8)', '{data_node_1}');
\set ON_ERROR_STOP 1
-- Test creating and dropping a role
CREATE ROLE dist_test_role;
-- Expect this to be an error, since data nodes are created on the same instance
\set ON_ERROR_STOP 0
SELECT test.execute_sql_and_filter_data_node_name_on_error($$
CALL distributed_exec('CREATE ROLE dist_test_role');
$$);
\set ON_ERROR_STOP 1
SELECT * FROM test.remote_exec(NULL, $$ SELECT true from pg_catalog.pg_roles WHERE rolname = 'dist_test_role'; $$);
DROP ROLE DIST_TEST_ROLE;
\set ON_ERROR_STOP 0
SELECT test.execute_sql_and_filter_data_node_name_on_error($$
CALL distributed_exec('DROP ROLE dist_test_role');
$$);
\set ON_ERROR_STOP 1
-- Do not allow to run distributed_exec() on a data nodes
\c :DN_DBNAME_1
\set ON_ERROR_STOP 0
CALL distributed_exec('SELECT 1');
\set ON_ERROR_STOP 1
\c :TEST_DBNAME :ROLE_SUPERUSER
SELECT * FROM delete_data_node('data_node_1');
SELECT * FROM delete_data_node('data_node_2');
SELECT * FROM delete_data_node('data_node_3');
DROP DATABASE :DN_DBNAME_1;
DROP DATABASE :DN_DBNAME_2;
DROP DATABASE :DN_DBNAME_3;
-- Test TS execution on non-TSDB server
CREATE EXTENSION postgres_fdw;
CREATE SERVER myserver FOREIGN DATA WRAPPER postgres_fdw
OPTIONS (host 'foo', dbname 'foodb', port '5432');
\set ON_ERROR_STOP 0
SELECT * FROM test.remote_exec('{myserver}', $$ SELECT 1; $$);
\set ON_ERROR_STOP 1
DROP SERVER myserver;
DROP EXTENSION postgres_fdw;
-- Test that transactional behaviour is the default and that it can be
-- disabled.
--
-- In this case, we only execute it on one data node since we are
-- creating a database and multiple creations of the database would
-- clash when executed on the same instace.
--
-- We prefix the database names with the test file to be able to
-- parallelize the test. Not possible right now because there are
-- other databases above that prevents this.
\c :TEST_DBNAME :ROLE_SUPERUSER
SELECT * FROM add_data_node('dist_commands_1', host => 'localhost', database => :'DN_DBNAME_1');
SELECT * FROM add_data_node('dist_commands_2', host => 'localhost', database => :'DN_DBNAME_2');
GRANT USAGE ON FOREIGN SERVER dist_commands_1, dist_commands_2 TO PUBLIC;
\set ON_ERROR_STOP 0
CALL distributed_exec('CREATE DATABASE dist_commands_magic',
node_list => '{dist_commands_1}');
\set ON_ERROR_STOP 1
CALL distributed_exec('CREATE DATABASE dist_commands_magic',
node_list => '{dist_commands_1}', transactional => FALSE);
DROP DATABASE dist_commands_magic;
-- Test that distributed_exec honor the 2PC behaviour when starting a
-- transaction locally. It should also give an error if attempting to
-- execute non-transactionally inside a local transaction.
-- To test that distributed_exec honors transactions, we create a
-- table on both data nodes, and then tweak one of the tables so that
-- we get a duplicate key when updating the table on both data
-- nodes. This should then abort the transaction on all data nodes.
\c :TEST_DBNAME :ROLE_1
CALL distributed_exec($$
CREATE TABLE my_table (key INT, value TEXT, PRIMARY KEY (key));
$$);
\c :DN_DBNAME_1
INSERT INTO my_table VALUES (1, 'foo');
\c :TEST_DBNAME :ROLE_1
\set ON_ERROR_STOP 0
BEGIN;
CALL distributed_exec($$ INSERT INTO my_table VALUES (1, 'bar') $$);
COMMIT;
\set ON_ERROR_STOP 1
-- No changes should be there
SELECT * FROM test.remote_exec(NULL, $$ SELECT * FROM my_table; $$);
-- This should work.
BEGIN;
CALL distributed_exec($$ INSERT INTO my_table VALUES (2, 'bar'); $$);
COMMIT;
-- We should see changes
SELECT * FROM test.remote_exec(NULL, $$ SELECT * FROM my_table; $$);
-- This should fail since we are inside a transaction and asking for
-- transactional execution on the remote nodes. Non-transactional
-- execution should be outside transactions.
\set ON_ERROR_STOP 0
BEGIN;
CALL distributed_exec(
$$ INSERT INTO my_table VALUES (3, 'baz') $$,
transactional => FALSE
);
COMMIT;
\set ON_ERROR_STOP 1
-- We should see no changes
SELECT * FROM test.remote_exec(NULL, $$ SELECT * FROM my_table; $$);
\c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER
DROP DATABASE :DN_DBNAME_1;
DROP DATABASE :DN_DBNAME_2;
|
DROP TABLE IF EXISTS constraint_constant_number_expression;
CREATE TABLE constraint_constant_number_expression
(
id UInt64,
CONSTRAINT `c0` CHECK 1,
CONSTRAINT `c1` CHECK 1 < 2,
CONSTRAINT `c2` CHECK isNull(cast(NULL, 'Nullable(UInt8)'))
) ENGINE = TinyLog();
INSERT INTO constraint_constant_number_expression VALUES (1);
SELECT * FROM constraint_constant_number_expression;
DROP TABLE constraint_constant_number_expression;
DROP TABLE IF EXISTS constraint_constant_number_expression_non_uint8;
CREATE TABLE constraint_constant_number_expression_non_uint8
(
id UInt64,
CONSTRAINT `c0` CHECK toUInt64(1)
) ENGINE = TinyLog();
INSERT INTO constraint_constant_number_expression_non_uint8 VALUES (2); -- {serverError 1}
SELECT * FROM constraint_constant_number_expression_non_uint8;
DROP TABLE constraint_constant_number_expression_non_uint8;
DROP TABLE IF EXISTS constraint_constant_nullable_expression_that_contains_null;
CREATE TABLE constraint_constant_nullable_expression_that_contains_null
(
id UInt64,
CONSTRAINT `c0` CHECK nullIf(1 % 2, 1)
) ENGINE = TinyLog();
INSERT INTO constraint_constant_nullable_expression_that_contains_null VALUES (3); -- {serverError 469}
SELECT * FROM constraint_constant_nullable_expression_that_contains_null;
DROP TABLE constraint_constant_nullable_expression_that_contains_null;
|
create table paragraph_job (
id bigint unsigned not null auto_increment
, paragraph_id bigint unsigned not null
, submitted_at timestamp not null
, started_at timestamp null
, ended_at timestamp null
, status enum('queueing', 'running', 'succeeded', 'failed') not null
, created_at timestamp not null default current_timestamp
, updated_at timestamp not null default current_timestamp on update current_timestamp
, primary key (id)
);
alter table paragraph_job add index paragraph_job_0001 (
status
, submitted_at
);
alter table paragraph_job add index paragraph_job_0002 (
paragraph_id
, status
);
|
<gh_stars>0
DROP SCHEMA usr;
DROP SCHEMA prv;
DROP SCHEMA sys;
|
--TEST: test with tables with range partition
create table max_p_range(
col1 int,
col2 short,
col3 bigint,
col4 numeric(10, 5),
col5 float,
col6 double,
col7 monetary
)
partition by range(col1)
(partition p1 values less than (20000),
partition p2 values less than (30000),
partition p3 values less than (40000),
partition p4 values less than (50000),
partition p5 values less than (60000)
);
insert into max_p_range values(10000, 100, 10000000, 12345.06789, 111.11, 11111.130, 1000);
insert into max_p_range values(10000, 200, 20000000, 12345.06789, 111.12, 11111.129, 1000);
insert into max_p_range values(10000, 100, 30000000, 12345.16789, 111.13, 11111.128, 1000);
insert into max_p_range values(10000, 200, 40000000, 12345.06789, 111.14, 11111.127, 1000);
insert into max_p_range values(10000, 100, 50000000, 12345.16789, 111.15, 11111.126, 1000);
insert into max_p_range values(20000, 200, 70000000, 12345.06789, 111.16, 11111.125, 1000);
insert into max_p_range values(20000, 100, 80000000, 12345.06789, 111.17, 11111.124, 1000);
insert into max_p_range values(20000, 100, 10000000, 12345.26789, 111.18, 11111.123, 1000);
insert into max_p_range values(20000, 300, 20000000, 12345.06789, 111.19, 11111.122, 1000);
insert into max_p_range values(30000, 100, 30000000, 12345.06789, 111.20, 11111.121, 1000);
insert into max_p_range values(30000, 100, 40000000, 12345.16789, 111.21, 11111.120, 1000);
insert into max_p_range values(30000, 300, 50000000, 12345.06789, 111.23, 11111.119, 1000);
insert into max_p_range values(40000, 100, 10000000, 12345.06789, 111.24, 11111.118, 1000);
insert into max_p_range values(50000, 100, 20000000, 12345.06789, 111.25, 11111.117, 1000);
insert into max_p_range values(50000, 200, 30000000, 12345.06789, 111.26, 11111.116, 1000);
insert into max_p_range values(50000, 100, 40000000, 12345.56789, 111.27, 11111.115, 1000);
insert into max_p_range values(50000, 100, 50000000, 12345.06789, 111.28, 11111.114, 1000);
insert into max_p_range values(50000, 300, 60000000, 12345.56789, 111.29, 11111.113, 1000);
insert into max_p_range values(50000, 100, 70000000, 12345.06789, 111.30, 11111.112, 1000);
insert into max_p_range values(50000, 100, 80000000, 12345.56789, 111.31, 11111.111, 1000);
--TEST: select from partition
select col1, col2, col4, max(col4) over() from max_p_range__p__p1 order by 1, 2, 3, 4;
select col1, col2, col3, max(col2) over(partition by col3 order by col1) from max_p_range__p__p2 order by 1, 2, 3, 4;
select col5, col6, col7, max(col6) over(order by col7) from max_p_range__p__p3 order by 1, 2, 3, 4;
select col1, col4, col6, max(col1) over(partition by col4) from max_p_range__p__p4 order by 1, 2, 3, 4;
select col3, col5, max(col5) over(partition by col3 order by col2, col1) from max_p_range__p__p5 order by 1, 2, 3;
--TEST: OVER() clause
--TEST: int
select col1, col2, max(col1) over() from max_p_range order by 1, 2;
--TEST: short, with alias
select col2, col3, max(col2) over() maximum from max_p_range order by 1, 2;
--TEST: bigint, with where clause
select col3, col4, max(col3) over() maximum from max_p_range where col1 > 10000 order by col3, col4;
--TEST: numeric, distinct
select col4, col5, max(distinct col4) over() maximum from max_p_range order by 1, 2;
--TEST: float, all
select col5, col6, col7, max(all col5) over() maximum from max_p_range order by col5, col6, col7;
--TEST: double, all
select col6, col1, col2, col5, max(all col6) over() maximum from max_p_range where length(col3)=8 and round(col5)=111 order by 1, 2, 3, 4;
--TEST: monetary, distinct
select col7, col3, col5, max(distinct col7) over() maximum from max_p_range order by 2, 3;
--TEST: no matched rows
select col1, col2, col3, col4, col5, col6, col7, max(unique col1) over() maximum from max_p_range where trunc(col6)=111 order by 1, 2, 3, 4, 5, 6;
--TEST: syntax error
select maximum from (select *, max(col2) over() maximum from max_p_range);
select col1, col3, col5, max(col2) over maximum from max_p_range;
select col1, col3, col5, max(col3) over(1) maximum from max_p_range;
--TEST: OVER(PARTITION BY) clause
--TEST: partition by int
select col1, col2, col3, col4, col5, col6, col7, max(unique col2) over(partition by col1) maximum from max_p_range order by 1, 2, 3, 4, 5, 6;
--TEST: partition by smallint
select col1, col2, col3, col4, col5, col6, col7, max(distinct col4) over(partition by col2) maximum from max_p_range order by 2, 1, 3, 4, 5, 6;
--TEST: partition by bigint
select col1, col2, col3, col4, col5, col6, col7, max(unique col6) over(partition by col3) maximum from max_p_range order by 3, 1, 2, 4, 5, 6;
--TEST: partition by numeric
select col1, col2, col3, col4, col5, col6, col7, max(all col2) over(partition by col4) maximum from max_p_range order by 4, 1, 2, 3, 5, 6;
--TEST: partition by float
select col1, col2, col3, col4, col5, col6, col7, max(col3) over(partition by col5) maximum from max_p_range order by 5, 1, 2, 3, 4, 6;
--TEST: partition by double
select col1, col2, col3, col4, col5, col6, col7, max(all col4) over(partition by col6) maximum from max_p_range order by 6, 1, 2, 3, 4, 5;
--TEST: partition by monetary
select col1, col2, col3, col4, col5, col6, col7, max(distinct col7) over(partition by col7) maximum from max_p_range order by 1, 2, 3, 4, 5, 6;
--TEST: OVER(ORDER BY) clause
--TEST: order by 1 column name
select col1, max(col2) over(order by col1) maximum from max_p_range order by 1, 2;
--TEST: order by 2 column names
select col2, col3, max(all col4) over(order by col2, col3 asc) maximum from max_p_range order by 1, 2, 3;
--TEST: order by more than 2 column names
select col1, col2, col3, col4, col5, col6, col7, max(unique col4) over(order by col1, col2 desc, col3, col4 asc, col5, col6 desc) maximum from max_p_range order by 1, 2, 3, 4, 5, 6, 7, 8;
--TEST: order by columns not selected
select col3, max(distinct col2) over(order by col4, col6 desc, col2, col1 asc) maximum from max_p_range order by 1, 2;
--TEST: order by 1 position
select col5, max(all col2) over(order by 1) maximum from max_p_range order by 1, 2;
--TEST: order by 3 positions
select col3, col5, max(col3) over(order by 1, 2 desc, 3 asc) maximum from max_p_range order by 1, 2, 3;
--TEST: order by more than 3 positions
select col1, col2, col3, col4, col5, col6, col7, max(col7) over(order by 5, 3, 7, 2 asc, 1 desc, 6 desc, 4) maximum from max_p_range order by 1, 2, 3, 4, 5, 6, 7, 8;
--TEST: order by positions not existed
select col5, max(distinct col1) over(order by 2) maximum from max_p_range order by 1, 2;
select col1, max(all col3) over(order by 3, 4, 1 desc) maximum, col5, col7 from max_p_range order by 1, 2;
select col3, col5, max(col4) over(order by 5) maximum from max_p_range order by 1, 2;
select col3, col5, max(col6) over(order by 100) maximum from max_p_range order by 1, 2;
--TEST: order by column names and positions
select col1, col2, col3, col4, col5, col6, col7, max(col4) over(order by 1, col2 desc, 3, col4 asc, 5, col6 desc, 7) maximum from max_p_range order by 1, 2, 3, 4, 5, 6, 7, 8;
--TEST: OVER(PARTITION BY ORDER BY) clause
--TEST: partition by int
select col1, col2, col3, max(distinct col4) over(partition by col1 order by 1, 2, 3) from max_p_range order by 1, 2, 3, 4;
--TEST: partition by smallint
select col2, col4, col5, max(col5) over(partition by col2 order by col2, col4, col5 desc) from max_p_range order by 1, 2, 3, 4;
--TEST: partition by bigint
select col3, max(all col7) over(partition by col3 order by 1, 2, 3) [max], col5 from max_p_range order by 1, 2;
--TEST: partition by numeric
select col4, col1, max(unique col1) over(partition by col4 order by 1, 2 desc) maximum from max_p_range order by 1, 2, 3;
--TEST: partition by float
select col5, col6, max(unique col2) over(partition by col5 order by col5 desc, col6 asc) maximum from max_p_range order by 1, 2, 3;
--TEST: partition by double
select col6, col1, col2, col3, max(all col7) over(partition by col6 order by 5,4,3 desc,2,1) maximum from max_p_range order by 1, 2, 3, 4, 5;
--TEST: partition by monetary
select col7, col1, col2, col3, col4, col5, col6, col7, max(col4+col5+col6) over(partition by col7 order by 1 desc, col1, col2, col3 asc, 5, 6, col7 desc) maximum from max_p_range order by 1, 2, 3, 4, 5, 6, 7, 8, 9;
--TEST: syntax error
select col1, col2, max(distinct col3*col7) over(order by col1, col2 partition by col2) from max_p_range;
drop table max_p_range;
|
<gh_stars>0
-- @testpoint:opengauss关键字maxextents(非保留),作为数据库名
--关键字不带引号-成功
drop database if exists maxextents;
create database maxextents;
drop database maxextents;
--关键字带双引号-成功
drop database if exists "maxextents";
create database "maxextents";
drop database "maxextents";
--关键字带单引号-合理报错
drop database if exists 'maxextents';
create database 'maxextents';
--关键字带反引号-合理报错
drop database if exists `maxextents`;
create database `maxextents`;
|
-- @testpoint: 插入负浮点数
drop table if exists float8_02;
create table float8_02 (name float8);
insert into float8_02 values (-1212.5);
insert into float8_02 values (-99999.99999);
insert into float8_02 values (-0.000001);
select * from float8_02;
drop table float8_02;
|
<filename>weblaptop.sql
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th5 12, 2021 lúc 03:33 AM
-- Phiên bản máy phục vụ: 10.3.16-MariaDB
-- Phiên bản PHP: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Cơ sở dữ liệu: `weblaptop`
--
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2021_05_11_134531_add_column_deleted_at_table_users', 2);
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`fullname` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0395954444',
`level` tinyint(3) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `users`
--
INSERT INTO `users` (`id`, `fullname`, `password`, `address`, `email`, `phone`, `level`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'admin', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', NULL, '<EMAIL>', '<PASSWORD>', 2, NULL, NULL, NULL),
(2, 'NV01', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', '<NAME>', '<EMAIL>', '0395954444', 1, NULL, NULL, NULL),
(3, 'NV02', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', '<NAME>', '<EMAIL>', '0395954444', 1, NULL, NULL, NULL),
(4, 'NV03', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', 'N<NAME>', '<EMAIL>', '0395954444', 1, NULL, NULL, NULL),
(5, 'Admin02', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', '<NAME>', '<EMAIL>', '0395954444', 2, NULL, NULL, NULL),
(6, 'Admin03', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', '<NAME>', '<EMAIL>', '0395954444', 2, NULL, NULL, NULL),
(7, 'NV04', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', '<NAME>', '<EMAIL>', '0395954444', 1, NULL, NULL, NULL),
(8, 'NV05', '$2y$10$ooPG9s1lcwUGYv1nqeyNcO0ccYJf8hlhm5dJXy7xoamvgiczXHB7S', '<NAME>', '<EMAIL>', '0395954444', 1, NULL, NULL, NULL),
(9, 'đào văn hải2', '$2y$10$z/8hESBx.2U6tTs.SufRkePBTDKF7U3hXg/3X9bGDAF3O0dACFBXW', 'số nhà 17 ngõ 153', '<EMAIL>', '0979133244', 1, '2021-05-10 20:15:37', '2021-05-11 06:47:59', '2021-05-11 06:47:59'),
(10, 'đào văn hải', '$2y$10$G5loCZc1Vnd3aDbCSfZEvuXdbkURi9q9MilKEfjuvpz8xDjEtyc/G', 'số nhà 17 ngõ 15', '<EMAIL>', '0979133267', 2, '2021-05-11 06:48:14', '2021-05-11 06:49:12', '2021-05-11 06:49:12');
--
-- Chỉ mục cho các bảng đã đổ
--
--
-- Chỉ mục cho bảng `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Chỉ mục cho bảng `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Chỉ mục cho bảng `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT cho các bảng đã đổ
--
--
-- AUTO_INCREMENT cho bảng `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT cho bảng `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT cho bảng `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
COMMIT;
/*!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 */;
|
<reponame>manuGarciaMons/PHP
/*
Visualizar el nombre y los apellidos de los vendedores
en una misma columan y su fecha de registro y que
dia de la semana cuando se registraron
*/
SELECT CONCAT(nombre, ' ', apellidos) AS 'nombre y apellidos',
fecha, DAYNAME(fecha) FROM vendedores;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.