20 (4)    INDEX (.11)

Name Value
FILE 20
NAME ANAME
DESCRIPTION
This MUMPS cross-reference keeps the data in the Name Components file in
synchronization with the corresponding name field in the source file
(e.g., New Person or Patient file).
 
The XUNOTRIG flag controls whether this cross-reference is executed. The
XUEXISTING USER, XUNEW USER, and XUREACT USER forms all set the XUNOTRIG
flag, because the forms themselves contain the logic necessary to keep the
New Person name and Name Components entry synchronized.
SHORT DESCRIPTION Update the Name field in the source file when any of the components are edited.
TYPE MUMPS
EXECUTION RECORD
ACTIVITY IR
USE ACTION
ROOT TYPE INDEX FILE
ROOT FILE 20
SET LOGIC I '$G(XUNOTRIG) N XUNOTRIG,XUCOMP S XUNOTRIG=1,XUCOMP("FAMILY")=X(4),XUCOMP("GIVEN")=X(5),XUCOMP("MIDDLE")=X(6),XUCOMP("SUFFIX")=X(7) D UPDNAME^XLFNAME2(X(1),X(2),X(3),.XUCOMP,X(8))
CROSS-REFERENCE VALUES
  • ORDER NUMBER:   1
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   .01
    COLLATION:   forwards
  • ORDER NUMBER:   2
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   .03
  • ORDER NUMBER:   3
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   .02
  • ORDER NUMBER:   4
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   1
  • ORDER NUMBER:   5
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   2
  • ORDER NUMBER:   6
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   3
  • ORDER NUMBER:   7
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   5
  • ORDER NUMBER:   8
    TYPE OF VALUE:   FIELD
    FILE:   20
    FIELD:   7
    COLLATION:   forwards
KILL LOGIC Q