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

ECXLARP.m

Go to the documentation of this file.
  1. ECXLARP ;BIR/CML/PTD/JRC-Print DSS Lab Tests Names Datasheet (LAR) ; 6/9/05 7:49pm
  1. ;;3.0;DSS EXTRACTS;**8,51,84**;Dec 22, 1997
  1. EN ;entry point from option
  1. ;Init variables and sort array
  1. N QFLG,SORT
  1. ;
  1. S QFLG=1
  1. W !!,"This option prints a list of the DSS Lab Tests and associated LMIP workload",!,"codes used for the Lab Results Extract (LAR). It will display the local lab"
  1. W !,"data names associated with each DSS Lab test name. If there are LMIP workload",!,"codes they will be linked to the appropriate DSS lab test name or local lab",!,"test name."
  1. ;
  1. ;If no data in file (#727.2) quit
  1. I '$O(^ECX(727.2,0)) W !!,"The DSS LAB TEST file (#727.2) does not exist on your system!" Q
  1. ;
  1. ;Get sort
  1. D GETSORT Q:'QFLG
  1. ;
  1. W !!,"** REPORT REQUIRES 132 COLUMNS TO PRINT CORRECTLY **",!!
  1. ;
  1. ;Print report using fileman sort and print templates
  1. N L,DIC,FLDS,DHD,BY,FR,TO,DIOBEG
  1. S L=0,DIC="^ECX(727.2,"
  1. S FLDS="[ECX LAB TEST PRINT]",BY=$S(SORT=1:"[ECX LAB TEST SORT BY DSS NAME]",SORT=2:"[ECX LAB TEST SORT BY LOCAL]",SORT=3:"[ECX LAB TEST SORT BY NUMBER]"),FR="",TO="",DHD="[ECX LAB TEST HEADER]",DIOBEG="I $E(IOST,1,2)=""C-"" W @IOF"
  1. D EN1^DIP
  1. Q
  1. ;
  1. GETSORT ;Prompt for sorting order for report
  1. N DIR,X,Y,DIRUT
  1. S DIR(0)="SC^1:DSS LAB TEST NAME;2:LOCAL LAB TEST NAME;3:RESULT TEST ID NUMBER"
  1. S DIR("A")="Select sort for DSS LAB TEST DATASHEET report"
  1. D ^DIR
  1. I $D(DIRUT) S QFLG="" Q
  1. S SORT=Y
  1. Q
  1. ;