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

ABMDE9C.m

Go to the documentation of this file.
  1. ABMDE9C ; IHS/ASDST/DMJ - Edit Page 9 - UB-82 CODES ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;**11,14**;NOV 12, 2009;Build 238
  1. ;
  1. ; IHS/SD/SDR - v2.5 p8 - IM13796 - <UNDEF>LOOP^ABMDE9C
  1. ;IHS/SD/SDR - 2.6*14 - HEAT163734 - corrected misspelling
  1. ;
  1. DISP ;EP - Entry Point for Occurance Codes
  1. K ABMZ S ABMZ("TITL")="OCCURRENCE CODES",ABMZ("PG")="9A"
  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. ;D HD ;abm*2.6*11 HEAT87226
  1. ;
  1. OCCR ; Occurance codes
  1. ;S ABMZ("SUB")=51,ABMZ("DR")=";W !;.02",ABMZ("ITEM")="Occurance Code",ABMZ("DIC")="^ABMDCODE(",ABMZ("X")="DINUM",ABMZ("MAX")=5 ;abm*2.6*14 HEAT163734
  1. S ABMZ("SUB")=51,ABMZ("DR")=";W !;.02",ABMZ("ITEM")="Occurrence Code",ABMZ("DIC")="^ABMDCODE(",ABMZ("X")="DINUM",ABMZ("MAX")=5 ;abm*2.6*14 HEAT163734
  1. ;G LOOP ;abm*2.6*11 HEAT87226
  1. D HD G LOOP ;abm*2.6*11 HEAT87226
  1. HD W !?6,"OCCR"
  1. W !?6,"CODE",?14," OCCURRENCE DESCRIPTION",?68,"DATE"
  1. W !?6,"====",?14,"==================================================",?66,"========"
  1. Q
  1. LOOP ;
  1. S (ABMZ("LNUM"),ABMZ("NUM"),ABMZ(1),ABM)=0 F ABM("I")=1:1 S ABM=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),51,ABM)) Q:'ABM!$D(DIRUT) S ABM("X")=ABM,ABMZ("NUM")=ABM("I") D OCCR1
  1. I +$O(ABME(0)) S ABME("CONT")="" D ^ABMDERR K ABME("CONT")
  1. Q
  1. OCCR1 ;
  1. ;I $D(DIROUT)!$D(DUOUT)!$D(DTOUT)!$D(DIRUT) G XIT ;abm*2.6*11 HEAT87226
  1. S ABM("X0")=^ABMDCLM(DUZ(2),ABMP("CDFN"),51,ABM("X"),0),ABM("X")=$P(^(0),U)
  1. ;S ABMZ(ABM("I"))=$E(($P(^ABMDCODE(ABM("X"),0),U)+100),2,3)_U_ABM_U_$P(ABM("X0"),U,2) ;abm*2.6*11
  1. S ABMZ(ABM("I"))=$P(^ABMDCODE(ABM("X"),0),U)_U_ABM_U_$P(ABM("X0"),U,2) ;abm*2.6*11
  1. ;I $Y>(IOSL-5) D PAUSE^ABMDE1 Q:$D(DUOUT)!$D(DTOUT)!$D(DIROUT)!$D(DIRUT) D HD ;abm*2.6*11 HEAT87226
  1. I $Y>(IOSL-5) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT)!$D(DIRUT) XIT D HD ;abm*2.6*11 HEAT87226
  1. W !,"[",ABM("I"),"]",?7,$P(ABMZ(ABM("I")),U),?14,$P(^ABMDCODE(ABM("X"),0),U,3),?66 S ABM("DT")=$P(ABM("X0"),U,2) D DT W ABM("DT")
  1. Q
  1. ;
  1. DISP2 ;EP - Entry Point for Occurance Span Codes
  1. K ABMZ S ABMZ("TITL")="OCCURRENCE SPAN CODES",ABMZ("PG")="9B"
  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. SPAN ; Occurrence Span codes
  1. S ABMZ("SUB")=57,ABMZ("DR")=";W !;.02;W !;.03",ABMZ("ITEM")="Occurrence Span",ABMZ("DIC")="^ABMDCODE(",ABMZ("X")="X",ABMZ("MAX")=2
  1. D HD2 G LOOP2
  1. HD2 W !?6,"SPAN"
  1. W !?6,"CODE",?14," OCCURRENCE SPAN DESCRIPTION",?58,"FROM",?69,"TO"
  1. W !?6,"====",?14,"========================================",?56,"========",?66,"========"
  1. Q
  1. LOOP2 S (ABMZ("LNUM"),ABMZ("NUM"),ABMZ(1))=0,ABM=0 F ABM("I")=1:1 S ABM=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),57,ABM)) Q:'ABM S ABM("X")=ABM,ABMZ("NUM")=ABM("I") D SPAN1
  1. I +$O(ABME(0)) S ABME("CONT")="" D ^ABMDERR K ABME("CONT")
  1. Q
  1. ;
  1. SPAN1 S ABM("X0")=^ABMDCLM(DUZ(2),ABMP("CDFN"),57,ABM("X"),0),ABM("X")=$P(^(0),U)
  1. ;S ABMZ(ABM("I"))=$E((100+$P(^ABMDCODE(ABM("X"),0),U)),2,3)_U_ABM_U_$P(ABM("X0"),U,2) ;abm*2.6*11
  1. S ABMZ(ABM("I"))=$P(^ABMDCODE(ABM("X"),0),U)_U_ABM_U_$P(ABM("X0"),U,2) ;abm*2.6*11
  1. I $Y>(IOSL-8) D PAUSE^ABMDE1 G:$D(DUOUT)!$D(DTOUT)!$D(DIROUT) XIT D HD2
  1. W !,"[",ABM("I"),"]",?7,$P(ABMZ(ABM("I")),U),?14,$P(^ABMDCODE(ABM("X"),0),U,3),?56 S ABM("DT")=$P(ABM("X0"),U,2) D DT W ABM("DT") S ABM("DT")=$P(ABM("X0"),U,3) D DT W ?66,ABM("DT")
  1. Q
  1. ;
  1. XIT K ABM,ABMZ
  1. Q
  1. ;
  1. DT ;date conversion
  1. I ABM("DT")]"" S ABM("DT")=$$HDT^ABMDUTL(ABM("DT"))
  1. Q