RCAM ADDRESS UNKNOWN (585)    SORT TEMPLATE (.401)

Name Value
NAME RCAM ADDRESS UNKNOWN
DESCRIPTION
This template will identify patients with the address unknown field marked
as "Yes".
SORT FIELD DATA
  • FILE OR SUBFILE NO.:   340
    GET CODE:   S DISX(1)=$P($G(^RCD(340,D0,1)),U,9)
    QUERY CONDITION:   I DISX(1)=1
    DESCRIPTION OF SORT:   ADDRESS UNKNOWN equals 1 (YES)
    DATA TYPE FOR SORTING:   SET OF CODES
    FIELD NO.:   1.09
    FIELD NAME:   ADDRESS UNKNOWN
    SORT QUALIFIERS BEFORE FIELD:   @
    FROM VALUE INTERNAL:   .999999
    FROM VALUE EXTERNAL:   1
    FROM VALUE PRINTABLE:   1 (YES)
    TO VALUE INTERNAL:   1
    TO VALUE EXTERNAL:   1
    TO VALUE PRINTABLE:   1 (YES)
  • FILE OR SUBFILE NO.:   340
    GET CODE:   S Y(1)=$S($D(^RCD(340,D0,0)):^(0),1:"") S X=$P(Y(1),U,1) X DPP(2,"OVF0",9.2) I D0>0 S DISX(2)=X
    QUERY CONDITION:   I DISX(2)'=""
    DESCRIPTION OF SORT:   DEBTOR not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S Y(1)=$S($D(^RCD(340,D0,0)):^(0),1:"") S X=$P(Y(1),U,1) X DPP(2,"OVF0",9.2) I D0>0 S DISX(2)=X
    OVERFLOW DATA:
    • FIRST SUBSCRIPT FOR OVERFLOW:   OVF0
      SECOND SUBSCRIPT FOR OVERFLOW:   9.2
      OVERFLOW CODE:   N C S C=$S(X="":-1,'$D(@(U_$P(X,";",2)_"0)")):-1,1:$P(^(0),U,2)),X=$S(X="":X,'$D(^(+X,0)):"",1:$P(^(0),U,1)),Y=X,C=$S($D(^DD(+C,.01,0)):$P(^(0),U,2),1:"D") D:X]"" Y^DIQ:C'["D" S X=Y
    FIELD NAME:   DEBTOR
    SORT QUALIFIERS BEFORE FIELD:   @".01
DATE CREATED 2000-08-30 09:37:00
READ ACCESS @
FILE AR DEBTOR
PRINT TEMPLATE RCAM ADDRESS UNKNOWN
WRITE ACCESS @
DATE LAST USED 2000-08-30 00:00:00