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

BIVTAB.m

Go to the documentation of this file.
  1. BIVTAB ;IHS/CMI/MWR - VIEW VACCINE TRANSLATION TABLE; MAY 10, 2010
  1. ;;8.5;IMMUNIZATION;;SEP 01,2011
  1. ;;* MICHAEL REMILLARD, DDS * CIMARRON MEDICAL INFORMATICS, FOR IHS *
  1. ;; VIEW VACCINE TRANSLATION TABLE THROUGH LISTMANAGER.
  1. ;
  1. ;----------
  1. START ;EP
  1. D SETVARS^BIUTL5 K ^TMP("BIVTAB",$J) N BITMP,DIR
  1. D EN
  1. D FULL^VALM1
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. EN ;EP
  1. ;---> Main entry point for option BI REPORT VACCINE TRANSLAT.
  1. D EN^VALM("BI VACCINE TRANS TABLE VIEW")
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. HDR ;EP
  1. ;---> Header code
  1. N BIDASH,BILINE,X,Y S BILINE=0
  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. S X="VACCINE TRANSLATION TABLE" D CENTERT^BIUTL5(.X)
  1. D WH^BIW(.BILINE,X)
  1. S X=" OLD"
  1. D WH^BIW(.BILINE,X)
  1. S X=" IHS OLD NEW HL7 HL7"
  1. D WH^BIW(.BILINE,X)
  1. S X=" CODE SHORT NAME SHORT NAME CODE NEW HL7 LONG NAME"
  1. D WH^BIW(.BILINE,X)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. INIT ;EP
  1. ;---> Initialize variables and list array.
  1. ;
  1. S VALMSG="Enter ?? for more actions."
  1. S VALM("TITLE")=" (Immunization v"_$$VER^BILOGO_")"
  1. ;
  1. N BIN,I
  1. ;
  1. S BIN=0
  1. F S BIN=$O(^BITO(BIN)) Q:'BIN D
  1. .N BI0,BIY S BI0=^BITO(BIN,0)
  1. .;---> Old IHS Code.
  1. .S BI0(1)=$P(BI0,U,3)
  1. .;---> Old Short Name.
  1. .S BI0(2)=$P(BI0,U,2)
  1. .;---> Get pointer to new HL7 Vaccine entry.
  1. .S BI0(3)=$P(BI0,U,20)
  1. .;---> New HL7 Short Name.
  1. .S BI0(4)=$$VNAME^BIUTL2(BI0(3))
  1. .;---> New HL7 Code.
  1. .S BI0(5)=$$CODE^BIUTL2(BI0(3))
  1. .;---> New HL7 Long Name.
  1. .S BI0(6)=$$VNAME^BIUTL2(BI0(3),1)
  1. .;
  1. .;---> Set formatted line in ^TMP for Listman to display.
  1. .S BIY=" "_BI0(1)_" "_$$PAD^BIUTL5(BI0(2),15,".")
  1. .S BIY=BIY_$$PAD^BIUTL5(BI0(4),13,".")_$J(BI0(5),3)
  1. .S BIY=BIY_" "_$E(BI0(6),1,36)
  1. .;
  1. .S BITMP("BIVTAB",BI0(2))=BIY
  1. ;
  1. S BIN=0
  1. F I=1:1 S BIN=$O(BITMP("BIVTAB",BIN)) Q:BIN="" D
  1. .S ^TMP("BIVTAB",$J,I,0)=BITMP("BIVTAB",BIN)
  1. ;
  1. S VALMCNT=I-1
  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. HELP ;EP
  1. ;---> Help code.
  1. N BIX S BIX=X
  1. D FULL^VALM1
  1. D TITLE^BIUTL5("VACCINE TRANSLATION TABLE - HELP")
  1. D TEXT1,DIRZ^BIUTL3()
  1. D:BIX'="??" RE^VALM4
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. TEXT1 ;EP
  1. ;;With the installation of Immunization v7.0, new vaccines were
  1. ;;added to the Vaccine Table and several non-standard vaccines were
  1. ;;translated to new standard names. More importantly, the old IHS
  1. ;;Codes for vaccines were translated to their equivalent HL7 Codes.
  1. ;;
  1. ;;This list, the Vaccine Translation Table, shows how the old IHS
  1. ;;Vaccine Table on your computer was converted to the new HL7 Table.
  1. ;;The list DOES NOT contain all of the new vaccines that are now
  1. ;;in your Vaccine Table--it only shows how the old Vaccines were
  1. ;;translated to the new HL7 Vaccine Table. (The entire new Vaccine
  1. ;;Table may be viewed/printed under the Manager Menu, MGR-->VAC.)
  1. ;;
  1. ;;It may be helpful to print this list, initially, for people who
  1. ;;were previously using the old IHS Codes for Data Entry. This will
  1. ;;show them which HL7 Codes should now be used instead.
  1. ;
  1. D PRINTX("TEXT1")
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. PRINTX(BILINL,BITAB) ;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'[";;" W !,T,$P(X,";;",2)
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. EXIT ;EP
  1. ;---> End of job cleanup.
  1. K ^TMP("BIVTAB",$J)
  1. D CLEAR^VALM1
  1. D FULL^VALM1
  1. Q