- SROCMPD ;B'HAM ISC/MAM - DELETE OCCURRENCE ; 24 SEPT 1990 2:55 PM
- ;;3.0; Surgery ;**38**;24 Jun 93
- KEY I '$D(^XUSEC("SROEDIT",DUZ)) W !!,"You do not have the access necessary to delete a case from the file.",!!,"Press RETURN to continue " R X:DTIME Q
- W !!,"By deleting this case, all information stored for this occurrence will be",!,"removed from the computer."
- DEL W !!,"Are you sure that you want to delete this occurrence ? NO// " R SRYN:DTIME I '$T!(SRYN["^") Q
- S SRYN=$E(SRYN) I SRYN="" S SRYN="N"
- I "YyNn"'[SRYN W !!,"Enter 'YES' to delete this occurrence, or RETURN if you have made a mistake." G DEL
- I "Nn"[SRYN Q
- S SRCC="",SROPCOM="Occurrence ..." D KILL^SROPDEL
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSROCMPD 696 printed Feb 19, 2025@00:09:17 Page 2
- SROCMPD ;B'HAM ISC/MAM - DELETE OCCURRENCE ; 24 SEPT 1990 2:55 PM
- +1 ;;3.0; Surgery ;**38**;24 Jun 93
- KEY IF '$DATA(^XUSEC("SROEDIT",DUZ))
- WRITE !!,"You do not have the access necessary to delete a case from the file.",!!,"Press RETURN to continue "
- READ X:DTIME
- QUIT
- +1 WRITE !!,"By deleting this case, all information stored for this occurrence will be",!,"removed from the computer."
- DEL WRITE !!,"Are you sure that you want to delete this occurrence ? NO// "
- READ SRYN:DTIME
- IF '$TEST!(SRYN["^")
- QUIT
- +1 SET SRYN=$EXTRACT(SRYN)
- IF SRYN=""
- SET SRYN="N"
- +2 IF "YyNn"'[SRYN
- WRITE !!,"Enter 'YES' to delete this occurrence, or RETURN if you have made a mistake."
- GOTO DEL
- +3 IF "Nn"[SRYN
- QUIT
- +4 SET SRCC=""
- SET SROPCOM="Occurrence ..."
- DO KILL^SROPDEL
- +5 QUIT