Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Details

There is an RRF loader, an RF2 loader, a ClaML loader, and a general terminology remover.

...

Loading a Single Terminology from RRF

This tool is used to load just a single terminology from a larger set of RRF data files from the UMLS (or other RRF-based Metathesaurus).  For example, if given a complete set of RRF files for a UMLS edition, a single terminology, such as SNOMEDCT_US could be loaded without having to subset the files. 

Mojo: TerminologyRrfSingleLoaderMojo.java (in admin/mojo/src/main/resources/java/com/wci/umls/server/mojo)
Project: admin/loader
Configuration Parameters

  • A profile indicating RRF-single must be specified
  • run.config.umls - the standard configuration file specified as a -D parameter
  • input.dir - the input directory for the RRF data
    • NOTE: this directory must also contain an SRDEF file (from the NET/ folder of a standard distribution)
  • terminology - the terminology value to use when loading (e.g. "RXNORM")
  • version - the (optional) terminology version, the value "latest" SNOMEDCT_USis used by default.
  • server - true/false indicating whether to run the mojo through the server 

Loading a Terminology from RR2 Snapshot

This tool is used to load a SNOMEDCT based data set from snapshot RF2 data files.  The international edition, NRC extensions, and other affiliate extensions (e.g. Kaiser or Vet) can all be loaded using this admin tool. 

Mojo: TerminologyRf2SnapshotLoaderMojo.java (in admin/mojo/src/main/resources/java/com/wci/umls/server/mojo)
Project: admin/loader
Configuration Parameters

  • A profile indicating RF2-snapshot must be specified
  • run.config.umls - the standard configuration file specified as a -D parameter
  • input.dir - the input directory for the RF2 data
  • terminology - the terminology value to use when loading (e.g. "SNOMEDCT")
  • version - the (optional) terminology version, the value "latest" is used by default.
  • server - true/false indicating whether to run the mojo through the server 

Removing a Terminology

The terminology remover is used to remove any terminology (and version) from the database, regardless of what loader was used to load it.  NOTE, when a loading an entire Metathesaurus, each individual terminology stands on its own and so must be individually removed, if desired.

...

 

Code Block
% cd ~/code/admin/loader
% mvn install -PRRF-umls -Drun.config.umls=/home/ec2-tomcat/config/config.properties -Dterminology=UMLS -Dinput.dir=../../config/src/main/resources/data/SAMPLE_2014AB

Sample command line call of the admin tool to load a single terminology from RRF files using the version "latest":

 

Code Block
% cd ~/code/admin/loader
% mvn install -PRRF-single -Drun.config.umls=/home/ec2-tomcat/config/config.properties -Dterminology=SNOMEDCT_US -Dinput.dir=../../config/src/main/resources/data/SAMPLE_2014AB

 

Sample command line call of the admin tool to load SNOMEDCT from RF2:

 

Code Block
% cd ~/code/admin/remover
% mvn install -PTerminology -Drun.config.umls=/home/ec2-tomcat/config/config.properties -Dterminology=SNOMEDCT -Dversion=latest -Dinput.dir=/path/to/RF2Release/Snapshot

 

Sample command line call of the admin tool to remove SNOMEDCT_US with version 2014_09_01:

 

Code Block
% cd ~/code/admin/remover
% mvn install -PTerminology -Drun.config.umls=/home/ec2-tomcat/config/config.properties -Dterminology=SNOMEDCT_US -Dversion=2014_09_01
 

 

Sample Eclipse run configuration for loading an RRF data set:

...