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

MDPOST21.m

Go to the documentation of this file.
  1. MDPOST21 ; HOIFO/NCA - Post Init ;2/7/07 16:15
  1. ;;1.0;CLINICAL PROCEDURES;**21**;Apr 01, 2004;Build 30
  1. ; Integration Agreements:
  1. ; IA# 2263 [Supported] XPAR routine calls.
  1. ; 4677 [Subscription] XUSAP routine call
  1. ; 10060 [Supported] New Person file #200 Read w/Fileman
  1. ; 10141 [Supported] XPDUTL routine call
  1. ;
  1. EN ; [Procedure] Setup Application PROXY
  1. ; This submodule is called during the KIDS installation
  1. ; process.
  1. ;
  1. ; New private variables
  1. N MDFD,MDFMC,MDHERR,MDHLST,MDK,MDL,MDOPT,MDAPU S MDAPU="CLINICAL,DEVICE PROXY SERVICE"
  1. S MDOPT("MD GUI USER")=1,MDOPT("MD GUI MANAGER")=1,MDFMC=""
  1. S MDFD=$$FIND1^DIC(200,,"X",MDAPU,"B") Q:+MDFD
  1. S MDK=+$$CREATE^XUSAP(MDAPU,MDFMC,.MDOPT)
  1. I MDK>0 S MDTXT(1)="'"_MDAPU_"' has been created as an Application Proxy User."
  1. I MDK<0 S XPDABORT=1 D
  1. .S MDTXT(1)="The post-init routine has stopped. The Application Proxy User"
  1. .S MDTXT(2)="was not created. Make sure the name '"_MDAPU_"' is unique in"
  1. .S MDTXT(3)="the NEW PERSON file (#200). The patch can not continue until"
  1. .S MDTXT(4)="the Application Proxy User can be created."
  1. D:$O(MDTXT(0)) BMES^XPDUTL(.MDTXT)
  1. Q:+$$PATCH^XPDUTL("MD*1.0*21")
  1. D GETLST^XPAR(.MDHLST,"SYS","MD GET HIGH VOLUME")
  1. I +$G(MDHLST) D NDEL^XPAR("SYS","MD GET HIGH VOLUME",.MDHERR)
  1. Q