PHI copy automation: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
m Text replacement - "[[Trish Ostryzniuk" to "[[p:Trish Ostryzniuk"
m cleanup and links
Line 1: Line 1:
==Where does it live?==
==Where does it live?==
Main office on the '''SCANNER''' PC as of March 12, 2015
[[Data Processor PC]]
*deactivated on [[p:Trish Ostryzniuk | Trish's]] PC until Windows7 upgrade done to her computer sometime end of march 2015.


==What does this scheduled task do?==
==What does this scheduled task do?==
Line 13: Line 12:


== If the automation were not working... ==
== If the automation were not working... ==
If the PC that this is scheduled on isn't running (shutdown) then data might be left on the server for some time. Probably OK for now since it would still only be temporary. Ttenbergen 16:32, 2013 July 29 (CDT)
If the [[Data Processor PC]] that this is scheduled on isn't running (shutdown) then data might be left on the server for some time. Probably OK for now since it would still only be temporary.
*currently Pagasa locks the scanner computer each night and reboots it in the AM.  Locking does not stop this scheduled task from running.
=== vacation planning ===
*Make sure scanner computer is not shutdown.


==If X drive goes down==
==If X drive goes down==

Revision as of 11:33, 13 July 2017

Where does it live?

Data Processor PC

What does this scheduled task do?

Every 60 minutes it runs the batch file Copy PHI.bat.

It copies the PHI files exported by CCMDB.mdb during sending to Regional Server\​Output\_PHI\\ad.wrha.mb.ca\WRHA\REGION\SHARED\ICU_DATA_COLLECTION\Output\_PHI to X:\CCMDB\PHI. Then it calls the script Load Data.vbs.

The script Load Data.vbs accesses PHI Loader.accdb and runs the sub loadAllCSVFiles, which calls the code that imports all csv files found within the directory. The csv loading code also moves the files again into an archive folder X:\CCMDB\PHI\PHI Archive\ to prevent duplicate processing.

If the task runs and there are no problems the task will list "0x0" in the last results column. Any other code would require review. - This needs to be reviewed as the last line of the batch file has changed the the return value may be altered Bcloutier 19:47, 2013 November 20 (CST)

If the automation were not working...

If the Data Processor PC that this is scheduled on isn't running (shutdown) then data might be left on the server for some time. Probably OK for now since it would still only be temporary.

If X drive goes down

If main office notices that X drives is down, Data processor must not remove the csv files from the Regional server until:

  • computer is rebooted and network connection to X is checked to see if it has been re established, otherwise this bat files is not able to do its job.
    • occurrence: Monday June 15.14 at 1700 hrs and all day June 16.14: issue: Castrophic hardware failure on this network drive had occurred.