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

DG53568A.m

Go to the documentation of this file.
  1. DG53568A ;ALB/RMM - POST-INSTALL ROUTINE FOR SD ENCAP ; 03/24/2004
  1. ;;5.3;Registration;**568,1015**;AUG 13, 1993;Build 21
  1. ;
  1. EN ; Entry point for the DG*5.3*568 Post-Install
  1. ;
  1. ; This routine will update the WORD-PROCESSING #3.5 field, in the
  1. ; OPTION (#19) File for the following options (if present):
  1. ; [ZDGYP SD GLOBAL ESTIMATOR] Global Estimator for Scheduling
  1. ; [DGYP SD GLOBAL ESTIMATOR] Global Estimator for Scheduling
  1. ;
  1. ; Get IENs from OPTION File
  1. N DGYP,ZDGYP,DGMSG,MCNT,DGNEW,DGERR,DGOUT
  1. S DGYP=+$O(^DIC(19,"B","DGYP SD GLOBAL ESTIMATOR",""))
  1. S ZDGYP=+$O(^DIC(19,"B","ZDGYP SD GLOBAL ESTIMATOR",""))
  1. ;
  1. S MCNT=1,DGMSG(MCNT)="Updating the description for option: Global Estimator for Scheduling"
  1. S:DGYP>0 MCNT=MCNT+1,DGMSG(MCNT)="IEN = "_DGYP
  1. S:ZDGYP>0 MCNT=MCNT+1,DGMSG(MCNT)="IEN = "_ZDGYP
  1. D MES^XPDUTL(.DGMSG)
  1. ;
  1. D NEWTXT
  1. D:DGYP>0 TXTUPDT(DGYP)
  1. D:ZDGYP>0 TXTUPDT(ZDGYP)
  1. ;
  1. D BMES^XPDUTL("Post-Install Complete, the option text has been updated.")
  1. Q
  1. NEWTXT ;
  1. ; Set up description array.
  1. S DGNEW("WP",1)="In previous versions of PIMS, a patient's outpatient information has"
  1. S DGNEW("WP",2)="been stored in various files in the VistA database. With the"
  1. S DGNEW("WP",3)="requirement to checkout all outpatient encounters, it was necessary"
  1. S DGNEW("WP",4)="to consolidate much of the common outpatient information into one"
  1. S DGNEW("WP",5)="outpatient encounter file."
  1. S DGNEW("WP",6)=" "
  1. S DGNEW("WP",7)="In PIMS v5.3, the data will reside in the new OUTPATIENT"
  1. S DGNEW("WP",8)="ENCOUNTER(#409.68) file as well as in the old data structures."
  1. S DGNEW("WP",9)="This file will hold encounter data for all checked out encounters."
  1. S DGNEW("WP",10)="This will include information from the following:"
  1. S DGNEW("WP",11)=" "
  1. S DGNEW("WP",12)=" o appointments: SDAPI - Appointment API"
  1. S DGNEW("WP",13)=" o add/edits : ^SDV()"
  1. S DGNEW("WP",14)=" o dispositions: ^DPT(patient,""DIS"",date/time)"
  1. S DGNEW("WP",15)=" "
  1. S DGNEW("WP",16)="The MUMPS global for this file is ^SCE."
  1. S DGNEW("WP",17)=" "
  1. S DGNEW("WP",18)=" "
  1. S DGNEW("WP",19)="Also, as part of the checkout process, questions regarding"
  1. S DGNEW("WP",20)="whether the encounter was related to a service-connected disability,"
  1. S DGNEW("WP",21)="Agent Orange, ionization and environmental contaminants from the"
  1. S DGNEW("WP",22)="Persian Gulf war, will be asked when appropriate."
  1. S DGNEW("WP",23)=" "
  1. S DGNEW("WP",24)="This data will be stored in the new OUTPATIENT CLASSIFICATION"
  1. S DGNEW("WP",25)="(#409.42) file in the ^SDD(409.42) global node."
  1. S DGNEW("WP",26)=" "
  1. S DGNEW("WP",27)=" "
  1. S DGNEW("WP",28)="The purpose of this utility is the following:"
  1. S DGNEW("WP",29)=" 1. estimate a one year rate of growth for"
  1. S DGNEW("WP",30)=" ^SCE using as a base the encounter data"
  1. S DGNEW("WP",31)=" for the previous 365 days"
  1. S DGNEW("WP",32)=" "
  1. S DGNEW("WP",33)=" 2. estimate a one year rate of growth for"
  1. S DGNEW("WP",34)=" ^SDD(409.42) using as a base the encounter data"
  1. S DGNEW("WP",35)=" for the previous 365 and the patient demographic"
  1. S DGNEW("WP",36)=" information"
  1. S DGNEW("WP",37)=" "
  1. S DGNEW("WP",38)="Using these estimates, you can make a better determination"
  1. S DGNEW("WP",39)="as to where to place this new ^SCE global and how large the"
  1. S DGNEW("WP",40)="existing ^SDD global will grow."
  1. S DGNEW("WP",41)=" "
  1. S DGNEW("WP",42)="This utility will not affect the current v5.2 functionality in any"
  1. S DGNEW("WP",43)="way. However, it is recommended that it be queued to run at non-peak"
  1. S DGNEW("WP",44)="hours. After the estimations are calculated, the results will be"
  1. S DGNEW("WP",45)="reported to the user via a MailMan message."
  1. S DGNEW("WP",46)=" "
  1. S DGNEW("WP",47)="Finally, in v5.3, the site will have the ability to capture provider"
  1. S DGNEW("WP",48)="and diagnostic data as part of the checkout process. Capturing this"
  1. S DGNEW("WP",49)="data will be site selectable. It is estimated that each provider and"
  1. S DGNEW("WP",50)="each diagnosis captured for an encounter will use .05 1K blocks."
  1. S DGNEW("WP",51)=" "
  1. S DGNEW("WP",52)="NOTE: If the site does choose to capture provider data then nurses,"
  1. S DGNEW("WP",53)="social workers and other providers of care will need to have entries"
  1. S DGNEW("WP",54)="in the NEW PERSON file and be assigned the PROVIDER security key."
  1. S DGNEW("WP",55)="Assigning this key will allow selection of these providers during the"
  1. S DGNEW("WP",56)="checkout process."
  1. S DGNEW("WP",57)=" "
  1. S DGNEW("WP",58)=" "
  1. S DGNEW("WP",59)="The option should be executed by the IRM staff and is locked with the"
  1. S DGNEW("WP",60)="DGYP IRM security key."
  1. Q
  1. TXTUPDT(OPTIEN) ;
  1. ; Update the Word Processing Field
  1. D WP^DIE(19,OPTIEN_",",3.5,"K","DGNEW(""WP"")","DGERR")
  1. ;
  1. ; Check for and Report any Errors
  1. I $D(DGERR) D
  1. . D BMES^XPDUTL("NOTE: An error occurred when updating the OPTION text.")
  1. . D MSG^DIALOG("AS",.DGOUT,"","","DGERR")
  1. . D MES^XPDUTL(.DGOUT)
  1. . D BMES^XPDUTL("Please contact the VistA Help Desk.")
  1. ;
  1. ; Cleanup after each OPTION is updated
  1. K DGNEW,DGERR,DGOUT,EASIEN,DGMSG
  1. ;
  1. Q