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

ABSPOSR2.m

Go to the documentation of this file.
  1. ABSPOSR2 ; IHS/FCS/DRS - silent claim submitter ;
  1. ;;1.0;PHARMACY POINT OF SALE;;JUN 21, 2001
  1. ; SHOWQ subroutine - continuation of ABSPOSRX
  1. Q
  1. SHOWQ ;EP - ABSPOSRX ; ^ABSPECP("ABSPOSRX",type,RXI,RXR)
  1. N ROOT S ROOT="^ABSPECP(""ABSPOSRX"")"
  1. N COUNT S COUNT=0
  1. I '$O(@ROOT@(""))="" W "None",! Q
  1. N TYPE,RXI,RXR
  1. F TYPE="CLAIM","UNCLAIM" D
  1. . W TYPE
  1. . I '$D(@ROOT@(TYPE)) W " - none",! Q
  1. . W ":",!
  1. . S RXI="" F S RXI=$O(@ROOT@(TYPE,RXI)) Q:RXI="" D
  1. . . S RXR="" F S RXR=$O(@ROOT@(TYPE,RXI,RXR)) Q:RXR="" D
  1. . . . W RXI,",",RXR
  1. . . . ; details like patient, drug could go here
  1. . . . W !
  1. . . . S COUNT=COUNT+1
  1. . W "Total ",COUNT," ",TYPE W:COUNT'=1 "s"
  1. . W !
  1. Q