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

AFJXWCPM.m

Go to the documentation of this file.
  1. AFJXWCPM ;FO-OAKLAND/GMB-REQUEST PATIENT INFO MENU ;11/8/95
  1. ;;5.1;Network Health Exchange;**6,22,31,33,34**;Jan 23, 1996
  1. ; Totally rewritten 11/2001. (Previously FJ/CWS.)
  1. ; Entry point:
  1. ; EN - Invoked by option AFJXNHEX REQUEST
  1. EN ;
  1. I '$G(DUZ) W !!,"You must have a DUZ defined ........" H 3 W !! Q
  1. Q:'$$NHEACTIV
  1. D HOME^%ZIS ; Not sure this is needed, but I left it in, anyway.
  1. N AXABORT
  1. S AXABORT=0
  1. F D Q:AXABORT
  1. . N DIR,X,Y,DIRUT
  1. . D HDR
  1. . S DIR("A")=" Enter choice"
  1. . S DIR(0)="SO^1:Brief (12 months) Medical Record Information"
  1. . S DIR(0)=DIR(0)_";2:Total Medical Record Information"
  1. . S DIR(0)=DIR(0)_";3:Brief (12 months) Pharmacy Information"
  1. . S DIR(0)=DIR(0)_";4:Total Pharmacy Information"
  1. . S DIR(0)=DIR(0)_";5:Print (Completed Requests Only)"
  1. . S DIR(0)=DIR(0)_";6:Print By Type of Information (Completed Requests)"
  1. . D ^DIR I $D(DIRUT) S AXABORT=1 Q
  1. . D @Y
  1. W @IOF
  1. Q
  1. 1 ; Brief (12 months) Medical Record Information
  1. D REQUEST^AFJXWCP1("PB")
  1. Q
  1. 2 ; Total Medical Record Information
  1. D REQUEST^AFJXWCP1("P")
  1. Q
  1. 3 ; Brief (12 months) Pharmacy Information
  1. D REQUEST^AFJXWCP1("RB")
  1. Q
  1. 4 ; Total Pharmacy Information
  1. D REQUEST^AFJXWCP1("R")
  1. Q
  1. 5 ; Print (Completed Requests Only)
  1. D ENTER^AFJXMBOX
  1. Q
  1. 6 ; Print By Type of Information (Completed Requests)
  1. D ENTER^AFJXMABX
  1. Q
  1. HDR ; Print page header
  1. N AX1,AX2
  1. W @IOF
  1. S AX1="VistA Network Health Exchange Menu"
  1. S AX2=$$NAME^XMXUTIL(DUZ)
  1. W AX1,$J(AX2,74-$L(AX1)),!,$$REPEAT^XLFSTR("=",74)
  1. Q
  1. NHEACTIV() ; Is NHE user active?
  1. N AXNHEDUZ,AXTXT,AXI
  1. S AXI=0
  1. S AXNHEDUZ=$$FIND1^DIC(200,"","X","NETWORK,HEALTH EXCHANGE")
  1. I 'AXNHEDUZ D
  1. . S AXI=AXI+1,AXTXT(AXI)="The NETWORK,HEALTH EXCHANGE user is not in the NEW PERSON file."
  1. E I $P($G(^VA(200,AXNHEDUZ,0)),U,3)="" D
  1. . S AXI=AXI+1,AXTXT(AXI)="The NETWORK,HEALTH EXCHANGE user does not have an access code."
  1. I '$D(^XMB(3.7,+AXNHEDUZ,2)) D
  1. . S AXI=AXI+1,AXTXT(AXI)="The NETWORK,HEALTH EXCHANGE user does not have a MAILBOX."
  1. Q:'AXI 1
  1. W $C(7),!
  1. S AXI=0 F S AXI=$O(AXTXT(AXI)) Q:'AXI W !,AXTXT(AXI)
  1. W !!,"Please inform IRM."
  1. W !,"Until this is corrected, you will not be able to use this option."
  1. Q 0