Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: IBTRE6

Package: Integrated Billing

Routine: IBTRE6


Information

IBTRE6 ;ALB/AAS - CLAIMS TRACKING OUTPUT CLIN DATA ;2-SEP-1993

Source Information

Source file <IBTRE6.m>

Call Graph

Call Graph

Call Graph Total: 6

Package Total Call Graph
Integrated Billing 3 ($$ICD0,$$ICD9,$$TRNDATE)^IBACSV  $$CDT^IBTODD1  $$TRTP^IBTRE1  
Kernel 1 $$FMADD^XLFDT  
Registration 1 INP^VADPT  
Scheduling 1 (GETDX,GETPRV)^SDOE  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 6

Package Total Caller Graph
Integrated Billing 6 IBTOAT1  IBTOBI2  IBTOBI4  IBTRCD  IBTRE  IBTRED0  

Entry Points

Name Comments DBIA/ICR reference
ADMDIAG(IBTRN) ; -- output admitting diagnosis (inpatient)
ADMDQ
PDIAG(IBTRN) ; -- return primary diagnosis (inpatient)
PDIAGQ
SDIAG ; -- return secondary diagnosis (inpatient
ODIAG ; -- return outpatient diagnosis
DIAG(IBDX,IBTXT,IBDT) ; -- Expand diagnosis from pointer
; -- input IBDX = pointer to diag
; IBTXT = if want text added (zero = number only)
APROV(IBTRN) ; -- return provider (inpatient)
APROVQ
ATTEND ; -- return attendings (inpatient)
PROV ; -- return providers (inpatient)
OPROV ; -- returns outpatient providers
PROC(IBPR,IBTXT) ; -- Expand procedure from pointer
; input IBPR=proc^^date (format of ^IBT(356.91,IEN,0))
; IBTXT = if want text added (zero = number only)
OPROC ; -- outpatient procedures
IPROC ; -- inpatient procedures
LISTP(IBTRN,IBXY) ; -- return last y procedures for a tracking entry
; -- input ibtrn = tracking file pointer
; -- output array of procedure by date - ibxy(date)=procedure node
LISTPQ
LSTPDG(X,IBDT,Y) ; -- return current diagnosis for a tracking entry
; -- input X = tracking file pointer
; ibdt = date for current diagnosis (null = last)
; y = 1= primary (default)
; 2= secondary
LSTPDQ
DTCHK(DA,X) ; -- input transform for 356.94;.01. date not before admission or after discharge
DTCHKQ
SETSDX(IBOE,IBSDX) ; get the list of Outpatient Encounter Diagnosis
; Output: IBSDX = count Dx's found, IBSDX(count) = V POV IEN ^ Dx IEN
LSTSDX(IBSDX) ; Print list of Outpatient Encounter Diagnosis
; Input: IBSDX = count Dx's found, IBSDX(count) = V POV pointer ^ Dx IEN
SETSDV(IBOE,IBSDV) ; get list of Outpatient Encounter Providers
; Output: IBSDV = count of Providers found, IBSDV(count) = V PROVIDER IEN ^ DX IEN
LSTSDV(IBSDV) ; Print list of Outpatient Encounter Providers
; Input: IBSDV = count of Providers found, IBSDV(count) = V PROVIDER IEN ^ PROVIDER IEN

External References

Name Field # of Occurrence
$$ICD0^IBACSV PROC+6
$$ICD9^IBACSV DIAG+5, LSTSDX+3
$$TRNDATE^IBACSV PDIAG+5
$$CDT^IBTODD1 DTCHK+6
$$TRTP^IBTRE1 ADMDIAG+5
GETDX^SDOE SETSDX+4
GETPRV^SDOE SETSDV+4
INP^VADPT ADMDIAG+10, APROV+10
$$FMADD^XLFDT DTCHK+9

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: LSTSDX+2
Function Call: WRITE
  • Prompt: !,?2,IBI,?5,$P(IBDX,U,1),?15,$E($P(IBDX,U,3),1,55)," (ICD-",$S($P(IBDX,U,19)=1:9,1:10),")"
  • Line Location: LSTSDX+3
Function Call: WRITE
  • Prompt: !,?2,IBI,?5,$P($G(^VA(200,+$P(IBSDV(IBI),U,2),0)),U)
  • Line Location: LSTSDV+2

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^IBT(356 - [#356] ADMDIAG+6, ADMDIAG+9, PDIAG+4, APROV+4, APROV+5, APROV+9, LISTP+7, DTCHK+4
^IBT(356.9 - [#356.9] ADMDIAG+6, PDIAG+4, LSTPDG+10, LSTPDG+11
^IBT(356.91 - [#356.91] LISTP+9, LISTP+10
^IBT(356.94 - [#356.94] APROV+4, APROV+5, DTCHK+4
^VA(200 - [#200] APROVQ, LSTSDV+2

Label References

Name Line Occurrences
$$DIAG PDIAG+5
ADMDQ ADMDIAG+4, ADMDIAG+5, ADMDIAG+7
APROVQ APROV+3, APROV+4, APROV+5
DTCHKQ DTCHK+3, DTCHK+5, DTCHK+7, DTCHK+8, DTCHK+9
LISTPQ LISTP+6
LSTPDQ LSTPDG+7
PDIAGQ PDIAG+3

Naked Globals

Name Field # of Occurrence
^(0 LSTPDG+11

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
DA DTCHK~, DTCHK+3, DTCHK+4
DT LSTPDG+8, DTCHK+9
IBARR SETSDX+2~, SETSDV+2~
IBARR( SETSDX+5, SETSDV+5
IBCDT DTCHK+1~, DTCHK+6*, DTCHK+7, DTCHK+8
IBCNT LISTP+4~
IBDA LISTP+4~, LISTP+9*, LISTP+10, LISTP+12*, LISTP+14, LSTPDG+10*, LSTPDG+11
IBDGPM LISTP+4~, LISTP+7*, LISTP+8, LISTP+9
IBDT DIAG~, DIAG+5, LISTP+4~, LISTP+5*, LISTP+9*, LISTP+10, LISTP+12*, LISTP+14, LSTPDG~, LSTPDG+8*
, LSTPDG+10*
IBDX ADMDIAG+2~, ADMDIAG+6*, PDIAG+1~, PDIAG+4*, PDIAG+5, DIAG~, DIAG+4, DIAG+5, LSTSDX+2~, LSTSDX+3*
>> IBETYP ADMDIAG+5*
IBI SETSDX+2~, SETSDX+5*, LSTSDX+2~, LSTSDX+3*, SETSDV+2~, SETSDV+5*, LSTSDV+2~*
IBOE SETSDX~, SETSDX+3, SETSDX+4, SETSDV~, SETSDV+3, SETSDV+4
IBOK DTCHK+1~, DTCHK+2*, DTCHK+7*, DTCHK+8*, DTCHK+9*, DTCHKQ
IBPR PROC~, PROC+5, PROC+6
IBRES ADMDIAG+2~, ADMDIAG+3*, ADMDIAG+7*, ADMDIAG+11*, ADMDQ, PDIAG+1~, PDIAG+2*, PDIAG+5*, PDIAGQ, DIAG+3~
, DIAG+6*, DIAG+7*, DIAG+8, PROC+3~, PROC+7*, PROC+8*, PROC+9
IBSDV SETSDV~, SETSDV+2!*, SETSDV+5*, LSTSDV~
IBSDV( SETSDV+5*, LSTSDV+2
IBSDX SETSDX~, SETSDX+2!*, SETSDX+5*, LSTSDX~
IBSDX( SETSDX+5*, LSTSDX+3
IBTRN ADMDIAG~, ADMDIAG+4, ADMDIAG+5, ADMDIAG+6, ADMDIAG+9, PDIAG~, PDIAG+3, PDIAG+4, PDIAG+5, APROV~
, APROV+3, APROV+4, APROV+5, APROV+9, LISTP~, LISTP+6, LISTP+7, DTCHK+1~, DTCHK+4*, DTCHK+5
, DTCHK+6
IBTXT DIAG~, DIAG+7, PROC~, PROC+8
IBX LISTP+4~, LISTP+5*, LSTPDG+6~*
IBX( LISTP+10*, LISTP+12, LISTP+14
IBXY LISTP~, LISTP+5*, LISTP+13*, LISTP+14
IBXY( LISTP+14*
IBY LSTPDG+6~*, LSTPDG+10, LSTPDG+11*, LSTPDQ
IBZ DIAG+3~, DIAG+5*, DIAG+6, DIAG+7, PROC+3~, PROC+6*, PROC+7, PROC+8
U ADMDIAG+9, DIAG+6, DIAG+7, APROV+9, PROC+6, PROC+7, PROC+8, LSTPDG+11, SETSDX+5, LSTSDX+3
, SETSDV+5, LSTSDV+2
VA200 ADMDIAG+8~, ADMDIAG+10*, APROV+10*
VAIN ADMDIAG+8~, APROV+8~
VAIN(11 APROV+6, APROV+12
VAIN(2 APROV+6, APROV+7, APROV+11
VAIN(9 ADMDIAG+7, ADMDIAG+11
VAINDT ADMDIAG+8~, ADMDIAG+9*, APROV+8~, APROV+9*
X ADMDIAG+2~, APROV+2~*, APROV+4*, APROV+5*, APROV+6*, APROV+11*, APROV+12*, APROVQ, LSTPDG~, LSTPDG+7
, LSTPDG+10, DTCHK~, DTCHK+3, DTCHK+7, DTCHK+8, DTCHK+9
Y LSTPDG~, LSTPDG+9*, LSTPDG+11
>> Z PROC+4*
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All