Issue Number | 4871 |
---|---|
Summary | [Media] Modify Media Doc Publishing report audience options |
Created | 2020-09-01 15:41:18 |
Issue Type | Improvement |
Submitted By | Osei-Poku, William (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2020-10-05 18:44:28 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.273987 |
Please modify the Media Doc. Publishing report audience options so that when Health Professional is selected, media docs that only have Health Professional captions are displayed. It looks like the Patient option is doing that correctly. Also, when both options are selected, it should display results for both audiences.
~oseipokuw , would you have an example for a document that's not displayed correctly?
I ran a report on PROD for documents published between 2020-07-01 and 2020-09-03 and the output appears to be correct:
801664 - HP captions only, displayed on HP and Both report
761782 - HP and Pat captions, displayed on HP, Patient, and both report
793775 - Pat captions, displayed on Patient and both report
Looks like this one got overlooked yesterday when we were asking about Maxwell tickets with open questions, ~oseipokuw.
On QA, I ran the report for
English
Start: 2020-09-10
End: 2020-09-17
Health Professionals
The results included
801664 - Includes Content Description and Caption for HP audience only. This is the document I want to see.
761782 - Includes Content Description and Caption for both HP and Patient. I wanted to see a document that has content description and caption for only HP audience.
I don't get any output on QA when I run the report for the parameters you listed.
Sorry. Please try the following:
On QA, I ran the report for
English
Start: 2020-04-01
End: 2020-10-02
Health Professionals
The results included
801664 - Includes Content Description and Caption for HP audience only. This is the document I want to see.
761782 - Includes Content Description and Caption for both HP and Patient. I wanted to see a document that has content description and caption for only HP audience.
I wanted to see a document that has content description and caption for only HP audience.
This report is not able to give you the output you are seeking. The two options you select, Patients and Health Professionals, are inclusive. When you select "Patients" the report picks up every media document for which a description or caption with the attribute audience = 'Patients' exists. There is no additional parameter that specifies to only pick up those documents for which only an audience = 'Patients' exists.
In the same way, when you're selecting both audience types, you will see all documents for which either the audience = 'Patients' or the _audience = 'Health Professionals' exists. This list includes those for which both exists in addition for those for which only one of them exists.
Obviously, you could get the result you're looking for indirectly by running the HP-only version first and then "subtracting" all documents that are listed on the Patients-only version of the report.
It looks like the Patient option is doing that correctly.
No, the patient option is working the same way as the HP option.
The following report has been modified to change the selection criteria for the audience option:
PublishedMediaDocuments.py
https://github.com/NCIOCPL/cdr-admin/commit/235aeca
This is ready for review on DEV.
Added a note explaining the unusual use of the audience options:
PublishedMediaDocuments.py
https://github.com/NCIOCPL/cdr-admin/commit/26c00f5c
It does seems to be working as expected. I will create a ticket if we want to modify it in a later release. Thanks!
Verified on DEV. Thanks!
Verified on QA. Thanks!
Verified on PROD. Thanks!
Elapsed: 0:00:00.001460