Versions Compared

Key

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


Export Mapping configuration

Will export all Advice Age Range, Principle, Project, Relation, Report Definition, and Users from a Mapping Server into JSON files.  The exported files can be used to initialize a new system.

Run the maven command from admin/loader directory.

Code Block
languagebash
titleMaven Command
mvn install -PExportAppConfigDataMojo \
	-Drun.config=FILE_LOCATION_OF_RUN_CONFIG \
	-Dconfig.file.root=ROOT_FOLDER \
	-Dadvice.config.file=Advice.config.json \
	-DageRange.config.file=AgeRange.config.json \
	-Dprinciple.config.file=Principle.config.json \
	-Dproject.config.file=Project.config.json \
	-Drelation.config.file=Relation.config.json \
	-Dreport.config.file=Report.config.json \
	-Duser.config.file=User.config.json


The project configuration file will show assigned names of advice, age range, principle, relation, report and users rather than the full details already contained in each of the other files.

Code Block
languagejs
titleSample
[
   {
      "dateFormat":"YYYYMMDD",
      "destinationTerminology":"MEDDRA",
      "destinationTerminologyVersion":"latest",
      "editingCycleBeginDate":"20190116",
      "groupStructure":true,
      "mapRefsetPattern":"ComplexMap",
      "name":"SNOMEDCT to MedDRA with REVIEW",
      "projectSpecificAlgorithmHandlerClass":"org.ihtsdo.otf.mapping.jpa.handlers.MedDRAFromSnomedProjectSpecificAlgorithmHandler",
      "propagatedFlag":false,
      "isPublic":false,
      "isTeamBased":true,
      "refSetId":"12345",
      "refSetName":"SNOMED to MedDRA Refset",
      "sourceTerminology":"SNOMEDCT",
      "sourceTerminologyVersion":"latest",
      "workflowType":"CONFLICT_PROJECT",
      "mapRelationStyle":"RELATIONSHIP_STYLE",
      "scopeDescendantsFlag":false,
      "includeScopeConcepts":[
         "21454007",
         "47933007",
         "71388002",
         "25353009",
         "169443000"
      ],
      "excludeScopeConcepts":[

      ],
      "reports":[

      ],
      "leads":[
         "lead1",
         "lead2"
      ],
      "specialists":[
         "specialist1",
         "specialist2"
      ],
      "errorMessages":[

      ]
   },
   {
      "dateFormat":"YYYYMMDD",
      "destinationTerminology":"SNOMEDCT",
      "destinationTerminologyVersion":"latest",
      "editingCycleBeginDate":"20190116",
      "groupStructure":true,
      "mapRefsetPattern":"ComplexMap",
      "name":"MedDRA to SNOMEDCT with REVIEW",
      "projectSpecificAlgorithmHandlerClass":"org.ihtsdo.otf.mapping.jpa.handlers.DefaultProjectSpecificAlgorithmHandler",
      "propagatedFlag":false,
      "isPublic":false,
      "isTeamBased":true,
      "refSetId":"67890",
      "refSetName":"MedDRA to SNOMEDCT Refset",
      "sourceTerminology":"MEDDRA",
      "sourceTerminologyVersion":"latest",
      "workflowType":"CONFLICT_PROJECT",
      "mapRelationStyle":"NONE",
      "scopeDescendantsFlag":false,
      "includeScopeConcepts":[
         "10054209",
         "10044684",
         "10012735",
         "10030892",
         "10068789"
      ],
      "excludeScopeConcepts":[

      ],
      "reports":[
         "New concepts in release cycle",
         "Final QA Check SNOMED",
         "Gangrene Check"
      ],
      "leads":[
         "lead1",
         "lead2"
      ],
      "specialists":[
         "specialist1",
         "specialist2"
      ],
      "errorMessages":[
         "CT5 - Incorrect SNOMED FSN assigned",
         "CT3 - non adherence to Mapping Principle",
         "CT2 - Incorrect MedDRA SOC",
         "CT1 - Incorrect SNOMED Hierarchy",
         "CT4 - Incorrect MedDRA LLT assigned"
      ]
   }
]



Import Mapping configuration

When importing mapping project(s) from files the project config file is executed last for all other information to be created prior to creating a project so.  This allows users to be created first and then assigned to the project.  When loading users from the user config file if the username already exists, it is skipped.  The same if true for advice, age range, principle, project, relations and reports.  If the name already exists the configuration is not loaded.  Information will be written to the log when an item is skipped or loaded.  All file generated from the export include id and objectid except for project config file.  If reloading these into a new instance, the id and objectid are ignored.  The new database will assign its own ids.

Run the maven command from admin/loader directory.

Code Block
languagebash
titleMaven Command
mvn install -PExportAppConfigDataMojo \
	-Drun.config=FILE_LOCATION_OF_RUN_CONFIG \
	-Dconfig.file.root=ROOT_FOLDER \
	-Dadvice.config.file=Advice.config.json \
	-DageRange.config.file=AgeRange.config.json \
	-Dprinciple.config.file=Principle.config.json \
	-Dproject.config.file=Project.config.json \
	-Drelation.config.file=Relation.config.json \
	-Dreport.config.file=Report.config.json \
	-Duser.config.file=User.config.json