Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: GMPLI009

GMPLI009.m

Go to the documentation of this file.
  1. GMPLI009 ; ; 25-AUG-1994
  1. ;;2.0;Problem List;;Aug 25, 1994
  1. Q:'DIFQ(125.8) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
  1. Q Q
  1. ;;^DIC(125.8,0,"GL")
  1. ;;=^GMPL(125.8,
  1. ;;^DIC("B","PROBLEM LIST AUDIT",125.8)
  1. ;;=
  1. ;;^DIC(125.8,"%D",0)
  1. ;;=^^3^3^2940526^^^^
  1. ;;^DIC(125.8,"%D",1,0)
  1. ;;=This file holds an audit trail of all changes made to the Problem
  1. ;;^DIC(125.8,"%D",2,0)
  1. ;;=List entries including the old and new values, who made the change,
  1. ;;^DIC(125.8,"%D",3,0)
  1. ;;=and why. Each entry here represents a single change to one problem.
  1. ;;^DD(125.8,0)
  1. ;;=FIELD^^10^9
  1. ;;^DD(125.8,0,"DDA")
  1. ;;=N
  1. ;;^DD(125.8,0,"DT")
  1. ;;=2930412
  1. ;;^DD(125.8,0,"IX","AD",125.8,.01)
  1. ;;=
  1. ;;^DD(125.8,0,"IX","AD1",125.8,2)
  1. ;;=
  1. ;;^DD(125.8,0,"IX","B",125.8,.01)
  1. ;;=
  1. ;;^DD(125.8,0,"NM","PROBLEM LIST AUDIT")
  1. ;;=
  1. ;;^DD(125.8,.01,0)
  1. ;;=PROBLEM^RP9000011'^AUPNPROB(^0;1^Q
  1. ;;^DD(125.8,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(125.8,.01,1,1,0)
  1. ;;=125.8^B
  1. ;;^DD(125.8,.01,1,1,1)
  1. ;;=S ^GMPL(125.8,"B",$E(X,1,30),DA)=""
  1. ;;^DD(125.8,.01,1,1,2)
  1. ;;=K ^GMPL(125.8,"B",$E(X,1,30),DA)
  1. ;;^DD(125.8,.01,1,2,0)
  1. ;;=125.8^AD^MUMPS
  1. ;;^DD(125.8,.01,1,2,1)
  1. ;;=S:+$P(^GMPL(125.8,DA,0),U,3) ^GMPL(125.8,"AD",X,(9999999-$P(^(0),U,3)),DA)=""
  1. ;;^DD(125.8,.01,1,2,2)
  1. ;;=K ^GMPL(125.8,"AD",X,+(9999999-$P(^GMPL(125.8,DA,0),U,3)),DA)
  1. ;;^DD(125.8,.01,1,2,"%D",0)
  1. ;;=^^1^1^2930603^
  1. ;;^DD(125.8,.01,1,2,"%D",1,0)
  1. ;;=Used to retrieve a problem's audit trail in reverse-chronological order.
  1. ;;^DD(125.8,.01,1,2,"DT")
  1. ;;=2930603
  1. ;;^DD(125.8,.01,3)
  1. ;;=
  1. ;;^DD(125.8,.01,21,0)
  1. ;;=^^1^1^2940317^^
  1. ;;^DD(125.8,.01,21,1,0)
  1. ;;=This is the problem for which a change is being recorded.
  1. ;;^DD(125.8,.01,"DT")
  1. ;;=2930603
  1. ;;^DD(125.8,1,0)
  1. ;;=FIELD NUMBER^RNJ9,4^^0;2^K:+X'=X!(X>9999.9999)!(X<.01)!(X?.E1"."5N.N) X
  1. ;;^DD(125.8,1,3)
  1. ;;=Type a Number between .01 and 9999.9999, 4 Decimal Digits
  1. ;;^DD(125.8,1,21,0)
  1. ;;=^^1^1^2930908^
  1. ;;^DD(125.8,1,21,1,0)
  1. ;;=This is the number of the field for which a change is being recorded.
  1. ;;^DD(125.8,1,"DT")
  1. ;;=2921028
  1. ;;^DD(125.8,2,0)
  1. ;;=DATE/TIME MODIFIED^RD^^0;3^S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(125.8,2,1,0)
  1. ;;=^.1
  1. ;;^DD(125.8,2,1,1,0)
  1. ;;=125.8^AD1^MUMPS
  1. ;;^DD(125.8,2,1,1,1)
  1. ;;=S ^GMPL(125.8,"AD",$P(^GMPL(125.8,DA,0),U),(9999999-X),DA)=""
  1. ;;^DD(125.8,2,1,1,2)
  1. ;;=K ^GMPL(125.8,"AD",$P(^GMPL(125.8,DA,0),U),(9999999-X),DA)
  1. ;;^DD(125.8,2,1,1,"%D",0)
  1. ;;=^^1^1^2930603^
  1. ;;^DD(125.8,2,1,1,"%D",1,0)
  1. ;;=Used to retrieve a problem's audit trail in reverse-chronological order.
  1. ;;^DD(125.8,2,1,1,"DT")
  1. ;;=2930603
  1. ;;^DD(125.8,2,21,0)
  1. ;;=^^1^1^2930908^
  1. ;;^DD(125.8,2,21,1,0)
  1. ;;=This is the date and time that this data was changed.
  1. ;;^DD(125.8,2,"DT")
  1. ;;=2930603
  1. ;;^DD(125.8,3,0)
  1. ;;=WHO MODIFIED^P200'^VA(200,^0;4^Q
  1. ;;^DD(125.8,3,21,0)
  1. ;;=^^2^2^2930908^^^
  1. ;;^DD(125.8,3,21,1,0)
  1. ;;=This is the user who actually made the change to this data; the current
  1. ;;^DD(125.8,3,21,2,0)
  1. ;;=user's DUZ is stuffed in here.
  1. ;;^DD(125.8,3,"DT")
  1. ;;=2921028
  1. ;;^DD(125.8,4,0)
  1. ;;=OLD VALUE^F^^0;5^K:$L(X)>15!($L(X)<1) X
  1. ;;^DD(125.8,4,3)
  1. ;;=Answer must be 1-15 characters in length.
  1. ;;^DD(125.8,4,21,0)
  1. ;;=^^2^2^2930908^
  1. ;;^DD(125.8,4,21,1,0)
  1. ;;=This is the original value as stored in the Problem file global
  1. ;;^DD(125.8,4,21,2,0)
  1. ;;=(internal format).
  1. ;;^DD(125.8,4,"DT")
  1. ;;=2921028
  1. ;;^DD(125.8,5,0)
  1. ;;=NEW VALUE^F^^0;6^K:$L(X)>15!($L(X)<1) X
  1. ;;^DD(125.8,5,3)
  1. ;;=Answer must be 1-15 characters in length.
  1. ;;^DD(125.8,5,21,0)
  1. ;;=^^2^2^2930908^
  1. ;;^DD(125.8,5,21,1,0)
  1. ;;=This is the new value now stored in the Problem file global (internal
  1. ;;^DD(125.8,5,21,2,0)
  1. ;;=format).
  1. ;;^DD(125.8,5,"DT")
  1. ;;=2921028
  1. ;;^DD(125.8,6,0)
  1. ;;=REASON FOR CHANGE^F^^0;7^K:$L(X)>25!($L(X)<3) X