RA ALL UNPRINTED (317)    SORT TEMPLATE (.401)

Name Value
NAME RA ALL UNPRINTED
DESCRIPTION
This template is used to sort the Unprinted Reports List for the report
distribution queue.
SORT FIELD DATA
  • FILE OR SUBFILE NO.:   74.4
    GET CODE:   S DISX(1)=$P($G(^RABTCH(74.4,D0,0)),U,4)
    QUERY CONDITION:   I DISX(1)=""
    DESCRIPTION OF SORT:   PRINT DATE/TIME is null
    SEARCH EFFICIENCY RATING:   0.0333
    PROBABILITY RATING:   0.0333
    DATA TYPE FOR SORTING:   DATE/TIME
    FIELD NO.:   4
    FIELD NAME:   PRINT DATE/TIME
    SORT QUALIFIERS BEFORE FIELD:   @
    FROM VALUE INTERNAL:   ?z
    FROM VALUE EXTERNAL:   @
    TO VALUE INTERNAL:   @
    TO VALUE EXTERNAL:   @
  • FILE OR SUBFILE NO.:   74.4
    GET CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^RABTCH(74.4,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^RARPT(+D0,0)) D0=-1 X $P(^DD(74,53,0),U,5,99) S Y(101)=X S X=Y(101) S D0=I(0,0) I D0>0 S DISX(2)=X
    QUERY CONDITION:   I DISX(2)'=""
    DESCRIPTION OF SORT:   REPORT:HOSPITAL DIVISION not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^RABTCH(74.4,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^RARPT(+D0,0)) D0=-1 X $P(^DD(74,53,0),U,5,99) S Y(101)=X S X=Y(101) S D0=I(0,0) I D0>0 S DISX(2)=X
    FIELD NAME:   REPORT:HOSPITAL DIVISION
    SORT QUALIFIERS BEFORE FIELD:   @"
  • FILE OR SUBFILE NO.:   74.4
    GET CODE:   X DPP(3,"OVF0",9.2) S X=$S('$D(^DPT(+$P(Y(101),U,2),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) I D0>0 S DISX(3)=X
    QUERY CONDITION:   I DISX(3)'=""
    DESCRIPTION OF SORT:   REPORT:PATIENT NAME not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   X DPP(3,"OVF0",9.2) S X=$S('$D(^DPT(+$P(Y(101),U,2),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) I D0>0 S DISX(3)=X
    OVERFLOW DATA:
    • FIRST SUBSCRIPT FOR OVERFLOW:   OVF0
      SECOND SUBSCRIPT FOR OVERFLOW:   9.2
      OVERFLOW CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^RABTCH(74.4,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^RARPT(+D0,0)) D0=-1 S Y(101)=$S($D(^RARPT(D0,0)):^(0),1:"")
    FIELD NAME:   REPORT:PATIENT NAME
    SORT QUALIFIERS BEFORE FIELD:   @"
DATE CREATED 1995-07-31 09:13:00
FILE REPORT DISTRIBUTION
DATE LAST USED 1997-12-17 00:00:00