CDR Tickets

Issue Number 4596
Summary [Glossary] Display Spanish synonyms in glossary term definitions
Created 2019-03-13 13:32:43
Issue Type Improvement
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2019-03-20 15:34:26
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.241382
Description

There are several cases where a Spanish term may have multiple synonyms that do not have matching English equivalents. These synonyms are entered in the CDR like all other also called terms but because they do not have corresponding English terms in the English Dictionary, the Spanish synonyms do not display anywhere in the Spanish dictionary.
In the CDR, all of these terms (Spanish synonyms) are marked as “alternate” in the Spanish term record in the attribute inspector.
We would like to be able to add these terms as also-calleds in the Spanish term Definitions since they are currently not added by default. Manually adding them to the definition would make these terms display in the definitions for other terms (linked to the same definition) that do not need them.
These synonyms do not need to be added to the dictionary as their own individual entries. They could be excluded from the dictionary entries and have them entered in the definitions as also-calleds only.
Would it be possible to handle this in the vendor filters? As mentioned above, all the terms have been marked as “alternate” terms in the attribute inspector so identifying them should not be a big issue.

Example:
CDR ID: 45758
Term: Lumpectomía (lumpectomy)
Existing Alternate Translated Names: tumorectomía and tilectomía.

Comment entered 2019-03-14 13:49:12 by Kline, Bob (NIH/NCI) [C]

Volker will investigate. It appears that the web site is already displaying these alternate names, and showing them too many times, duplicating the same names.

Comment entered 2019-03-14 18:08:54 by Englisch, Volker (NIH/NCI) [C]

I don't know what we were looking at during the meeting but when I look at the document on Cancer.gov I don't see those multiple displays of the names anymore.

 

Adding the alternate Spanish terms will not be as simple as just adding the terms to the list of Also called list because we're not just adding a comma delimited list.  If we're adding the alternate terms we will need to know if there already exist 1, 2, or more of the Also called term and adjust the text accordingly:

  • Adding alternate1 to the text Also called spanish1 and spanish2. would require replacing the and and the period at the end of the sentence to get something like Also called spanish1, spanish2, and alternate1.

  • Similarily, adding alternate1 and alternate2 to the text Also called spanish1, spanish2, and spanish3 would require text changes to achieve Also called spanish1, spanish2, spanish3, alternate1, and alternate2.

I will have to modify the way we're currently creating the Also called text in order to integrate the Spanish alternate names but I believe this should still be able to be done with a filter change.

Comment entered 2019-03-15 07:12:32 by Kline, Bob (NIH/NCI) [C]

> I don't know what we were looking at during the meeting

 

I do: https://www.cancer.gov/espanol/publicaciones/diccionario/def/mastectomia-parcial

Comment entered 2019-03-15 15:13:58 by Englisch, Volker (NIH/NCI) [C]

I've looked at the partial mastectomy term again and now I'm a little confused.  We have seen yesterday that two issues currently exist with the term when looking on Cancer.gov:

  • multiple Also called terms are displayed including those that are listed as alternates

  • many terms are displayed multiple times

The second issue is a bug in my filter which I can easily fix.  

My confusion comes from the title of this ticket Display Spanish synonyms in glossary term definitions.  It implies that the alternate names aren't displayed.

Are there alternate names that are currently not displayed or is the goal of this ticket to correctly display these alternate names instead of displaying some of them multiple times?

Comment entered 2019-03-15 15:40:00 by Osei-Poku, William (NIH/NCI) [C]

From what I understand, the alternates were not displayed in the definitions as also calleds so it was a surprise to me to see that they are displayed. There is also another problem with where the synonyms are displayed. If you look at the CDR0000045758 which is the record for lumpectomía, you will find that tumorectomía and tilectomía have been added as alternates and yet, they don't display as also-called in the definition for lumpectomía.

https://www.cancer.gov/espanol/publicaciones/diccionario/def/lumpectomia

