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

AQALNKER.m

Go to the documentation of this file.
  1. AQALNKER ; IHS/ORDC/LJF - SEND ERROR MESSAGE IN BULLETIN ;
  1. ;;1;QI LINKAGES-RPMS;;AUG 15, 1994
  1. ;
  1. ;This routine processes the error messages by sending a bulletin
  1. ;to all package administrators. It lists the patient's name, chart
  1. ;number and all errors found that prevented adding or modifiying an
  1. ;occurrence. Called by ^AQALNK and ^AQALNK1.
  1. ;
  1. ERRORMSG ; >>> send bulletin if any error messages exist
  1. S XMB=AQALNK("BUL"),XMDUZ="QI LINKAGES MESSENGER"
  1. S X=0 F S X=$O(^AQAO(9,"AC","QA",X)) Q:X=""
  1. .S XMY(X)="",XMY(X,1)="I" ;set pkg admin as recipients-info only
  1. S AQALAR(1)="PATIENT IS "_$P($G(^DPT(AQALNK("PAT"),0)),U)
  1. S AQALAR(2)="CHART #"_$P($G(^AUPNPAT(AQALNK("PAT"),41,DUZ(2),0)),U,2)
  1. S X=0,Y=2 F S X=$O(AQALNKF(X)) Q:X="" S Y=Y+1,AQALAR(Y)=AQALNKF(X)
  1. S XMTEXT="AQALAR(" D ^XMB K XMB,XMDUX,XMY,XMTEXT
  1. Q