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

BIUTL7.m

Go to the documentation of this file.
  1. BIUTL7 ;IHS/CMI/MWR - UTIL: SCREENMAN CODE; MAY 10, 2010
  1. ;;8.5;IMMUNIZATION;**12**;MAY 01,2016
  1. ;;* MICHAEL REMILLARD, DDS * CIMARRON MEDICAL INFORMATICS, FOR IHS *
  1. ;; SCREENMAN RELATED CODE TO LOAD & SAVE: VISIT, CASE DATA, CONTRAS.
  1. ;; PATCH 9: Added Preload of Admin Date and VIS Presented Date. LOADVIS+70
  1. ;; Added save of Admin Date and VIS Presented Date. SAVISIT+41
  1. ;; PATCH 10: Added Preload of Skin Test Lot Number. LOADVIS+92
  1. ;; Added save of Skin Test Lot Number. SAVISIT+46
  1. ;; PATCH 12: Adjust test for External form of date, LOADVIS+65
  1. ;; and Inj Site not req'd if Cat=Historical.
  1. ;
  1. ;
  1. ;----------
  1. LOADVIS(BIVTYPE) ;EP
  1. ;---> Code to load Visit data for ScreenMan Edit form.
  1. ;---> Called by Pre Action of Block BI BLK-IMM VISIT ADD/EDIT or
  1. ;---> BI BLK-SKIN VISIT ADD/EDIT of Forms BI FORM-IMM VISIT ADD/EDIT
  1. ;---> or BI FORM-SKIN VISIT ADD/EDIT, respectively.
  1. ;---> Parameters:
  1. ; 1 - BIVTYPE (req) "I"=Immunization Visit, "S"=Skin Text Visit.
  1. ;
  1. ;---> If BIVTYPE does not="I" (Imm Visit) and it does
  1. ;---> not="S" (Skin Test Visit), then set Error Code and quit.
  1. I ($G(BIVTYPE)'="I")&($G(BIVTYPE)'="S") D ERRCD^BIUTL2(410,,1) Q
  1. ;
  1. ;
  1. ;---> If this is an old Visit, load data for Screenman.
  1. D:$G(BI("K"))
  1. .;
  1. .;---> IMMUNIZATIONS *
  1. .D:BIVTYPE="I"
  1. ..;
  1. ..;---> Load the Vaccine.
  1. ..D:$G(BI("B"))
  1. ...;---> Load Vaccine Name and display Short Name below (if different).
  1. ...D PUT^DDSVALF(2,,,BI("B"),"I")
  1. ...D VSHORT(BI("B"))
  1. ..;
  1. ..;---> Load Lot Number IEN, and display Lot data (Amount and Exp Date).
  1. ..I $G(BI("D")) D
  1. ...D PUT^DDSVALF(3,,,BI("D"),"I")
  1. ...D LOTDAT(BI("D"))
  1. ..;
  1. ..;---> Make Dose Override editable (Screenman Field "Disable Editing"
  1. ..;---> is set to "YES" by default when the form is loaded.)
  1. ..D UNED^DDSUTL(14,,,0)
  1. ..;---> Load Dose Override if there is one.
  1. ..I $G(BI("S")) D PUT^DDSVALF(14,,,BI("S"),"I")
  1. ..;
  1. ..;
  1. ..;---> Make Reaction editable (Screenman Field "Disable Editing"
  1. ..;---> is set to "YES" by default when the form is loaded.)
  1. ..D UNED^DDSUTL(13,,,0)
  1. ..;---> Load Immunization Reaction.
  1. ..I $G(BI("O")) D PUT^DDSVALF(13,,,BI("O"),"I")
  1. ..;
  1. ..;---> Load the Injection Site.
  1. ..I $G(BI("T"))]"" D PUT^DDSVALF(4,,,BI("T"),"I")
  1. ..;
  1. ..;---> Release/Rev Date of VIS (DD-Mmm-YYYY).
  1. ..I $G(BI("Q"))>1 D PUT^DDSVALF(10,,,BI("Q"),"E")
  1. ..;
  1. ..;---> Load the Volume, add leading zero to Volume if necessary.
  1. ..I $G(BI("W")) D PUT^DDSVALF(5,,,$$LEADZ^BIUTL5(BI("W")),"E")
  1. ..;
  1. ..;---> Load Imported from Outside Source, if=1 (display "edited" if=2).
  1. ..I $G(BI("Y")) D PUT^DDSVALF(15,,,"*Imported"_$S(BI("Y")=2:" (edited)*",1:"*"))
  1. ..;
  1. ..;---> Load VFC Elig if Native and <19.
  1. ..D VFCSET^BIUTL8
  1. ..;
  1. ..;---> Load NDC Code.
  1. ..I $G(BI("H"))]"" D PUT^DDSVALF(3.8,,,BI("H"),"I")
  1. ..;
  1. ..;
  1. ..;********** PATCH 9, v8.5, OCT 01,2014, IHS/CMI/MWR
  1. ..;---> Preload Admin Date and Date VIS Presented.
  1. ..;********** PATCH 12, v8.5, MAY 01,2016, IHS/CMI/MWR
  1. ..;---> Adjust test for External form of date.
  1. ..;I $G(BI("EE"))>1 D PUT^DDSVALF(1.5,,,BI("EE"),"E")
  1. ..;I $G(BI("QQ"))>1 D PUT^DDSVALF(10.2,,,BI("QQ"),"E")
  1. ..I $G(BI("EE"))]"" D PUT^DDSVALF(1.5,,,BI("EE"),"E")
  1. ..I $G(BI("QQ"))]"" D PUT^DDSVALF(10.2,,,BI("QQ"),"E")
  1. ..;
  1. ..;---> If Category is Historical Event, set Inj Site AND Volume NOT Required.
  1. ..I $G(BI("I"))="E" D REQ^DDSUTL(4,"","",0),REQ^DDSUTL(5,"","",0)
  1. ..;**********
  1. .;
  1. .;---> SKIN TESTS *
  1. .D:BIVTYPE="S"
  1. ..;
  1. ..;---> Load the Skin Test.
  1. ..D:$G(BI("B")) PUT^DDSVALF(2,,,BI("B"),"I")
  1. ..;
  1. ..;---> Load Skin Test Result.
  1. ..I $G(BI("L"))]"" D PUT^DDSVALF(3,,,$E(BI("L")),"I")
  1. ..;
  1. ..;---> Load Skin Test Reading.
  1. ..I $G(BI("M"))'="" D PUT^DDSVALF(4,,,BI("M"),"I")
  1. ..;
  1. ..;---> Load Skin Test Date Read.
  1. ..I $D(BI("N")) D PUT^DDSVALF(5,,,BI("N"),"E")
  1. ..;
  1. ..;---> If Reader already stored previously, load it.
  1. ..I $G(BI("X")) D PUT^DDSVALF(10,,,BI("X"),"I")
  1. ..;
  1. ..;---> Load the Injection Site.
  1. ..I $G(BI("T"))]"" D PUT^DDSVALF(2.4,,,BI("T"),"I")
  1. ..;
  1. ..;---> Load the Volume.
  1. ..I $G(BI("W"))]"" D PUT^DDSVALF(2.8,,,BI("W"),"I")
  1. ..;
  1. ..;********** PATCH 10, v8.5, MAY 30,2015, IHS/CMI/MWR
  1. ..;---> Preload Skin Test Lot Number.
  1. ..I $G(BI("LL"))>1 D PUT^DDSVALF(2.9,,,BI("LL"),"I")
  1. ..;**********
  1. .;
  1. .;
  1. .;---> If there is text for Other Location:
  1. .D:$G(BI("G"))]""
  1. ..;---> Set Location Type to Other.
  1. ..D PUT^DDSVALF(6,,,"O","I")
  1. ..;---> Make IHS Loc uneditable and null (ADD+12^BIVISIT will handle).
  1. ..D UNED^DDSUTL(7,,,1),PUT^DDSVALF(7)
  1. ..;---> Load Other Loc text and make editable.
  1. ..D PUT^DDSVALF(8,,,BI("G")),UNED^DDSUTL(8,,,0)
  1. ..;---> Make Other Loc required, IHS Loc not required.
  1. ..D REQ^DDSUTL(8,,,1),REQ^DDSUTL(7,,,0)
  1. .;
  1. .;---> If Other Loc is null and IHS Loc is set, load it.
  1. .I $G(BI("G"))="" I $G(BI("F")) D
  1. ..D PUT^DDSVALF(7,,,BI("F"),"I")
  1. .;
  1. .;---> Load Category.
  1. .I $G(BI("I"))]"" D PUT^DDSVALF(11,,,BI("I"),"I")
  1. ;
  1. ;---> Load default date.
  1. D
  1. .N X S X=$G(BI("E"))
  1. .Q:X=""
  1. .S:X[" @12:00" X=$P(X," @")
  1. .D PUT^DDSVALF(1,,,X,"E")
  1. ;
  1. ;---> Load default site.
  1. D DEFSITE^BIUTL4
  1. S BI("F")=$$GET^DDSVALF(7),BI("I")=$$GET^DDSVALF(11)
  1. ;
  1. ;---> If this is an Immunization, load VFC Eligibility and Local Text.
  1. I BIVTYPE="I",$G(BI("P"))]"" D PUT^DDSVALF(10.5,,,BI("P"),"I"),ELIGLAB^BIUTL8(BI("P"))
  1. ;
  1. ;---> If Provider already stored previously, load it and quit.
  1. I $G(BI("R")) D PUT^DDSVALF(9,,,BI("R"),"I") Q
  1. ;
  1. ;---> If this is a new Skin Test, load default volume of .1 ml.
  1. I BIVTYPE="S",'$G(BI("K")) S BI("W")=.1 D PUT^DDSVALF(2.8,,,BI("W"),"I")
  1. ;
  1. ;---> If this is a new Visit, and if Site Parameter is yes, and
  1. ;---> if the User is a provider, then load User as default Provider.
  1. I '$G(BI("K")),$$DEFPROV^BIUTL6($G(DUZ(2))) D
  1. .I $D(^XUSEC("PROVIDER",DUZ)) D
  1. ..;
  1. ..;---> Same as NOPROV (see below).
  1. ..Q:('$G(BI("K"))&($G(BI("I"))="E"))
  1. ..;
  1. ..;---> To set default provider into local BI array, even if the
  1. ..;---> user doesn't <return> past the provider field on the screen.
  1. ..D PUT^DDSVALF(9,,,$G(DUZ),"I") S BI("R")=$G(DUZ)
  1. ;
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. NOPROV(X) ;EP
  1. ;---> Called by Post Action field of Field 11 on BI FORM-IMM VISIT ADD/EDIT
  1. ;---> and BI FORM-SKIN VISIT ADD/EDIT.
  1. ;---> If adding a new immunization and user changes Category to
  1. ;---> "E" (Hist Event), then remove default user/provider from Field 9.
  1. ;---> Parameters:
  1. ; 1 - X Value of Field 11, Category (A, E or I).
  1. I X="E" I '$G(BI("K")) D PUT^DDSVALF(9,,,"") S BI("R")=""
  1. Q
  1. ;
  1. ;********** PATCH 9 & 12, v8.5, OCT 01,2014 & May 01,2016 IHS/CMI/MWR
  1. ;---> Next 6 calls moved to BIUTL9 for space (<15000k).
  1. ;
  1. ;----------
  1. REASCHK ;EP
  1. ;---> See BIUTL9.
  1. D REASCHK^BIUTL9
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. READCHK ;EP
  1. ;---> See BIUTL9.
  1. D READCHK^BIUTL9
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. READCH6 ;EP
  1. ;---> See BIUTL9.
  1. D READCH6^BIUTL9
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. CREASCHK ;EP
  1. ;---> See BIUTL9.
  1. D CREASCHK^BIUTL9
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. LOTDAT(X) ;EP
  1. ;---> See BIUTL9.
  1. D LOTDAT^BIUTL9(X)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. VSHORT(X) ;EP
  1. ;---> See BIUTL9.
  1. D VSHORT^BIUTL9(X)
  1. Q
  1. ;**********
  1. ;
  1. ;
  1. ;----------
  1. LOTWARN(BILIEN,BIVDATE,BILOC) ;EP
  1. ;---> Called by Branching Logic field of Field 3 on BI FORM-IMM VISIT ADD/EDIT.
  1. ;---> Display Lot Exp Date and Remaining Balance (if tracked).
  1. ;---> Parameters:
  1. ; 1 - BILIEN (req) IEN of Lot Number in ^AUTTIML.
  1. ; 2 - BIVDATE (req) Date of Imm Visit.
  1. ; 3 - BILOC (req) Location of Encounter.
  1. ;
  1. Q:'$G(BILIEN) Q:'$D(^AUTTIML(BILIEN,0))
  1. N BIEXP,BILOW S (BIEXP,BILOW)=0
  1. ;
  1. D
  1. .N X S X=$$LOTRBAL^BIRPC3(BILIEN)
  1. .;---> Do not alert if this Lot is not tracked. vvv83
  1. .Q:(X="Not tracked")
  1. .I X<$$LOTLOW^BIUTL2(BILIEN,BILOC) S BILOW=1
  1. ;
  1. D
  1. .N X S X=$$LOTEXP^BIRPC3(BILIEN,2)
  1. .;---> Do not warn if this Lot has no expiration date.
  1. .Q:('X)
  1. .I BIVDATE>X S BIEXP=1
  1. ;
  1. I (BILOW&BIEXP) S DDSSTACK="BI PAGE-EXPIRED AND LOW" Q
  1. I BILOW S DDSSTACK="BI PAGE-LOW SUPPLY ALERT"
  1. I BIEXP S DDSSTACK="BI PAGE-LOT EXPIRED"
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. SAVISIT(BIVTYPE,BI) ;EP
  1. ;---> Called by BIPATVW2 to save data after exiting Screenman Forms
  1. ;---> BI FORM-IMM VISIT ADD/EDIT and BI FORM-SKIN VISIT ADD/EDIT.
  1. ;---> Parameters:
  1. ; 1 - BIVTYPE (req) "I"=Immunization Visit, "S"=Skin Text Visit.
  1. ; 2 - BI (req) Local array of data elements for this visit.
  1. ;
  1. N BI31 S BI31=$C(31)_$C(31)
  1. ;
  1. ;---> If BIVTYPE does not="I" (Immunization Visit) and it does
  1. ;---> not="S" (Skin Test Visit), then set Error Code and quit.
  1. I ($G(BIVTYPE)'="I")&($G(BIVTYPE)'="S") D ERRCD^BIUTL2(410,,1) Q
  1. ;
  1. N A,B,BIDATA,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,V,W,X,Y,Z,EE,QQ,LL S V="|"
  1. ;
  1. S A=$G(BI("A")) ;Patient DFN.
  1. S B=$G(BI("B")) ;Vaccine or Skin Test IEN.
  1. S C=$G(BI("C")) ;Dose Override.
  1. S D=$G(BI("D")) ;Lot Number IEN.
  1. S E=$G(BI("E")) ;Date of Visit.
  1. S F=$G(BI("F")) ;Location of Encounter IEN.
  1. S G=$G(BI("G")) ;Other Location of Encounter Text.
  1. S H=$G(BI("H")) ;NDC Code Pointer.
  1. S I=$G(BI("I")) ;Catgegory of Visit (A,E,I).
  1. S J=$G(BI("J")) ;Visit IEN
  1. S K=$G(BI("K")) ;Old Visit IEN (for edits).
  1. S L=$G(BI("L")) ;Skin Test Result.
  1. S M=$G(BI("M")) ;Skin Test Reading (mm).
  1. S N=$G(BI("N")) ;Skin Test Date Read.
  1. S O=$G(BI("O")) ;Immunization Reaction
  1. S P=$G(BI("P")) ;VFC Elilgibility
  1. S Q=$G(BI("Q")) ;Release/Revision Date of VIS (DD-Mmm-YYYY).
  1. S R=$G(BI("R")) ;IEN of Provider of Imm/Skin Test.
  1. S S=$G(BI("S")) ;Dose Override.
  1. S T=$G(BI("T")) ;Injection Site.
  1. S W=$G(BI("W")) ;Volume.
  1. S X=$G(BI("X")) ;IEN of Reader (Provider) of Skin Test.
  1. S Z=$G(BI("Z")) ;DUZ(2) for Site Parameters.
  1. S Y=$G(BI("Y")) ;If Y=1, this was a previously imported Imm;
  1. ; now it needs to =2 ("Imported (edited)").
  1. ;
  1. ;********** PATCH 9, v8.5, OCT 01,2014, IHS/CMI/MWR
  1. ;---> Add Admin Date and VIS Presented Date to data being saved.
  1. S EE=$G(BI("EE")) ;Admin Date (Date shot admin'd to patient.
  1. S QQ=$G(BI("QQ")) ;Date VIS Presented to Patient.
  1. ;
  1. ;********** PATCH 10, v8.5, MAY 30,2015, IHS/CMI/MWR
  1. ;---> Add Skin Test Lot Number.
  1. S LL=$G(BI("LL"))
  1. ;
  1. ;---> Check Site IEN for parameters.
  1. S:'$G(Z) Z=$G(DUZ(2))
  1. I '$G(Z) D ERRCD^BIUTL2(105,,1) Q
  1. ;---> Piece: 2 3 4 5 6 7 8 9 10 11
  1. S BIDATA=BIVTYPE_V_A_V_B_V_C_V_D_V_E_V_F_V_G_V_I_V_J_V_K
  1. ;---> NOTE: Y will be pc 25 (not 24) because BIRPC6 feeds CPT Import to pc 24.
  1. ;---> Add pieces 27-29.
  1. ;---> Add piece 30.
  1. ;---> Piece: 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
  1. S BIDATA=BIDATA_V_L_V_M_V_N_V_O_V_P_V_Q_V_R_V_S_V_T_V_W_V_X_V_Z_V_V_Y_V_H_V_V_EE_V_QQ_V_LL
  1. ;
  1. ;**********
  1. ;
  1. ;---> Call RPC to save visit to PCC Files.
  1. D ADDEDIT^BIRPC3(.BIERR,BIDATA)
  1. ;
  1. ;---> If an error is passed back, display it.
  1. S BIERR=$P(BIERR,BI31,2)
  1. D:BIERR]""
  1. .W !!," * ",BIERR,!?3,"NO Changes made! (Visit NOT added/edited.)"
  1. .D DIRZ^BIUTL3()
  1. ;
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. SAVCONTR(BI,BIERR) ;EP
  1. ;---> Called by BIPATCO2 to save data after exiting Screenman Form
  1. ;---> BI FORM-CONTRAINDICATION ADD/EDIT.
  1. ;---> Parameters:
  1. ; 1 - BI (req) Local array of data elements for this contra.
  1. ; 1 - BIERR (ret) Text of Error Code if any, otherwise null.
  1. ;
  1. N BI31 S BI31=$C(31)_$C(31)
  1. N A,B,C,D,N,V S V="|"
  1. ;
  1. S A=$G(BI("A")) ;Patient DFN.
  1. S B=$G(BI("B")) ;Vaccine IEN (^AUTTIMM).
  1. S C=$G(BI("C")) ;Contra Reason IEN (^BICONT).
  1. S D=$G(BI("D")) ;Date Noted.
  1. S N=$G(BI("N")) ;If this was an Edit, N=1 (otherwise null/0).
  1. ;
  1. D ADDCONT^BIRPC4(.BIERR,A_V_B_V_C_V_D_V_N)
  1. ;
  1. ;---> If an error is passed back, display it.
  1. S BIERR=$P(BIERR,BI31,2)
  1. D:BIERR]""
  1. .W !!," * ",BIERR,!?3,"Contraindication NOT added!" D DIRZ^BIUTL3()
  1. ;
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. LDCONTR ;EP
  1. ;---> Code to load Contraindication data for ScreenMan Edit form.
  1. ;---> Called by Pre Action of Block BI BLK-CONTRAINDICATION ADD
  1. ;---> of Form BI FORM-CONTRAIND ADD/EDIT
  1. ;
  1. ;
  1. Q:'$G(BIDFN)
  1. Q:'$G(BI("N"))
  1. ;
  1. ;---> Load Vaccine Name.
  1. I $G(BI("B"))]"" D PUT^DDSVALF(1,,,BI("B"),"I")
  1. ;
  1. ;---> Make Vaccine Name uneditable.
  1. D UNED^DDSUTL(1,,,1)
  1. ;
  1. ;---> Load Reaspm.
  1. I $G(BI("C"))]"" D PUT^DDSVALF(4,,,BI("C"),"E")
  1. ;
  1. ;---> Load Date.
  1. I $G(BI("D"))]"" D PUT^DDSVALF(5,,,BI("D"),"E")
  1. ;
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. LOADCAS ;EP
  1. ;---> Code to load Case Data for a patient for ScreenMan Edit form.
  1. ;---> Called by Pre Action of Block BI BLK-CASE DATE EDIT on
  1. ;---> Form BI FORM-CASE DATA EDIT.
  1. ;
  1. Q:'$G(BIDFN)
  1. ;
  1. ;---> Load Patient's Case Manager or default Case Manager.
  1. D
  1. .I $G(BI("B"))]"" D PUT^DDSVALF(1,,,BI("B"),"E") Q
  1. .Q:'$G(DUZ(2))
  1. .N BIX S BIX=$$CMGRDEF^BIUTL2(DUZ(2))
  1. .D:BIX PUT^DDSVALF(1,,,BIX,"I")
  1. ;
  1. ;---> Load Parent/Guardian.
  1. I $G(BI("C"))]"" D PUT^DDSVALF(2,,,BI("C"),"E")
  1. ;
  1. ;---> Load Mother's HBsAG Status.
  1. I $G(BI("D"))]"" D PUT^DDSVALF(7,,,BI("D"),"I")
  1. ;
  1. ;---> Load Date Patient became Inactive.
  1. I $G(BI("E"))]"" D PUT^DDSVALF(4,,,BI("E"),"E")
  1. ;
  1. ;---> Load Reason for Inactive.
  1. I $G(BI("F"))]"" D PUT^DDSVALF(5,,,BI("F"),"I")
  1. ;
  1. ;---> Load Other Info.
  1. I $G(BI("G"))]"" D PUT^DDSVALF(3,,,BI("G"),"E")
  1. ;
  1. ;---> Load Forecast Influ/Pneumo.
  1. I $G(BI("H"))]"" D PUT^DDSVALF(6,,,BI("H"),"I")
  1. ;
  1. ;---> Load Moved to/Tx Elsewhere.
  1. I $G(BI("I"))]"" D PUT^DDSVALF(5.5,,,BI("I"),"E")
  1. ;
  1. ;---> Load Consent State Registry.
  1. I $G(BI("K"))]"" D PUT^DDSVALF(8,,,BI("K"),"E")
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. SAVCAS ;EP
  1. ;---> Code to save Case Data exiting from Screenman.
  1. ;---> Called by Post Save Action of Form BI FORM-CASE DATA EDIT.
  1. ;
  1. N BI31 S BI31=$C(31)_$C(31)
  1. N A,B,C,D,DATA,E,F,G,H,I,J,K,U S U="^"
  1. ;
  1. S A=$G(BI("A")) ;Patient DFN.
  1. S B=$G(BI("B")) ;Case Manager's name, text.
  1. S C=$G(BI("C")) ;Parent or Guardian, text.
  1. S D=$G(BI("D")) ;Mother's HBsAG Status (P,N,A,U).
  1. S E=$G(BI("E")) ;Date Pat became Inactive (ext format).
  1. S F=$G(BI("F")) ;Reason for Inactive.
  1. S G=$G(BI("G")) ;Other Info.
  1. S H=$G(BI("H")) ;Forecast Influ/Pneumo.
  1. S I=$G(BI("I")) ;Location Moved or Tx Elsewhere.
  1. S K=$G(BI("K")) ;State Registry Consent.
  1. ;
  1. I E]"" S J=$G(DUZ) ;IEN of User who Inactivated this patient.
  1. ;
  1. S DATA=A_U_B_U_C_U_D_U_E_U_F_U_G_U_H_U_I_U_$G(J)_U_K
  1. ;
  1. ;---> Store edits to database.
  1. D EDITCAS^BIRPC4(.BIERR,DATA)
  1. ;
  1. ;---> If an error is passed back, display it.
  1. S BIERR=$P(BIERR,BI31,2)
  1. D:BIERR]""
  1. .W !!," * ",BIERR,!?3,"Edits to Patient Case Data not saved!"
  1. .D DIRZ^BIUTL3()
  1. ;
  1. Q