source: FOIAVistA/tag/r/SURGERY-SR/SROACAT.m@ 1185

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

initial load of FOIAVistA 6/30/08 version

File size: 3.4 KB
Line 
1SROACAT ;BIR/MAM - CARDIAC CATH INFO ;04/13/04 3:00 PM
2 ;;3.0; Surgery ;**38,47,100,125,142,153**;24 Jun 93;Build 11
3 I '$D(SRTN) W !!,"A Surgery Risk Assessment must be selected prior to using this option.",!!,"Press <RET> to continue " R X:DTIME G END
4 S SRACLR=0,SRSOUT=0,SRSUPCPT=1 D ^SROAUTL
5START D:SRACLR RET G:SRSOUT END S SRACLR=0 D ^SROACTH
6ASK W !!,"Select Cardiac Catheterization and Angiographic Information to Edit: " R X:DTIME I '$T!("^"[X) G END
7 S:X="a" X="A" I '$D(SRAO(X)),(X'?.N1":".N),(X'="A") D HELP G:SRSOUT END G START
8 I X="A" S X="1:8"
9 I X?.N1":".N S Y=$E(X),Z=$P(X,":",2) I Y<1!(Z>8)!(Y>Z) D HELP G:SRSOUT END G START
10 D HDR^SROAUTL
11 I X?.N1":".N D RANGE G START
12 I $D(SRAO(X)) S EMILY=X D G START
13 .I $$LOCK^SROUTL(SRTN) W !! D ONE,UNLOCK^SROUTL(SRTN)
14END I 'SRSOUT D ^SROACTH1
15 I '$D(SREQST) W @IOF D ^SRSKILL
16 Q
17HELP W @IOF,!!!!,"Enter the number or range of numbers you want to edit. Examples of proper",!,"responses are listed below."
18 W !!,"1. Enter 'A' to update all information.",!!,"2. Enter a number (1-8) to update the information in that field. (For",!," example, enter '3' to update Aortic Systolic Pressure.)"
19 W !!,"3. Enter a range of numbers (1-8) separated by a ':' to enter a range of",!," information. (For example, enter '1:3' to update Procedure, LVEDP",!," and Aortic Systolic Pressure.)"
20 W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1
21 Q
22RANGE ; range of numbers
23 I $$LOCK^SROUTL(SRTN) D D UNLOCK^SROUTL(SRTN)
24 .W !! S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT D ONE
25 Q
26ONE ; edit one item
27 N SRB S:EMILY=1 SRB=$P($G(^SRF(SRTN,209)),"^",4)
28 K DR,DIE S DA=SRTN,DR=$P(SRAO(EMILY),"^",2)_"T",DIE=130 D ^DIE K DR I $D(Y)!$D(DTOUT) S SRSOUT=1 Q
29 I EMILY=1 I SRB="NS"&($P($G(^SRF(SRTN,209)),"^",4)'="NS") D KAA
30 I EMILY=1 I ($P($G(^SRF(SRTN,209)),"^",4)="NS") D ALL
31 Q
32RET Q:SRSOUT W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1 Q
33 Q
34ALL ; Entering NS for the procedure field should make all other fields in this Cath section default to NS also
35 K DIR S DIR("A")="Do you want to automatically enter 'NS' for NO STUDY for all other fields within this option ",DIR("B")="YES"
36 S DIR(0)="Y",DIR("?",1)="Enter ""YES"" to allow the software to automatically enter 'NS' on all fields within this option.",DIR("?")="Enter ""NO"" to only enter 'NS' in the Procedure Type field."
37 D ^DIR K DIR I $D(DTOUT)!$D(DUOUT)!('Y) Q
38 K DIE,DR S DA=SRTN,DIE=130,DR="357////"_"NS"_";358////"_"NS"_";359////"_"NS"_";360////"_"NS"_";363////"_"NS"_";415////"_"NS"_";477////"_"NS"
39 S DR=DR_";361////"_"NS"_";362.1////"_"NS"_";362.2////"_"NS"_";362.3////"_"NS"_";478////"_"NS"_";479////"_"NS"_";480////"_"NS"
40 D ^DIE K DR
41 Q
42KAA ; if the value of the procedure type field is changed from NS to somthing else then prompt the user to delete the rest of the fields
43 N SRI K DIR W !,"You have changed the answer from ""NS""."
44 S DIR("A")="Do you want to clear 'NS' from all other fields within this option ",DIR("B")="NO"
45 S DIR(0)="Y",DIR("?",1)="Enter ""YES"" to allow the software to automatically clear 'NS' from all fields within this option.",DIR("?")="Enter ""NO"" to only delete 'NS' in the Procedure Type field."
46 D ^DIR K DIR I $D(DTOUT)!$D(DUOUT)!('Y) Q
47 K DIE,DR S DR="",DA=SRTN F SRI=357,358,359,360,363,415,477,361,362.1,362.2,362.3,478,479,480 I $$GET1^DIQ(130,SRTN,SRI,"I")="NS" S DR=DR_";"_SRI_"///@"
48 S DR=$P(DR,";",2,20) I $L(DR)=0 K DR Q
49 S DIE=130 D ^DIE K DR
50 Q
Note: See TracBrowser for help on using the repository browser.