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

ACHSJCHK.m

Go to the documentation of this file.
  1. ACHSJCHK ; IHS/ITSC/PMF - CHECK FOR ACTIVE CHS OPTIONS ; [ 10/16/2001 8:16 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;
  1. ; Return Y=1 if compiled menu has ACHS option.
  1. ; J = JOB subscript
  1. ; N = Namespace to check
  1. ; O = Option
  1. E(N) ;EP - Are other CHS options in the compiled menu?
  1. N J,O
  1. S J=""
  1. JOBS ;
  1. S J=$O(^XUTL("XQ",J))
  1. I 'J Q 0
  1. I '(J=$J),$D(^XUTL("XQ",J,"IO")),'(^("IO")=$G(I0)),$$PASS(J) Q 1
  1. G JOBS
  1. PASS(J) ;
  1. S O=0
  1. P1 ;
  1. S O=$O(^XUTL("XQ",J,O))
  1. I 'O Q 0
  1. I $P(^XUTL("XQ",J,O),U,2)[N Q 1
  1. G P1
  1. ;