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

LA7VSTP1.m

Go to the documentation of this file.
  1. LA7VSTP1 ;VA/DALOI/JMC - CONT. from LA7VSTP ;JUL 06, 2010 3:14 PM
  1. ;;5.2;AUTOMATED LAB INSTRUMENTS;**27,46,64,1027**;NOV 01, 1997
  1. ;
  1. HOST ; Hosts setup for Remote site
  1. ; changing remote site to collection site but not in File 771 (1-15 char)
  1. ;
  1. N LAREMOTE,LA7VAI
  1. S LAREMOTE="LA7V COLLECTION "_PRIMARY
  1. ;
  1. W !,"Updating LA7 MESSAGE PARAMETER file (#62.48) for the HOST Lab "_SITE_"."
  1. W !,?5,"Adding "_$P(LAHOST,"^")
  1. ;
  1. K DIC
  1. S X=$P(LAHOST,"^"),DLAYGO=62.48,DIC="^LAHM(62.48,",DIC(0)="LQ"
  1. D ^DIC K DA
  1. I Y>0 D
  1. . S DIE=DIC,DA=+Y,DR="1///HL7;2///ACTIVE;4///ON;11///LEDI"
  1. . D ^DIE
  1. . S (LA7VAI,DA(1))=DA,DIC="^LAHM(62.48,"_DA(1)_",90,",DLAYGO=62.483,DIC(0)="QEML",DIC("P")=$P(^DD(62.48,90,0),U,2)
  1. . S X=$P(LAHOST,"^")_LRI_"LA7V REMOTE "_PRIMARY_PRIMARY
  1. . D ^DIC
  1. . S:$P(^LAHM(62.48,LA7VAI,0),U)=$P(LAHOST,"^") ^(1)="D QUE^LA7VIN"
  1. . D F629(+$P(HOST(LA7A),"^",4),LA7VAI)
  1. K DIC,DIE,DA,DR,DLAYGO
  1. ;
  1. ;
  1. HF624 ;
  1. K LA7VAI
  1. W !,"Updating LAB AUTO INSTRUMENT file (#62.4) for HOST Lab "_SITE_"."
  1. W !,?5,"Adding "_$P(LAHOST,"^")
  1. K DIC
  1. S X=$P(LAHOST,"^"),DIC="^LAB(62.4,",DIC(0)="L",DLAYGO=62.4
  1. S DIC("DR")="5///LOG;6///ID;8///"_$P(LAHOST,"^")_";18///1" D ^DIC
  1. S LA7VAI=+Y
  1. K DIC,DA,DO,DLAYGO
  1. Q
  1. ;
  1. ;
  1. REMOTE ;Remote setup for Host site
  1. RF6248 ;
  1. ;changing remote site to collection site but not in File 771 (1-15 char)
  1. ;
  1. N DIC,DIE,DA,DR,DLAYGO,LAREMOTE,LA7VAI
  1. S LAREMOTE="LA7V COLLECTION "_LRI
  1. ;
  1. W !,"Updating LA7 MESSAGE PARAMETER file (#62.48) for the REMOTE Lab "_SITE_"."
  1. W !,?5,"Adding "_LAREMOTE
  1. ;
  1. S X=LAREMOTE,DIC="^LAHM(62.48,",DIC(0)="LQ",DLAYGO=62.48
  1. D ^DIC
  1. I Y>0 D
  1. . S DIE=DIC,DA=+Y,DR="1///HL7;2///ACTIVE;4///ON;11///LEDI"
  1. . D ^DIE
  1. . S (LA7VAI,DA(1))=DA,DIC="^LAHM(62.48,"_DA(1)_",90,",DIC(0)="QEML",DLAYGO=62.483,DIC("P")=$P(^DD(62.48,90,0),U,2)
  1. . S X="LA7V REMOTE "_LRI_LRI_LAHOST_PRIMARY
  1. . D ^DIC
  1. . S:$P(^LAHM(62.48,LA7VAI,0),U)=LAREMOTE ^(1)="D QUE^LA7VIN"
  1. ;
  1. Q
  1. ;
  1. ;
  1. F629(LA74,LA76248) ; Update entries in #62.9 that use this message configuration (#62.48).
  1. ; Check each shipping configuration that has this site as a host site's computer system.
  1. ; Call with LA74 = ien of entry in INSTITUTION file (#4)
  1. ; LA76248 = ien of entry in LA7 MESSAGE PARAMETER (#62.48)
  1. ;
  1. N FDA,LA7629,LA7DIE
  1. ;
  1. S LA7629=0
  1. F S LA7629=$O(^LAHM(62.9,"E",LA74,LA7629)) Q:'LA7629 D
  1. . K FDA,LA7DIE
  1. . S FDA(2,62.9,LA7629_",",.07)=LA76248
  1. . D FILE^DIE("","FDA(2)","LA7DIE(2)")
  1. Q