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

SRENSCS.m

Go to the documentation of this file.
  1. SRENSCS ;BIR/SJA - ENSURING CORRECT SURGERY ;04/26/04
  1. ;;3.0; Surgery ;**129,153**;24 Jun 93;Build 11
  1. ;
  1. ; entry point called by 'AIN' x-ref of the correct surgery fields
  1. IN I X'="N"!(X'=Y) Q
  1. N SRJ,SRK,SRTN1,SRYN S SRTN1=$S($D(SRTN):SRTN,1:DA) Q:'SRTN1
  1. S SRJ=$S(+DI=71:"3;82",+DI=72:"4;83",1:"5;84")
  1. ASK D EN^DDIOL("Correct Surgery Comments should be entered when a ""NO"" response is entered.",,"!!")
  1. D FIELD^DID("130.0"_$P(SRJ,";",2),.01,"","TITLE","SRK")
  1. D EN^DDIOL("Do you want to enter "_SRK("TITLE")_" ? YES// ",,"!")
  1. R SRYN:DTIME I '$T!(SRYN["^") Q
  1. S SRYN=$E(SRYN) S:SRYN="" SRYN="Y" I SRYN["?" D HELP G ASK
  1. I "YyNn"'[SRYN D EN^DDIOL("Enter 'YES' to enter correct surgery comments now, 'NO' to quit, or '?' for more help.",,"!!") G ASK
  1. I "Nn"[SRYN Q
  1. ; edit the associated comments fields
  1. N DR,DIE,DA,DP,DC,DL,DE,DI,DIEL,DIETMP,DIFLD,DIP,DK,DM,DP,DQ,DU,DV,DW
  1. W ! S DIE=130,DA=SRTN1,DR=$P(SRJ,";",2)_"T" D ^DIE
  1. Q
  1. HELP D EN^DDIOL("Enter 'YES' to enter correct surgery comments. Enter 'NO' to quit without entering correct surgery comments.",,"!!")
  1. Q
  1. HR ;entry point called by 'AN' x-ref of the Sur Site Hair Removal Method field
  1. I X'="S"&(X'="O") Q
  1. N SRTN1,SRYN,SRSEL S SRSEL=X,SRTN1=$S($D(SRTN):SRTN,1:DA) Q:'SRTN1
  1. HRASK I SRSEL="O" D G HRC
  1. .D EN^DDIOL("Because OTHER has been selected, information must be entered into the comments",,"!!")
  1. .D EN^DDIOL("field explaining the other technique.",,"!")
  1. SH D EN^DDIOL("It has been determined that shaving the surgical site results in a greater",,"!!")
  1. D EN^DDIOL("likelihood of infection. Current best practices suggest that clippers should",,"!")
  1. D EN^DDIOL("be used instead of shaving. Whenever hair is removed by shaving, a comment must",,"!")
  1. D EN^DDIOL("be entered explaining why this process was used instead of safer techniques.",,"!")
  1. HRC ; edit the associated comments fields
  1. N DR,DIE,DA,DP,DC,DL,DE,DI,DIEL,DIETMP,DIFLD,DIP,DK,DM,DP,DQ,DU,DV,DW
  1. W ! S DIE=130,DA=SRTN1,DR=508_"T" D ^DIE
  1. Q