GMPLI00N ; ; 25-AUG-1994
;;2.0;Problem List;;Aug 25, 1994
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
Q Q
;;^DD(9000011,.01,23,4,0)
;;="Other Unknown or Unspecified Cause, NEC" will be used here in order
;;^DD(9000011,.01,23,5,0)
;;=to be able to create a new entry. This field may later be edited.
;;^DD(9000011,.01,"DT")
;;=2940412
;;^DD(9000011,.02,0)
;;=PATIENT NAME^RP9000001'I^AUPNPAT(^0;2^Q
;;^DD(9000011,.02,1,0)
;;=^.1
;;^DD(9000011,.02,1,1,0)
;;=9000011^AC
;;^DD(9000011,.02,1,1,1)
;;=S ^AUPNPROB("AC",$E(X,1,30),DA)=""
;;^DD(9000011,.02,1,1,2)
;;=K ^AUPNPROB("AC",$E(X,1,30),DA)
;;^DD(9000011,.02,1,2,0)
;;=9000011^AATOO^MUMPS
;;^DD(9000011,.02,1,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),^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
;;^DD(9000011,.02,1,2,2)
;;=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
;;^DD(9000011,.02,1,2,"%D",0)
;;=^^3^3^2930825^
;;^DD(9000011,.02,1,2,"%D",1,0)
;;=Allows problem retrieval by patient, facility, and problem number (Nmbr);
;;^DD(9000011,.02,1,2,"%D",2,0)
;;=the number is used as a string in " 000.00" format to assure a consistent
;;^DD(9000011,.02,1,2,"%D",3,0)
;;=ordering.
;;^DD(9000011,.02,1,3,0)
;;=9000011^ACTIVE1^MUMPS
;;^DD(9000011,.02,1,3,1)
;;=S:$L($P(^AUPNPROB(DA,0),U,12)) ^AUPNPROB("ACTIVE",X,$P(^(0),U,12),DA)=""
;;^DD(9000011,.02,1,3,2)
;;=K:$L($P(^AUPNPROB(DA,0),U,12)) ^AUPNPROB("ACTIVE",X,$P(^(0),U,12),DA)
;;^DD(9000011,.02,1,3,"%D",0)
;;=^^1^1^2930706^^^
;;^DD(9000011,.02,1,3,"%D",1,0)
;;=Allows problem retrieval by patient and status, in order of entry.
;;^DD(9000011,.02,1,3,"DT")
;;=2930706
;;^DD(9000011,.02,3)
;;=Enter the name of the patient for whom this problem has been observed.
;;^DD(9000011,.02,21,0)
;;=^^1^1^2930908^^^^
;;^DD(9000011,.02,21,1,0)
;;=This is the patient for whom this problem has been observed and recorded.
;;^DD(9000011,.02,"DT")
;;=2930909
;;^DD(9000011,.03,0)
;;=DATE LAST MODIFIED^RD^^0;3^S %DT="EX" D ^%DT S X=Y K:DT<X!(2000000>X) X
;;^DD(9000011,.03,1,0)
;;=^.1^^0
;;^DD(9000011,.03,3)
;;=TYPE A DATE BETWEEN 1900 AND TODAY
;;^DD(9000011,.03,10)
;;=018/PRCOND
;;^DD(9000011,.03,12)
;;=VISIT MUST BE FOR CURRENT PATIENT
;;^DD(9000011,.03,12.1)
;;=S DIC("S")="I $P(^(0),U,5)=$P(^AUPNPROB(DA,0),U,2)"
;;^DD(9000011,.03,21,0)
;;=^^1^1^2930908^^^^
;;^DD(9000011,.03,21,1,0)
;;=This is the last date/time this problem was changed.
;;^DD(9000011,.03,"DT")
;;=2930706
;;^DD(9000011,.04,0)
;;=CLASS^S^P:PERSONAL HISTORY;F:FAMILY HISTORY;^0;4^Q
;;^DD(9000011,.04,3)
;;=If this problem is historical, indicate if it is Personal or Family history.
;;^DD(9000011,.04,21,0)
;;=^^2^2^2930726^
;;^DD(9000011,.04,21,1,0)
;;=This flag is used by the IHS Problem List to indicate if this problem
;;^DD(9000011,.04,21,2,0)
;;=is documented for historical purposes.
;;^DD(9000011,.04,23,0)
;;=^^2^2^2930726^
;;^DD(9000011,.04,23,1,0)
;;=VA sites using the DHCP Problem List application will not be prompted
;;^DD(9000011,.04,23,2,0)
;;=for this information.
;;^DD(9000011,.04,"DT")
;;=2871007
;;^DD(9000011,.05,0)
;;=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
;;^DD(9000011,.05,3)
;;=Enter a description of this patient's problem.
;;^DD(9000011,.05,12)
;;=OLD LOOKUP
;;^DD(9000011,.05,12.1)
;;=S DIC(0)=$S($D(APCDALVR):"LO",1:"EMQLO")
GMPLI00N ; ; 25-AUG-1994
+1 ;;2.0;Problem List;;Aug 25, 1994
+2 IF 'DIFQ(9000011)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DD(9000011,.01,23,4,0)
+2 ;;="Other Unknown or Unspecified Cause, NEC" will be used here in order
+3 ;;^DD(9000011,.01,23,5,0)
+4 ;;=to be able to create a new entry. This field may later be edited.
+5 ;;^DD(9000011,.01,"DT")
+6 ;;=2940412
+7 ;;^DD(9000011,.02,0)
+8 ;;=PATIENT NAME^RP9000001'I^AUPNPAT(^0;2^Q
+9 ;;^DD(9000011,.02,1,0)
+10 ;;=^.1
+11 ;;^DD(9000011,.02,1,1,0)
+12 ;;=9000011^AC
+13 ;;^DD(9000011,.02,1,1,1)
+14 ;;=S ^AUPNPROB("AC",$E(X,1,30),DA)=""
+15 ;;^DD(9000011,.02,1,1,2)
+16 ;;=K ^AUPNPROB("AC",$E(X,1,30),DA)
+17 ;;^DD(9000011,.02,1,2,0)
+18 ;;=9000011^AATOO^MUMPS
+19 ;;^DD(9000011,.02,1,2,1)
+20 ;;=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
+21 ;;^DD(9000011,.02,1,2,2)
+22 ;;=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
+23 ;;^DD(9000011,.02,1,2,"%D",0)
+24 ;;=^^3^3^2930825^
+25 ;;^DD(9000011,.02,1,2,"%D",1,0)
+26 ;;=Allows problem retrieval by patient, facility, and problem number (Nmbr);
+27 ;;^DD(9000011,.02,1,2,"%D",2,0)
+28 ;;=the number is used as a string in " 000.00" format to assure a consistent
+29 ;;^DD(9000011,.02,1,2,"%D",3,0)
+30 ;;=ordering.
+31 ;;^DD(9000011,.02,1,3,0)
+32 ;;=9000011^ACTIVE1^MUMPS
+33 ;;^DD(9000011,.02,1,3,1)
+34 ;;=S:$L($P(^AUPNPROB(DA,0),U,12)) ^AUPNPROB("ACTIVE",X,$P(^(0),U,12),DA)=""
+35 ;;^DD(9000011,.02,1,3,2)
+36 ;;=K:$L($P(^AUPNPROB(DA,0),U,12)) ^AUPNPROB("ACTIVE",X,$P(^(0),U,12),DA)
+37 ;;^DD(9000011,.02,1,3,"%D",0)
+38 ;;=^^1^1^2930706^^^
+39 ;;^DD(9000011,.02,1,3,"%D",1,0)
+40 ;;=Allows problem retrieval by patient and status, in order of entry.
+41 ;;^DD(9000011,.02,1,3,"DT")
+42 ;;=2930706
+43 ;;^DD(9000011,.02,3)
+44 ;;=Enter the name of the patient for whom this problem has been observed.
+45 ;;^DD(9000011,.02,21,0)
+46 ;;=^^1^1^2930908^^^^
+47 ;;^DD(9000011,.02,21,1,0)
+48 ;;=This is the patient for whom this problem has been observed and recorded.
+49 ;;^DD(9000011,.02,"DT")
+50 ;;=2930909
+51 ;;^DD(9000011,.03,0)
+52 ;;=DATE LAST MODIFIED^RD^^0;3^S %DT="EX" D ^%DT S X=Y K:DT<X!(2000000>X) X
+53 ;;^DD(9000011,.03,1,0)
+54 ;;=^.1^^0
+55 ;;^DD(9000011,.03,3)
+56 ;;=TYPE A DATE BETWEEN 1900 AND TODAY
+57 ;;^DD(9000011,.03,10)
+58 ;;=018/PRCOND
+59 ;;^DD(9000011,.03,12)
+60 ;;=VISIT MUST BE FOR CURRENT PATIENT
+61 ;;^DD(9000011,.03,12.1)
+62 ;;=S DIC("S")="I $P(^(0),U,5)=$P(^AUPNPROB(DA,0),U,2)"
+63 ;;^DD(9000011,.03,21,0)
+64 ;;=^^1^1^2930908^^^^
+65 ;;^DD(9000011,.03,21,1,0)
+66 ;;=This is the last date/time this problem was changed.
+67 ;;^DD(9000011,.03,"DT")
+68 ;;=2930706
+69 ;;^DD(9000011,.04,0)
+70 ;;=CLASS^S^P:PERSONAL HISTORY;F:FAMILY HISTORY;^0;4^Q
+71 ;;^DD(9000011,.04,3)
+72 ;;=If this problem is historical, indicate if it is Personal or Family history.
+73 ;;^DD(9000011,.04,21,0)
+74 ;;=^^2^2^2930726^
+75 ;;^DD(9000011,.04,21,1,0)
+76 ;;=This flag is used by the IHS Problem List to indicate if this problem
+77 ;;^DD(9000011,.04,21,2,0)
+78 ;;=is documented for historical purposes.
+79 ;;^DD(9000011,.04,23,0)
+80 ;;=^^2^2^2930726^
+81 ;;^DD(9000011,.04,23,1,0)
+82 ;;=VA sites using the DHCP Problem List application will not be prompted
+83 ;;^DD(9000011,.04,23,2,0)
+84 ;;=for this information.
+85 ;;^DD(9000011,.04,"DT")
+86 ;;=2871007
+87 ;;^DD(9000011,.05,0)
+88 ;;=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
+89 ;;^DD(9000011,.05,3)
+90 ;;=Enter a description of this patient's problem.
+91 ;;^DD(9000011,.05,12)
+92 ;;=OLD LOOKUP
+93 ;;^DD(9000011,.05,12.1)
+94 ;;=S DIC(0)=$S($D(APCDALVR):"LO",1:"EMQLO")