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

SRSCHCC.m

Go to the documentation of this file.
  1. SRSCHCC ;B'HAM ISC/MAM - DELETE CONCURRENT CASES ; [ 04/26/97 3:08 PM ]
  1. ;;3.0; Surgery ;**3,67**;24 Jun 93
  1. BEG W @IOF,!,"The following information has already been entered." S CON=0 F I=0:0 S CON=$O(SRSCON(CON)) Q:'CON D LIST^SRSCHDC
  1. W !!!,"Since you have not entered all of the required operating room information, the",!,"schedule cannot be updated."
  1. W !!,"You have the following options available to you at this point. One of these",!,"two options must be selected. Entering an '^' will not be accepted."
  1. ASK W !!,"1. Create an Operation Request for the "_$S($D(SRSCON(2)):"Concurrent Cases",1:"Case"),!,"2. Delete the "_$S($D(SRSCON(2)):"Concurrent Cases",1:"Case")
  1. W !!,"Select Number: 1// " R X:DTIME I '$T S X=2
  1. S:X="" X=1 I X["^" G BEG
  1. I X'=1,X'=2 D HELP G ASK
  1. I X=2 D DEL Q
  1. S CON=0 F I=0:0 S CON=$O(SRSCON(CON)) Q:'CON D REQ
  1. Q
  1. REQ ; make requests
  1. S SRTN=SRSCON(CON),SRSOP=SRSCON(CON,"OP"),SRSDOC=SRSCON(CON,"DOC")
  1. D NOW^%DTC S SRDT=$E(%,1,12)
  1. K DIE,DR,DA S DIE=130,DR="36////1;Q;.09////"_SRSDATE_";1.099////"_DUZ_";1.098////"_SRDT,DA=SRTN D ^DIE
  1. S SROERR=SRTN D ^SROERR0
  1. Q
  1. DEL W !!,"Are you sure you want to delete "_$S($D(SRSCON(2)):"these cases",1:"this case")_" ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRYN="Y"
  1. S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
  1. I "YyNn"'[SRYN S SRTN=1 W !!,"Enter RETURN to delete the "_$S($D(SRSCON(2)):"entries",1:"entry")_" from your records."
  1. I "Yy"'[SRYN S SRSOUT=0 Q
  1. S CON=0 F S CON=$O(SRSCON(CON)) Q:'CON W !!," Deleting Case "_SRSCON(CON)_" ..." D OERR S DA=SRSCON(CON),DIK="^SRF(" D ^DIK K SRTN
  1. Q
  1. OERR ; delete from ORDER file (100)
  1. N SRTN S SRTN=SRSCON(C0N) D DEL^SROERR
  1. Q
  1. HELP W !!,"If you want to make an operation request for the "_$S($D(SRSCON(2)):"cases",1:"case")_" entered, select '1'."
  1. W !,"A request will be created for "_$S($D(SRSCON(2)):"both cases",1:"case "_SRSCON(1))_" on "_SRSDT_"."
  1. W !!,"Select '2' if you want to REMOVE this record ENTIRELY from your records. "
  1. Q