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

IBINI079.m

Go to the documentation of this file.
IBINI079	; ; 21-MAR-1994
	;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
	Q:'DIFQ(356.91)  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
	;;^DIC(356.91,0,"GL")
	;;=^IBT(356.91,
	;;^DIC("B","INPATIENT PROCEDURE",356.91)
	;;=
	;;^DIC(356.91,"%D",0)
	;;=^^3^3^2940214^^^^
	;;^DIC(356.91,"%D",1,0)
	;;=This file holds inpatient procedures.
	;;^DIC(356.91,"%D",2,0)
	;;= 
	;;^DIC(356.91,"%D",3,0)
	;;=Per VHA Directive 10-93-142, this file definition should not be modified.
	;;^DD(356.91,0)
	;;=FIELD^^.03^3
	;;^DD(356.91,0,"DT")
	;;=2930901
	;;^DD(356.91,0,"ID",.03)
	;;=W "   ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
	;;^DD(356.91,0,"ID","WRITE")
	;;=N Y S Y=$G(^(0)) W "   ",$P($G(^DPT(+$P($G(^DGPM(+$P(Y,U,2),0)),U,3),0)),U)
	;;^DD(356.91,0,"IX","ADGPM",356.91,.01)
	;;=
	;;^DD(356.91,0,"IX","ADGPM1",356.91,.02)
	;;=
	;;^DD(356.91,0,"IX","APP",356.91,.02)
	;;=
	;;^DD(356.91,0,"IX","APP1",356.91,.03)
	;;=
	;;^DD(356.91,0,"IX","B",356.91,.01)
	;;=
	;;^DD(356.91,0,"IX","C",356.91,.02)
	;;=
	;;^DD(356.91,0,"IX","D",356.91,.03)
	;;=
	;;^DD(356.91,0,"NM","INPATIENT PROCEDURE")
	;;=
	;;^DD(356.91,.01,0)
	;;=PROCEDURE^RP80.1'^ICD0(^0;1^Q
	;;^DD(356.91,.01,1,0)
	;;=^.1
	;;^DD(356.91,.01,1,1,0)
	;;=356.91^B
	;;^DD(356.91,.01,1,1,1)
	;;=S ^IBT(356.91,"B",$E(X,1,30),DA)=""
	;;^DD(356.91,.01,1,1,2)
	;;=K ^IBT(356.91,"B",$E(X,1,30),DA)
	;;^DD(356.91,.01,1,2,0)
	;;=356.91^ADGPM^MUMPS
	;;^DD(356.91,.01,1,2,1)
	;;=S:$P(^IBT(356.91,DA,0),U,2) ^IBT(356.91,"ADGPM",+$P(^(0),U,2),X,DA)=""
	;;^DD(356.91,.01,1,2,2)
	;;=K ^IBT(356.91,+$P(^IBT(356.91,DA,0),U,2),X,DA)
	;;^DD(356.91,.01,1,2,"%D",0)
	;;=^^1^1^2930901^
	;;^DD(356.91,.01,1,2,"%D",1,0)
	;;=Cross-reference of procedures by patient movement
	;;^DD(356.91,.01,1,2,"DT")
	;;=2930901
	;;^DD(356.91,.01,3)
	;;=
	;;^DD(356.91,.01,21,0)
	;;=^^1^1^2930713^^
	;;^DD(356.91,.01,21,1,0)
	;;=This is the procedure for this patient.
	;;^DD(356.91,.01,"DT")
	;;=2930901
	;;^DD(356.91,.02,0)
	;;=ADMISSION MOVEMENT^*P405'^DGPM(^0;2^S DIC("S")="I $P(^(0),U,2)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
	;;^DD(356.91,.02,1,0)
	;;=^.1
	;;^DD(356.91,.02,1,1,0)
	;;=356.91^C
	;;^DD(356.91,.02,1,1,1)
	;;=S ^IBT(356.91,"C",$E(X,1,30),DA)=""
	;;^DD(356.91,.02,1,1,2)
	;;=K ^IBT(356.91,"C",$E(X,1,30),DA)
	;;^DD(356.91,.02,1,1,"DT")
	;;=2930713
	;;^DD(356.91,.02,1,2,0)
	;;=356.91^APP^MUMPS
	;;^DD(356.91,.02,1,2,1)
	;;=S:$P(^IBT(356.91,DA,0),U,3) ^IBT(356.91,"APP",X,-$P(^(0),U,3),DA)=""
	;;^DD(356.91,.02,1,2,2)
	;;=K ^IBT(356.91,"APP",X,-$P(^IBT(356.91,DA,0),U,3),DA)
	;;^DD(356.91,.02,1,2,"%D",0)
	;;=^^1^1^2930713^^
	;;^DD(356.91,.02,1,2,"%D",1,0)
	;;=Cross reference of all procedures by  tracking ID and procedure date.
	;;^DD(356.91,.02,1,2,"DT")
	;;=2930713
	;;^DD(356.91,.02,1,3,0)
	;;=356.91^ADGPM1^MUMPS
	;;^DD(356.91,.02,1,3,1)
	;;=S:+^IBT(356.91,DA,0) ^IBT(356.91,"ADGPM",X,+^(0),DA)=""
	;;^DD(356.91,.02,1,3,2)
	;;=K ^IBT(356.91,"ADGPM",X,+^IBT(356.91,DA,0),DA)
	;;^DD(356.91,.02,1,3,"%D",0)
	;;=^^1^1^2930901^
	;;^DD(356.91,.02,1,3,"%D",1,0)
	;;=Cross-reference of all procedures by patient movement
	;;^DD(356.91,.02,1,3,"DT")
	;;=2930901
	;;^DD(356.91,.02,12)
	;;=Must be an admission movement
	;;^DD(356.91,.02,12.1)
	;;=S DIC("S")="I $P(^(0),U,2)=1"
	;;^DD(356.91,.02,21,0)
	;;=^^1^1^2930901^^^
	;;^DD(356.91,.02,21,1,0)
	;;=This is the pointer to the admission movement that this is associated with.
	;;^DD(356.91,.02,"DT")
	;;=2930901
	;;^DD(356.91,.03,0)
	;;=PROCEDURE DATE^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:$G(X)+.9<+$G(^DGPM(+$P(^IBT(356.91,DA,0),U,2),0)) X
	;;^DD(356.91,.03,1,0)
	;;=^.1
	;;^DD(356.91,.03,1,1,0)
	;;=356.91^D
	;;^DD(356.91,.03,1,1,1)
	;;=S ^IBT(356.91,"D",$E(X,1,30),DA)=""
	;;^DD(356.91,.03,1,1,2)
	;;=K ^IBT(356.91,"D",$E(X,1,30),DA)