public class PostgresVisitStore extends PostgresExtension<I2b2Visit>
Some optional columns are used: active_status_cd, start_date, end_date, inout_cd, location_cd, sourcesystem_cd
TODO use encounter_mapping table to map actual (source) patient_ide to internal patient_num for facts.
The variable argument list for createInstance(Object...) requires the following arguments:
StringvisitId, I2b2Patientpatient, ExternalSourceTypesource.
config, db| Constructor and Description |
|---|
PostgresVisitStore(Map<String,String> configuration) |
| Modifier and Type | Method and Description |
|---|---|
I2b2Visit |
createInstance(Object... args) |
I2b2Visit |
createInstance(Observation fact) |
void |
deleteWhereSourceId(String sourceId) |
void |
flush()
Write updates to disk.
|
Class<?>[] |
getInstanceTypes() |
void |
loadMaxInstanceNums() |
protected void |
prepareStatements() |
int |
size() |
close, copyProperties, getConnection, getFetchSize, inaccurateSqlTimestamp, openDatabaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic PostgresVisitStore(Map<String,String> configuration) throws ClassNotFoundException, SQLException
ClassNotFoundExceptionSQLExceptionprotected void prepareStatements()
throws SQLException
prepareStatements in class PostgresExtension<I2b2Visit>SQLExceptionpublic int size()
public void loadMaxInstanceNums()
throws SQLException
SQLExceptionpublic I2b2Visit createInstance(Observation fact)
public Class<?>[] getInstanceTypes()
public void deleteWhereSourceId(String sourceId) throws SQLException
deleteWhereSourceId in class PostgresExtension<I2b2Visit>SQLExceptionpublic I2b2Visit createInstance(Object... args) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic void flush()
PostgresExtensionPostgresExtension.close().flush in class PostgresExtension<I2b2Visit>Copyright © 2013–2015 R.W.Majeed. All rights reserved.