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

IBINI077.m

Go to the documentation of this file.
  1. IBINI077 ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(356.9) 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.9,.02,1,3,"%D",0)
  1. ;;=^^2^2^2930720^
  1. ;;^DD(356.9,.02,1,3,"%D",1,0)
  1. ;;=Cross reference of primary diagnosis for a tracking entry so only one
  1. ;;^DD(356.9,.02,1,3,"%D",2,0)
  1. ;;=diagnosis can be primary
  1. ;;^DD(356.9,.02,1,3,"DT")
  1. ;;=2930720
  1. ;;^DD(356.9,.02,1,4,0)
  1. ;;=356.9^ADG1^MUMPS
  1. ;;^DD(356.9,.02,1,4,1)
  1. ;;=S:$P(^IBT(356.9,DA,0),U,4)=3&(+^(0)) ^IBT(356.9,"ADG",X,+^(0),DA)=""
  1. ;;^DD(356.9,.02,1,4,2)
  1. ;;=K ^IBT(356.9,"ADG",X,+^IBT(356.9,DA,0),DA)
  1. ;;^DD(356.9,.02,1,4,"%D",0)
  1. ;;=^^1^1^2930901^
  1. ;;^DD(356.9,.02,1,4,"%D",1,0)
  1. ;;=Cross-reference of admitting diagnosis by admission movement.
  1. ;;^DD(356.9,.02,1,4,"DT")
  1. ;;=2930901
  1. ;;^DD(356.9,.02,1,5,0)
  1. ;;=356.9^ADGPM1^MUMPS
  1. ;;^DD(356.9,.02,1,5,1)
  1. ;;=S:+^IBT(356.9,DA,0) ^IBT(356.9,"ADGPM",X,+^(0),DA)=""
  1. ;;^DD(356.9,.02,1,5,2)
  1. ;;=K ^IBT(356.9,"ADGPM",X,+^IBT(356,DA,0),DA)
  1. ;;^DD(356.9,.02,1,5,"%D",0)
  1. ;;=^^1^1^2940213^^
  1. ;;^DD(356.9,.02,1,5,"%D",1,0)
  1. ;;=Cross-reference of all diagnoses by admission movement.
  1. ;;^DD(356.9,.02,1,5,"DT")
  1. ;;=2930901
  1. ;;^DD(356.9,.02,12)
  1. ;;=Must be an admission movement
  1. ;;^DD(356.9,.02,12.1)
  1. ;;=S DIC("S")="I $P(^(0),U,2)=1"
  1. ;;^DD(356.9,.02,21,0)
  1. ;;=^^3^3^2940213^^^
  1. ;;^DD(356.9,.02,21,1,0)
  1. ;;=This field should point to the admission movement of the inpatient episode
  1. ;;^DD(356.9,.02,21,2,0)
  1. ;;=that this diagnosis is for. For ASIH movements it should point to
  1. ;;^DD(356.9,.02,21,3,0)
  1. ;;=the admission in the acute setting.
  1. ;;^DD(356.9,.02,"DT")
  1. ;;=2930901
  1. ;;^DD(356.9,.03,0)
  1. ;;=ONSET DATE THIS VISIT^RDX^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X K:$G(X)+.9<+$G(^DGPM(+$P(^IBT(356.9,DA,0),U,2),0)) X
  1. ;;^DD(356.9,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(356.9,.03,1,1,0)
  1. ;;=356.9^D
  1. ;;^DD(356.9,.03,1,1,1)
  1. ;;=S ^IBT(356.9,"D",$E(X,1,30),DA)=""
  1. ;;^DD(356.9,.03,1,1,2)
  1. ;;=K ^IBT(356.9,"D",$E(X,1,30),DA)
  1. ;;^DD(356.9,.03,1,1,"DT")
  1. ;;=2930713
  1. ;;^DD(356.9,.03,1,2,0)
  1. ;;=356.9^APD1^MUMPS
  1. ;;^DD(356.9,.03,1,2,1)
  1. ;;=S:$P(^IBT(356.9,DA,0),U,2) ^IBT(356.9,"APD",+$P(^(0),U,2),-X,DA)=""
  1. ;;^DD(356.9,.03,1,2,2)
  1. ;;=K ^IBT(356,"APD",+$P(^IBT(356.9,DA,0),U,2),-X,DA)
  1. ;;^DD(356.9,.03,1,2,"%D",0)
  1. ;;=^^1^1^2940213^^^^
  1. ;;^DD(356.9,.03,1,2,"%D",1,0)
  1. ;;=cross reference of all diagnoses by tracking id and inverse date.
  1. ;;^DD(356.9,.03,1,2,"DT")
  1. ;;=2930901
  1. ;;^DD(356.9,.03,3)
  1. ;;=Dates must be during the admission.
  1. ;;^DD(356.9,.03,21,0)
  1. ;;=^^4^4^2930825^^^^
  1. ;;^DD(356.9,.03,21,1,0)
  1. ;;=This is the date of the onset of this diagnosis for this episode of care.
  1. ;;^DD(356.9,.03,21,2,0)
  1. ;;=If the diagnosis is for an admission then the date of onset should be
  1. ;;^DD(356.9,.03,21,3,0)
  1. ;;=within the dates of admission and discharge. If the diagnosis is for an
  1. ;;^DD(356.9,.03,21,4,0)
  1. ;;=outpatient visit then the date of onset should be the visit date.
  1. ;;^DD(356.9,.03,"DT")
  1. ;;=2930902
  1. ;;^DD(356.9,.04,0)
  1. ;;=TYPE^*S^1:PRIMARY;2:SECONDARY;3:ADMITTING;^0;4^Q
  1. ;;^DD(356.9,.04,1,0)
  1. ;;=^.1
  1. ;;^DD(356.9,.04,1,1,0)
  1. ;;=356.9^ATP^MUMPS
  1. ;;^DD(356.9,.04,1,1,1)
  1. ;;=S:$P(^IBT(356.9,DA,0),U,2) ^IBT(356.9,"ATP",$P(^(0),U,2),X,DA)=""
  1. ;;^DD(356.9,.04,1,1,2)
  1. ;;=K ^IBT(356.9,"ATP",+$P(^IBT(356.9,DA,0),U,2),X,DA)
  1. ;;^DD(356.9,.04,1,1,"%D",0)
  1. ;;=^^2^2^2930720^
  1. ;;^DD(356.9,.04,1,1,"%D",1,0)
  1. ;;=Cross reference of primary diagnosis for a tracking entry so only one
  1. ;;^DD(356.9,.04,1,1,"%D",2,0)
  1. ;;=diagnosis can be primary at a time.
  1. ;;^DD(356.9,.04,1,1,"DT")
  1. ;;=2930720
  1. ;;^DD(356.9,.04,1,2,0)
  1. ;;=356.9^ADG2^MUMPS
  1. ;;^DD(356.9,.04,1,2,1)
  1. ;;=S:X=3&($P(^IBT(356.9,DA,0),U,2))&(+^(0)) ^IBT(356.9,"ADG",+$P(^(0),U,2),+^(0),DA)=""
  1. ;;^DD(356.9,.04,1,2,2)
  1. ;;=K ^IBT(356.9,"ADG",+$P(^IBT(356.9,DA,0),U,2),+^(0),DA)