public class XlsxDataProvider extends Object implements DataProvider
DataProvider interface, using an Excel
workbook as the data source.| Constructor and Description |
|---|
XlsxDataProvider(File inDataFile,
Locale locale)
Create the data provider from the given data file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any underlying resources needed to read the data.
|
List<CPT> |
getCptCodes()
Get a list of CPT codes from the data.
|
File |
getDataFile() |
List<Encounter> |
getEncounters()
Get a list of encounters from the data.
|
List<Icd9Diagnosis> |
getIcd9Diagnoses()
Get a list of ICD9 Diagnostic codes from the data.
|
List<Icd9Procedure> |
getIcd9Procedures()
Get a list of ICD9 Procedure codes from the data.
|
List<Lab> |
getLabs()
Get a list of lab results from the data.
|
List<Medication> |
getMedications()
Get a list of medication from the data.
|
List<Patient> |
getPatients()
Get a list of patients from the data.
|
List<Provider> |
getProviders()
Get a list of providers from the data.
|
List<Vital> |
getVitals()
Get a list of vitals from the data.
|
public XlsxDataProvider(File inDataFile, Locale locale) throws DataProviderException
inDataFile - The Excel workbook file to use as the data store.DataProviderException - Thrown when the workbook can not be
accessed, or parsed correctly.public File getDataFile()
public List<Patient> getPatients() throws DataProviderException
DataProvidergetPatients in interface DataProviderPatient objects.DataProviderException - if an error occurred reading patients from
the data source.public List<Provider> getProviders() throws DataProviderException
DataProvidergetProviders in interface DataProviderProvider objects.DataProviderException - if an error occurred reading providers
from the data source.public List<Encounter> getEncounters() throws DataProviderException
DataProvidergetEncounters in interface DataProviderEncounter objects.DataProviderException - if an error occurred reading encounters
from the data source.public List<CPT> getCptCodes() throws DataProviderException
DataProvidergetCptCodes in interface DataProviderCPT objects.DataProviderException - if an error occurred reading CPT codes
from the data source.public List<Icd9Diagnosis> getIcd9Diagnoses() throws DataProviderException
DataProvidergetIcd9Diagnoses in interface DataProviderIcd9Diagnosis objects.DataProviderException - if an error occurred reading ICD9
diagnosis codes from the data source.public List<Icd9Procedure> getIcd9Procedures() throws DataProviderException
DataProvidergetIcd9Procedures in interface DataProviderIcd9Procedure objects.DataProviderException - if an error occurred reading ICD9
procedure codes from the data source.public List<Medication> getMedications() throws DataProviderException
DataProvidergetMedications in interface DataProviderMedication objects.DataProviderException - if an error occurred reading medication
codes from the data source.public List<Lab> getLabs() throws DataProviderException
DataProvidergetLabs in interface DataProviderLab objects.DataProviderException - if an error occurred reading laboratory
test results from the data source.public List<Vital> getVitals() throws DataProviderException
DataProvidergetVitals in interface DataProviderVital objects.DataProviderException - if an error occurred reading vital signs
from the data source.public void close()
throws IOException
DataProviderclose in interface DataProviderIOException - if an error occurred closing the underlying data
source.Copyright © 2012–2018 Emory University. All rights reserved.