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

ABSPOS2D.m

Go to the documentation of this file.
  1. ABSPOS2D ; IHS/FCS/DRS - Poke the queues ;
  1. ;;1.0;PHARMACY POINT OF SALE;;JUN 21, 2001
  1. Q
  1. POKE ;EP - from ABSPOS2A ; protocol ABSPOS P2 POKE
  1. ; If things seem to be stalled, here's a kludgey way to start up
  1. ; more background jobs to give 'em a poke.
  1. W !,"Poking the pharmacy POS processing queues:",!
  1. I '$$LOCKPOS^ABSPOSUD Q
  1. W "."
  1. N A,B,ABSBRXI F A=40,50 D
  1. .S B="" F S B=$O(^ABSPT("AD",A,B)) Q:'B D
  1. ..W "."
  1. ..S ABSBRXI=B D SETSTAT^ABSPOSU(0) ; restart all of these
  1. ..D LOG59^ABSPOSL("POKE set this claim back to restart processing",B)
  1. D ; kill all outbound claims, lest we send claims twice
  1. . N DIALOUT S DIALOUT=0
  1. . F S DIALOUT=$O(^ABSPECX("POS",DIALOUT)) Q:'DIALOUT D
  1. . . N LOCKED S LOCKED=$$LLIST^ABSPOSAP
  1. . . K ^ABSPECX("POS",DIALOUT,"C") ; kill outbound claims, locked or not
  1. . . I LOCKED D ULLIST^ABSPOSAP
  1. D ULOCKPOS^ABSPOSUD
  1. D TASK^ABSPOSIZ W "." H 1
  1. D TASK^ABSPOSQ1 W "." H 1
  1. N DIALOUT
  1. S DIALOUT=$$ANY2SEND^ABSPOSQJ
  1. I DIALOUT D TASK^ABSPOSQ2 W "." H 1
  1. S DIALOUT=$$ANYRESPS^ABSPOSQ4
  1. I DIALOUT D TASK^ABSPOSQ3() W "." H 1
  1. W "OK, they've been POKEd.",!
  1. PZ Q