source: FOIAVistA/trunk/r/SURGERY-SR/SROSRRT.m@ 1397

Last change on this file since 1397 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 3.6 KB
Line 
1SROSRRT ;BIR/MAM-ADD TISSUE EXAM FOR NON OR; 26 AUGUST 1994 7:00am
2 ;;3.0; Surgery ;**33**;24 Jun 93
3ADD ; add option Tissue Examination Report (SROTRPT) to the
4 ; Non-O.R. Procedures (Enter/Edit) Menu
5 ;
6 S SRSOUT=0
7 W !,"This routine will add the Tissue Examination Report to the Non-O.R.",!,"Procedures (Enter/Edit) Menu. It also provides the ability to add the"
8 W !,"fields BRIEF CLIN HISTORY, OPERATIVE FINDINGS, and SPECIMENS to the",!,"SRNON-OR input template.",!!,"After updating the input template, the TISSUE EXAM/NON O.R. entry in the"
9 W !,"PACKAGE file will be removed. It was created to provide the template",!,"updates and is no longer needed. The PACKAGE file entry SURGERY V3.0"
10 W !,"PATCH, which was created by an earlier Surgery patch, will be removed",!,"also since it, too, is no longer needed."
11 K DIC,X,Y S DIC=19,DIC(0)="QM",X="SRONOP-ENTER" D ^DIC K DIC S SRMENU=+Y
12 I SRMENU<0 W !!,"You are missing the Non-O.R. Procedures (Enter/Edit) Menu. Please contact",!,"your local ISC customer service representative for assistance." Q
13 K DIC,X,Y S DIC=19,DIC(0)="QM",X="SROTRPT" D ^DIC K DIC S SRTISS=+Y
14 I SRTISS<0 W !!,"You are missing the Tissue Examination Report option. Please contact your",!,"local ISC customer service representative for assistance." Q
15 I '$O(^DIC(19,SRMENU,10,"B",SRTISS,0)) W !!,"Adding the Tissue Examination Report to Non-O.R. Procedures (Enter/Edit)..." D
16 .K X,Y,DR,DIC,DA,DD,DO,DINUM S X=SRTISS,DA(1)=SRMENU,DIC(0)="L",DIC="^DIC(19,"_SRMENU_",10,",DLAYGO=19.01 D FILE^DICN S SRSUB=+Y
17 .K DIE,DR,DA,X,Y S DIE="^DIC(19,"_SRMENU_",10,",DA(1)=SRMENU,DA=SRSUB,DR="2///TR;3///6" D ^DIE K DR,DA,DIE
18 ;
19TEMP ; update input template SRONOP-ENTER
20 ;
21 G:SRSOUT END
22 W !!,"This routine provides the ability to overlay the input template SRNON-OR.",!,"This template is used within the option ""Edit Non-O.R. Procedure"" to"
23 W !,"update Non-O.R. Procedure information."
24 W !!,"If you have already made local changes to this template, you may opt to",!,"bypass this portion of the process and update your input template manually."
25 W !,"The fields to be added are SPECIMENS, BRIEF CLIN HISTORY, and OPERATIVE",!,"FINDINGS."
26 W !!,"Do you want to overlay the input template SRNON-OR? YES// " R SRYN:DTIME I '$T!(SRYN["^") G END
27 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
28 I SRYN["?" D HELP G TEMP
29 I "YyNn"'[SRYN W !!,"Enter ""YES"" or ""NO"". If you need additional help, enter ""?""." G TEMP
30 I "Nn"[SRYN W !!,"No updates have been made to the SRNON-OR template." G END
31 W !!,"Updating the SRNON-OR template.",!
32 D ^SRRTINIT
33END ;
34 K DIC S DIC=9.4,DIC(0)="M",X="TISSUE EXAM/NON O.R." D ^DIC I +Y>0 S SRPKG=+Y D
35 .W !!,"The update to SRNON-OR is complete.",!!,"Removing TISSUE EXAM/NON O.R. from the PACKAGE file..." K DIC,DIK,DA S DA=SRPKG,DIK="^DIC(9.4," D ^DIK
36 K DIC S DIC=9.4,DIC(0)="M",X="SURGERY V3.0 PATCH" D ^DIC I +Y>0 S SRPKG=+Y W !!,"Removing SURGERY V3.0 PATCH from PACKAGE file..." K DIC,DIK,DA,X,Y S DA=SRPKG,DIK="^DIC(9.4," D ^DIK
37 W !!,"The process is complete. The Tissue Examination Report can now be printed",!,"for Non-O.R. Procedures."
38 K DA,DIC,DIE,DIK,DINUM,DLAYGO,DO,DR,SRMENU,SRPKG,SRSOUT,SRSUB,SRTISS,SRYN,X,Y
39 Q
40HELP ; help message for updating SRNON-OR input template
41 W !!,"Enter ""YES"" if you want to overlay the input template SRNON-OR. If you have",!,"made local changes to this template, answering ""YES"" will remove them."
42 W !,"If you have made local changes and do not wish to have them removed, you should",!,"answer ""NO"" to this question. Then, using VA FileMan, add the fields"
43 W !,"SPECIMENS, OPERATIVE FINDINGS, and BRIEF CLIN HISTORY to the SRNON-OR",!,"template.",!!,"Press RETURN to continue: " R X:DTIME S:X["^" SRSOUT=1
44 Q
Note: See TracBrowser for help on using the repository browser.