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

ABMDE9A.m

Go to the documentation of this file.
  1. ABMDE9A ; IHS/ASDST/DMJ - Page 9 - UB-82 CODES-Cont ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;**11**;NOV 12, 2009;Build 133
  1. ;
  1. ; IHS/SD/SDR - v2.5 p8 - task 6
  1. ; Added code to put Zip code for AO on page 9D
  1. ;
  1. DISP3 ;EP - Entry Point for Condition Codes
  1. K ABMZ S ABMZ("TITL")="CONDITION CODES",ABMZ("PG")="9C"
  1. I $D(ABMP("DDL")),$Y>(IOSL-9) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT) XIT I 1
  1. E D SUM^ABMDE1
  1. ;
  1. COND ; Condition codes
  1. S ABMZ("SUB")=53,ABMZ("DR")="",ABMZ("ITEM")="Condition Code",ABMZ("DIC")="^ABMDCODE(",ABMZ("X")="DINUM",ABMZ("MAX")=5
  1. D HD3 G LOOP3
  1. HD3 W !?6,"COND"
  1. W !?6,"CODE",?14," CONDITION CODE DESCRIPTION"
  1. W !?6,"====",?14,"============================================================"
  1. Q
  1. LOOP3 S (ABMZ("LNUM"),ABMZ("NUM"),ABMZ(1))=0,ABM=0 F ABM("I")=1:1 S ABM=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),53,ABM)) Q:'ABM S ABM("X")=ABM,ABMZ("NUM")=ABM("I") D COND1
  1. I +$O(ABME(0)) S ABME("CONT")="" D ^ABMDERR K ABME("CONT")
  1. Q
  1. COND1 S ABM("X0")=^ABMDCLM(DUZ(2),ABMP("CDFN"),53,ABM("X"),0),ABM("X")=$P(^(0),U)
  1. S ABMZ(ABM("I"))=$E(("00"_$P(^ABMDCODE(ABM("X"),0),U)),$L($P(^(0),U))+1,4)_U_ABM_U_$P(ABM("X0"),U,2)
  1. I $Y>(IOSL-5) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT) XIT D HD3
  1. W !,"[",ABM("I"),"]",?7,$P(ABMZ(ABM("I")),U),?14,$P(^ABMDCODE(ABM("X"),0),U,3)
  1. Q
  1. ;
  1. DISP4 ;EP - Entry Point for Value Codes
  1. K ABMZ S ABMZ("TITL")="VALUE CODES",ABMZ("PG")="9D"
  1. I $D(ABMP("DDL")),$Y>(IOSL-9) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT) XIT I 1
  1. E D SUM^ABMDE1
  1. ;
  1. VALU ; Value codes
  1. S ABMZ("SUB")=55
  1. S ABMZ("DR")=";W !;.02Amount OR Zip Code"
  1. S ABMZ("ITEM")="Value Code"
  1. S ABMZ("DIC")="^ABMDCODE("
  1. S ABMZ("X")="DINUM"
  1. S ABMZ("MAX")=4
  1. D HD4 G LOOP4
  1. HD4 W !?6,"VALU"
  1. W !?6,"CODE",?14," VALUE CODE DESCRIPTION",?67,"AMOUNT"
  1. W !?6,"====",?14,"==================================================",?66,"========"
  1. Q
  1. LOOP4 S (ABMZ("LNUM"),ABMZ("NUM"),ABMZ(1))=0,ABM=0 F ABM("I")=1:1 S ABM=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),55,ABM)) Q:'ABM S ABM("X")=ABM,ABMZ("NUM")=ABM("I") D VALU1
  1. I +$O(ABME(0)) S ABME("CONT")="" D ^ABMDERR K ABME("CONT")
  1. Q
  1. VALU1 S ABM("X0")=^ABMDCLM(DUZ(2),ABMP("CDFN"),55,ABM("X"),0),ABM("X")=$P(^(0),U)
  1. S ABMZ(ABM("I"))=$E(("00"_$P(^ABMDCODE(ABM("X"),0),U)),$L($P(^(0),U))+1,4)_U_ABM_U_$P(ABM("X0"),U,2)
  1. I $Y>(IOSL-5) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT) XIT D HD4
  1. W !,"[",ABM("I"),"]",?7,$P(ABMZ(ABM("I")),U)
  1. W ?14,$P(^ABMDCODE(ABM("X"),0),U,3)
  1. ;W ?66,$S("A0^32"[$P(ABMZ(ABM("I")),U):$P(ABM("X0"),U,2),1:$J($P(ABM("X0"),U,2),8,2)) ;abm*2.6*11 HEAT89676
  1. W ?66,$S("A0^32^80^82^83"[$P(ABMZ(ABM("I")),U):$P(ABM("X0"),U,2),1:$J($P(ABM("X0"),U,2),8,2)) ;abm*2.6*11 HEAT89676
  1. Q
  1. ;
  1. XIT Q