Oracle Testcontainers and Test Data (#4897)
* OracleEmbeddedDatabase + test data
This commit is contained in:
parent
970befad90
commit
3b9a9c6193
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
type: add
|
||||
issue: 4654
|
||||
title: "Adds an Oracle embedded database to the automated migration test scaffolding. Also adds an initialization schema
|
||||
(version 5.1.0) with test data to the automated migration tests."
|
|
@ -171,6 +171,12 @@
|
|||
<version>1.17.6</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testcontainers</groupId>
|
||||
<artifactId>oracle-xe</artifactId>
|
||||
<version>1.17.6</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
|
@ -179,6 +185,11 @@
|
|||
<groupId>com.microsoft.sqlserver</groupId>
|
||||
<artifactId>mssql-jdbc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc11</artifactId>
|
||||
<version>21.5.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testcontainers</groupId>
|
||||
<artifactId>testcontainers</artifactId>
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.apache.commons.io.FileUtils;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -41,7 +42,7 @@ public class H2EmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
|
||||
private String myUrl;
|
||||
|
||||
public H2EmbeddedDatabase(){
|
||||
public H2EmbeddedDatabase() {
|
||||
deleteDatabaseDirectoryIfExists();
|
||||
String databasePath = DATABASE_DIRECTORY + SCHEMA_NAME;
|
||||
myUrl = "jdbc:h2:" + new File(databasePath).getAbsolutePath();
|
||||
|
@ -53,6 +54,17 @@ public class H2EmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
deleteDatabaseDirectoryIfExists();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void disableConstraints() {
|
||||
getJdbcTemplate().execute("SET REFERENTIAL_INTEGRITY = FALSE");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableConstraints() {
|
||||
getJdbcTemplate().execute("SET REFERENTIAL_INTEGRITY = TRUE");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearDatabase() {
|
||||
dropTables();
|
||||
|
@ -71,18 +83,22 @@ public class H2EmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
}
|
||||
|
||||
private void dropTables() {
|
||||
List<Map<String, Object>> tableResult = getJdbcTemplate().queryForList("SELECT TABLE_NAME FROM information_schema.tables WHERE TABLE_SCHEMA = 'PUBLIC'");
|
||||
for(Map<String, Object> result : tableResult){
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> tableResult = query("SELECT TABLE_NAME FROM information_schema.tables WHERE TABLE_SCHEMA = 'PUBLIC'");
|
||||
for (Map<String, Object> result : tableResult) {
|
||||
String tableName = result.get("TABLE_NAME").toString();
|
||||
getJdbcTemplate().execute(String.format("DROP TABLE %s CASCADE", tableName));
|
||||
sql.add(String.format("DROP TABLE %s CASCADE", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private void dropSequences() {
|
||||
List<Map<String, Object>> sequenceResult = getJdbcTemplate().queryForList("SELECT * FROM information_schema.sequences WHERE SEQUENCE_SCHEMA = 'PUBLIC'");
|
||||
for(Map<String, Object> sequence : sequenceResult){
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> sequenceResult = query("SELECT * FROM information_schema.sequences WHERE SEQUENCE_SCHEMA = 'PUBLIC'");
|
||||
for (Map<String, Object> sequence : sequenceResult) {
|
||||
String sequenceName = sequence.get("SEQUENCE_NAME").toString();
|
||||
getJdbcTemplate().execute(String.format("DROP SEQUENCE %s", sequenceName));
|
||||
sql.add(String.format("DROP SEQUENCE %s", sequenceName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,71 +20,129 @@
|
|||
package ca.uhn.fhir.jpa.embedded;
|
||||
|
||||
import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
||||
import com.google.common.collect.Sets;
|
||||
import ca.uhn.fhir.util.VersionEnum;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.junit.jupiter.api.extension.AfterAllCallback;
|
||||
import org.junit.jupiter.api.extension.ExtensionContext;
|
||||
import org.junit.jupiter.params.provider.Arguments;
|
||||
import org.junit.jupiter.params.provider.ArgumentsProvider;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class HapiEmbeddedDatabasesExtension implements AfterAllCallback {
|
||||
|
||||
private final JpaEmbeddedDatabase myH2EmbeddedDatabase;
|
||||
private final JpaEmbeddedDatabase myPostgresEmbeddedDatabase;
|
||||
private final JpaEmbeddedDatabase myMsSqlEmbeddedDatabase;
|
||||
// TODO add Oracle
|
||||
public static final VersionEnum FIRST_TESTED_VERSION = VersionEnum.V5_1_0;
|
||||
|
||||
public HapiEmbeddedDatabasesExtension(){
|
||||
myH2EmbeddedDatabase = new H2EmbeddedDatabase();
|
||||
myPostgresEmbeddedDatabase = new PostgresEmbeddedDatabase();
|
||||
myMsSqlEmbeddedDatabase = new MsSqlEmbeddedDatabase();
|
||||
private static final Logger ourLog = LoggerFactory.getLogger(HapiEmbeddedDatabasesExtension.class);
|
||||
|
||||
private final Set<JpaEmbeddedDatabase> myEmbeddedDatabases = new HashSet<>();
|
||||
|
||||
public HapiEmbeddedDatabasesExtension() {
|
||||
myEmbeddedDatabases.add(new H2EmbeddedDatabase());
|
||||
myEmbeddedDatabases.add(new PostgresEmbeddedDatabase());
|
||||
myEmbeddedDatabases.add(new MsSqlEmbeddedDatabase());
|
||||
if (canUseOracle()) {
|
||||
myEmbeddedDatabases.add(new OracleEmbeddedDatabase());
|
||||
} else {
|
||||
String message = "Cannot add OracleEmbeddedDatabase. If you are using a Mac you must configure the TestContainers API to run using Colima (https://www.testcontainers.org/supported_docker_environment#using-colima)";
|
||||
ourLog.warn(message);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterAll(ExtensionContext theExtensionContext) throws Exception {
|
||||
for(JpaEmbeddedDatabase database : getAllEmbeddedDatabases()){
|
||||
for (JpaEmbeddedDatabase database : getAllEmbeddedDatabases()) {
|
||||
database.stop();
|
||||
}
|
||||
}
|
||||
|
||||
public JpaEmbeddedDatabase getEmbeddedDatabase(DriverTypeEnum theDriverType){
|
||||
switch (theDriverType) {
|
||||
case H2_EMBEDDED:
|
||||
return myH2EmbeddedDatabase;
|
||||
case POSTGRES_9_4:
|
||||
return myPostgresEmbeddedDatabase;
|
||||
case MSSQL_2012:
|
||||
return myMsSqlEmbeddedDatabase;
|
||||
default:
|
||||
throw new IllegalArgumentException("Driver type not supported: " + theDriverType);
|
||||
}
|
||||
public JpaEmbeddedDatabase getEmbeddedDatabase(DriverTypeEnum theDriverType) {
|
||||
return getAllEmbeddedDatabases()
|
||||
.stream()
|
||||
.filter(db -> theDriverType.equals(db.getDriverType()))
|
||||
.findFirst()
|
||||
.orElseThrow();
|
||||
}
|
||||
|
||||
public void clearDatabases(){
|
||||
for(JpaEmbeddedDatabase database : getAllEmbeddedDatabases()){
|
||||
|
||||
public void clearDatabases() {
|
||||
for (JpaEmbeddedDatabase database : getAllEmbeddedDatabases()) {
|
||||
database.clearDatabase();
|
||||
}
|
||||
}
|
||||
|
||||
public DataSource getDataSource(DriverTypeEnum theDriverTypeEnum){
|
||||
public DataSource getDataSource(DriverTypeEnum theDriverTypeEnum) {
|
||||
return getEmbeddedDatabase(theDriverTypeEnum).getDataSource();
|
||||
}
|
||||
|
||||
private Set<JpaEmbeddedDatabase> getAllEmbeddedDatabases(){
|
||||
return Sets.newHashSet(myH2EmbeddedDatabase, myPostgresEmbeddedDatabase, myMsSqlEmbeddedDatabase);
|
||||
private Set<JpaEmbeddedDatabase> getAllEmbeddedDatabases() {
|
||||
return myEmbeddedDatabases;
|
||||
}
|
||||
|
||||
public void initializePersistenceSchema(DriverTypeEnum theDriverType) {
|
||||
JpaEmbeddedDatabase embeddedDatabase = getEmbeddedDatabase(theDriverType);
|
||||
String fileName = String.format("migration/releases/%s/schema/%s.sql", FIRST_TESTED_VERSION, embeddedDatabase.getDriverType());
|
||||
String sql = getSqlFromResourceFile(fileName);
|
||||
embeddedDatabase.executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
public void insertPersistenceTestData(DriverTypeEnum theDriverType) {
|
||||
JpaEmbeddedDatabase embeddedDatabase = getEmbeddedDatabase(theDriverType);
|
||||
String fileName = String.format("migration/releases/%s/data/%s.sql", FIRST_TESTED_VERSION, embeddedDatabase.getDriverType());
|
||||
String sql = getSqlFromResourceFile(fileName);
|
||||
embeddedDatabase.insertTestData(sql);
|
||||
}
|
||||
|
||||
public String getSqlFromResourceFile(String theFileName) {
|
||||
try {
|
||||
ourLog.info("Loading file: {}", theFileName);
|
||||
final URL resource = this.getClass().getClassLoader().getResource(theFileName);
|
||||
return Files.readString(Paths.get(resource.toURI()));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Error loading file: " + theFileName, e);
|
||||
}
|
||||
}
|
||||
|
||||
public static class DatabaseVendorProvider implements ArgumentsProvider {
|
||||
@Override
|
||||
public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
|
||||
return Stream.of(
|
||||
Arguments.of(DriverTypeEnum.H2_EMBEDDED),
|
||||
Arguments.of(DriverTypeEnum.POSTGRES_9_4),
|
||||
Arguments.of(DriverTypeEnum.MSSQL_2012)
|
||||
);
|
||||
List<Arguments> arguments = new ArrayList<>();
|
||||
arguments.add(Arguments.of(DriverTypeEnum.H2_EMBEDDED));
|
||||
arguments.add(Arguments.of(DriverTypeEnum.POSTGRES_9_4));
|
||||
arguments.add(Arguments.of(DriverTypeEnum.MSSQL_2012));
|
||||
|
||||
if (canUseOracle()) {
|
||||
arguments.add(Arguments.of(DriverTypeEnum.ORACLE_12C));
|
||||
}
|
||||
|
||||
return arguments.stream();
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean canUseOracle() {
|
||||
if (!isMac()) {
|
||||
return true;
|
||||
}
|
||||
return isColimaConfigured();
|
||||
}
|
||||
|
||||
private static boolean isMac() {
|
||||
return SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_MAC_OSX;
|
||||
}
|
||||
|
||||
private static boolean isColimaConfigured() {
|
||||
return StringUtils.isNotBlank(System.getenv("TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE"))
|
||||
&& StringUtils.isNotBlank(System.getenv("DOCKER_HOST"))
|
||||
&& System.getenv("DOCKER_HOST").contains("colima");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,9 +21,19 @@ package ca.uhn.fhir.jpa.embedded;
|
|||
|
||||
|
||||
import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* For testing purposes.
|
||||
|
@ -34,23 +44,40 @@ import javax.sql.DataSource;
|
|||
*/
|
||||
public abstract class JpaEmbeddedDatabase {
|
||||
|
||||
private static final Logger ourLog = LoggerFactory.getLogger(JpaEmbeddedDatabase.class);
|
||||
|
||||
private DriverTypeEnum myDriverType;
|
||||
private String myUsername;
|
||||
private String myPassword;
|
||||
private String myUrl;
|
||||
private DriverTypeEnum.ConnectionProperties myConnectionProperties;
|
||||
private JdbcTemplate myJdbcTemplate;
|
||||
private Connection myConnection;
|
||||
|
||||
public abstract void stop();
|
||||
|
||||
public abstract void disableConstraints();
|
||||
|
||||
public abstract void enableConstraints();
|
||||
|
||||
public abstract void clearDatabase();
|
||||
|
||||
public void initialize(DriverTypeEnum theDriverType, String theUrl, String theUsername, String thePassword){
|
||||
public void initialize(DriverTypeEnum theDriverType, String theUrl, String theUsername, String thePassword) {
|
||||
myDriverType = theDriverType;
|
||||
myUsername = theUsername;
|
||||
myPassword = thePassword;
|
||||
myUrl = theUrl;
|
||||
myConnectionProperties = theDriverType.newConnectionProperties(theUrl, theUsername, thePassword);
|
||||
myJdbcTemplate = myConnectionProperties.newJdbcTemplate();
|
||||
try {
|
||||
myConnection = myConnectionProperties.getDataSource().getConnection();
|
||||
} catch (SQLException theE) {
|
||||
throw new RuntimeException(theE);
|
||||
}
|
||||
}
|
||||
|
||||
public DriverTypeEnum getDriverType() {
|
||||
return myDriverType;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
|
@ -69,8 +96,37 @@ public abstract class JpaEmbeddedDatabase {
|
|||
return myJdbcTemplate;
|
||||
}
|
||||
|
||||
public DataSource getDataSource(){
|
||||
public DataSource getDataSource() {
|
||||
return myConnectionProperties.getDataSource();
|
||||
}
|
||||
|
||||
public void insertTestData(String theSql) {
|
||||
disableConstraints();
|
||||
executeSqlAsBatch(theSql);
|
||||
enableConstraints();
|
||||
}
|
||||
|
||||
public void executeSqlAsBatch(String theSql) {
|
||||
List<String> statements = Arrays.stream(theSql.split(";")).collect(Collectors.toList());
|
||||
executeSqlAsBatch(statements);
|
||||
}
|
||||
|
||||
public void executeSqlAsBatch(List<String> theStatements) {
|
||||
try {
|
||||
Statement statement = myConnection.createStatement();
|
||||
for (String sql : theStatements) {
|
||||
if (!StringUtils.isBlank(sql)) {
|
||||
statement.addBatch(sql);
|
||||
ourLog.info("Added to batch: {}", sql);
|
||||
}
|
||||
}
|
||||
statement.executeBatch();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<Map<String, Object>> query(String theSql) {
|
||||
return getJdbcTemplate().queryForList(theSql);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
|||
import org.testcontainers.containers.MSSQLServerContainer;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -31,13 +32,14 @@ import java.util.Map;
|
|||
* <br/><br/>
|
||||
* Embedded database that uses a {@link ca.uhn.fhir.jpa.migrate.DriverTypeEnum#MSSQL_2012} driver
|
||||
* and a dockerized Testcontainer.
|
||||
*
|
||||
* @see <a href="https://www.testcontainers.org/modules/databases/mssqlserver/">MS SQL Server TestContainer</a>
|
||||
*/
|
||||
public class MsSqlEmbeddedDatabase extends JpaEmbeddedDatabase {
|
||||
|
||||
private final MSSQLServerContainer myContainer;
|
||||
|
||||
public MsSqlEmbeddedDatabase(){
|
||||
public MsSqlEmbeddedDatabase() {
|
||||
DockerImageName msSqlImage = DockerImageName.parse("mcr.microsoft.com/azure-sql-edge:latest").asCompatibleSubstituteFor("mcr.microsoft.com/mssql/server");
|
||||
myContainer = new MSSQLServerContainer(msSqlImage).acceptLicense();
|
||||
myContainer.start();
|
||||
|
@ -49,6 +51,24 @@ public class MsSqlEmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
myContainer.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableConstraints() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
for (String tableName : getAllTableNames()) {
|
||||
sql.add(String.format("ALTER TABLE \"%s\" NOCHECK CONSTRAINT ALL;", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableConstraints() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
for (String tableName : getAllTableNames()) {
|
||||
sql.add(String.format("ALTER TABLE \"%s\" WITH CHECK CHECK CONSTRAINT ALL;", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearDatabase() {
|
||||
dropForeignKeys();
|
||||
|
@ -57,38 +77,53 @@ public class MsSqlEmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
dropSequences();
|
||||
}
|
||||
|
||||
|
||||
private void dropForeignKeys() {
|
||||
List<Map<String, Object>> queryResults = getJdbcTemplate().queryForList("SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'FOREIGN KEY'");
|
||||
for(Map<String, Object> row : queryResults) {
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'FOREIGN KEY'");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String tableName = row.get("TABLE_NAME").toString();
|
||||
String constraintName = row.get("CONSTRAINT_NAME").toString();
|
||||
getJdbcTemplate().execute(String.format("ALTER TABLE \"%s\" DROP CONSTRAINT \"%s\"", tableName, constraintName));
|
||||
sql.add(String.format("ALTER TABLE \"%s\" DROP CONSTRAINT \"%s\"", tableName, constraintName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private void dropRemainingConstraints() {
|
||||
List<Map<String, Object>> queryResults = getJdbcTemplate().queryForList("SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS");
|
||||
for(Map<String, Object> row : queryResults){
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String tableName = row.get("TABLE_NAME").toString();
|
||||
String constraintName = row.get("CONSTRAINT_NAME").toString();
|
||||
getJdbcTemplate().execute(String.format("ALTER TABLE \"%s\" DROP CONSTRAINT \"%s\"", tableName, constraintName));
|
||||
sql.add(String.format("ALTER TABLE \"%s\" DROP CONSTRAINT \"%s\"", tableName, constraintName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private void dropTables() {
|
||||
List<Map<String, Object>> queryResults = getJdbcTemplate().queryForList("SELECT name FROM SYS.TABLES WHERE is_ms_shipped = 'false'");
|
||||
for(Map<String, Object> row : queryResults){
|
||||
String tableName = row.get("name").toString();
|
||||
getJdbcTemplate().execute(String.format("DROP TABLE \"%s\"", tableName));
|
||||
List<String> sql = new ArrayList<>();
|
||||
for (String tableName : getAllTableNames()) {
|
||||
sql.add(String.format("DROP TABLE \"%s\"", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private void dropSequences() {
|
||||
List<Map<String, Object>> queryResults = getJdbcTemplate().queryForList("SELECT name FROM SYS.SEQUENCES WHERE is_ms_shipped = 'false'");
|
||||
for(Map<String, Object> row : queryResults){
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT name FROM SYS.SEQUENCES WHERE is_ms_shipped = 'false'");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String sequenceName = row.get("name").toString();
|
||||
getJdbcTemplate().execute(String.format("DROP SEQUENCE \"%s\"", sequenceName));
|
||||
sql.add(String.format("DROP SEQUENCE \"%s\"", sequenceName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private List<String> getAllTableNames() {
|
||||
List<String> allTableNames = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT name FROM SYS.TABLES WHERE is_ms_shipped = 'false'");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String tableName = row.get("name").toString();
|
||||
allTableNames.add(tableName);
|
||||
}
|
||||
return allTableNames;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,92 @@
|
|||
package ca.uhn.fhir.jpa.embedded;
|
||||
|
||||
import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
||||
import org.testcontainers.containers.OracleContainer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* For testing purposes.
|
||||
* <br/><br/>
|
||||
* Embedded database that uses a {@link DriverTypeEnum#ORACLE_12C} driver
|
||||
* and a dockerized Testcontainer.
|
||||
*
|
||||
* @see <a href="https://www.testcontainers.org/modules/databases/oraclexe/">Oracle TestContainer</a>
|
||||
*/
|
||||
public class OracleEmbeddedDatabase extends JpaEmbeddedDatabase {
|
||||
|
||||
private final OracleContainer myContainer;
|
||||
|
||||
public OracleEmbeddedDatabase() {
|
||||
myContainer = new OracleContainer("gvenzl/oracle-xe:21-slim-faststart")
|
||||
.withPrivilegedMode(true);
|
||||
myContainer.start();
|
||||
super.initialize(DriverTypeEnum.ORACLE_12C, myContainer.getJdbcUrl(), myContainer.getUsername(), myContainer.getPassword());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
myContainer.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableConstraints() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT CONSTRAINT_NAME, TABLE_NAME FROM USER_CONSTRAINTS WHERE CONSTRAINT_TYPE != 'P'");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String tableName = row.get("TABLE_NAME").toString();
|
||||
String constraintName = row.get("CONSTRAINT_NAME").toString();
|
||||
sql.add(String.format("ALTER TABLE \"%s\" DISABLE CONSTRAINT \"%s\" \n", tableName, constraintName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableConstraints() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT CONSTRAINT_NAME, TABLE_NAME FROM USER_CONSTRAINTS WHERE CONSTRAINT_TYPE != 'P'");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String tableName = row.get("TABLE_NAME").toString();
|
||||
String constraintName = row.get("CONSTRAINT_NAME").toString();
|
||||
sql.add(String.format("ALTER TABLE \"%s\" ENABLE CONSTRAINT \"%s\" \n", tableName, constraintName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearDatabase() {
|
||||
dropTables();
|
||||
dropSequences();
|
||||
purgeRecycleBin();
|
||||
}
|
||||
|
||||
private void purgeRecycleBin() {
|
||||
getJdbcTemplate().execute("PURGE RECYCLEBIN");
|
||||
}
|
||||
|
||||
private void dropTables() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> tableResult = query(String.format("SELECT object_name FROM all_objects WHERE object_type = 'TABLE' AND owner = '%s'", getOwner()));
|
||||
for (Map<String, Object> result : tableResult) {
|
||||
String tableName = result.get("object_name").toString();
|
||||
sql.add(String.format("DROP TABLE \"%s\" CASCADE CONSTRAINTS PURGE", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private void dropSequences() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> tableResult = query(String.format("SELECT object_name FROM all_objects WHERE object_type = 'SEQUENCE' AND owner = '%s'", getOwner()));
|
||||
for (Map<String, Object> result : tableResult) {
|
||||
String sequenceName = result.get("object_name").toString();
|
||||
sql.add(String.format("DROP SEQUENCE \"%s\"", sequenceName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private String getOwner() {
|
||||
return getUsername().toUpperCase();
|
||||
}
|
||||
}
|
|
@ -23,6 +23,7 @@ import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
|||
import org.testcontainers.containers.PostgreSQLContainer;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -31,13 +32,14 @@ import java.util.Map;
|
|||
* <br/><br/>
|
||||
* Embedded database that uses a {@link ca.uhn.fhir.jpa.migrate.DriverTypeEnum#POSTGRES_9_4} driver
|
||||
* and a dockerized Testcontainer.
|
||||
*
|
||||
* @see <a href="https://www.testcontainers.org/modules/databases/postgres/">Postgres TestContainer</a>
|
||||
*/
|
||||
public class PostgresEmbeddedDatabase extends JpaEmbeddedDatabase {
|
||||
|
||||
private final PostgreSQLContainer myContainer;
|
||||
|
||||
public PostgresEmbeddedDatabase(){
|
||||
public PostgresEmbeddedDatabase() {
|
||||
myContainer = new PostgreSQLContainer(DockerImageName.parse("postgres:latest"));
|
||||
myContainer.start();
|
||||
super.initialize(DriverTypeEnum.POSTGRES_9_4, myContainer.getJdbcUrl(), myContainer.getUsername(), myContainer.getPassword());
|
||||
|
@ -48,6 +50,24 @@ public class PostgresEmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
myContainer.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disableConstraints() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
for (String tableName : getAllTableNames()) {
|
||||
sql.add(String.format("ALTER TABLE \"%s\" DISABLE TRIGGER ALL", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableConstraints() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
for (String tableName : getAllTableNames()) {
|
||||
sql.add(String.format("ALTER TABLE \"%s\" ENABLE TRIGGER ALL", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearDatabase() {
|
||||
dropTables();
|
||||
|
@ -55,18 +75,30 @@ public class PostgresEmbeddedDatabase extends JpaEmbeddedDatabase {
|
|||
}
|
||||
|
||||
private void dropTables() {
|
||||
List<Map<String, Object>> tableResult = getJdbcTemplate().queryForList("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'");
|
||||
for(Map<String, Object> result : tableResult){
|
||||
String tableName = result.get("table_name").toString();
|
||||
getJdbcTemplate().execute(String.format("DROP TABLE \"%s\" CASCADE", tableName));
|
||||
List<String> sql = new ArrayList<>();
|
||||
for (String tableName : getAllTableNames()) {
|
||||
sql.add(String.format("DROP TABLE \"%s\" CASCADE", tableName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private void dropSequences() {
|
||||
List<String> sql = new ArrayList<>();
|
||||
List<Map<String, Object>> sequenceResult = getJdbcTemplate().queryForList("SELECT sequence_name FROM information_schema.sequences WHERE sequence_schema = 'public'");
|
||||
for(Map<String, Object> sequence : sequenceResult){
|
||||
for (Map<String, Object> sequence : sequenceResult) {
|
||||
String sequenceName = sequence.get("sequence_name").toString();
|
||||
getJdbcTemplate().execute(String.format("DROP SEQUENCE \"%s\" CASCADE", sequenceName));
|
||||
sql.add(String.format("DROP SEQUENCE \"%s\" CASCADE", sequenceName));
|
||||
}
|
||||
executeSqlAsBatch(sql);
|
||||
}
|
||||
|
||||
private List<String> getAllTableNames() {
|
||||
List<String> allTableNames = new ArrayList<>();
|
||||
List<Map<String, Object>> queryResults = query("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'");
|
||||
for (Map<String, Object> row : queryResults) {
|
||||
String tableName = row.get("table_name").toString();
|
||||
allTableNames.add(tableName);
|
||||
}
|
||||
return allTableNames;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,112 @@
|
|||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', '2023-05-01 15:22:10.698149', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (364, '5.1.0.20200610.1', 'Add id generator SEQ_NPM_PACK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473104510, 'V5_1_0', '2023-05-01 15:22:10.540122', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (365, '5.1.0.20200610.2', 'Add table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 474870847, 'V5_1_0', '2023-05-01 15:22:10.5429', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (366, '5.1.0.20200610.3', 'Add IDX_PACK_ID index to table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365159328, 'V5_1_0', '2023-05-01 15:22:10.545683', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (367, '5.1.0.20200610.4', 'Add id generator SEQ_NPM_PACKVER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 700720075, 'V5_1_0', '2023-05-01 15:22:10.54841', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (368, '5.1.0.20200610.5', 'Add table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1966212459, 'V5_1_0', '2023-05-01 15:22:10.552204', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (369, '5.1.0.20200610.6', 'Add foreign key FK_NPM_PKV_PKG from column PACKAGE_PID of table NPM_PACKAGE_VER to column PID of table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 892859860, 'V5_1_0', '2023-05-01 15:22:10.55546', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (370, '5.1.0.20200610.7', 'Add foreign key FK_NPM_PKV_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1848926701, 'V5_1_0', '2023-05-01 15:22:10.558435', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (371, '5.1.0.20200610.8', 'Add IDX_PACKVER index to table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -877809247, 'V5_1_0', '2023-05-01 15:22:10.561099', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (372, '5.1.0.20200610.9', 'Add id generator SEQ_NPM_PACKVERRES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1592038879, 'V5_1_0', '2023-05-01 15:22:10.563732', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (373, '5.1.0.20200610.10', 'Add table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -284186771, 'V5_1_0', '2023-05-01 15:22:10.567316', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (374, '5.1.0.20200610.11', 'Add foreign key FK_NPM_PACKVERRES_PACKVER from column PACKVER_PID of table NPM_PACKAGE_VER_RES to column PID of table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1416719386, 'V5_1_0', '2023-05-01 15:22:10.570954', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (375, '5.1.0.20200610.12', 'Add foreign key FK_NPM_PKVR_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER_RES to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1714853796, 'V5_1_0', '2023-05-01 15:22:10.574972', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (376, '5.1.0.20200610.13', 'Add IDX_PACKVERRES_URL index to table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -338192664, 'V5_1_0', '2023-05-01 15:22:10.577761', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (377, '5.1.0.20200610.14', 'Initialize schema for Spring Batch', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1067435593, 'V5_1_0', '2023-05-01 15:22:10.63211', 51, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (378, '5.1.0.20200629.1', 'Modify column PKG_DESC on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -803818357, 'V5_1_0', '2023-05-01 15:22:10.63574', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (379, '5.1.0.20200629.2', 'Modify column DESC_UPPER on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473337765, 'V5_1_0', '2023-05-01 15:22:10.64259', 4, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (380, '5.1.0.20200706.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', '2023-05-01 15:22:10.645688', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (381, '5.1.0.20200706.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', '2023-05-01 15:22:10.648697', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (382, '5.1.0.20200706.3', 'Add IDX_CDH_LB_REF_UNIQ index to table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1736277415, 'V5_1_0', '2023-05-01 15:22:10.652629', 1, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (383, '5.1.0.20200706.4', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', '2023-05-01 15:22:10.65543', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (384, '5.1.0.20200714.1', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1482239257, 'V5_1_0', '2023-05-01 15:22:10.657829', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (385, '5.1.0.20200714.2', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', '2023-05-01 15:22:10.660545', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (386, '5.1.0.20200714.3', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', '2023-05-01 15:22:10.663494', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (387, '5.1.0.20200714.4', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', '2023-05-01 15:22:10.667511', 1, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (388, '5.1.0.20200714.5', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', '2023-05-01 15:22:10.670959', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (389, '5.1.0.20200715.1', 'Add column VERSION on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1173572574, 'V5_1_0', '2023-05-01 15:22:10.673765', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (390, '5.1.0.20200715.2', 'Add column EID_MATCH on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1845176617, 'V5_1_0', '2023-05-01 15:22:10.676555', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (391, '5.1.0.20200715.3', 'Add column NEW_PERSON on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 797807839, 'V5_1_0', '2023-05-01 15:22:10.679414', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (392, '5.1.0.20200715.4', 'Add column VECTOR on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1366439014, 'V5_1_0', '2023-05-01 15:22:10.682043', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (393, '5.1.0.20200715.5', 'Add column SCORE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365985977, 'V5_1_0', '2023-05-01 15:22:10.684511', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (394, '5.1.0.20200725.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', '2023-05-01 15:22:10.688038', 1, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (395, '5.1.0.20200725.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', '2023-05-01 15:22:10.691919', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (396, '5.1.0.20200725.3', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', '2023-05-01 15:22:10.695293', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', '2023-05-01 15:22:10.698149', 0, true);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:37.199', '2023-05-01 15:22:37.199', FALSE, '2BE97F87D5DBFE6E3CE23AEAAEAC894544A0D1535984EF967F45ADF75551A398', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.041', '2023-05-01 15:22:38.041', FALSE, '60E942A799928FFDC614A57C4EC568E451E74BFAFB4FB7598059128720A3DF8C', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:34:17.768', '2023-05-01 15:34:17.768', TRUE, '848EAEF4BB95A03AF3DB18B0AFCE12FF5A4783AC57B47EB56628C0AEF8A0E50D', 2, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1628, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', FALSE, '235856CCE7498130A2D32612EA96AA94E8AC1F044EFD8C0641C48300BFB224A6', 1, NULL, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:15:16.426', '2023-05-01 16:15:16.426', FALSE, 'A8635B9998B72935998B1108751B9EE5031171B7F30BF980AAFCD8DE93CB0754', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.624', '2023-05-01 15:22:38.624', FALSE, '10073D6ACF744382DDEB497ED958BDDEB16DE33B4B8459B38533CB8251518CD0', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', TRUE, '2023-05-01 15:39:22.913', '2023-05-01 15:39:22.913', FALSE, 'D0C0CA68B6ECD0443BF2B1C3A86AA772E6A7C6E53623083D29B894D7E9F38AD1', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1631, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', TRUE, '6835244142F7013573CB5C21E7CEB19805C0090DC279BD84D455AA3931C0F944', 1, NULL, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 17:01:12.921', '2023-05-01 17:01:12.921', TRUE, '5968F0BC163133CB85559A9DF002D6FEFF1D8C14A0A5D278D5EB078EC739E454', 1, NULL, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:11:07.727', '2023-05-01 16:11:07.727', FALSE, 'FC013BA45C54D7EE2A74CEF41E144C744812E8CB0C3F8E512EA44C035D0FED74', 1, NULL, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:03.963', '2023-05-01 15:54:03.963', FALSE, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:05.296', '2023-05-01 15:54:05.296', FALSE, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:08.82', '2023-05-01 15:26:08.82', FALSE, 'F30D68F5D00D440BD35E9CF7CCF1250234106A4B52AE016ACEE0F4291FB5AF5F', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.178', '2023-05-01 15:26:12.178', FALSE, 'EDBD79B1632719D08AA733AF7F99DE17009D1CE4605F439B4F5BDAAC98AABDD8', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.422', '2023-05-01 15:26:12.422', FALSE, 'A71FACD8BB1828ACD8718959949D5A16BE31F2E350671C5326A8E0BB9799357E', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_BINARY_STORAGE_BLOB (BLOB_ID, BLOB_DATA, CONTENT_TYPE, BLOB_HASH, PUBLISHED_DATE, RESOURCE_ID, BLOB_SIZE) VALUES ('QE7FP9VMEDPQTKOL9ENJXJEXBCIPTZKP2WOGWLMGDKJMKWXONGLLWBCUGDM2YH88ZXSG6V5PGDTSMQDMOXHEXBEFNOE0GIURJPOD', 1415364, 'APPLICATION/XML', 'D28743293C2FB67B72D06C80D055B66CCB58D70030E460450CD661AE2ED7225E', '2023-05-01 16:15:16.469', 'BINARY/2003', 36781);
|
||||
INSERT INTO HFJ_BLK_EXPORT_JOB (PID, CREATED_TIME, EXP_TIME, JOB_ID, REQUEST, EXP_SINCE, JOB_STATUS, STATUS_MESSAGE, STATUS_TIME, OPTLOCK) VALUES (1, '2023-05-01 16:31:20.175', '2023-05-01 18:31:20.175', '077DCFC3-DDC1-4C83-BD15-82867912F79D', '/$EXPORT?_OUTPUTFORMAT=APPLICATION%2FFHIR%2BNDJSON', '2023-04-30 16:31:20.171', 'COMPLETE', NULL, '2023-05-01 16:31:36.011', 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLLECTION (PID, TYPE_FILTER, RES_TYPE, OPTLOCK, JOB_PID) VALUES (131, NULL, 'PATIENT', 0, 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLFILE (PID, RES_ID, COLLECTION_PID) VALUES (13, '2018', 131);
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1, NULL, NULL, 'APPOINTMENT-DATE', 4, 'SEARCHPARAMETER');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1652, NULL, NULL, 'EMPI-PATIENT', 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1633, NULL, NULL, 'LOINC-UNIVERSAL-ORDER-SET', 1788, 'VALUESET');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1625, NULL, NULL, 'LOINC', 1780, 'CODESYSTEM');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1641, NULL, NULL, 'LOINC-PARTS-TO-PUBCHEM', 1796, 'CONCEPTMAP');
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:37.199', '2023-05-01 15:22:37.199', 'JSONC', 1402207, 1, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.041', '2023-05-01 15:22:38.041', 'JSONC', 1402208, 2, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1698, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 'JSONC', 1407184, 1628, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:34:17.768', '2023-05-01 15:34:17.768', 'JSONC', 1408666, 1800, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:15:16.426', '2023-05-01 16:15:16.426', 'JSONC', 1415365, 2003, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.624', '2023-05-01 15:22:38.624', 'JSONC', 1402210, 4, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', TRUE, '2023-05-01 15:39:22.913', '2023-05-01 15:39:22.913', 'JSONC', 1409943, 1803, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1753, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 'JSONC', 1407239, 1631, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 17:01:12.921', '2023-05-01 17:01:12.921', 'JSONC', 1415705, 2029, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:11:07.727', '2023-05-01 16:11:07.727', 'JSONC', 1414688, 1910, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:03.963', '2023-05-01 15:54:03.963', 'JSONC', 1413281, 1905, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:05.296', '2023-05-01 15:54:05.296', 'JSONC', 1413284, 1906, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.178', '2023-05-01 15:26:12.178', 'JSONC', 1407374, 1788, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:08.82', '2023-05-01 15:26:08.82', 'JSONC', 1407282, 1780, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.422', '2023-05-01 15:26:12.422', 'JSONC', 1407382, 1796, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (1, 'HAPI-EMPI', NULL, 'HTTPS://HAPIFHIR.ORG/NAMINGSYSTEM/MANAGING-EMPI-SYSTEM', 0);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (2, 'IN_MEMORY', 'IN-MEMORY', 'HTTP://HAPIFHIR.IO/FHIR/STRUCTUREDEFINITION/SUBSCRIPTION-MATCHING-STRATEGY', 0);
|
||||
INSERT INTO HFJ_HISTORY_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_VER_PID, RES_ID, RES_TYPE) VALUES (2, NULL, NULL, 1, 1803, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_IDX_CMP_STRING_UNIQ (PID, PARTITION_DATE, PARTITION_ID, IDX_STRING, RES_ID) VALUES (1, NULL, NULL, 'ENCOUNTER?SUBJECT=PATIENT%2F1628', 1631);
|
||||
INSERT INTO HFJ_PARTITION (PART_ID, PART_DESC, PART_NAME) VALUES (0, 'DEFAULT PARTITION', 'DEFAULT');
|
||||
INSERT INTO HFJ_RES_LINK (PID, PARTITION_DATE, PARTITION_ID, SRC_PATH, SRC_RESOURCE_ID, SOURCE_RESOURCE_TYPE, TARGET_RESOURCE_ID, TARGET_RESOURCE_TYPE, TARGET_RESOURCE_URL, SP_UPDATED) VALUES (700, NULL, NULL, 'RISKASSESSMENT.SUBJECT.WHERE(RESOLVE() IS PATIENT)', 2029, 'RISKASSESSMENT', 1628, 'PATIENT', NULL, '2023-05-01 17:01:12.921');
|
||||
INSERT INTO HFJ_RES_PARAM_PRESENT (PID, PARTITION_DATE, PARTITION_ID, HASH_PRESENCE, SP_PRESENT, RES_ID) VALUES (59, NULL, NULL, 258059053311458882, FALSE, 4);
|
||||
INSERT INTO HFJ_RES_REINDEX_JOB (PID, JOB_DELETED, REINDEX_COUNT, RES_TYPE, SUSPENDED_UNTIL, UPDATE_THRESHOLD_HIGH, UPDATE_THRESHOLD_LOW) VALUES (2, FALSE, NULL, NULL, NULL, '2023-05-01 17:21:20.208', NULL);
|
||||
INSERT INTO HFJ_RES_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_ID, RES_TYPE) VALUES (1, NULL, NULL, 2, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_RES_VER_PROV (RES_VER_PID, PARTITION_DATE, PARTITION_ID, REQUEST_ID, SOURCE_URI, RES_PID) VALUES (2003, NULL, NULL, 'JPQP0AGF9EULQGBF', NULL, 2003);
|
||||
INSERT INTO HFJ_SEARCH (PID, CREATED, SEARCH_DELETED, EXPIRY_OR_NULL, FAILURE_CODE, FAILURE_MESSAGE, LAST_UPDATED_HIGH, LAST_UPDATED_LOW, NUM_BLOCKED, NUM_FOUND, PREFERRED_PAGE_SIZE, RESOURCE_ID, RESOURCE_TYPE, SEARCH_PARAM_MAP, SEARCH_QUERY_STRING, SEARCH_QUERY_STRING_HASH, SEARCH_TYPE, SEARCH_STATUS, TOTAL_COUNT, SEARCH_UUID, OPTLOCK_VERSION) VALUES (52, '2023-05-01 16:52:09.149', FALSE, NULL, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, 'MEDICATIONREQUEST', NULL, '1415634', 1212873581, 1, 'FINISHED', 1, '7878637B-ECC4-4305-AA3E-DBD83ABF8B74', 1);
|
||||
INSERT INTO HFJ_SEARCH_INCLUDE (PID, SEARCH_INCLUDE, INC_RECURSE, REVINCLUDE, SEARCH_PID) VALUES (1, 'MEDICATIONREQUEST:REQUESTER', FALSE, FALSE, 52);
|
||||
INSERT INTO HFJ_SEARCH_RESULT (PID, SEARCH_ORDER, RESOURCE_PID, SEARCH_PID) VALUES (1, 0, 1730, 52);
|
||||
INSERT INTO HFJ_SPIDX_COORDS (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE) VALUES (1, NULL, NULL, FALSE, 'NEAR', 1910, 'LOCATION', '2023-05-01 16:11:07.727', -4485701151501643365, 40, 80);
|
||||
INSERT INTO HFJ_SPIDX_DATE (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE_HIGH, SP_VALUE_HIGH_DATE_ORDINAL, SP_VALUE_LOW, SP_VALUE_LOW_DATE_ORDINAL) VALUES (307, NULL, NULL, TRUE, 'DATE', 4, 'SEARCHPARAMETER', NULL, -1621943171043343906, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_NUMBER (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE) VALUES (52, NULL, NULL, FALSE, 'PROBABILITY', 2029, 'RISKASSESSMENT', '2023-05-01 17:01:12.921', -6990983917964109290, 0.00);
|
||||
INSERT INTO HFJ_SPIDX_QUANTITY (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_IDENTITY_AND_UNITS, HASH_IDENTITY_SYS_UNITS, SP_SYSTEM, SP_UNITS, SP_VALUE) VALUES (255, NULL, NULL, TRUE, 'CONTEXT-QUANTITY', 4, 'SEARCHPARAMETER', NULL, 6827792128454970868, -7371645208023277835, -6667842829396531841, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_STRING (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_EXACT, HASH_IDENTITY, HASH_NORM_PREFIX, SP_VALUE_EXACT, SP_VALUE_NORMALIZED) VALUES (1, NULL, NULL, FALSE, 'DESCRIPTION', 4, 'SEARCHPARAMETER', '2023-05-01 15:22:38.624', -2984939037050966085, -2891289766040777762, 6207609638364343311, 'APPOINTMENT DATE/TIME.', 'APPOINTMENT DATE/TIME.');
|
||||
INSERT INTO HFJ_SPIDX_TOKEN (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_SYS, HASH_SYS_AND_VALUE, HASH_VALUE, SP_SYSTEM, SP_VALUE) VALUES (3, NULL, NULL, FALSE, 'TYPE', 4, 'SEARCHPARAMETER', '2023-05-01 15:22:38.624', -505122241748101416, 4662843418098322756, 1440387303491618185, -4956097025963235395, 'HTTP://HL7.ORG/FHIR/SEARCH-PARAM-TYPE', 'DATE');
|
||||
INSERT INTO HFJ_SPIDX_URI (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_URI, SP_URI) VALUES (158, NULL, NULL, TRUE, 'URL', 4, 'SEARCHPARAMETER', NULL, -6027921678034716286, -5668077322898471643, NULL);
|
||||
INSERT INTO HFJ_SUBSCRIPTION_STATS (PID, CREATED_TIME, RES_ID) VALUES (1, '2023-05-01 15:39:23.038', 1803);
|
||||
INSERT INTO NPM_PACKAGE (PID, CUR_VERSION_ID, PACKAGE_DESC, PACKAGE_ID, UPDATED_TIME) VALUES (1, '1.0.1', NULL, 'COM.EXAMPLE.IG', '2023-05-01 15:22:37.946');
|
||||
INSERT INTO NPM_PACKAGE_VER (PID, CURRENT_VERSION, PKG_DESC, DESC_UPPER, FHIR_VERSION, FHIR_VERSION_ID, PACKAGE_ID, PACKAGE_SIZE_BYTES, SAVED_TIME, UPDATED_TIME, VERSION_ID, PACKAGE_PID, BINARY_RES_ID) VALUES (1, TRUE, NULL, NULL, 'R4', '4.0.1', 'COM.EXAMPLE.IG', 370, '2023-05-01 15:22:37.957', '2023-05-01 15:22:37.959', '1.0.1', 1, 1);
|
||||
INSERT INTO NPM_PACKAGE_VER_RES (PID, CANONICAL_URL, CANONICAL_VERSION, FILE_DIR, FHIR_VERSION, FHIR_VERSION_ID, FILE_NAME, RES_SIZE_BYTES, RES_TYPE, UPDATED_TIME, PACKVER_PID, BINARY_RES_ID) VALUES (1, NULL, NULL, 'PACKAGE', 'R4', '4.0.1', 'TESTPATIENT.JSON', 225, 'PATIENT', '2023-05-01 15:22:38.057', 1, 2);
|
||||
INSERT INTO TRM_CODESYSTEM (PID, CODE_SYSTEM_URI, CURRENT_VERSION_PID, CS_NAME, RES_ID) VALUES (1, 'HTTP://LOINC.ORG', 54, 'LOINC', 1780);
|
||||
INSERT INTO TRM_CODESYSTEM_VER (PID, CS_DISPLAY, CODESYSTEM_PID, CS_VERSION_ID, RES_ID) VALUES (54, 'LOINC', 1, NULL, 1780);
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (150, 'LL1001-8', 54, 'V2.67 PHENX05_14_30D FREQ AMTS', 1, '1415721', NULL, '2023-05-01 17:02:39.139');
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (151, 'LA13892-7', 54, 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 1, '1415722', 3, '2023-05-01 17:02:39.14');
|
||||
INSERT INTO TRM_CONCEPT_DESIG (PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, CS_VER_PID, CONCEPT_PID) VALUES (105, 'NL', '900000000000013009', 'SYNONYM', 'HTTP://SNOMED.INFO/SCT', 'SYSTOLISCHE BLOEDDRUK - EXPIRATIE', 54, 150);
|
||||
INSERT INTO TRM_CONCEPT_MAP (PID, RES_ID, SOURCE_URL, TARGET_URL, URL) VALUES (54, 1796, NULL, NULL, 'HTTP://LOINC.ORG/CM/LOINC-PARTS-TO-PUBCHEM');
|
||||
INSERT INTO TRM_CONCEPT_MAP_GROUP (PID, CONCEPT_MAP_URL, SOURCE_URL, SOURCE_VS, SOURCE_VERSION, TARGET_URL, TARGET_VS, TARGET_VERSION, CONCEPT_MAP_PID) VALUES (54, NULL, 'HTTP://LOINC.ORG', NULL, NULL, 'HTTP://PUBCHEM.NCBI.NLM.NIH.GOV', NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELEMENT (PID, SOURCE_CODE, CONCEPT_MAP_URL, SOURCE_DISPLAY, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GROUP_PID) VALUES (60, 'LP15842-5', NULL, 'PYRIDOXINE', NULL, NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELM_TGT (PID, TARGET_CODE, CONCEPT_MAP_URL, TARGET_DISPLAY, TARGET_EQUIVALENCE, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GRP_ELM_PID) VALUES (60, '1054', NULL, 'PYRIDOXINE', 'EQUAL', NULL, NULL, NULL, 60);
|
||||
INSERT INTO TRM_CONCEPT_PC_LINK (PID, CHILD_PID, CODESYSTEM_PID, PARENT_PID, REL_TYPE) VALUES (54, 150, 54, 151, 0);
|
||||
INSERT INTO TRM_CONCEPT_PROPERTY (PID, PROP_CODESYSTEM, PROP_DISPLAY, PROP_KEY, PROP_TYPE, PROP_VAL, PROP_VAL_LOB, CS_VER_PID, CONCEPT_PID) VALUES (152, NULL, NULL, 'CLASSTYPE', 0, '2', NULL, 54, 150);
|
||||
INSERT INTO TRM_VALUESET (PID, EXPANSION_STATUS, VSNAME, RES_ID, TOTAL_CONCEPT_DESIGNATIONS, TOTAL_CONCEPTS, URL) VALUES (59, 'EXPANDED', 'LOINC UNIVERSAL ORDER SET', 1788, 0, 0, 'HTTP://LOINC.ORG/VS/LOINC-UNIVERSAL-ORDER-SET');
|
||||
INSERT INTO TRM_VALUESET_CONCEPT (PID, CODEVAL, DISPLAY, VALUESET_ORDER, SYSTEM_URL, VALUESET_PID) VALUES (176, 'LA13892-7', 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 0, 'HTTP://LOINC.ORG', 59);
|
||||
INSERT INTO TRM_VALUESET_C_DESIGNATION (PID, VALUESET_CONCEPT_PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, VALUESET_PID) VALUES (4, 176, NULL, NULL, NULL, NULL, 'NM THYROID STUDY REPORT', 59);
|
|
@ -0,0 +1,112 @@
|
|||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', '2023-05-01 15:22:10.698149', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (364, '5.1.0.20200610.1', 'Add id generator SEQ_NPM_PACK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473104510, 'V5_1_0', '2023-05-01 15:22:10.540122', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (365, '5.1.0.20200610.2', 'Add table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 474870847, 'V5_1_0', '2023-05-01 15:22:10.5429', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (366, '5.1.0.20200610.3', 'Add IDX_PACK_ID index to table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365159328, 'V5_1_0', '2023-05-01 15:22:10.545683', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (367, '5.1.0.20200610.4', 'Add id generator SEQ_NPM_PACKVER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 700720075, 'V5_1_0', '2023-05-01 15:22:10.54841', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (368, '5.1.0.20200610.5', 'Add table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1966212459, 'V5_1_0', '2023-05-01 15:22:10.552204', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (369, '5.1.0.20200610.6', 'Add foreign key FK_NPM_PKV_PKG from column PACKAGE_PID of table NPM_PACKAGE_VER to column PID of table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 892859860, 'V5_1_0', '2023-05-01 15:22:10.55546', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (370, '5.1.0.20200610.7', 'Add foreign key FK_NPM_PKV_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1848926701, 'V5_1_0', '2023-05-01 15:22:10.558435', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (371, '5.1.0.20200610.8', 'Add IDX_PACKVER index to table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -877809247, 'V5_1_0', '2023-05-01 15:22:10.561099', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (372, '5.1.0.20200610.9', 'Add id generator SEQ_NPM_PACKVERRES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1592038879, 'V5_1_0', '2023-05-01 15:22:10.563732', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (373, '5.1.0.20200610.10', 'Add table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -284186771, 'V5_1_0', '2023-05-01 15:22:10.567316', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (374, '5.1.0.20200610.11', 'Add foreign key FK_NPM_PACKVERRES_PACKVER from column PACKVER_PID of table NPM_PACKAGE_VER_RES to column PID of table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1416719386, 'V5_1_0', '2023-05-01 15:22:10.570954', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (375, '5.1.0.20200610.12', 'Add foreign key FK_NPM_PKVR_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER_RES to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1714853796, 'V5_1_0', '2023-05-01 15:22:10.574972', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (376, '5.1.0.20200610.13', 'Add IDX_PACKVERRES_URL index to table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -338192664, 'V5_1_0', '2023-05-01 15:22:10.577761', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (377, '5.1.0.20200610.14', 'Initialize schema for Spring Batch', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1067435593, 'V5_1_0', '2023-05-01 15:22:10.63211', 51, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (378, '5.1.0.20200629.1', 'Modify column PKG_DESC on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -803818357, 'V5_1_0', '2023-05-01 15:22:10.63574', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (379, '5.1.0.20200629.2', 'Modify column DESC_UPPER on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473337765, 'V5_1_0', '2023-05-01 15:22:10.64259', 4, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (380, '5.1.0.20200706.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', '2023-05-01 15:22:10.645688', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (381, '5.1.0.20200706.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', '2023-05-01 15:22:10.648697', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (382, '5.1.0.20200706.3', 'Add IDX_CDH_LB_REF_UNIQ index to table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1736277415, 'V5_1_0', '2023-05-01 15:22:10.652629', 1, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (383, '5.1.0.20200706.4', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', '2023-05-01 15:22:10.65543', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (384, '5.1.0.20200714.1', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1482239257, 'V5_1_0', '2023-05-01 15:22:10.657829', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (385, '5.1.0.20200714.2', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', '2023-05-01 15:22:10.660545', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (386, '5.1.0.20200714.3', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', '2023-05-01 15:22:10.663494', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (387, '5.1.0.20200714.4', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', '2023-05-01 15:22:10.667511', 1, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (388, '5.1.0.20200714.5', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', '2023-05-01 15:22:10.670959', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (389, '5.1.0.20200715.1', 'Add column VERSION on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1173572574, 'V5_1_0', '2023-05-01 15:22:10.673765', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (390, '5.1.0.20200715.2', 'Add column EID_MATCH on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1845176617, 'V5_1_0', '2023-05-01 15:22:10.676555', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (391, '5.1.0.20200715.3', 'Add column NEW_PERSON on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 797807839, 'V5_1_0', '2023-05-01 15:22:10.679414', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (392, '5.1.0.20200715.4', 'Add column VECTOR on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1366439014, 'V5_1_0', '2023-05-01 15:22:10.682043', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (393, '5.1.0.20200715.5', 'Add column SCORE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365985977, 'V5_1_0', '2023-05-01 15:22:10.684511', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (394, '5.1.0.20200725.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', '2023-05-01 15:22:10.688038', 1, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (395, '5.1.0.20200725.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', '2023-05-01 15:22:10.691919', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (396, '5.1.0.20200725.3', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', '2023-05-01 15:22:10.695293', 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', '2023-05-01 15:22:10.698149', 0, 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:22:37.199', '2023-05-01 15:22:37.199', 0, '2BE97F87D5DBFE6E3CE23AEAAEAC894544A0D1535984EF967F45ADF75551A398', 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:22:38.041', '2023-05-01 15:22:38.041', 0, '60E942A799928FFDC614A57C4EC568E451E74BFAFB4FB7598059128720A3DF8C', 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:34:17.768', '2023-05-01 15:34:17.768', 1, '848EAEF4BB95A03AF3DB18B0AFCE12FF5A4783AC57B47EB56628C0AEF8A0E50D', 2, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1628, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 0, '235856CCE7498130A2D32612EA96AA94E8AC1F044EFD8C0641C48300BFB224A6', 1, NULL, 0, 0, 1, 0, 0, 1, 1, 0, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', 0, '2023-05-01 16:15:16.426', '2023-05-01 16:15:16.426', 0, 'A8635B9998B72935998B1108751B9EE5031171B7F30BF980AAFCD8DE93CB0754', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 0, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:22:38.624', '2023-05-01 15:22:38.624', 0, '10073D6ACF744382DDEB497ED958BDDEB16DE33B4B8459B38533CB8251518CD0', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 0, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', 1, '2023-05-01 15:39:22.913', '2023-05-01 15:39:22.913', 0, 'D0C0CA68B6ECD0443BF2B1C3A86AA772E6A7C6E53623083D29B894D7E9F38AD1', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1631, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 1, '6835244142F7013573CB5C21E7CEB19805C0090DC279BD84D455AA3931C0F944', 1, NULL, 1, 0, 1, 0, 0, 1, 1, 0, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', 0, '2023-05-01 17:01:12.921', '2023-05-01 17:01:12.921', 1, '5968F0BC163133CB85559A9DF002D6FEFF1D8C14A0A5D278D5EB078EC739E454', 1, NULL, 0, 0, 1, 1, 0, 1, 1, 0, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', 0, '2023-05-01 16:11:07.727', '2023-05-01 16:11:07.727', 0, 'FC013BA45C54D7EE2A74CEF41E144C744812E8CB0C3F8E512EA44C035D0FED74', 1, NULL, 0, 1, 0, 0, 0, 0, 0, 0, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:54:03.963', '2023-05-01 15:54:03.963', 0, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, 0, 0, 1, 0, 0, 1, 1, 0, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:54:05.296', '2023-05-01 15:54:05.296', 0, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, 0, 0, 1, 0, 0, 1, 1, 0, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:26:08.82', '2023-05-01 15:26:08.82', 0, 'F30D68F5D00D440BD35E9CF7CCF1250234106A4B52AE016ACEE0F4291FB5AF5F', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:26:12.178', '2023-05-01 15:26:12.178', 0, 'EDBD79B1632719D08AA733AF7F99DE17009D1CE4605F439B4F5BDAAC98AABDD8', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:26:12.422', '2023-05-01 15:26:12.422', 0, 'A71FACD8BB1828ACD8718959949D5A16BE31F2E350671C5326A8E0BB9799357E', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_BINARY_STORAGE_BLOB (BLOB_ID, BLOB_DATA, CONTENT_TYPE, BLOB_HASH, PUBLISHED_DATE, RESOURCE_ID, BLOB_SIZE) VALUES ('QE7FP9VMEDPQTKOL9ENJXJEXBCIPTZKP2WOGWLMGDKJMKWXONGLLWBCUGDM2YH88ZXSG6V5PGDTSMQDMOXHEXBEFNOE0GIURJPOD', 1415364, 'APPLICATION/XML', 'D28743293C2FB67B72D06C80D055B66CCB58D70030E460450CD661AE2ED7225E', '2023-05-01 16:15:16.469', 'BINARY/2003', 36781);
|
||||
INSERT INTO HFJ_BLK_EXPORT_JOB (PID, CREATED_TIME, EXP_TIME, JOB_ID, REQUEST, EXP_SINCE, JOB_STATUS, STATUS_MESSAGE, STATUS_TIME, OPTLOCK) VALUES (1, '2023-05-01 16:31:20.175', '2023-05-01 18:31:20.175', '077DCFC3-DDC1-4C83-BD15-82867912F79D', '/$EXPORT?_OUTPUTFORMAT=APPLICATION%2FFHIR%2BNDJSON', '2023-04-30 16:31:20.171', 'COMPLETE', NULL, '2023-05-01 16:31:36.011', 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLLECTION (PID, TYPE_FILTER, RES_TYPE, OPTLOCK, JOB_PID) VALUES (131, NULL, 'PATIENT', 0, 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLFILE (PID, RES_ID, COLLECTION_PID) VALUES (13, '2018', 131);
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1, NULL, NULL, 'APPOINTMENT-DATE', 4, 'SEARCHPARAMETER');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1652, NULL, NULL, 'EMPI-PATIENT', 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1625, NULL, NULL, 'LOINC', 1780, 'CODESYSTEM');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1633, NULL, NULL, 'LOINC-UNIVERSAL-ORDER-SET', 1788, 'VALUESET');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1641, NULL, NULL, 'LOINC-PARTS-TO-PUBCHEM', 1796, 'CONCEPTMAP');
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:22:37.199', '2023-05-01 15:22:37.199', 'JSONC', 1402207, 1, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:22:38.041', '2023-05-01 15:22:38.041', 'JSONC', 1402208, 2, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1698, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 'JSONC', 1407184, 1628, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:34:17.768', '2023-05-01 15:34:17.768', 'JSONC', 1408666, 1800, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', 0, '2023-05-01 16:15:16.426', '2023-05-01 16:15:16.426', 'JSONC', 1415365, 2003, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:22:38.624', '2023-05-01 15:22:38.624', 'JSONC', 1402210, 4, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', 1, '2023-05-01 15:39:22.913', '2023-05-01 15:39:22.913', 'JSONC', 1409943, 1803, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1753, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 'JSONC', 1407239, 1631, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', 0, '2023-05-01 17:01:12.921', '2023-05-01 17:01:12.921', 'JSONC', 1415705, 2029, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', 0, '2023-05-01 16:11:07.727', '2023-05-01 16:11:07.727', 'JSONC', 1414688, 1910, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:54:03.963', '2023-05-01 15:54:03.963', 'JSONC', 1413281, 1905, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:54:05.296', '2023-05-01 15:54:05.296', 'JSONC', 1413284, 1906, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:26:08.82', '2023-05-01 15:26:08.82', 'JSONC', 1407282, 1780, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:26:12.178', '2023-05-01 15:26:12.178', 'JSONC', 1407374, 1788, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', 0, '2023-05-01 15:26:12.422', '2023-05-01 15:26:12.422', 'JSONC', 1407382, 1796, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (1, 'HAPI-EMPI', NULL, 'HTTPS://HAPIFHIR.ORG/NAMINGSYSTEM/MANAGING-EMPI-SYSTEM', 0);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (2, 'IN_MEMORY', 'IN-MEMORY', 'HTTP://HAPIFHIR.IO/FHIR/STRUCTUREDEFINITION/SUBSCRIPTION-MATCHING-STRATEGY', 0);
|
||||
INSERT INTO HFJ_HISTORY_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_VER_PID, RES_ID, RES_TYPE) VALUES (2, NULL, NULL, 1, 1803, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_IDX_CMP_STRING_UNIQ (PID, PARTITION_DATE, PARTITION_ID, IDX_STRING, RES_ID) VALUES (1, NULL, NULL, 'ENCOUNTER?SUBJECT=PATIENT%2F1628', 1631);
|
||||
INSERT INTO HFJ_PARTITION (PART_ID, PART_DESC, PART_NAME) VALUES (0, 'DEFAULT PARTITION', 'DEFAULT');
|
||||
INSERT INTO HFJ_RES_LINK (PID, PARTITION_DATE, PARTITION_ID, SRC_PATH, SRC_RESOURCE_ID, SOURCE_RESOURCE_TYPE, TARGET_RESOURCE_ID, TARGET_RESOURCE_TYPE, TARGET_RESOURCE_URL, SP_UPDATED) VALUES (700, NULL, NULL, 'RISKASSESSMENT.SUBJECT.WHERE(RESOLVE() IS PATIENT)', 2029, 'RISKASSESSMENT', 1628, 'PATIENT', NULL, '2023-05-01 17:01:12.921');
|
||||
INSERT INTO HFJ_RES_PARAM_PRESENT (PID, PARTITION_DATE, PARTITION_ID, HASH_PRESENCE, SP_PRESENT, RES_ID) VALUES (59, NULL, NULL, 258059053311458882, 0, 4);
|
||||
INSERT INTO HFJ_RES_REINDEX_JOB (PID, JOB_DELETED, REINDEX_COUNT, RES_TYPE, SUSPENDED_UNTIL, UPDATE_THRESHOLD_HIGH, UPDATE_THRESHOLD_LOW) VALUES (2, 0, NULL, NULL, NULL, '2023-05-01 17:21:20.208', NULL);
|
||||
INSERT INTO HFJ_RES_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_ID, RES_TYPE) VALUES (1, NULL, NULL, 2, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_RES_VER_PROV (RES_VER_PID, PARTITION_DATE, PARTITION_ID, REQUEST_ID, SOURCE_URI, RES_PID) VALUES (2003, NULL, NULL, 'JPQP0AGF9EULQGBF', NULL, 2003);
|
||||
INSERT INTO HFJ_SEARCH (PID, CREATED, SEARCH_DELETED, EXPIRY_OR_NULL, FAILURE_CODE, FAILURE_MESSAGE, LAST_UPDATED_HIGH, LAST_UPDATED_LOW, NUM_BLOCKED, NUM_FOUND, PREFERRED_PAGE_SIZE, RESOURCE_ID, RESOURCE_TYPE, SEARCH_PARAM_MAP, SEARCH_QUERY_STRING, SEARCH_QUERY_STRING_HASH, SEARCH_TYPE, SEARCH_STATUS, TOTAL_COUNT, SEARCH_UUID, OPTLOCK_VERSION) VALUES (52, '2023-05-01 16:52:09.149', 0, NULL, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, 'MEDICATIONREQUEST', NULL, '1415634', 1212873581, 1, 'FINISHED', 1, '7878637B-ECC4-4305-AA3E-DBD83ABF8B74', 1);
|
||||
INSERT INTO HFJ_SEARCH_INCLUDE (PID, SEARCH_INCLUDE, INC_RECURSE, REVINCLUDE, SEARCH_PID) VALUES (1, 'MEDICATIONREQUEST:REQUESTER', 0, 0, 52);
|
||||
INSERT INTO HFJ_SEARCH_RESULT (PID, SEARCH_ORDER, RESOURCE_PID, SEARCH_PID) VALUES (1, 0, 1730, 52);
|
||||
INSERT INTO HFJ_SPIDX_COORDS (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE) VALUES (1, NULL, NULL, 0, 'NEAR', 1910, 'LOCATION', '2023-05-01 16:11:07.727', -4485701151501643365, 40, 80);
|
||||
INSERT INTO HFJ_SPIDX_DATE (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE_HIGH, SP_VALUE_HIGH_DATE_ORDINAL, SP_VALUE_LOW, SP_VALUE_LOW_DATE_ORDINAL) VALUES (307, NULL, NULL, 1, 'DATE', 4, 'SEARCHPARAMETER', NULL, -1621943171043343906, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_NUMBER (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE) VALUES (52, NULL, NULL, 0, 'PROBABILITY', 2029, 'RISKASSESSMENT', '2023-05-01 17:01:12.921', -6990983917964109290, 0.00);
|
||||
INSERT INTO HFJ_SPIDX_QUANTITY (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_IDENTITY_AND_UNITS, HASH_IDENTITY_SYS_UNITS, SP_SYSTEM, SP_UNITS, SP_VALUE) VALUES (255, NULL, NULL, 1, 'CONTEXT-QUANTITY', 4, 'SEARCHPARAMETER', NULL, 6827792128454970868, -7371645208023277835, -6667842829396531841, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_STRING (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_EXACT, HASH_IDENTITY, HASH_NORM_PREFIX, SP_VALUE_EXACT, SP_VALUE_NORMALIZED) VALUES (1, NULL, NULL, 0, 'DESCRIPTION', 4, 'SEARCHPARAMETER', '2023-05-01 15:22:38.624', -2984939037050966085, -2891289766040777762, 6207609638364343311, 'APPOINTMENT DATE/TIME.', 'APPOINTMENT DATE/TIME.');
|
||||
INSERT INTO HFJ_SPIDX_TOKEN (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_SYS, HASH_SYS_AND_VALUE, HASH_VALUE, SP_SYSTEM, SP_VALUE) VALUES (3, NULL, NULL, 0, 'TYPE', 4, 'SEARCHPARAMETER', '2023-05-01 15:22:38.624', -505122241748101416, 4662843418098322756, 1440387303491618185, -4956097025963235395, 'HTTP://HL7.ORG/FHIR/SEARCH-PARAM-TYPE', 'DATE');
|
||||
INSERT INTO HFJ_SPIDX_URI (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_URI, SP_URI) VALUES (158, NULL, NULL, 1, 'URL', 4, 'SEARCHPARAMETER', NULL, -6027921678034716286, -5668077322898471643, NULL);
|
||||
INSERT INTO HFJ_SUBSCRIPTION_STATS (PID, CREATED_TIME, RES_ID) VALUES (1, '2023-05-01 15:39:23.038', 1803);
|
||||
INSERT INTO NPM_PACKAGE (PID, CUR_VERSION_ID, PACKAGE_DESC, PACKAGE_ID, UPDATED_TIME) VALUES (1, '1.0.1', NULL, 'COM.EXAMPLE.IG', '2023-05-01 15:22:37.946');
|
||||
INSERT INTO NPM_PACKAGE_VER (PID, CURRENT_VERSION, PKG_DESC, DESC_UPPER, FHIR_VERSION, FHIR_VERSION_ID, PACKAGE_ID, PACKAGE_SIZE_BYTES, SAVED_TIME, UPDATED_TIME, VERSION_ID, PACKAGE_PID, BINARY_RES_ID) VALUES (1, 1, NULL, NULL, 'R4', '4.0.1', 'COM.EXAMPLE.IG', 370, '2023-05-01 15:22:37.957', '2023-05-01 15:22:37.959', '1.0.1', 1, 1);
|
||||
INSERT INTO NPM_PACKAGE_VER_RES (PID, CANONICAL_URL, CANONICAL_VERSION, FILE_DIR, FHIR_VERSION, FHIR_VERSION_ID, FILE_NAME, RES_SIZE_BYTES, RES_TYPE, UPDATED_TIME, PACKVER_PID, BINARY_RES_ID) VALUES (1, NULL, NULL, 'PACKAGE', 'R4', '4.0.1', 'TESTPATIENT.JSON', 225, 'PATIENT', '2023-05-01 15:22:38.057', 1, 2);
|
||||
INSERT INTO TRM_CODESYSTEM (PID, CODE_SYSTEM_URI, CURRENT_VERSION_PID, CS_NAME, RES_ID) VALUES (1, 'HTTP://LOINC.ORG', 54, 'LOINC', 1780);
|
||||
INSERT INTO TRM_CODESYSTEM_VER (PID, CS_DISPLAY, CODESYSTEM_PID, CS_VERSION_ID, RES_ID) VALUES (54, 'LOINC', 1, NULL, 1780);
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (150, 'LL1001-8', 54, 'V2.67 PHENX05_14_30D FREQ AMTS', 1, '1415721', NULL, '2023-05-01 17:02:39.139');
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (151, 'LA13892-7', 54, 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 1, '1415722', 3, '2023-05-01 17:02:39.14');
|
||||
INSERT INTO TRM_CONCEPT_DESIG (PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, CS_VER_PID, CONCEPT_PID) VALUES (105, 'NL', '900000000000013009', 'SYNONYM', 'HTTP://SNOMED.INFO/SCT', 'SYSTOLISCHE BLOEDDRUK - EXPIRATIE', 54, 150);
|
||||
INSERT INTO TRM_CONCEPT_MAP (PID, RES_ID, SOURCE_URL, TARGET_URL, URL) VALUES (54, 1796, NULL, NULL, 'HTTP://LOINC.ORG/CM/LOINC-PARTS-TO-PUBCHEM');
|
||||
INSERT INTO TRM_CONCEPT_MAP_GROUP (PID, CONCEPT_MAP_URL, SOURCE_URL, SOURCE_VS, SOURCE_VERSION, TARGET_URL, TARGET_VS, TARGET_VERSION, CONCEPT_MAP_PID) VALUES (54, NULL, 'HTTP://LOINC.ORG', NULL, NULL, 'HTTP://PUBCHEM.NCBI.NLM.NIH.GOV', NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELEMENT (PID, SOURCE_CODE, CONCEPT_MAP_URL, SOURCE_DISPLAY, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GROUP_PID) VALUES (60, 'LP15842-5', NULL, 'PYRIDOXINE', NULL, NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELM_TGT (PID, TARGET_CODE, CONCEPT_MAP_URL, TARGET_DISPLAY, TARGET_EQUIVALENCE, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GRP_ELM_PID) VALUES (60, '1054', NULL, 'PYRIDOXINE', 'EQUAL', NULL, NULL, NULL, 60);
|
||||
INSERT INTO TRM_CONCEPT_PC_LINK (PID, CHILD_PID, CODESYSTEM_PID, PARENT_PID, REL_TYPE) VALUES (54, 150, 54, 151, 0);
|
||||
INSERT INTO TRM_CONCEPT_PROPERTY (PID, PROP_CODESYSTEM, PROP_DISPLAY, PROP_KEY, PROP_TYPE, PROP_VAL, PROP_VAL_LOB, CS_VER_PID, CONCEPT_PID) VALUES (152, NULL, NULL, 'CLASSTYPE', 0, '2', NULL, 54, 150);
|
||||
INSERT INTO TRM_VALUESET (PID, EXPANSION_STATUS, VSNAME, RES_ID, TOTAL_CONCEPT_DESIGNATIONS, TOTAL_CONCEPTS, URL) VALUES (59, 'EXPANDED', 'LOINC UNIVERSAL ORDER SET', 1788, 0, 0, 'HTTP://LOINC.ORG/VS/LOINC-UNIVERSAL-ORDER-SET');
|
||||
INSERT INTO TRM_VALUESET_CONCEPT (PID, CODEVAL, DISPLAY, VALUESET_ORDER, SYSTEM_URL, VALUESET_PID) VALUES (176, 'LA13892-7', 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 0, 'HTTP://LOINC.ORG', 59);
|
||||
INSERT INTO TRM_VALUESET_C_DESIGNATION (PID, VALUESET_CONCEPT_PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, VALUESET_PID) VALUES (4, 176, NULL, NULL, NULL, NULL, 'NM THYROID STUDY REPORT', 59);
|
|
@ -0,0 +1,112 @@
|
|||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (364, '5.1.0.20200610.1', 'Add id generator SEQ_NPM_PACK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473104510, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (365, '5.1.0.20200610.2', 'Add table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 474870847, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (366, '5.1.0.20200610.3', 'Add IDX_PACK_ID index to table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365159328, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (367, '5.1.0.20200610.4', 'Add id generator SEQ_NPM_PACKVER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 700720075, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (368, '5.1.0.20200610.5', 'Add table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1966212459, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (369, '5.1.0.20200610.6', 'Add foreign key FK_NPM_PKV_PKG from column PACKAGE_PID of table NPM_PACKAGE_VER to column PID of table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 892859860, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (370, '5.1.0.20200610.7', 'Add foreign key FK_NPM_PKV_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1848926701, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (371, '5.1.0.20200610.8', 'Add IDX_PACKVER index to table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -877809247, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (372, '5.1.0.20200610.9', 'Add id generator SEQ_NPM_PACKVERRES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1592038879, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (373, '5.1.0.20200610.10', 'Add table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -284186771, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (374, '5.1.0.20200610.11', 'Add foreign key FK_NPM_PACKVERRES_PACKVER from column PACKVER_PID of table NPM_PACKAGE_VER_RES to column PID of table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1416719386, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (375, '5.1.0.20200610.12', 'Add foreign key FK_NPM_PKVR_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER_RES to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1714853796, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (376, '5.1.0.20200610.13', 'Add IDX_PACKVERRES_URL index to table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -338192664, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (377, '5.1.0.20200610.14', 'Initialize schema for Spring Batch', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1067435593, 'V5_1_0', SYSDATE, 51, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (378, '5.1.0.20200629.1', 'Modify column PKG_DESC on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -803818357, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (379, '5.1.0.20200629.2', 'Modify column DESC_UPPER on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473337765, 'V5_1_0', SYSDATE, 4, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (380, '5.1.0.20200706.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (381, '5.1.0.20200706.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (382, '5.1.0.20200706.3', 'Add IDX_CDH_LB_REF_UNIQ index to table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1736277415, 'V5_1_0', SYSDATE, 1, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (383, '5.1.0.20200706.4', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (384, '5.1.0.20200714.1', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1482239257, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (385, '5.1.0.20200714.2', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (386, '5.1.0.20200714.3', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (387, '5.1.0.20200714.4', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', SYSDATE, 1, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (388, '5.1.0.20200714.5', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (389, '5.1.0.20200715.1', 'Add column VERSION on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1173572574, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (390, '5.1.0.20200715.2', 'Add column EID_MATCH on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1845176617, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (391, '5.1.0.20200715.3', 'Add column NEW_PERSON on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 797807839, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (392, '5.1.0.20200715.4', 'Add column VECTOR on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1366439014, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (393, '5.1.0.20200715.5', 'Add column SCORE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365985977, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (394, '5.1.0.20200725.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', SYSDATE, 1, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (395, '5.1.0.20200725.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (396, '5.1.0.20200725.3', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" ("installed_rank","version","description","type","script","checksum","installed_by","installed_on","execution_time","success") VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', SYSDATE, 0, 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, '2BE97F87D5DBFE6E3CE23AEAAEAC894544A0D1535984EF967F45ADF75551A398', 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, '60E942A799928FFDC614A57C4EC568E451E74BFAFB4FB7598059128720A3DF8C', 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 1, '848EAEF4BB95A03AF3DB18B0AFCE12FF5A4783AC57B47EB56628C0AEF8A0E50D', 2, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1628, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, '235856CCE7498130A2D32612EA96AA94E8AC1F044EFD8C0641C48300BFB224A6', 1, NULL, 0, 0, 1, 0, 0, 1, 1, 0, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, 'A8635B9998B72935998B1108751B9EE5031171B7F30BF980AAFCD8DE93CB0754', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 0, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, '10073D6ACF744382DDEB497ED958BDDEB16DE33B4B8459B38533CB8251518CD0', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 0, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', 1, SYSDATE, SYSDATE, 0, 'D0C0CA68B6ECD0443BF2B1C3A86AA772E6A7C6E53623083D29B894D7E9F38AD1', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1631, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 1, '6835244142F7013573CB5C21E7CEB19805C0090DC279BD84D455AA3931C0F944', 1, NULL, 1, 0, 1, 0, 0, 1, 1, 0, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 1, '5968F0BC163133CB85559A9DF002D6FEFF1D8C14A0A5D278D5EB078EC739E454', 1, NULL, 0, 0, 1, 1, 0, 1, 1, 0, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, 'FC013BA45C54D7EE2A74CEF41E144C744812E8CB0C3F8E512EA44C035D0FED74', 1, NULL, 0, 1, 0, 0, 0, 0, 0, 0, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, 0, 0, 1, 0, 0, 1, 1, 0, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, 0, 0, 1, 0, 0, 1, 1, 0, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, 'F30D68F5D00D440BD35E9CF7CCF1250234106A4B52AE016ACEE0F4291FB5AF5F', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, 'EDBD79B1632719D08AA733AF7F99DE17009D1CE4605F439B4F5BDAAC98AABDD8', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 0, 'A71FACD8BB1828ACD8718959949D5A16BE31F2E350671C5326A8E0BB9799357E', 1, NULL, 0, 0, 0, 0, 0, 1, 1, 1, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_BINARY_STORAGE_BLOB (BLOB_ID, BLOB_DATA, CONTENT_TYPE, BLOB_HASH, PUBLISHED_DATE, RESOURCE_ID, BLOB_SIZE) VALUES ('QE7FP9VMEDPQTKOL9ENJXJEXBCIPTZKP2WOGWLMGDKJMKWXONGLLWBCUGDM2YH88ZXSG6V5PGDTSMQDMOXHEXBEFNOE0GIURJPOD', '1415364', 'APPLICATION/XML', 'D28743293C2FB67B72D06C80D055B66CCB58D70030E460450CD661AE2ED7225E', SYSDATE, 'BINARY/2003', 36781);
|
||||
INSERT INTO HFJ_BLK_EXPORT_JOB (PID, CREATED_TIME, EXP_TIME, JOB_ID, REQUEST, EXP_SINCE, JOB_STATUS, STATUS_MESSAGE, STATUS_TIME, OPTLOCK) VALUES (1, SYSDATE, SYSDATE, '077DCFC3-DDC1-4C83-BD15-82867912F79D', '/$EXPORT?_OUTPUTFORMAT=APPLICATION%2FFHIR%2BNDJSON', SYSDATE, 'COMPLETE', NULL, SYSDATE, 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLLECTION (PID, TYPE_FILTER, RES_TYPE, OPTLOCK, JOB_PID) VALUES (131, NULL, 'PATIENT', 0, 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLFILE (PID, RES_ID, COLLECTION_PID) VALUES (13, '2018', 131);
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1, NULL, NULL, 'APPOINTMENT-DATE', 4, 'SEARCHPARAMETER');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1652, NULL, NULL, 'EMPI-PATIENT', 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1633, NULL, NULL, 'LOINC-UNIVERSAL-ORDER-SET', 1788, 'VALUESET');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1625, NULL, NULL, 'LOINC', 1780, 'CODESYSTEM');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1641, NULL, NULL, 'LOINC-PARTS-TO-PUBCHEM', 1796, 'CONCEPTMAP');
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1402207', 1, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1402208', 2, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1698, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1407184', 1628, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1408666', 1800, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1415365', 2003, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1402210', 4, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', 1, SYSDATE, SYSDATE, 'JSONC', '1409943', 1803, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1753, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1407239', 1631, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1415705', 2029, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1414688', 1910, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1413281', 1905, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1413284', 1906, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1407282', 1780, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1407374', 1788, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', 0, SYSDATE, SYSDATE, 'JSONC', '1407382', 1796, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (1, 'HAPI-EMPI', NULL, 'HTTPS://HAPIFHIR.ORG/NAMINGSYSTEM/MANAGING-EMPI-SYSTEM', 0);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (2, 'IN_MEMORY', 'IN-MEMORY', 'HTTP://HAPIFHIR.IO/FHIR/STRUCTUREDEFINITION/SUBSCRIPTION-MATCHING-STRATEGY', 0);
|
||||
INSERT INTO HFJ_HISTORY_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_VER_PID, RES_ID, RES_TYPE) VALUES (2, NULL, NULL, 1, 1803, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_IDX_CMP_STRING_UNIQ (PID, PARTITION_DATE, PARTITION_ID, IDX_STRING, RES_ID) VALUES (1, NULL, NULL, 'ENCOUNTER?SUBJECT=PATIENT%2F1628', 1631);
|
||||
INSERT INTO HFJ_PARTITION (PART_ID, PART_DESC, PART_NAME) VALUES (0, 'DEFAULT PARTITION', 'DEFAULT');
|
||||
INSERT INTO HFJ_RES_LINK (PID, PARTITION_DATE, PARTITION_ID, SRC_PATH, SRC_RESOURCE_ID, SOURCE_RESOURCE_TYPE, TARGET_RESOURCE_ID, TARGET_RESOURCE_TYPE, TARGET_RESOURCE_URL, SP_UPDATED) VALUES (700, NULL, NULL, 'RISKASSESSMENT.SUBJECT.WHERE(RESOLVE() IS PATIENT)', 2029, 'RISKASSESSMENT', 1628, 'PATIENT', NULL, SYSDATE);
|
||||
INSERT INTO HFJ_RES_PARAM_PRESENT (PID, PARTITION_DATE, PARTITION_ID, HASH_PRESENCE, SP_PRESENT, RES_ID) VALUES (59, NULL, NULL, 258059053311458882, 0, 4);
|
||||
INSERT INTO HFJ_RES_REINDEX_JOB (PID, JOB_DELETED, REINDEX_COUNT, RES_TYPE, SUSPENDED_UNTIL, UPDATE_THRESHOLD_HIGH, UPDATE_THRESHOLD_LOW) VALUES (2, 0, NULL, NULL, NULL, SYSDATE, NULL);
|
||||
INSERT INTO HFJ_RES_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_ID, RES_TYPE) VALUES (1, NULL, NULL, 2, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_RES_VER_PROV (RES_VER_PID, PARTITION_DATE, PARTITION_ID, REQUEST_ID, SOURCE_URI, RES_PID) VALUES (2003, NULL, NULL, 'JPQP0AGF9EULQGBF', NULL, 2003);
|
||||
INSERT INTO HFJ_SEARCH (PID, CREATED, SEARCH_DELETED, EXPIRY_OR_NULL, FAILURE_CODE, FAILURE_MESSAGE, LAST_UPDATED_HIGH, LAST_UPDATED_LOW, NUM_BLOCKED, NUM_FOUND, PREFERRED_PAGE_SIZE, RESOURCE_ID, RESOURCE_TYPE, SEARCH_PARAM_MAP, SEARCH_QUERY_STRING, SEARCH_QUERY_STRING_HASH, SEARCH_TYPE, SEARCH_STATUS, TOTAL_COUNT, SEARCH_UUID, OPTLOCK_VERSION) VALUES (52, SYSDATE, 0, NULL, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, 'MEDICATIONREQUEST', NULL, '1415634', 1212873581, 1, 'FINISHED', 1, '7878637B-ECC4-4305-AA3E-DBD83ABF8B74', 1);
|
||||
INSERT INTO HFJ_SEARCH_INCLUDE (PID, SEARCH_INCLUDE, INC_RECURSE, REVINCLUDE, SEARCH_PID) VALUES (1, 'MEDICATIONREQUEST:REQUESTER', 0, 0, 52);
|
||||
INSERT INTO HFJ_SEARCH_RESULT (PID, SEARCH_ORDER, RESOURCE_PID, SEARCH_PID) VALUES (1, 0, 1730, 52);
|
||||
INSERT INTO HFJ_SPIDX_COORDS (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE) VALUES (1, NULL, NULL, 0, 'NEAR', 1910, 'LOCATION', SYSDATE, -4485701151501643365, 40, 80);
|
||||
INSERT INTO HFJ_SPIDX_DATE (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE_HIGH, SP_VALUE_HIGH_DATE_ORDINAL, SP_VALUE_LOW, SP_VALUE_LOW_DATE_ORDINAL) VALUES (307, NULL, NULL, 1, 'DATE', 4, 'SEARCHPARAMETER', NULL, -1621943171043343906, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_NUMBER (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE) VALUES (52, NULL, NULL, 0, 'PROBABILITY', 2029, 'RISKASSESSMENT', SYSDATE, -6990983917964109290, 0.00);
|
||||
INSERT INTO HFJ_SPIDX_QUANTITY (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_IDENTITY_AND_UNITS, HASH_IDENTITY_SYS_UNITS, SP_SYSTEM, SP_UNITS, SP_VALUE) VALUES (255, NULL, NULL, 1, 'CONTEXT-QUANTITY', 4, 'SEARCHPARAMETER', NULL, 6827792128454970868, -7371645208023277835, -6667842829396531841, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_STRING (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_EXACT, HASH_IDENTITY, HASH_NORM_PREFIX, SP_VALUE_EXACT, SP_VALUE_NORMALIZED) VALUES (1, NULL, NULL, 0, 'DESCRIPTION', 4, 'SEARCHPARAMETER', SYSDATE, -2984939037050966085, -2891289766040777762, 6207609638364343311, 'APPOINTMENT DATE/TIME.', 'APPOINTMENT DATE/TIME.');
|
||||
INSERT INTO HFJ_SPIDX_TOKEN (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_SYS, HASH_SYS_AND_VALUE, HASH_VALUE, SP_SYSTEM, SP_VALUE) VALUES (3, NULL, NULL, 0, 'TYPE', 4, 'SEARCHPARAMETER', SYSDATE, -505122241748101416, 4662843418098322756, 1440387303491618185, -4956097025963235395, 'HTTP://HL7.ORG/FHIR/SEARCH-PARAM-TYPE', 'DATE');
|
||||
INSERT INTO HFJ_SPIDX_URI (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_URI, SP_URI) VALUES (158, NULL, NULL, 1, 'URL', 4, 'SEARCHPARAMETER', NULL, -6027921678034716286, -5668077322898471643, NULL);
|
||||
INSERT INTO HFJ_SUBSCRIPTION_STATS (PID, CREATED_TIME, RES_ID) VALUES (1, SYSDATE, 1803);
|
||||
INSERT INTO NPM_PACKAGE (PID, CUR_VERSION_ID, PACKAGE_DESC, PACKAGE_ID, UPDATED_TIME) VALUES (1, '1.0.1', NULL, 'COM.EXAMPLE.IG', SYSDATE);
|
||||
INSERT INTO NPM_PACKAGE_VER (PID, CURRENT_VERSION, PKG_DESC, DESC_UPPER, FHIR_VERSION, FHIR_VERSION_ID, PACKAGE_ID, PACKAGE_SIZE_BYTES, SAVED_TIME, UPDATED_TIME, VERSION_ID, PACKAGE_PID, BINARY_RES_ID) VALUES (1, 1, NULL, NULL, 'R4', '4.0.1', 'COM.EXAMPLE.IG', 370, SYSDATE, SYSDATE, '1.0.1', 1, 1);
|
||||
INSERT INTO NPM_PACKAGE_VER_RES (PID, CANONICAL_URL, CANONICAL_VERSION, FILE_DIR, FHIR_VERSION, FHIR_VERSION_ID, FILE_NAME, RES_SIZE_BYTES, RES_TYPE, UPDATED_TIME, PACKVER_PID, BINARY_RES_ID) VALUES (1, NULL, NULL, 'PACKAGE', 'R4', '4.0.1', 'TESTPATIENT.JSON', 225, 'PATIENT', SYSDATE, 1, 2);
|
||||
INSERT INTO TRM_CODESYSTEM (PID, CODE_SYSTEM_URI, CURRENT_VERSION_PID, CS_NAME, RES_ID) VALUES (1, 'HTTP://LOINC.ORG', 54, 'LOINC', 1780);
|
||||
INSERT INTO TRM_CODESYSTEM_VER (PID, CS_DISPLAY, CODESYSTEM_PID, CS_VERSION_ID, RES_ID) VALUES (54, 'LOINC', 1, NULL, 1780);
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (150, 'LL1001-8', 54, 'V2.67 PHENX05_14_30D FREQ AMTS', 1, '1415721', NULL, SYSDATE);
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (151, 'LA13892-7', 54, 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 1, '1415722', 3, SYSDATE);
|
||||
INSERT INTO TRM_CONCEPT_DESIG (PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, CS_VER_PID, CONCEPT_PID) VALUES (105, 'NL', '900000000000013009', 'SYNONYM', 'HTTP://SNOMED.INFO/SCT', 'SYSTOLISCHE BLOEDDRUK - EXPIRATIE', 54, 150);
|
||||
INSERT INTO TRM_CONCEPT_MAP (PID, RES_ID, SOURCE_URL, TARGET_URL, URL) VALUES (54, 1796, NULL, NULL, 'HTTP://LOINC.ORG/CM/LOINC-PARTS-TO-PUBCHEM');
|
||||
INSERT INTO TRM_CONCEPT_MAP_GROUP (PID, CONCEPT_MAP_URL, SOURCE_URL, SOURCE_VS, SOURCE_VERSION, TARGET_URL, TARGET_VS, TARGET_VERSION, CONCEPT_MAP_PID) VALUES (54, NULL, 'HTTP://LOINC.ORG', NULL, NULL, 'HTTP://PUBCHEM.NCBI.NLM.NIH.GOV', NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELEMENT (PID, SOURCE_CODE, CONCEPT_MAP_URL, SOURCE_DISPLAY, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GROUP_PID) VALUES (60, 'LP15842-5', NULL, 'PYRIDOXINE', NULL, NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELM_TGT (PID, TARGET_CODE, CONCEPT_MAP_URL, TARGET_DISPLAY, TARGET_EQUIVALENCE, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GRP_ELM_PID) VALUES (60, '1054', NULL, 'PYRIDOXINE', 'EQUAL', NULL, NULL, NULL, 60);
|
||||
INSERT INTO TRM_CONCEPT_PC_LINK (PID, CHILD_PID, CODESYSTEM_PID, PARENT_PID, REL_TYPE) VALUES (54, 150, 54, 151, 0);
|
||||
INSERT INTO TRM_CONCEPT_PROPERTY (PID, PROP_CODESYSTEM, PROP_DISPLAY, PROP_KEY, PROP_TYPE, PROP_VAL, PROP_VAL_LOB, CS_VER_PID, CONCEPT_PID) VALUES (152, NULL, NULL, 'CLASSTYPE', 0, '2', NULL, 54, 150);
|
||||
INSERT INTO TRM_VALUESET (PID, EXPANSION_STATUS, VSNAME, RES_ID, TOTAL_CONCEPT_DESIGNATIONS, TOTAL_CONCEPTS, URL) VALUES (59, 'EXPANDED', 'LOINC UNIVERSAL ORDER SET', 1788, 0, 0, 'HTTP://LOINC.ORG/VS/LOINC-UNIVERSAL-ORDER-SET');
|
||||
INSERT INTO TRM_VALUESET_CONCEPT (PID, CODEVAL, DISPLAY, VALUESET_ORDER, SYSTEM_URL, VALUESET_PID) VALUES (176, 'LA13892-7', 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 0, 'HTTP://LOINC.ORG', 59);
|
||||
INSERT INTO TRM_VALUESET_C_DESIGNATION (PID, VALUESET_CONCEPT_PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, VALUESET_PID) VALUES (4, 176, NULL, NULL, NULL, NULL, 'NM THYROID STUDY REPORT', 59);
|
|
@ -0,0 +1,112 @@
|
|||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', '2023-05-01 15:22:10.698149', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (364, '5.1.0.20200610.1', 'Add id generator SEQ_NPM_PACK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473104510, 'V5_1_0', '2023-05-01 15:22:10.540122', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (365, '5.1.0.20200610.2', 'Add table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 474870847, 'V5_1_0', '2023-05-01 15:22:10.5429', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (366, '5.1.0.20200610.3', 'Add IDX_PACK_ID index to table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365159328, 'V5_1_0', '2023-05-01 15:22:10.545683', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (367, '5.1.0.20200610.4', 'Add id generator SEQ_NPM_PACKVER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 700720075, 'V5_1_0', '2023-05-01 15:22:10.54841', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (368, '5.1.0.20200610.5', 'Add table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1966212459, 'V5_1_0', '2023-05-01 15:22:10.552204', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (369, '5.1.0.20200610.6', 'Add foreign key FK_NPM_PKV_PKG from column PACKAGE_PID of table NPM_PACKAGE_VER to column PID of table NPM_PACKAGE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 892859860, 'V5_1_0', '2023-05-01 15:22:10.55546', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (370, '5.1.0.20200610.7', 'Add foreign key FK_NPM_PKV_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1848926701, 'V5_1_0', '2023-05-01 15:22:10.558435', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (371, '5.1.0.20200610.8', 'Add IDX_PACKVER index to table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -877809247, 'V5_1_0', '2023-05-01 15:22:10.561099', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (372, '5.1.0.20200610.9', 'Add id generator SEQ_NPM_PACKVERRES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1592038879, 'V5_1_0', '2023-05-01 15:22:10.563732', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (373, '5.1.0.20200610.10', 'Add table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -284186771, 'V5_1_0', '2023-05-01 15:22:10.567316', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (374, '5.1.0.20200610.11', 'Add foreign key FK_NPM_PACKVERRES_PACKVER from column PACKVER_PID of table NPM_PACKAGE_VER_RES to column PID of table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1416719386, 'V5_1_0', '2023-05-01 15:22:10.570954', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (375, '5.1.0.20200610.12', 'Add foreign key FK_NPM_PKVR_RESID from column BINARY_RES_ID of table NPM_PACKAGE_VER_RES to column RES_ID of table HFJ_RESOURCE', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1714853796, 'V5_1_0', '2023-05-01 15:22:10.574972', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (376, '5.1.0.20200610.13', 'Add IDX_PACKVERRES_URL index to table NPM_PACKAGE_VER_RES', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -338192664, 'V5_1_0', '2023-05-01 15:22:10.577761', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (377, '5.1.0.20200610.14', 'Initialize schema for Spring Batch', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1067435593, 'V5_1_0', '2023-05-01 15:22:10.63211', 51, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (378, '5.1.0.20200629.1', 'Modify column PKG_DESC on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -803818357, 'V5_1_0', '2023-05-01 15:22:10.63574', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (379, '5.1.0.20200629.2', 'Modify column DESC_UPPER on table NPM_PACKAGE_VER', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1473337765, 'V5_1_0', '2023-05-01 15:22:10.64259', 4, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (380, '5.1.0.20200706.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', '2023-05-01 15:22:10.645688', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (381, '5.1.0.20200706.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', '2023-05-01 15:22:10.648697', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (382, '5.1.0.20200706.3', 'Add IDX_CDH_LB_REF_UNIQ index to table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1736277415, 'V5_1_0', '2023-05-01 15:22:10.652629', 1, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (383, '5.1.0.20200706.4', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', '2023-05-01 15:22:10.65543', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (384, '5.1.0.20200714.1', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1482239257, 'V5_1_0', '2023-05-01 15:22:10.657829', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (385, '5.1.0.20200714.2', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', '2023-05-01 15:22:10.660545', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (386, '5.1.0.20200714.3', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 512672670, 'V5_1_0', '2023-05-01 15:22:10.663494', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (387, '5.1.0.20200714.4', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', '2023-05-01 15:22:10.667511', 1, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (388, '5.1.0.20200714.5', 'Execute raw sql', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 619716561, 'V5_1_0', '2023-05-01 15:22:10.670959', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (389, '5.1.0.20200715.1', 'Add column VERSION on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1173572574, 'V5_1_0', '2023-05-01 15:22:10.673765', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (390, '5.1.0.20200715.2', 'Add column EID_MATCH on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1845176617, 'V5_1_0', '2023-05-01 15:22:10.676555', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (391, '5.1.0.20200715.3', 'Add column NEW_PERSON on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 797807839, 'V5_1_0', '2023-05-01 15:22:10.679414', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (392, '5.1.0.20200715.4', 'Add column VECTOR on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1366439014, 'V5_1_0', '2023-05-01 15:22:10.682043', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (393, '5.1.0.20200715.5', 'Add column SCORE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 1365985977, 'V5_1_0', '2023-05-01 15:22:10.684511', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (394, '5.1.0.20200725.1', 'Drop index IDX_CDH_LB_REF_LB_RL_TR_RS from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1556174690, 'V5_1_0', '2023-05-01 15:22:10.688038', 1, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (395, '5.1.0.20200725.2', 'Drop index IDX_CDH_LB_REF_RULE_TRACK from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1178921194, 'V5_1_0', '2023-05-01 15:22:10.691919', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (396, '5.1.0.20200725.3', 'Drop column TRACK_RES_ID from table CDH_LB_REF', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', 266520801, 'V5_1_0', '2023-05-01 15:22:10.695293', 0, true);
|
||||
INSERT INTO "FLY_HFJ_MIGRATION" (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success) VALUES (397, '5.1.0.20200727.1', 'Add column TARGET_TYPE on table MPI_LINK', 'JDBC', 'ca.uhn.fhir.jpa.migrate.FlywayMigrationTask', -1401374708, 'V5_1_0', '2023-05-01 15:22:10.698149', 0, true);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:37.199', '2023-05-01 15:22:37.199', FALSE, '2BE97F87D5DBFE6E3CE23AEAAEAC894544A0D1535984EF967F45ADF75551A398', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.041', '2023-05-01 15:22:38.041', FALSE, '60E942A799928FFDC614A57C4EC568E451E74BFAFB4FB7598059128720A3DF8C', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:34:17.768', '2023-05-01 15:34:17.768', TRUE, '848EAEF4BB95A03AF3DB18B0AFCE12FF5A4783AC57B47EB56628C0AEF8A0E50D', 2, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1628, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', FALSE, '235856CCE7498130A2D32612EA96AA94E8AC1F044EFD8C0641C48300BFB224A6', 1, NULL, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:15:16.426', '2023-05-01 16:15:16.426', FALSE, 'A8635B9998B72935998B1108751B9EE5031171B7F30BF980AAFCD8DE93CB0754', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.624', '2023-05-01 15:22:38.624', FALSE, '10073D6ACF744382DDEB497ED958BDDEB16DE33B4B8459B38533CB8251518CD0', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', TRUE, '2023-05-01 15:39:22.913', '2023-05-01 15:39:22.913', FALSE, 'D0C0CA68B6ECD0443BF2B1C3A86AA772E6A7C6E53623083D29B894D7E9F38AD1', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1631, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', TRUE, '6835244142F7013573CB5C21E7CEB19805C0090DC279BD84D455AA3931C0F944', 1, NULL, TRUE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 17:01:12.921', '2023-05-01 17:01:12.921', TRUE, '5968F0BC163133CB85559A9DF002D6FEFF1D8C14A0A5D278D5EB078EC739E454', 1, NULL, FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:11:07.727', '2023-05-01 16:11:07.727', FALSE, 'FC013BA45C54D7EE2A74CEF41E144C744812E8CB0C3F8E512EA44C035D0FED74', 1, NULL, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:03.963', '2023-05-01 15:54:03.963', FALSE, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:05.296', '2023-05-01 15:54:05.296', FALSE, '1B640077D462678E19EC5EAB21FB7BFD7EA667CC4E37B2A2CD99E0BA07EFB2D4', 1, NULL, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:08.82', '2023-05-01 15:26:08.82', FALSE, 'F30D68F5D00D440BD35E9CF7CCF1250234106A4B52AE016ACEE0F4291FB5AF5F', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.178', '2023-05-01 15:26:12.178', FALSE, 'EDBD79B1632719D08AA733AF7F99DE17009D1CE4605F439B4F5BDAAC98AABDD8', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RESOURCE (RES_ID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, SP_HAS_LINKS, HASH_SHA256, SP_INDEX_STATUS, RES_LANGUAGE, SP_CMPSTR_UNIQ_PRESENT, SP_COORDS_PRESENT, SP_DATE_PRESENT, SP_NUMBER_PRESENT, SP_QUANTITY_PRESENT, SP_STRING_PRESENT, SP_TOKEN_PRESENT, SP_URI_PRESENT, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.422', '2023-05-01 15:26:12.422', FALSE, 'A71FACD8BB1828ACD8718959949D5A16BE31F2E350671C5326A8E0BB9799357E', 1, NULL, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_BINARY_STORAGE_BLOB (BLOB_ID, BLOB_DATA, CONTENT_TYPE, BLOB_HASH, PUBLISHED_DATE, RESOURCE_ID, BLOB_SIZE) VALUES ('QE7FP9VMEDPQTKOL9ENJXJEXBCIPTZKP2WOGWLMGDKJMKWXONGLLWBCUGDM2YH88ZXSG6V5PGDTSMQDMOXHEXBEFNOE0GIURJPOD', 1415364, 'APPLICATION/XML', 'D28743293C2FB67B72D06C80D055B66CCB58D70030E460450CD661AE2ED7225E', '2023-05-01 16:15:16.469', 'BINARY/2003', 36781);
|
||||
INSERT INTO HFJ_BLK_EXPORT_JOB (PID, CREATED_TIME, EXP_TIME, JOB_ID, REQUEST, EXP_SINCE, JOB_STATUS, STATUS_MESSAGE, STATUS_TIME, OPTLOCK) VALUES (1, '2023-05-01 16:31:20.175', '2023-05-01 18:31:20.175', '077DCFC3-DDC1-4C83-BD15-82867912F79D', '/$EXPORT?_OUTPUTFORMAT=APPLICATION%2FFHIR%2BNDJSON', '2023-04-30 16:31:20.171', 'COMPLETE', NULL, '2023-05-01 16:31:36.011', 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLLECTION (PID, TYPE_FILTER, RES_TYPE, OPTLOCK, JOB_PID) VALUES (131, NULL, 'PATIENT', 0, 1);
|
||||
INSERT INTO HFJ_BLK_EXPORT_COLFILE (PID, RES_ID, COLLECTION_PID) VALUES (13, '2018', 131);
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1, NULL, NULL, 'APPOINTMENT-DATE', 4, 'SEARCHPARAMETER');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1652, NULL, NULL, 'EMPI-PATIENT', 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1633, NULL, NULL, 'LOINC-UNIVERSAL-ORDER-SET', 1788, 'VALUESET');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1625, NULL, NULL, 'LOINC', 1780, 'CODESYSTEM');
|
||||
INSERT INTO HFJ_FORCED_ID (PID, PARTITION_DATE, PARTITION_ID, FORCED_ID, RESOURCE_PID, RESOURCE_TYPE) VALUES (1641, NULL, NULL, 'LOINC-PARTS-TO-PUBCHEM', 1796, 'CONCEPTMAP');
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:37.199', '2023-05-01 15:22:37.199', 'JSONC', 1402207, 1, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.041', '2023-05-01 15:22:38.041', 'JSONC', 1402208, 2, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1698, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 'JSONC', 1407184, 1628, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1800, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:34:17.768', '2023-05-01 15:34:17.768', 'JSONC', 1408666, 1800, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2003, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:15:16.426', '2023-05-01 16:15:16.426', 'JSONC', 1415365, 2003, 'BINARY', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (4, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:22:38.624', '2023-05-01 15:22:38.624', 'JSONC', 1402210, 4, 'SEARCHPARAMETER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1803, NULL, NULL, NULL, 'R4', TRUE, '2023-05-01 15:39:22.913', '2023-05-01 15:39:22.913', 'JSONC', 1409943, 1803, 'SUBSCRIPTION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1753, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:24:16.677', '2023-05-01 15:24:16.677', 'JSONC', 1407239, 1631, 'ENCOUNTER', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (2029, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 17:01:12.921', '2023-05-01 17:01:12.921', 'JSONC', 1415705, 2029, 'RISKASSESSMENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1910, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 16:11:07.727', '2023-05-01 16:11:07.727', 'JSONC', 1414688, 1910, 'LOCATION', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1905, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:03.963', '2023-05-01 15:54:03.963', 'JSONC', 1413281, 1905, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1906, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:54:05.296', '2023-05-01 15:54:05.296', 'JSONC', 1413284, 1906, 'PATIENT', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1780, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:08.82', '2023-05-01 15:26:08.82', 'JSONC', 1407282, 1780, 'CODESYSTEM', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1788, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.178', '2023-05-01 15:26:12.178', 'JSONC', 1407374, 1788, 'VALUESET', 1);
|
||||
INSERT INTO HFJ_RES_VER (PID, PARTITION_DATE, PARTITION_ID, RES_DELETED_AT, RES_VERSION, HAS_TAGS, RES_PUBLISHED, RES_UPDATED, RES_ENCODING, RES_TEXT, RES_ID, RES_TYPE, RES_VER) VALUES (1796, NULL, NULL, NULL, 'R4', FALSE, '2023-05-01 15:26:12.422', '2023-05-01 15:26:12.422', 'JSONC', 1407382, 1796, 'CONCEPTMAP', 1);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (1, 'HAPI-EMPI', NULL, 'HTTPS://HAPIFHIR.ORG/NAMINGSYSTEM/MANAGING-EMPI-SYSTEM', 0);
|
||||
INSERT INTO HFJ_TAG_DEF (TAG_ID, TAG_CODE, TAG_DISPLAY, TAG_SYSTEM, TAG_TYPE) VALUES (2, 'IN_MEMORY', 'IN-MEMORY', 'HTTP://HAPIFHIR.IO/FHIR/STRUCTUREDEFINITION/SUBSCRIPTION-MATCHING-STRATEGY', 0);
|
||||
INSERT INTO HFJ_HISTORY_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_VER_PID, RES_ID, RES_TYPE) VALUES (2, NULL, NULL, 1, 1803, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_IDX_CMP_STRING_UNIQ (PID, PARTITION_DATE, PARTITION_ID, IDX_STRING, RES_ID) VALUES (1, NULL, NULL, 'ENCOUNTER?SUBJECT=PATIENT%2F1628', 1631);
|
||||
INSERT INTO HFJ_PARTITION (PART_ID, PART_DESC, PART_NAME) VALUES (0, 'DEFAULT PARTITION', 'DEFAULT');
|
||||
INSERT INTO HFJ_RES_LINK (PID, PARTITION_DATE, PARTITION_ID, SRC_PATH, SRC_RESOURCE_ID, SOURCE_RESOURCE_TYPE, TARGET_RESOURCE_ID, TARGET_RESOURCE_TYPE, TARGET_RESOURCE_URL, SP_UPDATED) VALUES (700, NULL, NULL, 'RISKASSESSMENT.SUBJECT.WHERE(RESOLVE() IS PATIENT)', 2029, 'RISKASSESSMENT', 1628, 'PATIENT', NULL, '2023-05-01 17:01:12.921');
|
||||
INSERT INTO HFJ_RES_PARAM_PRESENT (PID, PARTITION_DATE, PARTITION_ID, HASH_PRESENCE, SP_PRESENT, RES_ID) VALUES (59, NULL, NULL, 258059053311458882, FALSE, 4);
|
||||
INSERT INTO HFJ_RES_REINDEX_JOB (PID, JOB_DELETED, REINDEX_COUNT, RES_TYPE, SUSPENDED_UNTIL, UPDATE_THRESHOLD_HIGH, UPDATE_THRESHOLD_LOW) VALUES (2, FALSE, NULL, NULL, NULL, '2023-05-01 17:21:20.208', NULL);
|
||||
INSERT INTO HFJ_RES_TAG (PID, PARTITION_DATE, PARTITION_ID, TAG_ID, RES_ID, RES_TYPE) VALUES (1, NULL, NULL, 2, 1803, 'SUBSCRIPTION');
|
||||
INSERT INTO HFJ_RES_VER_PROV (RES_VER_PID, PARTITION_DATE, PARTITION_ID, REQUEST_ID, SOURCE_URI, RES_PID) VALUES (2003, NULL, NULL, 'JPQP0AGF9EULQGBF', NULL, 2003);
|
||||
INSERT INTO HFJ_SEARCH (PID, CREATED, SEARCH_DELETED, EXPIRY_OR_NULL, FAILURE_CODE, FAILURE_MESSAGE, LAST_UPDATED_HIGH, LAST_UPDATED_LOW, NUM_BLOCKED, NUM_FOUND, PREFERRED_PAGE_SIZE, RESOURCE_ID, RESOURCE_TYPE, SEARCH_PARAM_MAP, SEARCH_QUERY_STRING, SEARCH_QUERY_STRING_HASH, SEARCH_TYPE, SEARCH_STATUS, TOTAL_COUNT, SEARCH_UUID, OPTLOCK_VERSION) VALUES (52, '2023-05-01 16:52:09.149', FALSE, NULL, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, 'MEDICATIONREQUEST', NULL, '1415634', 1212873581, 1, 'FINISHED', 1, '7878637B-ECC4-4305-AA3E-DBD83ABF8B74', 1);
|
||||
INSERT INTO HFJ_SEARCH_INCLUDE (PID, SEARCH_INCLUDE, INC_RECURSE, REVINCLUDE, SEARCH_PID) VALUES (1, 'MEDICATIONREQUEST:REQUESTER', FALSE, FALSE, 52);
|
||||
INSERT INTO HFJ_SEARCH_RESULT (PID, SEARCH_ORDER, RESOURCE_PID, SEARCH_PID) VALUES (1, 0, 1730, 52);
|
||||
INSERT INTO HFJ_SPIDX_COORDS (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE) VALUES (1, NULL, NULL, FALSE, 'NEAR', 1910, 'LOCATION', '2023-05-01 16:11:07.727', -4485701151501643365, 40, 80);
|
||||
INSERT INTO HFJ_SPIDX_DATE (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE_HIGH, SP_VALUE_HIGH_DATE_ORDINAL, SP_VALUE_LOW, SP_VALUE_LOW_DATE_ORDINAL) VALUES (307, NULL, NULL, TRUE, 'DATE', 4, 'SEARCHPARAMETER', NULL, -1621943171043343906, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_NUMBER (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, SP_VALUE) VALUES (52, NULL, NULL, FALSE, 'PROBABILITY', 2029, 'RISKASSESSMENT', '2023-05-01 17:01:12.921', -6990983917964109290, 0.00);
|
||||
INSERT INTO HFJ_SPIDX_QUANTITY (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_IDENTITY_AND_UNITS, HASH_IDENTITY_SYS_UNITS, SP_SYSTEM, SP_UNITS, SP_VALUE) VALUES (255, NULL, NULL, TRUE, 'CONTEXT-QUANTITY', 4, 'SEARCHPARAMETER', NULL, 6827792128454970868, -7371645208023277835, -6667842829396531841, NULL, NULL, NULL);
|
||||
INSERT INTO HFJ_SPIDX_STRING (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_EXACT, HASH_IDENTITY, HASH_NORM_PREFIX, SP_VALUE_EXACT, SP_VALUE_NORMALIZED) VALUES (1, NULL, NULL, FALSE, 'DESCRIPTION', 4, 'SEARCHPARAMETER', '2023-05-01 15:22:38.624', -2984939037050966085, -2891289766040777762, 6207609638364343311, 'APPOINTMENT DATE/TIME.', 'APPOINTMENT DATE/TIME.');
|
||||
INSERT INTO HFJ_SPIDX_TOKEN (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_SYS, HASH_SYS_AND_VALUE, HASH_VALUE, SP_SYSTEM, SP_VALUE) VALUES (3, NULL, NULL, FALSE, 'TYPE', 4, 'SEARCHPARAMETER', '2023-05-01 15:22:38.624', -505122241748101416, 4662843418098322756, 1440387303491618185, -4956097025963235395, 'HTTP://HL7.ORG/FHIR/SEARCH-PARAM-TYPE', 'DATE');
|
||||
INSERT INTO HFJ_SPIDX_URI (SP_ID, PARTITION_DATE, PARTITION_ID, SP_MISSING, SP_NAME, RES_ID, RES_TYPE, SP_UPDATED, HASH_IDENTITY, HASH_URI, SP_URI) VALUES (158, NULL, NULL, TRUE, 'URL', 4, 'SEARCHPARAMETER', NULL, -6027921678034716286, -5668077322898471643, NULL);
|
||||
INSERT INTO HFJ_SUBSCRIPTION_STATS (PID, CREATED_TIME, RES_ID) VALUES (1, '2023-05-01 15:39:23.038', 1803);
|
||||
INSERT INTO NPM_PACKAGE (PID, CUR_VERSION_ID, PACKAGE_DESC, PACKAGE_ID, UPDATED_TIME) VALUES (1, '1.0.1', NULL, 'COM.EXAMPLE.IG', '2023-05-01 15:22:37.946');
|
||||
INSERT INTO NPM_PACKAGE_VER (PID, CURRENT_VERSION, PKG_DESC, DESC_UPPER, FHIR_VERSION, FHIR_VERSION_ID, PACKAGE_ID, PACKAGE_SIZE_BYTES, SAVED_TIME, UPDATED_TIME, VERSION_ID, PACKAGE_PID, BINARY_RES_ID) VALUES (1, TRUE, NULL, NULL, 'R4', '4.0.1', 'COM.EXAMPLE.IG', 370, '2023-05-01 15:22:37.957', '2023-05-01 15:22:37.959', '1.0.1', 1, 1);
|
||||
INSERT INTO NPM_PACKAGE_VER_RES (PID, CANONICAL_URL, CANONICAL_VERSION, FILE_DIR, FHIR_VERSION, FHIR_VERSION_ID, FILE_NAME, RES_SIZE_BYTES, RES_TYPE, UPDATED_TIME, PACKVER_PID, BINARY_RES_ID) VALUES (1, NULL, NULL, 'PACKAGE', 'R4', '4.0.1', 'TESTPATIENT.JSON', 225, 'PATIENT', '2023-05-01 15:22:38.057', 1, 2);
|
||||
INSERT INTO TRM_CODESYSTEM (PID, CODE_SYSTEM_URI, CURRENT_VERSION_PID, CS_NAME, RES_ID) VALUES (1, 'HTTP://LOINC.ORG', 54, 'LOINC', 1780);
|
||||
INSERT INTO TRM_CODESYSTEM_VER (PID, CS_DISPLAY, CODESYSTEM_PID, CS_VERSION_ID, RES_ID) VALUES (54, 'LOINC', 1, NULL, 1780);
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (150, 'LL1001-8', 54, 'V2.67 PHENX05_14_30D FREQ AMTS', 1, '1415721', NULL, '2023-05-01 17:02:39.139');
|
||||
INSERT INTO TRM_CONCEPT (PID, CODEVAL, CODESYSTEM_PID, DISPLAY, INDEX_STATUS, PARENT_PIDS, CODE_SEQUENCE, CONCEPT_UPDATED) VALUES (151, 'LA13892-7', 54, 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 1, '1415722', 3, '2023-05-01 17:02:39.14');
|
||||
INSERT INTO TRM_CONCEPT_DESIG (PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, CS_VER_PID, CONCEPT_PID) VALUES (105, 'NL', '900000000000013009', 'SYNONYM', 'HTTP://SNOMED.INFO/SCT', 'SYSTOLISCHE BLOEDDRUK - EXPIRATIE', 54, 150);
|
||||
INSERT INTO TRM_CONCEPT_MAP (PID, RES_ID, SOURCE_URL, TARGET_URL, URL) VALUES (54, 1796, NULL, NULL, 'HTTP://LOINC.ORG/CM/LOINC-PARTS-TO-PUBCHEM');
|
||||
INSERT INTO TRM_CONCEPT_MAP_GROUP (PID, CONCEPT_MAP_URL, SOURCE_URL, SOURCE_VS, SOURCE_VERSION, TARGET_URL, TARGET_VS, TARGET_VERSION, CONCEPT_MAP_PID) VALUES (54, NULL, 'HTTP://LOINC.ORG', NULL, NULL, 'HTTP://PUBCHEM.NCBI.NLM.NIH.GOV', NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELEMENT (PID, SOURCE_CODE, CONCEPT_MAP_URL, SOURCE_DISPLAY, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GROUP_PID) VALUES (60, 'LP15842-5', NULL, 'PYRIDOXINE', NULL, NULL, NULL, 54);
|
||||
INSERT INTO TRM_CONCEPT_MAP_GRP_ELM_TGT (PID, TARGET_CODE, CONCEPT_MAP_URL, TARGET_DISPLAY, TARGET_EQUIVALENCE, SYSTEM_URL, SYSTEM_VERSION, VALUESET_URL, CONCEPT_MAP_GRP_ELM_PID) VALUES (60, '1054', NULL, 'PYRIDOXINE', 'EQUAL', NULL, NULL, NULL, 60);
|
||||
INSERT INTO TRM_CONCEPT_PC_LINK (PID, CHILD_PID, CODESYSTEM_PID, PARENT_PID, REL_TYPE) VALUES (54, 150, 54, 151, 0);
|
||||
INSERT INTO TRM_CONCEPT_PROPERTY (PID, PROP_CODESYSTEM, PROP_DISPLAY, PROP_KEY, PROP_TYPE, PROP_VAL, PROP_VAL_LOB, CS_VER_PID, CONCEPT_PID) VALUES (152, NULL, NULL, 'CLASSTYPE', 0, '2', NULL, 54, 150);
|
||||
INSERT INTO TRM_VALUESET (PID, EXPANSION_STATUS, VSNAME, RES_ID, TOTAL_CONCEPT_DESIGNATIONS, TOTAL_CONCEPTS, URL) VALUES (59, 'EXPANDED', 'LOINC UNIVERSAL ORDER SET', 1788, 0, 0, 'HTTP://LOINC.ORG/VS/LOINC-UNIVERSAL-ORDER-SET');
|
||||
INSERT INTO TRM_VALUESET_CONCEPT (PID, CODEVAL, DISPLAY, VALUESET_ORDER, SYSTEM_URL, VALUESET_PID) VALUES (176, 'LA13892-7', 'V2.67 MORE THAN 2 SLICES OR 2 DINNER ROLLS', 0, 'HTTP://LOINC.ORG', 59);
|
||||
INSERT INTO TRM_VALUESET_C_DESIGNATION (PID, VALUESET_CONCEPT_PID, LANG, USE_CODE, USE_DISPLAY, USE_SYSTEM, VAL, VALUESET_PID) VALUES (4, 176, NULL, NULL, NULL, NULL, 'NM THYROID STUDY REPORT', 59);
|
|
@ -0,0 +1,971 @@
|
|||
create sequence SEQ_BLKEXCOL_PID start with 1 increment by 50;
|
||||
create sequence SEQ_BLKEXCOLFILE_PID start with 1 increment by 50;
|
||||
create sequence SEQ_BLKEXJOB_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CNCPT_MAP_GRP_ELM_TGT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CODESYSTEM_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CODESYSTEMVER_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_DESIG_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GROUP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GRP_ELM_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PC_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PROP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_EMPI_LINK_ID start with 1 increment by 50;
|
||||
create sequence SEQ_FORCEDID_ID start with 1 increment by 50;
|
||||
create sequence SEQ_HISTORYTAG_ID start with 1 increment by 50;
|
||||
create sequence SEQ_IDXCMPSTRUNIQ_ID start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACK start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACKVER start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACKVERRES start with 1 increment by 50;
|
||||
create sequence SEQ_RES_REINDEX_JOB start with 1 increment by 50;
|
||||
create sequence SEQ_RESLINK_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESOURCE_HISTORY_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESOURCE_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESPARMPRESENT_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESTAG_ID start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH_INC start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH_RES start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_COORDS start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_DATE start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_NUMBER start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_QUANTITY start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_STRING start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_TOKEN start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_URI start with 1 increment by 50;
|
||||
create sequence SEQ_SUBSCRIPTION_ID start with 1 increment by 50;
|
||||
create sequence SEQ_TAGDEF_ID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_C_DSGNTN_PID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_CONCEPT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_PID start with 1 increment by 50;
|
||||
|
||||
|
||||
CREATE TABLE "FLY_HFJ_MIGRATION" (
|
||||
"installed_rank" integer NOT NULL,
|
||||
"version" varchar(50),
|
||||
"description" varchar(200) NOT NULL,
|
||||
"type" varchar(20) NOT NULL,
|
||||
"script" varchar(1000) NOT NULL,
|
||||
"checksum" integer,
|
||||
"installed_by" varchar(100) NOT NULL,
|
||||
"installed_on" timestamp NOT NULL,
|
||||
"execution_time" integer NOT NULL,
|
||||
"success" boolean NOT NULL
|
||||
);
|
||||
|
||||
create table HFJ_BINARY_STORAGE_BLOB (
|
||||
BLOB_ID varchar(200) not null,
|
||||
BLOB_DATA blob not null,
|
||||
CONTENT_TYPE varchar(100) not null,
|
||||
BLOB_HASH varchar(128),
|
||||
PUBLISHED_DATE timestamp not null,
|
||||
RESOURCE_ID varchar(100) not null,
|
||||
BLOB_SIZE integer,
|
||||
primary key (BLOB_ID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLFILE (
|
||||
PID bigint not null,
|
||||
RES_ID varchar(100) not null,
|
||||
COLLECTION_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLLECTION (
|
||||
PID bigint not null,
|
||||
TYPE_FILTER varchar(1000),
|
||||
RES_TYPE varchar(40) not null,
|
||||
OPTLOCK integer not null,
|
||||
JOB_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_JOB (
|
||||
PID bigint not null,
|
||||
CREATED_TIME timestamp not null,
|
||||
EXP_TIME timestamp not null,
|
||||
JOB_ID varchar(36) not null,
|
||||
REQUEST varchar(500) not null,
|
||||
EXP_SINCE timestamp,
|
||||
JOB_STATUS varchar(10) not null,
|
||||
STATUS_MESSAGE varchar(500),
|
||||
STATUS_TIME timestamp not null,
|
||||
OPTLOCK integer not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_FORCED_ID (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
FORCED_ID varchar(100) not null,
|
||||
RESOURCE_PID bigint not null,
|
||||
RESOURCE_TYPE varchar(100) default '',
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_HISTORY_TAG (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
TAG_ID bigint,
|
||||
RES_VER_PID bigint not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_IDX_CMP_STRING_UNIQ (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
IDX_STRING varchar(200) not null,
|
||||
RES_ID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_PARTITION (
|
||||
PART_ID integer not null,
|
||||
PART_DESC varchar(200),
|
||||
PART_NAME varchar(200) not null,
|
||||
primary key (PART_ID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_LINK (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SRC_PATH varchar(200) not null,
|
||||
SRC_RESOURCE_ID bigint not null,
|
||||
SOURCE_RESOURCE_TYPE varchar(40) not null,
|
||||
TARGET_RESOURCE_ID bigint,
|
||||
TARGET_RESOURCE_TYPE varchar(40) not null,
|
||||
TARGET_RESOURCE_URL varchar(200),
|
||||
SP_UPDATED timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_PARAM_PRESENT (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
HASH_PRESENCE bigint,
|
||||
SP_PRESENT boolean not null,
|
||||
RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_REINDEX_JOB (
|
||||
PID bigint not null,
|
||||
JOB_DELETED boolean not null,
|
||||
REINDEX_COUNT integer,
|
||||
RES_TYPE varchar(100),
|
||||
SUSPENDED_UNTIL timestamp,
|
||||
UPDATE_THRESHOLD_HIGH timestamp not null,
|
||||
UPDATE_THRESHOLD_LOW timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_TAG (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
TAG_ID bigint,
|
||||
RES_ID bigint,
|
||||
RES_TYPE varchar(40) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
RES_DELETED_AT timestamp,
|
||||
RES_VERSION varchar(7),
|
||||
HAS_TAGS boolean not null,
|
||||
RES_PUBLISHED timestamp not null,
|
||||
RES_UPDATED timestamp not null,
|
||||
RES_ENCODING varchar(5) not null,
|
||||
RES_TEXT blob,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
RES_VER bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER_PROV (
|
||||
RES_VER_PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
REQUEST_ID varchar(16),
|
||||
SOURCE_URI varchar(100),
|
||||
RES_PID bigint not null,
|
||||
primary key (RES_VER_PID)
|
||||
);
|
||||
|
||||
create table HFJ_RESOURCE (
|
||||
RES_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
RES_DELETED_AT timestamp,
|
||||
RES_VERSION varchar(7),
|
||||
HAS_TAGS boolean not null,
|
||||
RES_PUBLISHED timestamp not null,
|
||||
RES_UPDATED timestamp not null,
|
||||
SP_HAS_LINKS boolean,
|
||||
HASH_SHA256 varchar(64),
|
||||
SP_INDEX_STATUS bigint,
|
||||
RES_LANGUAGE varchar(20),
|
||||
SP_CMPSTR_UNIQ_PRESENT boolean,
|
||||
SP_COORDS_PRESENT boolean,
|
||||
SP_DATE_PRESENT boolean,
|
||||
SP_NUMBER_PRESENT boolean,
|
||||
SP_QUANTITY_PRESENT boolean,
|
||||
SP_STRING_PRESENT boolean,
|
||||
SP_TOKEN_PRESENT boolean,
|
||||
SP_URI_PRESENT boolean,
|
||||
RES_TYPE varchar(40) not null,
|
||||
RES_VER bigint,
|
||||
primary key (RES_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH (
|
||||
PID bigint not null,
|
||||
CREATED timestamp not null,
|
||||
SEARCH_DELETED boolean,
|
||||
EXPIRY_OR_NULL timestamp,
|
||||
FAILURE_CODE integer,
|
||||
FAILURE_MESSAGE varchar(500),
|
||||
LAST_UPDATED_HIGH timestamp,
|
||||
LAST_UPDATED_LOW timestamp,
|
||||
NUM_BLOCKED integer,
|
||||
NUM_FOUND integer not null,
|
||||
PREFERRED_PAGE_SIZE integer,
|
||||
RESOURCE_ID bigint,
|
||||
RESOURCE_TYPE varchar(200),
|
||||
SEARCH_PARAM_MAP blob,
|
||||
SEARCH_QUERY_STRING clob,
|
||||
SEARCH_QUERY_STRING_HASH integer,
|
||||
SEARCH_TYPE integer not null,
|
||||
SEARCH_STATUS varchar(10) not null,
|
||||
TOTAL_COUNT integer,
|
||||
SEARCH_UUID varchar(36) not null,
|
||||
OPTLOCK_VERSION integer,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_INCLUDE (
|
||||
PID bigint not null,
|
||||
SEARCH_INCLUDE varchar(200) not null,
|
||||
INC_RECURSE boolean not null,
|
||||
REVINCLUDE boolean not null,
|
||||
SEARCH_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_RESULT (
|
||||
PID bigint not null,
|
||||
SEARCH_ORDER integer not null,
|
||||
RESOURCE_PID bigint not null,
|
||||
SEARCH_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_COORDS (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY bigint,
|
||||
SP_LATITUDE double,
|
||||
SP_LONGITUDE double,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_DATE (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY bigint,
|
||||
SP_VALUE_HIGH timestamp,
|
||||
SP_VALUE_HIGH_DATE_ORDINAL integer,
|
||||
SP_VALUE_LOW timestamp,
|
||||
SP_VALUE_LOW_DATE_ORDINAL integer,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_NUMBER (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY bigint,
|
||||
SP_VALUE decimal(19,2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_QUANTITY (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_IDENTITY_AND_UNITS bigint,
|
||||
HASH_IDENTITY_SYS_UNITS bigint,
|
||||
SP_SYSTEM varchar(200),
|
||||
SP_UNITS varchar(200),
|
||||
SP_VALUE decimal(19,2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_STRING (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_EXACT bigint,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_NORM_PREFIX bigint,
|
||||
SP_VALUE_EXACT varchar(200),
|
||||
SP_VALUE_NORMALIZED varchar(200),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_TOKEN (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_SYS bigint,
|
||||
HASH_SYS_AND_VALUE bigint,
|
||||
HASH_VALUE bigint,
|
||||
SP_SYSTEM varchar(200),
|
||||
SP_VALUE varchar(200),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_URI (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID integer,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_URI bigint,
|
||||
SP_URI varchar(254),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SUBSCRIPTION_STATS (
|
||||
PID bigint not null,
|
||||
CREATED_TIME timestamp not null,
|
||||
RES_ID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_TAG_DEF (
|
||||
TAG_ID bigint not null,
|
||||
TAG_CODE varchar(200),
|
||||
TAG_DISPLAY varchar(200),
|
||||
TAG_SYSTEM varchar(200),
|
||||
TAG_TYPE integer not null,
|
||||
primary key (TAG_ID)
|
||||
);
|
||||
|
||||
create table MPI_LINK (
|
||||
PID bigint not null,
|
||||
CREATED timestamp not null,
|
||||
EID_MATCH boolean,
|
||||
TARGET_TYPE varchar(40),
|
||||
LINK_SOURCE integer not null,
|
||||
MATCH_RESULT integer not null,
|
||||
NEW_PERSON boolean,
|
||||
PERSON_PID bigint not null,
|
||||
SCORE double,
|
||||
TARGET_PID bigint not null,
|
||||
UPDATED timestamp not null,
|
||||
VECTOR bigint,
|
||||
VERSION varchar(16) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE (
|
||||
PID bigint not null,
|
||||
CUR_VERSION_ID varchar(200),
|
||||
PACKAGE_DESC varchar(200),
|
||||
PACKAGE_ID varchar(200) not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER (
|
||||
PID bigint not null,
|
||||
CURRENT_VERSION boolean not null,
|
||||
PKG_DESC varchar(200),
|
||||
DESC_UPPER varchar(200),
|
||||
FHIR_VERSION varchar(10) not null,
|
||||
FHIR_VERSION_ID varchar(10) not null,
|
||||
PACKAGE_ID varchar(200) not null,
|
||||
PACKAGE_SIZE_BYTES bigint not null,
|
||||
SAVED_TIME timestamp not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
VERSION_ID varchar(200) not null,
|
||||
PACKAGE_PID bigint not null,
|
||||
BINARY_RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER_RES (
|
||||
PID bigint not null,
|
||||
CANONICAL_URL varchar(200),
|
||||
CANONICAL_VERSION varchar(200),
|
||||
FILE_DIR varchar(200),
|
||||
FHIR_VERSION varchar(10) not null,
|
||||
FHIR_VERSION_ID varchar(10) not null,
|
||||
FILE_NAME varchar(200),
|
||||
RES_SIZE_BYTES bigint not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
PACKVER_PID bigint not null,
|
||||
BINARY_RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM (
|
||||
PID bigint not null,
|
||||
CODE_SYSTEM_URI varchar(200) not null,
|
||||
CURRENT_VERSION_PID bigint,
|
||||
CS_NAME varchar(200),
|
||||
RES_ID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM_VER (
|
||||
PID bigint not null,
|
||||
CS_DISPLAY varchar(200),
|
||||
CODESYSTEM_PID bigint,
|
||||
CS_VERSION_ID varchar(200),
|
||||
RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT (
|
||||
PID bigint not null,
|
||||
CODEVAL varchar(500) not null,
|
||||
CODESYSTEM_PID bigint,
|
||||
DISPLAY varchar(400),
|
||||
INDEX_STATUS bigint,
|
||||
PARENT_PIDS clob,
|
||||
CODE_SEQUENCE integer,
|
||||
CONCEPT_UPDATED timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_DESIG (
|
||||
PID bigint not null,
|
||||
LANG varchar(500),
|
||||
USE_CODE varchar(500),
|
||||
USE_DISPLAY varchar(500),
|
||||
USE_SYSTEM varchar(500),
|
||||
VAL varchar(2000) not null,
|
||||
CS_VER_PID bigint,
|
||||
CONCEPT_PID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP (
|
||||
PID bigint not null,
|
||||
RES_ID bigint,
|
||||
SOURCE_URL varchar(200),
|
||||
TARGET_URL varchar(200),
|
||||
URL varchar(200) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GROUP (
|
||||
PID bigint not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
SOURCE_URL varchar(200) not null,
|
||||
SOURCE_VS varchar(200),
|
||||
SOURCE_VERSION varchar(200),
|
||||
TARGET_URL varchar(200) not null,
|
||||
TARGET_VS varchar(200),
|
||||
TARGET_VERSION varchar(200),
|
||||
CONCEPT_MAP_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELEMENT (
|
||||
PID bigint not null,
|
||||
SOURCE_CODE varchar(500) not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
SOURCE_DISPLAY varchar(400),
|
||||
SYSTEM_URL varchar(200),
|
||||
SYSTEM_VERSION varchar(200),
|
||||
VALUESET_URL varchar(200),
|
||||
CONCEPT_MAP_GROUP_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELM_TGT (
|
||||
PID bigint not null,
|
||||
TARGET_CODE varchar(500) not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
TARGET_DISPLAY varchar(400),
|
||||
TARGET_EQUIVALENCE varchar(50),
|
||||
SYSTEM_URL varchar(200),
|
||||
SYSTEM_VERSION varchar(200),
|
||||
VALUESET_URL varchar(200),
|
||||
CONCEPT_MAP_GRP_ELM_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PC_LINK (
|
||||
PID bigint not null,
|
||||
CHILD_PID bigint,
|
||||
CODESYSTEM_PID bigint not null,
|
||||
PARENT_PID bigint,
|
||||
REL_TYPE integer,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PROPERTY (
|
||||
PID bigint not null,
|
||||
PROP_CODESYSTEM varchar(500),
|
||||
PROP_DISPLAY varchar(500),
|
||||
PROP_KEY varchar(500) not null,
|
||||
PROP_TYPE integer not null,
|
||||
PROP_VAL varchar(500),
|
||||
PROP_VAL_LOB blob,
|
||||
CS_VER_PID bigint,
|
||||
CONCEPT_PID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET (
|
||||
PID bigint not null,
|
||||
EXPANSION_STATUS varchar(50) not null,
|
||||
VSNAME varchar(200),
|
||||
RES_ID bigint,
|
||||
TOTAL_CONCEPT_DESIGNATIONS bigint default 0 not null,
|
||||
TOTAL_CONCEPTS bigint default 0 not null,
|
||||
URL varchar(200) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_C_DESIGNATION (
|
||||
PID bigint not null,
|
||||
VALUESET_CONCEPT_PID bigint not null,
|
||||
LANG varchar(500),
|
||||
USE_CODE varchar(500),
|
||||
USE_DISPLAY varchar(500),
|
||||
USE_SYSTEM varchar(500),
|
||||
VAL varchar(2000) not null,
|
||||
VALUESET_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_CONCEPT (
|
||||
PID bigint not null,
|
||||
CODEVAL varchar(500) not null,
|
||||
DISPLAY varchar(400),
|
||||
VALUESET_ORDER integer not null,
|
||||
SYSTEM_URL varchar(200) not null,
|
||||
VALUESET_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
create index IDX_BLKEX_EXPTIME on HFJ_BLK_EXPORT_JOB (EXP_TIME);
|
||||
|
||||
alter table HFJ_BLK_EXPORT_JOB
|
||||
add constraint IDX_BLKEX_JOB_ID unique (JOB_ID);
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_RESID unique (RESOURCE_PID);
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_TYPE_FID unique (RESOURCE_TYPE, FORCED_ID);
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint IDX_RESHISTTAG_TAGID unique (RES_VER_PID, TAG_ID);
|
||||
create index IDX_IDXCMPSTRUNIQ_RESOURCE on HFJ_IDX_CMP_STRING_UNIQ (RES_ID);
|
||||
|
||||
alter table HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint IDX_IDXCMPSTRUNIQ_STRING unique (IDX_STRING);
|
||||
|
||||
alter table HFJ_PARTITION
|
||||
add constraint IDX_PART_NAME unique (PART_NAME);
|
||||
create index IDX_RL_TPATHRES on HFJ_RES_LINK (SRC_PATH, TARGET_RESOURCE_ID);
|
||||
create index IDX_RL_SRC on HFJ_RES_LINK (SRC_RESOURCE_ID);
|
||||
create index IDX_RL_DEST on HFJ_RES_LINK (TARGET_RESOURCE_ID);
|
||||
create index IDX_RESPARMPRESENT_RESID on HFJ_RES_PARAM_PRESENT (RES_ID);
|
||||
create index IDX_RESPARMPRESENT_HASHPRES on HFJ_RES_PARAM_PRESENT (HASH_PRESENCE);
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint IDX_RESTAG_TAGID unique (RES_ID, TAG_ID);
|
||||
create index IDX_RESVER_TYPE_DATE on HFJ_RES_VER (RES_TYPE, RES_UPDATED);
|
||||
create index IDX_RESVER_ID_DATE on HFJ_RES_VER (RES_ID, RES_UPDATED);
|
||||
create index IDX_RESVER_DATE on HFJ_RES_VER (RES_UPDATED);
|
||||
|
||||
alter table HFJ_RES_VER
|
||||
add constraint IDX_RESVER_ID_VER unique (RES_ID, RES_VER);
|
||||
create index IDX_RESVERPROV_SOURCEURI on HFJ_RES_VER_PROV (SOURCE_URI);
|
||||
create index IDX_RESVERPROV_REQUESTID on HFJ_RES_VER_PROV (REQUEST_ID);
|
||||
create index IDX_RES_DATE on HFJ_RESOURCE (RES_UPDATED);
|
||||
create index IDX_RES_LANG on HFJ_RESOURCE (RES_TYPE, RES_LANGUAGE);
|
||||
create index IDX_RES_TYPE on HFJ_RESOURCE (RES_TYPE);
|
||||
create index IDX_INDEXSTATUS on HFJ_RESOURCE (SP_INDEX_STATUS);
|
||||
create index IDX_SEARCH_RESTYPE_HASHS on HFJ_SEARCH (RESOURCE_TYPE, SEARCH_QUERY_STRING_HASH, CREATED);
|
||||
create index IDX_SEARCH_CREATED on HFJ_SEARCH (CREATED);
|
||||
|
||||
alter table HFJ_SEARCH
|
||||
add constraint IDX_SEARCH_UUID unique (SEARCH_UUID);
|
||||
|
||||
alter table HFJ_SEARCH_RESULT
|
||||
add constraint IDX_SEARCHRES_ORDER unique (SEARCH_PID, SEARCH_ORDER);
|
||||
create index IDX_SP_COORDS_HASH on HFJ_SPIDX_COORDS (HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE);
|
||||
create index IDX_SP_COORDS_UPDATED on HFJ_SPIDX_COORDS (SP_UPDATED);
|
||||
create index IDX_SP_COORDS_RESID on HFJ_SPIDX_COORDS (RES_ID);
|
||||
create index IDX_SP_DATE_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW, SP_VALUE_HIGH);
|
||||
create index IDX_SP_DATE_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW);
|
||||
create index IDX_SP_DATE_ORD_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL, SP_VALUE_HIGH_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_ORD_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_RESID on HFJ_SPIDX_DATE (RES_ID);
|
||||
create index IDX_SP_DATE_UPDATED on HFJ_SPIDX_DATE (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_HASH_VAL on HFJ_SPIDX_NUMBER (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_NUMBER_UPDATED on HFJ_SPIDX_NUMBER (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_RESID on HFJ_SPIDX_NUMBER (RES_ID);
|
||||
create index IDX_SP_QUANTITY_HASH on HFJ_SPIDX_QUANTITY (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_UN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_AND_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_SYSUN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_SYS_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_UPDATED on HFJ_SPIDX_QUANTITY (SP_UPDATED);
|
||||
create index IDX_SP_QUANTITY_RESID on HFJ_SPIDX_QUANTITY (RES_ID);
|
||||
create index IDX_SP_STRING_HASH_IDENT on HFJ_SPIDX_STRING (HASH_IDENTITY);
|
||||
create index IDX_SP_STRING_HASH_NRM on HFJ_SPIDX_STRING (HASH_NORM_PREFIX, SP_VALUE_NORMALIZED);
|
||||
create index IDX_SP_STRING_HASH_EXCT on HFJ_SPIDX_STRING (HASH_EXACT);
|
||||
create index IDX_SP_STRING_UPDATED on HFJ_SPIDX_STRING (SP_UPDATED);
|
||||
create index IDX_SP_STRING_RESID on HFJ_SPIDX_STRING (RES_ID);
|
||||
create index IDX_SP_TOKEN_HASH on HFJ_SPIDX_TOKEN (HASH_IDENTITY);
|
||||
create index IDX_SP_TOKEN_HASH_S on HFJ_SPIDX_TOKEN (HASH_SYS);
|
||||
create index IDX_SP_TOKEN_HASH_SV on HFJ_SPIDX_TOKEN (HASH_SYS_AND_VALUE);
|
||||
create index IDX_SP_TOKEN_HASH_V on HFJ_SPIDX_TOKEN (HASH_VALUE);
|
||||
create index IDX_SP_TOKEN_UPDATED on HFJ_SPIDX_TOKEN (SP_UPDATED);
|
||||
create index IDX_SP_TOKEN_RESID on HFJ_SPIDX_TOKEN (RES_ID);
|
||||
create index IDX_SP_URI on HFJ_SPIDX_URI (RES_TYPE, SP_NAME, SP_URI);
|
||||
create index IDX_SP_URI_HASH_IDENTITY on HFJ_SPIDX_URI (HASH_IDENTITY, SP_URI);
|
||||
create index IDX_SP_URI_HASH_URI on HFJ_SPIDX_URI (HASH_URI);
|
||||
create index IDX_SP_URI_RESTYPE_NAME on HFJ_SPIDX_URI (RES_TYPE, SP_NAME);
|
||||
create index IDX_SP_URI_UPDATED on HFJ_SPIDX_URI (SP_UPDATED);
|
||||
create index IDX_SP_URI_COORDS on HFJ_SPIDX_URI (RES_ID);
|
||||
|
||||
alter table HFJ_SUBSCRIPTION_STATS
|
||||
add constraint IDX_SUBSC_RESID unique (RES_ID);
|
||||
|
||||
alter table HFJ_TAG_DEF
|
||||
add constraint IDX_TAGDEF_TYPESYSCODE unique (TAG_TYPE, TAG_SYSTEM, TAG_CODE);
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint IDX_EMPI_PERSON_TGT unique (PERSON_PID, TARGET_PID);
|
||||
|
||||
alter table NPM_PACKAGE
|
||||
add constraint IDX_PACK_ID unique (PACKAGE_ID);
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint IDX_PACKVER unique (PACKAGE_ID, VERSION_ID);
|
||||
create index IDX_PACKVERRES_URL on NPM_PACKAGE_VER_RES (CANONICAL_URL);
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint IDX_CS_CODESYSTEM unique (CODE_SYSTEM_URI);
|
||||
create index IDX_CONCEPT_INDEXSTATUS on TRM_CONCEPT (INDEX_STATUS);
|
||||
create index IDX_CONCEPT_UPDATED on TRM_CONCEPT (CONCEPT_UPDATED);
|
||||
|
||||
alter table TRM_CONCEPT
|
||||
add constraint IDX_CONCEPT_CS_CODE unique (CODESYSTEM_PID, CODEVAL);
|
||||
|
||||
alter table TRM_CONCEPT_MAP
|
||||
add constraint IDX_CONCEPT_MAP_URL unique (URL);
|
||||
create index IDX_CNCPT_MAP_GRP_CD on TRM_CONCEPT_MAP_GRP_ELEMENT (SOURCE_CODE);
|
||||
create index IDX_CNCPT_MP_GRP_ELM_TGT_CD on TRM_CONCEPT_MAP_GRP_ELM_TGT (TARGET_CODE);
|
||||
|
||||
alter table TRM_VALUESET
|
||||
add constraint IDX_VALUESET_URL unique (URL);
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_CS_CD unique (VALUESET_PID, SYSTEM_URL, CODEVAL);
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_ORDER unique (VALUESET_PID, VALUESET_ORDER);
|
||||
|
||||
alter table HFJ_BLK_EXPORT_COLFILE
|
||||
add constraint FK_BLKEXCOLFILE_COLLECT
|
||||
foreign key (COLLECTION_PID)
|
||||
references HFJ_BLK_EXPORT_COLLECTION;
|
||||
|
||||
alter table HFJ_BLK_EXPORT_COLLECTION
|
||||
add constraint FK_BLKEXCOL_JOB
|
||||
foreign key (JOB_PID)
|
||||
references HFJ_BLK_EXPORT_JOB;
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint FK_FORCEDID_RESOURCE
|
||||
foreign key (RESOURCE_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint FKtderym7awj6q8iq5c51xv4ndw
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint FK_HISTORYTAG_HISTORY
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint FK_IDXCMPSTRUNIQ_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_SOURCE
|
||||
foreign key (SRC_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_TARGET
|
||||
foreign key (TARGET_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_PARAM_PRESENT
|
||||
add constraint FK_RESPARMPRES_RESID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint FKbfcjbaftmiwr3rxkwsy23vneo
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint FK_RESTAG_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER
|
||||
add constraint FK_RESOURCE_HISTORY_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RES_PID
|
||||
foreign key (RES_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RESVER_PID
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table HFJ_SEARCH_INCLUDE
|
||||
add constraint FK_SEARCHINC_SEARCH
|
||||
foreign key (SEARCH_PID)
|
||||
references HFJ_SEARCH;
|
||||
|
||||
alter table HFJ_SPIDX_COORDS
|
||||
add constraint FKc97mpk37okwu8qvtceg2nh9vn
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_DATE
|
||||
add constraint FK17s70oa59rm9n61k9thjqrsqm
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_NUMBER
|
||||
add constraint FKcltihnc5tgprj9bhpt7xi5otb
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_QUANTITY
|
||||
add constraint FKn603wjjoi1a6asewxbbd78bi5
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_STRING
|
||||
add constraint FK_SPIDXSTR_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_TOKEN
|
||||
add constraint FK7ulx3j1gg3v7maqrejgc7ybc4
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_URI
|
||||
add constraint FKgxsreutymmfjuwdswv3y887do
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SUBSCRIPTION_STATS
|
||||
add constraint FK_SUBSC_RESOURCE_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint FK_EMPI_LINK_PERSON
|
||||
foreign key (PERSON_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint FK_EMPI_LINK_TARGET
|
||||
foreign key (TARGET_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_PKG
|
||||
foreign key (PACKAGE_PID)
|
||||
references NPM_PACKAGE;
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PACKVERRES_PACKVER
|
||||
foreign key (PACKVER_PID)
|
||||
references NPM_PACKAGE_VER;
|
||||
|
||||
alter table NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PKVR_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_CURVER
|
||||
foreign key (CURRENT_VERSION_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_CS_ID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM;
|
||||
|
||||
alter table TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CONCEPT
|
||||
add constraint FK_CONCEPT_PID_CS_PID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_MAP
|
||||
add constraint FK_TRMCONCEPTMAP_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GROUP
|
||||
add constraint FK_TCMGROUP_CONCEPTMAP
|
||||
foreign key (CONCEPT_MAP_PID)
|
||||
references TRM_CONCEPT_MAP;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GRP_ELEMENT
|
||||
add constraint FK_TCMGELEMENT_GROUP
|
||||
foreign key (CONCEPT_MAP_GROUP_PID)
|
||||
references TRM_CONCEPT_MAP_GROUP;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GRP_ELM_TGT
|
||||
add constraint FK_TCMGETARGET_ELEMENT
|
||||
foreign key (CONCEPT_MAP_GRP_ELM_PID)
|
||||
references TRM_CONCEPT_MAP_GRP_ELEMENT;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CHILD
|
||||
foreign key (CHILD_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CS
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_PARENT
|
||||
foreign key (PARENT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_VALUESET
|
||||
add constraint FK_TRMVALUESET_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VALUESET_CONCEPT_PID
|
||||
foreign key (VALUESET_CONCEPT_PID)
|
||||
references TRM_VALUESET_CONCEPT;
|
||||
|
||||
alter table TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VSCD_VS_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint FK_TRM_VALUESET_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
|
@ -0,0 +1,970 @@
|
|||
create sequence SEQ_BLKEXCOL_PID start with 1 increment by 50;
|
||||
create sequence SEQ_BLKEXCOLFILE_PID start with 1 increment by 50;
|
||||
create sequence SEQ_BLKEXJOB_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CNCPT_MAP_GRP_ELM_TGT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CODESYSTEM_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CODESYSTEMVER_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_DESIG_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GROUP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GRP_ELM_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PC_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PROP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_EMPI_LINK_ID start with 1 increment by 50;
|
||||
create sequence SEQ_FORCEDID_ID start with 1 increment by 50;
|
||||
create sequence SEQ_HISTORYTAG_ID start with 1 increment by 50;
|
||||
create sequence SEQ_IDXCMPSTRUNIQ_ID start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACK start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACKVER start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACKVERRES start with 1 increment by 50;
|
||||
create sequence SEQ_RES_REINDEX_JOB start with 1 increment by 50;
|
||||
create sequence SEQ_RESLINK_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESOURCE_HISTORY_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESOURCE_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESPARMPRESENT_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESTAG_ID start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH_INC start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH_RES start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_COORDS start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_DATE start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_NUMBER start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_QUANTITY start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_STRING start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_TOKEN start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_URI start with 1 increment by 50;
|
||||
create sequence SEQ_SUBSCRIPTION_ID start with 1 increment by 50;
|
||||
create sequence SEQ_TAGDEF_ID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_C_DSGNTN_PID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_CONCEPT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_PID start with 1 increment by 50;
|
||||
|
||||
CREATE TABLE "FLY_HFJ_MIGRATION" (
|
||||
"installed_rank" int NOT NULL,
|
||||
"version" varchar(50),
|
||||
"description" varchar(200) NOT NULL,
|
||||
"type" varchar(20) NOT NULL,
|
||||
"script" varchar(1000) NOT NULL,
|
||||
"checksum" int,
|
||||
"installed_by" varchar(100) NOT NULL,
|
||||
"installed_on" datetime2 NOT NULL,
|
||||
"execution_time" int NOT NULL,
|
||||
"success" bit NOT NULL
|
||||
);
|
||||
|
||||
create table HFJ_BINARY_STORAGE_BLOB (
|
||||
BLOB_ID varchar(200) not null,
|
||||
BLOB_DATA varbinary(MAX) not null,
|
||||
CONTENT_TYPE varchar(100) not null,
|
||||
BLOB_HASH varchar(128),
|
||||
PUBLISHED_DATE datetime2 not null,
|
||||
RESOURCE_ID varchar(100) not null,
|
||||
BLOB_SIZE int,
|
||||
primary key (BLOB_ID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLFILE (
|
||||
PID bigint not null,
|
||||
RES_ID varchar(100) not null,
|
||||
COLLECTION_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLLECTION (
|
||||
PID bigint not null,
|
||||
TYPE_FILTER varchar(1000),
|
||||
RES_TYPE varchar(40) not null,
|
||||
OPTLOCK int not null,
|
||||
JOB_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_JOB (
|
||||
PID bigint not null,
|
||||
CREATED_TIME datetime2 not null,
|
||||
EXP_TIME datetime2 not null,
|
||||
JOB_ID varchar(36) not null,
|
||||
REQUEST varchar(500) not null,
|
||||
EXP_SINCE datetime2,
|
||||
JOB_STATUS varchar(10) not null,
|
||||
STATUS_MESSAGE varchar(500),
|
||||
STATUS_TIME datetime2 not null,
|
||||
OPTLOCK int not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_FORCED_ID (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
FORCED_ID varchar(100) not null,
|
||||
RESOURCE_PID bigint not null,
|
||||
RESOURCE_TYPE varchar(100) default '',
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_HISTORY_TAG (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
TAG_ID bigint,
|
||||
RES_VER_PID bigint not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_IDX_CMP_STRING_UNIQ (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
IDX_STRING varchar(200) not null,
|
||||
RES_ID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_PARTITION (
|
||||
PART_ID int not null,
|
||||
PART_DESC varchar(200),
|
||||
PART_NAME varchar(200) not null,
|
||||
primary key (PART_ID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_LINK (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SRC_PATH varchar(200) not null,
|
||||
SRC_RESOURCE_ID bigint not null,
|
||||
SOURCE_RESOURCE_TYPE varchar(40) not null,
|
||||
TARGET_RESOURCE_ID bigint,
|
||||
TARGET_RESOURCE_TYPE varchar(40) not null,
|
||||
TARGET_RESOURCE_URL varchar(200),
|
||||
SP_UPDATED datetime2,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_PARAM_PRESENT (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
HASH_PRESENCE bigint,
|
||||
SP_PRESENT bit not null,
|
||||
RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_REINDEX_JOB (
|
||||
PID bigint not null,
|
||||
JOB_DELETED bit not null,
|
||||
REINDEX_COUNT int,
|
||||
RES_TYPE varchar(100),
|
||||
SUSPENDED_UNTIL datetime2,
|
||||
UPDATE_THRESHOLD_HIGH datetime2 not null,
|
||||
UPDATE_THRESHOLD_LOW datetime2,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_TAG (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
TAG_ID bigint,
|
||||
RES_ID bigint,
|
||||
RES_TYPE varchar(40) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER (
|
||||
PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
RES_DELETED_AT datetime2,
|
||||
RES_VERSION varchar(7),
|
||||
HAS_TAGS bit not null,
|
||||
RES_PUBLISHED datetime2 not null,
|
||||
RES_UPDATED datetime2 not null,
|
||||
RES_ENCODING varchar(5) not null,
|
||||
RES_TEXT varbinary(MAX),
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
RES_VER bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER_PROV (
|
||||
RES_VER_PID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
REQUEST_ID varchar(16),
|
||||
SOURCE_URI varchar(100),
|
||||
RES_PID bigint not null,
|
||||
primary key (RES_VER_PID)
|
||||
);
|
||||
|
||||
create table HFJ_RESOURCE (
|
||||
RES_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
RES_DELETED_AT datetime2,
|
||||
RES_VERSION varchar(7),
|
||||
HAS_TAGS bit not null,
|
||||
RES_PUBLISHED datetime2 not null,
|
||||
RES_UPDATED datetime2 not null,
|
||||
SP_HAS_LINKS bit,
|
||||
HASH_SHA256 varchar(64),
|
||||
SP_INDEX_STATUS bigint,
|
||||
RES_LANGUAGE varchar(20),
|
||||
SP_CMPSTR_UNIQ_PRESENT bit,
|
||||
SP_COORDS_PRESENT bit,
|
||||
SP_DATE_PRESENT bit,
|
||||
SP_NUMBER_PRESENT bit,
|
||||
SP_QUANTITY_PRESENT bit,
|
||||
SP_STRING_PRESENT bit,
|
||||
SP_TOKEN_PRESENT bit,
|
||||
SP_URI_PRESENT bit,
|
||||
RES_TYPE varchar(40) not null,
|
||||
RES_VER bigint,
|
||||
primary key (RES_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH (
|
||||
PID bigint not null,
|
||||
CREATED datetime2 not null,
|
||||
SEARCH_DELETED bit,
|
||||
EXPIRY_OR_NULL datetime2,
|
||||
FAILURE_CODE int,
|
||||
FAILURE_MESSAGE varchar(500),
|
||||
LAST_UPDATED_HIGH datetime2,
|
||||
LAST_UPDATED_LOW datetime2,
|
||||
NUM_BLOCKED int,
|
||||
NUM_FOUND int not null,
|
||||
PREFERRED_PAGE_SIZE int,
|
||||
RESOURCE_ID bigint,
|
||||
RESOURCE_TYPE varchar(200),
|
||||
SEARCH_PARAM_MAP varbinary(MAX),
|
||||
SEARCH_QUERY_STRING varchar(MAX),
|
||||
SEARCH_QUERY_STRING_HASH int,
|
||||
SEARCH_TYPE int not null,
|
||||
SEARCH_STATUS varchar(10) not null,
|
||||
TOTAL_COUNT int,
|
||||
SEARCH_UUID varchar(36) not null,
|
||||
OPTLOCK_VERSION int,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_INCLUDE (
|
||||
PID bigint not null,
|
||||
SEARCH_INCLUDE varchar(200) not null,
|
||||
INC_RECURSE bit not null,
|
||||
REVINCLUDE bit not null,
|
||||
SEARCH_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_RESULT (
|
||||
PID bigint not null,
|
||||
SEARCH_ORDER int not null,
|
||||
RESOURCE_PID bigint not null,
|
||||
SEARCH_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_COORDS (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_IDENTITY bigint,
|
||||
SP_LATITUDE double precision,
|
||||
SP_LONGITUDE double precision,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_DATE (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_IDENTITY bigint,
|
||||
SP_VALUE_HIGH datetime2,
|
||||
SP_VALUE_HIGH_DATE_ORDINAL int,
|
||||
SP_VALUE_LOW datetime2,
|
||||
SP_VALUE_LOW_DATE_ORDINAL int,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_NUMBER (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_IDENTITY bigint,
|
||||
SP_VALUE numeric(19,2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_QUANTITY (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_IDENTITY_AND_UNITS bigint,
|
||||
HASH_IDENTITY_SYS_UNITS bigint,
|
||||
SP_SYSTEM varchar(200),
|
||||
SP_UNITS varchar(200),
|
||||
SP_VALUE numeric(19,2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_STRING (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_EXACT bigint,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_NORM_PREFIX bigint,
|
||||
SP_VALUE_EXACT varchar(200),
|
||||
SP_VALUE_NORMALIZED varchar(200),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_TOKEN (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_SYS bigint,
|
||||
HASH_SYS_AND_VALUE bigint,
|
||||
HASH_VALUE bigint,
|
||||
SP_SYSTEM varchar(200),
|
||||
SP_VALUE varchar(200),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_URI (
|
||||
SP_ID bigint not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int,
|
||||
SP_MISSING bit not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID bigint not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED datetime2,
|
||||
HASH_IDENTITY bigint,
|
||||
HASH_URI bigint,
|
||||
SP_URI varchar(254),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SUBSCRIPTION_STATS (
|
||||
PID bigint not null,
|
||||
CREATED_TIME datetime2 not null,
|
||||
RES_ID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_TAG_DEF (
|
||||
TAG_ID bigint not null,
|
||||
TAG_CODE varchar(200),
|
||||
TAG_DISPLAY varchar(200),
|
||||
TAG_SYSTEM varchar(200),
|
||||
TAG_TYPE int not null,
|
||||
primary key (TAG_ID)
|
||||
);
|
||||
|
||||
create table MPI_LINK (
|
||||
PID bigint not null,
|
||||
CREATED datetime2 not null,
|
||||
EID_MATCH bit,
|
||||
TARGET_TYPE varchar(40),
|
||||
LINK_SOURCE int not null,
|
||||
MATCH_RESULT int not null,
|
||||
NEW_PERSON bit,
|
||||
PERSON_PID bigint not null,
|
||||
SCORE double precision,
|
||||
TARGET_PID bigint not null,
|
||||
UPDATED datetime2 not null,
|
||||
VECTOR bigint,
|
||||
VERSION varchar(16) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE (
|
||||
PID bigint not null,
|
||||
CUR_VERSION_ID varchar(200),
|
||||
PACKAGE_DESC varchar(200),
|
||||
PACKAGE_ID varchar(200) not null,
|
||||
UPDATED_TIME datetime2 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER (
|
||||
PID bigint not null,
|
||||
CURRENT_VERSION bit not null,
|
||||
PKG_DESC varchar(200),
|
||||
DESC_UPPER varchar(200),
|
||||
FHIR_VERSION varchar(10) not null,
|
||||
FHIR_VERSION_ID varchar(10) not null,
|
||||
PACKAGE_ID varchar(200) not null,
|
||||
PACKAGE_SIZE_BYTES bigint not null,
|
||||
SAVED_TIME datetime2 not null,
|
||||
UPDATED_TIME datetime2 not null,
|
||||
VERSION_ID varchar(200) not null,
|
||||
PACKAGE_PID bigint not null,
|
||||
BINARY_RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER_RES (
|
||||
PID bigint not null,
|
||||
CANONICAL_URL varchar(200),
|
||||
CANONICAL_VERSION varchar(200),
|
||||
FILE_DIR varchar(200),
|
||||
FHIR_VERSION varchar(10) not null,
|
||||
FHIR_VERSION_ID varchar(10) not null,
|
||||
FILE_NAME varchar(200),
|
||||
RES_SIZE_BYTES bigint not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
UPDATED_TIME datetime2 not null,
|
||||
PACKVER_PID bigint not null,
|
||||
BINARY_RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM (
|
||||
PID bigint not null,
|
||||
CODE_SYSTEM_URI varchar(200) not null,
|
||||
CURRENT_VERSION_PID bigint,
|
||||
CS_NAME varchar(200),
|
||||
RES_ID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM_VER (
|
||||
PID bigint not null,
|
||||
CS_DISPLAY varchar(200),
|
||||
CODESYSTEM_PID bigint,
|
||||
CS_VERSION_ID varchar(200),
|
||||
RES_ID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT (
|
||||
PID bigint not null,
|
||||
CODEVAL varchar(500) not null,
|
||||
CODESYSTEM_PID bigint,
|
||||
DISPLAY varchar(400),
|
||||
INDEX_STATUS bigint,
|
||||
PARENT_PIDS varchar(MAX),
|
||||
CODE_SEQUENCE int,
|
||||
CONCEPT_UPDATED datetime2,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_DESIG (
|
||||
PID bigint not null,
|
||||
LANG varchar(500),
|
||||
USE_CODE varchar(500),
|
||||
USE_DISPLAY varchar(500),
|
||||
USE_SYSTEM varchar(500),
|
||||
VAL varchar(2000) not null,
|
||||
CS_VER_PID bigint,
|
||||
CONCEPT_PID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP (
|
||||
PID bigint not null,
|
||||
RES_ID bigint,
|
||||
SOURCE_URL varchar(200),
|
||||
TARGET_URL varchar(200),
|
||||
URL varchar(200) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GROUP (
|
||||
PID bigint not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
SOURCE_URL varchar(200) not null,
|
||||
SOURCE_VS varchar(200),
|
||||
SOURCE_VERSION varchar(200),
|
||||
TARGET_URL varchar(200) not null,
|
||||
TARGET_VS varchar(200),
|
||||
TARGET_VERSION varchar(200),
|
||||
CONCEPT_MAP_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELEMENT (
|
||||
PID bigint not null,
|
||||
SOURCE_CODE varchar(500) not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
SOURCE_DISPLAY varchar(400),
|
||||
SYSTEM_URL varchar(200),
|
||||
SYSTEM_VERSION varchar(200),
|
||||
VALUESET_URL varchar(200),
|
||||
CONCEPT_MAP_GROUP_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELM_TGT (
|
||||
PID bigint not null,
|
||||
TARGET_CODE varchar(500) not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
TARGET_DISPLAY varchar(400),
|
||||
TARGET_EQUIVALENCE varchar(50),
|
||||
SYSTEM_URL varchar(200),
|
||||
SYSTEM_VERSION varchar(200),
|
||||
VALUESET_URL varchar(200),
|
||||
CONCEPT_MAP_GRP_ELM_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PC_LINK (
|
||||
PID bigint not null,
|
||||
CHILD_PID bigint,
|
||||
CODESYSTEM_PID bigint not null,
|
||||
PARENT_PID bigint,
|
||||
REL_TYPE int,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PROPERTY (
|
||||
PID bigint not null,
|
||||
PROP_CODESYSTEM varchar(500),
|
||||
PROP_DISPLAY varchar(500),
|
||||
PROP_KEY varchar(500) not null,
|
||||
PROP_TYPE int not null,
|
||||
PROP_VAL varchar(500),
|
||||
PROP_VAL_LOB varbinary(MAX),
|
||||
CS_VER_PID bigint,
|
||||
CONCEPT_PID bigint,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET (
|
||||
PID bigint not null,
|
||||
EXPANSION_STATUS varchar(50) not null,
|
||||
VSNAME varchar(200),
|
||||
RES_ID bigint,
|
||||
TOTAL_CONCEPT_DESIGNATIONS bigint default 0 not null,
|
||||
TOTAL_CONCEPTS bigint default 0 not null,
|
||||
URL varchar(200) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_C_DESIGNATION (
|
||||
PID bigint not null,
|
||||
VALUESET_CONCEPT_PID bigint not null,
|
||||
LANG varchar(500),
|
||||
USE_CODE varchar(500),
|
||||
USE_DISPLAY varchar(500),
|
||||
USE_SYSTEM varchar(500),
|
||||
VAL varchar(2000) not null,
|
||||
VALUESET_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_CONCEPT (
|
||||
PID bigint not null,
|
||||
CODEVAL varchar(500) not null,
|
||||
DISPLAY varchar(400),
|
||||
VALUESET_ORDER int not null,
|
||||
SYSTEM_URL varchar(200) not null,
|
||||
VALUESET_PID bigint not null,
|
||||
primary key (PID)
|
||||
);
|
||||
create index IDX_BLKEX_EXPTIME on HFJ_BLK_EXPORT_JOB (EXP_TIME);
|
||||
|
||||
alter table HFJ_BLK_EXPORT_JOB
|
||||
add constraint IDX_BLKEX_JOB_ID unique (JOB_ID);
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_RESID unique (RESOURCE_PID);
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_TYPE_FID unique (RESOURCE_TYPE, FORCED_ID);
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint IDX_RESHISTTAG_TAGID unique (RES_VER_PID, TAG_ID);
|
||||
create index IDX_IDXCMPSTRUNIQ_RESOURCE on HFJ_IDX_CMP_STRING_UNIQ (RES_ID);
|
||||
|
||||
alter table HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint IDX_IDXCMPSTRUNIQ_STRING unique (IDX_STRING);
|
||||
|
||||
alter table HFJ_PARTITION
|
||||
add constraint IDX_PART_NAME unique (PART_NAME);
|
||||
create index IDX_RL_TPATHRES on HFJ_RES_LINK (SRC_PATH, TARGET_RESOURCE_ID);
|
||||
create index IDX_RL_SRC on HFJ_RES_LINK (SRC_RESOURCE_ID);
|
||||
create index IDX_RL_DEST on HFJ_RES_LINK (TARGET_RESOURCE_ID);
|
||||
create index IDX_RESPARMPRESENT_RESID on HFJ_RES_PARAM_PRESENT (RES_ID);
|
||||
create index IDX_RESPARMPRESENT_HASHPRES on HFJ_RES_PARAM_PRESENT (HASH_PRESENCE);
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint IDX_RESTAG_TAGID unique (RES_ID, TAG_ID);
|
||||
create index IDX_RESVER_TYPE_DATE on HFJ_RES_VER (RES_TYPE, RES_UPDATED);
|
||||
create index IDX_RESVER_ID_DATE on HFJ_RES_VER (RES_ID, RES_UPDATED);
|
||||
create index IDX_RESVER_DATE on HFJ_RES_VER (RES_UPDATED);
|
||||
|
||||
alter table HFJ_RES_VER
|
||||
add constraint IDX_RESVER_ID_VER unique (RES_ID, RES_VER);
|
||||
create index IDX_RESVERPROV_SOURCEURI on HFJ_RES_VER_PROV (SOURCE_URI);
|
||||
create index IDX_RESVERPROV_REQUESTID on HFJ_RES_VER_PROV (REQUEST_ID);
|
||||
create index IDX_RES_DATE on HFJ_RESOURCE (RES_UPDATED);
|
||||
create index IDX_RES_LANG on HFJ_RESOURCE (RES_TYPE, RES_LANGUAGE);
|
||||
create index IDX_RES_TYPE on HFJ_RESOURCE (RES_TYPE);
|
||||
create index IDX_INDEXSTATUS on HFJ_RESOURCE (SP_INDEX_STATUS);
|
||||
create index IDX_SEARCH_RESTYPE_HASHS on HFJ_SEARCH (RESOURCE_TYPE, SEARCH_QUERY_STRING_HASH, CREATED);
|
||||
create index IDX_SEARCH_CREATED on HFJ_SEARCH (CREATED);
|
||||
|
||||
alter table HFJ_SEARCH
|
||||
add constraint IDX_SEARCH_UUID unique (SEARCH_UUID);
|
||||
|
||||
alter table HFJ_SEARCH_RESULT
|
||||
add constraint IDX_SEARCHRES_ORDER unique (SEARCH_PID, SEARCH_ORDER);
|
||||
create index IDX_SP_COORDS_HASH on HFJ_SPIDX_COORDS (HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE);
|
||||
create index IDX_SP_COORDS_UPDATED on HFJ_SPIDX_COORDS (SP_UPDATED);
|
||||
create index IDX_SP_COORDS_RESID on HFJ_SPIDX_COORDS (RES_ID);
|
||||
create index IDX_SP_DATE_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW, SP_VALUE_HIGH);
|
||||
create index IDX_SP_DATE_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW);
|
||||
create index IDX_SP_DATE_ORD_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL, SP_VALUE_HIGH_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_ORD_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_RESID on HFJ_SPIDX_DATE (RES_ID);
|
||||
create index IDX_SP_DATE_UPDATED on HFJ_SPIDX_DATE (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_HASH_VAL on HFJ_SPIDX_NUMBER (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_NUMBER_UPDATED on HFJ_SPIDX_NUMBER (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_RESID on HFJ_SPIDX_NUMBER (RES_ID);
|
||||
create index IDX_SP_QUANTITY_HASH on HFJ_SPIDX_QUANTITY (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_UN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_AND_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_SYSUN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_SYS_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_UPDATED on HFJ_SPIDX_QUANTITY (SP_UPDATED);
|
||||
create index IDX_SP_QUANTITY_RESID on HFJ_SPIDX_QUANTITY (RES_ID);
|
||||
create index IDX_SP_STRING_HASH_IDENT on HFJ_SPIDX_STRING (HASH_IDENTITY);
|
||||
create index IDX_SP_STRING_HASH_NRM on HFJ_SPIDX_STRING (HASH_NORM_PREFIX, SP_VALUE_NORMALIZED);
|
||||
create index IDX_SP_STRING_HASH_EXCT on HFJ_SPIDX_STRING (HASH_EXACT);
|
||||
create index IDX_SP_STRING_UPDATED on HFJ_SPIDX_STRING (SP_UPDATED);
|
||||
create index IDX_SP_STRING_RESID on HFJ_SPIDX_STRING (RES_ID);
|
||||
create index IDX_SP_TOKEN_HASH on HFJ_SPIDX_TOKEN (HASH_IDENTITY);
|
||||
create index IDX_SP_TOKEN_HASH_S on HFJ_SPIDX_TOKEN (HASH_SYS);
|
||||
create index IDX_SP_TOKEN_HASH_SV on HFJ_SPIDX_TOKEN (HASH_SYS_AND_VALUE);
|
||||
create index IDX_SP_TOKEN_HASH_V on HFJ_SPIDX_TOKEN (HASH_VALUE);
|
||||
create index IDX_SP_TOKEN_UPDATED on HFJ_SPIDX_TOKEN (SP_UPDATED);
|
||||
create index IDX_SP_TOKEN_RESID on HFJ_SPIDX_TOKEN (RES_ID);
|
||||
create index IDX_SP_URI on HFJ_SPIDX_URI (RES_TYPE, SP_NAME, SP_URI);
|
||||
create index IDX_SP_URI_HASH_IDENTITY on HFJ_SPIDX_URI (HASH_IDENTITY, SP_URI);
|
||||
create index IDX_SP_URI_HASH_URI on HFJ_SPIDX_URI (HASH_URI);
|
||||
create index IDX_SP_URI_RESTYPE_NAME on HFJ_SPIDX_URI (RES_TYPE, SP_NAME);
|
||||
create index IDX_SP_URI_UPDATED on HFJ_SPIDX_URI (SP_UPDATED);
|
||||
create index IDX_SP_URI_COORDS on HFJ_SPIDX_URI (RES_ID);
|
||||
|
||||
alter table HFJ_SUBSCRIPTION_STATS
|
||||
add constraint IDX_SUBSC_RESID unique (RES_ID);
|
||||
|
||||
alter table HFJ_TAG_DEF
|
||||
add constraint IDX_TAGDEF_TYPESYSCODE unique (TAG_TYPE, TAG_SYSTEM, TAG_CODE);
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint IDX_EMPI_PERSON_TGT unique (PERSON_PID, TARGET_PID);
|
||||
|
||||
alter table NPM_PACKAGE
|
||||
add constraint IDX_PACK_ID unique (PACKAGE_ID);
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint IDX_PACKVER unique (PACKAGE_ID, VERSION_ID);
|
||||
create index IDX_PACKVERRES_URL on NPM_PACKAGE_VER_RES (CANONICAL_URL);
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint IDX_CS_CODESYSTEM unique (CODE_SYSTEM_URI);
|
||||
create index IDX_CONCEPT_INDEXSTATUS on TRM_CONCEPT (INDEX_STATUS);
|
||||
create index IDX_CONCEPT_UPDATED on TRM_CONCEPT (CONCEPT_UPDATED);
|
||||
|
||||
alter table TRM_CONCEPT
|
||||
add constraint IDX_CONCEPT_CS_CODE unique (CODESYSTEM_PID, CODEVAL);
|
||||
|
||||
alter table TRM_CONCEPT_MAP
|
||||
add constraint IDX_CONCEPT_MAP_URL unique (URL);
|
||||
create index IDX_CNCPT_MAP_GRP_CD on TRM_CONCEPT_MAP_GRP_ELEMENT (SOURCE_CODE);
|
||||
create index IDX_CNCPT_MP_GRP_ELM_TGT_CD on TRM_CONCEPT_MAP_GRP_ELM_TGT (TARGET_CODE);
|
||||
|
||||
alter table TRM_VALUESET
|
||||
add constraint IDX_VALUESET_URL unique (URL);
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_CS_CD unique (VALUESET_PID, SYSTEM_URL, CODEVAL);
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_ORDER unique (VALUESET_PID, VALUESET_ORDER);
|
||||
|
||||
alter table HFJ_BLK_EXPORT_COLFILE
|
||||
add constraint FK_BLKEXCOLFILE_COLLECT
|
||||
foreign key (COLLECTION_PID)
|
||||
references HFJ_BLK_EXPORT_COLLECTION;
|
||||
|
||||
alter table HFJ_BLK_EXPORT_COLLECTION
|
||||
add constraint FK_BLKEXCOL_JOB
|
||||
foreign key (JOB_PID)
|
||||
references HFJ_BLK_EXPORT_JOB;
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint FK_FORCEDID_RESOURCE
|
||||
foreign key (RESOURCE_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint FKtderym7awj6q8iq5c51xv4ndw
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint FK_HISTORYTAG_HISTORY
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint FK_IDXCMPSTRUNIQ_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_SOURCE
|
||||
foreign key (SRC_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_TARGET
|
||||
foreign key (TARGET_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_PARAM_PRESENT
|
||||
add constraint FK_RESPARMPRES_RESID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint FKbfcjbaftmiwr3rxkwsy23vneo
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint FK_RESTAG_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER
|
||||
add constraint FK_RESOURCE_HISTORY_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RES_PID
|
||||
foreign key (RES_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RESVER_PID
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table HFJ_SEARCH_INCLUDE
|
||||
add constraint FK_SEARCHINC_SEARCH
|
||||
foreign key (SEARCH_PID)
|
||||
references HFJ_SEARCH;
|
||||
|
||||
alter table HFJ_SPIDX_COORDS
|
||||
add constraint FKc97mpk37okwu8qvtceg2nh9vn
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_DATE
|
||||
add constraint FK17s70oa59rm9n61k9thjqrsqm
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_NUMBER
|
||||
add constraint FKcltihnc5tgprj9bhpt7xi5otb
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_QUANTITY
|
||||
add constraint FKn603wjjoi1a6asewxbbd78bi5
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_STRING
|
||||
add constraint FK_SPIDXSTR_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_TOKEN
|
||||
add constraint FK7ulx3j1gg3v7maqrejgc7ybc4
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_URI
|
||||
add constraint FKgxsreutymmfjuwdswv3y887do
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SUBSCRIPTION_STATS
|
||||
add constraint FK_SUBSC_RESOURCE_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint FK_EMPI_LINK_PERSON
|
||||
foreign key (PERSON_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint FK_EMPI_LINK_TARGET
|
||||
foreign key (TARGET_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_PKG
|
||||
foreign key (PACKAGE_PID)
|
||||
references NPM_PACKAGE;
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PACKVERRES_PACKVER
|
||||
foreign key (PACKVER_PID)
|
||||
references NPM_PACKAGE_VER;
|
||||
|
||||
alter table NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PKVR_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_CURVER
|
||||
foreign key (CURRENT_VERSION_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_CS_ID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM;
|
||||
|
||||
alter table TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CONCEPT
|
||||
add constraint FK_CONCEPT_PID_CS_PID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_MAP
|
||||
add constraint FK_TRMCONCEPTMAP_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GROUP
|
||||
add constraint FK_TCMGROUP_CONCEPTMAP
|
||||
foreign key (CONCEPT_MAP_PID)
|
||||
references TRM_CONCEPT_MAP;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GRP_ELEMENT
|
||||
add constraint FK_TCMGELEMENT_GROUP
|
||||
foreign key (CONCEPT_MAP_GROUP_PID)
|
||||
references TRM_CONCEPT_MAP_GROUP;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GRP_ELM_TGT
|
||||
add constraint FK_TCMGETARGET_ELEMENT
|
||||
foreign key (CONCEPT_MAP_GRP_ELM_PID)
|
||||
references TRM_CONCEPT_MAP_GRP_ELEMENT;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CHILD
|
||||
foreign key (CHILD_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CS
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_PARENT
|
||||
foreign key (PARENT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_VALUESET
|
||||
add constraint FK_TRMVALUESET_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VALUESET_CONCEPT_PID
|
||||
foreign key (VALUESET_CONCEPT_PID)
|
||||
references TRM_VALUESET_CONCEPT;
|
||||
|
||||
alter table TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VSCD_VS_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint FK_TRM_VALUESET_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
|
@ -0,0 +1,970 @@
|
|||
create sequence SEQ_BLKEXCOL_PID start with 1 increment by 50;
|
||||
create sequence SEQ_BLKEXCOLFILE_PID start with 1 increment by 50;
|
||||
create sequence SEQ_BLKEXJOB_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CNCPT_MAP_GRP_ELM_TGT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CODESYSTEM_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CODESYSTEMVER_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_DESIG_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GROUP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GRP_ELM_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_MAP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PC_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_CONCEPT_PROP_PID start with 1 increment by 50;
|
||||
create sequence SEQ_EMPI_LINK_ID start with 1 increment by 50;
|
||||
create sequence SEQ_FORCEDID_ID start with 1 increment by 50;
|
||||
create sequence SEQ_HISTORYTAG_ID start with 1 increment by 50;
|
||||
create sequence SEQ_IDXCMPSTRUNIQ_ID start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACK start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACKVER start with 1 increment by 50;
|
||||
create sequence SEQ_NPM_PACKVERRES start with 1 increment by 50;
|
||||
create sequence SEQ_RES_REINDEX_JOB start with 1 increment by 50;
|
||||
create sequence SEQ_RESLINK_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESOURCE_HISTORY_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESOURCE_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESPARMPRESENT_ID start with 1 increment by 50;
|
||||
create sequence SEQ_RESTAG_ID start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH_INC start with 1 increment by 50;
|
||||
create sequence SEQ_SEARCH_RES start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_COORDS start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_DATE start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_NUMBER start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_QUANTITY start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_STRING start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_TOKEN start with 1 increment by 50;
|
||||
create sequence SEQ_SPIDX_URI start with 1 increment by 50;
|
||||
create sequence SEQ_SUBSCRIPTION_ID start with 1 increment by 50;
|
||||
create sequence SEQ_TAGDEF_ID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_C_DSGNTN_PID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_CONCEPT_PID start with 1 increment by 50;
|
||||
create sequence SEQ_VALUESET_PID start with 1 increment by 50;
|
||||
|
||||
CREATE TABLE "FLY_HFJ_MIGRATION" (
|
||||
"installed_rank" number(10,0) NOT NULL,
|
||||
"version" varchar2(50 char),
|
||||
"description" varchar2(200 char) NOT NULL,
|
||||
"type" varchar2(20 char) NOT NULL,
|
||||
"script" varchar2(1000 char) NOT NULL,
|
||||
"checksum" number(10,0),
|
||||
"installed_by" varchar2(100 char) NOT NULL,
|
||||
"installed_on" timestamp NOT NULL,
|
||||
"execution_time" number(10,0) NOT NULL,
|
||||
"success" number(1,0) NOT NULL
|
||||
);
|
||||
|
||||
create table HFJ_BINARY_STORAGE_BLOB (
|
||||
BLOB_ID varchar2(200 char) not null,
|
||||
BLOB_DATA blob not null,
|
||||
CONTENT_TYPE varchar2(100 char) not null,
|
||||
BLOB_HASH varchar2(128 char),
|
||||
PUBLISHED_DATE timestamp not null,
|
||||
RESOURCE_ID varchar2(100 char) not null,
|
||||
BLOB_SIZE number(10,0),
|
||||
primary key (BLOB_ID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLFILE (
|
||||
PID number(19,0) not null,
|
||||
RES_ID varchar2(100 char) not null,
|
||||
COLLECTION_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLLECTION (
|
||||
PID number(19,0) not null,
|
||||
TYPE_FILTER varchar2(1000 char),
|
||||
RES_TYPE varchar2(40 char) not null,
|
||||
OPTLOCK number(10,0) not null,
|
||||
JOB_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_JOB (
|
||||
PID number(19,0) not null,
|
||||
CREATED_TIME timestamp not null,
|
||||
EXP_TIME timestamp not null,
|
||||
JOB_ID varchar2(36 char) not null,
|
||||
REQUEST varchar2(500 char) not null,
|
||||
EXP_SINCE timestamp,
|
||||
JOB_STATUS varchar2(10 char) not null,
|
||||
STATUS_MESSAGE varchar2(500 char),
|
||||
STATUS_TIME timestamp not null,
|
||||
OPTLOCK number(10,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_FORCED_ID (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
FORCED_ID varchar2(100 char) not null,
|
||||
RESOURCE_PID number(19,0) not null,
|
||||
RESOURCE_TYPE varchar2(100 char) default '',
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_HISTORY_TAG (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
TAG_ID number(19,0),
|
||||
RES_VER_PID number(19,0) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(40 char) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_IDX_CMP_STRING_UNIQ (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
IDX_STRING varchar2(200 char) not null,
|
||||
RES_ID number(19,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_PARTITION (
|
||||
PART_ID number(10,0) not null,
|
||||
PART_DESC varchar2(200 char),
|
||||
PART_NAME varchar2(200 char) not null,
|
||||
primary key (PART_ID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_LINK (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SRC_PATH varchar2(200 char) not null,
|
||||
SRC_RESOURCE_ID number(19,0) not null,
|
||||
SOURCE_RESOURCE_TYPE varchar2(40 char) not null,
|
||||
TARGET_RESOURCE_ID number(19,0),
|
||||
TARGET_RESOURCE_TYPE varchar2(40 char) not null,
|
||||
TARGET_RESOURCE_URL varchar2(200 char),
|
||||
SP_UPDATED timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_PARAM_PRESENT (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
HASH_PRESENCE number(19,0),
|
||||
SP_PRESENT number(1,0) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_REINDEX_JOB (
|
||||
PID number(19,0) not null,
|
||||
JOB_DELETED number(1,0) not null,
|
||||
REINDEX_COUNT number(10,0),
|
||||
RES_TYPE varchar2(100 char),
|
||||
SUSPENDED_UNTIL timestamp,
|
||||
UPDATE_THRESHOLD_HIGH timestamp not null,
|
||||
UPDATE_THRESHOLD_LOW timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_TAG (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
TAG_ID number(19,0),
|
||||
RES_ID number(19,0),
|
||||
RES_TYPE varchar2(40 char) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER (
|
||||
PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
RES_DELETED_AT timestamp,
|
||||
RES_VERSION varchar2(7 char),
|
||||
HAS_TAGS number(1,0) not null,
|
||||
RES_PUBLISHED timestamp not null,
|
||||
RES_UPDATED timestamp not null,
|
||||
RES_ENCODING varchar2(5 char) not null,
|
||||
RES_TEXT blob,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(40 char) not null,
|
||||
RES_VER number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER_PROV (
|
||||
RES_VER_PID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
REQUEST_ID varchar2(16 char),
|
||||
SOURCE_URI varchar2(100 char),
|
||||
RES_PID number(19,0) not null,
|
||||
primary key (RES_VER_PID)
|
||||
);
|
||||
|
||||
create table HFJ_RESOURCE (
|
||||
RES_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
RES_DELETED_AT timestamp,
|
||||
RES_VERSION varchar2(7 char),
|
||||
HAS_TAGS number(1,0) not null,
|
||||
RES_PUBLISHED timestamp not null,
|
||||
RES_UPDATED timestamp not null,
|
||||
SP_HAS_LINKS number(1,0),
|
||||
HASH_SHA256 varchar2(64 char),
|
||||
SP_INDEX_STATUS number(19,0),
|
||||
RES_LANGUAGE varchar2(20 char),
|
||||
SP_CMPSTR_UNIQ_PRESENT number(1,0),
|
||||
SP_COORDS_PRESENT number(1,0),
|
||||
SP_DATE_PRESENT number(1,0),
|
||||
SP_NUMBER_PRESENT number(1,0),
|
||||
SP_QUANTITY_PRESENT number(1,0),
|
||||
SP_STRING_PRESENT number(1,0),
|
||||
SP_TOKEN_PRESENT number(1,0),
|
||||
SP_URI_PRESENT number(1,0),
|
||||
RES_TYPE varchar2(40 char) not null,
|
||||
RES_VER number(19,0),
|
||||
primary key (RES_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH (
|
||||
PID number(19,0) not null,
|
||||
CREATED timestamp not null,
|
||||
SEARCH_DELETED number(1,0),
|
||||
EXPIRY_OR_NULL timestamp,
|
||||
FAILURE_CODE number(10,0),
|
||||
FAILURE_MESSAGE varchar2(500 char),
|
||||
LAST_UPDATED_HIGH timestamp,
|
||||
LAST_UPDATED_LOW timestamp,
|
||||
NUM_BLOCKED number(10,0),
|
||||
NUM_FOUND number(10,0) not null,
|
||||
PREFERRED_PAGE_SIZE number(10,0),
|
||||
RESOURCE_ID number(19,0),
|
||||
RESOURCE_TYPE varchar2(200 char),
|
||||
SEARCH_PARAM_MAP blob,
|
||||
SEARCH_QUERY_STRING clob,
|
||||
SEARCH_QUERY_STRING_HASH number(10,0),
|
||||
SEARCH_TYPE number(10,0) not null,
|
||||
SEARCH_STATUS varchar2(10 char) not null,
|
||||
TOTAL_COUNT number(10,0),
|
||||
SEARCH_UUID varchar2(36 char) not null,
|
||||
OPTLOCK_VERSION number(10,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_INCLUDE (
|
||||
PID number(19,0) not null,
|
||||
SEARCH_INCLUDE varchar2(200 char) not null,
|
||||
INC_RECURSE number(1,0) not null,
|
||||
REVINCLUDE number(1,0) not null,
|
||||
SEARCH_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_RESULT (
|
||||
PID number(19,0) not null,
|
||||
SEARCH_ORDER number(10,0) not null,
|
||||
RESOURCE_PID number(19,0) not null,
|
||||
SEARCH_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_COORDS (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY number(19,0),
|
||||
SP_LATITUDE double precision,
|
||||
SP_LONGITUDE double precision,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_DATE (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY number(19,0),
|
||||
SP_VALUE_HIGH timestamp,
|
||||
SP_VALUE_HIGH_DATE_ORDINAL number(10,0),
|
||||
SP_VALUE_LOW timestamp,
|
||||
SP_VALUE_LOW_DATE_ORDINAL number(10,0),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_NUMBER (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY number(19,0),
|
||||
SP_VALUE number(19,2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_QUANTITY (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY number(19,0),
|
||||
HASH_IDENTITY_AND_UNITS number(19,0),
|
||||
HASH_IDENTITY_SYS_UNITS number(19,0),
|
||||
SP_SYSTEM varchar2(200 char),
|
||||
SP_UNITS varchar2(200 char),
|
||||
SP_VALUE number(19,2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_STRING (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_EXACT number(19,0),
|
||||
HASH_IDENTITY number(19,0),
|
||||
HASH_NORM_PREFIX number(19,0),
|
||||
SP_VALUE_EXACT varchar2(200 char),
|
||||
SP_VALUE_NORMALIZED varchar2(200 char),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_TOKEN (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY number(19,0),
|
||||
HASH_SYS number(19,0),
|
||||
HASH_SYS_AND_VALUE number(19,0),
|
||||
HASH_VALUE number(19,0),
|
||||
SP_SYSTEM varchar2(200 char),
|
||||
SP_VALUE varchar2(200 char),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_URI (
|
||||
SP_ID number(19,0) not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID number(10,0),
|
||||
SP_MISSING number(1,0) not null,
|
||||
SP_NAME varchar2(100 char) not null,
|
||||
RES_ID number(19,0) not null,
|
||||
RES_TYPE varchar2(100 char) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY number(19,0),
|
||||
HASH_URI number(19,0),
|
||||
SP_URI varchar2(254 char),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SUBSCRIPTION_STATS (
|
||||
PID number(19,0) not null,
|
||||
CREATED_TIME timestamp not null,
|
||||
RES_ID number(19,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_TAG_DEF (
|
||||
TAG_ID number(19,0) not null,
|
||||
TAG_CODE varchar2(200 char),
|
||||
TAG_DISPLAY varchar2(200 char),
|
||||
TAG_SYSTEM varchar2(200 char),
|
||||
TAG_TYPE number(10,0) not null,
|
||||
primary key (TAG_ID)
|
||||
);
|
||||
|
||||
create table MPI_LINK (
|
||||
PID number(19,0) not null,
|
||||
CREATED timestamp not null,
|
||||
EID_MATCH number(1,0),
|
||||
TARGET_TYPE varchar2(40 char),
|
||||
LINK_SOURCE number(10,0) not null,
|
||||
MATCH_RESULT number(10,0) not null,
|
||||
NEW_PERSON number(1,0),
|
||||
PERSON_PID number(19,0) not null,
|
||||
SCORE double precision,
|
||||
TARGET_PID number(19,0) not null,
|
||||
UPDATED timestamp not null,
|
||||
VECTOR number(19,0),
|
||||
VERSION varchar2(16 char) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE (
|
||||
PID number(19,0) not null,
|
||||
CUR_VERSION_ID varchar2(200 char),
|
||||
PACKAGE_DESC varchar2(200 char),
|
||||
PACKAGE_ID varchar2(200 char) not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER (
|
||||
PID number(19,0) not null,
|
||||
CURRENT_VERSION number(1,0) not null,
|
||||
PKG_DESC varchar2(200 char),
|
||||
DESC_UPPER varchar2(200 char),
|
||||
FHIR_VERSION varchar2(10 char) not null,
|
||||
FHIR_VERSION_ID varchar2(10 char) not null,
|
||||
PACKAGE_ID varchar2(200 char) not null,
|
||||
PACKAGE_SIZE_BYTES number(19,0) not null,
|
||||
SAVED_TIME timestamp not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
VERSION_ID varchar2(200 char) not null,
|
||||
PACKAGE_PID number(19,0) not null,
|
||||
BINARY_RES_ID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER_RES (
|
||||
PID number(19,0) not null,
|
||||
CANONICAL_URL varchar2(200 char),
|
||||
CANONICAL_VERSION varchar2(200 char),
|
||||
FILE_DIR varchar2(200 char),
|
||||
FHIR_VERSION varchar2(10 char) not null,
|
||||
FHIR_VERSION_ID varchar2(10 char) not null,
|
||||
FILE_NAME varchar2(200 char),
|
||||
RES_SIZE_BYTES number(19,0) not null,
|
||||
RES_TYPE varchar2(40 char) not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
PACKVER_PID number(19,0) not null,
|
||||
BINARY_RES_ID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM (
|
||||
PID number(19,0) not null,
|
||||
CODE_SYSTEM_URI varchar2(200 char) not null,
|
||||
CURRENT_VERSION_PID number(19,0),
|
||||
CS_NAME varchar2(200 char),
|
||||
RES_ID number(19,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM_VER (
|
||||
PID number(19,0) not null,
|
||||
CS_DISPLAY varchar2(200 char),
|
||||
CODESYSTEM_PID number(19,0),
|
||||
CS_VERSION_ID varchar2(200 char),
|
||||
RES_ID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT (
|
||||
PID number(19,0) not null,
|
||||
CODEVAL varchar2(500 char) not null,
|
||||
CODESYSTEM_PID number(19,0),
|
||||
DISPLAY varchar2(400 char),
|
||||
INDEX_STATUS number(19,0),
|
||||
PARENT_PIDS clob,
|
||||
CODE_SEQUENCE number(10,0),
|
||||
CONCEPT_UPDATED timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_DESIG (
|
||||
PID number(19,0) not null,
|
||||
LANG varchar2(500 char),
|
||||
USE_CODE varchar2(500 char),
|
||||
USE_DISPLAY varchar2(500 char),
|
||||
USE_SYSTEM varchar2(500 char),
|
||||
VAL varchar2(2000 char) not null,
|
||||
CS_VER_PID number(19,0),
|
||||
CONCEPT_PID number(19,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP (
|
||||
PID number(19,0) not null,
|
||||
RES_ID number(19,0),
|
||||
SOURCE_URL varchar2(200 char),
|
||||
TARGET_URL varchar2(200 char),
|
||||
URL varchar2(200 char) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GROUP (
|
||||
PID number(19,0) not null,
|
||||
CONCEPT_MAP_URL varchar2(200 char),
|
||||
SOURCE_URL varchar2(200 char) not null,
|
||||
SOURCE_VS varchar2(200 char),
|
||||
SOURCE_VERSION varchar2(200 char),
|
||||
TARGET_URL varchar2(200 char) not null,
|
||||
TARGET_VS varchar2(200 char),
|
||||
TARGET_VERSION varchar2(200 char),
|
||||
CONCEPT_MAP_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELEMENT (
|
||||
PID number(19,0) not null,
|
||||
SOURCE_CODE varchar2(500 char) not null,
|
||||
CONCEPT_MAP_URL varchar2(200 char),
|
||||
SOURCE_DISPLAY varchar2(400 char),
|
||||
SYSTEM_URL varchar2(200 char),
|
||||
SYSTEM_VERSION varchar2(200 char),
|
||||
VALUESET_URL varchar2(200 char),
|
||||
CONCEPT_MAP_GROUP_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELM_TGT (
|
||||
PID number(19,0) not null,
|
||||
TARGET_CODE varchar2(500 char) not null,
|
||||
CONCEPT_MAP_URL varchar2(200 char),
|
||||
TARGET_DISPLAY varchar2(400 char),
|
||||
TARGET_EQUIVALENCE varchar2(50 char),
|
||||
SYSTEM_URL varchar2(200 char),
|
||||
SYSTEM_VERSION varchar2(200 char),
|
||||
VALUESET_URL varchar2(200 char),
|
||||
CONCEPT_MAP_GRP_ELM_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PC_LINK (
|
||||
PID number(19,0) not null,
|
||||
CHILD_PID number(19,0),
|
||||
CODESYSTEM_PID number(19,0) not null,
|
||||
PARENT_PID number(19,0),
|
||||
REL_TYPE number(10,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PROPERTY (
|
||||
PID number(19,0) not null,
|
||||
PROP_CODESYSTEM varchar2(500 char),
|
||||
PROP_DISPLAY varchar2(500 char),
|
||||
PROP_KEY varchar2(500 char) not null,
|
||||
PROP_TYPE number(10,0) not null,
|
||||
PROP_VAL varchar2(500 char),
|
||||
PROP_VAL_LOB blob,
|
||||
CS_VER_PID number(19,0),
|
||||
CONCEPT_PID number(19,0),
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET (
|
||||
PID number(19,0) not null,
|
||||
EXPANSION_STATUS varchar2(50 char) not null,
|
||||
VSNAME varchar2(200 char),
|
||||
RES_ID number(19,0),
|
||||
TOTAL_CONCEPT_DESIGNATIONS number(19,0) default 0 not null,
|
||||
TOTAL_CONCEPTS number(19,0) default 0 not null,
|
||||
URL varchar2(200 char) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_C_DESIGNATION (
|
||||
PID number(19,0) not null,
|
||||
VALUESET_CONCEPT_PID number(19,0) not null,
|
||||
LANG varchar2(500 char),
|
||||
USE_CODE varchar2(500 char),
|
||||
USE_DISPLAY varchar2(500 char),
|
||||
USE_SYSTEM varchar2(500 char),
|
||||
VAL varchar2(2000 char) not null,
|
||||
VALUESET_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_CONCEPT (
|
||||
PID number(19,0) not null,
|
||||
CODEVAL varchar2(500 char) not null,
|
||||
DISPLAY varchar2(400 char),
|
||||
VALUESET_ORDER number(10,0) not null,
|
||||
SYSTEM_URL varchar2(200 char) not null,
|
||||
VALUESET_PID number(19,0) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
create index IDX_BLKEX_EXPTIME on HFJ_BLK_EXPORT_JOB (EXP_TIME);
|
||||
|
||||
alter table HFJ_BLK_EXPORT_JOB
|
||||
add constraint IDX_BLKEX_JOB_ID unique (JOB_ID);
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_RESID unique (RESOURCE_PID);
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_TYPE_FID unique (RESOURCE_TYPE, FORCED_ID);
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint IDX_RESHISTTAG_TAGID unique (RES_VER_PID, TAG_ID);
|
||||
create index IDX_IDXCMPSTRUNIQ_RESOURCE on HFJ_IDX_CMP_STRING_UNIQ (RES_ID);
|
||||
|
||||
alter table HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint IDX_IDXCMPSTRUNIQ_STRING unique (IDX_STRING);
|
||||
|
||||
alter table HFJ_PARTITION
|
||||
add constraint IDX_PART_NAME unique (PART_NAME);
|
||||
create index IDX_RL_TPATHRES on HFJ_RES_LINK (SRC_PATH, TARGET_RESOURCE_ID);
|
||||
create index IDX_RL_SRC on HFJ_RES_LINK (SRC_RESOURCE_ID);
|
||||
create index IDX_RL_DEST on HFJ_RES_LINK (TARGET_RESOURCE_ID);
|
||||
create index IDX_RESPARMPRESENT_RESID on HFJ_RES_PARAM_PRESENT (RES_ID);
|
||||
create index IDX_RESPARMPRESENT_HASHPRES on HFJ_RES_PARAM_PRESENT (HASH_PRESENCE);
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint IDX_RESTAG_TAGID unique (RES_ID, TAG_ID);
|
||||
create index IDX_RESVER_TYPE_DATE on HFJ_RES_VER (RES_TYPE, RES_UPDATED);
|
||||
create index IDX_RESVER_ID_DATE on HFJ_RES_VER (RES_ID, RES_UPDATED);
|
||||
create index IDX_RESVER_DATE on HFJ_RES_VER (RES_UPDATED);
|
||||
|
||||
alter table HFJ_RES_VER
|
||||
add constraint IDX_RESVER_ID_VER unique (RES_ID, RES_VER);
|
||||
create index IDX_RESVERPROV_SOURCEURI on HFJ_RES_VER_PROV (SOURCE_URI);
|
||||
create index IDX_RESVERPROV_REQUESTID on HFJ_RES_VER_PROV (REQUEST_ID);
|
||||
create index IDX_RES_DATE on HFJ_RESOURCE (RES_UPDATED);
|
||||
create index IDX_RES_LANG on HFJ_RESOURCE (RES_TYPE, RES_LANGUAGE);
|
||||
create index IDX_RES_TYPE on HFJ_RESOURCE (RES_TYPE);
|
||||
create index IDX_INDEXSTATUS on HFJ_RESOURCE (SP_INDEX_STATUS);
|
||||
create index IDX_SEARCH_RESTYPE_HASHS on HFJ_SEARCH (RESOURCE_TYPE, SEARCH_QUERY_STRING_HASH, CREATED);
|
||||
create index IDX_SEARCH_CREATED on HFJ_SEARCH (CREATED);
|
||||
|
||||
alter table HFJ_SEARCH
|
||||
add constraint IDX_SEARCH_UUID unique (SEARCH_UUID);
|
||||
|
||||
alter table HFJ_SEARCH_RESULT
|
||||
add constraint IDX_SEARCHRES_ORDER unique (SEARCH_PID, SEARCH_ORDER);
|
||||
create index IDX_SP_COORDS_HASH on HFJ_SPIDX_COORDS (HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE);
|
||||
create index IDX_SP_COORDS_UPDATED on HFJ_SPIDX_COORDS (SP_UPDATED);
|
||||
create index IDX_SP_COORDS_RESID on HFJ_SPIDX_COORDS (RES_ID);
|
||||
create index IDX_SP_DATE_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW, SP_VALUE_HIGH);
|
||||
create index IDX_SP_DATE_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW);
|
||||
create index IDX_SP_DATE_ORD_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL, SP_VALUE_HIGH_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_ORD_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_RESID on HFJ_SPIDX_DATE (RES_ID);
|
||||
create index IDX_SP_DATE_UPDATED on HFJ_SPIDX_DATE (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_HASH_VAL on HFJ_SPIDX_NUMBER (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_NUMBER_UPDATED on HFJ_SPIDX_NUMBER (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_RESID on HFJ_SPIDX_NUMBER (RES_ID);
|
||||
create index IDX_SP_QUANTITY_HASH on HFJ_SPIDX_QUANTITY (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_UN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_AND_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_SYSUN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_SYS_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_UPDATED on HFJ_SPIDX_QUANTITY (SP_UPDATED);
|
||||
create index IDX_SP_QUANTITY_RESID on HFJ_SPIDX_QUANTITY (RES_ID);
|
||||
create index IDX_SP_STRING_HASH_IDENT on HFJ_SPIDX_STRING (HASH_IDENTITY);
|
||||
create index IDX_SP_STRING_HASH_NRM on HFJ_SPIDX_STRING (HASH_NORM_PREFIX, SP_VALUE_NORMALIZED);
|
||||
create index IDX_SP_STRING_HASH_EXCT on HFJ_SPIDX_STRING (HASH_EXACT);
|
||||
create index IDX_SP_STRING_UPDATED on HFJ_SPIDX_STRING (SP_UPDATED);
|
||||
create index IDX_SP_STRING_RESID on HFJ_SPIDX_STRING (RES_ID);
|
||||
create index IDX_SP_TOKEN_HASH on HFJ_SPIDX_TOKEN (HASH_IDENTITY);
|
||||
create index IDX_SP_TOKEN_HASH_S on HFJ_SPIDX_TOKEN (HASH_SYS);
|
||||
create index IDX_SP_TOKEN_HASH_SV on HFJ_SPIDX_TOKEN (HASH_SYS_AND_VALUE);
|
||||
create index IDX_SP_TOKEN_HASH_V on HFJ_SPIDX_TOKEN (HASH_VALUE);
|
||||
create index IDX_SP_TOKEN_UPDATED on HFJ_SPIDX_TOKEN (SP_UPDATED);
|
||||
create index IDX_SP_TOKEN_RESID on HFJ_SPIDX_TOKEN (RES_ID);
|
||||
create index IDX_SP_URI on HFJ_SPIDX_URI (RES_TYPE, SP_NAME, SP_URI);
|
||||
create index IDX_SP_URI_HASH_IDENTITY on HFJ_SPIDX_URI (HASH_IDENTITY, SP_URI);
|
||||
create index IDX_SP_URI_HASH_URI on HFJ_SPIDX_URI (HASH_URI);
|
||||
create index IDX_SP_URI_RESTYPE_NAME on HFJ_SPIDX_URI (RES_TYPE, SP_NAME);
|
||||
create index IDX_SP_URI_UPDATED on HFJ_SPIDX_URI (SP_UPDATED);
|
||||
create index IDX_SP_URI_COORDS on HFJ_SPIDX_URI (RES_ID);
|
||||
|
||||
alter table HFJ_SUBSCRIPTION_STATS
|
||||
add constraint IDX_SUBSC_RESID unique (RES_ID);
|
||||
|
||||
alter table HFJ_TAG_DEF
|
||||
add constraint IDX_TAGDEF_TYPESYSCODE unique (TAG_TYPE, TAG_SYSTEM, TAG_CODE);
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint IDX_EMPI_PERSON_TGT unique (PERSON_PID, TARGET_PID);
|
||||
|
||||
alter table NPM_PACKAGE
|
||||
add constraint IDX_PACK_ID unique (PACKAGE_ID);
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint IDX_PACKVER unique (PACKAGE_ID, VERSION_ID);
|
||||
create index IDX_PACKVERRES_URL on NPM_PACKAGE_VER_RES (CANONICAL_URL);
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint IDX_CS_CODESYSTEM unique (CODE_SYSTEM_URI);
|
||||
create index IDX_CONCEPT_INDEXSTATUS on TRM_CONCEPT (INDEX_STATUS);
|
||||
create index IDX_CONCEPT_UPDATED on TRM_CONCEPT (CONCEPT_UPDATED);
|
||||
|
||||
alter table TRM_CONCEPT
|
||||
add constraint IDX_CONCEPT_CS_CODE unique (CODESYSTEM_PID, CODEVAL);
|
||||
|
||||
alter table TRM_CONCEPT_MAP
|
||||
add constraint IDX_CONCEPT_MAP_URL unique (URL);
|
||||
create index IDX_CNCPT_MAP_GRP_CD on TRM_CONCEPT_MAP_GRP_ELEMENT (SOURCE_CODE);
|
||||
create index IDX_CNCPT_MP_GRP_ELM_TGT_CD on TRM_CONCEPT_MAP_GRP_ELM_TGT (TARGET_CODE);
|
||||
|
||||
alter table TRM_VALUESET
|
||||
add constraint IDX_VALUESET_URL unique (URL);
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_CS_CD unique (VALUESET_PID, SYSTEM_URL, CODEVAL);
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_ORDER unique (VALUESET_PID, VALUESET_ORDER);
|
||||
|
||||
alter table HFJ_BLK_EXPORT_COLFILE
|
||||
add constraint FK_BLKEXCOLFILE_COLLECT
|
||||
foreign key (COLLECTION_PID)
|
||||
references HFJ_BLK_EXPORT_COLLECTION;
|
||||
|
||||
alter table HFJ_BLK_EXPORT_COLLECTION
|
||||
add constraint FK_BLKEXCOL_JOB
|
||||
foreign key (JOB_PID)
|
||||
references HFJ_BLK_EXPORT_JOB;
|
||||
|
||||
alter table HFJ_FORCED_ID
|
||||
add constraint FK_FORCEDID_RESOURCE
|
||||
foreign key (RESOURCE_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint FKtderym7awj6q8iq5c51xv4ndw
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table HFJ_HISTORY_TAG
|
||||
add constraint FK_HISTORYTAG_HISTORY
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint FK_IDXCMPSTRUNIQ_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_SOURCE
|
||||
foreign key (SRC_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_TARGET
|
||||
foreign key (TARGET_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_PARAM_PRESENT
|
||||
add constraint FK_RESPARMPRES_RESID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint FKbfcjbaftmiwr3rxkwsy23vneo
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table HFJ_RES_TAG
|
||||
add constraint FK_RESTAG_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER
|
||||
add constraint FK_RESOURCE_HISTORY_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RES_PID
|
||||
foreign key (RES_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RESVER_PID
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table HFJ_SEARCH_INCLUDE
|
||||
add constraint FK_SEARCHINC_SEARCH
|
||||
foreign key (SEARCH_PID)
|
||||
references HFJ_SEARCH;
|
||||
|
||||
alter table HFJ_SPIDX_COORDS
|
||||
add constraint FKc97mpk37okwu8qvtceg2nh9vn
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_DATE
|
||||
add constraint FK17s70oa59rm9n61k9thjqrsqm
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_NUMBER
|
||||
add constraint FKcltihnc5tgprj9bhpt7xi5otb
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_QUANTITY
|
||||
add constraint FKn603wjjoi1a6asewxbbd78bi5
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_STRING
|
||||
add constraint FK_SPIDXSTR_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_TOKEN
|
||||
add constraint FK7ulx3j1gg3v7maqrejgc7ybc4
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SPIDX_URI
|
||||
add constraint FKgxsreutymmfjuwdswv3y887do
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table HFJ_SUBSCRIPTION_STATS
|
||||
add constraint FK_SUBSC_RESOURCE_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint FK_EMPI_LINK_PERSON
|
||||
foreign key (PERSON_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table MPI_LINK
|
||||
add constraint FK_EMPI_LINK_TARGET
|
||||
foreign key (TARGET_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_PKG
|
||||
foreign key (PACKAGE_PID)
|
||||
references NPM_PACKAGE;
|
||||
|
||||
alter table NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PACKVERRES_PACKVER
|
||||
foreign key (PACKVER_PID)
|
||||
references NPM_PACKAGE_VER;
|
||||
|
||||
alter table NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PKVR_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_CURVER
|
||||
foreign key (CURRENT_VERSION_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_CS_ID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM;
|
||||
|
||||
alter table TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CONCEPT
|
||||
add constraint FK_CONCEPT_PID_CS_PID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_MAP
|
||||
add constraint FK_TRMCONCEPTMAP_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GROUP
|
||||
add constraint FK_TCMGROUP_CONCEPTMAP
|
||||
foreign key (CONCEPT_MAP_PID)
|
||||
references TRM_CONCEPT_MAP;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GRP_ELEMENT
|
||||
add constraint FK_TCMGELEMENT_GROUP
|
||||
foreign key (CONCEPT_MAP_GROUP_PID)
|
||||
references TRM_CONCEPT_MAP_GROUP;
|
||||
|
||||
alter table TRM_CONCEPT_MAP_GRP_ELM_TGT
|
||||
add constraint FK_TCMGETARGET_ELEMENT
|
||||
foreign key (CONCEPT_MAP_GRP_ELM_PID)
|
||||
references TRM_CONCEPT_MAP_GRP_ELEMENT;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CHILD
|
||||
foreign key (CHILD_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CS
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_PARENT
|
||||
foreign key (PARENT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table TRM_VALUESET
|
||||
add constraint FK_TRMVALUESET_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VALUESET_CONCEPT_PID
|
||||
foreign key (VALUESET_CONCEPT_PID)
|
||||
references TRM_VALUESET_CONCEPT;
|
||||
|
||||
alter table TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VSCD_VS_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
||||
|
||||
alter table TRM_VALUESET_CONCEPT
|
||||
add constraint FK_TRM_VALUESET_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
|
@ -0,0 +1,970 @@
|
|||
create sequence SEQ_BLKEXCOL_PID start 1 increment 50;
|
||||
create sequence SEQ_BLKEXCOLFILE_PID start 1 increment 50;
|
||||
create sequence SEQ_BLKEXJOB_PID start 1 increment 50;
|
||||
create sequence SEQ_CNCPT_MAP_GRP_ELM_TGT_PID start 1 increment 50;
|
||||
create sequence SEQ_CODESYSTEM_PID start 1 increment 50;
|
||||
create sequence SEQ_CODESYSTEMVER_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_DESIG_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GROUP_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_MAP_GRP_ELM_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_MAP_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_PC_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_PID start 1 increment 50;
|
||||
create sequence SEQ_CONCEPT_PROP_PID start 1 increment 50;
|
||||
create sequence SEQ_EMPI_LINK_ID start 1 increment 50;
|
||||
create sequence SEQ_FORCEDID_ID start 1 increment 50;
|
||||
create sequence SEQ_HISTORYTAG_ID start 1 increment 50;
|
||||
create sequence SEQ_IDXCMPSTRUNIQ_ID start 1 increment 50;
|
||||
create sequence SEQ_NPM_PACK start 1 increment 50;
|
||||
create sequence SEQ_NPM_PACKVER start 1 increment 50;
|
||||
create sequence SEQ_NPM_PACKVERRES start 1 increment 50;
|
||||
create sequence SEQ_RES_REINDEX_JOB start 1 increment 50;
|
||||
create sequence SEQ_RESLINK_ID start 1 increment 50;
|
||||
create sequence SEQ_RESOURCE_HISTORY_ID start 1 increment 50;
|
||||
create sequence SEQ_RESOURCE_ID start 1 increment 50;
|
||||
create sequence SEQ_RESPARMPRESENT_ID start 1 increment 50;
|
||||
create sequence SEQ_RESTAG_ID start 1 increment 50;
|
||||
create sequence SEQ_SEARCH start 1 increment 50;
|
||||
create sequence SEQ_SEARCH_INC start 1 increment 50;
|
||||
create sequence SEQ_SEARCH_RES start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_COORDS start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_DATE start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_NUMBER start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_QUANTITY start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_STRING start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_TOKEN start 1 increment 50;
|
||||
create sequence SEQ_SPIDX_URI start 1 increment 50;
|
||||
create sequence SEQ_SUBSCRIPTION_ID start 1 increment 50;
|
||||
create sequence SEQ_TAGDEF_ID start 1 increment 50;
|
||||
create sequence SEQ_VALUESET_C_DSGNTN_PID start 1 increment 50;
|
||||
create sequence SEQ_VALUESET_CONCEPT_PID start 1 increment 50;
|
||||
create sequence SEQ_VALUESET_PID start 1 increment 50;
|
||||
|
||||
CREATE TABLE "FLY_HFJ_MIGRATION" (
|
||||
"installed_rank" integer NOT NULL,
|
||||
"version" character varying(50),
|
||||
"description" character varying(200) NOT NULL,
|
||||
"type" character varying(20) NOT NULL,
|
||||
"script" character varying(1000) NOT NULL,
|
||||
"checksum" integer,
|
||||
"installed_by" character varying(100) NOT NULL,
|
||||
"installed_on" timestamp without time zone DEFAULT now() NOT NULL,
|
||||
"execution_time" integer NOT NULL,
|
||||
"success" boolean NOT NULL
|
||||
);
|
||||
|
||||
create table HFJ_BINARY_STORAGE_BLOB (
|
||||
BLOB_ID varchar(200) not null,
|
||||
BLOB_DATA oid not null,
|
||||
CONTENT_TYPE varchar(100) not null,
|
||||
BLOB_HASH varchar(128),
|
||||
PUBLISHED_DATE timestamp not null,
|
||||
RESOURCE_ID varchar(100) not null,
|
||||
BLOB_SIZE int4,
|
||||
primary key (BLOB_ID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLFILE (
|
||||
PID int8 not null,
|
||||
RES_ID varchar(100) not null,
|
||||
COLLECTION_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_COLLECTION (
|
||||
PID int8 not null,
|
||||
TYPE_FILTER varchar(1000),
|
||||
RES_TYPE varchar(40) not null,
|
||||
OPTLOCK int4 not null,
|
||||
JOB_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_BLK_EXPORT_JOB (
|
||||
PID int8 not null,
|
||||
CREATED_TIME timestamp not null,
|
||||
EXP_TIME timestamp not null,
|
||||
JOB_ID varchar(36) not null,
|
||||
REQUEST varchar(500) not null,
|
||||
EXP_SINCE timestamp,
|
||||
JOB_STATUS varchar(10) not null,
|
||||
STATUS_MESSAGE varchar(500),
|
||||
STATUS_TIME timestamp not null,
|
||||
OPTLOCK int4 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_FORCED_ID (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
FORCED_ID varchar(100) not null,
|
||||
RESOURCE_PID int8 not null,
|
||||
RESOURCE_TYPE varchar(100) default '',
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_HISTORY_TAG (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
TAG_ID int8,
|
||||
RES_VER_PID int8 not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_IDX_CMP_STRING_UNIQ (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
IDX_STRING varchar(200) not null,
|
||||
RES_ID int8,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_PARTITION (
|
||||
PART_ID int4 not null,
|
||||
PART_DESC varchar(200),
|
||||
PART_NAME varchar(200) not null,
|
||||
primary key (PART_ID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_LINK (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SRC_PATH varchar(200) not null,
|
||||
SRC_RESOURCE_ID int8 not null,
|
||||
SOURCE_RESOURCE_TYPE varchar(40) not null,
|
||||
TARGET_RESOURCE_ID int8,
|
||||
TARGET_RESOURCE_TYPE varchar(40) not null,
|
||||
TARGET_RESOURCE_URL varchar(200),
|
||||
SP_UPDATED timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_PARAM_PRESENT (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
HASH_PRESENCE int8,
|
||||
SP_PRESENT boolean not null,
|
||||
RES_ID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_REINDEX_JOB (
|
||||
PID int8 not null,
|
||||
JOB_DELETED boolean not null,
|
||||
REINDEX_COUNT int4,
|
||||
RES_TYPE varchar(100),
|
||||
SUSPENDED_UNTIL timestamp,
|
||||
UPDATE_THRESHOLD_HIGH timestamp not null,
|
||||
UPDATE_THRESHOLD_LOW timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_TAG (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
TAG_ID int8,
|
||||
RES_ID int8,
|
||||
RES_TYPE varchar(40) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER (
|
||||
PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
RES_DELETED_AT timestamp,
|
||||
RES_VERSION varchar(7),
|
||||
HAS_TAGS boolean not null,
|
||||
RES_PUBLISHED timestamp not null,
|
||||
RES_UPDATED timestamp not null,
|
||||
RES_ENCODING varchar(5) not null,
|
||||
RES_TEXT oid,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
RES_VER int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_RES_VER_PROV (
|
||||
RES_VER_PID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
REQUEST_ID varchar(16),
|
||||
SOURCE_URI varchar(100),
|
||||
RES_PID int8 not null,
|
||||
primary key (RES_VER_PID)
|
||||
);
|
||||
|
||||
create table HFJ_RESOURCE (
|
||||
RES_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
RES_DELETED_AT timestamp,
|
||||
RES_VERSION varchar(7),
|
||||
HAS_TAGS boolean not null,
|
||||
RES_PUBLISHED timestamp not null,
|
||||
RES_UPDATED timestamp not null,
|
||||
SP_HAS_LINKS boolean,
|
||||
HASH_SHA256 varchar(64),
|
||||
SP_INDEX_STATUS int8,
|
||||
RES_LANGUAGE varchar(20),
|
||||
SP_CMPSTR_UNIQ_PRESENT boolean,
|
||||
SP_COORDS_PRESENT boolean,
|
||||
SP_DATE_PRESENT boolean,
|
||||
SP_NUMBER_PRESENT boolean,
|
||||
SP_QUANTITY_PRESENT boolean,
|
||||
SP_STRING_PRESENT boolean,
|
||||
SP_TOKEN_PRESENT boolean,
|
||||
SP_URI_PRESENT boolean,
|
||||
RES_TYPE varchar(40) not null,
|
||||
RES_VER int8,
|
||||
primary key (RES_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH (
|
||||
PID int8 not null,
|
||||
CREATED timestamp not null,
|
||||
SEARCH_DELETED boolean,
|
||||
EXPIRY_OR_NULL timestamp,
|
||||
FAILURE_CODE int4,
|
||||
FAILURE_MESSAGE varchar(500),
|
||||
LAST_UPDATED_HIGH timestamp,
|
||||
LAST_UPDATED_LOW timestamp,
|
||||
NUM_BLOCKED int4,
|
||||
NUM_FOUND int4 not null,
|
||||
PREFERRED_PAGE_SIZE int4,
|
||||
RESOURCE_ID int8,
|
||||
RESOURCE_TYPE varchar(200),
|
||||
SEARCH_PARAM_MAP oid,
|
||||
SEARCH_QUERY_STRING text,
|
||||
SEARCH_QUERY_STRING_HASH int4,
|
||||
SEARCH_TYPE int4 not null,
|
||||
SEARCH_STATUS varchar(10) not null,
|
||||
TOTAL_COUNT int4,
|
||||
SEARCH_UUID varchar(36) not null,
|
||||
OPTLOCK_VERSION int4,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_INCLUDE (
|
||||
PID int8 not null,
|
||||
SEARCH_INCLUDE varchar(200) not null,
|
||||
INC_RECURSE boolean not null,
|
||||
REVINCLUDE boolean not null,
|
||||
SEARCH_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SEARCH_RESULT (
|
||||
PID int8 not null,
|
||||
SEARCH_ORDER int4 not null,
|
||||
RESOURCE_PID int8 not null,
|
||||
SEARCH_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_COORDS (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY int8,
|
||||
SP_LATITUDE float8,
|
||||
SP_LONGITUDE float8,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_DATE (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY int8,
|
||||
SP_VALUE_HIGH timestamp,
|
||||
SP_VALUE_HIGH_DATE_ORDINAL int4,
|
||||
SP_VALUE_LOW timestamp,
|
||||
SP_VALUE_LOW_DATE_ORDINAL int4,
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_NUMBER (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY int8,
|
||||
SP_VALUE numeric(19, 2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_QUANTITY (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY int8,
|
||||
HASH_IDENTITY_AND_UNITS int8,
|
||||
HASH_IDENTITY_SYS_UNITS int8,
|
||||
SP_SYSTEM varchar(200),
|
||||
SP_UNITS varchar(200),
|
||||
SP_VALUE numeric(19, 2),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_STRING (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_EXACT int8,
|
||||
HASH_IDENTITY int8,
|
||||
HASH_NORM_PREFIX int8,
|
||||
SP_VALUE_EXACT varchar(200),
|
||||
SP_VALUE_NORMALIZED varchar(200),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_TOKEN (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY int8,
|
||||
HASH_SYS int8,
|
||||
HASH_SYS_AND_VALUE int8,
|
||||
HASH_VALUE int8,
|
||||
SP_SYSTEM varchar(200),
|
||||
SP_VALUE varchar(200),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SPIDX_URI (
|
||||
SP_ID int8 not null,
|
||||
PARTITION_DATE date,
|
||||
PARTITION_ID int4,
|
||||
SP_MISSING boolean not null,
|
||||
SP_NAME varchar(100) not null,
|
||||
RES_ID int8 not null,
|
||||
RES_TYPE varchar(100) not null,
|
||||
SP_UPDATED timestamp,
|
||||
HASH_IDENTITY int8,
|
||||
HASH_URI int8,
|
||||
SP_URI varchar(254),
|
||||
primary key (SP_ID)
|
||||
);
|
||||
|
||||
create table HFJ_SUBSCRIPTION_STATS (
|
||||
PID int8 not null,
|
||||
CREATED_TIME timestamp not null,
|
||||
RES_ID int8,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table HFJ_TAG_DEF (
|
||||
TAG_ID int8 not null,
|
||||
TAG_CODE varchar(200),
|
||||
TAG_DISPLAY varchar(200),
|
||||
TAG_SYSTEM varchar(200),
|
||||
TAG_TYPE int4 not null,
|
||||
primary key (TAG_ID)
|
||||
);
|
||||
|
||||
create table MPI_LINK (
|
||||
PID int8 not null,
|
||||
CREATED timestamp not null,
|
||||
EID_MATCH boolean,
|
||||
TARGET_TYPE varchar(40),
|
||||
LINK_SOURCE int4 not null,
|
||||
MATCH_RESULT int4 not null,
|
||||
NEW_PERSON boolean,
|
||||
PERSON_PID int8 not null,
|
||||
SCORE float8,
|
||||
TARGET_PID int8 not null,
|
||||
UPDATED timestamp not null,
|
||||
VECTOR int8,
|
||||
VERSION varchar(16) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE (
|
||||
PID int8 not null,
|
||||
CUR_VERSION_ID varchar(200),
|
||||
PACKAGE_DESC varchar(200),
|
||||
PACKAGE_ID varchar(200) not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER (
|
||||
PID int8 not null,
|
||||
CURRENT_VERSION boolean not null,
|
||||
PKG_DESC varchar(200),
|
||||
DESC_UPPER varchar(200),
|
||||
FHIR_VERSION varchar(10) not null,
|
||||
FHIR_VERSION_ID varchar(10) not null,
|
||||
PACKAGE_ID varchar(200) not null,
|
||||
PACKAGE_SIZE_BYTES int8 not null,
|
||||
SAVED_TIME timestamp not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
VERSION_ID varchar(200) not null,
|
||||
PACKAGE_PID int8 not null,
|
||||
BINARY_RES_ID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table NPM_PACKAGE_VER_RES (
|
||||
PID int8 not null,
|
||||
CANONICAL_URL varchar(200),
|
||||
CANONICAL_VERSION varchar(200),
|
||||
FILE_DIR varchar(200),
|
||||
FHIR_VERSION varchar(10) not null,
|
||||
FHIR_VERSION_ID varchar(10) not null,
|
||||
FILE_NAME varchar(200),
|
||||
RES_SIZE_BYTES int8 not null,
|
||||
RES_TYPE varchar(40) not null,
|
||||
UPDATED_TIME timestamp not null,
|
||||
PACKVER_PID int8 not null,
|
||||
BINARY_RES_ID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM (
|
||||
PID int8 not null,
|
||||
CODE_SYSTEM_URI varchar(200) not null,
|
||||
CURRENT_VERSION_PID int8,
|
||||
CS_NAME varchar(200),
|
||||
RES_ID int8,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CODESYSTEM_VER (
|
||||
PID int8 not null,
|
||||
CS_DISPLAY varchar(200),
|
||||
CODESYSTEM_PID int8,
|
||||
CS_VERSION_ID varchar(200),
|
||||
RES_ID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT (
|
||||
PID int8 not null,
|
||||
CODEVAL varchar(500) not null,
|
||||
CODESYSTEM_PID int8,
|
||||
DISPLAY varchar(400),
|
||||
INDEX_STATUS int8,
|
||||
PARENT_PIDS text,
|
||||
CODE_SEQUENCE int4,
|
||||
CONCEPT_UPDATED timestamp,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_DESIG (
|
||||
PID int8 not null,
|
||||
LANG varchar(500),
|
||||
USE_CODE varchar(500),
|
||||
USE_DISPLAY varchar(500),
|
||||
USE_SYSTEM varchar(500),
|
||||
VAL varchar(2000) not null,
|
||||
CS_VER_PID int8,
|
||||
CONCEPT_PID int8,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP (
|
||||
PID int8 not null,
|
||||
RES_ID int8,
|
||||
SOURCE_URL varchar(200),
|
||||
TARGET_URL varchar(200),
|
||||
URL varchar(200) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GROUP (
|
||||
PID int8 not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
SOURCE_URL varchar(200) not null,
|
||||
SOURCE_VS varchar(200),
|
||||
SOURCE_VERSION varchar(200),
|
||||
TARGET_URL varchar(200) not null,
|
||||
TARGET_VS varchar(200),
|
||||
TARGET_VERSION varchar(200),
|
||||
CONCEPT_MAP_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELEMENT (
|
||||
PID int8 not null,
|
||||
SOURCE_CODE varchar(500) not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
SOURCE_DISPLAY varchar(400),
|
||||
SYSTEM_URL varchar(200),
|
||||
SYSTEM_VERSION varchar(200),
|
||||
VALUESET_URL varchar(200),
|
||||
CONCEPT_MAP_GROUP_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_MAP_GRP_ELM_TGT (
|
||||
PID int8 not null,
|
||||
TARGET_CODE varchar(500) not null,
|
||||
CONCEPT_MAP_URL varchar(200),
|
||||
TARGET_DISPLAY varchar(400),
|
||||
TARGET_EQUIVALENCE varchar(50),
|
||||
SYSTEM_URL varchar(200),
|
||||
SYSTEM_VERSION varchar(200),
|
||||
VALUESET_URL varchar(200),
|
||||
CONCEPT_MAP_GRP_ELM_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PC_LINK (
|
||||
PID int8 not null,
|
||||
CHILD_PID int8,
|
||||
CODESYSTEM_PID int8 not null,
|
||||
PARENT_PID int8,
|
||||
REL_TYPE int4,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_CONCEPT_PROPERTY (
|
||||
PID int8 not null,
|
||||
PROP_CODESYSTEM varchar(500),
|
||||
PROP_DISPLAY varchar(500),
|
||||
PROP_KEY varchar(500) not null,
|
||||
PROP_TYPE int4 not null,
|
||||
PROP_VAL varchar(500),
|
||||
PROP_VAL_LOB oid,
|
||||
CS_VER_PID int8,
|
||||
CONCEPT_PID int8,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET (
|
||||
PID int8 not null,
|
||||
EXPANSION_STATUS varchar(50) not null,
|
||||
VSNAME varchar(200),
|
||||
RES_ID int8,
|
||||
TOTAL_CONCEPT_DESIGNATIONS int8 default 0 not null,
|
||||
TOTAL_CONCEPTS int8 default 0 not null,
|
||||
URL varchar(200) not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_C_DESIGNATION (
|
||||
PID int8 not null,
|
||||
VALUESET_CONCEPT_PID int8 not null,
|
||||
LANG varchar(500),
|
||||
USE_CODE varchar(500),
|
||||
USE_DISPLAY varchar(500),
|
||||
USE_SYSTEM varchar(500),
|
||||
VAL varchar(2000) not null,
|
||||
VALUESET_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
|
||||
create table TRM_VALUESET_CONCEPT (
|
||||
PID int8 not null,
|
||||
CODEVAL varchar(500) not null,
|
||||
DISPLAY varchar(400),
|
||||
VALUESET_ORDER int4 not null,
|
||||
SYSTEM_URL varchar(200) not null,
|
||||
VALUESET_PID int8 not null,
|
||||
primary key (PID)
|
||||
);
|
||||
create index IDX_BLKEX_EXPTIME on HFJ_BLK_EXPORT_JOB (EXP_TIME);
|
||||
|
||||
alter table if exists HFJ_BLK_EXPORT_JOB
|
||||
add constraint IDX_BLKEX_JOB_ID unique (JOB_ID);
|
||||
|
||||
alter table if exists HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_RESID unique (RESOURCE_PID);
|
||||
|
||||
alter table if exists HFJ_FORCED_ID
|
||||
add constraint IDX_FORCEDID_TYPE_FID unique (RESOURCE_TYPE, FORCED_ID);
|
||||
|
||||
alter table if exists HFJ_HISTORY_TAG
|
||||
add constraint IDX_RESHISTTAG_TAGID unique (RES_VER_PID, TAG_ID);
|
||||
create index IDX_IDXCMPSTRUNIQ_RESOURCE on HFJ_IDX_CMP_STRING_UNIQ (RES_ID);
|
||||
|
||||
alter table if exists HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint IDX_IDXCMPSTRUNIQ_STRING unique (IDX_STRING);
|
||||
|
||||
alter table if exists HFJ_PARTITION
|
||||
add constraint IDX_PART_NAME unique (PART_NAME);
|
||||
create index IDX_RL_TPATHRES on HFJ_RES_LINK (SRC_PATH, TARGET_RESOURCE_ID);
|
||||
create index IDX_RL_SRC on HFJ_RES_LINK (SRC_RESOURCE_ID);
|
||||
create index IDX_RL_DEST on HFJ_RES_LINK (TARGET_RESOURCE_ID);
|
||||
create index IDX_RESPARMPRESENT_RESID on HFJ_RES_PARAM_PRESENT (RES_ID);
|
||||
create index IDX_RESPARMPRESENT_HASHPRES on HFJ_RES_PARAM_PRESENT (HASH_PRESENCE);
|
||||
|
||||
alter table if exists HFJ_RES_TAG
|
||||
add constraint IDX_RESTAG_TAGID unique (RES_ID, TAG_ID);
|
||||
create index IDX_RESVER_TYPE_DATE on HFJ_RES_VER (RES_TYPE, RES_UPDATED);
|
||||
create index IDX_RESVER_ID_DATE on HFJ_RES_VER (RES_ID, RES_UPDATED);
|
||||
create index IDX_RESVER_DATE on HFJ_RES_VER (RES_UPDATED);
|
||||
|
||||
alter table if exists HFJ_RES_VER
|
||||
add constraint IDX_RESVER_ID_VER unique (RES_ID, RES_VER);
|
||||
create index IDX_RESVERPROV_SOURCEURI on HFJ_RES_VER_PROV (SOURCE_URI);
|
||||
create index IDX_RESVERPROV_REQUESTID on HFJ_RES_VER_PROV (REQUEST_ID);
|
||||
create index IDX_RES_DATE on HFJ_RESOURCE (RES_UPDATED);
|
||||
create index IDX_RES_LANG on HFJ_RESOURCE (RES_TYPE, RES_LANGUAGE);
|
||||
create index IDX_RES_TYPE on HFJ_RESOURCE (RES_TYPE);
|
||||
create index IDX_INDEXSTATUS on HFJ_RESOURCE (SP_INDEX_STATUS);
|
||||
create index IDX_SEARCH_RESTYPE_HASHS on HFJ_SEARCH (RESOURCE_TYPE, SEARCH_QUERY_STRING_HASH, CREATED);
|
||||
create index IDX_SEARCH_CREATED on HFJ_SEARCH (CREATED);
|
||||
|
||||
alter table if exists HFJ_SEARCH
|
||||
add constraint IDX_SEARCH_UUID unique (SEARCH_UUID);
|
||||
|
||||
alter table if exists HFJ_SEARCH_RESULT
|
||||
add constraint IDX_SEARCHRES_ORDER unique (SEARCH_PID, SEARCH_ORDER);
|
||||
create index IDX_SP_COORDS_HASH on HFJ_SPIDX_COORDS (HASH_IDENTITY, SP_LATITUDE, SP_LONGITUDE);
|
||||
create index IDX_SP_COORDS_UPDATED on HFJ_SPIDX_COORDS (SP_UPDATED);
|
||||
create index IDX_SP_COORDS_RESID on HFJ_SPIDX_COORDS (RES_ID);
|
||||
create index IDX_SP_DATE_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW, SP_VALUE_HIGH);
|
||||
create index IDX_SP_DATE_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW);
|
||||
create index IDX_SP_DATE_ORD_HASH on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL, SP_VALUE_HIGH_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_ORD_HASH_LOW on HFJ_SPIDX_DATE (HASH_IDENTITY, SP_VALUE_LOW_DATE_ORDINAL);
|
||||
create index IDX_SP_DATE_RESID on HFJ_SPIDX_DATE (RES_ID);
|
||||
create index IDX_SP_DATE_UPDATED on HFJ_SPIDX_DATE (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_HASH_VAL on HFJ_SPIDX_NUMBER (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_NUMBER_UPDATED on HFJ_SPIDX_NUMBER (SP_UPDATED);
|
||||
create index IDX_SP_NUMBER_RESID on HFJ_SPIDX_NUMBER (RES_ID);
|
||||
create index IDX_SP_QUANTITY_HASH on HFJ_SPIDX_QUANTITY (HASH_IDENTITY, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_UN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_AND_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_HASH_SYSUN on HFJ_SPIDX_QUANTITY (HASH_IDENTITY_SYS_UNITS, SP_VALUE);
|
||||
create index IDX_SP_QUANTITY_UPDATED on HFJ_SPIDX_QUANTITY (SP_UPDATED);
|
||||
create index IDX_SP_QUANTITY_RESID on HFJ_SPIDX_QUANTITY (RES_ID);
|
||||
create index IDX_SP_STRING_HASH_IDENT on HFJ_SPIDX_STRING (HASH_IDENTITY);
|
||||
create index IDX_SP_STRING_HASH_NRM on HFJ_SPIDX_STRING (HASH_NORM_PREFIX, SP_VALUE_NORMALIZED);
|
||||
create index IDX_SP_STRING_HASH_EXCT on HFJ_SPIDX_STRING (HASH_EXACT);
|
||||
create index IDX_SP_STRING_UPDATED on HFJ_SPIDX_STRING (SP_UPDATED);
|
||||
create index IDX_SP_STRING_RESID on HFJ_SPIDX_STRING (RES_ID);
|
||||
create index IDX_SP_TOKEN_HASH on HFJ_SPIDX_TOKEN (HASH_IDENTITY);
|
||||
create index IDX_SP_TOKEN_HASH_S on HFJ_SPIDX_TOKEN (HASH_SYS);
|
||||
create index IDX_SP_TOKEN_HASH_SV on HFJ_SPIDX_TOKEN (HASH_SYS_AND_VALUE);
|
||||
create index IDX_SP_TOKEN_HASH_V on HFJ_SPIDX_TOKEN (HASH_VALUE);
|
||||
create index IDX_SP_TOKEN_UPDATED on HFJ_SPIDX_TOKEN (SP_UPDATED);
|
||||
create index IDX_SP_TOKEN_RESID on HFJ_SPIDX_TOKEN (RES_ID);
|
||||
create index IDX_SP_URI on HFJ_SPIDX_URI (RES_TYPE, SP_NAME, SP_URI);
|
||||
create index IDX_SP_URI_HASH_IDENTITY on HFJ_SPIDX_URI (HASH_IDENTITY, SP_URI);
|
||||
create index IDX_SP_URI_HASH_URI on HFJ_SPIDX_URI (HASH_URI);
|
||||
create index IDX_SP_URI_RESTYPE_NAME on HFJ_SPIDX_URI (RES_TYPE, SP_NAME);
|
||||
create index IDX_SP_URI_UPDATED on HFJ_SPIDX_URI (SP_UPDATED);
|
||||
create index IDX_SP_URI_COORDS on HFJ_SPIDX_URI (RES_ID);
|
||||
|
||||
alter table if exists HFJ_SUBSCRIPTION_STATS
|
||||
add constraint IDX_SUBSC_RESID unique (RES_ID);
|
||||
|
||||
alter table if exists HFJ_TAG_DEF
|
||||
add constraint IDX_TAGDEF_TYPESYSCODE unique (TAG_TYPE, TAG_SYSTEM, TAG_CODE);
|
||||
|
||||
alter table if exists MPI_LINK
|
||||
add constraint IDX_EMPI_PERSON_TGT unique (PERSON_PID, TARGET_PID);
|
||||
|
||||
alter table if exists NPM_PACKAGE
|
||||
add constraint IDX_PACK_ID unique (PACKAGE_ID);
|
||||
|
||||
alter table if exists NPM_PACKAGE_VER
|
||||
add constraint IDX_PACKVER unique (PACKAGE_ID, VERSION_ID);
|
||||
create index IDX_PACKVERRES_URL on NPM_PACKAGE_VER_RES (CANONICAL_URL);
|
||||
|
||||
alter table if exists TRM_CODESYSTEM
|
||||
add constraint IDX_CS_CODESYSTEM unique (CODE_SYSTEM_URI);
|
||||
create index IDX_CONCEPT_INDEXSTATUS on TRM_CONCEPT (INDEX_STATUS);
|
||||
create index IDX_CONCEPT_UPDATED on TRM_CONCEPT (CONCEPT_UPDATED);
|
||||
|
||||
alter table if exists TRM_CONCEPT
|
||||
add constraint IDX_CONCEPT_CS_CODE unique (CODESYSTEM_PID, CODEVAL);
|
||||
|
||||
alter table if exists TRM_CONCEPT_MAP
|
||||
add constraint IDX_CONCEPT_MAP_URL unique (URL);
|
||||
create index IDX_CNCPT_MAP_GRP_CD on TRM_CONCEPT_MAP_GRP_ELEMENT (SOURCE_CODE);
|
||||
create index IDX_CNCPT_MP_GRP_ELM_TGT_CD on TRM_CONCEPT_MAP_GRP_ELM_TGT (TARGET_CODE);
|
||||
|
||||
alter table if exists TRM_VALUESET
|
||||
add constraint IDX_VALUESET_URL unique (URL);
|
||||
|
||||
alter table if exists TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_CS_CD unique (VALUESET_PID, SYSTEM_URL, CODEVAL);
|
||||
|
||||
alter table if exists TRM_VALUESET_CONCEPT
|
||||
add constraint IDX_VS_CONCEPT_ORDER unique (VALUESET_PID, VALUESET_ORDER);
|
||||
|
||||
alter table if exists HFJ_BLK_EXPORT_COLFILE
|
||||
add constraint FK_BLKEXCOLFILE_COLLECT
|
||||
foreign key (COLLECTION_PID)
|
||||
references HFJ_BLK_EXPORT_COLLECTION;
|
||||
|
||||
alter table if exists HFJ_BLK_EXPORT_COLLECTION
|
||||
add constraint FK_BLKEXCOL_JOB
|
||||
foreign key (JOB_PID)
|
||||
references HFJ_BLK_EXPORT_JOB;
|
||||
|
||||
alter table if exists HFJ_FORCED_ID
|
||||
add constraint FK_FORCEDID_RESOURCE
|
||||
foreign key (RESOURCE_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_HISTORY_TAG
|
||||
add constraint FKtderym7awj6q8iq5c51xv4ndw
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table if exists HFJ_HISTORY_TAG
|
||||
add constraint FK_HISTORYTAG_HISTORY
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table if exists HFJ_IDX_CMP_STRING_UNIQ
|
||||
add constraint FK_IDXCMPSTRUNIQ_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_SOURCE
|
||||
foreign key (SRC_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_LINK
|
||||
add constraint FK_RESLINK_TARGET
|
||||
foreign key (TARGET_RESOURCE_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_PARAM_PRESENT
|
||||
add constraint FK_RESPARMPRES_RESID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_TAG
|
||||
add constraint FKbfcjbaftmiwr3rxkwsy23vneo
|
||||
foreign key (TAG_ID)
|
||||
references HFJ_TAG_DEF;
|
||||
|
||||
alter table if exists HFJ_RES_TAG
|
||||
add constraint FK_RESTAG_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_VER
|
||||
add constraint FK_RESOURCE_HISTORY_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RES_PID
|
||||
foreign key (RES_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_RES_VER_PROV
|
||||
add constraint FK_RESVERPROV_RESVER_PID
|
||||
foreign key (RES_VER_PID)
|
||||
references HFJ_RES_VER;
|
||||
|
||||
alter table if exists HFJ_SEARCH_INCLUDE
|
||||
add constraint FK_SEARCHINC_SEARCH
|
||||
foreign key (SEARCH_PID)
|
||||
references HFJ_SEARCH;
|
||||
|
||||
alter table if exists HFJ_SPIDX_COORDS
|
||||
add constraint FKc97mpk37okwu8qvtceg2nh9vn
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SPIDX_DATE
|
||||
add constraint FK17s70oa59rm9n61k9thjqrsqm
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SPIDX_NUMBER
|
||||
add constraint FKcltihnc5tgprj9bhpt7xi5otb
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SPIDX_QUANTITY
|
||||
add constraint FKn603wjjoi1a6asewxbbd78bi5
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SPIDX_STRING
|
||||
add constraint FK_SPIDXSTR_RESOURCE
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SPIDX_TOKEN
|
||||
add constraint FK7ulx3j1gg3v7maqrejgc7ybc4
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SPIDX_URI
|
||||
add constraint FKgxsreutymmfjuwdswv3y887do
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists HFJ_SUBSCRIPTION_STATS
|
||||
add constraint FK_SUBSC_RESOURCE_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists MPI_LINK
|
||||
add constraint FK_EMPI_LINK_PERSON
|
||||
foreign key (PERSON_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists MPI_LINK
|
||||
add constraint FK_EMPI_LINK_TARGET
|
||||
foreign key (TARGET_PID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_PKG
|
||||
foreign key (PACKAGE_PID)
|
||||
references NPM_PACKAGE;
|
||||
|
||||
alter table if exists NPM_PACKAGE_VER
|
||||
add constraint FK_NPM_PKV_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PACKVERRES_PACKVER
|
||||
foreign key (PACKVER_PID)
|
||||
references NPM_PACKAGE_VER;
|
||||
|
||||
alter table if exists NPM_PACKAGE_VER_RES
|
||||
add constraint FK_NPM_PKVR_RESID
|
||||
foreign key (BINARY_RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_CURVER
|
||||
foreign key (CURRENT_VERSION_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table if exists TRM_CODESYSTEM
|
||||
add constraint FK_TRMCODESYSTEM_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_CS_ID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM;
|
||||
|
||||
alter table if exists TRM_CODESYSTEM_VER
|
||||
add constraint FK_CODESYSVER_RES_ID
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists TRM_CONCEPT
|
||||
add constraint FK_CONCEPT_PID_CS_PID
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table if exists TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table if exists TRM_CONCEPT_DESIG
|
||||
add constraint FK_CONCEPTDESIG_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table if exists TRM_CONCEPT_MAP
|
||||
add constraint FK_TRMCONCEPTMAP_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists TRM_CONCEPT_MAP_GROUP
|
||||
add constraint FK_TCMGROUP_CONCEPTMAP
|
||||
foreign key (CONCEPT_MAP_PID)
|
||||
references TRM_CONCEPT_MAP;
|
||||
|
||||
alter table if exists TRM_CONCEPT_MAP_GRP_ELEMENT
|
||||
add constraint FK_TCMGELEMENT_GROUP
|
||||
foreign key (CONCEPT_MAP_GROUP_PID)
|
||||
references TRM_CONCEPT_MAP_GROUP;
|
||||
|
||||
alter table if exists TRM_CONCEPT_MAP_GRP_ELM_TGT
|
||||
add constraint FK_TCMGETARGET_ELEMENT
|
||||
foreign key (CONCEPT_MAP_GRP_ELM_PID)
|
||||
references TRM_CONCEPT_MAP_GRP_ELEMENT;
|
||||
|
||||
alter table if exists TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CHILD
|
||||
foreign key (CHILD_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table if exists TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_CS
|
||||
foreign key (CODESYSTEM_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table if exists TRM_CONCEPT_PC_LINK
|
||||
add constraint FK_TERM_CONCEPTPC_PARENT
|
||||
foreign key (PARENT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table if exists TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CSV
|
||||
foreign key (CS_VER_PID)
|
||||
references TRM_CODESYSTEM_VER;
|
||||
|
||||
alter table if exists TRM_CONCEPT_PROPERTY
|
||||
add constraint FK_CONCEPTPROP_CONCEPT
|
||||
foreign key (CONCEPT_PID)
|
||||
references TRM_CONCEPT;
|
||||
|
||||
alter table if exists TRM_VALUESET
|
||||
add constraint FK_TRMVALUESET_RES
|
||||
foreign key (RES_ID)
|
||||
references HFJ_RESOURCE;
|
||||
|
||||
alter table if exists TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VALUESET_CONCEPT_PID
|
||||
foreign key (VALUESET_CONCEPT_PID)
|
||||
references TRM_VALUESET_CONCEPT;
|
||||
|
||||
alter table if exists TRM_VALUESET_C_DESIGNATION
|
||||
add constraint FK_TRM_VSCD_VS_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
||||
|
||||
alter table if exists TRM_VALUESET_CONCEPT
|
||||
add constraint FK_TRM_VALUESET_PID
|
||||
foreign key (VALUESET_PID)
|
||||
references TRM_VALUESET;
|
|
@ -7,6 +7,7 @@ import ca.uhn.fhir.jpa.migrate.MigrationTaskList;
|
|||
import ca.uhn.fhir.jpa.migrate.SchemaMigrator;
|
||||
import ca.uhn.fhir.jpa.migrate.dao.HapiMigrationDao;
|
||||
import ca.uhn.fhir.jpa.migrate.tasks.HapiFhirJpaMigrationTasks;
|
||||
import ca.uhn.fhir.system.HapiSystemProperties;
|
||||
import ca.uhn.fhir.util.VersionEnum;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.extension.RegisterExtension;
|
||||
|
@ -19,6 +20,7 @@ import javax.sql.DataSource;
|
|||
import java.util.Collections;
|
||||
import java.util.Properties;
|
||||
|
||||
import static ca.uhn.fhir.jpa.embedded.HapiEmbeddedDatabasesExtension.FIRST_TESTED_VERSION;
|
||||
import static ca.uhn.fhir.jpa.migrate.SchemaMigrator.HAPI_FHIR_MIGRATION_TABLENAME;
|
||||
|
||||
|
||||
|
@ -31,21 +33,35 @@ public class HapiSchemaMigrationTest {
|
|||
static HapiEmbeddedDatabasesExtension myEmbeddedServersExtension = new HapiEmbeddedDatabasesExtension();
|
||||
|
||||
@AfterEach
|
||||
public void afterEach(){
|
||||
public void afterEach() {
|
||||
myEmbeddedServersExtension.clearDatabases();
|
||||
HapiSystemProperties.enableUnitTestMode();
|
||||
}
|
||||
|
||||
|
||||
@ParameterizedTest
|
||||
@ArgumentsSource(HapiEmbeddedDatabasesExtension.DatabaseVendorProvider.class)
|
||||
public void testMigration(DriverTypeEnum theDriverType){
|
||||
public void testMigration(DriverTypeEnum theDriverType) {
|
||||
// ensure all migrations are run
|
||||
HapiSystemProperties.disableUnitTestMode();
|
||||
|
||||
ourLog.info("Running hapi fhir migration tasks for {}", theDriverType);
|
||||
|
||||
myEmbeddedServersExtension.initializePersistenceSchema(theDriverType);
|
||||
myEmbeddedServersExtension.insertPersistenceTestData(theDriverType);
|
||||
|
||||
DataSource dataSource = myEmbeddedServersExtension.getDataSource(theDriverType);
|
||||
HapiMigrationDao hapiMigrationDao = new HapiMigrationDao(dataSource, theDriverType, HAPI_FHIR_MIGRATION_TABLENAME);
|
||||
HapiMigrationStorageSvc hapiMigrationStorageSvc = new HapiMigrationStorageSvc(hapiMigrationDao);
|
||||
|
||||
MigrationTaskList migrationTasks = new HapiFhirJpaMigrationTasks(Collections.EMPTY_SET).getAllTasks(VersionEnum.values());
|
||||
VersionEnum[] allVersions = VersionEnum.values();
|
||||
|
||||
int fromVersion = FIRST_TESTED_VERSION.ordinal() - 1;
|
||||
VersionEnum from = allVersions[fromVersion];
|
||||
|
||||
int lastVersion = allVersions.length - 1;
|
||||
VersionEnum to = allVersions[lastVersion];
|
||||
|
||||
MigrationTaskList migrationTasks = new HapiFhirJpaMigrationTasks(Collections.EMPTY_SET).getTaskList(from, to);
|
||||
SchemaMigrator schemaMigrator = new SchemaMigrator(TEST_SCHEMA_NAME, HAPI_FHIR_MIGRATION_TABLENAME, dataSource, new Properties(), migrationTasks, hapiMigrationStorageSvc);
|
||||
schemaMigrator.setDriverType(theDriverType);
|
||||
schemaMigrator.createMigrationTableIfRequired();
|
||||
|
|
Loading…
Reference in New Issue