As a user
I want records that are posted without a mapped substance, automated mapping needs to occur
So that the record mapping to substance is available for me
POST https://api.chemreg.epa.gov/records
Acceptance Criteria:
For each record identifier search the resolution API
Aggregate the potential hits by substance across the set of record identifiers and sum the score then select the substance with the highest score
insert the substance, score, and mapping reason into the persisted record
As a user I want records that are posted without a mapped substance, automated mapping needs to occur So that the record mapping to substance is available for me
POST https://api.chemreg.epa.gov/records
Acceptance Criteria: For each record identifier search the resolution API Aggregate the potential hits by substance across the set of record identifiers and sum the score then select the substance with the highest score insert the substance, score, and mapping reason into the persisted record