NCIOCPL / clinical-trials-search-app

Clinical Trial Search Front-end
1 stars 6 forks source link

Update invalid param names to field form name #581

Closed sarinapadilla closed 2 years ago

sarinapadilla commented 2 years ago

Issue description

Some displays for invalid parameters are not showing the pretty name. Update the invalid params to display the form field name from the advanced search.

Fields to be updated:

ESTIMATE TBD

Steps to reproduce the issue

Hospital/Institution

  1. Go to https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/advanced
  2. Select Hospitals/Institutions in the Location form field
  3. Do not type in a name
  4. Click Find Trials

Location

  1. Go to https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/advanced
  2. Select At NIH in the Location form field
  3. Click Find Trials
  4. Update the &l= parameter to be 6

ZIP Code

  1. Go to https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/advanced
  2. Select ZIP Code in the Location form field
  3. Enter a valid ZIP code
  4. Click Find Trials
  5. Update the &z= parameter to be 00000

Trial Phase

  1. Go to https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/advanced
  2. Select Phase I in the Trial Phase field
  3. Click Find Trials
  4. Update the &tp= parameter to be chicken

VA Only

  1. Go to https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/advanced
  2. Select the Veterans Affairs facilities toggle in the Location form field
  3. Click Find Trials
  4. Update the &va= parameter to be 3

What's the expected result?

Hospital/Institution

Location

ZIP Code

Trial Phase

VA Only

What's the actual result?

Hospital/Institution -The invalid parameter displays "hospital"

Location -The invalid parameter displays "location"

ZIP Code -The invalid parameter displays "Zip"

Trial Phase -The invalid parameter displays "trialPhases"

VA Only -The invalid parameter displays "vaOnly"

Additional details / screenshot

Related Tickets