1 | DGADTTM3 ;ALB/RMM-CREATE NEW-STYLE XREF ;1:35 PM 24 May 2005
|
---|
2 | ;;5.3;REGISTRATION;**665**;Aug 13,1993
|
---|
3 | ;
|
---|
4 | ; This routine adds the new style cross-reference ADTTM3 which triggers
|
---|
5 | ; an update for the PRIMARY NOK CHANGE DATE/TIME field (#.21012) in
|
---|
6 | ; the PATIENT File #2.
|
---|
7 | ;
|
---|
8 | N DGENXR,DGENRES,DGENOUT
|
---|
9 | S DGENXR("FILE")=2
|
---|
10 | S DGENXR("NAME")="ADTTM3"
|
---|
11 | S DGENXR("TYPE")="MU"
|
---|
12 | S DGENXR("USE")="A"
|
---|
13 | S DGENXR("EXECUTION")="R"
|
---|
14 | S DGENXR("ACTIVITY")=""
|
---|
15 | S DGENXR("SHORT DESCR")="PRIMARY NOK Cross-Reference"
|
---|
16 | S DGENXR("DESCR",1)="This cross-reference will update the PRIMARY NOK CHANGE DATE/TIME field"
|
---|
17 | S DGENXR("DESCR",2)="when the Primary Next of Kin data changes for a patient."
|
---|
18 | S DGENXR("SET")="D PNOK^DGDDDTTM"
|
---|
19 | S DGENXR("KILL")="D PNOK^DGDDDTTM"
|
---|
20 | S DGENXR("VAL",1)=.211
|
---|
21 | S DGENXR("VAL",1,"COLLATION")="F"
|
---|
22 | S DGENXR("VAL",2)=.212
|
---|
23 | S DGENXR("VAL",2,"COLLATION")="F"
|
---|
24 | S DGENXR("VAL",3)=.213
|
---|
25 | S DGENXR("VAL",3,"COLLATION")="F"
|
---|
26 | S DGENXR("VAL",4)=.214
|
---|
27 | S DGENXR("VAL",4,"COLLATION")="F"
|
---|
28 | S DGENXR("VAL",5)=.215
|
---|
29 | S DGENXR("VAL",5,"COLLATION")="F"
|
---|
30 | S DGENXR("VAL",6)=.216
|
---|
31 | S DGENXR("VAL",6,"COLLATION")="F"
|
---|
32 | S DGENXR("VAL",7)=.217
|
---|
33 | S DGENXR("VAL",7,"COLLATION")="F"
|
---|
34 | S DGENXR("VAL",8)=.218
|
---|
35 | S DGENXR("VAL",8,"COLLATION")="F"
|
---|
36 | S DGENXR("VAL",9)=.2125
|
---|
37 | S DGENXR("VAL",9,"COLLATION")="F"
|
---|
38 | S DGENXR("VAL",10)=.2207
|
---|
39 | S DGENXR("VAL",10,"COLLATION")="F"
|
---|
40 | D CREIXN^DDMOD(.DGENXR,"W",.DGENRES,"DGENOUT")
|
---|
41 | Q
|
---|