This page documents the use of admin tools to load or remove map records. This is used to take mappings from a legacy system and install them into the new environment.
This tool is used to load map records from either a loaded terminology (e.g. SNOMED CT) or from an RF2 file. In either case, there is an alignment that must exist between the refset id in the file (or database) and the refset id of one of the map projects defined in the system. Typically this process should only be run once for each map project and if data needs to be reloaded, the remover should be run first
Following are some details about the loader implementations:
Mojo: MapRecordComplexMapLoaderMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/mapping/mojo)
Project: admin/loader
Configuration Parameters
Mojo: MapRecordRf2ComplexMapLoaderMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/mapping/mojo)
Project: admin/loader
Configuration Parameters
Related
Following are some details about the remover implementation:
Mojo: MapRecordRemoverMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/mapping/mojo)
Project: admin/remover
Configuration Parameters
Sample command line call of the admin tool to load map records from complex/extended map refset entries for refsets 447563008 and 447562003:
% cd ~/code/admin/loader % mvn -Drun.config=/home/ihtsdo/data/config.properties -PCreateMapRecords -Drefset.id=447563008,447562003 install |
Sample command line call of the admin tool to load map records from an RF2 file (the RF2 file is specified in the run.config file):
% cd ~/code/admin/loader % mvn -Drun.config=/home/ihtsdo/data/config.properties -PMapRecords install |
Sample command line call of the admin tool to remove map records for for refsets 447563008 and 447562003:
% cd ~/code/admin/remover % mvn -Drun.config=/home/ihtsdo/data/config.properties -PMapRecords -Drefset.id=447563008,447562003 install |
Sample Eclipse run configuration to load map records from complex map refset entries for refsets 447563008 and 447562003:
Sample Eclipse run configuration to load map records from an RF2 file (the RF2 file is specified in the run.config file):
Sample Eclipse run configuration to remove map records for refsets 447563008 and 447562003:
If anything goes wrong while loading map records, the remover can simply be used to clear the state and try again. The main two strategies for loading the mapping tool are