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

ABMDRBR.m

Go to the documentation of this file.
  1. ABMDRBR ; IHS/ASDST/DMJ - Brief Claims Listing ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Original;TMD;
  1. ;
  1. ; IHS/SD/SDR - v2.5 p13 - NO IM
  1. ;
  1. K ABM,ABMY
  1. S ABM("RTYP")=1,ABM("RTYP","NM")="BRIEF LISTING (80 Width)"
  1. S ABM("STA")="F"
  1. S ABM("STA","NM")="Flagged as Billable"
  1. ;
  1. SEL S ABM("NODX")="" D ^ABMDRSEL Q:$D(DTOUT)!$D(DUOUT)!$D(DIROUT)
  1. S ABM("HD",0)="BRIEF LISTING of CLAIMS "_ABM("STA","NM")
  1. D ^ABMDRHD
  1. S ABMQ("RC")="COMPUTE^ABMDRBR",ABMQ("RX")="POUT^ABMDRUTL",ABMQ("NS")="ABM"
  1. S ABMQ("RP")="PRINT^ABMDRBR"_ABM("RTYP")
  1. ;S ABM("$J")=DUZ_"-"_$P($H,",",1)_"-"_$P($H,",",2)
  1. D ^ABMDRDBQ
  1. Q
  1. ;
  1. COMPUTE ;EP - Entry Point for Setting up Data
  1. S ABM("SUBR")="ABM-BR" K ^TMP("ABM-BR",$J) Q:'$D(ABM("STA")) S ABM("PG")=0
  1. ALL ;ALL STATUS
  1. I ABM("STA")="" D Q
  1. .;F ABM("STA")="E","F","U","R","C" D SLOOP ;abm*2.5*13 NO IM
  1. .F ABM("STA")="E","F","U","R","C","O" D SLOOP ;abm*2.5*13 NO IM
  1. I ABM("STA")="F" D Q
  1. .F ABM("STA")="E","F" D SLOOP
  1. SLOOP I $D(ABMY("DT")) D Q
  1. .S ABM("RD")=ABMY("DT",1)-1
  1. .F S ABM("RD")=$O(^ABMDCLM(DUZ(2),"AD",ABM("RD"))) Q:'+ABM("RD")!(ABM("RD")>ABMY("DT",2)) D
  1. ..S ABM="" F S ABM=$O(^ABMDCLM(DUZ(2),"AD",ABM("RD"),ABM)) Q:'ABM D DATA
  1. ;LOOP THROUGH STATUS
  1. S ABM="" F S ABM=$O(^ABMDCLM(DUZ(2),"AS",ABM("STA"),ABM)) Q:'ABM D DATA
  1. Q
  1. ;
  1. DATA S ABMP("HIT")=0 D CLM^ABMDRCHK Q:'ABMP("HIT")
  1. S ABM("SORT")=$S(ABMY("SORT")="C":ABM("C"),1:ABM("V"))
  1. S ABM("L")=$P(^DIC(4,ABM("L"),0),U)
  1. S ^TMP("ABM-BR",$J,ABM("L")_U_ABM("SORT")_U_$P(^DPT(ABM("P"),0),U)_U_ABM)=""
  1. S ABM("ST",ABM("L"),ABM("SORT"))=$G(ABM("ST",ABM("L"),ABM("SORT")))+1
  1. Q