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

ABMERGR4.m

Go to the documentation of this file.
  1. ABMERGR4 ; IHS/SD/SDR - GET ANCILLARY SVCS REVENUE CODE INFO ;
  1. ;;2.6;IHS Third Party Billing;**22**;NOV 12, 2009;Build 418
  1. ;IHS/SD/SDR 2.6*22 HEAT335246 New routine. This will get line items like an itemized claim, but use the flat rate for the charge on the first line and zero the other lines out.
  1. ;
  1. START ;EP
  1. K I,J,L
  1. S M=0
  1. S I=0
  1. F S I=$O(ABMRV(I)) Q:'I D
  1. .S J=""
  1. .F S J=$O(ABMRV(I,J)) Q:($G(J)="") D
  1. ..I J=0 K ABMRV(I,J) ;remove flat rate line and only print detail lines
  1. ..S L=0
  1. ..F S L=$O(ABMRV(I,J,L)) Q:'L D
  1. ...S M=+M+1
  1. ...I M=1 D ;first line gets flat rate amount, flat rate rev code and 1 unit
  1. ....S $P(ABMRV(I,J,L),U,6)=+ABMP("FLAT")
  1. ....S $P(ABMRV(I,J,L),U)=$P(ABMP("FLAT"),U,2)
  1. ....S $P(ABMRV(I,J,L),U,5)=1
  1. ...I M'=1 S $P(ABMRV(I,J,L),U,6)=0,$P(ABMRV(I,J,L),U,5)=0 ;zeros for all other lines
  1. Q