MCARGIRCLI (577)    SORT TEMPLATE (.401)

Name Value
NAME MCARGIRCLI
SORT FIELD DATA
  • FILE OR SUBFILE NO.:   699
    GET CODE:   S Y(1)=$S($D(^MCAR(699,D0,0)):^(0),1:"") S X=$S('$D(^MCAR(697.2,+$P(Y(1),U,12),0)):"",1:$P(^(0),U,1)) I D0>0 S DISX(1)=X
    QUERY CONDITION:   I DISX(1)'=""
    DESCRIPTION OF SORT:   PROCEDURE not null
    SEARCH EFFICIENCY RATING:   0.0000
    PROBABILITY RATING:   0.0000
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S Y(1)=$S($D(^MCAR(699,D0,0)):^(0),1:"") S X=$S('$D(^MCAR(697.2,+$P(Y(1),U,12),0)):"",1:$P(^(0),U,1)) I D0>0 S DISX(1)=X
    FIELD NAME:   PROCEDURE
    SORT QUALIFIERS BEFORE FIELD:   "1
    CROSS REFERENCE DATA:   ^MCAR(699,"D",^MCAR(699,^2
    POINT TO CROSS REFERENCE:   ^MCAR(697.2,"B",
  • FILE OR SUBFILE NO.:   699.73
    GET CODE:   S DISX(2)=$P($G(^MCAR(699,D0,25,D1,0)),U,2)
    QUERY CONDITION:   I DISX(2)'=""
    DESCRIPTION OF SORT:   FINAL DISPOSITION DATE not null
    DATA TYPE FOR SORTING:   DATE/TIME
    MULTIPLE FIELD DATA:
    • MULT.FILE OR SUBFILE NO.:   699
      NODE:   25
    FIELD NO.:   1
    FIELD NAME:   FINAL DISPOSITION DATE
  • FILE OR SUBFILE NO.:   699
    GET CODE:   X DPP(3,"OVF0",9.2) S X=$S('$D(^DPT(+$P(Y(101),U,1),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:   MEDICAL PATIENT 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,1),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(^MCAR(699,D0,0)):^(0),1:""),D0=$P(Y(1),U,2) S:'$D(^MCAR(690,+D0,0)) D0=-1 S Y(101)=$S($D(^MCAR(690,D0,0)):^(0),1:"")
    FIELD NAME:   MEDICAL PATIENT
    SORT QUALIFIERS BEFORE FIELD:   ".02
DATE CREATED 1994-05-23 15:47:00
FILE ENDOSCOPY/CONSULT
DATE LAST USED 1996-06-12 00:00:00