CDR Tickets

Issue Number 4208
Summary [DIS] Publishing Filter Update to Allow DrugSummaryRef Element
Created 2017-01-03 13:39:10
Issue Type Bug
Submitted By Juthe, Robin (NIH/NCI) [E]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2017-02-14 14:43:23
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.200860
Description

Please update the publishing filter to change DrugSummaryRefs to either Drug Name or Drug Ref elements, whichever is most appropriate.

This is to correct the following problem:
We are getting the following error message when we run Pub Preview of a DIS that includes a DrugSummaryRef element.

CDRPreview web service error: Xml data validation error,The 'DrugSummaryRef' element is not declared.Validation error occurred when validating the instance document.,2215,4

Thanks!

Comment entered 2017-01-03 17:00:27 by Englisch, Volker (NIH/NCI) [C]

It appears the drug name gets displayed in italics. Are we OK to display DrugSummaryRrefs in italic?

Comment entered 2017-01-03 17:06:53 by Juthe, Robin (NIH/NCI) [E]

I think the drug names should be unitalicized.

Comment entered 2017-01-03 17:20:56 by Englisch, Volker (NIH/NCI) [C]
  • The drug name is italicized in XMetaL.

  • On Cancer.gov we're recommending to have the DrugName be displayed without formatting and the DrugRef to be displayed underlined according to our PDQ documentation.

I can't confirm the formatting on Cancer.gov at the moment because Percussion is down on DEV.

Comment entered 2017-01-03 17:26:45 by Juthe, Robin (NIH/NCI) [E]

Oh - okay. I thought we were talking about Cancer.gov. I think we can live with having the drug name italicized if it's only in XMetaL. Will it be unitalicized in QC reports and Pub Preview?

Comment entered 2017-01-03 17:34:00 by Englisch, Volker (NIH/NCI) [C]

In PubPreview it'll display just like on Cancer.gov, so it would be displayed underlined and it appears that would be identical to the way that SummaryRefs are displayed.

I'll have to look at the code to see how QC reports are displaying the DrugRefs. Since we haven't been using the DrugRefs in the past I'm guessing we're currently not applying any formatting.

Comment entered 2017-01-03 17:59:20 by Kline, Bob (NIH/NCI) [C]

If my stab at an LOE is misguided, please fix, .

Comment entered 2017-01-04 12:56:12 by Englisch, Volker (NIH/NCI) [C]

The CDR filter has been updated and PublishPreview is working again. However, the DrugRef (a.k.a. DrugSummaryRef) is not linking to anything and is displayed as plain text.

Although Gatekeeper/Percussion is capable of replacing the CDR-ID with the proper URL to link to, we have in the past provided this URL to Gatekeeper in order to speed up the document processing. I've discussed this with and we agree that in the interest of keeping document processing super fast we should (or need to) add an url attribute to the DTD and include the DrugInfoURL value to the DrugRef element.
With this information the processing of the DrugRef element on Gatekeeper will become a simple XSLT filter change.

Blair, please chime in if I didn't summarize our approach correctly.

Comment entered 2017-01-04 13:19:48 by Learn, Blair (NIH/NCI) [C]

The only clarification I'd add is that getting GateKeeper to replace the CDR-ID with the URL directly would require a significant code change. The proposed URL attribute reduces the scope of the GateKeeper change significantly.

Comment entered 2017-01-18 19:04:48 by Englisch, Volker (NIH/NCI) [C]

I've completed the following changes:
On the CDR side:

  • Filter change to create the DrugRef element and add the url attribute
    CDR505579.xml - Copy XML for DrugInfoSummary

  • DTD change to add the url attribute for the DrugRef element
    pdq.dtd
    pdqCG.dtd

On the Gatekeeper side:

  • Replaced the updated DTD (pdqCG.dtd --> pdq.dtd)

  • Update the filter DrugInformationSummary.xsl

I've published a DIS on BLUE (VeIP - CDR719493) which now shows the updated links:
https://www-blue-dev.cancer.gov/about-cancer/treatment/drugs/VeIP

How can I tell this is an updated document?

Hover over the drug link and look at the URL displayed at the bottom of your browser. An updated document will display the server as as www-blue-dev.cancer.gov instead www.cancer.gov and the link will display _https://_ at the beginning of the URL.

To do

I still need to update all modified filters/files in subversion.

Comment entered 2017-01-31 11:15:24 by Englisch, Volker (NIH/NCI) [C]

The following filter has been modified to add the DIS URL for DrugSummaryRefs:

  • R14558: CDR505579 - Copy XML for DrugInfoSummary

Comment entered 2017-01-31 11:20:08 by Englisch, Volker (NIH/NCI) [C]

Versioning modified DTD:

  • R14559: pdq.dtd

  • R14559: pdqCG.dtd

Comment entered 2017-02-02 12:26:52 by Juthe, Robin (NIH/NCI) [E]

Verified on DEV (using PP).

Comment entered 2017-03-02 13:29:26 by Juthe, Robin (NIH/NCI) [E]

Verified on QA (using PP).

Elapsed: 0:00:00.001377