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

PSB3P83.m

Go to the documentation of this file.
  1. PSB3P83 ;BIRMINGHAM/GN-Post install to save Inj to new Body list ;03/06/16 3:06pm
  1. ;;3.0;BAR CODE MED ADMIN;**83**;Mar 2004;Build 89
  1. ;Per VHA Directive 2004-038 (or future revisions regarding same), this routine should not be modified.
  1. ;
  1. ; Reference/IA
  1. ; $$GET^XPAR/2263
  1. ;
  1. EN ;Copy a Divisions old PSB LIST INJECTION SITES to new BODY SITES
  1. ;
  1. N PARAM,ENT,QQ,SITE
  1. S PARAM=$O(^XTV(8989.51,"B","PSB ONLINE","")) ;Online param ien
  1. ;
  1. ;Loop thru Kernel parameters for any Division with the parameter
  1. ; PSB ONLINE answered Y or N. Nulls won't have an entry in "AC" xref
  1. S ENT=""
  1. F S ENT=$O(^XTV(8989.5,"AC",PARAM,ENT)) Q:ENT="" D
  1. .;
  1. .;loop thru all sites per Div per Old Inj list if it exists
  1. .F QQ=1:1 S SITE=$$GET^XPAR(ENT,"PSB LIST INJECTION SITES",QQ) Q:SITE="" D
  1. ..;add sites to new list with new structure SiteText|flag|flag
  1. ..D EN^XPAR(ENT,"PSB LIST BODY SITES",QQ,SITE_"|1|0")
  1. .;
  1. .;remove all sites from old Inj list this ENT (Division)
  1. .D NDEL^XPAR(ENT,"PSB LIST INJECTION SITES")
  1. ;
  1. Q