This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DMN_DrugInteraction_LA_test.dmn
75 lines (75 loc) · 3.45 KB
/
DMN_DrugInteraction_LA_test.dmn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="Definitions_1068vjp" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.4.2" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
<decision id="Decision_111f66y" name="Drug Interaction Check">
<decisionTable id="DecisionTable_10k06qy" hitPolicy="FIRST">
<input id="Input_1" label="Medication List" camunda:inputVariable="medicationlist">
<inputExpression id="InputExpression_1" typeRef="string" expressionLanguage="feel">
<text>medicationlist</text>
</inputExpression>
</input>
<output id="Output_1" label="Drug Interaction" name="druginteraction" typeRef="string">
<outputValues id="UnaryTests_18qbdpp">
<text>"red","green"</text>
</outputValues>
</output>
<output id="OutputClause_1h9nk9w" label="Explanation" name="explanation" typeRef="string">
<outputValues id="UnaryTests_0un3snv">
<text>"A drug interaction has been detected","No drug intrecation"</text>
</outputValues>
</output>
<rule id="DecisionRule_13allsz">
<description></description>
<inputEntry id="UnaryTests_06mwcck">
<text>contains(medicationlist, "Citalopram") and contains(medicationlist, "Sumatriptan")</text>
</inputEntry>
<outputEntry id="LiteralExpression_0rtq4jf">
<text>"red"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0rjen96">
<text>"A drug interaction has been detected "</text>
</outputEntry>
</rule>
<rule id="DecisionRule_12n9fas">
<inputEntry id="UnaryTests_0wz6ycs">
<text>contains(medicationlist, "Viagra") and contains(medicationlist, "Paxlovid")</text>
</inputEntry>
<outputEntry id="LiteralExpression_1kvhonl">
<text>"red"</text>
</outputEntry>
<outputEntry id="LiteralExpression_11j6212">
<text>"A drug interaction has been detected "</text>
</outputEntry>
</rule>
<rule id="DecisionRule_09s94ui">
<inputEntry id="UnaryTests_1jefzb8">
<text>contains(medicationlist, "Ibuprofen") and contains(medicationlist, "Prednison")</text>
</inputEntry>
<outputEntry id="LiteralExpression_06ov2yw">
<text>"red"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1fs03ny">
<text>"A drug interaction has been detected "</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0fax6i7">
<description></description>
<inputEntry id="UnaryTests_060css5">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_1pivkxa">
<text>"green"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1of1x96">
<text>"No drug interaction"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
<dmndi:DMNDiagram>
<dmndi:DMNShape dmnElementRef="Decision_111f66y">
<dc:Bounds height="80" width="180" x="160" y="100" />
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>