110110 "initialize" : " " ,
111111 "finalize" : " " ,
112112 "libs" : [],
113- "x" : 1380 ,
113+ "x" : 1240 ,
114114 "y" : 460 ,
115115 "wires" : [
116116 [
133133 "y" : 460 ,
134134 "wires" : [
135135 [
136- " af11a3caafbb5fa8 "
136+ " 32174867b86c7b03 "
137137 ]
138138 ]
139139 },
148148 "initialize" : " " ,
149149 "finalize" : " " ,
150150 "libs" : [],
151- "x" : 1380 ,
151+ "x" : 1240 ,
152152 "y" : 700 ,
153153 "wires" : [
154154 [
167167 "initialize" : " " ,
168168 "finalize" : " " ,
169169 "libs" : [],
170- "x" : 1370 ,
170+ "x" : 1270 ,
171171 "y" : 1000 ,
172172 "wires" : [
173173 [
209209 "y" : 700 ,
210210 "wires" : [
211211 [
212- " 635a32e66dd92586 "
212+ " c4db83d867cd1492 "
213213 ]
214214 ]
215215 },
344344 "y" : 1000 ,
345345 "wires" : [
346346 [
347- " cb314a12c20513b3 "
347+ " dcc8abdf633f1c30 "
348348 ]
349349 ]
350350 },
363363 "y" : 1060 ,
364364 "wires" : [
365365 [
366- " 3dc151189b79fc01 "
366+ " 61eca1567ddb5e81 "
367367 ]
368368 ]
369369 },
777777 "y" : 520 ,
778778 "wires" : [
779779 [
780- " 3af5bf281111cdf5 "
780+ " 931fbc85cf48c3ad "
781781 ]
782782 ]
783783 },
796796 "y" : 580 ,
797797 "wires" : [
798798 [
799- " eff2c757e27ebc08 "
799+ " c1a003d2e63c8fc7 "
800800 ]
801801 ]
802802 },
815815 "y" : 640 ,
816816 "wires" : [
817817 [
818- " e944970a233c812f "
818+ " f495c7f7c9e65097 "
819819 ]
820820 ]
821821 },
830830 "initialize" : " " ,
831831 "finalize" : " " ,
832832 "libs" : [],
833- "x" : 1360 ,
833+ "x" : 1220 ,
834834 "y" : 520 ,
835835 "wires" : [
836836 [
849849 "initialize" : " " ,
850850 "finalize" : " " ,
851851 "libs" : [],
852- "x" : 1370 ,
852+ "x" : 1230 ,
853853 "y" : 580 ,
854854 "wires" : [
855855 [
868868 "initialize" : " " ,
869869 "finalize" : " " ,
870870 "libs" : [],
871- "x" : 1380 ,
871+ "x" : 1240 ,
872872 "y" : 640 ,
873873 "wires" : [
874874 [
950950 ]
951951 ]
952952 },
953- {
954- "id" : " cb314a12c20513b3" ,
955- "type" : " file in" ,
956- "z" : " 09012e75c72a4968" ,
957- "name" : " read file" ,
958- "filename" : " /data/configFiles/type0.json" ,
959- "filenameType" : " str" ,
960- "format" : " utf8" ,
961- "chunk" : false ,
962- "sendError" : false ,
963- "encoding" : " utf8" ,
964- "allProps" : false ,
965- "x" : 1150 ,
966- "y" : 1000 ,
967- "wires" : [
968- [
969- " dcc8abdf633f1c30"
970- ]
971- ]
972- },
973- {
974- "id" : " 3dc151189b79fc01" ,
975- "type" : " file in" ,
976- "z" : " 09012e75c72a4968" ,
977- "name" : " read file" ,
978- "filename" : " /data/configFiles/type0.json" ,
979- "filenameType" : " str" ,
980- "format" : " utf8" ,
981- "chunk" : false ,
982- "sendError" : false ,
983- "encoding" : " utf8" ,
984- "allProps" : false ,
985- "x" : 1150 ,
986- "y" : 1060 ,
987- "wires" : [
988- [
989- " 61eca1567ddb5e81"
990- ]
991- ]
992- },
993953 {
994954 "id" : " f6e56c9200cdd690" ,
995955 "type" : " file in" ,
13601320 "once" : false ,
13611321 "onceDelay" : 0.1 ,
13621322 "topic" : " " ,
1363- "payload" : " {\" type\" : 8, \" actuator_type\" : \" 0\" , \" actuator_id\" : \" act111 \" , \" room_id\" : \" room1\" }" ,
1323+ "payload" : " {\" type\" : 8, \" actuator_type\" : \" 0\" , \" actuator_id\" : \" act1121 \" , \" room_id\" : \" room1\" }" ,
13641324 "payloadType" : " str" ,
13651325 "x" : 110 ,
13661326 "y" : 580 ,
14961456 "y" : 1000 ,
14971457 "wires" : [
14981458 [
1499- " 745c5f5dda78248a" ,
1500- " c2ebcd9b76d6cc45"
1459+ " 745c5f5dda78248a"
15011460 ]
15021461 ]
15031462 },
15251484 "type" : " function" ,
15261485 "z" : " 09012e75c72a4968" ,
15271486 "name" : " requestProcessRelatedToTheRoom" ,
1528- "func" : " msg.url = \" https://digital-twin-layer.api.neu.digitaltwins.azure.net/query?api-version=2023-02-27-preview\"\n let query = \" SELECT TOP (1) SurgicalProcess.$dtId FROM DIGITALTWINS SurgicalProcess JOIN Room RELATED SurgicalProcess.rel_is_inside WHERE Room.$dtId = \" + msg.room_id\n msg.method = \" post\"\n\n msg.payload = {\n \" query\" : query\n }\n return msg;" ,
1487+ "func" : " msg.url = \" https://digital-twin-layer.api.neu.digitaltwins.azure.net/query?api-version=2023-02-27-preview\"\n let query = \" SELECT TOP (1) SurgicalProcess.$dtId FROM DIGITALTWINS SurgicalProcess JOIN Room RELATED SurgicalProcess.rel_is_inside WHERE Room.$dtId = ' \" + msg.room_id + \" ' \" \n msg.method = \" post\"\n\n msg.payload = {\n \" query\" : query\n }\n return msg;" ,
15291488 "outputs" : 1 ,
15301489 "noerr" : 0 ,
15311490 "initialize" : " " ,
15321491 "finalize" : " " ,
15331492 "libs" : [],
1534- "x" : 1420 ,
1493+ "x" : 1290 ,
15351494 "y" : 1060 ,
15361495 "wires" : [
15371496 [
15641523 "z" : " 09012e75c72a4968" ,
15651524 "name" : " " ,
15661525 "method" : " use" ,
1567- "ret" : " txt " ,
1526+ "ret" : " obj " ,
15681527 "paytoqs" : " ignore" ,
15691528 "url" : " " ,
15701529 "tls" : " " ,
15851544 "type" : " function" ,
15861545 "z" : " 09012e75c72a4968" ,
15871546 "name" : " requestPatientRelatedToTheProcess" ,
1588- "func" : " let process_id = JSON.parse( msg.payload) \n process_id = msg.process_id [\" value\" ][0][\" $dtId\" ]\n\ n msg.url = \" https://digital-twin-layer.api.neu.digitaltwins.azure.net/query?api-version=2023-02-27-preview\"\n let query = \" SELECT TOP (1) Patient.$dtId FROM DIGITALTWINS SurgicalProcess JOIN Patient RELATED SurgicalProcess.rel_involve_patient where SurgicalProcess.$dtId =\" + process_id\n msg.method = \" post\"\n\n msg.payload = {\n \" query\" : query\n }\n return msg;" ,
1547+ "func" : " let process_id = msg.payload[\" value\" ][0][\" $dtId\" ]\n msg.url = \" https://digital-twin-layer.api.neu.digitaltwins.azure.net/query?api-version=2023-02-27-preview\"\n let query = \" SELECT TOP (1) Patient.$dtId FROM DIGITALTWINS SurgicalProcess JOIN Patient RELATED SurgicalProcess.rel_involve_patient where SurgicalProcess.$dtId =' \" + process_id + \" ' \" \n msg.method = \" post\"\n\n msg.payload = {\n \" query\" : query\n }\n return msg;" ,
15891548 "outputs" : 1 ,
15901549 "noerr" : 0 ,
15911550 "initialize" : " " ,
16241583 "z" : " 09012e75c72a4968" ,
16251584 "name" : " " ,
16261585 "method" : " use" ,
1627- "ret" : " txt " ,
1586+ "ret" : " obj " ,
16281587 "paytoqs" : " ignore" ,
16291588 "url" : " " ,
16301589 "tls" : " " ,
16451604 "type" : " function" ,
16461605 "z" : " 09012e75c72a4968" ,
16471606 "name" : " setPatientOnOperatingTable" ,
1648- "func" : " let patient_id = JSON.parse( msg.payload) \n patient_id = msg.process_id [\" value\" ][0][\" $dtId\" ]\n\n msg.payload = [\n {\n \" op\" : \" add\" ,\n \" path\" : \" /is_on_operating_table\" ,\n \" value\" : true\n }\n ]\n\n msg.url = \" https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + patient_id + \" ?api-version=2020-10-31\"\n msg.method = \" patch\"\n return msg;" ,
1607+ "func" : " let patient_id = msg.payload[\" value\" ][0][\" $dtId\" ]\n\n msg.payload = [\n {\n \" op\" : \" add\" ,\n \" path\" : \" /is_on_operating_table\" ,\n \" value\" : true\n }\n ]\n\n msg.url = \" https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + patient_id + \" ?api-version=2020-10-31\"\n msg.method = \" patch\"\n return msg;" ,
16491608 "outputs" : 1 ,
16501609 "noerr" : 0 ,
16511610 "initialize" : " " ,
17551714 ]
17561715 ]
17571716 },
1758- {
1759- "id" : " af11a3caafbb5fa8" ,
1760- "type" : " file in" ,
1761- "z" : " 09012e75c72a4968" ,
1762- "name" : " read file" ,
1763- "filename" : " /data/configFiles/type0.json" ,
1764- "filenameType" : " str" ,
1765- "format" : " utf8" ,
1766- "chunk" : false ,
1767- "sendError" : false ,
1768- "encoding" : " utf8" ,
1769- "allProps" : false ,
1770- "x" : 1160 ,
1771- "y" : 460 ,
1772- "wires" : [
1773- [
1774- " 32174867b86c7b03"
1775- ]
1776- ]
1777- },
1778- {
1779- "id" : " 3af5bf281111cdf5" ,
1780- "type" : " file in" ,
1781- "z" : " 09012e75c72a4968" ,
1782- "name" : " read file" ,
1783- "filename" : " /data/configFiles/type0.json" ,
1784- "filenameType" : " str" ,
1785- "format" : " utf8" ,
1786- "chunk" : false ,
1787- "sendError" : false ,
1788- "encoding" : " utf8" ,
1789- "allProps" : false ,
1790- "x" : 1160 ,
1791- "y" : 520 ,
1792- "wires" : [
1793- [
1794- " 931fbc85cf48c3ad"
1795- ]
1796- ]
1797- },
1798- {
1799- "id" : " eff2c757e27ebc08" ,
1800- "type" : " file in" ,
1801- "z" : " 09012e75c72a4968" ,
1802- "name" : " read file" ,
1803- "filename" : " /data/configFiles/type0.json" ,
1804- "filenameType" : " str" ,
1805- "format" : " utf8" ,
1806- "chunk" : false ,
1807- "sendError" : false ,
1808- "encoding" : " utf8" ,
1809- "allProps" : false ,
1810- "x" : 1160 ,
1811- "y" : 580 ,
1812- "wires" : [
1813- [
1814- " c1a003d2e63c8fc7"
1815- ]
1816- ]
1817- },
1818- {
1819- "id" : " e944970a233c812f" ,
1820- "type" : " file in" ,
1821- "z" : " 09012e75c72a4968" ,
1822- "name" : " read file" ,
1823- "filename" : " /data/configFiles/type0.json" ,
1824- "filenameType" : " str" ,
1825- "format" : " utf8" ,
1826- "chunk" : false ,
1827- "sendError" : false ,
1828- "encoding" : " utf8" ,
1829- "allProps" : false ,
1830- "x" : 1160 ,
1831- "y" : 640 ,
1832- "wires" : [
1833- [
1834- " f495c7f7c9e65097"
1835- ]
1836- ]
1837- },
1838- {
1839- "id" : " 635a32e66dd92586" ,
1840- "type" : " file in" ,
1841- "z" : " 09012e75c72a4968" ,
1842- "name" : " read file" ,
1843- "filename" : " /data/configFiles/actuator_room_mapping.json" ,
1844- "filenameType" : " str" ,
1845- "format" : " utf8" ,
1846- "chunk" : false ,
1847- "sendError" : false ,
1848- "encoding" : " utf8" ,
1849- "allProps" : false ,
1850- "x" : 1160 ,
1851- "y" : 700 ,
1852- "wires" : [
1853- [
1854- " c4db83d867cd1492"
1855- ]
1856- ]
1857- },
18581717 {
18591718 "id" : " fec5274b054d2943" ,
18601719 "type" : " function" ,
21291988 " 20a8eea9561054e5"
21301989 ]
21311990 ]
2132- },
2133- {
2134- "id" : " c2ebcd9b76d6cc45" ,
2135- "type" : " debug" ,
2136- "z" : " 09012e75c72a4968" ,
2137- "name" : " debug 1" ,
2138- "active" : true ,
2139- "tosidebar" : true ,
2140- "console" : false ,
2141- "tostatus" : false ,
2142- "complete" : " false" ,
2143- "statusVal" : " " ,
2144- "statusType" : " auto" ,
2145- "x" : 2800 ,
2146- "y" : 940 ,
2147- "wires" : []
21481991 }
21491992]
0 commit comments