source: fmts/trunk/kids/C0X_1_0_0_T1.KID@ 1408

Last change on this file since 1408 was 1273, checked in by George Lilly, 13 years ago

initial load of ftms project files and test data

File size: 16.8 KB
Line 
1KIDS Distribution saved on Oct 27, 2011@22:14:58
2Initial build of fileman triplestore
3**KIDS**:C0X*1.0*0^
4
5**INSTALL NAME**
6C0X*1.0*0
7"BLD",7885,0)
8C0X*1.0*0^^0^3111027^n
9"BLD",7885,4,0)
10^9.64PA^172.201^2
11"BLD",7885,4,172.101,0)
12172.101
13"BLD",7885,4,172.101,222)
14y^y^f^^^^n
15"BLD",7885,4,172.201,0)
16172.201
17"BLD",7885,4,172.201,222)
18y^y^f^^^^n
19"BLD",7885,4,"B",172.101,172.101)
20
21"BLD",7885,4,"B",172.201,172.201)
22
23"BLD",7885,6.3)
241
25"BLD",7885,"KRN",0)
26^9.67PA^779.2^20
27"BLD",7885,"KRN",.4,0)
28.4
29"BLD",7885,"KRN",.401,0)
30.401
31"BLD",7885,"KRN",.402,0)
32.402
33"BLD",7885,"KRN",.403,0)
34.403
35"BLD",7885,"KRN",.5,0)
36.5
37"BLD",7885,"KRN",.84,0)
38.84
39"BLD",7885,"KRN",3.6,0)
403.6
41"BLD",7885,"KRN",3.8,0)
423.8
43"BLD",7885,"KRN",9.2,0)
449.2
45"BLD",7885,"KRN",9.8,0)
469.8
47"BLD",7885,"KRN",9.8,"NM",0)
48^9.68A^1^1
49"BLD",7885,"KRN",9.8,"NM",1,0)
50C0XMAIN^^0^B11207527
51"BLD",7885,"KRN",9.8,"NM","B","C0XMAIN",1)
52
53"BLD",7885,"KRN",19,0)
5419
55"BLD",7885,"KRN",19.1,0)
5619.1
57"BLD",7885,"KRN",101,0)
58101
59"BLD",7885,"KRN",409.61,0)
60409.61
61"BLD",7885,"KRN",771,0)
62771
63"BLD",7885,"KRN",779.2,0)
64779.2
65"BLD",7885,"KRN",870,0)
66870
67"BLD",7885,"KRN",8989.51,0)
688989.51
69"BLD",7885,"KRN",8989.52,0)
708989.52
71"BLD",7885,"KRN",8994,0)
728994
73"BLD",7885,"KRN","B",.4,.4)
74
75"BLD",7885,"KRN","B",.401,.401)
76
77"BLD",7885,"KRN","B",.402,.402)
78
79"BLD",7885,"KRN","B",.403,.403)
80
81"BLD",7885,"KRN","B",.5,.5)
82
83"BLD",7885,"KRN","B",.84,.84)
84
85"BLD",7885,"KRN","B",3.6,3.6)
86
87"BLD",7885,"KRN","B",3.8,3.8)
88
89"BLD",7885,"KRN","B",9.2,9.2)
90
91"BLD",7885,"KRN","B",9.8,9.8)
92
93"BLD",7885,"KRN","B",19,19)
94
95"BLD",7885,"KRN","B",19.1,19.1)
96
97"BLD",7885,"KRN","B",101,101)
98
99"BLD",7885,"KRN","B",409.61,409.61)
100
101"BLD",7885,"KRN","B",771,771)
102
103"BLD",7885,"KRN","B",779.2,779.2)
104
105"BLD",7885,"KRN","B",870,870)
106
107"BLD",7885,"KRN","B",8989.51,8989.51)
108
109"BLD",7885,"KRN","B",8989.52,8989.52)
110
111"BLD",7885,"KRN","B",8994,8994)
112
113"FIA",172.101)
114C0X TRIPLE
115"FIA",172.101,0)
116^C0X(101,
117"FIA",172.101,0,0)
118172.101I
119"FIA",172.101,0,1)
120y^y^f^^^^n
121"FIA",172.101,0,10)
122
123"FIA",172.101,0,11)
124
125"FIA",172.101,0,"RLRO")
126
127"FIA",172.101,172.101)
1280
129"FIA",172.201)
130C0X STRING
131"FIA",172.201,0)
132^C0X(201,
133"FIA",172.201,0,0)
134172.201
135"FIA",172.201,0,1)
136y^y^f^^^^n
137"FIA",172.201,0,10)
138
139"FIA",172.201,0,11)
140
141"FIA",172.201,0,"RLRO")
142
143"FIA",172.201,172.201)
1440
145"FIA",172.201,172.2011)
1460
147"IX",172.101,172.101,"G",0)
148172.101^G^REGULAR INDEX OF THE GRAPH FIELD^R^^F^IR^I^172.101^^^^^LS
149"IX",172.101,172.101,"G",1)
150S ^C0X(101,"G",X,DA)=""
151"IX",172.101,172.101,"G",2)
152K ^C0X(101,"G",X,DA)
153"IX",172.101,172.101,"G",2.5)
154K ^C0X(101,"G")
155"IX",172.101,172.101,"G",11.1,0)
156^.114IA^1^1
157"IX",172.101,172.101,"G",11.1,1,0)
1581^F^172.101^.02^^1^F
159"IX",172.101,172.101,"G",11.1,1,3)
160
161"IX",172.101,172.101,"OPS",0)
162172.101^OPS^REGULAR INDEX OF OBJECT PREDICATE SUBJECT^R^^R^IR^I^172.101^^^^^LS
163"IX",172.101,172.101,"OPS",1)
164S ^C0X(101,"OPS",X(1),X(2),X(3),DA)=""
165"IX",172.101,172.101,"OPS",2)
166K ^C0X(101,"OPS",X(1),X(2),X(3),DA)
167"IX",172.101,172.101,"OPS",2.5)
168K ^C0X(101,"OPS")
169"IX",172.101,172.101,"OPS",11.1,0)
170^.114IA^3^3
171"IX",172.101,172.101,"OPS",11.1,1,0)
1721^F^172.101^.05^^1^F
173"IX",172.101,172.101,"OPS",11.1,1,3)
174
175"IX",172.101,172.101,"OPS",11.1,2,0)
1762^F^172.101^.04^^2^F
177"IX",172.101,172.101,"OPS",11.1,2,3)
178
179"IX",172.101,172.101,"OPS",11.1,3,0)
1803^F^172.101^.03^^3^F
181"IX",172.101,172.101,"OPS",11.1,3,3)
182
183"IX",172.101,172.101,"OSP",0)
184172.101^OSP^REGULAR INDEX OF OBJECT SUBJECT PREDICATE^R^^R^IR^I^172.101^^^^^LS
185"IX",172.101,172.101,"OSP",1)
186S ^C0X(101,"OSP",X(1),X(2),X(3),DA)=""
187"IX",172.101,172.101,"OSP",2)
188K ^C0X(101,"OSP",X(1),X(2),X(3),DA)
189"IX",172.101,172.101,"OSP",2.5)
190K ^C0X(101,"OSP")
191"IX",172.101,172.101,"OSP",11.1,0)
192^.114IA^3^3
193"IX",172.101,172.101,"OSP",11.1,1,0)
1941^F^172.101^.05^^1^F
195"IX",172.101,172.101,"OSP",11.1,1,3)
196
197"IX",172.101,172.101,"OSP",11.1,2,0)
1982^F^172.101^.03^^2^F
199"IX",172.101,172.101,"OSP",11.1,2,3)
200
201"IX",172.101,172.101,"OSP",11.1,3,0)
2023^F^172.101^.04^^3^F
203"IX",172.101,172.101,"OSP",11.1,3,3)
204
205"IX",172.101,172.101,"PSO",0)
206172.101^PSO^REGULAR INDEX OF PREDICATE SUBJECT OBJECT^R^^R^IR^I^172.101^^^^^LS
207"IX",172.101,172.101,"PSO",1)
208S ^C0X(101,"PSO",X(1),X(2),X(3),DA)=""
209"IX",172.101,172.101,"PSO",2)
210K ^C0X(101,"PSO",X(1),X(2),X(3),DA)
211"IX",172.101,172.101,"PSO",2.5)
212K ^C0X(101,"PSO")
213"IX",172.101,172.101,"PSO",11.1,0)
214^.114IA^3^3
215"IX",172.101,172.101,"PSO",11.1,1,0)
2161^F^172.101^.04^^1^F
217"IX",172.101,172.101,"PSO",11.1,1,3)
218
219"IX",172.101,172.101,"PSO",11.1,2,0)
2202^F^172.101^.03^^2^F
221"IX",172.101,172.101,"PSO",11.1,2,3)
222
223"IX",172.101,172.101,"PSO",11.1,3,0)
2243^F^172.101^.05^^3^F
225"IX",172.101,172.101,"PSO",11.1,3,3)
226
227"IX",172.101,172.101,"SPO",0)
228172.101^SPO^REGULAR INDEX OF SUBJECT PREDICATE OBJECT^R^^R^IR^I^172.101^^^^^LS
229"IX",172.101,172.101,"SPO",1)
230S ^C0X(101,"SPO",X(1),X(2),X(3),DA)=""
231"IX",172.101,172.101,"SPO",2)
232K ^C0X(101,"SPO",X(1),X(2),X(3),DA)
233"IX",172.101,172.101,"SPO",2.5)
234K ^C0X(101,"SPO")
235"IX",172.101,172.101,"SPO",11.1,0)
236^.114IA^3^3
237"IX",172.101,172.101,"SPO",11.1,1,0)
2381^F^172.101^.03^^1^F
239"IX",172.101,172.101,"SPO",11.1,1,3)
240
241"IX",172.101,172.101,"SPO",11.1,2,0)
2422^F^172.101^.04^^2^F
243"IX",172.101,172.101,"SPO",11.1,2,3)
244
245"IX",172.101,172.101,"SPO",11.1,3,0)
2463^F^172.101^.05^^3^F
247"IX",172.101,172.101,"SPO",11.1,3,3)
248
249"MBREQ")
2500
251"QUES","XPF1",0)
252Y
253"QUES","XPF1","??")
254^D REP^XPDH
255"QUES","XPF1","A")
256Shall I write over your |FLAG| File
257"QUES","XPF1","B")
258YES
259"QUES","XPF1","M")
260D XPF1^XPDIQ
261"QUES","XPF2",0)
262Y
263"QUES","XPF2","??")
264^D DTA^XPDH
265"QUES","XPF2","A")
266Want my data |FLAG| yours
267"QUES","XPF2","B")
268YES
269"QUES","XPF2","M")
270D XPF2^XPDIQ
271"QUES","XPI1",0)
272YO
273"QUES","XPI1","??")
274^D INHIBIT^XPDH
275"QUES","XPI1","A")
276Want KIDS to INHIBIT LOGONs during the install
277"QUES","XPI1","B")
278NO
279"QUES","XPI1","M")
280D XPI1^XPDIQ
281"QUES","XPM1",0)
282PO^VA(200,:EM
283"QUES","XPM1","??")
284^D MG^XPDH
285"QUES","XPM1","A")
286Enter the Coordinator for Mail Group '|FLAG|'
287"QUES","XPM1","B")
288
289"QUES","XPM1","M")
290D XPM1^XPDIQ
291"QUES","XPO1",0)
292Y
293"QUES","XPO1","??")
294^D MENU^XPDH
295"QUES","XPO1","A")
296Want KIDS to Rebuild Menu Trees Upon Completion of Install
297"QUES","XPO1","B")
298NO
299"QUES","XPO1","M")
300D XPO1^XPDIQ
301"QUES","XPZ1",0)
302Y
303"QUES","XPZ1","??")
304^D OPT^XPDH
305"QUES","XPZ1","A")
306Want to DISABLE Scheduled Options, Menu Options, and Protocols
307"QUES","XPZ1","B")
308NO
309"QUES","XPZ1","M")
310D XPZ1^XPDIQ
311"QUES","XPZ2",0)
312Y
313"QUES","XPZ2","??")
314^D RTN^XPDH
315"QUES","XPZ2","A")
316Want to MOVE routines to other CPUs
317"QUES","XPZ2","B")
318NO
319"QUES","XPZ2","M")
320D XPZ2^XPDIQ
321"RTN")
3221
323"RTN","C0XMAIN")
3240^1^B11207527
325"RTN","C0XMAIN",1,0)
326C0XMAIN ; GPL - Fileman Triples entry point routine ;10/13/11 17:05
327"RTN","C0XMAIN",2,0)
328 ;;0.1;C0X;nopatch;noreleasedate;Build 1
329"RTN","C0XMAIN",3,0)
330 ;Copyright 2011 George Lilly. Licensed under the terms of the GNU
331"RTN","C0XMAIN",4,0)
332 ;General Public License See attached copy of the License.
333"RTN","C0XMAIN",5,0)
334 ;
335"RTN","C0XMAIN",6,0)
336 ;This program is free software; you can redistribute it and/or modify
337"RTN","C0XMAIN",7,0)
338 ;it under the terms of the GNU General Public License as published by
339"RTN","C0XMAIN",8,0)
340 ;the Free Software Foundation; either version 2 of the License, or
341"RTN","C0XMAIN",9,0)
342 ;(at your option) any later version.
343"RTN","C0XMAIN",10,0)
344 ;
345"RTN","C0XMAIN",11,0)
346 ;This program is distributed in the hope that it will be useful,
347"RTN","C0XMAIN",12,0)
348 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
349"RTN","C0XMAIN",13,0)
350 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
351"RTN","C0XMAIN",14,0)
352 ;GNU General Public License for more details.
353"RTN","C0XMAIN",15,0)
354 ;
355"RTN","C0XMAIN",16,0)
356 ;You should have received a copy of the GNU General Public License along
357"RTN","C0XMAIN",17,0)
358 ;with this program; if not, write to the Free Software Foundation, Inc.,
359"RTN","C0XMAIN",18,0)
360 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
361"RTN","C0XMAIN",19,0)
362 ;
363"RTN","C0XMAIN",20,0)
364 Q
365"RTN","C0XMAIN",21,0)
366 ;
367"RTN","C0XMAIN",22,0)
368INITFARY(ZFARY) ; INITIALIZE FILE NUMBERS AND OTHER USEFUL THINGS
369"RTN","C0XMAIN",23,0)
370 ; FOR THE DEFAULT TRIPLE STORE. USE OTHER VALUES FOR SUPPORTING ADDITIONAL
371"RTN","C0XMAIN",24,0)
372 ; TRIPLE STORES
373"RTN","C0XMAIN",25,0)
374 S @ZFARY@("C0XTFN")=172.101 ; TRIPLES FILE NUMBER
375"RTN","C0XMAIN",26,0)
376 S @ZFARY@("C0XSFN")=172.201 ; TRIPLES STRINGS FILE NUMBER
377"RTN","C0XMAIN",27,0)
378 S @ZFARY@("C0XTN")=$NA(^C0X(101)) ; TRIPLES GLOBAL NAME
379"RTN","C0XMAIN",28,0)
380 S @ZFARY@("C0XSN")=$NA(^C0X(201)) ; STRING FILE GLOBAL NAME
381"RTN","C0XMAIN",29,0)
382 S @ZFARY@("C0XDIR")="/home/glilly/all_smart_patient_data/smart-rdf/"
383"RTN","C0XMAIN",30,0)
384 D USEFARY(ZFARY)
385"RTN","C0XMAIN",31,0)
386 Q
387"RTN","C0XMAIN",32,0)
388 ;
389"RTN","C0XMAIN",33,0)
390USEFARY(ZFARY) ; INITIALIZES VARIABLES SAVED IN ARRAY ZFARY
391"RTN","C0XMAIN",34,0)
392 N ZI S ZI=""
393"RTN","C0XMAIN",35,0)
394 F S ZI=$O(@ZFARY@(ZI)) Q:ZI="" D
395"RTN","C0XMAIN",36,0)
396 . ;N ZX
397"RTN","C0XMAIN",37,0)
398 . S ZX="S "_ZI_"="""_@ZFARY@(ZI)_""""
399"RTN","C0XMAIN",38,0)
400 . ;W !,ZX
401"RTN","C0XMAIN",39,0)
402 . X ZX
403"RTN","C0XMAIN",40,0)
404 Q
405"RTN","C0XMAIN",41,0)
406 ;
407"RTN","C0XMAIN",42,0)
408IMPORT(FNAME,FDIR,FURL,FARY) ; EXTRINSIC THAT READS A FILE FROM THE STANDARD
409"RTN","C0XMAIN",43,0)
410 ; DIRECTORY, LOADS IT INTO THE TRIPLESTORE AS TEXT, AND RETURNS THE
411"RTN","C0XMAIN",44,0)
412 ; NODE NAME OF THE TEXT TRIPLE
413"RTN","C0XMAIN",45,0)
414 ; FDIR IS THE OPTIONAL DIRECTORY (DEFAUTS TO STANDARD DIR)
415"RTN","C0XMAIN",46,0)
416 ; FURL IS THE OPTIONAL URI FOR ACCESSING THE FILE FROM THE TRIPLE STORE
417"RTN","C0XMAIN",47,0)
418 ; FARY IS THE OPTIONAL FILE ARRAY OF THE TRIPLE STORE TO USE
419"RTN","C0XMAIN",48,0)
420 I '$D(FARY) D ;
421"RTN","C0XMAIN",49,0)
422 . D INITFARY("C0XFARY")
423"RTN","C0XMAIN",50,0)
424 . S FARY="C0XFARY"
425"RTN","C0XMAIN",51,0)
426 D USEFARY(FARY)
427"RTN","C0XMAIN",52,0)
428 N ZD,ZTMP
429"RTN","C0XMAIN",53,0)
430 I '$D(FDIR) S FDIR=C0XDIR ; DIRECTORY OF THE RDF FILE
431"RTN","C0XMAIN",54,0)
432 I '$D(FURL) D ;
433"RTN","C0XMAIN",55,0)
434 . N ZN2 S ZN2=$TR(FNAME,".","_") ; REMOVE THE DOT FROM THE NAME
435"RTN","C0XMAIN",56,0)
436 . S FURL="/local/files/"_ZN2
437"RTN","C0XMAIN",57,0)
438 N ZGRAPH,ZSUBJECT
439"RTN","C0XMAIN",58,0)
440 S ZGRAPH="G"_$$LKY9 ; RANDOM GRAPH NAME
441"RTN","C0XMAIN",59,0)
442 S ZSUBJECT="_S"_$$LKY9 ; RANDOM ANOYMOUS SUBJECT
443"RTN","C0XMAIN",60,0)
444 D ADD(ZGRAPH,ZSUBJECT,"v:url",FURL)
445"RTN","C0XMAIN",61,0)
446 N ZTXTNM
447"RTN","C0XMAIN",62,0)
448 S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_$$LKY9 ; NAME FOR TEXT NODE
449"RTN","C0XMAIN",63,0)
450 D ADD(ZGRAPH,ZSUBJECT,"v:rdfSource",ZTXTNM)
451"RTN","C0XMAIN",64,0)
452 D UPDIE(.C0XFDA) ; TRY IT OUT
453"RTN","C0XMAIN",65,0)
454 K C0XCNT ;RESET FOR NEXT TIME
455"RTN","C0XMAIN",66,0)
456 Q
457"RTN","C0XMAIN",67,0)
458 ;
459"RTN","C0XMAIN",68,0)
460ADD(ZG,ZS,ZP,ZO,FARY) ; ADD A TRIPLE TO THE TRIPLESTORE. ALL VALUES ARE TEXT
461"RTN","C0XMAIN",69,0)
462 ; THE FDA IS SET UP BUT THE FILES ARE NOT UPDATED. CALL UPDIE TO COMPLETE
463"RTN","C0XMAIN",70,0)
464 I '$D(FARY) D ;
465"RTN","C0XMAIN",71,0)
466 . D INITFARY("C0XFARY")
467"RTN","C0XMAIN",72,0)
468 . S FARY="C0XFARY"
469"RTN","C0XMAIN",73,0)
470 D USEFARY(FARY)
471"RTN","C0XMAIN",74,0)
472 I '$D(C0XCNT) S C0XCNT=0
473"RTN","C0XMAIN",75,0)
474 N ZNODE
475"RTN","C0XMAIN",76,0)
476 S ZNODE="N"_$$LKY9
477"RTN","C0XMAIN",77,0)
478 S ZGIEN=$$IENOF(ZG) ; LAYGO TO GET IEN
479"RTN","C0XMAIN",78,0)
480 S ZSIEN=$$IENOF(ZS)
481"RTN","C0XMAIN",79,0)
482 S ZPIEN=$$IENOF(ZP)
483"RTN","C0XMAIN",80,0)
484 S ZOIEN=$$IENOF(ZO)
485"RTN","C0XMAIN",81,0)
486 ;I $D(C0XFDA) D UPDIE ; ADD THE STRINGS IF NEEDED
487"RTN","C0XMAIN",82,0)
488 S C0XCNT=C0XCNT+1
489"RTN","C0XMAIN",83,0)
490 S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.01)=ZNODE
491"RTN","C0XMAIN",84,0)
492 S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.02)=ZGIEN
493"RTN","C0XMAIN",85,0)
494 S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.03)=ZSIEN
495"RTN","C0XMAIN",86,0)
496 S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.04)=ZPIEN
497"RTN","C0XMAIN",87,0)
498 S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.05)=ZOIEN
499"RTN","C0XMAIN",88,0)
500 ; REMEMBER TO CALL UPDIE WHEN YOU'RE DONE
501"RTN","C0XMAIN",89,0)
502 Q
503"RTN","C0XMAIN",90,0)
504 ;
505"RTN","C0XMAIN",91,0)
506LKY9() ;EXTRINIC THAT RETURNS A RANDOM 9 DIGIT NUMBER. USED FOR GENERATING
507"RTN","C0XMAIN",92,0)
508 ; UNIQUE NODE AND GRAPH NAMES
509"RTN","C0XMAIN",93,0)
510 N ZN,ZI
511"RTN","C0XMAIN",94,0)
512 S ZN=""
513"RTN","C0XMAIN",95,0)
514 F ZI=1:1:9 D ;
515"RTN","C0XMAIN",96,0)
516 . S ZN=ZN_$R(10)
517"RTN","C0XMAIN",97,0)
518 Q ZN
519"RTN","C0XMAIN",98,0)
520 ;
521"RTN","C0XMAIN",99,0)
522IENOF(ZSTRING,FARY) ; EXTRINSIC WHICH RETURNS THE IEN OF ZS IN THE STRINGS FILE
523"RTN","C0XMAIN",100,0)
524 I '$D(FARY) D ;
525"RTN","C0XMAIN",101,0)
526 . D INITFARY("C0XFARY")
527"RTN","C0XMAIN",102,0)
528 . S FARY="C0XFARY"
529"RTN","C0XMAIN",103,0)
530 N ZIEN
531"RTN","C0XMAIN",104,0)
532 S ZIEN=$O(@C0XSN@("B",ZSTRING,""))
533"RTN","C0XMAIN",105,0)
534 I ZIEN="" D ;
535"RTN","C0XMAIN",106,0)
536 . S C0XFDA2(C0XSFN,"+1,",.01)=ZSTRING
537"RTN","C0XMAIN",107,0)
538 . D UPDIE(.C0XFDA2)
539"RTN","C0XMAIN",108,0)
540 . S ZIEN=$O(@C0XSN@("B",ZSTRING,""))
541"RTN","C0XMAIN",109,0)
542 . K C0XFDA2
543"RTN","C0XMAIN",110,0)
544 Q ZIEN
545"RTN","C0XMAIN",111,0)
546 ;
547"RTN","C0XMAIN",112,0)
548UPDIE(ZFDA) ; INTERNAL ROUTINE TO CALL UPDATE^DIE AND CHECK FOR ERRORS
549"RTN","C0XMAIN",113,0)
550 ; ZFDA IS PASSED BY REFERENCE
551"RTN","C0XMAIN",114,0)
552 K ZERR
553"RTN","C0XMAIN",115,0)
554 D CLEAN^DILF
555"RTN","C0XMAIN",116,0)
556 D UPDATE^DIE("","ZFDA","","ZERR")
557"RTN","C0XMAIN",117,0)
558 I $D(ZERR) S ZZERR=ZZERR ; ZZERR DOESN'T EXIST, INVOKE THE ERROR TRAP IF TASKED
559"RTN","C0XMAIN",118,0)
560 ;. W "ERROR",!
561"RTN","C0XMAIN",119,0)
562 ;. ZWR ZERR
563"RTN","C0XMAIN",120,0)
564 ;. B
565"RTN","C0XMAIN",121,0)
566 K ZFDA
567"RTN","C0XMAIN",122,0)
568 Q
569"RTN","C0XMAIN",123,0)
570 ;
571"SEC","^DIC",172.101,172.101,0,"AUDIT")
572@
573"SEC","^DIC",172.101,172.101,0,"DD")
574@
575"SEC","^DIC",172.101,172.101,0,"DEL")
576@
577"SEC","^DIC",172.101,172.101,0,"LAYGO")
578@
579"SEC","^DIC",172.101,172.101,0,"RD")
580@
581"SEC","^DIC",172.101,172.101,0,"WR")
582@
583"SEC","^DIC",172.201,172.201,0,"AUDIT")
584@
585"SEC","^DIC",172.201,172.201,0,"DD")
586@
587"SEC","^DIC",172.201,172.201,0,"DEL")
588@
589"SEC","^DIC",172.201,172.201,0,"LAYGO")
590@
591"SEC","^DIC",172.201,172.201,0,"RD")
592@
593"SEC","^DIC",172.201,172.201,0,"WR")
594@
595"VER")
5968.0^22.0
597"^DD",172.101,172.101,0)
598FIELD^^.05^5
599"^DD",172.101,172.101,0,"DDA")
600N
601"^DD",172.101,172.101,0,"DT")
6023111013
603"^DD",172.101,172.101,0,"ID",.02)
604S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
605"^DD",172.101,172.101,0,"ID",.03)
606S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
607"^DD",172.101,172.101,0,"ID",.04)
608S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,4),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
609"^DD",172.101,172.101,0,"ID",.05)
610S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,5),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
611"^DD",172.101,172.101,0,"IX","B",172.101,.01)
612
613"^DD",172.101,172.101,0,"NM","C0X TRIPLE")
614
615"^DD",172.101,172.101,.01,0)
616NODEID^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
617"^DD",172.101,172.101,.01,.1)
618TRIPLE NODE ID
619"^DD",172.101,172.101,.01,1,0)
620^.1
621"^DD",172.101,172.101,.01,1,1,0)
622172.101^B
623"^DD",172.101,172.101,.01,1,1,1)
624S ^C0X(101,"B",$E(X,1,30),DA)=""
625"^DD",172.101,172.101,.01,1,1,2)
626K ^C0X(101,"B",$E(X,1,30),DA)
627"^DD",172.101,172.101,.01,3)
628Answer must be 3-30 characters in length
629"^DD",172.101,172.101,.01,"DT")
6303111013
631"^DD",172.101,172.101,.02,0)
632GRAPH^P172.201^C0X(201,^0;2^Q
633"^DD",172.101,172.101,.02,.1)
634TRIPLE GRAPH
635"^DD",172.101,172.101,.02,3)
636Answer must be 3-240 characters in length
637"^DD",172.101,172.101,.02,"DT")
6383111013
639"^DD",172.101,172.101,.03,0)
640SUBJECT^P172.201^C0X(201,^0;3^Q
641"^DD",172.101,172.101,.03,.1)
642TRIPLE SUBJECT
643"^DD",172.101,172.101,.03,"DT")
6443111013
645"^DD",172.101,172.101,.04,0)
646PREDICATE^P172.201^C0X(201,^0;4^Q
647"^DD",172.101,172.101,.04,.1)
648TRIPLE PREDICATE
649"^DD",172.101,172.101,.04,"DT")
6503111013
651"^DD",172.101,172.101,.05,0)
652OBJECT^P172.201^C0X(201,^0;5^Q
653"^DD",172.101,172.101,.05,.1)
654TRIPLE OBJECT
655"^DD",172.101,172.101,.05,"DT")
6563111013
657"^DD",172.201,172.201,0)
658FIELD^^1^2
659"^DD",172.201,172.201,0,"DDA")
660N
661"^DD",172.201,172.201,0,"DT")
6623111013
663"^DD",172.201,172.201,0,"IX","B",172.201,.01)
664
665"^DD",172.201,172.201,0,"NM","C0X STRING")
666
667"^DD",172.201,172.201,0,"PT",172.101,.02)
668
669"^DD",172.201,172.201,0,"PT",172.101,.03)
670
671"^DD",172.201,172.201,0,"PT",172.101,.04)
672
673"^DD",172.201,172.201,0,"PT",172.101,.05)
674
675"^DD",172.201,172.201,.01,0)
676STRING^RF^^0;1^K:$L(X)>240!($L(X)<1)!'(X=X) X
677"^DD",172.201,172.201,.01,.1)
678TRIPLE STRING
679"^DD",172.201,172.201,.01,1,0)
680^.1
681"^DD",172.201,172.201,.01,1,1,0)
682172.201^B
683"^DD",172.201,172.201,.01,1,1,1)
684S ^C0X(201,"B",$E(X,1,30),DA)=""
685"^DD",172.201,172.201,.01,1,1,2)
686K ^C0X(201,"B",$E(X,1,30),DA)
687"^DD",172.201,172.201,.01,3)
688Answer must be 1-240 characters in length
689"^DD",172.201,172.201,.01,"DT")
6903111013
691"^DD",172.201,172.201,1,0)
692TEXT^172.2011^^1;0
693"^DD",172.201,172.2011,0)
694TEXT SUB-FIELD^^.01^1
695"^DD",172.201,172.2011,0,"DT")
6963111013
697"^DD",172.201,172.2011,0,"NM","TEXT")
698
699"^DD",172.201,172.2011,0,"UP")
700172.201
701"^DD",172.201,172.2011,.01,0)
702TEXT^Wx^^0;1
703"^DD",172.201,172.2011,.01,.1)
704LONGER TEXT
705"^DD",172.201,172.2011,.01,"DT")
7063111013
707"^DIC",172.101,172.101,0)
708C0X TRIPLE^172.101
709"^DIC",172.101,172.101,0,"GL")
710^C0X(101,
711"^DIC",172.101,"B","C0X TRIPLE",172.101)
712
713"^DIC",172.201,172.201,0)
714C0X STRING^172.201
715"^DIC",172.201,172.201,0,"GL")
716^C0X(201,
717"^DIC",172.201,"B","C0X STRING",172.201)
718
719**END**
720**END**
Note: See TracBrowser for help on using the repository browser.