DGPM INP HISTORICAL DIVISION (115)    SORT TEMPLATE (.401)

Name Value
NAME DGPM INP HISTORICAL DIVISION
SORT FIELD DATA
  • FROM VALUE INTERNAL:   2910204.99999
    FROM VALUE EXTERNAL:   T-100
    TO VALUE INTERNAL:   2910516.9999
    TO VALUE EXTERNAL:   T
    CROSS REFERENCE DATA:   ^DGPM("B",^DGPM(^2
  • COMPUTED FIELD CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^DGPM(D0,0)):^(0),1:""),D0=$P(Y(1),U,3) S:'$D(^DPT(+D0,0)) D0=-1 X $P(^DD(2,999,0),U,5,99) S Y(101)=X S X=Y(101) S D0=I(0,0) I D0>0 S X(2)=X
    FROM VALUE INTERNAL:   @z
    FROM VALUE EXTERNAL:   A
    TO VALUE INTERNAL:   Z
    TO VALUE EXTERNAL:   Z
  • FROM VALUE INTERNAL:   @z
    FROM VALUE EXTERNAL:   A
    TO VALUE INTERNAL:   Z
    TO VALUE EXTERNAL:   Z
  • COMPUTED FIELD CODE:   S I(0,0)=$S($D(D0):D0,1:""),Y(1)=$S($D(^DGPM(D0,0)):^(0),1:""),D0=$P(Y(1),U,3) S:'$D(^DPT(+D0,0)) D0=-1 S Y(101)=$S($D(^DPT(D0,0)):^(0),1:"") S X=$P(Y(101),U,1) S D0=I(0,0) I D0>0 S X(4)=X
DATE CREATED 1991-05-16 15:33:00
FILE PATIENT MOVEMENT