source: WorldVistAEHR/trunk/r/MENTAL_HEALTH-YS-RUCL-YI-YT/YTQQI001.m@ 1742

Last change on this file since 1742 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 3.3 KB
Line 
1YTQQI001 ;ASF/ALB- MH3 PATCH 85 INIT ; 7/27/07 2:16pm
2 ;;5.01;MENTAL HEALTH;**85**;;Build 49
3 Q:'DIFQ(601.751) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
4Q Q
5 ;;^DIC(601.751,0,"GL")
6 ;;=^YTT(601.751,
7 ;;^DIC("B","MH CHOICETYPES",601.751)
8 ;;=
9 ;;^DIC(601.751,"%",0)
10 ;;=^1.005^^0
11 ;;^DIC(601.751,"%D",0)
12 ;;=^1.001^7^7^3050309^^^
13 ;;^DIC(601.751,"%D",1,0)
14 ;;=This file contains a collection of choices from MH CHOICES file (#601.75)
15 ;;^DIC(601.751,"%D",2,0)
16 ;;=and their display sequence. This allows sets of choices to be specified by
17 ;;^DIC(601.751,"%D",3,0)
18 ;;=the MH QUESTIONS file (#601.72).
19 ;;^DIC(601.751,"%D",4,0)
20 ;;=
21 ;;^DIC(601.751,"%D",5,0)
22 ;;=An example of an entry would be: 1. True 2. False 3. Undecided
23 ;;^DIC(601.751,"%D",6,0)
24 ;;=Each multiple choice question must specify a ChoiceType. In this way a
25 ;;^DIC(601.751,"%D",7,0)
26 ;;=ChoiceType can be used by multiple instruments and multiple questions.
27 ;;^DD(601.751,0)
28 ;;=FIELD^^3^4
29 ;;^DD(601.751,0,"DDA")
30 ;;=N
31 ;;^DD(601.751,0,"DT")
32 ;;=3030912
33 ;;^DD(601.751,0,"IX","ACT",601.751,2)
34 ;;=
35 ;;^DD(601.751,0,"IX","B",601.751,.01)
36 ;;=
37 ;;^DD(601.751,0,"NM","MH CHOICETYPES")
38 ;;=
39 ;;^DD(601.751,0,"VRPK")
40 ;;=YS
41 ;;^DD(601.751,.01,0)
42 ;;=CHOICETYPE ID^RNJ7,0^^0;1^K:+X'=X!(X>9999999)!(X<1)!(X?.E1"."1N.N) X
43 ;;^DD(601.751,.01,1,0)
44 ;;=^.1^^-1
45 ;;^DD(601.751,.01,1,1,0)
46 ;;=601.751^B
47 ;;^DD(601.751,.01,1,1,1)
48 ;;=S ^YTT(601.751,"B",$E(X,1,30),DA)=""
49 ;;^DD(601.751,.01,1,1,2)
50 ;;=K ^YTT(601.751,"B",$E(X,1,30),DA)
51 ;;^DD(601.751,.01,3)
52 ;;=Type a Number between 1 and 9999999, 0 Decimal Digits
53 ;;^DD(601.751,.01,21,0)
54 ;;=^^1^1^3040507^
55 ;;^DD(601.751,.01,21,1,0)
56 ;;=This is the NON-unique identifier for the ChoiceType.
57 ;;^DD(601.751,.01,"DT")
58 ;;=3031114
59 ;;^DD(601.751,1,0)
60 ;;=SEQUENCE^RNJ3,0^^0;2^K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X
61 ;;^DD(601.751,1,3)
62 ;;=Type a Number between 1 and 999, 0 Decimal Digits
63 ;;^DD(601.751,1,21,0)
64 ;;=^.001^1^1^3040507^^^
65 ;;^DD(601.751,1,21,1,0)
66 ;;=Order in which the Choice alternative is displayed.
67 ;;^DD(601.751,1,"DT")
68 ;;=3031114
69 ;;^DD(601.751,2,0)
70 ;;=CHOICE ID^RP601.75'^YTT(601.75,^0;3^Q
71 ;;^DD(601.751,2,1,0)
72 ;;=^.1
73 ;;^DD(601.751,2,1,1,0)
74 ;;=601.751^ACT
75 ;;^DD(601.751,2,1,1,1)
76 ;;=S ^YTT(601.751,"ACT",$E(X,1,30),DA)=""
77 ;;^DD(601.751,2,1,1,2)
78 ;;=K ^YTT(601.751,"ACT",$E(X,1,30),DA)
79 ;;^DD(601.751,2,1,1,"DT")
80 ;;=3031114
81 ;;^DD(601.751,2,3)
82 ;;=
83 ;;^DD(601.751,2,21,0)
84 ;;=^^2^2^3050223^
85 ;;^DD(601.751,2,21,1,0)
86 ;;=Pointer to the MH CHOICES file (#601.75) to associate a choice with this
87 ;;^DD(601.751,2,21,2,0)
88 ;;=choice type.
89 ;;^DD(601.751,2,"DT")
90 ;;=3050223
91 ;;^DD(601.751,3,0)
92 ;;=CHOICE TEXT^CJ50^^ ; ^X ^DD(601.751,3,9.2) S Y(601.751,3,101)=$S($D(^YTT(601.75,D0,1)):^(1),1:"") S X=$P(Y(601.751,3,101),U,1) S D0=Y(601.751,3,80)
93 ;;^DD(601.751,3,9)
94 ;;=^
95 ;;^DD(601.751,3,9.01)
96 ;;=601.75^3;601.751^2
97 ;;^DD(601.751,3,9.1)
98 ;;=CHOICE ID:MH CHOICES:CHOICE TEXT
99 ;;^DD(601.751,3,9.2)
100 ;;=S Y(601.751,3,80)=$G(D0),Y(601.751,3,1)=$S($D(^YTT(601.751,D0,0)):^(0),1:"") S X=$P(Y(601.751,3,1),U,3) K DIC S DIC="^YTT(601.75,",DIC(0)="MF" D ^DIC S (D,D0)=+Y
101 ;;^DD(601.751,3,21,0)
102 ;;=^.001^1^1^3040507^^
103 ;;^DD(601.751,3,21,1,0)
104 ;;=DISPLAYS choices text via this computed field
105 ;;^DD(601.751,3,"DT")
106 ;;=3030911
Note: See TracBrowser for help on using the repository browser.