-
Notifications
You must be signed in to change notification settings - Fork 0
Use Case
Michael Yuan edited this page Sep 6, 2013
·
3 revisions
Run the command line Java app
> rxparser.sh
It will ask directories to find drug databases
> Location of RxNorm files: ./rxnorm/ > Location of RxTerms files: ./rxterms/ > Location of Medi-span files: ./mddb/ > Location of FDB files: ./nddf/ ... ...
It will then ask you to select an "exporter plugin". Here, the user enters the full class name of the Java class that is responsible for export. The idea here is that everyone can write an exporter class to export the data in any format to any external source formats.
> Exporter plugin class: com.ringfulhealth.rxparser.exporter.RingfulNIDA2013.RingfulExporter
This will create files in the ./export
directory based on the exporter class's behavior.
-
The app will first ingest all database files and build an in-memory model for all data
- Each file corresponds to an entity object type
- Each column is a field in the object class
- Each row is an object
- Each file is an array of objects
-
The exporter class conforms to the
Exporter
interface, which implements a single methodexport
. The method does the following.- The
export()
method handles the logic of trimming, combining, flatting the data structure into a new object model we want. - The
export()
method also creates the output files (e.g., SQLite database files via JDBC) and then writes the object model into it.
- The