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

APC7I001.m

Go to the documentation of this file.
  1. APC7I001 ; ; 29-OCT-2002
  1. ;;2.0;APC7;;OCT 29, 2002
  1. Q:'DIFQ(9000010.09) 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,999) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
  1. Q Q
  1. ;;^DIC(9000010.09,0,"GL")
  1. ;;=^AUPNVLAB(
  1. ;;^DIC("B","V LAB",9000010.09)
  1. ;;=
  1. ;;^DIC(9000010.09,"%D",0)
  1. ;;=^^7^7^2941125^^^^
  1. ;;^DIC(9000010.09,"%D",1,0)
  1. ;;=This file contains all lab tests ordered, with results being entered
  1. ;;^DIC(9000010.09,"%D",2,0)
  1. ;;=optionally for selected tests. The file does not currently interface with
  1. ;;^DIC(9000010.09,"%D",3,0)
  1. ;;=the VA Radiology system. The file contains backward pointers to the IHS
  1. ;;^DIC(9000010.09,"%D",4,0)
  1. ;;=Patient file, and visit file, and data must exist in both of these files for
  1. ;;^DIC(9000010.09,"%D",5,0)
  1. ;;=a visit for before data can be entered here. There will be one record for
  1. ;;^DIC(9000010.09,"%D",6,0)
  1. ;;=each type lab test ordered for the patient on a given visit; the .01 record
  1. ;;^DIC(9000010.09,"%D",7,0)
  1. ;;=may therefore be duplicated.
  1. ;;^DIC(9000010.09,"%D",8,0)
  1. ;;=on a given visit; the .01 record may therefore be duplicated.
  1. ;;^DD(9000010.09,0)
  1. ;;=FIELD^^2100^38
  1. ;;^DD(9000010.09,0,"DDA")
  1. ;;=N
  1. ;;^DD(9000010.09,0,"DT")
  1. ;;=3021029
  1. ;;^DD(9000010.09,0,"ID",.02)
  1. ;;=W " ",$S($D(^AUPNPAT(+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),@("$E("_DIC_"Y,0),0)")
  1. ;;^DD(9000010.09,0,"ID",.03)
  1. ;;=W " ",$S($D(^AUPNVSIT(+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),@("$E("_DIC_"Y,0),0)")
  1. ;;^DD(9000010.09,0,"ID",.06)
  1. ;;=W ""
  1. ;;^DD(9000010.09,0,"IX","AA",9000010.09,.03)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AATOO",9000010.09,.02)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AATOO2",9000010.09,.01)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AC",9000010.09,.02)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AD",9000010.09,.03)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AE",9000010.09,.03)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AETOO",9000010.09,.01)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AETOO2",9000010.09,.02)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","ALR",9000010.09,.06)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","ALR0",9000010.09,.06)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AOP",9000010.09,1202)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AOP2",9000010.09,.02)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AOP3",9000010.09,.03)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AQ",9000010.09,.04)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AQTOO",9000010.09,.01)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AR",9000010.09,.04)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","ARDT",9000010.09,1212)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AV10",9000010.09,.03)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","AV9",9000010.09,.01)
  1. ;;=
  1. ;;^DD(9000010.09,0,"IX","B",9000010.09,.01)
  1. ;;=
  1. ;;^DD(9000010.09,0,"NM","V LAB")
  1. ;;=
  1. ;;^DD(9000010.09,0,"PT",68.999999901,.04)
  1. ;;=
  1. ;;^DD(9000010.09,0,"PT",90221,.01)
  1. ;;=
  1. ;;^DD(9000010.09,0,"PT",9000010.09,1208)
  1. ;;=
  1. ;;^DD(9000010.09,0,"VRPK")
  1. ;;=APCD
  1. ;;^DD(9000010.09,.01,0)
  1. ;;=LAB TEST^RP60'^LAB(60,^0;1^Q
  1. ;;^DD(9000010.09,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(9000010.09,.01,1,1,0)
  1. ;;=9000010.09^B
  1. ;;^DD(9000010.09,.01,1,1,1)
  1. ;;=S ^AUPNVLAB("B",$E(X,1,30),DA)=""
  1. ;;^DD(9000010.09,.01,1,1,2)
  1. ;;=K ^AUPNVLAB("B",$E(X,1,30),DA)
  1. ;;^DD(9000010.09,.01,1,2,0)
  1. ;;=9000010.09^AV9^MUMPS
  1. ;;^DD(9000010.09,.01,1,2,1)
  1. ;;=S:$D(APCDLOOK) DIC("DR")=""
  1. ;;^DD(9000010.09,.01,1,2,2)
  1. ;;=Q
  1. ;;^DD(9000010.09,.01,1,2,"DT")
  1. ;;=2960709
  1. ;;^DD(9000010.09,.01,1,3,0)
  1. ;;=9000010.09^AATOO2^MUMPS
  1. ;;^DD(9000010.09,.01,1,3,1)
  1. ;;=I $P(^AUPNVLAB(DA,0),U,2)]"",$P(^(0),U,3)]"" S ^AUPNVLAB("AA",$P(^AUPNVLAB(DA,0),U,2),X,(9999999-$P(+^AUPNVSIT($P(^AUPNVLAB(DA,0),U,3),0),".",1)),DA)=""
  1. ;;^DD(9000010.09,.01,1,3,2)
  1. ;;=I $P(^AUPNVLAB(DA,0),U,2)]"",$P(^(0),U,3)]"" K ^AUPNVLAB("AA",$P(^AUPNVLAB(DA,0),U,2),X,(9999999-$P(+^AUPNVSIT($P(^AUPNVLAB(DA,0),U,3),0),".",1)),DA)
  1. ;;^DD(9000010.09,.01,1,4,0)
  1. ;;=9000010.09^AETOO^MUMPS
  1. ;;^DD(9000010.09,.01,1,4,1)
  1. ;;=I $P(^AUPNVLAB(DA,0),U,2)]"",$P(^(0),U,3)]"" S ^AUPNVLAB("AE",$P(^AUPNVLAB(DA,0),U,2),(9999999-$P(+^AUPNVSIT($P(^AUPNVLAB(DA,0),U,3),0),".",1)),X,DA)=""
  1. ;;^DD(9000010.09,.01,1,4,2)
  1. ;;=I $P(^AUPNVLAB(DA,0),U,2)]"",$P(^(0),U,3)]"" K ^AUPNVLAB("AE",$P(^AUPNVLAB(DA,0),U,2),(9999999-$P(+^AUPNVSIT($P(^AUPNVLAB(DA,0),U,3),0),".",1)),X,DA)
  1. ;;^DD(9000010.09,.01,1,5,0)
  1. ;;=9000010.09^AQTOO^MUMPS
  1. ;;^DD(9000010.09,.01,1,5,1)
  1. ;;=N V S V=X N X S X="AUPNCIXL" X ^%ZOSF("TEST") I S X=V D AQ1^AUPNCIXL
  1. ;;^DD(9000010.09,.01,1,5,2)
  1. ;;=N V S V=X N X S X="AUPNCIXL" X ^%ZOSF("TEST") I S X=V D AQKILL1^AUPNCIXL
  1. ;;^DD(9000010.09,.01,1,5,"%D",0)
  1. ;;=^^1^1^2911010^^^
  1. ;;^DD(9000010.09,.01,1,5,"%D",1,0)
  1. ;;=Q-MAN XREF
  1. ;;^DD(9000010.09,.01,1,5,"DT")
  1. ;;=2910318
  1. ;;^DD(9000010.09,.01,3)
  1. ;;=
  1. ;;^DD(9000010.09,.01,23,0)
  1. ;;=^^1^1^2960924^
  1. ;;^DD(9000010.09,.01,23,1,0)
  1. ;;=APCDALVR Variable = APCDALVR("APCDTLAB")
  1. ;;^DD(9000010.09,.01,"AUDIT")
  1. ;;=
  1. ;;^DD(9000010.09,.01,"DT")
  1. ;;=2960709
  1. ;;^DD(9000010.09,1202,0)
  1. ;;=ORDERING PROVIDER^P6'^DIC(6,^12;2^Q