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

PSOQCF04.m

Go to the documentation of this file.
  1. PSOQCF04 ;HINES/RMS - NON-VA MEDS DOCUMENTATION DATE ; 30 Nov 2007 7:55 AM
  1. ;;7.0;OUTPATIENT PHARMACY;**294**;DEC 1997;Build 13
  1. ;
  1. NVADT(DFN,TEST,DATE,VALUE,TEXT) ;
  1. N PSOQL,PSOQDT,PSOQARR,PSOQRDT
  1. S TEST=0,DATE=""
  1. D ^PSOHCSUM
  1. Q:'$D(^TMP("PSOO",$J,"NVA"))
  1. S PSOQL=0 F S PSOQL=$O(^TMP("PSOO",$J,"NVA",PSOQL)) Q:'+PSOQL D ;
  1. . S PSOQDT=9999999-$P($G(^TMP("PSOO",$J,"NVA",PSOQL,0)),"^",5)
  1. . S PSOQARR(PSOQDT)=""
  1. S PSOQRDT=$O(PSOQARR(0)) Q:PSOQRDT=9999999
  1. S TEST=1,DATE=9999999-PSOQRDT,TEXT=$$FMTE^XLFDT(DATE,"D")
  1. Q