-
Notifications
You must be signed in to change notification settings - Fork 0
/
Alternative_narcotic_DMN.dmn
148 lines (148 loc) · 8.12 KB
/
Alternative_narcotic_DMN.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?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:di="http://www.omg.org/spec/DMN/20180521/DI/" id="Definitions_1kt8mh6" name="Get Reorder Instruction" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.30.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.22.0">
<decision id="GetReorderInstruction" name="Get reorder instruction">
<informationRequirement id="InformationRequirement_19ljsnw">
<requiredInput href="#narcotic_name" />
</informationRequirement>
<informationRequirement id="InformationRequirement_1v3gaxh">
<requiredInput href="#narcotic_shortage" />
</informationRequirement>
<decisionTable id="DecisionTable_07fpnhs" hitPolicy="FIRST">
<input id="Input_1">
<inputExpression id="InputExpression_1" typeRef="string">
<text>narcotic_name</text>
</inputExpression>
</input>
<input id="InputClause_17mk10g">
<inputExpression id="LiteralExpression_0zvwn1c" typeRef="boolean">
<text>narcotic_shortage</text>
</inputExpression>
</input>
<output id="Output_1" typeRef="string" />
<rule id="DecisionRule_0b9qzv3">
<inputEntry id="UnaryTests_0hdrfwl">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0cb1g5v">
<text>false</text>
</inputEntry>
<outputEntry id="LiteralExpression_133q1gr">
<text>"Article " + narcotic_name + " is available, please continue with reorder"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1ae2ft4">
<inputEntry id="UnaryTests_1xiua8y">
<text>"Methadon","methadon"</text>
</inputEntry>
<inputEntry id="UnaryTests_1kw9tke">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_06zl9gv">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider one of the following alternatives: Methadon 10mg, Injektionsloesung Streuli Pharma AG or Methadon 10 mg, Injektionsloesung Sintetica SA. Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0fte4xl">
<inputEntry id="UnaryTests_0d73olv">
<text>"Dormicum","dormicum","Midazolam","midazolam"</text>
</inputEntry>
<inputEntry id="UnaryTests_0b5j6bn">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_1axeadv">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider one of the following alternatives: Dormicum 5 mg/1 mL, Injektionsloesung CPS Cito Pharma Services GmbH or Dormicum 50 mg/10 mL, Injektionsloesung CPS Cito Pharma Services GmbH or Dormicum 15 mg/3 mL, Injektionsloesung CPS Cito Pharma Services GmbH or Valium 50 mg/10mL, Injektionsloesung Atnahs Pharma Switzerland AG. Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1efx7vi">
<inputEntry id="UnaryTests_0tw308j">
<text>"Bupaq","bupaq","Buprenorphin","buprenorphin"</text>
</inputEntry>
<inputEntry id="UnaryTests_1ens1s6">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_13zwxrs">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider the following alternative: Bupaq 0.3mg/mL, Injektionsloesung Streuli Tiergesundheit AG. Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1ixjsmm">
<inputEntry id="UnaryTests_0y35ug6">
<text>"Esconarkon","esconarkon"</text>
</inputEntry>
<inputEntry id="UnaryTests_1558ho3">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_1ihxux4">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider one of the following alternatives: Pentobarbital 300mg/mL, Injektionsloesung Streuli Tiergesundheit AG or Euthasol 400mg/mL, Injektionsloesung Dechra Veterinary Products Suisse GMBH . Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0no0bog">
<inputEntry id="UnaryTests_1gvoyft">
<text>"Ketamin","ketamin"</text>
</inputEntry>
<inputEntry id="UnaryTests_1veozoz">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_0grt78m">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider one of the following alternatives: Ketamin Labatec 50 mg/ml, Injektionsloesung Labatec Pharma SA or Ketamin Sintetica 50 mg/ml, Injektionsloesung Sintetica SA. Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_131jerv">
<inputEntry id="UnaryTests_16quohh">
<text>"Propofol","propofol"</text>
</inputEntry>
<inputEntry id="UnaryTests_13gna5y">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_02jes6w">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider one of the following alternatives: Propofol-Lipuro 10 mg/ml, Injektionsloesung B. Braun Medical AG Propofol MCT 10 mg/ml, Injektionsloesung Fresenius Kabi (Schweiz) AG Propofol 10mg/ml, Injektionsloesung Labatec Pharma SA Propovet 10mg/mL, Injektionsloesung Zoetis Schweiz GMBH. Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1wjzays">
<inputEntry id="UnaryTests_1rcvhya">
<text>"Keta-S","Ketas","keta-s","ketas"</text>
</inputEntry>
<inputEntry id="UnaryTests_0imku7y">
<text>true</text>
</inputEntry>
<outputEntry id="LiteralExpression_0bpmcue">
<text>"Article " + narcotic_name + " is currently not available for reorder, please consider one of the following alternatives: Ketamin Labatec 50 mg/ml, Injektionsloesung Labatec Pharma SA or Ketamin Sintetica 50 mg/ml, Injektionsloesung Sintetica SA. Please make sure to double check dosage and indications."</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1jdb9ac">
<inputEntry id="UnaryTests_1rv5zxc">
<text>-</text>
</inputEntry>
<inputEntry id="UnaryTests_11yboet">
<text>-</text>
</inputEntry>
<outputEntry id="LiteralExpression_1ipivhu">
<text>"No alternatives found, please contact an administrator."</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<inputData id="narcotic_name" name="narcotic_name" />
<inputData id="narcotic_shortage" name="narcotic_shortage" />
<dmndi:DMNDI>
<dmndi:DMNDiagram>
<dmndi:DMNShape dmnElementRef="GetReorderInstruction">
<dc:Bounds height="80" width="180" x="160" y="100" />
</dmndi:DMNShape>
<dmndi:DMNShape id="DMNShape_1eag6f2" dmnElementRef="narcotic_name">
<dc:Bounds height="45" width="125" x="187" y="337" />
</dmndi:DMNShape>
<dmndi:DMNEdge id="DMNEdge_0z6yo4y" dmnElementRef="InformationRequirement_19ljsnw">
<di:waypoint x="250" y="337" />
<di:waypoint x="220" y="200" />
<di:waypoint x="220" y="180" />
</dmndi:DMNEdge>
<dmndi:DMNShape id="DMNShape_01uxg1u" dmnElementRef="narcotic_shortage">
<dc:Bounds height="45" width="125" x="427" y="337" />
</dmndi:DMNShape>
<dmndi:DMNEdge id="DMNEdge_0eujpc4" dmnElementRef="InformationRequirement_1v3gaxh">
<di:waypoint x="490" y="337" />
<di:waypoint x="280" y="200" />
<di:waypoint x="280" y="180" />
</dmndi:DMNEdge>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>