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

BLRLUAC6.m

Go to the documentation of this file.
  1. BLRLUAC6 ; IHS/OIT/MKK - IHS LRUPAC 6, file 61 report ; [ 05/15/11 7:50 AM ]
  1. ;;5.2;IHS LABORATORY;**1030**;NOV 01, 1997
  1. ;;
  1. ;; Emulates the Lab accession and test counts Report, Part 3
  1. ;;
  1. F61REPT ; EP - File 61 (Topography File) REPorT
  1. NEW LRLDT,LRSDT,SELRAAAB,XTMPNODE
  1. NEW F61GTOT,SPECTYPE,SPECNAME
  1. NEW BLRVERN,HEADER,LINES,MAXLINES,PG,QFLG,HEDONE
  1. ;
  1. Q:$$F61INITV()="Q"
  1. ;
  1. S (F61GTOT,SPECTYPE)=0
  1. F S SPECTYPE=$O(^BLRLUPAC(DATETIME,"SPECSORT",SPECTYPE)) Q:SPECTYPE<1!(QFLG="Q") D
  1. . I LINES>MAXLINES D HEADERPG^BLRGMENU(.PG,.QFLG,HEDONE) Q:QFLG="Q"
  1. . ;
  1. . S SPECNAME=$P($G(^LAB(61,SPECTYPE,0)),"^")
  1. . W ?4,SPECTYPE
  1. . W ?14,SPECNAME
  1. . W ?64,$J($FN(+$G(^BLRLUPAC(DATETIME,"SPECSORT",SPECTYPE)),","),11)
  1. . W !
  1. . S LINES=LINES+1
  1. . S F61GTOT=F61GTOT+$G(^BLRLUPAC(DATETIME,"SPECSORT",SPECTYPE))
  1. ;
  1. D TOTALS^BLRLUAC2(F61GTOT)
  1. ;
  1. D ^%ZISC
  1. ;
  1. Q:QFLG="Q"
  1. ;
  1. D PRESSKEY^BLRGMENU(9)
  1. ;
  1. Q
  1. ;
  1. F61INITV() ; EP - File 61 report's INITialization of Variables
  1. D SETXTMPN^BLRLUAC1(.XTMPNODE) ; Set the ^TMP node
  1. S BLRVERN=$P($P($T(+1),";")," ")
  1. ;
  1. NEW DATERNGE,BADMSG,STR
  1. ;
  1. S BADMSG="No Topography Data Found."
  1. Q:$$GETXTMPV^BLRLUAC2("SPECSORT",.SELRAAAB,.LRSDT,.LRLDT,BADMSG)="Q" "Q"
  1. ;
  1. S DATERNGE="Date Range: "_$$FMTE^XLFDT(LRSDT,"5DZ")
  1. S DATERNGE=DATERNGE_" thru "_$$FMTE^XLFDT(LRLDT,"5DZ")
  1. ;
  1. K HEADER
  1. S HEADER(1)="Lab Accession and Test Counts"
  1. S HEADER(2)=SELRAAAB_" Accession Area Counts Only"
  1. S HEADER(3)=$$CJ^XLFSTR("Topography File (# 61) Report",IOM)
  1. S HEADER(4)=$$CJ^XLFSTR(DATERNGE,IOM)
  1. ;
  1. S MAXLINES=21,LINES=MAXLINES+10,PG=0,(QFLG,HEDONE)="NO"
  1. ;
  1. S HEADER(5)=" "
  1. S $E(HEADER(6),5)="IEN"
  1. S $E(HEADER(6),15)="Description"
  1. S $E(HEADER(6),65)=$J("Count",11)
  1. ;
  1. D OPENIO^BLRLUAC9(.MAXLINES,.LINES)
  1. ;
  1. I IOST["C-VT" D HEADONE2^BLRLUAC2(.HEDONE) W !
  1. ;
  1. Q "OK"