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

BIPOST.m

Go to the documentation of this file.
  1. BIPOST ;IHS/CMI/MWR - POST-INIT ROUTINE; OCT 15, 2010
  1. ;;8.5;IMMUNIZATION;**16**;MAR 01,2018
  1. ;;* MICHAEL REMILLARD, DDS * CIMARRON MEDICAL INFORMATICS, FOR IHS *
  1. ;; PATCH 3: Set MenCY-Hib (148) and Flu-nasal4 (149) and all Skin Tests
  1. ;; in the Vaccine Table to Inactive. START+30
  1. ;; PATCH 3: Set all Skin Tests in the Skin Test table to Inactive, except
  1. ;; PPD and Tetanus. START+38
  1. ;; PATCH 4, v8.5: Update Source options in Imm Lot File. START+9
  1. ;; PATCH 5, v8.5: Remove dash from Eligibility Codes.
  1. ;; PATCH 5, v8.5: Add SNOMED Codes to all Contraindications.
  1. ;; PATCH 5, v8.5: Restandardize Vaccine Table, with updates from BITN.
  1. ;; PATCH 6, v8.5: Restandardize Vaccine Table, with updates from BITN.
  1. ;; PATCH 8: Changes to Set Mening C CVX 103 vaccine to Inactive. START+55
  1. ;; PATCH 9: Restandardize Vaccine Table, with updates from BITN. START+49
  1. ;; Changes to force specified vaccines active. START+52
  1. ;; Update Taxonomies. START+142
  1. ;; PATCH 10: Restandardize Vaccine Table, with updates from BITN. START+49
  1. ;; Changes to force specified vaccines active. START+56
  1. ;; Update BI TABLE DATA ELEMENTS File. START+154
  1. ;; PATCH 12: Restandardize Vaccine Table, with updates from BITN.
  1. ;; PATCH 13: Restandardize Vaccine Table, with updates from BITN (and BIMAN below).
  1. ;; PATCH 14: Make old Rabies CVX 18 inactive.
  1. ;; Set High Risk parameter selection = zero/none.
  1. ;; PATCH 15: Restandardize Vaccine Table, make CVX 186 Active. START+54
  1. ;; PATCH 16: Add new vaccines & manufacturers, restandardize Vaccine Table, START
  1. ;
  1. ;
  1. ;----------
  1. START ;EP
  1. ;---> Update software after KIDS installation.
  1. ;
  1. D SETVARS^BIUTL5 S BIPOP=0
  1. ;S IOP=$I D ^%ZIS
  1. ;
  1. ;W !!!?3,"Please hold..."
  1. ;
  1. ;
  1. ;********** PATCH 5, v8.5, JUL 01,2013, IHS/CMI/MWR
  1. ;---> Remove dash from Eligibility Codes.
  1. ;N N S N=0 F S N=$O(^BIELIG(N)) Q:'N D
  1. ;.N X S X=$P($G(^BIELIG(N,0)),U)
  1. ;.Q:(X="") Q:(X'["-")
  1. ;.N Y S Y=$P(X,"-")_$P(X,"-",2)
  1. ;.;W !,X," ",Y Q
  1. ;.S $P(^BIELIG(N,0),U)=Y
  1. ;N I F I="AC","B","C","D","E","F","U" K ^BIELIG(I)
  1. ;S DIK="^BIELIG("
  1. ;D IXALL^DIK
  1. ;
  1. ;
  1. ;********** PATCH 5, v8.5, JUL 01,2013, IHS/CMI/MWR
  1. ;---> Back-populate SNOMED Codes to all Contraindications.
  1. ;D
  1. ;.;---> If BCQM IHS CODE MAPPING Version 1.0 is not loaded, abort back-pop.
  1. ;.I '($L($T(MM^BCQMAPI))) D Q
  1. ;..D TEXT2,DIRZ^BIUTL3()
  1. ;.D SNOMED^BIUTLFIX
  1. ;
  1. ;
  1. ;********** PATCH 13, v8.5, AUG 01,2016, IHS/CMI/MWR
  1. ;---> Update Manufacturer Table.
  1. ;S ^BIMAN(169,0)="PaxVax^PAX^1^PaxVax"
  1. ;S ^BIMAN(170,0)="MCM Vaccine Company^MCM^1^MCM Vaccine Company"
  1. ;S ^BIMAN(171,0)="Seqirus^SEQ^1^Seqirus"
  1. ;S ^BIMAN(172,0)="VALNEVA^VAL^1^Valneva"
  1. ;
  1. ;**********
  1. ;
  1. ;********** PATCH 4, v8.5, DEC 01,2012, IHS/CMI/MWR
  1. ;---> Update Source options in Imm Lot File.
  1. ;N BIX S BIX="^DD(9999999.41,.13,0)"
  1. ;S @BIX="VACCINE SOURCE^S^v:VFC;n:NON-VFC;o:Other State;i:IHS/Tribal;^0;13^Q"
  1. ;**********
  1. ;
  1. ;---> Reindex any Listman Hidden Menus.
  1. ;D LISTMENU^BIUTLFIX
  1. ;
  1. ;
  1. ;---> Re-Standardize the Vaccine Table.
  1. D RESTAND^BIRESTD()
  1. ;
  1. ;
  1. ;********** PATCH 15, v8.5, SEP 30,2017, IHS/CMI/MWR
  1. ;---> Force vaccines Active or Inactive by CVX Code.
  1. ;---> Insert CVX Codes into For loop below.
  1. ;
  1. ;---> Make these CVX's ACTIVE:
  1. ;N BICVX F BICVX=150,158,168,185 D
  1. ;N BICVX F BICVX=186 D
  1. .N N S N=$$HL7TX^BIUTL2(BICVX)
  1. .;---> Quit if CVX is Unknown.
  1. .Q:(N=137)
  1. .;---> 0=ACTIVE.
  1. .S $P(^AUTTIMM(N,0),U,7)=0
  1. .S $P(^BITN(N,0),U,7)=0
  1. .;
  1. ;---> Make these CVX's INACTIVE:
  1. ;N BICVX F BICVX=123,125,126,127,147,160 D
  1. ;N BICVX F BICVX=25,29,37,40,51,62,118,183,184 D
  1. .N N S N=$$HL7TX^BIUTL2(BICVX)
  1. .;---> Quit if CVX is Unknown.
  1. .Q:(N=137)
  1. .;---> 1=INACTIVE.
  1. .S $P(^AUTTIMM(N,0),U,7)=1
  1. .S $P(^BITN(N,0),U,7)=1
  1. ;
  1. ;
  1. ;********** PATCH 8, v8.5, MAR 15,2014, IHS/CMI/MWR
  1. ;---> Set Mening C CVX 103 vaccine to Inactive.
  1. ;F N=143 D
  1. ;.S $P(^AUTTIMM(N,0),U,7)=1
  1. ;.S $P(^BITN(N,0),U,7)=1
  1. ;
  1. ;---> Set newer Mening vaccines to Active.
  1. ;F N=220,237,251 D
  1. ;.S $P(^AUTTIMM(N,0),U,7)=0
  1. ;.S $P(^BITN(N,0),U,7)=0
  1. ;
  1. ;
  1. ;********** PATCH 3, v8.5, SEP 10,2012, IHS/CMI/MWR
  1. ;---> Set all Skin Tests in Vaccine Table to Inactive (so that they will be
  1. ;---> unavailable to select as vaccines in EHR).
  1. ;---> Set MenCY-Hib (148) and Flu-nasal4 (149) to Inactive.
  1. ;N N F N=202,203,204,205,252,253 D
  1. ;.S $P(^AUTTIMM(N,0),U,7)=1
  1. ;.S $P(^BITN(N,0),U,7)=1
  1. ;
  1. ;---> Also set all Skin Tests in the Skin Test file Inactive,
  1. ;---> except PPD and Tetanus.
  1. ;N N S N=0 F S N=$O(^AUTTSK(N)) Q:'N D
  1. ;.Q:'$D(^AUTTSK(N,0))
  1. ;.S $P(^AUTTSK(N,0),U,3)=1
  1. ;---> Now set PPD and Tetanus to Active.
  1. ;D
  1. ;.K N S N=$O(^AUTTSK("B","PPD",0))
  1. ;.Q:'N
  1. ;.S $P(^AUTTSK(N,0),U,3)=""
  1. ;.S N=$O(^AUTTSK("B","TETANUS",0))
  1. ;.Q:'N
  1. ;.S $P(^AUTTSK(N,0),U,3)=""
  1. ;**********
  1. ;
  1. ;---> Reset Display Order of Vaccine Groups in BI TABLE VACCINE GROUP File #9002084.93.
  1. ;S $P(^BISERT(1,0),"^",2)=1
  1. ;S $P(^BISERT(2,0),"^",2)=3
  1. ;S $P(^BISERT(3,0),"^",2)=4
  1. ;S $P(^BISERT(4,0),"^",2)=6
  1. ;S $P(^BISERT(5,0),"^",2)=5
  1. ;S $P(^BISERT(6,0),"^",2)=7
  1. ;S $P(^BISERT(7,0),"^",2)=8
  1. ;S $P(^BISERT(8,0),"^",2)=2
  1. ;S $P(^BISERT(9,0),"^",2)=9
  1. ;S $P(^BISERT(10,0),"^",2)=10
  1. ;S $P(^BISERT(11,0),"^",2)=12
  1. ;S $P(^BISERT(12,0),"^",2)=90
  1. ;S $P(^BISERT(13,0),"^",2)=99
  1. ;S $P(^BISERT(14,0),"^",2)=95
  1. ;S $P(^BISERT(15,0),"^",2)=85
  1. ;S $P(^BISERT(16,0),"^",2)=15
  1. ;S $P(^BISERT(17,0),"^",2)=18
  1. ;S $P(^BISERT(18,0),"^",2)=11
  1. ;
  1. ;---> Turn off H1N1forecasting.
  1. ;S $P(^BISERT(18,0),"^",5)=0
  1. ;
  1. ;---> Standardize the VT-100 Codes in the Terminal Type File.
  1. ;D ^BIVT100
  1. ;---> Set new Immserve Path.
  1. ;D IMMPATH
  1. ;---> Check and fix any Lot Numbers with a Status of null.
  1. ;D NULLACT^BILOT1
  1. ;---> Reindex killed globals.
  1. ;D REINDEX
  1. ;********** PATCH 9, v8.5, OCT 01,2014, IHS/CMI/MWR
  1. ;---> Update Taxonomies.
  1. ;D ^BITX
  1. ;---> Reindex BI Letter Sample and BI Table Manufactures Files.
  1. ;D REINDLS
  1. ;
  1. ;---> Kill dangling xref to old file.
  1. ;K ^DIC("B","BI IMMUNIZATION TABLE OLD LOCAL",9002084.95)
  1. ;
  1. ;---> Scan for any V Imms with a .14 Eligibility=0, change to 8, which is
  1. ;---> the IEN of "Unknown" in the new BI TABLE ELIG File.
  1. ;D ^BIELIG3
  1. ;
  1. ;---> Update BI TABLE DATA ELEMENTS File.
  1. ;D ^BIDE
  1. ;
  1. ;********** PATCH 14, v8.5, AUG 01,2017, IHS/CMI/MWR
  1. ;---> Set High Risk parameter selection = zero/none. Install notes advise
  1. ;---> manager to revisit and reselect High Risk Factors.
  1. ;---> Update "Last Version Fully Installed" Field in BI SITE PARAMETER File.
  1. ;N N S N=0 F S N=$O(^BISITE(N)) Q:'N D
  1. ;.S $P(^BISITE(N,0),"^",15)=$$VER^BILOGO
  1. ;.S $P(^BISITE(N,0),"^",19)=0
  1. ;.;**********
  1. ;
  1. ;D TEXT2,DIRZ^BIUTL3()
  1. D TEXT1,DIRZ^BIUTL3()
  1. ;
  1. D EXIT
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. EXIT ;EP
  1. D KILLALL^BIUTL8(1)
  1. Q
  1. ;
  1. ;
  1. ;
  1. ;----------
  1. TEXT1 ;EP
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;; - This concludes the Post-Initialization program. -
  1. ;;
  1. ;; * CONGRATULATIONS! *
  1. ;;
  1. ;; You have successfully installed Immunization v8.5 p16.
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. W @IOF
  1. D PRINTX("TEXT1")
  1. Q
  1. ;**********
  1. ;
  1. ;
  1. ;----------
  1. TEXT2 ;EP
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;; * NOTE!!! *
  1. ;;
  1. ;; NOTE: Be sure to check and edit the High Risk parameter #18
  1. ;; on the Edit Site Parameter screen, found on the Manager Menu.
  1. ;;
  1. ;; The High Risk parameter options have changed significantly,
  1. ;; and so this parameter has been set equal to "0 - None."
  1. ;; Be sure to examine this setting and edit it per your site's
  1. ;; preferences. Thank you.
  1. ;;
  1. ;; * NOTE!!! *
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. ;;
  1. W @IOF
  1. D PRINTX("TEXT2")
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. PRINTX(BILINL,BITAB) ;EP
  1. ;---> Print text at specified line label.
  1. ;
  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. IMMPATH ;EP
  1. ;---> Update path for new Immserve files.
  1. N N,X,Y S Y=$$VERSION^%ZOSV(1) D
  1. .I Y["Windows" S X="C:\Program Files\Immserve852\" Q
  1. .I Y["UNIX" S X="/usr/local/immserve852/"
  1. ;
  1. S N=0
  1. F S N=$O(^BISITE(N)) Q:'N D
  1. .S $P(^BISITE(N,0),"^",18)=X
  1. Q
  1. ;
  1. ;
  1. ;----------
  1. REINDEX ;EP
  1. ;---> Not called. Programmer to use if KIDS fails to index these files.
  1. ;
  1. N DIK
  1. F DIK="^BINFO(","^BILETS(","^BIVT100(","^BIERR(","^BINFO(","^BIEXPDD(","^BISERT(","^BICONT(" D
  1. .D IXALL^DIK
  1. .S DIK="^BISERT(" D IXALL^DIK
  1. Q
  1. ;
  1. ;
  1. KEYS ;EP
  1. ;---> Clean up subordinate keys (there should be none).
  1. N X,Y
  1. F X="BIZ EDIT PATIENTS","BIZ MANAGER","BIZMENU" D
  1. .S Y=$O(^DIC(19.1,"B",X,0)) K @("^DIC(19.1,"""_Y_""",3)")
  1. Q
  1. ;
  1. ;
  1. REINDLS ;EP
  1. ;---> Reindex BI LETTER SAMPLE File.
  1. N X,Y
  1. S DIK="^BILETS("
  1. D IXALL^DIK
  1. S DIK="^BIMAN("
  1. D IXALL^DIK
  1. Q