bhits / consent2share

Set up Consent2Share Including Infrastructure and Applications
https://bhits.github.io/consent2share/
Apache License 2.0
40 stars 10 forks source link

Create/Edit Consent: Translation on "Sensitive Information Categories" and "Purpose of Use" does not Take Effect Until the Page is Reloaded #18

Open shruti-rao opened 7 years ago

shruti-rao commented 7 years ago
  1. Select English language, and go to "Consents" menu and select "Add a Consent."
  2. Scroll down the page and click the radio button "SHARE my medical record WITH EXCEPTION of specific information." You will see the Sensitive Information Categories in English.
  3. Click "Cancel" and change the language to Spanish by remaining on the same page. You will see the texts on the webpage being changed to Spanish, except the the Sensitive Information Categories as shown below.

image

  1. Click on the browser's "Reload this Page" button. After the page is refreshed, you will see the Sensitive Categories changed to Spanish as shown below. image

  2. The same issue exists for "Purpose of Use" values. Before Page Reload: image

After Page Reload: image

  1. The same issue exists when you "Edit Consent."
  2. The same issue exists if you change from Spanish to English.
ghost commented 7 years ago

@shruti-rao: I believe this is happening because both the sensitive categories and the purpose of use values are loaded from a database lookup table. I'm unsure of exactly how ASU handled this when they implemented multiple language support, but I suspect the reason that those values don't change when the selected language is changed unless you refresh the page is that the changing the selected lanaguge probably doesn't trigger a new call to the back-end to get those values for the other lanaguage from the database lookup tables.