diff --git a/extraJars/applications-api-3.1.1-SNAPSHOT.jar b/extraJars/applications-api-3.1.2-SNAPSHOT.jar
similarity index 82%
rename from extraJars/applications-api-3.1.1-SNAPSHOT.jar
rename to extraJars/applications-api-3.1.2-SNAPSHOT.jar
index 13aa94f25..3728274dc 100644
Binary files a/extraJars/applications-api-3.1.1-SNAPSHOT.jar and b/extraJars/applications-api-3.1.2-SNAPSHOT.jar differ
diff --git a/extraJars/clinical-trials-api-3.1.1-SNAPSHOT.jar b/extraJars/clinical-trials-api-3.1.2-SNAPSHOT.jar
similarity index 86%
rename from extraJars/clinical-trials-api-3.1.1-SNAPSHOT.jar
rename to extraJars/clinical-trials-api-3.1.2-SNAPSHOT.jar
index 97905f1c9..c8c5a777a 100644
Binary files a/extraJars/clinical-trials-api-3.1.1-SNAPSHOT.jar and b/extraJars/clinical-trials-api-3.1.2-SNAPSHOT.jar differ
diff --git a/extraJars/products-api-3.1.1-SNAPSHOT.jar b/extraJars/products-api-3.1.2-SNAPSHOT.jar
similarity index 88%
rename from extraJars/products-api-3.1.1-SNAPSHOT.jar
rename to extraJars/products-api-3.1.2-SNAPSHOT.jar
index b54a1d374..ac5721683 100644
Binary files a/extraJars/products-api-3.1.1-SNAPSHOT.jar and b/extraJars/products-api-3.1.2-SNAPSHOT.jar differ
diff --git a/gsrs-fda-substance-extension/pom.xml b/gsrs-fda-substance-extension/pom.xml
index 317ec4eb9..d0548d2d6 100644
--- a/gsrs-fda-substance-extension/pom.xml
+++ b/gsrs-fda-substance-extension/pom.xml
@@ -5,7 +5,7 @@
gsrs-module-substances
gov.nih.ncats
- 3.1.1.1
+ 3.1.2-SNAPSHOT
4.0.0
@@ -110,7 +110,7 @@
gov.nih.ncats
applications-api
- 3.1.1-SNAPSHOT
+ ${gsrs.applications-api.version}
org.apache.logging.log4j
@@ -139,7 +139,7 @@
gov.nih.ncats
products-api
- 3.1.1-SNAPSHOT
+ ${gsrs.products-api.version}
org.apache.logging.log4j
@@ -168,7 +168,7 @@
gov.nih.ncats
clinical-trials-api
- 3.1.1-SNAPSHOT
+ ${gsrs.clinical-trials-api.version}
org.apache.logging.log4j
diff --git a/gsrs-module-substance-example/pom.xml b/gsrs-module-substance-example/pom.xml
index d139403d2..a3c6b6d9f 100644
--- a/gsrs-module-substance-example/pom.xml
+++ b/gsrs-module-substance-example/pom.xml
@@ -5,7 +5,7 @@
gsrs-module-substances
gov.nih.ncats
- 3.1.1.1
+ 3.1.2-SNAPSHOT
4.0.0
@@ -339,7 +339,7 @@
commons-io
commons-io
- 2.11.0
+ 2.14.0
org.apache.commons
diff --git a/gsrs-module-substance-example/src/main/resources/application.conf b/gsrs-module-substance-example/src/main/resources/application.conf
index b8e306a34..09d5102e8 100644
--- a/gsrs-module-substance-example/src/main/resources/application.conf
+++ b/gsrs-module-substance-example/src/main/resources/application.conf
@@ -25,8 +25,8 @@ ix.authentication.logheaders=false
#logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
logging.level.gsrs.module.substance.scrubbers.basic=trace
-gsrs.matchableCalculators.substances =
-[
+gsrs.matchableCalculators.substances.list.CASNumberMatchableExtractor =
+{
{"matchableCalculationClass" : "gsrs.dataexchange.extractors.CASNumberMatchableExtractor",
"config" :{
"casCodeSystems": ["CAS", "CASNo", "CASNumber"]
@@ -49,5 +49,5 @@ gsrs.matchableCalculators.substances =
"codeKey": "CODE"
}
}
-]
+}
diff --git a/gsrs-module-substance-example/src/main/resources/fda-extension.conf b/gsrs-module-substance-example/src/main/resources/fda-extension.conf
index e53091216..72b63cc57 100644
--- a/gsrs-module-substance-example/src/main/resources/fda-extension.conf
+++ b/gsrs-module-substance-example/src/main/resources/fda-extension.conf
@@ -24,9 +24,11 @@ gsrs.microservice.clinicaltrialseurope.api.headers= {
"auth-key"="myKey"
}
-gsrs.entityProcessors +={
+gsrs.entityProcessors.list.UniqueCodeGenerator =
+ {
"entityClassName" = "ix.ginas.models.v1.Substance",
"processor" = "gsrs.module.substance.processors.UniqueCodeGenerator",
+ "order" = 8010,
"with"= {
"useLegacy"=true,
"codesystem"="BDNUM",
@@ -39,34 +41,64 @@ gsrs.entityProcessors +={
}
}
-gsrs.entityProcessors +=
- {
- "entityClassName" = "ix.ginas.models.v1.Substance",
- "processor" = "gsrs.module.substance.processors.ApprovalIdProcessor",
- "parameters" = {
- "codeSystem" = "FDA UNII"
+gsrs.entityProcessors.list.ApprovalIdProcessor =
+ {
+ "entityClassName" = "ix.ginas.models.v1.Substance",
+ "processor" = "gsrs.module.substance.processors.ApprovalIdProcessor",
+ "order" = 6010
}
+
+
+
+
+
+# can we remove this section since all these are in substances-core.conf?
+ix.ginas.export.exporterfactories.substances.list.FDANameExporterFactory =
+ {
+ "exporterFactoryClass" = "fda.gsrs.substance.exporters.FDANameExporterFactory",
+ "order" = 1200,
+ "disabled" = true,
+ "parameters":{
+ }
+ }
+ix.ginas.export.exporterfactories.substances.list.FDACodeExporterFactory =
+ {
+ "exporterFactoryClass" = "fda.gsrs.substance.exporters.FDACodeExporterFactory",
+ "order" = 1300,
+ "disabled" = true,
+ "parameters":{
}
+ }
+ix.ginas.export.exporterfactories.substances.list.SPLValidatorXMLExporterFactory =
+ {
+ "exporterFactoryClass" = "fda.gsrs.substance.exporters.SPLValidatorXMLExporterFactory",
+ "order" = 1400,
+ "disabled" = true,
+ "parameters":{
+ }
+ }
+ix.ginas.export.exporterfactories.substances.list.SRSLegacyDictionaryExporterFactory =
+ {
+ "exporterFactoryClass" = "fda.gsrs.substance.exporters.SRSLegacyDictionaryExporterFactory",
+ "order" = 1500,
+ "disabled" = true,
+ "parameters":{
+ }
+ }
-ix.ginas.export.factories.substances = ${ix.ginas.export.factories.substances}[
- #"gsrs.module.substance.ExtraColumnsSpreadsheetExporterFactory",
- "fda.gsrs.substance.exporters.FDANameExporterFactory",
- "fda.gsrs.substance.exporters.FDACodeExporterFactory",
- "fda.gsrs.substance.exporters.SPLValidatorXMLExporterFactory",
- "fda.gsrs.substance.exporters.SRSLegacyDictionaryExporterFactory",
-
- # "ix.ginas.exporters.SRSLegacyDictionaryExporterFactory"
-]
-ix.ginas.approvalIdGenerator.generatorClass=ix.ginas.utils.UNIIGenerator
-gsrs.validators.substances += {
+ix.ginas.approvalIdGenerator.generatorClass=ix.ginas.utils.UNIIGenerator
- "validatorClass" = "fda.gsrs.substance.validators.BdNumModificationValidator",
- "newObjClass" = "ix.ginas.models.v1.Substance"
- }
+
+gsrs.validators.substances.list.BdNumModificationValidator =
+ {
+ "validatorClass" = "fda.gsrs.substance.validators.BdNumModificationValidator",
+ "newObjClass" = "ix.ginas.models.v1.Substance",
+ "order": 1010
+ }
diff --git a/gsrs-module-substance-example/src/test/java/example/imports/DefaultImportAdapterFactoryConfigTest.java b/gsrs-module-substance-example/src/test/java/example/imports/DefaultImportAdapterFactoryConfigTest.java
index bd53ce685..1da203cc8 100644
--- a/gsrs-module-substance-example/src/test/java/example/imports/DefaultImportAdapterFactoryConfigTest.java
+++ b/gsrs-module-substance-example/src/test/java/example/imports/DefaultImportAdapterFactoryConfigTest.java
@@ -34,17 +34,21 @@ public void testSetup() throws IllegalAccessException, NoSuchFieldException, Jso
String substanceContext = "substances";
//build up a complete configuration
GsrsFactoryConfiguration config = new GsrsFactoryConfiguration();
- Map>> adapterConfig = new HashMap<>();
+ Map>>> adapterConfig = new HashMap<>();
Map oneAdapter = new HashMap<>();
oneAdapter.put("importAdapterFactoryClass", "gsrs.module.substance.importers.SDFImportAdapterFactory");
+ oneAdapter.put("order", 1000);
+ oneAdapter.put("parentKey", "SDFImportAdapterFactory");
oneAdapter.put("adapterName", "NSRS SDF Adapter");
oneAdapter.put("extensions", Arrays.asList("sdf", "sd"));
oneAdapter.put("parameters", buildConfigParameters());
oneAdapter.put("stagingAreaServiceClass", gsrs.stagingarea.service.DefaultStagingAreaService.class);
oneAdapter.put("entityServiceClass", "gsrs.dataexchange.SubstanceStagingAreaEntityService");
- List