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

IBINI07B.m

Go to the documentation of this file.
  1. IBINI07B ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(356.93) 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. ;;^DIC(356.93,0,"GL")
  1. ;;=^IBT(356.93,
  1. ;;^DIC("B","INPATIENT INTERIM DRG",356.93)
  1. ;;=
  1. ;;^DIC(356.93,"%D",0)
  1. ;;=^^7^7^2940214^^^^
  1. ;;^DIC(356.93,"%D",1,0)
  1. ;;=This file holds interim DRGs computed by the Claims Tracking Module for
  1. ;;^DIC(356.93,"%D",2,0)
  1. ;;=display in Claims Tracking and on Reports. The computed ALOS is based
  1. ;;^DIC(356.93,"%D",3,0)
  1. ;;=upon 1992 HCFA average lengths of stay and not VA averages. The purpose is
  1. ;;^DIC(356.93,"%D",4,0)
  1. ;;=to help utilization review personnel determine if the the ALOS approved
  1. ;;^DIC(356.93,"%D",5,0)
  1. ;;=by an insurance company is within industry standards.
  1. ;;^DIC(356.93,"%D",6,0)
  1. ;;=
  1. ;;^DIC(356.93,"%D",7,0)
  1. ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
  1. ;;^DD(356.93,0)
  1. ;;=FIELD^^.05^5
  1. ;;^DD(356.93,0,"DDA")
  1. ;;=N
  1. ;;^DD(356.93,0,"DT")
  1. ;;=2931213
  1. ;;^DD(356.93,0,"ID",.02)
  1. ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGPM(+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(405,.01,0),U,2) D Y^DIQ:Y]"" W " Admission Date: ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
  1. ;;^DD(356.93,0,"ID",.03)
  1. ;;=W " Computed: ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
  1. ;;^DD(356.93,0,"ID","WRITE")
  1. ;;=N Y S Y=$G(^(0)) W " ",$P($G(^DPT(+$P($G(^DGPM(+$P(Y,U,2),0)),U,3),0)),U)
  1. ;;^DD(356.93,0,"IX","AC",356.93,.04)
  1. ;;=
  1. ;;^DD(356.93,0,"IX","AMVD",356.93,.02)
  1. ;;=
  1. ;;^DD(356.93,0,"IX","AMVD1",356.93,.03)
  1. ;;=
  1. ;;^DD(356.93,0,"IX","B",356.93,.01)
  1. ;;=
  1. ;;^DD(356.93,0,"NM","INPATIENT INTERIM DRG")
  1. ;;=
  1. ;;^DD(356.93,.01,0)
  1. ;;=NAME^RP80.2'^ICD(^0;1^Q
  1. ;;^DD(356.93,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(356.93,.01,1,1,0)
  1. ;;=356.93^B
  1. ;;^DD(356.93,.01,1,1,1)
  1. ;;=S ^IBT(356.93,"B",$E(X,1,30),DA)=""
  1. ;;^DD(356.93,.01,1,1,2)
  1. ;;=K ^IBT(356.93,"B",$E(X,1,30),DA)
  1. ;;^DD(356.93,.01,3)
  1. ;;=
  1. ;;^DD(356.93,.01,21,0)
  1. ;;=^^1^1^2931129^
  1. ;;^DD(356.93,.01,21,1,0)
  1. ;;=Enter the DRG that best describes this inpatient case.
  1. ;;^DD(356.93,.01,"DT")
  1. ;;=2931129
  1. ;;^DD(356.93,.02,0)
  1. ;;=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
  1. ;;^DD(356.93,.02,1,0)
  1. ;;=^.1
  1. ;;^DD(356.93,.02,1,1,0)
  1. ;;=356.93^AMVD^MUMPS
  1. ;;^DD(356.93,.02,1,1,1)
  1. ;;=S:$P(^IBT(356.93,DA,0),U,3) ^IBT(356.93,"AMVD",X,+$P(^(0),U,3),DA)=""
  1. ;;^DD(356.93,.02,1,1,2)
  1. ;;=K ^IBT(356.93,"AMVD",X,+$P(^IBT(356.93,DA,0),U,3),DA)
  1. ;;^DD(356.93,.02,1,1,"%D",0)
  1. ;;=^^1^1^2931130^
  1. ;;^DD(356.93,.02,1,1,"%D",1,0)
  1. ;;=Cross reference of drgs by admission movement and drg date.
  1. ;;^DD(356.93,.02,1,1,"DT")
  1. ;;=2931130
  1. ;;^DD(356.93,.02,12)
  1. ;;=Must be an admission movement.
  1. ;;^DD(356.93,.02,12.1)
  1. ;;=S DIC("S")="I $P(^(0),U,2)=1"
  1. ;;^DD(356.93,.02,21,0)
  1. ;;=^^2^2^2931129^
  1. ;;^DD(356.93,.02,21,1,0)
  1. ;;=This field should point to the admission movement of the inpatient
  1. ;;^DD(356.93,.02,21,2,0)
  1. ;;=episode that this interim DRG is for.
  1. ;;^DD(356.93,.02,"DT")
  1. ;;=2931130
  1. ;;^DD(356.93,.03,0)
  1. ;;=DATE^D^^0;3^S %DT="EX" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(356.93,.03,1,0)
  1. ;;=^.1
  1. ;;^DD(356.93,.03,1,1,0)
  1. ;;=356.93^AMVD1^MUMPS
  1. ;;^DD(356.93,.03,1,1,1)
  1. ;;=S:$P(^IBT(356.93,DA,0),U,2) ^IBT(356.93,"AMVD",+$P(^(0),U,2),X,DA)=""
  1. ;;^DD(356.93,.03,1,1,2)
  1. ;;=K ^IBT(356.93,"AMVD",+$P(^IBT(356.93,DA,0),U,2),X,DA)
  1. ;;^DD(356.93,.03,1,1,"%D",0)
  1. ;;=^^1^1^2931130^
  1. ;;^DD(356.93,.03,1,1,"%D",1,0)
  1. ;;=Cross reference of drgs by admission movement and drg date.
  1. ;;^DD(356.93,.03,1,1,"DT")
  1. ;;=2931130
  1. ;;^DD(356.93,.03,3)
  1. ;;=This is the date that the INTERIM DRG was computed.
  1. ;;^DD(356.93,.03,21,0)
  1. ;;=^^1^1^2931129^
  1. ;;^DD(356.93,.03,21,1,0)
  1. ;;=Enter the date that this DRG was computed.