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

SROESNR0.m

Go to the documentation of this file.
  1. SROESNR0 ;BIR/ADM - NURSE REPORT E-SIG UTILITY ;02/27/04
  1. ;;3.0; Surgery ;**100,129,147,153**;24 Jun 93;Build 11
  1. ;** NOTICE: This routine is part of an implementation of a nationally
  1. ;** controlled procedure. Local modifications to this routine
  1. ;** are prohibited.
  1. ;
  1. ; Reference to ^TMP("CSLSUR1" supported by DBIA #3498
  1. ;
  1. VIEW N SRJ,SRCAT,SRFIELD,SRFLD,SRFILE,SRLN,SRNP,SRN,SRP,SRSUB,SRW,X,Y
  1. F SRJ=1:1 S SRFLD=$P($T(FIELD+SRJ),";;",2) Q:SRFLD="" D
  1. .S SRNP=$P(SRFLD,"^",3),SRN=$P(SRNP,";"),SRP=$P(SRNP,";",2)
  1. .S (SRSUB,X)=$P(SRFLD,"^",2),Y=$P(X,"-",2),SRFILE=$P(Y,","),SRFIELD=$P(Y,",",2)
  1. .I SRFIELD=27 Q:'$P($G(^SRF(SRTN,"TIU")),"^",6)
  1. .I SRFIELD=66 Q:'$P($G(^SRF(SRTN,"TIU")),"^",7)
  1. .S SRCAT=$P(SRFLD,"^") S SRCAT=$S(SRCAT="":SRFILE,1:SRCAT)
  1. .S SRW=$S($P(Y,";",2)["W":1,1:0) I SRW D Q
  1. ..S ^TMP("SRNRAD"_SRS,$J,SRTN,SRCAT,SRSUB,0)=$G(^SRF(SRTN,SRN,0))
  1. ..I SRS=1 S ^TMP("SRNSAVE",$J,SRTN,SRCAT,SRSUB,0)=$G(^SRF(SRTN,SRN,0))
  1. ..S SRLN=0 F S SRLN=$O(^SRF(SRTN,SRN,SRLN)) Q:'SRLN S ^TMP("SRNRAD"_SRS,$J,SRTN,SRCAT,SRSUB,SRLN)=$G(^SRF(SRTN,SRN,SRLN,0)) I SRS=1 S ^TMP("SRNSAVE",$J,SRTN,SRCAT,SRSUB,SRLN)=$G(^SRF(SRTN,SRN,SRLN,0))
  1. .S ^TMP("SRNRAD"_SRS,$J,SRTN,SRCAT,SRSUB)=$P($G(^SRF(SRTN,SRN)),"^",SRP)
  1. .I SRS=1 S ^TMP("SRNSAVE",$J,SRTN,SRCAT,SRSUB)=$P($G(^SRF(SRTN,SRN)),"^",SRP)
  1. Q
  1. REVRS ; restore before-edit data
  1. N I,SRCAT,SRCNT,SRE,SRE1,SRFF,SRFIELD,SRFILE,SRFLD,SRI,SRIEN,SRJ,SRK,SRL,SRLN,SRN,SRNP,SRP,SRSUB,SRVAL,SRW,X,Y
  1. F SRJ=1:1 S SRFLD=$P($T(FIELD+SRJ),";;",2) Q:SRFLD="" D
  1. .S SRNP=$P(SRFLD,"^",3),SRN=$P(SRNP,";"),SRP=$P(SRNP,";",2)
  1. .S (SRSUB,X)=$P(SRFLD,"^",2),Y=$P(X,"-",2),SRFILE=$P(Y,","),SRFIELD=$P(Y,",",2)
  1. .S SRCAT=$P(SRFLD,"^") S SRCAT=$S(SRCAT="":SRFILE,1:SRCAT)
  1. .Q:'$D(^TMP("SRNRAD1",$J,SRTN,130,SRSUB))
  1. .S SRW=$S($P(Y,";",2)["W":1,1:0) I SRW D Q
  1. ..K ^SRF(SRTN,SRN) S ^SRF(SRTN,SRN,0)=$G(^TMP("SRNSAVE",$J,SRTN,130,SRSUB,0))
  1. ..S SRLN=0 F S SRLN=$O(^TMP("SRNSAVE",$J,SRTN,130,SRSUB,SRLN)) Q:'SRLN S ^SRF(SRTN,SRN,SRLN,0)=$G(^TMP("SRNSAVE",$J,SRTN,130,SRSUB,SRLN))
  1. .S SRVAL=$G(^TMP("SRNSAVE",$J,SRTN,130,SRSUB)) I SRFIELD=27 D Q
  1. ..S $P(^SRF(SRTN,"OP"),"^",2)=SRVAL K DA,DIK S DA=SRTN,DIK="^SRF(",DIK(1)="27" D EN^DIK K DA,DIK
  1. ..;Set ^TMP("CSLSUR1",$J) in order to send an update trans. via Surgery/CoreFLS interface
  1. ..S ^TMP("CSLSUR1",$J)=""
  1. .I SRVAL="" S SRVAL="@"
  1. .K DA,DIE,DR S DA=SRTN,DIE=130,DR=SRFIELD_"////^S X=SRVAL" D ^DIE K DA,DIE,DR
  1. D REVRS^SROESNRA
  1. Q
  1. TR S SRP=SRI,SRP=$TR(SRP,"1234567890.,","ABCDEFGHIJPK")
  1. Q
  1. FIELD ; list of fields (^field name on report-file,field^node;piece)
  1. KPJB ;;^Operating Room-130,.02^0;2
  1. KPJCE ;;^Surgical Priority-130,.035^0;10
  1. KPBJC ;;^Time Patient Arrived in Holding Area-130,.203^.2;15
  1. KPBJE ;;^Time Patient In the O.R.-130,.205^.2;10
  1. KPBB ;;^Time the Operation Began-130,.22^.2;2
  1. KPBC ;;^Time the Operation Ends-130,.23^.2;3
  1. KPBJF ;;^Surgeon Present Time-130,.206^.2;9
  1. KPBCB ;;^Time Patient Out of the O.R.-130,.232^.2;12
  1. KPAD ;;^Surgeon-130,.14^.1;4
  1. KPAE ;;^First Assistant-130,.15^.1;5
  1. KPAFD ;;^Attending Surgeon-130,.164^.1;13
  1. KPAF ;;^Second Assistant-130,.16^.1;6
  1. KPCA ;;^Principal Anesthetist-130,.31^.3;1
  1. KPCC ;;^Assistant Anesthetist-130,.33^.3;3
  1. KPAI ;;^Preoperative Mood-130,.19^.1;9
  1. KPAIF ;;^Preoperative Consciousness-130,.196^.1;15
  1. KPJG ;;^Preoperative Skin Integrity-130,.07^0;7
  1. KPAIE ;;^Preoperative Conversation-130,.195^.1;14
  1. KPFI ;;^Person Confirming ID Band and Valid Consent-130,.69^.6;9
  1. KGA ;;^Time Out Verification Completed (Y/N)-130,71^VER;3
  1. KGB ;;^Preoperative Imaging Confirmed-130,72^VER;4
  1. KGC ;;^Mark on Surgical Site Confirmed-130,73^VER;5
  1. KGD ;;^Correct Surgery Comments-130,74;W^74;0
  1. KHB ;;^Time Out Verified Comments-130,82;W^82;0
  1. KHC ;;^Imaging Confirmed Comments-130,83;W^83;0
  1. KHD ;;^Marked Site Comments-130,84;W^84;0
  1. KPAH ;;^Skin Prepped By-130,.18^.1;8
  1. KPAGE ;;^Skin Preparation Agent-130,.175^.1;7
  1. KD ;;^Skin Prepped By (2)-130,4^.1;12
  1. KH ;;^Second Skin Preparation Agent-130,8^31;2
  1. KPAB ;;^Preop Hair Removal by-130,.12^.1;2
  1. KEJF ;;^Hair Removal Method-130,506^VER;6
  1. KEJH ;;^Hair Removal Comments-130,508;W^49;0
  1. KPGE ;;^Electrocautery Unit-130,.75^.7;5
  1. KPEE ;;^Electroground Placement-130,.55^.5;4
  1. KF ;;^Electroground Position (2)-130,6^.5;13
  1. KEG ;;^ESU Coagulation Range-130,57^.7;1
  1. KEGC ;;^ESU Cutting Range-130,58^.7;2
  1. KPJC ;;^Major or Minor-130,.03^0;3
  1. KBF ;;^Principal Procedure-130,26^OP;1
  1. KBG ;;^Principal CPT Code-130,27^OP;2
  1. KFF ;;^Principal Diagnosis Code-130,66^34;2
  1. KBB ;;^Tubes and Drains-130,22^3;1
  1. KDD ;;^Final Sponge Count Correct (Y/N)-130,44^25;1
  1. KDE ;;^Final Sharps Count Correct (Y/N)-130,45^25;2
  1. KDF ;;^Final Instrument Count Correct (Y/N)-130,46^25;3
  1. KDG ;;^Person Responsible for Final Counts-130,47^25;4
  1. KDH ;;^Count Verifier-130,48^25;5
  1. KDA ;;^Dressing(s)-130,41^35;1
  1. KPHGE ;;^Packing Type-130,.875^.8;11
  1. KPBE ;;^Intraoperative Blood Loss (ml)-130,.25^.2;5
  1. KPBEE ;;^Total Urine Output (ml)-130,.255^.2;16
  1. KPHA ;;^Postoperative Mood-130,.81^.8;1
  1. KPHBA ;;^Postoperative Consciousness-130,.821^.8;10
  1. KPGF ;;^Postoperative Skin Integrity-130,.76^.7;6
  1. KPGG ;;^Postoperative Skin Color-130,.77^.7;7
  1. KABH ;;^Type of Laser-130,128^.7;8
  1. KABG ;;^Sequential Compression Device (Y/N)-130,127^.7;3
  1. KAPJI ;;^Wound Classification-130,1.09^1.0;8
  1. KPDF ;;^Postoperative Disposition-130,.46^.4;6
  1. KBE ;;^Patient Discharged Via-130,25^.7;4
  1. KACA ;;^Device(s)-130,131^46;1
  1. KDI ;;^Specimens-130,49;W^9;0
  1. KFD ;;^Cultures-130,64;W^41;0
  1. KPBI ;;^Nursing Care Comments-130,.29;W^7;0