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

AQAOBUL.m

Go to the documentation of this file.
  1. AQAOBUL ; IHS/ORDC/LJF - BULLETIN ON PERSONAL REFERRAL ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This rtn contains 4 entry points called by MUMPS xrefs to send
  1. ;bulletins to persons to whom an occurrence case has been referred.
  1. ;Called by the 4 referred to fields.
  1. ;
  1. INITIAL ;ENTRY POINT for initial review
  1. Q:X="" Q:X'["AQAO(9" ;not referred to a person
  1. S XMB(4)=$P(^AQAOC(DA,1),U,4)
  1. S XMB(4)=U_$P(XMB(4),";",2)_+XMB(4)_",0)"
  1. S XMB(4)=$P(@XMB(4),U) ;referred by - variable pointer
  1. S AQAODA=DA D VAR,^XMB Q
  1. ;
  1. ;
  1. ADDREV ;ENTRY POINT for additional referrals on initial review
  1. Q:X="" Q:X'["AQAO(9" ;not referred to a person
  1. S XMB(4)=$P(^AQAOC(DA(1),1),U,4)
  1. S XMB(4)=U_$P(XMB(4),";",2)_+XMB(4)_",0)"
  1. S XMB(4)=$P(@XMB(4),U) ;referred by - variable pointer
  1. S AQAODA=DA(1) D VAR,^XMB Q
  1. ;
  1. ;
  1. REVIEW ;ENTRY POINT for reviews
  1. Q:X="" Q:X'["AQAO(9" ;not referred to a person
  1. S XMB(4)=$P(^AQAOC(DA(1),"REV",DA,0),U,2)
  1. S XMB(4)=U_$P(XMB(4),";",2)_+XMB(4)_",0)"
  1. S XMB(4)=$P(@XMB(4),U) ;referred by
  1. S AQAODA=DA(1) D VAR,^XMB Q
  1. ;
  1. ;
  1. REVADD ;ENTRY POINT for additional referrals on reviews
  1. Q:X="" Q:X'["AQAO(9" ;not referred to a person
  1. S XMB(4)=$P(^AQAOC(DA(2),"REV",DA(1),0),U,2)
  1. S XMB(4)=U_$P(XMB(4),";",2)_+XMB(4)_",0)"
  1. S XMB(4)=$P(@XMB(4),U) ;referred by
  1. S AQAODA=DA(2) D VAR,^XMB Q
  1. ;
  1. ;
  1. VAR ; >> gather common variables
  1. S XMY(+X)="" ;referred to
  1. S XMB(1)=$P(^AQAOC(AQAODA,0),U) ;case id
  1. S XMB(2)=$P(^AQAOC(AQAODA,0),U,4)
  1. S XMB(2)=$E(XMB(2),4,5)_"/"_$E(XMB(2),6,7)_"/"_$E(XMB(2),2,3) ;occ date
  1. S XMB(3)=$P(^AQAOC(AQAODA,0),U,8)
  1. S XMB(3)=$P(^AQAO(2,XMB(3),0),U)_" "_$P(^(0),U,2) ;indicator # & name
  1. S XMB(5)=$E(DT,4,5)_"/"_$E(DT,6,7)_"/"_$E(DT,2,3) ;today's date
  1. S XMB="AQAO OCC REFERRAL",XMBDUZ="QAI_MGT_SYSTEM"
  1. Q