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

ORCHTAB5.m

Go to the documentation of this file.
  1. ORCHTAB5 ;SLC/dcm - Add item to tab listing ;4/17/97 11:08
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**25,263**;Dec 17, 1997;Build 9
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. MED ; -- Medicine Summary of Patient Procedures
  1. K ^TMP("MCAR",$J)
  1. ;I '$D(^MCAR(690,"AC",+ORVP)) Q
  1. D EN^MCARPS2(+ORVP)
  1. N MCARID,J
  1. S MCARID=0 F S MCARID=$O(^TMP("OR",$J,"MCAR","OT",MCARID)) Q:MCARID<1 S X=^(MCARID) D
  1. . S X1=$P(X,"^") S:$L(X1)'>ORMAX ORTX=1,ORTX(1)=X1 I $L(X1)>ORMAX D TXT^ORCHTAB
  1. . S ID=ORVP,DATA(1)=$$PAD^ORCHTAB($P(X,"^",6),16),DATA=1,ORIFN="MED~"_MCARID
  1. . D ADD^ORCHTAB
  1. Q