CDR Tickets

Issue Number 5039
Summary DIS with markup report broken
Created 2021-10-06 09:48:46
Issue Type Bug
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2022-01-24 16:03:35
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.300085
Description

The DIS with Markup report appears broken as it displays only “None” even if there are DIS with markup.

Known tiers affected:  PROD. Appears to work on QA.

Date first reported: 10-01-2021 1:55 PM

Date Last occurred: 10-06-2021 8:42 AM

How to Reproduce:

  1. Go to the CDR Reports Menu

  2. Click on the Drug Information link

  3. Under Management Reports and                                                                             Click on the Drug Summaries with Markup Report

  1. Click Submit with all checkboxes selected or any combination of checkboxes

Examples

Sample documents with Markup on Prod.

717928

Ruxolitinib Phosphate

491901

Cetuximab

Comment entered 2021-10-06 11:09:49 by Kline, Bob (NIH/NCI) [C]

Excellent description, with lots of helpful information. 👍

Comment entered 2021-10-06 13:07:01 by Englisch, Volker (NIH/NCI) [C]

Quick update:  We're getting the same error on DEV as we're getting on PROD and I have determined that the code on both, DEV and QA is identical.  This means that we're likely looking at a bug that's triggered by the data.

It looks like the report ran successfully last time in August and then started failing on Oct 1st.

Comment entered 2021-10-06 19:02:34 by Englisch, Volker (NIH/NCI) [C]

There exist 2 DIS documents with a Deletion tag that's causing the problem with the report.  The documents are CDR700207 and CDR717920.

Typically, the Insertion/Deletion tags are created such that the UserName, Time, and RevisionLevel attributes are populated.  The DISWithMarkup.py report relies on these attributes to be populated but the Deletion tag in these documents have no attributes at all.  Without this attribute value the program doesn't know which of the available attribute levels (publish, approved, proposed, rejected) the markup tag should be assigned to which is causing the report to fail.

Once these bad markup tags have been corrected the report will run again as expected.

We probably want to enhance the report not to fail in this situation and add the ticket to Ohm.

Comment entered 2021-11-10 16:27:19 by Osei-Poku, William (NIH/NCI) [C]

 Once these bad markup tags have been corrected the report will run again as expected.

The bad tags have been cleared from the documents but the message still shows even though there are documents with markup.

Comment entered 2021-11-15 20:54:59 by Englisch, Volker (NIH/NCI) [C]

It's correct that the issue with those two documents I reported has been fixed.  Unfortunately, the same issue has now been introduced for yet another document:  CDR804890.

Search for an empty "Insertion" tag right after the "ApprovedIndication".

You should be able to find these trouble-makers by running this query:

SELECT * FROM document WHERE doc_type = 38 AND (xml LIKE '%<Insertion/>%' or xml LIKE '%<Insertion>%')

Replace "Insertion" with "Deletion" if necessary.

Comment entered 2022-01-19 14:24:50 by Englisch, Volker (NIH/NCI) [C]

The errors for this ticket had been identified as data issues.  Is there still anything that needs to be done?  If that's not the case we should be able to close the ticket.

Comment entered 2022-01-20 14:15:39 by Kline, Bob (NIH/NCI) [C]

will review this ticket and update the LOE to reflect improvements to the software which are needed to make it more robust in the face of data errors as encountered here.

Comment entered 2022-01-24 16:03:17 by Englisch, Volker (NIH/NCI) [C]

I've modified the report to include reporting documents without a valid revision level:

This is ready for review on DEV.

Comment entered 2022-02-08 18:00:23 by Osei-Poku, William (NIH/NCI) [C]

Verified on DEV. Thanks!

Comment entered 2022-07-06 13:03:11 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA. Thanks!

Attachments
File Name Posted User
DIS with markup.PNG 2021-10-06 09:49:41 Osei-Poku, William (NIH/NCI) [C]

Elapsed: 0:00:00.001308