540co / ads-bpa

Drug Reactions Explained (DRE) provides clear definitions to complex medical terms used to describe the adverse reactions patients have experienced when taking certain drugs (18F Agile BPA Development Prototype)
https://dre.540.co
Creative Commons Zero v1.0 Universal
13 stars 5 forks source link

Add additional error checking in serviceManager #244

Open jobrieniii opened 9 years ago

jobrieniii commented 9 years ago

To allow for better error checking if dictionary APIs come back with no definitions (for instance due to rate limits on their side, etc).

At this time the serviceManager responds with a blank array of definitions which will simply result in no definitions being added to the reaction dictionary.