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

SROASWAP.m

Go to the documentation of this file.
  1. SROASWAP ;B'HAM ISC/MAM - MOVE RISK TO FILE 130 ; 13 APR 1992 8:25 am
  1. ;;3.0; Surgery ;;24 Jun 93
  1. S SRLINE="" F I=1:1:80 S SRLINE=SRLINE_"-"
  1. S SRSOUT=0 I DT<2940401 D NOTYET G END
  1. START D ^SROASWP I SRSOUT G END
  1. DATE ; get starting date
  1. W ! K %DT S %DT="AEX",%DT("A")="Convert existing assessments starting with which date ? " D ^%DT G:X="^" END I Y<0 D NEEDATE G:SRSOUT END G DATE
  1. S SRDATE=+Y D ^SROASWP0
  1. K ^TMP("CONVERT") D ^SROASWP2 K ^TMP("CONVERT")
  1. I $O(^SRA(0)) W @IOF,!,"The SURGERY RISK ASSSESSMENT file (139) still contains entries. Before you",!,"enter any additional risk assessment information, all entries in this file ",!,"should be converted or deleted." S SRSOUT=0
  1. I '$O(^SRA(0)) W @IOF,!,"The conversion process has been completed. Please review your incomplete",!,"assessments." D ^SROASWPD,DEL
  1. W !!,"Press RETURN to continue " R X:DTIME
  1. END D ^SRSKILL K SRTN W @IOF
  1. Q
  1. NOTYET ; can't convert before April 1, 1994
  1. W @IOF,!,SRLINE,!,"The conversion of the ""stand-alone"" Surgery Risk Assessment Module cannot",!,"be run until after April 1, 1994. It should only be run after that date"
  1. W !,"if your Surgery files are complete, including complications, CPT codes and",!,"anesthesia information since installing Surgery Version 3.0.",!,SRLINE
  1. W !!,"Press RETURN to continue " R X:DTIME
  1. Q
  1. NEEDATE ; message if no date is entered
  1. W !!,"You must select a starting date to begin the conversion process. All ",!,"assessments with operation dates prior to the start date will be automatically"
  1. W !,"deleted. The remaining assessments will then be processed for conversion."
  1. CONT W !!,"Press RETURN to continue, or '^' to quit: " R X:DTIME I X["^" S SRSOUT=1
  1. Q
  1. DEL ; delete file 139
  1. W !!,"The SURGERY RISK ASSESSMENT file will now be deleted from your system... "
  1. K DIU S DIU(0)="DT",DIU=139 D EN^DIU2
  1. Q