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

MDPSUL.m

Go to the documentation of this file.
  1. MDPSUL ; HOIFO/NCA - HS Component Utility;5/18/04 09:48 ;10/5/09 09:33
  1. ;;1.0;CLINICAL PROCEDURES;**21**;Apr 01, 2004;Build 30
  1. ; Integration Agreements:
  1. ; IA# 10103 [Supported] XLFDT calls
  1. ;
  1. EN2 ; Print the List of Components that should be created in HS
  1. N DIC,MDSPEC,X,Y,DTOUT,DUOUT
  1. K IOP S %ZIS="MQ",%ZIS("A")="Select LIST Printer: ",%ZIS("B")="HOME" W ! D ^%ZIS K %ZIS,IOP Q:POP
  1. I $D(IO("Q")) D QUE Q
  1. U IO D GETLIST D ^%ZISC K %ZIS,IOP Q
  1. QUE ; Queue List
  1. K IO("Q"),ZTUCI,ZTDTH,ZTIO,ZTSAVE,ZTDESC,ZTSK S ZTRTN="GETLIST^MDPSUL",ZTREQ="@",ZTSAVE("ZTREQ")=""
  1. S ZTDESC="Print the List of Components that should be created in HS."
  1. D ^%ZTLOAD D ^%ZISC U IO W !,"Request Queued",! K ZTSK Q
  1. EX ; Exit
  1. Q
  1. GETLIST ; [Procedure] Loop through Instruments and get active list
  1. N ANS,DTP,LN,MDLL,MDX,PG,S1
  1. S S1=$S(IOST?1"C".E:IOSL-8,1:IOSL-7)
  1. S (ANS,LN)="",$P(LN,"-",57)=""
  1. S PG=0 N % D NOW^%DTC S DTP=%,DTP=$$FMTE^XLFDT(DTP,"1P") D HDR
  1. F MDLL=0:0 S MDLL=$O(^MDS(702.09,MDLL)) Q:MDLL<1!(ANS="^") S MDX=$G(^(MDLL,0)) D
  1. .Q:'$P(MDX,"^",9)
  1. .Q:'$P($G(^MDS(702.09,MDLL,.1)),"^",3)
  1. .D:$Y>(IOSL-8) HDR Q:ANS="^"
  1. .W !,$E($P(MDX,"^"),1,25),?27,"CPF;MDPSU",?50,"M",MDLL
  1. Q
  1. HDR ; List Header
  1. Q:ANS="^" D:$Y'<S1 PAUSE Q:ANS="^"
  1. W:'($E(IOST,1,2)'="C-"&'PG) @IOF S PG=PG+1
  1. W !,DTP,?52,"Page ",PG,!!?10,"LIST OF HS COMPONENTS NEEDED",!!
  1. W !,"Name",?27,"Print Routine",?45,"Abbreviation",!,LN
  1. Q
  1. PAUSE ; Pause For Scroll
  1. I IOST?1"C".E K DIR S DIR(0)="E",DIR("A")="Enter RETURN to Continue or '^' to Quit Listing" D ^DIR I 'Y S ANS="^"
  1. Q