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

IBINI05D.m

Go to the documentation of this file.
  1. IBINI05D ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(356) 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,.02,21,5,0)
  1. ;;=
  1. ;;^DD(356,.02,"DT")
  1. ;;=2930831
  1. ;;^DD(356,.03,0)
  1. ;;=VISIT^P9000010'^AUPNVSIT(^0;3^Q
  1. ;;^DD(356,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.03,1,1,0)
  1. ;;=356^AVSIT
  1. ;;^DD(356,.03,1,1,1)
  1. ;;=S ^IBT(356,"AVSIT",$E(X,1,30),DA)=""
  1. ;;^DD(356,.03,1,1,2)
  1. ;;=K ^IBT(356,"AVSIT",$E(X,1,30),DA)
  1. ;;^DD(356,.03,1,1,"%D",0)
  1. ;;=^^1^1^2930712^
  1. ;;^DD(356,.03,1,1,"%D",1,0)
  1. ;;=Regular cross-reference of claim by visit.
  1. ;;^DD(356,.03,1,1,"DT")
  1. ;;=2930712
  1. ;;^DD(356,.03,3)
  1. ;;=
  1. ;;^DD(356,.03,21,0)
  1. ;;=^^4^4^2930709^
  1. ;;^DD(356,.03,21,1,0)
  1. ;;=This is the visit for the patient that is being tracked in this entry.
  1. ;;^DD(356,.03,21,2,0)
  1. ;;=
  1. ;;^DD(356,.03,21,3,0)
  1. ;;=This field is a place holder for when visit tracking is implemented. It
  1. ;;^DD(356,.03,21,4,0)
  1. ;;=will point to the visit that is being tracked.
  1. ;;^DD(356,.03,"DT")
  1. ;;=2930712
  1. ;;^DD(356,.04,0)
  1. ;;=OUTPATIENT ENCOUNTER^P409.68'^SCE(^0;4^Q
  1. ;;^DD(356,.04,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.04,1,1,0)
  1. ;;=356^ASCE
  1. ;;^DD(356,.04,1,1,1)
  1. ;;=S ^IBT(356,"ASCE",$E(X,1,30),DA)=""
  1. ;;^DD(356,.04,1,1,2)
  1. ;;=K ^IBT(356,"ASCE",$E(X,1,30),DA)
  1. ;;^DD(356,.04,1,1,"%D",0)
  1. ;;=^^1^1^2930712^
  1. ;;^DD(356,.04,1,1,"%D",1,0)
  1. ;;=Regular cross-reference of claims by outpatient encounters.
  1. ;;^DD(356,.04,1,1,"DT")
  1. ;;=2930712
  1. ;;^DD(356,.04,1,2,0)
  1. ;;=356^AENC^MUMPS
  1. ;;^DD(356,.04,1,2,1)
  1. ;;=S:$P(^IBT(356,DA,0),U,2) ^IBT(356,"AENC",+$P(^(0),U,2),X,DA)=""
  1. ;;^DD(356,.04,1,2,2)
  1. ;;=K ^IBT(356,"AENC",+$P(^IBT(356,DA,0),U,2),X,DA)
  1. ;;^DD(356,.04,1,2,"%D",0)
  1. ;;=^^1^1^2930831^
  1. ;;^DD(356,.04,1,2,"%D",1,0)
  1. ;;=Cross reference of outpatient encounters by patient.
  1. ;;^DD(356,.04,1,2,"DT")
  1. ;;=2930831
  1. ;;^DD(356,.04,21,0)
  1. ;;=^^3^3^2930709^
  1. ;;^DD(356,.04,21,1,0)
  1. ;;=This is the outpatient encounter that is being tracked. If this is
  1. ;;^DD(356,.04,21,2,0)
  1. ;;=entered and the provider and/or diagnosis for the encounter are entered
  1. ;;^DD(356,.04,21,3,0)
  1. ;;=then the inforamation will be extracted from the encounter file.
  1. ;;^DD(356,.04,"DT")
  1. ;;=2930831
  1. ;;^DD(356,.05,0)
  1. ;;=ADMISSION^*P405'^DGPM(^0;5^S DIC("S")="I $P(^(0),U,2)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  1. ;;^DD(356,.05,1,0)
  1. ;;=^.1
  1. ;;^DD(356,.05,1,1,0)
  1. ;;=356^ADM^MUMPS
  1. ;;^DD(356,.05,1,1,1)
  1. ;;=S:$P(^IBT(356,DA,0),"^",2) ^IBT(356,"ADM",+$P(^(0),"^",2),X,DA)=""
  1. ;;^DD(356,.05,1,1,2)
  1. ;;=K ^IBT(356,"ADM",+$P(^IBT(356,DA,0),"^",2),X,DA)
  1. ;;^DD(356,.05,1,1,"%D",0)
  1. ;;=^^1^1^2940121^^^
  1. ;;^DD(356,.05,1,1,"%D",1,0)
  1. ;;=Cross reference of all admissions by patient.
  1. ;;^DD(356,.05,1,1,"DT")
  1. ;;=2930702
  1. ;;^DD(356,.05,1,2,0)
  1. ;;=356^AD
  1. ;;^DD(356,.05,1,2,1)
  1. ;;=S ^IBT(356,"AD",$E(X,1,30),DA)=""
  1. ;;^DD(356,.05,1,2,2)
  1. ;;=K ^IBT(356,"AD",$E(X,1,30),DA)
  1. ;;^DD(356,.05,1,2,"%D",0)
  1. ;;=^^1^1^2940121^^
  1. ;;^DD(356,.05,1,2,"%D",1,0)
  1. ;;=Regular x-ref of admission movement ifn
  1. ;;^DD(356,.05,1,2,"DT")
  1. ;;=2930804
  1. ;;^DD(356,.05,3)
  1. ;;=
  1. ;;^DD(356,.05,12)
  1. ;;=Only admissions for this patient.
  1. ;;^DD(356,.05,12.1)
  1. ;;=S DIC("S")="I $P(^(0),U,2)=1"
  1. ;;^DD(356,.05,21,0)
  1. ;;=^^4^4^2930709^
  1. ;;^DD(356,.05,21,1,0)
  1. ;;=This is the admission that is being tracked. When an entry is added for
  1. ;;^DD(356,.05,21,2,0)
  1. ;;=inpatient care for any date the software will find the current admission
  1. ;;^DD(356,.05,21,3,0)
  1. ;;=for that date and use the current admission from the patient movement
  1. ;;^DD(356,.05,21,4,0)
  1. ;;=file.
  1. ;;^DD(356,.05,"DT")
  1. ;;=2931018
  1. ;;^DD(356,.06,0)
  1. ;;=EPISODE DATE^D^^0;6^S %DT="ESTX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(356,.06,1,0)
  1. ;;=^.1^^-1
  1. ;;^DD(356,.06,1,1,0)
  1. ;;=356^D
  1. ;;^DD(356,.06,1,1,1)
  1. ;;=S ^IBT(356,"D",$E(X,1,30),DA)=""