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

BDGSECU.m

Go to the documentation of this file.
  1. BDGSECU ; IHS/ANMC/LJF - UPDATE SECURITY PARAMETERS ;
  1. ;;5.3;PIMS;**1004**;MAY 28, 2004
  1. ;IHS/OIT/LJF 11/03/2005 PATCH 1004 moved message subroutine to IHS routine
  1. ;
  1. CHOOSE ; ask user to choose function to perform
  1. NEW BDGA,Y
  1. S BDGA(1)=$$SP(10)_"1. Edit Security Parameters"
  1. S BDGA(2)=$$SP(10)_"2. Edit Mail Group Members"
  1. S BDGA(3)=$$SP(10)_"3. List Security Key Holders"
  1. S BDGA(4)=""
  1. S Y=$$READ^BDGF("NO^1:3"," Select Action","","","",.BDGA)
  1. Q:'Y D @Y
  1. Q
  1. ;
  1. 1 ; -- call screenman to edit parameters
  1. NEW DA,DIC,DDR,DLAYGO,BDGERR
  1. ;
  1. ; if no entry in MAS Parameters file, add one
  1. I '$D(^DG(43,1,0)) D I $G(BDGERR) D MSG^BDGF(BDGERR) Q
  1. . K DD,DO S (DIC,DLAYGO)=43,DIC(0)="L"
  1. . S (X,DINUM)=1 D FILE^DICN
  1. . I Y=-1 S BDGERR="Adding to MAS Parameter file failed; contact supervisor."
  1. ;
  1. ; -- call ScreenMan to add/edit parameters
  1. S DDSFILE=43,DA=1,DR="[BDG SECURITY PARAMETERS]" D ^DDS
  1. K DDSFILE,DR
  1. Q
  1. ;
  1. ;
  1. 2 ; -- call screenman to edit mail group members
  1. ;NEW DA,DIC,DDR,DLAYGO
  1. ;
  1. S X=$O(^XMB(3.8,"B","DG MISSING NEW PERSON SSN",0)) ;mailgroup ien
  1. I 'X D Q ;mail group gone
  1. . D MSG^BDGF("Mail Group DG MISSING NEW PERSON SSN not in file",2,0)
  1. . D MSG^BDGF("Contact ITSC Help Desk for assistance",1,1)
  1. . D PAUSE^BDGF
  1. ;
  1. I '$O(^XMB(3.8,X,1,0)) D ;no members in mail group
  1. . D MSG^BDGF("Don't forget to add members to DG MISSING NEW PERSON SSN mail group",2,0)
  1. ;
  1. ; ask user to select a mail group; screen by coordinator
  1. S (DIC,DLAYGO)=3.8,DIC(0)="AEMQZL"
  1. S DIC("S")="I ($D(^XUSEC(""XMMGR"",DUZ)))!($P($G(^XMB(3.8,+Y,0)),U,7)=DUZ)"
  1. S DIC("DR")="4///PU;10///0;7///n"
  1. W !! D ^DIC Q:Y<1
  1. ;
  1. ; -- call ScreenMan to add/edit parameters
  1. S DDSFILE=3.8,DA=+Y,DR="[BDG SECURITY MAIL GROUP EDIT]" D ^DDS
  1. K DDSFILE,DR
  1. Q
  1. ;
  1. 3 ; -- list holders of module's security keys
  1. D ^BDGSECU1
  1. Q
  1. ;
  1. PAD(D,L) ;EP -- SUBRTN to pad length of data
  1. ; -- D=data L=length
  1. Q $E(D_$$REPEAT^XLFSTR(" ",L),1,L)
  1. ;
  1. SP(N) ; -- SUBRTN to pad N number of spaces
  1. Q $$PAD(" ",N)
  1. ;
  1. ;
  1. ;IHS/OIT/LJF 11/03/2005 PATCH 1004 added new subroutine
  1. MSG ;EP - Warning message on sensitive patients
  1. ; called by PRIV^DGSEC4
  1. S DGSENS(5)="* This record is protected by the Privacy Act of 1974 & Health Insurance*"
  1. S DGSENS(6)="* Portability & Accountability Act of 1996. If you elect to proceed, you*"
  1. S DGSENS(7)="* must prove you have a need to know. Access to this patient is tracked*"
  1. S DGSENS(8)="* and your Security Officer will contact you for your justification. *"
  1. Q