NCIOCPL / clinical-trials-listing-app

React Application for listing clinical trials
3 stars 1 forks source link

"carbon-c-14-ac0010" intervention treated as a ccode. #225

Open blairlearn opened 6 months ago

blairlearn commented 6 months ago

Issue description

When attempting to view trials for the "carbon-c-14-ac0010" intervention, the trial listing app treats it as ccode and attempts to look up the drug name in the listings API.

ESTIMATE TBD

Steps to reproduce the issue

  1. Open the browser's developer tools to the network tab.
  2. Go to https://www.cancer.gov/research/participate/clinical-trials/intervention/carbon-c-14-ac0010

What's the expected result?

What's the actual result?

Additional details / screenshot

In the developer tools, filter the requests to look for Fetch/XHR requests. There is a request to https://webapis.cancer.gov/triallistingsupport/v1/listing-information/get?ccode=carbon-c-14-ac0010

The carbon-c14-ac0010 pretty URL is being passed, but this endpoint only takes ccodes.

This appears to happen with any intervention where the pretty-url-name contains the letter c followed by one or more digits. e.g. multi-mode-kinase-inhibitor-eoc317, pi3k-inhibitor-gdc0077, etc.

Related Tickets