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

ACKQAS5.m

Go to the documentation of this file.
  1. ACKQAS5 ;AUG/JLTP BIR/PTD HCIOFO/BH-New Clinic Visits ; 04/01/99
  1. ;;3.0;QUASAR;;Feb 11, 2000
  1. ;Per VHA Directive 10-93-142, this routine SHOULD NOT be modified.
  1. ;
  1. ;
  1. EDIT ; Edit Template.
  1. S ACKVISIT="EDIT",ACKVIEN=DA
  1. ;
  1. ; Attempt to Lock file before editing
  1. L +^ACK(509850.6,ACKVIEN):2 E W !!,"This record is locked by another process - Please try again later.",!! D VEXIT^ACKQAS Q
  1. ; If visit has PCE IEN check PCE and Qsr visit data for inconsistancies
  1. I $$GET1^DIQ(509850.6,ACKVIEN,"125","I")'="" I '$$DATACHK^ACKQASU3(ACKVIEN) D UNLOCK^ACKQAS,VEXIT^ACKQAS,HEADING^ACKQAS Q
  1. S ACKVTME=$P(^ACK(509850.6,ACKVIEN,5),U,8),ACKVTME=$P(ACKVTME,".",2)
  1. ETPLATE S (DIE,DIC)="^ACK(509850.6,",DR="[ACKQAS VISIT ENTRY]" D ^DIE
  1. D UTLAUD^ACKQASU2
  1. S ACKQTST=$$POST^ACKQASU2(ACKVIEN) I 'ACKQTST S ACKDFN=DFN G ETPLATE
  1. ; ACKQTST will equal 1 (Visit okay or user chose to continue) or
  1. ; ACKQTST will equal 2 the visit has been deleted
  1. I ACKPCE,ACKQTST=1,$$EXPT^ACKQASU2(ACKVIEN) I '$$PCESEND^ACKQASU3(ACKVIEN) S ACKDFN=DFN G ETPLATE
  1. ; If visit is okay and visit not to be sent to PCE but visit has a
  1. ; value in the PCE IEN field - the EXCEPTION DATE from the visit is
  1. ; used check the Exception cross reference. If an exception exists
  1. ; display a warning message.
  1. I ACKQTST=1,'ACKPCE,$$GET1^DIQ(509850.6,ACKVIEN_",",125,"I")'="" D
  1. . Q:'$$EXPT^ACKQASU2(ACKVIEN)
  1. . D EXCEPT^ACKQASU1
  1. ; Unlock,kill off used vars. re-display heading & return to start
  1. D UNLOCK^ACKQAS,VEXIT^ACKQAS,HEADING^ACKQAS
  1. Q
  1. ;