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

SROAO.m

Go to the documentation of this file.
  1. SROAO ;B'HAM ISC/MAM - OUTCOMES ; [ 01/29/01 9:22 AM ]
  1. ;;3.0; Surgery ;**100**;24 Jun 93
  1. 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
  1. S SRSOUT=0,DFN=$P(^SRF(SRTN,0),"^") D DEM^VADPT S SRANAME=$P(VADM(1),"^")_" ("_VA("PID")_")"
  1. START G:SRSOUT END D ^SROAOSET
  1. ASK W !!,"Select Postoperative Outcome: " R X:DTIME I '$T!(X["^") G END
  1. I X="" G END
  1. I '$D(SRAO(X)),(X'?1N1":"1N),(X'="A") D HELP G:SRSOUT END G START
  1. I X?1N1":"1N S Y=$P(X,":"),Z=$P(X,":",2) I Y<1!(Z>3)!(Y>Z) D HELP G:SRSOUT END G START
  1. W @IOF,!,SRANAME,! F MOE=1:1:80 W "-"
  1. I X="A" S X="1:3"
  1. I X?1N1":"1N W !! D RANGE G START
  1. I $D(SRAO(X)),+X=X S EMILY=X D G START
  1. .I $$LOCK^SROUTL(SRTN) W:X<6 !! D ONE,UNLOCK^SROUTL(SRTN)
  1. END W @IOF D ^SRSKILL
  1. 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 outcome information.",!!,"2. Enter a number (1-3) to update an individual outcome element. (For",!," example, enter '1' to update all postoperative diagnosis)"
  1. W !!,"3. Enter a range of numbers (1-3) separated by a ':' to enter a range of",!," outcomes. (For example, enter '1:3' to enter postoperative diagnosis,",!," length of postoperative stay, and 30 day postoperative status)"
  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. I $$LOCK^SROUTL(SRTN) D D UNLOCK^SROUTL(SRTN)
  1. .S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT D ONE
  1. Q
  1. ONE ; edit one item
  1. K DR,DA,DIE S DR=$P(SRAO(EMILY),"^",2)_"T",DA=SRTN,DIE=130 D ^DIE K DR,DA
  1. Q