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

SROAC.m

Go to the documentation of this file.
  1. SROAC ;B'HAM ISC/MAM - NON-CARDIAC COMPLICATIONS ; 4 MAR 1992 7:55 am
  1. ;;3.0; Surgery ;;24 Jun 93
  1. S SRSOUT=0,DFN=$P(^SRF(SRTN,0),"^") D DEM^VADPT S SRANAME=$P(VADM(1),"^")_" ("_VA("PID")_")"
  1. START Q:SRSOUT K SRAO,SRA D ^SROACS
  1. ASK W !!,"Select Postoperative Complication: " R X:DTIME I '$T!("^"[X) G END
  1. I '$D(SRAO(X)),(X'?1N1":"1N),(X'="A"),(X'="NONE") D HELP G:SRSOUT END G START
  1. I X?1N1":"1N S Y=$P(X,":"),Z=$P(X,":",2) I Y<1!(Z>6)!(Y>Z) D HELP G:SRSOUT END G START
  1. I X="NONE" K DR,DIE S DA=SRTN,DIE=130,DR="[SRA-NOCOMP]" D ^DIE G START
  1. W @IOF,!,SRANAME,! F MOE=1:1:80 W "-"
  1. I X="A" S X="1:6"
  1. W !! I X?1N1":"1N D RANGE G START
  1. I $D(SRAO(X)),+X=X S EMILY=X D ^SROAC2 G START
  1. I $D(SRAO(X)) K DR,DIE S DA=SRTN,DR=$P(SRAO(X),"^",2)_"T",DIE=130 D ^DIE K DR G START
  1. END Q
  1. HELP W @IOF,!!!!,"Enter the number, number/letter combination, or range of numbers you want to",!,"edit. Examples of proper responses are listed below."
  1. W !!,"1. Enter 'A' to update all complications.",!!,"2. Enter a number (1-6) to update the complications in that group. (For",!," example, enter '5' to update all cardiac complications)"
  1. W !!,"3. Enter a number/letter combination to update a specific complication. (To ",!," update Acute Renal Failure, enter '3B')"
  1. W !!,"4. Enter a range of numbers (1-6) separated by a ':' to enter a range of",!," complications. (For example, enter '2:4' to enter all respiratory, urinary",!," tract, and CNS complications)"
  1. W !!,"5. Enter 'NONE' to enter 'NO' for all complications."
  1. W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1
  1. Q
  1. RANGE ; range of numbers
  1. S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT D ^SROAC2
  1. Q
  1. RET Q:SRSOUT W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1 Q
  1. I X["?" W !!,"Enter <RET> to re-display all complication information, or '^' to return to",!,"the previous menu." G RET
  1. Q