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

ABMER99.m

Go to the documentation of this file.
  1. ABMER99 ; IHS/ASDST/DMJ - UB92 EMC RECORD 99 (Processor File Control Data) ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Original;DMJ;
  1. ;
  1. ; ABM*2.4*9 IHS/FCS/DRS 09/21/01 ; Part 12c 09/17/01 IHS/FCS/DRS
  1. ; Use same Receiver ID as what is sent in Record Type 01 for Envoy
  1. START ;START HERE
  1. K ABMREC(99)
  1. S ABME("RTYPE")=99
  1. D SET^ABMERUTL,LOOP
  1. K ABM,ABME,ABMRT
  1. Q
  1. LOOP ;LOOP HERE
  1. F I=10:10:110 D
  1. .D @I
  1. .I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),99,I)) D @(^(I))
  1. .I '$G(ABMP("NOFMT")) S ABMREC(99)=$G(ABMREC(99))_ABMR(99,I)
  1. Q
  1. 10 ;Record type
  1. S ABMR(99,10)=99
  1. Q
  1. 20 ;Submitter EIN (SOURCE: FILE=, FIELD=)
  1. S ABMR(99,20)=$$FMT^ABMERUTL($G(ABMRT(99,20)),"10NR")
  1. Q
  1. 30 ;Receiver Identification
  1. I $$ENVOY^ABMEF16 S ABMR(99,30)=$$ENVY^ABMERUTL(ABMP("INS"),ABMP("VTYP"))
  1. E S ABMR(99,30)=$P($G(^AUTNINS(ABMP("INS"),0)),"^",8)
  1. S ABMR(99,30)=$$FMT^ABMERUTL(ABMR(99,30),"5NR")
  1. Q
  1. 40 ;Receiver Sub-Identification
  1. S ABMR(99,40)=""
  1. S ABMR(99,40)=$$FMT^ABMERUTL(ABMR(99,40),4)
  1. Q
  1. 50 ;Number of Batches Billed This Tape (Transmission File)
  1. S ABMR(99,50)=ABMEF("BATCH#")
  1. S ABMR(99,50)=$$FMT^ABMERUTL(ABMR(99,50),"4NR")
  1. Q
  1. 60 ;Accommodations Total Charges For the File
  1. S ABMR(99,60)=$$FMT^ABMERUTL(+$G(ABMRT(99,60)),"13NRJ2")
  1. Q
  1. 70 ;Accommodations Non-Covered Charges For The File
  1. S ABMR(99,70)=$$FMT^ABMERUTL(+$G(ABMRT(99,70)),"13NRJ2")
  1. Q
  1. 80 ;Ancillary Total Charges for the File
  1. S ABMR(99,80)=$$FMT^ABMERUTL(+$G(ABMRT(99,80)),"13NRJ2")
  1. Q
  1. 90 ;Ancillary Non-Covered Charges for the File
  1. S ABMR(99,90)=$$FMT^ABMERUTL(+$G(ABMRT(99,90)),"13NRJ2")
  1. Q
  1. 100 ;Filler (National Use)
  1. S ABMR(99,100)=""
  1. S ABMR(99,100)=$$FMT^ABMERUTL(ABMR(99,100),58)
  1. Q
  1. 110 ;Filler (Local Use)
  1. S ABMR(99,110)=""
  1. S ABMR(99,110)=$$FMT^ABMERUTL(ABMR(99,110),57)
  1. Q