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

VAQPST10.m

Go to the documentation of this file.
  1. VAQPST10 ;ALB/JRP - POST INITS;10-JUN-93
  1. ;;1.5;PATIENT DATA EXCHANGE;;NOV 17, 1993
  1. MAIL() ;ADD MAIL GROUPS USED
  1. ;INPUT : NONE
  1. ;OUTPUT : XYZ - Code telling which groups were/weren't added
  1. ; X specifies if VAQ PDX ERRORS was added
  1. ; Y specifies if VAQ MANUAL PROCESSING was added
  1. ; Z specifies if VAQ UNSOLICITED RECEIVED was added
  1. ;NOTES : When an error occurs, the error code returned specifies
  1. ; which mail groups were & weren't added. If the "bit"
  1. ; position that specifies the mail group is set to 1, the
  1. ; mail group wasn't added.
  1. ; EX: -101 tells that the mail groups VAQ PDX ERRORS and
  1. ; VAQ UNSOLICITED RECEIVED were not added, while the
  1. ; mail group VAQ MANUAL PROCESSING was added.
  1. ;
  1. ;DECLARE VARIABLES
  1. N GROUP,PRIVATE,ENROLL,RESTCODE,TMPARR,OUTCODE,ERROR
  1. S OUTCODE="000"
  1. ;ADD VAQ PDX ERRORS
  1. S GROUP="VAQ PDX ERRORS"
  1. S PRIVATE=0
  1. S ENROLL=0
  1. S RESTCODE=0
  1. S TMPARR(1)="Mail group that will receive any recoverable errors that occur"
  1. S TMPARR(2)="when using PDX. These errors will generally happen when a PDX"
  1. S TMPARR(3)="message can not be properly received by the PDX Server or when"
  1. S TMPARR(4)="a PDX message can not be properly created by the PDX Transmitter."
  1. S TMPARR(6)="This group will typically consist of the ADPAC(s) and IRM personnel"
  1. S TMPARR(7)="responsible for PDX."
  1. S ERROR=+$$MAILGRP^VAQUTL4(GROUP,PRIVATE,ENROLL,RESTCODE,"TMPARR")
  1. S:(ERROR<0) OUTCODE="1"_$E(OUTCODE,2,$L(OUTCODE))
  1. ;ADD VAQ MANUAL PROCESSING
  1. S GROUP="VAQ MANUAL PROCESSING"
  1. S PRIVATE=0
  1. S ENROLL=0
  1. S RESTCODE=0
  1. K TMPARR
  1. S TMPARR(1)="Mail group that will receive notification of a PDX Request that"
  1. S TMPARR(2)="has been received and requires manual processing. This group"
  1. S TMPARR(3)="will typically consist of users that authorize the release of"
  1. S TMPARR(4)="patient data to other facilities."
  1. S ERROR=+$$MAILGRP^VAQUTL4(GROUP,PRIVATE,ENROLL,RESTCODE,"TMPARR")
  1. S:(ERROR<0) OUTCODE=$E(OUTCODE,1)_"1"_$E(OUTCODE,3,$L(OUTCODE))
  1. ;ADD VAQ UNSOLICITED RECEIVED
  1. S GROUP="VAQ UNSOLICITED RECEIVED"
  1. S PRIVATE=0
  1. S ENROLL=0
  1. S RESTCODE=0
  1. K TMPARR
  1. S TMPARR(1)="Mail group that will receive notification when an Unsolicited"
  1. S TMPARR(2)="PDX has been received. This group will typically consist of"
  1. S TMPARR(3)="users that receive patient data from other facilities."
  1. S ERROR=+$$MAILGRP^VAQUTL4(GROUP,PRIVATE,ENROLL,RESTCODE,"TMPARR")
  1. S:(ERROR<0) OUTCODE=$E(OUTCODE,1,2)_"1"_$E(OUTCODE,4,$L(OUTCODE))
  1. Q OUTCODE