public class I2b2ExtractorFactory extends Object implements AutoCloseable, ObservationExtractor
Allows simple queries against the i2b2 observation_fact table and retrieval of facts.
TODO add/use interface from histream-core XXX TODO allow to map patient_num -> Patient and encounter_num -> Encounter, this must be done before the extension is accessed| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_WILDCARD_CONCEPT_CODES
Boolean feature whether to allow wildcard concept keys.
|
| Constructor and Description |
|---|
I2b2ExtractorFactory(DataSource crc_ds,
ObservationFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
I2b2Extractor |
extract(Instant start_min,
Instant start_max,
Iterable<String> notations) |
ObservationFactory |
getObservationFactory() |
void |
setFeature(String feature,
Object value) |
void |
setPatientLookup(Function<Integer,? extends Patient> lookup) |
void |
setProperty(String property,
Object value) |
void |
setVisitLookup(Function<Integer,? extends Visit> lookup) |
public static String ALLOW_WILDCARD_CONCEPT_CODES
Use with caution: Unexpected results might happen if wildcard concepts overlap. (Such as query fails, duplicate facts, etc.)
public I2b2ExtractorFactory(DataSource crc_ds, ObservationFactory factory) throws SQLException
SQLExceptionpublic ObservationFactory getObservationFactory()
public void close()
close in interface AutoCloseablepublic I2b2Extractor extract(Instant start_min, Instant start_max, Iterable<String> notations) throws IOException
extract in interface ObservationExtractorIOExceptionCopyright © 2013–2017 R.W.Majeed. All rights reserved.