SCENI PT ALPHA SORT (631)    SORT TEMPLATE (.401)

Name Value
NAME SCENI PT ALPHA SORT
DESCRIPTION
Sort incomplete encounters by division and patient
SORT FIELD DATA
  • FILE OR SUBFILE NO.:   409.75
    GET CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^SD(409.75,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^SD(409.73,+D0,0)) D0=-1 X $P(^DD(409.73,20.05,0),U,5,99) S Y(101)=X S X=Y(101) S D0=I(0,0) I D0>0 S DISX(1)=X
    QUERY CONDITION:   I DISX(1)'=""
    DESCRIPTION OF SORT:   .01:20.05 not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^SD(409.75,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^SD(409.73,+D0,0)) D0=-1 X $P(^DD(409.73,20.05,0),U,5,99) S Y(101)=X S X=Y(101) S D0=I(0,0) I D0>0 S DISX(1)=X
    FIELD NAME:   .01:20.05
    SORT QUALIFIERS BEFORE FIELD:   #"
    SORT QUALIFIERS AFTER FIELD:   ;"Division: "
  • FILE OR SUBFILE NO.:   409.75
    GET CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^SD(409.75,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^SD(409.73,+D0,0)) D0=-1 X $P(^DD(409.73,20.01,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:   .01:20.01 not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^SD(409.75,D0,0)):^(0),1:""),D0=$P(Y(1),U,1) S:'$D(^SD(409.73,+D0,0)) D0=-1 X $P(^DD(409.73,20.01,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:   .01:20.01
    SORT QUALIFIERS BEFORE FIELD:   "
    SORT QUALIFIERS AFTER FIELD:   ;S2;C5;""
DATE CREATED 1998-10-09 20:57:00
READ ACCESS @
FILE TRANSMITTED OUTPATIENT ENCOUNTER ERROR
WRITE ACCESS @
DATE LAST USED 1998-11-19 00:00:00