Overview
This page documents the use of admin tools for updating concept and target names for map records/map entries.
Prerequisites
- MySQL database must already exist (e.g. "mappingservicedb").
- MySQL database connection parameters must be defined in the properties file specified by "run.config".
- Create/Update DB mojo must also have already run so that the database schema exists.
- The source or destination terminology of a map project should have been loaded already.
- IMPORTANT: The Tomcat server must not be running while this is run, otherwise indexes can get corrupted.
Details
There is a mojo for updating the concept names of a map record and target names of corresponding map entries. This should be run when source or destination terminologies for a map project are updated.
Mojo: MapRecordUpdaterMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/mapping/mojo)
Project: admin/loader
Configuration Parameters
- A profile of "UpdateMapRecords"
- run.config - the standard configuration file specified as a -D parameter
- refset.id - the refset id (or comma separated list of ids) to update names for.
Sample
Sample command line call of the admin tool to load update concept and target names for map records and map entries:
% cd ~/code/admin/loader % mvn install -PUpdateMapRecords -Drun.config=/home/ihtsdo/config/config.properties -Drefset.id=447562003
Sample Eclipse run configuration for loading SNOMED CT:
Troubleshooting
n/a