2020-03-25 15:13:52 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2020-04-08 17:39:42 +00:00
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/1.0" id="Definitions_a268e14" name="DRD" namespace="http://camunda.org/schema/1.0/dmn">
<decision id="Decision_PharmacyManual" name="Pharmacy Manual">
2020-03-25 15:13:52 +00:00
<extensionElements>
2020-04-08 17:39:42 +00:00
<biodi:bounds x="190" y="140" width="180" height="80" />
2020-03-25 15:13:52 +00:00
</extensionElements>
<decisionTable id="decisionTable_1">
2020-04-08 17:39:42 +00:00
<input id="input_1" label="Pharmacy Manual Upload Count">
<inputExpression id="inputExpression_1" typeRef="integer">
Refactor the document details scripts. Now there is one script, it returns data in a consistent format, and has all the details required. The script is located in StudyInfo, with the argument documents. Make note that it returns a dictionary of ALL the documents, with a field to mark which ones are required according to the protocol builder. Others may become required if a workflow determines such, in which case the workflow will enforce this, and the document will have a count > 0, and additional details in a list of files within the document. I modified the XLS file to use lower case variable names, because it disturbed me, and we have to reference them frequently. Removed devious "as_object" variable on get_required_docs, so it behaves like the other methods all the time, and returns a dictionary. All the core business logic for finding the documents list now resides in the StudyService.
Because this changes the endpoint for all existing document details, I've modified all the test and static bpmn files to use the new format.
Shorting up the SponsorsList.xls file makes for slightly faster tests. seems senseless to load 5000 everytime we reset the data.
Tried to test all of this carefully in the test_study_details_documents.py test.
2020-04-29 19:08:11 +00:00
<text>StudyInfo.documents.DrugDevDoc_PharmManual.count</text>
2020-03-25 15:13:52 +00:00
</inputExpression>
</input>
2020-04-08 17:39:42 +00:00
<output id="output_1" label="Pharmacy Manual(s) Uploaded?" name="isPharmacyManual" typeRef="boolean" />
<output id="OutputClause_1vbolzy" label="Pharmacy Manual Form Banner" name="ElementDoc_PharmMan" typeRef="string" />
<rule id="DecisionRule_0hvsnu9">
<inputEntry id="UnaryTests_1ll10nk">
<text>0</text>
2020-03-25 15:13:52 +00:00
</inputEntry>
2020-04-08 17:39:42 +00:00
<outputEntry id="LiteralExpression_1kidcjg">
<text>false</text>
</outputEntry>
<outputEntry id="LiteralExpression_0tk68d3">
<text>"The Pharmacy Manual has not been uploaded. If you do not intend to upload a manual before your IDS submission, please complete the questions below. If you do intend to upload a manual, you do not need to complete them."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0yqphk1">
<inputEntry id="UnaryTests_0p3500o">
<text>1</text>
</inputEntry>
<outputEntry id="LiteralExpression_08v3bfw">
<text>true</text>
</outputEntry>
<outputEntry id="LiteralExpression_1espyxg">
<text>"This manual will be sent as part of your IDS Submission"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1cwcqvd">
<inputEntry id="UnaryTests_0b49gpa">
<text>> 1</text>
</inputEntry>
<outputEntry id="LiteralExpression_1hb3ip1">
2020-03-25 15:13:52 +00:00
<text>true</text>
</outputEntry>
2020-04-08 17:39:42 +00:00
<outputEntry id="LiteralExpression_0yslf6v">
<text>"These manuals will be sent as part of your IDS Submission"</text>
</outputEntry>
2020-03-25 15:13:52 +00:00
</rule>
</decisionTable>
</decision>
</definitions>