Rather, we see that the alternates have been added to CDR0000045105  - mastectomía parcial

https://www.cancer.gov/espanol/publicaciones/diccionario/def/mastectomia-parcial

which doesn't have the alternates. The correct display is to have the alternates display as also-calleds in the GTN they are found in. In this case, CDR0000045758.

Comment entered 2019-03-15 15:59:21 by Englisch, Volker (NIH/NCI) [C]

I've updated CDR45105 (mastectomía parcial) and CDR45758 (lumpectomía) on www-red-dev.cancer.gov to remove the duplicates.

Comment entered 2019-03-15 16:56:37 by Englisch, Volker (NIH/NCI) [C]

I see the problem and it's something that can be fixed in the SQL query selecting the alternate names.  I have two questions:

  • Do other types of names exist or are there only 'alternate' types?  Might there be other types in the future?

  • Do 'alternate' names also exist for the English terms or is this purely a Spanish feature?

We're currently using one SQL query for both, the English and the Spanish also-called names but I may need to break this in two depending on your answers.

Comment entered 2019-03-15 17:05:53 by Englisch, Volker (NIH/NCI) [C]

Another question:

Would you know of a glossary term for which an also called exists for both, the English and the Spanish version or could we create such a document on DEV for testing?

Comment entered 2019-03-18 13:15:03 by Osei-Poku, William (NIH/NCI) [C]

Verified that the duplicates have been removed. Thanks!

Comment entered 2019-03-18 13:23:54 by Osei-Poku, William (NIH/NCI) [C]
  • Do other types of names exist or are there only 'alternate' types?  Might there be other types in the future? {quote}

No other types exist. Only 'alternate'. Also, it is possible that in the future, there might be other types but there are no immediate plans for that. 

  • Do 'alternate' names also exist for the English terms or is this purely a Spanish feature?

Comment entered 2019-03-18 13:44:15 by Osei-Poku, William (NIH/NCI) [C]

Here are three examples:

CDR 575436 

CDR 44418 

CDR 559453

Comment entered 2019-03-20 15:34:15 by Englisch, Volker (NIH/NCI) [C]

The filter to produce the output for the Also-called English terms was setup so that the term itself would not be repeated on its glossary page.  This had the effect that the alternate TermTypes were excluded on the pages on which those were supposed to be displayed and were displayed multiple times on all other related glossary pages.

The SQL query used by this filter has been updated to display both, the English Also called and the Spanish alternates properly.  The following filter has been updated on QA:

Please review on QA (DEV is currently not working).

Comment entered 2019-03-22 17:53:29 by Englisch, Volker (NIH/NCI) [C]

Let's try this again.  I have reworked the SQL query to only display the alternate names on its glossary page as we discussed on Thursday.

Please review on QA.

Comment entered 2019-03-25 09:18:12 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA. Thank you!

Comment entered 2019-03-25 13:05:32 by Englisch, Volker (NIH/NCI) [C]

The filter has been updated on STAGE.

Please review on STAGE and let me know if it's ready to copy to PROD.

Comment entered 2019-03-25 13:31:00 by Osei-Poku, William (NIH/NCI) [C]

Verified on STAGE. Thanks!

Comment entered 2019-03-27 18:35:49 by Englisch, Volker (NIH/NCI) [C]

Did you want me to copy this change to PROD?

Comment entered 2019-03-27 18:41:16 by Osei-Poku, William (NIH/NCI) [C]

Yes, please.

Comment entered 2019-03-27 19:11:22 by Englisch, Volker (NIH/NCI) [C]

The modified filter has been updated on PROD.

Please verify and close this ticket.

Comment entered 2019-04-02 16:11:01 by Osei-Poku, William (NIH/NCI) [C]

Verified on PROD. Thank you!

Attachments
File Name Posted User
Glossary Spanish alternate.png 2019-03-13 13:32:36 Osei-Poku, William (NIH/NCI) [C]

Elapsed: 0:00:00.001828