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

RABWIBB.m

Go to the documentation of this file.
  1. RABWIBB ;HOIFO/MDM - Radiology Billing Awareness ;12/20/04 12:55am
  1. ;;5.0;Radiology/Nuclear Medicine;**57**;Mar 16, 1998
  1. ; $$SWSTAT^IBBAPI uses DBIA #4663
  1. ;
  1. Q
  1. FB(RAOIFN) ; called by ACC^RAO7OKS and FILEDX^RABWORD
  1. ; Functional Requirement 12
  1. ; Check PFSS Master Switch and quit if it is not on.
  1. I '$$SWSTAT^IBBAPI() Q
  1. ;
  1. ; Initialize relevent variables
  1. ; IBBARFN = Account Reference Number
  1. ; IBBEVENT = HL7 Event Code
  1. S IBBARFN="",IBBEVENT="A05"
  1. ; Calling routine
  1. S IBBAPLR="FB^RABWIBB"
  1. ;
  1. ; Define remaining (Required) IBB Variables and Arrays
  1. D GA^RABWIBB2(RAOIFN)
  1. ;
  1. ; Functional Requirement 5
  1. D STOR751^RABWIBB2(RAOIFN)
  1. Q
  1. PV1 ; (called by RAO7UTL) Front Door
  1. ; OR EVSEND -> RA RECEIVE -> RAO7RO -> RAO7UTL
  1. ;
  1. I '$$SWSTAT^IBBAPI() Q ; PFSS is not turned on so stop
  1. I $G(RACCOUNT)="" Q ; Needed data is missing so stop
  1. ;
  1. ; set RAPF to include PV1.50
  1. ; $$STR(n) returns n delimiters.
  1. S RAPF="PV1"_$$STR^RAO7UTL(2)_RA("PV1",2)_RAHLFS_RA("PV1",3)_$$STR^RAO7UTL(47)_RACCOUNT
  1. ;
  1. Q
  1. DC(RAOIFN) ; called by EXMCAN^RAORDC
  1. ;
  1. I '$$SWSTAT^IBBAPI() Q ; PFSS is not turned on so stop
  1. S RACCOUNT=$P(^RAO(75.1,RAOIFN,0),U,28) ; Get Account Reference
  1. S IBBARFN=RACCOUNT
  1. S IBBEVENT="A38"
  1. ; Calling routine
  1. S IBBAPLR="DC^RABWIBB"
  1. D GA^RABWIBB2(RAOIFN)
  1. ;
  1. Q
  1. GETDEPT ; called by PROC^RAPCE
  1. S RAOIMG=$P($G(^RAO(75.1,RAOIFN,0)),U,3),RACCOUNT=$P($G(^RAO(75.1,RAOIFN,0)),U,28)
  1. S RAIDPT=$P($G(^RA(79.2,RAOIMG,0)),U,6)
  1. S ^TMP("RAPXAPI",$J,"PROCEDURE",X,"DEPARTMENT")=RAIDPT ; Requirement 11
  1. Q