Node.js drug interaction API guide

Keep API keys server-side and wrap RxCheck in a small reusable service.

Minimal request

Send X-API-Key from a server-side environment variable, pass drug inputs as encoded query parameters, and enforce a bounded timeout.

Response handling

Check HTTP errors before narrowing result_status. Treat nullable clinical fields as optional and keep the dataset release with stored output.

Production checklist

Add request-ID logging, safe retry rules, contract fixtures, quota monitoring, and a clinical disclaimer near rendered results.