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

IBINI07E.m

Go to the documentation of this file.
  1. IBINI07E ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(356.94) 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(356.94,.02,1,0)
  1. ;;=^.1
  1. ;;^DD(356.94,.02,1,1,0)
  1. ;;=356.94^C
  1. ;;^DD(356.94,.02,1,1,1)
  1. ;;=S ^IBT(356.94,"C",$E(X,1,30),DA)=""
  1. ;;^DD(356.94,.02,1,1,2)
  1. ;;=K ^IBT(356.94,"C",$E(X,1,30),DA)
  1. ;;^DD(356.94,.02,1,1,"%D",0)
  1. ;;=^^2^2^2940222^^
  1. ;;^DD(356.94,.02,1,1,"%D",1,0)
  1. ;;=Regular cross reference of all inpatient provider entries by the admission
  1. ;;^DD(356.94,.02,1,1,"%D",2,0)
  1. ;;=movement.
  1. ;;^DD(356.94,.02,1,1,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.02,1,2,0)
  1. ;;=356.94^ADG^MUMPS
  1. ;;^DD(356.94,.02,1,2,1)
  1. ;;=S:$P(^IBT(356.94,DA,0),U,4)=3&($P(^(0),U,3)) ^IBT(356.94,"ADG",X,+$P(^(0),U,3),DA)=""
  1. ;;^DD(356.94,.02,1,2,2)
  1. ;;=K ^IBT(356.94,"ADG",X,+$P(^IBT(356.94,DA,0),U,3),DA)
  1. ;;^DD(356.94,.02,1,2,"%D",0)
  1. ;;=^^2^2^2940222^
  1. ;;^DD(356.94,.02,1,2,"%D",1,0)
  1. ;;=Cross reference of all admitting provider entries by admission movement,
  1. ;;^DD(356.94,.02,1,2,"%D",2,0)
  1. ;;=by provider.
  1. ;;^DD(356.94,.02,1,2,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.02,1,3,0)
  1. ;;=356.94^ADGPM^MUMPS
  1. ;;^DD(356.94,.02,1,3,1)
  1. ;;=S:$P(^IBT(356.94,DA,0),U,3) ^IBT(356.94,"ADGPM",X,+$P(^(0),U,3),DA)=""
  1. ;;^DD(356.94,.02,1,3,2)
  1. ;;=K ^IBT(356.94,"ADGPM",X,+$P(^IBT(356.94,DA,0),U,3),DA)
  1. ;;^DD(356.94,.02,1,3,"%D",0)
  1. ;;=^^2^2^2940222^
  1. ;;^DD(356.94,.02,1,3,"%D",1,0)
  1. ;;=Cross reference of all inpatient provider entries by patient movement,
  1. ;;^DD(356.94,.02,1,3,"%D",2,0)
  1. ;;=by provider.
  1. ;;^DD(356.94,.02,1,3,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.02,1,4,0)
  1. ;;=356.94^ATP^MUMPS
  1. ;;^DD(356.94,.02,1,4,1)
  1. ;;=S:$P(^IBT(356.94,DA,0),U,4) ^IBT(356.94,"ATP",X,+$P(^(0),U,4),DA)=""
  1. ;;^DD(356.94,.02,1,4,2)
  1. ;;=K ^IBT(356.94,"ATP",X,+$P(^IBT(356.94,DA,0),U,4),DA)
  1. ;;^DD(356.94,.02,1,4,"%D",0)
  1. ;;=^^2^2^2940222^
  1. ;;^DD(356.94,.02,1,4,"%D",1,0)
  1. ;;=Cross reference of all inpatient provider entries by admission movement
  1. ;;^DD(356.94,.02,1,4,"%D",2,0)
  1. ;;=by type of provider.
  1. ;;^DD(356.94,.02,1,4,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.02,12)
  1. ;;=Must be an admission movement.
  1. ;;^DD(356.94,.02,12.1)
  1. ;;=S DIC("S")="I $P(^(0),U,2)=1"
  1. ;;^DD(356.94,.02,21,0)
  1. ;;=^^1^1^2940202^
  1. ;;^DD(356.94,.02,21,1,0)
  1. ;;=This is the admission movement that the provider is responsible for.
  1. ;;^DD(356.94,.02,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.03,0)
  1. ;;=PROVIDER^*P200'^VA(200,^0;3^S DIC("S")="I $D(^VA(200,""AK.PROVIDER"",$P(^(0),U,1),+Y))" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  1. ;;^DD(356.94,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(356.94,.03,1,1,0)
  1. ;;=356.94^D
  1. ;;^DD(356.94,.03,1,1,1)
  1. ;;=S ^IBT(356.94,"D",$E(X,1,30),DA)=""
  1. ;;^DD(356.94,.03,1,1,2)
  1. ;;=K ^IBT(356.94,"D",$E(X,1,30),DA)
  1. ;;^DD(356.94,.03,1,1,"%D",0)
  1. ;;=^^2^2^2940222^
  1. ;;^DD(356.94,.03,1,1,"%D",1,0)
  1. ;;=Regular cross-reference of all inpatient provider entries by
  1. ;;^DD(356.94,.03,1,1,"%D",2,0)
  1. ;;=provider.
  1. ;;^DD(356.94,.03,1,1,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.03,1,2,0)
  1. ;;=356.94^ADG1^MUMPS
  1. ;;^DD(356.94,.03,1,2,1)
  1. ;;=S:$P(^IBT(356.94,DA,0),U,4)=3&($P(^(0),U,2)) ^IBT(356.94,"ADG",+$P(^(0),U,2),X,DA)=""
  1. ;;^DD(356.94,.03,1,2,2)
  1. ;;=K ^IBT(356.94,"ADG",+$P(^IBT(356.94,DA,0),U,2),X,DA)
  1. ;;^DD(356.94,.03,1,2,"%D",0)
  1. ;;=^^2^2^2940222^
  1. ;;^DD(356.94,.03,1,2,"%D",1,0)
  1. ;;=Cross reference of all admitting provider entries by admission movement,
  1. ;;^DD(356.94,.03,1,2,"%D",2,0)
  1. ;;=by provider.
  1. ;;^DD(356.94,.03,1,2,"DT")
  1. ;;=2940222
  1. ;;^DD(356.94,.03,1,3,0)
  1. ;;=356.94^ADGPM1^MUMPS
  1. ;;^DD(356.94,.03,1,3,1)
  1. ;;=S:$P(^IBT(356.94,DA,0),U,2) ^IBT(356.94,"ADGPM",+$P(^(0),U,2),X,DA)=""
  1. ;;^DD(356.94,.03,1,3,2)
  1. ;;=K ^IBT(356.94,"ADGPM",+$P(^IBT(356.94,DA,0),U,2),X,DA)
  1. ;;^DD(356.94,.03,1,3,"%D",0)
  1. ;;=^^2^2^2940222^
  1. ;;^DD(356.94,.03,1,3,"%D",1,0)
  1. ;;=Cross reference of all inpatient provider entries by patient movement,