Exemple #1
0
import sys,os
sys.path = [sys.argv[7] + '/Python/vista'] + sys.path
from OSEHRAHelper import ConnectToMUMPS,PROMPT

VistA=ConnectToMUMPS(sys.argv[1],sys.argv[3],sys.argv[4])
if (sys.argv[5] and sys.argv[6]):
  VistA.login(sys.argv[5],sys.argv[6])
if VistA.type=='cache':
  try:
    VistA.ZN(sys.argv[4])
  except IndexError,no_namechange:
    pass

if sys.argv[8]=='ON':
  VistA.wait(PROMPT)
  VistA.startCoverage()
VistA.wait(PROMPT)
VistA.write('K ^XUTL("XQ",$J)')
VistA.write('D ^XINDEX')
if VistA.type == 'cache':
  VistA.wait('No =>')
  VistA.write('No')
arglist = sys.argv[2].split(',')
for routine in arglist:
  VistA.wait('Routine:')
  VistA.write(routine)
VistA.wait('Routine:')
VistA.write('')
selectionList = ['Select BUILD NAME:',
                 'Select INSTALL NAME:',
                 'Select PACKAGE NAME:']
@copyright The Open Source Electronic Health Record Agent
@license http://www.apache.org/licenses/LICENSE-2.0
'''
import sys
sys.path = ['/vagrant/VistA/Python/vista'] + sys.path

import os
import time
import OSEHRASetup
from OSEHRAHelper import ConnectToMUMPS, PROMPT

VistA = ConnectToMUMPS("./VistA/bin/Testing/Log/PostImport1.log", "CACHE",
                       "VISTA")
if ('' and ''):
    VistA.login('', '')
if VistA.type == 'cache':
    try:
        VistA.ZN('VISTA')
    except IndexError, no_namechange:
        pass
VistA.wait(PROMPT, 60)
#---------------------------------------------------------------------
#- SECTION TO SETUP DEMO VistA SITE -
#---------------------------------------------------------------------

#Initialize FileMan
# Pass a site name from CMake and have a default site name of 6161

OSEHRASetup.initializeFileman(VistA, "DEMO.NODEVISTA.ORG", "6161")
Exemple #3
0
import sys
sys.path = [sys.argv[7] + '/lib/vista'] + sys.path

from OSEHRAHelper import ConnectToMUMPS, PROMPT

VistA = ConnectToMUMPS(sys.argv[1], sys.argv[3], sys.argv[4])
if (sys.argv[5] and sys.argv[6]):
    VistA.login(sys.argv[5], sys.argv[6])
if VistA.type == 'cache':
    try:
        VistA.ZN(sys.argv[4])
    except IndexError, no_namechange:
        pass
VistA.wait(PROMPT)
VistA.write('K ^XUTL("XQ",$J)')
VistA.write('D ^XINDEX')
if VistA.type == 'cache':
    VistA.wait('No =>')
    VistA.write('No')
arglist = sys.argv[2].split(',')
for routine in arglist:
    VistA.wait('Routine:')
    VistA.write(routine)
VistA.wait('Routine:')
VistA.write('')
selectionList = [
    'Select BUILD NAME:', 'Select INSTALL NAME:', 'Select PACKAGE NAME:'
]
while True:
    index = VistA.multiwait(selectionList)
    VistA.write('')