Changeset 636 for FOIAVistA/tag/r/SURGERY-SR/SROACAR.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/SURGERY-SR/SROACAR.m
r628 r636 1 SROACAR ;BIR/MAM - OPEATIVE DATA ; 12/03/072 ;;3.0; Surgery ;**38,71,93,95,100,125,142,153 ,166**;24 Jun 93;Build 61 SROACAR ;BIR/MAM - OPEATIVE DATA ;03/29/06 2 ;;3.0; Surgery ;**38,71,93,95,100,125,142,153**;24 Jun 93;Build 11 3 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 4 S SRACLR=0,SRSOUT=0,SRSUPCPT=1 D ^SROAUTL 5 5 START D:SRACLR RET G:SRSOUT END S SRACLR=0 K SRA,SRAO D ^SROACR1 6 ASK W !,"Select Cardiac ProceduresOperative Information to Edit: " R X:DTIME I '$T!("^"[X) G END7 S X=$S(X="a":"A",X="n":"N",1:X) I '$D(SRAO(X)),(X'?.N1":".N),(X'="A"),(X'="N") D HELP G:SRSOUT END G START6 ASK W !,"Select Operative 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 8 I X="A" S X="1:22" 9 9 I X?.N1":".N S Y=$E(X),Z=$P(X,":",2) I Y<1!(Z>22)!(Y>Z) D HELP G:SRSOUT END G START 10 I X="N" D G:SRSOUT END G START11 .W ! K DIR S DIR(0)="Y",DIR("B")="NO",DIR("A")="Are you sure you want to set all fields on this page to NO"12 .D ^DIR I $D(DTOUT)!$D(DUOUT) S SRSOUT=1 Q13 .I Y D NO2ALL14 10 D HDR^SROAUTL 15 11 I X?.N1":".N D RANGE G START … … 22 18 Q 23 19 HELP W @IOF,!!!!,"Enter the number or range of numbers you want to edit. Examples of proper",!,"responses are listed below." 24 W !!,"1. Enter 'A' to update all information.",!!,"2. Enter 'N' to set all fields on this page to NO." 25 W !!,"3. Enter a number (1-22) to update the information in that field. (For",!," example, enter '9' to update Valve Repair.)" 26 W !!,"4. Enter a range of numbers (1-22) separated by a ':' to enter a range of",!," information. (For example, enter '6:8' to enter Aortic Valve",!," Replacement, Mitral Valve Replacement, and Tricuspid Valve Replacement.)" 20 W !!,"1. Enter 'A' to update all information.",!!,"2. Enter a number (1-22) to update the information in that field. (For",!," example, enter '9' to update Valve Repair.)" 21 W !!,"3. Enter a range of numbers (1-22) separated by a ':' to enter a range of",!," information. (For example, enter '6:8' to enter Aortic Valve",!," Replacement, Mitral Valve Replacement, and Tricuspid Valve Replacement.)" 27 22 D RET 28 23 Q … … 37 32 I 'SRSOUT,EMILY=12!(EMILY=13) D OK 38 33 Q 39 NO2ALL ; set all fields to NO40 N II K DR,DIE S DA=SRTN,DIE=13041 F II=367,368,369,371,481,483,376,380,378,377,379,373,372,505,502 S DR=$S($D(DR):DR_";",1:"")_II_"////N"42 F II=365,366,464,465,416 S DR=DR_";"_II_"////0"43 S DR=DR_";"_370_"////5"_";"_512_"////N"44 D ^DIE K DR45 Q46 34 OK N SRISCH,SRCPB S X=$G(^SRF(SRTN,206)),SRISCH=$P(X,"^",36),SRCPB=$P(X,"^",37) 47 35 I SRISCH,SRCPB,SRISCH>SRCPB W !!," *** NOTE: Ischemic Time is greater than CPB Time!! Please check. ***",! D RET W !
Note:
See TracChangeset
for help on using the changeset viewer.