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

AMQQSEC.m

Go to the documentation of this file.
  1. AMQQSEC ; IHS/CMI/THL - CHECK SECURITY ACCESS FOR ATTRIBUTES ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;-----
  1. I $D(Y),+Y,$D(^AMQQ(5,+Y,0)),$P(^(0),U,19)'="C" Q
  1. I $$KEYCHECK^AMQQUTIL("AMQQZCLIN") Q
  1. S Y=-1
  1. I '$D(AMQQNECO) W !,"Sorry, you do not have the security clearance to use this attribute",*7 Q
  1. S AMQQFAIL=8
  1. Q
  1. ;
  1. PRINT ; ENTRY POINT FROM AMQQCMPL
  1. N X,Y,Z,%
  1. S Z=DUZ(2)
  1. S %=$P($G(^AMQQ(8,Z,0)),U,10)
  1. I %="" Q
  1. S Y=$P(^AMQQ(8,Z,0),U,9)
  1. S X=$O(^%ZIS(1,"C",IO,""))
  1. I 'X Q
  1. I Y="P" S Y=^%ZIS(1,X,"SUBTYPE"),Y=$P(^%ZIS(2,Y,0),U) I Y'["P-" Q
  1. I %="I",$D(^AMQQ(8,Z,1,"B",X)) Q
  1. I %="I" X "I 0" Q
  1. I '$D(^AMQQ(8,Z,1,"B",X)) Q
  1. I 0
  1. Q
  1. ;