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

BIVACED.m

Go to the documentation of this file.
  1. BIVACED ;IHS/CMI/MWR - EDIT VACCINES.; MAY 10, 2010
  1. ;;8.5;IMMUNIZATION;;SEP 01,2011
  1. ;;* MICHAEL REMILLARD, DDS * CIMARRON MEDICAL INFORMATICS, FOR IHS *
  1. ;; EDIT VACCINE FIELDS: CURRENT LOT, ACTIVE, VIS DATE DEFAULT.
  1. ;
  1. ;
  1. ;
  1. ;----------
  1. START ;EP
  1. ;---> Lookup Vaccines and edit their fields.
  1. D SETVARS^BIUTL5 K ^TMP("BILMVA",$J) N BITMP
  1. ;
  1. ;---> If Vaccine Table is not standard, display Error Text and quit.
  1. I $D(^BISITE(-1)) D ERRCD^BIUTL2(503,,1) Q
  1. ;
  1. D EN
  1. D EXIT
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. EN ;EP
  1. D EN^VALM("BI VACCINE TABLE EDIT")
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. PRINT ;EP
  1. ;---> Print Vaccine Table.
  1. ;---> Called by Protocol BI VACCINE TABLE PRINT, which is the
  1. ;---> Print List Protocol for the List: BI VACCINE TABLE EDIT.
  1. ;
  1. D DEVICE(.BIPOP)
  1. I $G(BIPOP) D RESET Q
  1. ;
  1. D HDR(1),INIT^BIVACED1
  1. D PRTLST^BIUTL8("BILMVA")
  1. D RESET
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. HDR(BIPRT) ;EP
  1. ;---> Header code for both Listman Screen and Print List.
  1. ;---> Parameters:
  1. ; 1 - BIPRT (opt) If BIPRT=1 array is for print: Change column
  1. ; header line and add Site Header line.
  1. ;
  1. N BILINE,X,Y S BILINE=0 K VALMHDR
  1. N BICRT S BICRT=$S(($E($G(IOST))="C")!(IOST["BROWSER"):1,1:0)
  1. ;
  1. D WH^BIW(.BILINE)
  1. S X=$$REPHDR^BIUTL6(DUZ(2)),BIDASH=$L(X)+2 D CENTERT^BIUTL5(.X)
  1. D WH^BIW(.BILINE,X)
  1. S X=$$SP^BIUTL5(BIDASH,"-") D CENTERT^BIUTL5(.X)
  1. D WH^BIW(.BILINE,X)
  1. ;
  1. S X="VACCINE TABLE" S:'$G(BIPRT) X="EDIT "_X D CENTERT^BIUTL5(.X)
  1. S:BICRT X=IOINHI_X_IOINORM
  1. D WH^BIW(.BILINE,X)
  1. ;
  1. D:$G(BIPRT)
  1. .S X=$$SP^BIUTL5(51)_"Printed: "_$$NOW^BIUTL5()
  1. .D WH^BIW(.BILINE,X,1)
  1. .S X=" # Vaccine HL7 Active Default Lot#"
  1. .S X=X_" VIS Default Forecast"
  1. .D WH^BIW(.BILINE,X)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. INIT ;EP
  1. ;---> Initialize variables and list array.
  1. D INIT^BIVACED1
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. RESET ;EP
  1. ;---> Update partition for return to Listmanager.
  1. I $D(VALMQUIT) S VALMBCK="Q" Q
  1. D TERM^VALM0 S VALMBCK="R"
  1. D INIT,HDR() Q
  1. ;
  1. ;
  1. ;----------
  1. DEVICE(BIPOP) ;EP
  1. ;---> Get Device and possibly queue to Taskman.
  1. ;---> Parameters:
  1. ; 1 - BIPOP (ret) If error or Queue, BIPOP=1
  1. ;
  1. K %ZIS,IOP S BIPOP=0
  1. S ZTRTN="DEQUEUE^BIVACED"
  1. D ZSAVES^BIUTL3
  1. D ZIS^BIUTL2(.BIPOP,1)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. DEQUEUE ;EP
  1. ;---> Print Patient Data screen.
  1. D HDR(1),INIT^BIVACED1
  1. D PRTLST^BIUTL8("BILMVA"),EXIT
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. HELP ;EP
  1. ;---> Help code.
  1. N BIX S BIX=X
  1. D FULL^VALM1
  1. W !!?5,"Enter ""E"" to edit a Vaccine, enter ""C"" to change the order of"
  1. W !?5,"the list, ""H"" to view the full help text for the vaccine list and"
  1. W !?5,"its parameters, ""F"" to turn on/off the forecasting of vaccines"
  1. W !?5,"and enter ""P"" to print the list."
  1. D DIRZ^BIUTL3(""," Press ENTER/RETURN to continue")
  1. D:BIX'="??" RE^VALM4
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. HELP1 ;EP
  1. ;----> Explanation of this report.
  1. N BITEXT D TEXT1(.BITEXT)
  1. D START^BIHELP("EDIT VACCINE TABLE - HELP",.BITEXT)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. TEXT1(BITEXT) ;EP
  1. ;;
  1. ;;This screen allows you to edit five fields of each Vaccine.
  1. ;;To Edit a particular Vaccine, type "E", then select the left
  1. ;;column number that corresponds to the Vaccine you wish to edit.
  1. ;;
  1. ;;* Active/Inactive - If a Vaccine is set to "Inactive", users will
  1. ;; not be able to enter NEW patient immunizations for this vaccine.
  1. ;; However, previous immunizations with this Vaccine will continue
  1. ;; to show up on the patient histories.
  1. ;;
  1. ;;* Default Lot# - This is that Lot# that will be automatically
  1. ;; entered in the Lot# field for this Vaccine when users are
  1. ;; adding new immunizations for patients. The user will be able
  1. ;; to change or delete the default if it is not correct.
  1. ;;
  1. ;;* VIS Default - This is the Vaccine Information Statement (VIS)
  1. ;; Date (Date of publication--not date given to patient).
  1. ;; It gets entered automatically as in the VIS Date field
  1. ;; when users are adding new immunizations for this Vaccine.
  1. ;;
  1. ;;* Volume Default - This is the default Volume of the injection for the
  1. ;; given vaccine. It gets entered automatically as in the Volume
  1. ;; field when users are adding new immunizations for this Vaccine.
  1. ;;
  1. ;;* Forecasting - The Forecast column indicates whether a vaccine will
  1. ;; be forecast (listed as due for patients) or not. Each vaccine
  1. ;; belongs to a VACCINE GROUP, for example, the HEP A GROUP.
  1. ;; Turning OFF forecasting for the HEP A Vaccine Group will block
  1. ;; all forecasting of any vaccines that contain Hep A vaccine.
  1. ;; To change forecasting for a Vaccine Group, select the "Forecasting"
  1. ;; Action at the bottom of the screen.
  1. ;; NOTE: Combination vaccines will not be forecast specifically --
  1. ;; their component vaccines will be forecast (if the patient
  1. ;; is due). Use of the combination vaccines is an option open
  1. ;; to the provider. Inputting combination vaccines into the
  1. ;; patient's history will satisfy the requirements of the
  1. ;; component vaccines.
  1. ;;
  1. D LOADTX("TEXT1",,.BITEXT)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. LOADTX(BILINL,BITAB,BITEXT) ;EP
  1. Q:$G(BILINL)=""
  1. N I,T,X S T="" S:'$D(BITAB) BITAB=5 F I=1:1:BITAB S T=T_" "
  1. F I=1:1 S X=$T(@BILINL+I) Q:X'[";;" S BITEXT(I)=T_$P(X,";;",2)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. EXIT ;EP
  1. ;---> End of job cleanup.
  1. D KILLALL^BIUTL8()
  1. K ^TMP("BILMVA",$J)
  1. D CLEAR^VALM1
  1. D FULL^VALM1
  1. Q