Skip to content

Commit

Permalink
asmisc_smsid_in_report
Browse files Browse the repository at this point in the history
  • Loading branch information
alx652 committed Oct 24, 2024
1 parent 9707f29 commit 0a12fe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public enum DefaultColumns implements Column {
RECORD_ACCESS_GROUPS,
RXCUI,
PUBCHEM,
SMSID,
MPNS,
GRIN,
INGREDIENT_TYPE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public Map<Column, ColumnValueRecipe<Substance>> createColumnRecipes(Parameters
Map<Column, ColumnValueRecipe<Substance>> defaultRecipeMap= new LinkedHashMap<>();


// UUID, APPROVAL_ID, PT, RN, EC, NCIT, RXCUI PUBCHEM EPA_CompTox CATALOG_OF_LIFE ITIS NCBI PLANTS POWO GRIN MPNS INN_ID DAILYMED MF INCHIKEY SMILES INGREDIENT_TYPE
// UUID, APPROVAL_ID, PT, RN, EC, NCIT, RXCUI PUBCHEM SMSID EPA_CompTox CATALOG_OF_LIFE ITIS NCBI PLANTS POWO GRIN MPNS INN_ID DAILYMED MF INCHIKEY SMILES INGREDIENT_TYPE

defaultRecipeMap.put(DefaultColumns.UUID, SingleColumnValueRecipe.create(DefaultColumns.UUID, (s, cell) -> cell.write(s.getOrGenerateUUID())));
defaultRecipeMap.put(DefaultColumns.APPROVAL_ID, SingleColumnValueRecipe.create(DefaultColumns.APPROVAL_ID, (s, cell) -> cell.writeString(s.getApprovalID())));
Expand All @@ -157,6 +157,9 @@ public Map<Column, ColumnValueRecipe<Substance>> createColumnRecipes(Parameters
defaultRecipeMap.put(DefaultColumns.RXCUI, new CodeSystemRecipe(DefaultColumns.RXCUI, "RXCUI"));
defaultRecipeMap.put(DefaultColumns.PUBCHEM, new CodeSystemRecipe(DefaultColumns.PUBCHEM, "PUBCHEM"));

defaultRecipeMap.put(DefaultColumns.SMSID, new CodeSystemRecipe(DefaultColumns.SMSID, "SMS_ID").replaceColumnName(DefaultColumns.SMSID
.name(),"SMSID"));

defaultRecipeMap.put(DefaultColumns.EPA_CompTox, new CodeSystemRecipe(DefaultColumns.EPA_CompTox, "EPA CompTox"));
defaultRecipeMap.put(DefaultColumns.CATALOGUE_OF_LIFE, ParentSourceMaterialRecipeWrapper.wrap(new CodeSystemRecipe(DefaultColumns.CATALOGUE_OF_LIFE, "CATALOGUE OF LIFE"),params.getScrubber()));

Expand Down

0 comments on commit 0a12fe8

Please sign in to comment.