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

SROAUTL2.m

Go to the documentation of this file.
  1. SROAUTL2 ;BIR/ADM - RISK ASSESSMENT UTILITY ;01/29/07
  1. ;;3.0; Surgery ;**38,47,63,88,125,153,160**;24 Jun 93;Build 7
  1. S SRZ=0 F S SRZ=$O(SRY(130,SRTN,SRZ)) Q:'SRZ D
  1. .I SRY(130,SRTN,SRZ,"I")="" D TR S X=$T(@SRP),SRFLD=$P(X,";;",2),SRX(SRZ)=$P(SRFLD,"^",2)
  1. .I SRY(130,SRTN,SRZ,"I")="NS" D TR S X=$T(@SRP),SRFLD=$P(X,";;",2),SRDT=$P(SRFLD,"^",4) S:SRDT'="" SRLR(SRDT)=""
  1. S SRDT=0 F S SRDT=$O(SRLR(SRDT)) Q:'SRDT K SRX(SRDT)
  1. Q
  1. RELATE S DFN=$P(^SRF(SRTN,0),"^"),SRDEATH=$P($G(^DPT(DFN,.35)),"^") I 'SRDEATH Q
  1. S X2=$P(^SRF(SRTN,0),"^",9),X1=SRDEATH D ^%DTC I X>90 Q
  1. S X=$P($G(^SRF(SRTN,.4)),"^",7) I X="" S SRX(903)="Death Unrelated/Related"
  1. Q
  1. TR S SRP=SRZ,SRP=$TR(SRP,"1234567890.","ABCDEFGHIJP")
  1. Q
  1. GET S X=$T(@J)
  1. Q
  1. PJC ;;.03^Major or Minor^Major or Minor^
  1. PDB ;;.42^Other Procedures^^
  1. PCG ;;.37^Anesthesia Technique^^
  1. CE ;;35^Concurrent Case^Concurrent Case^
  1. PJD ;;.04^Surgery Specialty^Surgical Specialty^
  1. BF ;;26^Principal Procedure^Principal Operation^
  1. BGJ ;;270^Preoperative Serum Sodium^Serum Sodium^304
  1. CJD ;;304^Date Preoperative Serum Sodium was Performed^^
  1. BBD ;;224^Preoperative BUN (mg/dl)^BUN^291
  1. BIA ;;291^Date Preoperative BUN was Performed^^
  1. BBC ;;223^Preoperative Serum Creatinine (mg/dl)^Serum Creatinine^290
  1. BIJ ;;290^Date Preoperative Serum Creatinine was Performed^^
  1. BBE ;;225^Preoperative Serum Albumin (g/dl)^Serum Albumin^292
  1. BIB ;;292^Date Preoperative Serum Albumin was Performed^^
  1. BBH ;;228^Preoperative Total Bilirubin (mg/dl)^Total Bilirubin^295
  1. BIE ;;295^Date Preoperative Total Bilrubin was Performed^^
  1. BBG ;;227^Preoperative SGOT (mU/ml)^SGOT^294
  1. BID ;;294^Date Preoperative SGOT was Performed^^
  1. BBI ;;229^Preoperative Alkaline Phosphatase (mU/ml)^Alkaline Phosphatase^296
  1. BIF ;;296^Date Preoperative Alkaline Phosphatase was Performed^^
  1. BCJ ;;230^Preoperative WBC (X 1000/mm3)^WBC^297
  1. BIG ;;297^Date Preoperative WBC was Performed
  1. BCD ;;234^Preoperative Hematocrit^Hematocrit^301
  1. CJA ;;301^Date Preoperative Hematocrit was Performed^^
  1. BCA ;;231^Preoperative Platelet Count (X 1000/mm3)^Platelet Count^298
  1. BIH ;;298^Date Preoperative Platelet Count was Performed^^
  1. BCC ;;233^Preoperative PTT (seconds)^PTT^300
  1. CJJ ;;300^Date Preoperative PTT was Performed^^
  1. BCB ;;232^Preoperative PT (seconds)^PT^299
  1. BII ;;299^Date Preoperative PT was Performed^^
  1. BGD ;;274^Highest Postoperative Serum Sodium^Highest Serum Sodium^305
  1. CJE ;;305^Date Highest Serum Sodium was Recorded^^
  1. DJE ;;405^Lowest Serum Sodium^Lowest Serum Sodium^407
  1. DJG ;;407^Date of Lowest Serum Sodium^^
  1. BGE ;;275^Highest Postoperative Potassium^Highest Potassium^306
  1. CJF ;;306^Date Highest Potassium was Recorded^^
  1. DJF ;;406^Lowest Postoperative Potassium^Lowest Potassium^408
  1. DJH ;;408^Date of Lowest Postoperative Potassium^^
  1. BGG ;;277^Highest Postoperative Serum Creatinine^Highest Serum Creatinine^308
  1. CJH ;;308^Date Highest Serum Creatinine was Recorded^^
  1. BGH ;;278^Highest Postoperative CPK^Highest CPK^309
  1. CJI ;;309^Date Highest CPK was Recorded^^
  1. BGI ;;279^Highest Postoperative CPK-MB^Highest CPK-MB^310
  1. CAJ ;;310^Date Highest CPK-MB Band was Recorded^^
  1. BHJ ;;280^Highest Postoperative Total Bilirubin^Highest Total Bilirubin^311
  1. CAA ;;311^Date Highest Total Bilirubin was Recorded^^
  1. BHA ;;281^Highest Postoperative WBC^Highest WBC^312
  1. CAB ;;312^Date Highest WBC was Recorded^^
  1. BHC ;;283^Lowest Postoperative Hematocrit^Lowest Hematocrit^314
  1. CAD ;;314^Date Lowest Hematocrit was Recorded^^
  1. DEE ;;455^Highest Postoperative Serum Troponin I^Highest Troponin I^455.1
  1. DEEPA ;;455.1^Date of Highest Postop Troponin I^^
  1. DEF ;;456^Highest Postoperative Serum Troponin T^Highest Troponin T^456.1
  1. DEFPA ;;456.1^Date of Highest Postop Troponin T^^
  1. DHG ;;487^Preoperative INR^INR^487.1
  1. DHGPA ;;487.1^Date Preoperative INR was Performed^^
  1. DDD ;;444^Preoperative Anion Gap^Anion Gap^444.1
  1. DDDPA ;;444.1^Date Preoperative Anion Gap was Recorded^^
  1. DDE ;;445^Highest Postoperative Anion Gap^Highest Anion Gap^445.1
  1. DDEPA ;;445.1^Date Highest Anion Gap was Recorded^^
  1. EJD ;;504^Preoperative Hemoglobin A1c^Hemoglobin A1c^504.1
  1. EJDPA ;;504.1^Date Preoperative Hemoglobin A1c was Performed^^
  1. BG ;;27^Principal Procedure Code (CPT)^Principal CPT Code^
  1. BAD ;;214^PGY of Primary Surgeon ('0' for Staff Surgeon)^PGY of Primary Surgeon^
  1. PJCE ;;.035^Case Schedule Type^Surgical Priority^
  1. APJI ;;1.09^Wound Classification^Wound Classification^
  1. APAC ;;1.13^ASA Class^ASA Classification^
  1. PBB ;;.22^Time the Operation Began^Date/Time Operation Began^
  1. PBC ;;.23^Time the Operation Ends^Date/Time Operation Ended^
  1. CDJ ;;340^Number of RBC Units Transfused^RBC Units Transfused^
  1. DDC ;;443^Intraoperative Disseminated Cancer (Y/N)^Intraoperative Disseminated Cancer^
  1. DDF ;;446^Intraoperative Ascites (Y/N)^Intraoperative Ascites
  1. FF ;;66^Principal Diagnosis Code (ICD9)^Postop Diagnosis Code (ICD9)^
  1. BDG ;;247^Length of Postoperative Stay^Length of Postoperative Hospital Stay^
  1. AJB ;;102^Reason for not Creating an Assessment^Exclusion Criteria^
  1. PJAA ;;.011^In/Out-Patient Status^Hospital Admission Status^
  1. PAFF ;;.166^Attending Code^Attending Code
  1. PBA ;;.21^Anesthesia Care Start Time^Anesthesia Start^
  1. PBD ;;.24^Anesthesia Care End Time^Anesthesia Finish^