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 ;11/01/2011
  1. ;;3.0;Surgery;**100,129,147,153,175,176,182,184,200**;24 Jun 93;Build 9
  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 Procedure Performed-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 ;;^Primary 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. KFJJ ;;^Confirm Correct Patient Identity-130,600^VER;7
  1. KFJA ;;^Confirm Procedure To Be Performed-130,601^VER;8
  1. KFJB ;;^Confirm Site of Procedure, Including Laterality-130,602^VER;9
  1. KFJC ;;^Confirm Valid Consent Form-130,603^VER;10
  1. KFJD ;;^Confirm Patient Position-130,604^VER;11
  1. KFJE ;;^Confirm Proc. Site has been Marked Appropriately and the Site of the Mark is Visible After Prep-130,605^VER;12
  1. KFJF ;;^Pertinent Medical Images Have Been Confirmed-130,606^VER;13
  1. KFJG ;;^Correct Medical Implant(s) is Available-130,607^VER;14
  1. KFJH ;;^Appropriate Antibiotic Prophylaxis-130,608^VER;15
  1. KFJI ;;^Appropriate Deep Vein Thrombosis Prophylaxis-130,609^VER;16
  1. KFAJ ;;^Blood Availability-130,610^VER;17
  1. KFAA ;;^Availability of Special Equipment-130,611^VER;18
  1. KHE ;;^Checklist Comment-130,85;W^51;0
  1. KPFI ;;^Time Out Document Completed By-130,.69^.6;9
  1. KPF ;;^Time Out Completed-130,74^.6;12
  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. 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 ;;^Sponge Final Count Correct-130,44^25;1
  1. KDE ;;^Sharps Final Count Correct-130,45^25;2
  1. KDF ;;^Instrument Final Count Correct-130,46^25;3
  1. KFCJ ;;^Possible Item Retention-130,630^25;6
  1. KFCC ;;^Wound Sweep-130,633^25;7
  1. KFCF ;;^Intraoperative XRay-130,636^25;8
  1. KAPAC ;;^ASA Class-130,1.13^1.1;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
  1. KFAI ;;^Immed Use Steril Contamination-130,619^52;1
  1. KFBJ ;;^Immed Use Steril SPS Processing/OR Management Issues-130,620^52;2
  1. KFBA ;;^Immed Use Steril Emergency Case-130,621^52;3
  1. KFBB ;;^Immed Use Steril No Better Option-130,622^52;4
  1. KFBC ;;^Immed Use Steril Loaner or Short Notice Instrument-130,623^52;5
  1. KFBD ;;^Immed Use Steril Decontamination of Instruments Contaminated During the Case-130,624^52;6
  1. KFDH ;;^UNOS Identification Number of Donor-130,648^VER1;2
  1. KFDI ;;^Donor Serology Hepatitis C virus (HCV)-130,649^VER1;3
  1. KFEJ ;;^Donor Serology Hepatitis B Virus (HBV)-130,650^VER1;4
  1. KFEA ;;^Donor Serology Cytomegalovirus (CMV)-130,651^VER1;5
  1. KFEB ;;^Donor Serology HIV-130,652^VER1;6
  1. KFEC ;;^Donor ABO Type-130,653^VER1;7
  1. KFED ;;^Recipient ABO Type-130,654^VER1;8
  1. KFEE ;;^Blood Bank Verification of ABO Type-130,655^VER1;9
  1. KGDF ;;^Blood Bank Abo Ver Comments-130,746^VER1;18
  1. KFEF ;;^OR Verification of ABO Type-130,656^VER1;10
  1. KGDH ;;^OR ABO Verification Comments-130,748^VER1;20
  1. KFEG ;;^Surgeon Performing UNET Verification-130,657^VER1;11
  1. KFEH ;;^Organ Verification Prior to Anesthesia-130,658^VER1;12
  1. KFEI ;;^Surgeon Verifying Organ Prior to Donor Anesthesia-130,659^VER1;13
  1. KFFJ ;;^Organ Verification Prior to Transplant-130,660^VER1;14
  1. KFFC ;;^Donor Vessel Usage-130,663^VER1;15
  1. KFFE ;;^Donor Vessel Disposition if not used-130,665^VER1;16
  1. KGDG ;;^Date/Time of Blood Bank ABO Verification-130,747^VER1;19
  1. KGDI ;;^Date/Time OR ABO Verification-130,749^VER1;21
  1. KGEJ ;;^UNET Verification by Surgeon-130,750^VER1;22
  1. KGEA ;;^Surgeon Verifying Organ Prior to Anesthesia-130,751^VER1;23
  1. KGEB ;;^Donor Organ Verification Prior to Anesthesia-130,752^VER1;24
  1. KGEC ;;^Surgeon Verifying the Organ Prior to Transplant-130,753^VER1;25
  1. KBJJF ;;^Robotic Assistance (Y/N)-130,2006^OP;3