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

ABMRSVIN.m

Go to the documentation of this file.
  1. ABMRSVIN ; IHS/SD/SDR - Display what insurers have split setup ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;**22**;NOV 12, 2009;Build 418
  1. ;
  1. ;IHS/SD/SDR 2.6*22 HEAT335246 New routine; displays what insurers have split setup
  1. ;
  1. START ;EP
  1. W !!?3,"This option shows any/all split claim setup that has been done"
  1. W !?3,"for all insurers."
  1. D PAZ^ABMDRUTL
  1. Q:$D(DTOUT)!$D(DUOUT)!$D(DIROUT)!$D(DIRUT)
  1. S ABMY("INS")=0
  1. D HDR
  1. F S ABMY("INS")=$O(^ABMNINS(DUZ(2),ABMY("INS"))) Q:'ABMY("INS") D
  1. .Q:+$O(^ABMNINS(DUZ(2),ABMY("INS"),6,0))=0 ;quit because no entries exist
  1. .W !,$E($P($G(^AUTNINS(ABMY("INS"),0)),U),1,17)
  1. .D PRINT
  1. D PAZ^ABMDRUTL
  1. Q
  1. PRINT ;EP
  1. S ABMIFLG=1
  1. S ABMI=0
  1. F S ABMI=$O(^ABMNINS(DUZ(2),ABMY("INS"),6,ABMI)) Q:'ABMI D
  1. .S ABMREC=$G(^ABMNINS(DUZ(2),ABMY("INS"),6,ABMI,0))
  1. .S ABMPG=$P(ABMREC,U) ;page to split
  1. .S ABMSDT=$P(ABMREC,U,2) ;start date
  1. .S ABMSPLHW=$P(ABMREC,U,3) ;split claim how
  1. .S ABMEDT=$P(ABMREC,U,4) ;end date
  1. .S ABMCRDT=$P(ABMREC,U,5) ;entry created on
  1. .S ABMCRU=$P(ABMREC,U,6) ;entry created by
  1. .S ABMENDDT=$P(ABMREC,U,7) ;end date was entered on
  1. .S ABMENDDU=$P(ABMREC,U,8) ;entry created by
  1. .W ?19,ABMPG ;page to split
  1. .W ?23,$$SDTO^ABMDUTL(ABMSDT) ;start date
  1. .W ?32,$S(ABMSPLHW=1:"1 Clm/CHRG",ABMSPLHW=2:"1 Clm/PAGE",1:"Don't splt")
  1. .W:ABMEDT ?44,$$SDTO^ABMDUTL(ABMEDT) ;end date
  1. .;
  1. .W ?54,$$SDTO^ABMDUTL(ABMCRDT) ;created date
  1. .W ?64,$P($G(^VA(200,ABMCRU,0)),U,2) ;created by
  1. .W:ABMENDDT ?68,$$SDTO^ABMDUTL(ABMENDDT) ;ended date entered
  1. .W:ABMENDDU ?77,$P($G(^VA(200,ABMENDDU,0)),U,2) ;entered by
  1. .W !
  1. I $Y>(IOSL-5) D HDR Q:$D(DTOUT)!$D(DUOUT)!$D(DIROUT) W " (cont)"
  1. Q
  1. HDR ;EP
  1. W $$EN^ABMVDF("IOF"),!
  1. W !,"INSURER",?19,"PG",?23,"START DT",?32,"SPLT CLM",?44,"END DATE",?54,"CREATED",?64,"BY",?69,"ENDED",?77,"BY"
  1. Q