RMPR OPEN VISITS (540)    SORT TEMPLATE (.401)

Name Value
NAME RMPR OPEN VISITS
DESCRIPTION
Sorts file 665.1 by date visit closed and date visit opened.
SORT FIELD DATA
  • FILE OR SUBFILE NO.:   665.1
    GET CODE:   S Y(1)=$S($D(^RMPR(665.1,D0,0)):^(0),1:"") S X=$P(Y(1),U,5)="" I D0>0 S DISX(1)=X
    QUERY CONDITION:   I DISX(1)
    DESCRIPTION OF SORT:   DATE VISIT CLOSED=""""
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S Y(1)=$S($D(^RMPR(665.1,D0,0)):^(0),1:"") S X=$P(Y(1),U,5)="" I D0>0 S DISX(1)=X
    FIELD NAME:   DATE VISIT CLOSED=""
    SORT QUALIFIERS BEFORE FIELD:   @"@B
    SORT QUALIFIERS AFTER FIELD:   ;L1
  • FILE OR SUBFILE NO.:   665.1
    GET CODE:   S DISX(2)=$P($G(^RMPR(665.1,D0,0)),U,1)
    QUERY CONDITION:   I (DISX(2)]]2951112.99999)&(DISX(2)']]2951113.2359)
    DESCRIPTION OF SORT:   DATE VISIT OPENED from 11/13/95 to 11/13/95@23:59
    SEARCH EFFICIENCY RATING:   2.0000
    PROBABILITY RATING:   0.6667
    DATA TYPE FOR SORTING:   DATE/TIME
    FIELD NO.:   .01
    FIELD NAME:   DATE VISIT OPENED
    SORT QUALIFIERS BEFORE FIELD:   @
    FROM VALUE INTERNAL:   2951112.99999
    FROM VALUE EXTERNAL:   T
    FROM VALUE PRINTABLE:   11/13/95
    TO VALUE INTERNAL:   2951113.2359
    TO VALUE EXTERNAL:   T@23:59
    TO VALUE PRINTABLE:   11/13/95@23:59
    CROSS REFERENCE DATA:   ^RMPR(665.1,"B",^RMPR(665.1,^2
  • FILE OR SUBFILE NO.:   665.1
    GET CODE:   X DPP(3,"OVF0",9.2) X DPP(3,"OVF1",9.2) I $G(X(3))]"" S DISX(3)=X(3)
    QUERY CONDITION:   I DISX(3)'=""
    DESCRIPTION OF SORT:   PATIENT NAME/INSTITUTION not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   X DPP(3,"OVF0",9.2) X DPP(3,"OVF1",9.2) I $G(X(3))]"" S DISX(3)=X(3)
    OVERFLOW DATA:
    • FIRST SUBSCRIPT FOR OVERFLOW:   OVF0
      SECOND SUBSCRIPT FOR OVERFLOW:   9.2
      OVERFLOW CODE:   S Y(1)=$S($D(^RMPR(665.1,D0,0)):^(0),1:"")
    • FIRST SUBSCRIPT FOR OVERFLOW:   OVF1
      SECOND SUBSCRIPT FOR OVERFLOW:   9.2
      OVERFLOW CODE:   S X=$P(Y(1),U,2),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,C="," I D0>0 S X(3)=X
    FIELD NAME:   PATIENT NAME/INSTITUTION
    SORT QUALIFIERS BEFORE FIELD:   @"1
DATE CREATED 1993-09-14 15:28:00
FILE PROSTHETIC HOME/LIAISON VISITS
DATE LAST USED 1995-11-13 00:00:00