coderxio / dailymed-api

REST API for DailyMed SPLs
https://coderx.io/
MIT License
12 stars 5 forks source link

Missing filters for product endpoint #47

Open jrlegrand opened 3 years ago

jrlegrand commented 3 years ago

Problem Statement

Need to filter down to product by

Criteria for Success

Product endpoint filter for product_codes and not_inactive_ingredient_uniis

Additional Information

Desired workflow is probably this:

  1. User searches for RXCUI via a user-friendly search
  2. Query RxNorm for an RXCUI https://rxnav.nlm.nih.gov/REST/ndcproperties.json?id=314200
  3. Gather distinct product codes from this response
  4. User also searches for inactive ingredient UNIIs that they can't tolerate via a user-friendly search
  5. Query DailyMed API for all products that contain ANY of the product codes from RxNorm which also do NOT contain ANY of the inactive ingredient UNIIs
finish06 commented 3 years ago

@jrlegrand Why do we not want to return inactive ingredient UNIIs? Also, by product code, do you mean entire 11 digit NDC or only first two sections?

jrlegrand commented 3 years ago

@finish06 It's not that we don't want to return UNIIs. It's that we want to return products that do not have UNIIs that patients are allergic to or can't tolerate. By product NDC I mean the first two segments.