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

GMPLI00N.m

Go to the documentation of this file.
  1. GMPLI00N ; ; 25-AUG-1994
  1. ;;2.0;Problem List;;Aug 25, 1994
  1. Q:'DIFQ(9000011) 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. ;;^DD(9000011,.01,23,4,0)
  1. ;;="Other Unknown or Unspecified Cause, NEC" will be used here in order
  1. ;;^DD(9000011,.01,23,5,0)
  1. ;;=to be able to create a new entry. This field may later be edited.
  1. ;;^DD(9000011,.01,"DT")
  1. ;;=2940412
  1. ;;^DD(9000011,.02,0)
  1. ;;=PATIENT NAME^RP9000001'I^AUPNPAT(^0;2^Q
  1. ;;^DD(9000011,.02,1,0)
  1. ;;=^.1
  1. ;;^DD(9000011,.02,1,1,0)
  1. ;;=9000011^AC
  1. ;;^DD(9000011,.02,1,1,1)
  1. ;;=S ^AUPNPROB("AC",$E(X,1,30),DA)=""
  1. ;;^DD(9000011,.02,1,1,2)
  1. ;;=K ^AUPNPROB("AC",$E(X,1,30),DA)
  1. ;;^DD(9000011,.02,1,2,0)
  1. ;;=9000011^AATOO^MUMPS
  1. ;;^DD(9000011,.02,1,2,1)
  1. ;;=I $P(^AUPNPROB(DA,0),U,6)]"",$P(^(0),U,7)]"" S X1=$P($P(^(0),U,7),"."),X2=$P($P(^(0),U,7),".",2),^AUPNPROB("AA",X,$P(^(0),U,6)," "_$E("000",1,4-$L(X1)-1)_X1_"."_X2_$E("00",1,3-$L(X2)-1),DA)="" K X1,X2
  1. ;;^DD(9000011,.02,1,2,2)
  1. ;;=I $P(^AUPNPROB(DA,0),U,6)]"",$P(^(0),U,7)]"" S X1=$P($P(^(0),U,7),"."),X2=$P($P(^(0),U,7),".",2) K ^AUPNPROB("AA",X,$P(^(0),U,6)," "_$E("000",1,4-$L(X1)-1)_X1_"."_X2_$E("00",1,3-$L(X2)-1),DA),X1,X2
  1. ;;^DD(9000011,.02,1,2,"%D",0)
  1. ;;=^^3^3^2930825^
  1. ;;^DD(9000011,.02,1,2,"%D",1,0)
  1. ;;=Allows problem retrieval by patient, facility, and problem number (Nmbr);
  1. ;;^DD(9000011,.02,1,2,"%D",2,0)
  1. ;;=the number is used as a string in " 000.00" format to assure a consistent
  1. ;;^DD(9000011,.02,1,2,"%D",3,0)
  1. ;;=ordering.
  1. ;;^DD(9000011,.02,1,3,0)
  1. ;;=9000011^ACTIVE1^MUMPS
  1. ;;^DD(9000011,.02,1,3,1)
  1. ;;=S:$L($P(^AUPNPROB(DA,0),U,12)) ^AUPNPROB("ACTIVE",X,$P(^(0),U,12),DA)=""
  1. ;;^DD(9000011,.02,1,3,2)
  1. ;;=K:$L($P(^AUPNPROB(DA,0),U,12)) ^AUPNPROB("ACTIVE",X,$P(^(0),U,12),DA)
  1. ;;^DD(9000011,.02,1,3,"%D",0)
  1. ;;=^^1^1^2930706^^^
  1. ;;^DD(9000011,.02,1,3,"%D",1,0)
  1. ;;=Allows problem retrieval by patient and status, in order of entry.
  1. ;;^DD(9000011,.02,1,3,"DT")
  1. ;;=2930706
  1. ;;^DD(9000011,.02,3)
  1. ;;=Enter the name of the patient for whom this problem has been observed.
  1. ;;^DD(9000011,.02,21,0)
  1. ;;=^^1^1^2930908^^^^
  1. ;;^DD(9000011,.02,21,1,0)
  1. ;;=This is the patient for whom this problem has been observed and recorded.
  1. ;;^DD(9000011,.02,"DT")
  1. ;;=2930909
  1. ;;^DD(9000011,.03,0)
  1. ;;=DATE LAST MODIFIED^RD^^0;3^S %DT="EX" D ^%DT S X=Y K:DT<X!(2000000>X) X
  1. ;;^DD(9000011,.03,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(9000011,.03,3)
  1. ;;=TYPE A DATE BETWEEN 1900 AND TODAY
  1. ;;^DD(9000011,.03,10)
  1. ;;=018/PRCOND
  1. ;;^DD(9000011,.03,12)
  1. ;;=VISIT MUST BE FOR CURRENT PATIENT
  1. ;;^DD(9000011,.03,12.1)
  1. ;;=S DIC("S")="I $P(^(0),U,5)=$P(^AUPNPROB(DA,0),U,2)"
  1. ;;^DD(9000011,.03,21,0)
  1. ;;=^^1^1^2930908^^^^
  1. ;;^DD(9000011,.03,21,1,0)
  1. ;;=This is the last date/time this problem was changed.
  1. ;;^DD(9000011,.03,"DT")
  1. ;;=2930706
  1. ;;^DD(9000011,.04,0)
  1. ;;=CLASS^S^P:PERSONAL HISTORY;F:FAMILY HISTORY;^0;4^Q
  1. ;;^DD(9000011,.04,3)
  1. ;;=If this problem is historical, indicate if it is Personal or Family history.
  1. ;;^DD(9000011,.04,21,0)
  1. ;;=^^2^2^2930726^
  1. ;;^DD(9000011,.04,21,1,0)
  1. ;;=This flag is used by the IHS Problem List to indicate if this problem
  1. ;;^DD(9000011,.04,21,2,0)
  1. ;;=is documented for historical purposes.
  1. ;;^DD(9000011,.04,23,0)
  1. ;;=^^2^2^2930726^
  1. ;;^DD(9000011,.04,23,1,0)
  1. ;;=VA sites using the DHCP Problem List application will not be prompted
  1. ;;^DD(9000011,.04,23,2,0)
  1. ;;=for this information.
  1. ;;^DD(9000011,.04,"DT")
  1. ;;=2871007
  1. ;;^DD(9000011,.05,0)
  1. ;;=PROVIDER NARRATIVE^R*P9999999.27^AUTNPOV(^0;5^S DIC(0)=$S($D(APCDALVR):"LO",1:"EMQLO") D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  1. ;;^DD(9000011,.05,3)
  1. ;;=Enter a description of this patient's problem.
  1. ;;^DD(9000011,.05,12)
  1. ;;=OLD LOOKUP
  1. ;;^DD(9000011,.05,12.1)
  1. ;;=S DIC(0)=$S($D(APCDALVR):"LO",1:"EMQLO")