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

SROPRPT.m

Go to the documentation of this file.
  1. SROPRPT ;BIR/MAM,ADM - OPERATION REPORT ;09/02/04
  1. ;;3.0; Surgery ;**63,66,96,100,136,140**;24 Jun 93
  1. ;
  1. ;** NOTICE: This routine is part of an implementation of a nationally
  1. ;** controlled procedure. Local modifications to this routine
  1. ;** are prohibited.
  1. ;
  1. ;I '$D(SRSITE) D ^SROVAR G:'$D(SRSITE) END S SRSITE("KILL")=1
  1. ;checks if multi-divisional exists
  1. I '$D(SRTN) D ^SROPS G:'$D(SRTN) END S SRTN("KILL")=1
  1. ;Variable MAGTMPR2 is being set by routine MAGGTRPT (IMAGING Package).
  1. I '$D(MAGTMPR2) D HOME^%ZIS
  1. IM N SRSINED,SRSTAT,SRDTITL,SRTIU
  1. S SRDTITL="Operation Report"
  1. S SRSINED=0,SRSTAT="",SRTIU=$P($G(^SRF(SRTN,"TIU")),"^")
  1. I SRTIU S SRSTAT=$$STATUS^SROESUTL(SRTIU) S:SRSTAT=7 SRSINED=1
  1. ;Code for Imaging ; SRR 5/22/94
  1. I IOST["C-IMPC",$D(^SRF(SRTN,2005)) S SRIMAGE=1
  1. I IOST["P-" D DISPLY,END Q ; WISC/GEK - DELPHI APP
  1. ;End Code for Imaging.
  1. D DISPLY,END
  1. Q
  1. DISPLY I SRSINED S SRTIU=$P($G(^SRF(SRTN,"TIU")),"^") I SRTIU D PRNT^SROESPR(SRTN,SRTIU,SRDTITL) Q
  1. I 'SRSINED W !!," * * The Operation Report for this case is not yet available. * *" D LAST
  1. Q
  1. END K ^TMP("SROP",$J)
  1. W @IOF I $D(ZTQUEUED) Q:$G(ZTSTOP) S ZTREQ="@" Q
  1. D ^SRSKILL K VAIN,VAINDT I $D(SRSITE("KILL")) K SRSITE
  1. I $D(SRTN("KILL")) K SRTN
  1. Q
  1. LAST I IOST'["P-" W ! K DIR S DIR(0)="E" D ^DIR K DIR
  1. Q
  1. CODE ; entry point from coding menu
  1. N SRSINED,SRSTAT,SRDTITL,SRTIU
  1. S SRDTITL="Operation Report"
  1. S SRSINED=0,SRSTAT="",SRTIU=$P($G(^SRF(SRTN,"TIU")),"^")
  1. I SRTIU S SRSTAT=$$STATUS^SROESUTL(SRTIU) S:SRSTAT=7 SRSINED=1
  1. D DISPLY,END
  1. Q