Currently
Under Part-Time Construction
Page Last modified:
05/13/07
02:58:21 PM
LINK
TO THIS PAGE IN PDF FORMAT
- Project Topic:
Open Source (free) Electronic Medical Records Software
-
- Project
Objective: Install functional Open
Source Electronic Medical Records Software at a chinese
medicine/acupuncture clinic, which will encompass scheduling,
billing, computerized records, inventory, and medications(chinese
herbs, supplements, and prescriptions).
-
STATUS:
-
Review of Open Source EMR Software
Packages – DONE
-
Choose EMR Software Package –
DONE
-
Modify chosen EMR Software Package
– In Progress (15% complete)
-
1. Herbal database
(50% complete)
-
Install EMR Software at Clinic –
Not ready yet
-
Phases of EMR
Installation at clinic - Not ready yet
-
- OpenEMR
Virtual Appliance – DONE
-
Part I:Introduction
- Main
TOC Link.
-
- I truly have no clue what I am
doing.
-
- The Players:
-
The Clinic
-
Family operated acupuncture,
chinese medicine, and naturopathic medicine clinic.
-
Includes a reception area,
chinese herb/supplement pharmacy, 1 office, and 5 treatment rooms.
- The People (2 acupuncturist,
1 massage guy, 1 receptionist, and 1 office assistant)
-
Physicians
-
Daughter
-
Acupuncture, Chinese Medicine,
Naturopathy
-
Computer literate
- Father
-
Acupuncture, Chinese Medicine
-
Computer illiterate
-
Not fluent in English
- Other guy
-
Massage, Acupressure
-
Computer illiterate
-
Not fluent in English
- Office Assistant
-
Mother
-
Computer illiterate
-
Not fluent in English
- Receptionist
-
Computer literate
- Accountant/billing
-
Only works half day per week
-
Computer literate
- The Patients:
-
Differ on payment and type of
treatment
- Different types of
treatment:
-
Acupuncture
-
Naturopathy
- Different forms of payment:
-
Motor Vehicle Accident
-
Requires large amount of
medical/billing records
- Medical insurance
-
Requires moderate amount of
medical/billing records
- Out of pocket
-
Requires small amount of
medical/billing records
- The Hardware
-
2 desktops(only one being used)
and 1 laptop.
- Workflow analysis: Pending
-
Objectives of electronic medical
record system:
-
Primary(short-term):
-
Electronic record of individual
patients herb formulas and supplements
-
Allow automatic labels
-
Allow easy refills
- Secondary(long-term):
-
Insurance billing
-
Appointments
-
Electronic Notes
-
Supplement/herbs inventory
-
Accounting
- Electronic Medical Record
Software Requirements
-
Prescriptions
-
Electronic Notes
-
Appointments
-
Insurance Billing
-
Accounting
-
Inventory
-
Easy To Use (GUI preferred)
- The Open Source EMR Software
Package Options
-
OpenEMR
-
Definite possibility.
- MirrorMed
-
Still seems to be in development
phase, however will still be tested.
- FreeMed
-
Definite possibility.
- VistA
-
Unlikely to fulfill all above
requirements, however will still be tested.
- OSCAR
-
This is software based on the
Canadian health care system.
-
It doesn't have support for US
insurance billing, so it will not be considered.
- Gnu-Med
-
Still too early in development
phase, so it won't be considered.
- Care2X
-
The general clinic module has
not been released yet, so it will not be considered.
- The Plan
-
Install and review above Open
Source EMR Packages
-
To be done on a development
computer utilizing Virtual Computers, which will hopefully speed
up the process.
- Choose the best one
-
Apply needed modifications.
- Install the chosen EMR with
modifications on a production/server computer.
-
Will initially only use software
for medication/supplement/herbs prescriptions.
-
This should immediately
streamline office workflow.
- Plan to slowly incorporate
other functions over several years as office becomes more
comfortable with system (also as the computer illiterates are
phased out of clinic).
-
This transition will not be as
straightforward as just utilizing functions in a certain order.
Strategy will be more of a patient-centered approach. For
example, pt with insurance or MVA claims will utilize the
electronic notes, billing, accounting functions much earlier than
the out-of-pocket patient.
- Development Computer Specs:
-
Processor: Pentium IV 2.4 Ghz
-
Memory: 2 GB DDR
-
Storage: 250 GB IDE hard drive
-
Operating System: Linux
Slackware version 10.2.
- Production Computer Specs:
pending
Part II:Building
the Development Computer
- Main
TOC Link.
- Upgrade memory to 2GB($140)
-
Install 250GB hard drive($80)
-
Install Linux Slackware, version
10.2:

-
(KDE desktop running on Slackware Linux)
-
- Upgrade linux kernel from version 2.4 to version 2.6:

-
(menuconfig program used for customization/upgrade of
linux kernel)
-
- Install Vmware Workstation(30 day
free trial):
-
Slackware has a simple work-around for
installing VMware(links here)
-
Install a Windows XP Pro Virtual
Computer, which will simulate the client
desktops/laptops.:(configuration pictures and move to next
section)

-
(VMware starting up a Windows XP Virtual Computer)
-

-
(VMware running a Windows XP Virtual Computer)
-
Part III:Building
the Virtual Computers
- Main TOC Link.
Mandriva 2006
- Main
TOC Link.
-
- VMware Configuration:

-
Click 'New Virtual Machine'.
-

-
Select 'typical'. Then click 'Next'.
-

-
Select 'Linux' and 'Mandrake Linux'. Then click 'Next'.
-

-
Select 'Use bridged networking'. Then click 'Next'.
-

-
Enter 'Disk Size'->'20 GB'. Select 'Split disk into 2GB files'.
Then click 'Finish'.
-
- Insert the Mandriva2006 DVD/CD.
-
Click 'Power On' via Vmware.
-
Install Mandriva2006:

-
Change 'Security Level' -> 'Higher'. Type in an administrator
log in name. Then click 'Next'.
-

-
Select 'Use free space'. Then click 'Next'.
-

-
Click 'Next'.
-

-
Click 'Ok'.
-

-
Select 'Office Workstation', 'Multimedia Station', 'Internet
Station', 'Network Computer(client)', 'Configuration', 'Console
Tools', 'Development', 'Documentation', 'KDE Workstation'. Do NOT
select any Server selections. Then click 'Next'.
-

-
Enter a secure password. Then click 'Next'.
-

-
Type in a 'Name', 'Login name', and 'Password'. Toggle ON 'xgrp',
'rtools', and 'wheel'. Then click 'Accept user'.
-

-
Click 'Next'.
-

-
At 'Graphical Interface', click 'Configure'.
-

-
Select 'VMware virtual video card'. Then click 'Next'.
-

-
Select '1024x768'. Then click 'Next'.
-

-
Select '800x600'. Then click 'OK'.
-

-
Select 'Yes'. Then click 'Next'.
-

-
Click 'Next'.
-

-
Select 'No'. Then click 'Next'.
-

-
Click 'Reboot'.
-
- Install VMtools (Required by
VMware software)
-
This will require
installation of kernel source/headers files
-
Re-insert the
Mandriva2006 CD/DVD
-
Install kernel
source/headers files:
-
Enter below bolded
instructions on command line as root user
- #log into root
-
su
-
- #install the
kernel header/source files
-
urpmi
kernel-source
-
- Set up Vmware:

-
Click above 'Install Vmware Tools'.
-

-
Click 'Install'.
-
- Install the
VMTools on Mandriva
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #if
below doesn't work, try replacing /dev/hda with /dev/cdrom,
/dev/hdb, /dev/hdc etc.
-
mount
/dev/hda /mnt/cdrom
-
- #unpack
and move file
-
cd
/tmp
-
tar
zxpf /mnt/cdrom/VMwareTools-5.5.0-*.tar.gz
- umount
/mnt/cdrom
-
cd
vmware-tools-distrib
- #install
the software
-
./vmware-install.pl
- -answered
all questions with defaults
-
-answered 3 for
video mode(“1024x768”)
-
- #need to
re-boot or else weird stuff happens
-
shutdown
-r now
-
- Enable software package
installation over internet:

-
Click 'System' ->
'Configuration' -> 'Packaging' -> 'Software Media
Manager'.
-

-
Enter 'root' user password. Then
click 'OK'.
-

-
Click 'Add...'.
-

-
Click 'Distribution sources'.
-

-
Select as above. Then click 'Ok'.
-
- Disable the screensaver(it's
annoying).
Kubuntu 5.1 (breezy)
- Main
TOC Link.
-
VMware Configuration
(pictures)
Insert Kubuntu install
CD/DVD in drive
“Power-up” via
Vmware
Install
(pictures)
- TO DO: finish
this section
-
Windows
XP Professional
- Main
TOC Link.
-
Pending (move from section
above)
TO DO: finish this section
Part IV:Installing the
Electronic Medical Record Software
- Main
TOC Link.
-
Installation
Overview
- Main
TOC Link.
This section will cover the
installations of OpenEMR, MirrorMed, FreeMed, and VistA. OpenEMR,
MirrorMed, and FreeMed require the LAMP (Linux, Apache, MySQL, PHP)
platform. VistA is written by the VA (Veterans Administration), and
requires a MUMPS compiler.
OpenEMR
- Main
TOC Link.
Installation on
Mandriva 2006 Virtual Computer
Required
Software
- Quick
Index Link.
-
Apache, MySQL, and PHP4
-
OpenEMR
-
FreeB – Insurance billing
software (optional)
-
PostgreSQL – Database
program required by SQL-ledger (optional)
-
SQL-Ledger – Billing,
Accounting, and Inventory software (optional)
-
php-GACL – Access Control
software (optional)
Important
Issues
- Quick
Index Link.
-
Complete all of the steps before
entering any data into OpenEMR. The SQL-Ledger and OpenEMR
software may communicate in strange ways if you enter data into
OpenEMR before installing SQL-ledger.
-
Passwords can be confusing
during the SQL-Ledger installation. To avoid any confusion it is
helpful to know that during the installation you will create a
PostGreSQL user called 'sql-ledger' with a password. This
user/password combination will be used frequently, and the
password will be referred to as 'sql-ledger-password'
throughout this document to avoid confusion.
Install the Mandriva
2006 Virtual Computer
- Quick
Index Link.
-
Follow
the above instructions in (Part
III, Building Virtual Computers, Mandriva).
Install Apache,
MySQL, and PHP4
- Quick
Index Link.
-
OpenMed requires PHP4. You
shouldn't of installed PHP5, since you should not of selected any
server packages during the Mandriva install(then you can disregard
this, and skip to step 2). However if you have PHP5 on your
system, then remove it using below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #list all the php5
packages
-
urpme
php
- #remove them all by
pasting in all of the php5 packages below
-
urpme
(paste)
-
- Enter below bolded
instructions on command line as root user :
- #log into root
-
su
-
- #Install apache, php,
mysql
-
urpmi
apache php4-cli apache-mod_php4 apache-mod_ssl php4-mysql
php4-xml php4-xmlrpc htmldoc mysql
-
-I chose 1-
apache-mpm-prefork-2.0.54-13mdk.i586
-
-I chose 1-
MySQL-4.1.12-3mdk.i586
-
-choose Yes to packages
-
- #start apache and mysql
-
service
httpd start
- service
mysqld start
-
- #enables apache and mysql
to start during boot-up
- chkconfig
--add httpd
-
chkconfig
--add mysqld
-
- Open the firewall for the web
server:

-
Click 'System' -> 'Configuration' -> 'Configure Your
Computer'.
-

-
Enter 'root' user password. Then
click 'OK'.
-

-
Click 'Security'.
-

-
Click 'Set up a personal firewall...'.
-

-
Select 'Web Server'. Then click 'OK'.
-

-
Click 'OK'.

-
Click 'Ok'. Keep defaults.
-

-
You are done. Close the window.
-
Install
OpenEMR
- Quick
Index Link.
-
Download
openemr-2.8.1.tar.gz (version 2.8.1) from sourceforge at :
http://sourceforge.net/project/showfiles.php?group_id=60081
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #edit file /etc/php4.ini:
- mcedit
/etc/php4.ini
- #edit following
variables:
-
change post_max_size = 30M
-
change upload_max_filesize =
30M
-
change memory_limit = 128M
-
change max_execution_time =
45
-
ensure register_globals = off
-
change magic_quotes_gpc = off
-
TEXT EDITOR SAVE AND EXIT
-
- #restart httpd
-
service
httpd restart
-
- #put the OpenEMR program
in its place
-
cd
/var/www/html
-
tar
pxzvf /location/to/tar/openemr-*.tar.gz
-
mv
openemr-* /var/www/html/openemr
-
chown
-Rf root:root openemr
-
- #Prepare for install
-
chmod
666 /var/www/html/openemr/library/sqlconf.php
-
- Then use Auto-installer at:
http://localhost/openemr/setup.php

-
Click 'Continue'.
-

-
Select 'Have setup create the databases'. Then click 'Continue'.
-

-
In SERVER section: enter 'Password' -> secure password,
otherwise keep defaults. In CLIENT section: keep defaults. In USER
section: enter 'Initial User' -> new user login name, Enter
'Initial User's Name' ->new user name, enter 'Initial Group' ->
name of practice. (I would recommend keeping the 'Initial User' ->
'admin' and the 'Initial User's Name' -> 'Administrator' to
ensure easy installation of the php-GACL software.) Then Click
'Continue'.
-

-
Click 'Continue'. (Don't worry, we have already made the mentioned
file world-writeable)
-

-
Click 'Continue'. (Don't worry, we will 'restore secure
permissions' of file later)
-

-
This page list some additional
instructions. Again, don't worry, we will do all of this stuff in
next section below. You can close your browser window now and move
onto the next section.
-
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #Re-secure the sqlconf.php
file
-
chmod
644 /var/www/html/openemr/library/sqlconf.php
-
- #Need to
change some file/folder ownerships
-
chown
apache:apache -R
/var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache
-
chown
apache:apache -R
/var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled
-
chown
apache:apache -R /var/www/html/openemr/documents
-
Install
FreeB
- Quick
Index Link.
-
Download
freeb-0.11.tar.gz (version 0.11) from sourceforge:
http://sourceforge.net/project/showfiles.php?group_id=60081
-
Enter below bolded
instructions on command line as root user :
- #log into root
-
su
-
- #put the
program in its place
-
cd
/usr/share
-
tar
xzvf /location/to/tar/freeb-*.tar.gz
-
mv
freeb-* /usr/share/freeb
-
- #secure it
-
chown
root:root -R /usr/share/freeb
-
- #install the
necessary packages
-
urpmi
perl-Config-General
perl-Date-Calc
-
-choose
yes to packages
-
- #need
to install several PERL modules
-
perl
-MCPAN -e shell
-
-Answer NO to
first question, and then it will be auto-configured.
-
At cpan>
prompt type:
- install
PDF::Create
-
install
ConfigFile
-
install
Frontier::Daemon
-
exit
-
- #create a
directory that apache can write to
-
mkdir
/usr/share/freeb/public
-
chown
apache:apache -R /usr/share/freeb/public
-
- #change
ownership of following directory
-
chown
apache:apache -R /var/www/html/openemr/library/freeb
-
- #this will
allow the user to use freeb while in openemr
-
cp
/usr/bin/php4 /usr/bin/php
-
- Configure FreeB as a service
-
Download freeb
file, which is an init.d script. I wrote this file, and it seems
to work alright. But I have to say, please use at your own risk.
File can be found at: http://bradymd.com/freeb
(to download file, you may need to Right-Click the
link and select 'Save Link As...')
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #move file and change
ownership/permissions
-
mv
/location/to/file/freeb /etc/init.d/
-
chown
root:adm /etc/init.d/freeb
-
chmod
740 /etc/init.d/freeb
-
- #start service
-
service
freeb start
-
-After 'before server
setup', just hit 'enter' key once to get back to the prompt. If
you saw 'before server setup', then it worked.
-
- #configure freeb to start
automatically during computer startup
-
chkconfig
--add freeb
-
- #You are done installing
service, it will now start
-
#up automatically during
computer start up.
-
#If the above service is not
working, you can
- #manually start the FreeB
server by typing:
-
#'/usr/share/freeb/bin/FreeB_Server.pl
&'
-
- Next, need to do below
“work-around”(Bug in OpenEMR) in order for HCFA billing
to work.
- Log in
to OpenEMR with previously created username and default password
'pass' at http://localhost/openemr:
-

-
Click
'Administration'.
-

-
Click
'Forms'.
-

-
Click
'register' at 'prior_auth' entry.
-

-
Click
'Install DB' at 'Prior Authorization Form' entry.
-
- WARNING!!
Do NOT click anything on screen below, read below the screenshot
first.
-

-
Do NOT
click the disabled button. You are done with OpenEMR for now.
Basically this 'prior_auth' form has to be in the database and
disabled for program to function normally. Log out and move
on to the next section.(continue to research)
-
lnstall
PostgreSQL
- Quick
Index Link.
-
Enter below bolded
instructions on command line as root user :
- #log into root
-
su
-
- #install
postgresql and needed packages
-
urpmi
postgresql postgresql-devel postgresql-server postgresql-docs
postgresql-pl php4-pg
-
-yes to
packages
-
- #start service
and also have it start at computer boot-up
-
service
postgresql start
-
chkconfig
--add postgresql
-
Install
SQL-Ledger
- Quick
Index Link.
-
We will do a manual install with
version 2.6.3. I'd recommend installing this version also, since
we know it works.
-
Download sql-ledger-2.6.3.tar.gz
file from:
http://sourceforge.net/project/showfiles.php?group_id=4320
-
Enter below bolded
instructions on command line as root user :
- #log into root
-
su
-
- #install the needed
dependencies
-
urpmi
perl-DBD-Pg LaTeX perl-DBI
-
-yes to
packages
-
- #put the SQL-Ledger program
in its place
-
cd
/usr/local
-
tar
xzvf /location/to/file/sql-ledger-2.6.3.tar.gz
-
mv
sql-ledger/sql-ledger.conf.default sql-ledger/sql-ledger.conf
-
- #edit file
/usr/local/sql-ledger/sql-ledger.conf:
-
mcedit
/usr/local/sql-ledger/sql-ledger.conf
-
- #add the following to
the vars section on first line of file (you must place this
within the first line) For example: 'use vars qw($oemr_ar_acc
...)':
-
- $oemr_ar_acc
$oemr_cash_acc $oemr_due_days $oemr_username
$oemr_services_partnumber
-
- #Paste the entire
section below into file:
-
- #Some constants relevant
to OpenEMR import.
-
#sql-ledger user
-
$oemr_username = 'openemr';
-
#acc num for acc receivable
-
$oemr_ar_acc = '1200';
-
# acc num for check/copay
- $oemr_cash_acc = '1060';
-
- # creating a services
item for medical services
-
# OpenEMR billing "part
number" here:
-
$oemr_services_partnumber =
'MS';
- # Num of days added to
OpenEMR transaction date to
- # create the invoice due
date when insurance. This affects the
- # pat. portion of
outstanding balance shown in OpenEMR
- # summary, and also
SQL-Ledger reports and statements.
- $oemr_due_days = 40;
-
TEXT EDITOR SAVE AND EXIT
-
- #create and edit file
/etc/httpd/conf/sql-ledger-httpd.conf:
-
mcedit
/etc/httpd/conf/sql-ledger-httpd.conf
-
- #Paste
the entire section below into empty file:
-
- Alias
/sql-ledger /usr/local/sql-ledger/
-
<Directory
/usr/local/sql-ledger>
-
AllowOverride
All
-
AddHandler
cgi-script .pl
-
AddDefaultCharset
On
-
Options ExecCGI
Includes FollowSymlinks
-
Order Allow,Deny
-
Allow from All
-
</Directory>
-
- <Directory
/usr/local/sql-ledger/users>
-
Order Deny,Allow
-
Deny from All
-
</Directory>
-
TEXT EDITOR
SAVE AND EXIT
-
- #edit file
/etc/httpd/conf/httpd.conf:
-
mcedit
/etc/httpd/conf/httpd.conf
-
#add following line to bottom
of file
-
include
/etc/httpd/conf/sql-ledger-httpd.conf
-
TEXT EDITOR SAVE AND EXIT
-
- #change
permissions
-
cd
/usr/local/sql-ledger
-
chown
-hR apache:apache users templates css spool
-
- #restart httpd service
-
service
httpd restart
-
- #Set up PostgreSQL user(
use 'sql-ledger'), password, and database
-
su
postgres
-
createuser
-d -P sql-ledger
-
-type a good password for
the sql-ledger user on PostgreSQL
-
(this password is IMPORTANT
and to avoid any severe confusion it will be referred to as the
'sql-ledger-password' during the rest of the install
documentation. I mean it, this is important to remember. This
password will be typed in many times during instructions below.)
-
-type y to allow user to
make more users
-
createlang
plpgsql template1
-
exit
-
- Load your web browser and
connect to: http://localhost/sql-ledger/admin.pl

-
There is no default password. Just click 'Login'.
-

-
Click 'Change Admin Password'.
-

- Enter a secure password. Then click 'Change Password'.
-

-
Click 'Pg Database Administration'.
-

-
Enter 'User' -> 'sql-ledger'. Enter 'Password' ->
'sql-ledger-password''. Otherwise keep above
defaults. Then click 'Create Dataset'.
-

-
Enter 'Create Dataset' -> 'openemr'. Toggle 'Create Chart of
Accounts' -> 'Default'. Then click 'Continue'.
-

-
Click 'Continue'.
-

-
Click 'Add User'.
-

-
Enter 'Login' ->'openemr'. Enter a secure
'Password'->'openemrpassword'. Enter 'Name'->
'openemr'. At the 'Database' section: ensure the 'Driver Pg'
is toggled to ON , set 'Dataset'->'openemr', set
'User'->'sql-ledger', set 'Password'->'sql-ledger-password'.
Keep above defaults for other above entries. Scroll to bottom of
page and click 'Save'.
-

-
Click 'Logout' and continue below.
-
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #Copy and rename openemr
perl script to sql-ledger directory
-
cp
/var/www/html/openemr/accounting/ws_server_26.pl
/usr/local/sql-ledger/ws_server.pl
-
- #edit file
/usr/local/sql-ledger/ws_server.pl:
-
mcedit
/usr/local/sql-ledger/ws_server.pl
-
- #edit the following
bolded path:
-
use lib qw
(/usr/local/sql-ledger);
-
TEXT EDITOR SAVE AND EXIT
-
- #edit file
/var/www/html/openemr/interface/globals.php
-
mcedit
/var/www/html/openemr/interface/globals.php
-
- #edit the following
bolded variables :
-
$sl_income_acc = '4320';
- $sl_services_id = 'MS';
- $sl_dbname = 'openemr';
- $sl_dbuser =
'sql-ledger';
- $sl_dbpass =
'sql-ledger-password';
- TEXT EDITOR SAVE AND
EXIT
-
- #edit file
/var/www/html/openemr/includes/config.php:
-
mcedit
/var/www/html/openemr/includes/config.php
-
- #edit the following
bolded variables:
-
- $GLOBALS['oer_config']['ws_accounting']['enabled']
= true;
-
- $GLOBALS['oer_config']['ws_accounting']['username']
= "openemr";
-
- $GLOBALS['oer_config']['ws_accounting']['password']
= "openemrpassword";
-
- $GLOBALS['oer_config']['ws_accounting']['income_acct']
= "4320";
-
TEXT EDITOR SAVE AND EXIT
-
- Finish up SQL-Ledger
install, go to: http://localhost/sql-ledger/

-
Enter 'Name' -> 'openemr'. Enter password then click 'Login'.
-

-
Click 'Goods & Services'.
-

-
Click 'Add Services'.
-

-
Enter 'Number' -> 'MS'. Enter 'Description' -> 'Medical
Service'. Choose 'Income' -> '4320—Consulting'. Remove
checks on the three tax toggles. Otherwise, keep defaults. Then
click 'Save'. Your done with SQL-Ledger install, you can log-out
now.
-
Install
php-GACL
- Quick
Index Link.
-
Download phpgacl-3.3.6.tar.gz
file from:
http://sourceforge.net/project/showfiles.php?group_id=57103
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #unpack and place program
in its proper place
-
cd
/var/www/html
-
tar
xvzf /location/to/file/phpgacl-3.3.6.tar.gz
-
mv
phpgacl-* phpgacl
-
- #create the mySQL database
-
mysql
-
At mysql> prompt type:
-
CREATE
DATABASE gacl;
-
exit
-
- Start
phpGACL Installer via : http://localhost/phpgacl/setup.php

-
Close the window. (Don't worry, we
will make the 'Important' directory below.)
-
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #make a
phpgacl/admin/templates_c directory, and change owner
-
mkdir
/var/www/html/phpgacl/admin/templates_c
-
chown
-R apache:apache /var/www/html/phpgacl/admin/templates_c
-
- #edit file
/var/www/html/openemr/library/acl.inc:
-
mcedit
/var/www/html/openemr/library/acl.inc
-
#uncomment and edit
following line:
-
$phpgacl_location =
"/var/www/html/phpgacl";
-
TEXT EDITOR SAVE AND EXIT
-
- #Password protect the
/var/www/html/phpgacl/admin directory. Will need to: FIRST add
entry to apache2 config file, SECOND create a password file, and
THIRD re-start apache.
-
- #FIRST, edit file
/etc/httpd/conf/httpd.conf:
-
mcedit
/etc/httpd/conf/httpd.conf
-
#paste following
section at end of file:
-
<Directory
"/var/www/html/phpgacl/admin">
-
AuthType Basic
-
AuthName "ACL
Administrators"
-
AuthUserFile
/var/www/html/phpgacl/admin/.htpasswd
-
Require valid-user
-
</Directory>
-
TEXT EDITOR SAVE AND EXIT
-
- #SECOND, create the
password file(file is .htpasswd and user is admin)
-
cd
/var/www/html/phpgacl/admin
-
htpasswd
-c /var/www/html/phpgacl/admin/.htpasswd admin
-
-Type in a secure password
-
- #THIRD, Re-start apache
-
service
httpd restart
-
- Configure
phpGACL to use OpenEMR via: http://localhost/openemr/acl_setup.php

-
Close window.
-
- Start phpGACL via:
http://localhost/phpgacl/admin/acl_admin.php

-
Log in as 'admin', and with password created by the above htpasswd
command.
-

-
Close window. Learn how to use
later. (Your OpenEMR 'admin' user is already configured as an
administrator).
-
Configure
SSL
- Quick
Index Link.
-
SSL is very important, and will
ensure encryption of all network traffic. This will allow safe use
of a laptop over a wireless network. The protocol uses https
instead of http and utilizes port 443 instead of 80. Only two
configuration files will need changing. We will also firewall port
80 to ensure that the only available option will be an encrypted
connection.
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #Edit file
/var/www/html/openemr/includes/config.php. This will fix the
SQL-Ledger link in the OpenEMR billing page.
-
mcedit
/var/www/html/openemr/includes/config.php
-
#edit following line
(yes, you're just adding an 's'):
-
- $GLOBALS['oer_config']['ws_accounting']['url_path']
= "https://" .
-
$_SERVER["SERVER_NAME"]
. "/sql-ledger/login.pl";
-
TEXT EDITOR SAVE AND EXIT
-
- #Edit file
/etc/httpd/modules.d/41_mod_ssl.default-vhost.conf.
-
This will ensure only high
level secure encryption is used.
-
mcedit
/etc/httpd/modules.d/41_mod_ssl.default-vhost.conf
-
- #REMOVE the entire
line below:
-
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
-
- #PASTE all of
below in place of the above removed line:
-
SSLOptions +StrictRequire
-
<Directory />
-
SSLRequireSSL
-
</Directory>
-
SSLProtocol -all +TLSv1
+SSLv3
-
SSLCipherSuite
HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM
-
TEXT EDITOR SAVE AND EXIT
-
- #Re-start apache
-
service
httpd restart
-
- Firewall port 80

-
Click 'System' -> 'Configuration' -> 'Configure Your
Computer'.
-

-
Enter 'root' user password. Then
click 'OK'.
-

-
Click 'Security'.
-

-
Click 'Set up a personal...'
-

-
Ensure 'Web Server' is NOT selected. Then Click on 'Advanced'.
-

-
Enter 'Other ports' -> '443/tcp 443/udp'. Then click 'Ok'.
-

-
Click 'Ok'. Keep defaults.
-

-
Click 'Ok'. Keep defaults.
-

-
You are done. Close the window.
-
Using OpenEMR from
'localhost'
- Quick
Index Link.
-
Use OpenEMR with the your
previously created user name(likely 'admin') and default password
'pass' at: https://localhost/openemr
-
Use SQL- Ledger at:
https://localhost/sql-ledger
-
Use php-GACL at:
https://localhost/phpgacl/admin
Using OpenEMR from
another/virtual computer
- Quick
Index Link.
-
Networking with the Virtual
computer over a LAN. You can get the current IP address thru
Mandriva settings, and then use that IP address as the web address
in another computers(including virtual) web browser.
-
First, get your IP address:

-
Click 'System' -> 'Configuration' -> 'Configure Your
Computer'.
-

-
Enter 'root' user password. Then
click 'OK'.
-

-
Click 'Network & Internet'.
-

-
Click 'Reconfigure a network interface'.
-

-
The circled number above is your
Your_Current_IP_address.
-
- Then you can use below
links to connect to your server
-
OpenEMR at
https://Your_Current_IP_address/openemr
- SQL-Ledger at
https://Your_Current_IP_address/sql-ledger
- php-GACL at
https://Your_Current_IP_address/phpgacl/admin
- You can also change your IP
address to a static one, so it doesn't change after the computer
is turned off. I'm out of time, so can't go thru it. You'll have
to Google this one (It can be changed in above window by clicking
on the Protocol toggle and selecting static, then you can choose
an IP address, however then you need to type in DNS servers and
you need to ensure your router does not assign any other computers
your chosen static IP address)
Printer
Setup
- Quick
Index Link.
-
For USB printers, you will need
to connect the device by clicking on printer on top of window.
Your host computer may no longer be able to see the printer after
this step(not permanent, but can be a pain).

-
In my case I click on the 'Hewlett-Packard...' button at top of
VMware window.
-

-
This is just to demonstrate that the 'Hewlett-Packard...' button is
now shaded.
-
-
- Then install software and printer via Mandriva Control Center,
which will first install CUPS, and then look for printers. If your
lucky, Mandriva will see your printer.

-
Click 'System' -> 'Configuration' -> 'Configure Your
Computer'.
-

-
Enter 'root' user password. Then
click 'OK'.
-

-
Click 'Hardware'
-

-
Click 'Set up the printer(s)...'.
-

-
Click 'Yes'.
-

-
Select 'Local CUPS printing system'. Then click 'Ok'.
-

-
Click 'Yes'.
-

-
Just twiddle your thumbs and wait, it takes a while.
-

-
Click 'Add Printer'.
-

-
Select both auto-detect options. Then Click 'Next'.
-

-
No big deal. Close the windows and we will install the printer
below thru CUPS.
-
- If the above step found your printer, then you can skip to the
section below which will have you place the name of the printer
into the openemr config file (this will allow printing while
creating billing forms via freeb). If Mandriva can't find the
printer, don't worry, we will install it via CUPS directly at:
http://localhost:631/

-
Click 'Manage Printers'.
-

-
Click 'Add Printer'.
-

-
Enter 'User Name' -> 'root'. Enter the root password. Then click
'OK'.
-

-
Fill in form, and then click 'Conttinue'. The only important field
is the 'Name'. This will be used later when configuring printer for
freeb/openemr.
-

-
In my case I am selecting the 'USB Printer #1'. If your using a USB
printer, this will likely work.
-

-
Click 'Continue'.
-

-
Select the make of your printer. Then click 'Continue'.
-

-
Select the model of your printer. Then click 'Continue'.
-

-
It Worked!! Click printer name to see more specifics on your newly
added printer.
-

-
Done installing printer. I'd rec. testing it with 'Print Test
Page'.
- Confirm seen in Mandriva and get your printer name:

-
Your printer name is underlined
with red line. This will be typed into the below freeb/openemr
configuration file.
-
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #edit file
/var/www/html/openemr/includes/config.php:
-
mcedit
/var/www/html/openemr/includes/config.php
-
#change bolded variable
to the name of your printer
-
$GLOBALS['oer_config']['freeb']['printer_name']
= "YourPrinterName";
-
TEXT EDITOR SAVE AND EXIT
-
Email
Server Setup
- Quick
Index Link.
-
This will allow only locally
produced emails (such as “status” emails during the
below 'backup script') to be sent over the internet.
-
Need to update a package called
'msec' if you want to avoid an error email per minute(not
exaggerating)
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #Start MandrivaUpdate
-
MandrivaUpdate
-

-
Click 'Yes'.
-

-
Click 'Yes'.
-

-
Click 'Ok'. (just select the default mirror)
-

-
Type 'msec' and click 'Search'.
-

-
Select 'msec-0.49.1-...'. Then click 'Install'.
-

-
Your done. Close the window.
-
-
- Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #This will allow outgoing
mail from server.
-
# Just made up virtual.org, this
can be
- # anything since this is
only an outgoing
-
# email server. (It does not
need to match
-
# your domain or server name.)
-
#edit config file
/etc/postfix/main.cf:
-
mcedit
/etc/postfix/main.cf
-
#add to end of file
-
mydomain = virtual.org
-
myhostname = $mydomain
-
myorigin = $mydomain
-
relayhost =
YourOutgoingSMTPMailServerHere
-
- #This will forward the
root's email to
-
# the below email address
(needed to
-
# monitor server emails such
as below
-
# backup script status)
-
#edit aliases file
/etc/postfix/aliases:
-
mcedit
/etc/postfix/aliases
-
#edit near end of file:
-
root:
YourFullEmailAddressHere
-
- #start postfix service and
configure to start on computer boot up
-
service
postfix start
-
chkconfig
--add postfix
-
Automatic
Backup Setup
- Quick
Index Link.
-
This will enable a
full daily backup of the MySQL server, PostGreSQL server, OpenEMR
patient documents directory, and FreeB billing documents
directory. The script will place a non-encrypted backup in the
local hard drive secured /backup directory, and will also copy an
encrypted backup to a DVD. The DVD copy works via multi-session,
so you basically just need to leave one DVD in the DVD writer
until it fills up. Do NOT use RW DVD. This script will work and
should be used with R only DVD's. The output of the automated
backup script will be emailed to the person's email entered in
above email server setup.
-
The local /backup
directory will have to be manually cleaned up occasionally. I'd
recommend deleting old backup sub-directories on a monthly basis
or so. (of course, a script could be written for this)
-
There is no
restore script yet, will have to be done manually.
-
The MySQL and
PostGreSQL are gzipped. The ...openemr/documents and
.../freeb/public backups are compressed via DAR (NOT tar).
- Download the
script file fullbackup.sh.
File can be found at: http://bradymd.com/fullbackup.sh
(to download file, you may need to Right-Click the link and select
'Save Link As...')
- Configure file
encryption package:
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #Configure file
encryption. If you want to be able to decrypt your encrypted files
you need to remember (case sensitive) the passphrase that you type
below. I'd also remember all the other info you type below.
- gpg
--gen-key
-
-'ENTER' to
default of 1 for key selection
-
-'ENTER' to
default 2048 keysize bits
-
-'ENTER' to
default '0' so key does not expires
-
-Type 'Y' to
confirm above
-
-Type your real
full name
-
-Type your real
email address
-
-Type 'openemr
secure backup key'
-
-Type 'O' to
confirm
-
-Type a very
secure and long 'passphrase' (the longer your passphrase is the
more secure, go for at least 15 characters with numbers, different
cases, and strange characters)
-
- #IMPORTANT!!!
You NEED to backup the entire contents of directory
/root/.gnupg on the most indestructible disk(s) you can
find and then keep in a very secure place. This directory
contains your secret key file, and without this you will be
unable to restore from your encrypted data backup!!! You also
need to remember your passphrase, or you won't be
able to restore your backed up data.
- #The decrypt
command, in case you need at some point:
-
#gpg -o
OutputFilename -d InputFilename
-
- Configure
backup script and automate it:
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #install the
DAR backup package
-
urpmi
dar
-
-yes to
packages
-
- #create a
secure backup directory
-
mkdir
/backup
-
chown
root:root /backup
-
chmod
700 /backup
-
- #move the
backup script to /root , secure it, and allow execution
-
mv
/location/to/file/fullbackup.sh /root
-
chown
root:root /root/fullbackup.sh
-
chmod
700 /root/fullbackup.sh
-
- #edit file
/root/dailybackup.sh:
-
mcedit
/root/fullbackup.sh
-
#edit the
below DVDDEVICE line to what the
-
#device for the
DVD writer is. It is likely going to
- #be /dev/hda
, /dev/hdb , /dev/hdc ... A very
-
#non-scientific
way to figure this out is to put
-
#a DVD with files
in the DVD writer, go to root
-
#command line and
then use the
- #'mount
/dev/hda /mnt/cdrom1'
- #command then
'ls /mnt/cdrom1', and continue
-
#this until you
get the right device,
-
#don't forgot to
'umount /mnt/cdrom1':
-
DVDDEVICE=/dev/hdb
-
- #edit
full name you entered above for encryption key:
-
YOURFULLNAME='Full
Name'
-
TEXT EDITOR
SAVE AND EXIT
-
- #Automate
script to cron for a daily run at 1:02 AM. WARNING: This script
needs to finish and start on the same day since it plays around
with file names using the date command. Basically, don't start
this script before midnight unless you are sure it will finish
before midnight. This is why I have it set for 1:02AM.
-
export
EDITOR=/usr/bin/mcedit
-
crontab
-e
-
#paste
below into empty file:
-
02 1 * * * .
/root/fullbackup.sh
-
TEXT EDITOR
SAVE AND EXIT
-
Helpful
Tips
- Quick
Index Link.
-
NEED to mark bills as
'cleared' (even after hfca processing) on the billing menu to send
data to sql-ledger.
-
NEED to leave the the
'Prior Authorization Form' installed and disabled for the
hfca form printing to work.
-
NEED to also create your
new OpenEMR users in php-GACL or strange things will happen. (I
refer you to below OpenEMR User Training section on how to do
this.)
-
NEED to ensure clock is
set correctly (Virtual computer should not differ from host
computer, or there will be cron scheduling problems)
-
NEED to ensure your
provider is authorized or you won't be able to send bills to
sql-ledger. It's confusing because there are two different
authorization options. Screenshots below go thru the process:

-
Click 'Administration'.
-

-
Click 'edit'.
-

-
Ensure 'the Authorized:' toggle
is on. Ensure the 'See Authorizations:' is set to 'All' or 'only
mine'. Then click 'Save Changes'.
-
OpenEMR
User Training
- Quick
Index Link.
-
There is an excellent web site
for learning how to use all of the components of OpenEMR at:
http://www.sunsetsystems.com/node/8
-
The above link is also mirrored
at the following wiki site, which means it could theoretically
contain updates:
http://www.oemr.org/modules/cjaycontent/index.php?id=2
- There is also an older user
manual in the /var/www/html/openemr/Documentation directory which
can be helpful.
-
You can ask question as the
SourceForge OpenEMR forum at:
http://sourceforge.net/forum/?group_id=60081
- The OpenEMR home page is
here with a wiki and a new forum: http://www.oemr.org/
MirrorMed
- Main
TOC Link.
Installation on
Mandriva 2006 Virtual Computer
- See
the above instructions(Part
III, Building Virtual Computers, Mandriva)
on installing the Mandriva Virtual Computer
-
The MirrorMed package will require
the following software:
-
Apache, MySQL, and PHP4
-
MirrorMed
- First we need to install
Apache, MySQL, and PHP4.
-
OpenMed requires PHP4. You
shouldn't of installed PHP5, since you should not of selected any
server packages during the Mandriva install(then you can disregard
this, and skip to step 2). However if you have PHP5 on your system
then use below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #list all the php5
packages
-
urpme
php
- #remove them all by
pasting in all of the php packages below
-
urpme
(paste)
-
- Enter below bolded
instructions on command line as root user :
- #log into root
-
su
-
- #Install apache, php,
mysql
-
urpmi
apache php4-cli apache-mod_php4 apache-mod_ssl php4-mysql
php4-xml php4-xmlrpc htmldoc mysql
-
-I chose 1-
apache-mpm-prefork-2.0.54-13mdk.i586
-
-I chose 1-
MySQL-4.1.12-3mdk.i586
-
-choose Yes to packages
-
- #start apache and mysql
-
service
httpd start
- service
mysqld start
-
- #enables apache and mysql
to start during boot-up
- chkconfig
--add httpd
-
chkconfig
--add mysqld
-
- Open the firewall for the web
server:

-
Click 'System' -> 'Configuration' -> 'Configure Your
Computer'.
-

-
Click 'Security'.
-

-
Click 'Set up a personal firewall...'.
-

-
Select 'Web Server'. Then click 'OK'.
-

-
Click 'OK'.

-
Click 'Ok'. Keep defaults.
-

-
You are done. Close the window.
-
- Install MirrorMed
-
Download MirrorMed software from
www.mirrormed.com
(version-1.0RC2)
-
Enter below bolded
instructions on command line as root user:
- #log into root
-
su
-
- #edit file /etc/php4.ini
- mcedit
/etc/php4.ini
-
#edit bolded variables:
-
change post_max_size = 30M
-
change upload_max_filesize =
30M
-
change memory_limit = 128M
-
change max_execution_time =
45
-
change register_globals = off
-
change magic_quotes_gpc = off
-
TEXT EDITOR SAVE AND EXIT
-
- #restart httpd
-
service
httpd restart
-
- #put program in its place
and change permission
-
cd
/var/www/html
-
tar
xzvf /location/to/file/mirrormed*.tgz
-
mv
mirrormed* /var/www/html/mirrormed
-
chown
-R apache:apache /var/www/html/mirrormed
-
- #change
permission of /tmp to avoid mirrormed permission errors
-
chmod
a+r /tmp
-
- Then run Auto-Installer via
link: https://127.0.0.1/mirrormed

-
Enter 'Database Username'->root. Leave 'Database Password'
empty. 'Database Server'->localhost. 'Database Name'->mirrormed.
Then click 'Save'.
-

-
Click 'Continue'
-

-
Toggle ON 'Codes Icd9'. Then click 'Install File'.
-

-
Toggle ON 'Codes Hcpcs'. Then
click 'Install File'.
-
-
FreeMed
- Main
TOC Link.
Installation on
Kubuntu 5.1(breezy) Virtual Computer
- See
the above instructions(Part
III, Building Virtual Computers, Kubuntu)
on installing the Kubuntu 5.1 Virtual Computer.
-
The FreeMed package requires the
following software:
-
Apache, MySQL, and PHP4
-
FreeMed
-
Remitt – insurance billing
(optional)
- Install FreeMed
- The FreeMed .deb and .rpm
files don't work. We will just download the tar version for a
manual install.
-
First,
download freemed-0.8.2.tar.gz(version 0.8.2) from here:
http://sourceforge.net/project/showfiles.php?group_id=1428
-
Enter below bolded
instructions on command line:
-
#edit
/etc/apt/sources.list:
-
sudo
nano /etc/apt/sources.list
-
#Comment out the
DVD/CD repository on top line:
-
## deb
cdrom:[Kubuntu 5.10 _Breezy Badger...
-
#Uncomment the
'universe' repositories
-
deb
http://us.archive.ubuntu.com/ubuntu
breezy universe
- deb-src
http://us.archive.ubuntu.com/ubuntu
breezy universe
- #Otherwise,
leave defaults
-
TEXT EDITOR
SAVE AND EXIT
-
- #update the
repository list
-
sudo
apt-get update
-
- #Install Apache, MySQL,
PHP4 and all the other needed packages(dependencies)
-
sudo
apt-get -y install mysql-server-4.1 php4 php4-gd php4-cli
php4-mysql apache2 libapache2-mod-php4 libxml-parser-perl
libtext-iconv-perl djvulibre-bin netpbm imagemagick tetex-bin
tetex-extra cupsys cupsys-client gs-common php4-cgi xpdf-utils
-
-I chose “local only”
on postfix question
- #put freemed in its place
-
cd
/usr/share
-
sudo
tar zxvf /location/to/tarball/freemed-0.8.2.tar.gz
- sudo
mv freemed-* freemed
-
- #change
ownership of freemed directory
-
sudo
chown -Rf www-data:www-data /usr/share/freemed
-
- #edit file
/etc/php4/apache2/php.ini:
- sudo
nano /etc/php4/apache2/php.ini
- #edit
bolded variables:
-
change
post_max_size = 30M
-
change
upload_max_filesize = 30M
-
change
memory_limit = 128M
-
change
max_execution_time to 45
-
ensure
register_globals is off
-
ensure
magic_quotes_gpc is on
-
TEXT EDITOR
SAVE AND EXIT
-
- #edit file
/usr/share/freemed/lib/settings.php:
-
sudo
nano /usr/share/freemed/lib/settings.php
-
set username and password at
end of file
-
TEXT EDITOR SAVE AND EXIT
-
- #edit file
/etc/apache2/apache2.conf:
-
sudo
nano /etc/apache2/apache2.conf
- #add index.php
following DirectoryIndex as below:
-
DirectoryIndex index.php (et
cetera...)
-
- #Uncomment below
lines:
-
AddType
application/x-httpd-php .php
-
AddType
application/x-httpd-php-source .phps
-
- #Paste all of
below at end of file:
-
Alias /freemed
/usr/share/freemed
-
<Directory
/usr/share/freemed>
-
Options Indexes Includes
ExecCGI MultiViews FollowSymLinks
-
AllowOverride All
-
Order allow,deny
-
allow from all
-
</Directory>
-
TEXT EDITOR SAVE AND EXIT
-
- #re-start apache
-
sudo
/etc/init.d/apache2 restart
-
- Auto-Installer
via: http://127.0.0.1/freemed/
Do NOT use 'localhost' or you will get the dreaded
“blank screen”!!!
-
(pictures)
- Install Remitt
- Download
remitt_0.3.1-1_all.deb(version 0.3.1) from here:
http://sourceforge.net/project/showfiles.php?group_id=1428
-
Enter below bolded
instructions on command line:
- #install
Remitt, dependencies are all automatically installed.
-
sudo
dpkg -i /location/to/file/remitt_0.3.1-1_all.deb
-
sudo
apt-get -fy install
-
- #Create
Remitt username and password
-
cd
/usr/share/remitt
-
sudo
./bin/sqlite_user_admin.pl create username password
-
- Now configure
FreeMed to use Remitt.
-
Go
to http://127.0.0.1/freemed/
- log-in
-
(picture)
-
'administration'
-
(picture)
-
'configuration'
-
(picture)
-
click 'Remitt
Billing System'

-
Use defaults and click 'Configure' (confirm)
-
- -check to ensure billing running by clicking 'main' (picture)
'billing' (picture)
-

-
Ensure it states near top of
screen 'REMITT Server Running'
-
- TO DO:
-
1.Finish pictures
-
VistA
- Main
TOC Link.
Installation on
Mandriva 2006 Virtual Computer
Required Software
for Installation
- Quick
Index Link.
-
SemiVivaFOIA Gold bundle
-
Includes the VA FOIA
- Also includes GT.M (MUMPS
compiler)
Install the
Mandriva2006 Virtual Computer
- Quick
Index Link.
-
Follow
the above instructions in (Part
III, Building Virtual Computers, Mandriva).
-
Install
VistA
- Quick
Index Link.
-
Download
OpenVistASemiVivAFOIAGold20050825.tgz from:
http://prdownloads.sourceforge.net/worldvista
- Enter below bolded
instructions on command line as root user:
- #log in to root
-
su
-
- #Create a vista user and
password
-
useradd
vista
-
passwd
vista
-
-Type a new secure password
for your new vista user
-
- #Make a log directory and
change ownership to vista user
-
mkdir
/home/vista/log
-
chown
vista:vista /home/vista/log
-
- #Create healthy environment
by editing file /home/vista/.bashrc:
-
mcedit
/home/vista/.bashrc
-
- #DELETE all the text
in file, then PASTE all of below into file:
-
- # .bashrc
-
# Get the aliases and functions
-
if [ -f ~/bashrc ]; then
-
. ~/bashrc
-
fi
-
- # User specific environment
and startup programs
-
PATH=$PATH:$HOME/bin
-
unset USERNAME
-
- ## OpenVistA specific
environment ##
-
export gtm_dist=/usr/local/gtm
-
export gtm_log=/home/vista/log
-
export
gtmgbldir=/home/vista/g/mumps.gld
-
export gtm_vista=/home/vista/
-
export vista_home=/home/vista
-
export
gtmroutines="$vista_home/o($vista_home/r) $gtm_dist"
-
alias GTM="$gtm_dist/mumps
-direct"
-
alias gtm="$gtm_dist/mumps
-direct"
-
alias mupip="$gtm_dist/mupip"
-
alias gde="$gtm_dist/mumps
-r ^GDE"
-
alias lke="$gtm_dist/lke"
-
alias dse="$gtm_dist/dse"
-
alias rundown="$gtm_dist/mupip
rundown -r \"*\""
-
export PATH=$PATH:$gtm_dist
-
TEXT EDITOR SAVE AND EXIT
-
- #make a garbage directory
and move into it
-
mkdir
/tmp/openvista
-
cd
/tmp/openvista
-
- #extract
OpenVistASemiVivAFOIAGold20050212.tgz file:
-
tar
-xzvf /to/location/of/OpenVistASemiVivAFOIAGold20050825.tgz
-
- #gtm and OpenVistA are now
just symbolic links. Since I don't like links... lets just get rid
of them
-
rm -f
gtm
-
rm -f
OpenVistA
-
- #change names of directories
-
mv gtm*
gtm
-
mv
FOIAVistA* OpenVistA
-
- #change the permissions
-
chown
-R root:root gtm
-
chown
-R vista:vista OpenVistA
-
- #put the files in their
proper places
-
mv gtm
/usr/local/
-
mv
OpenVistA/* /home/vista/
-
- #unpackage one more file
-
cd
/home/vista/g
-
gunzip
mumps.dat.gz
-
- #remove the garbage
directory
-
rm -rf
/tmp/openvista
-
- #Now log out of X-windows.
Log back in as 'vista' user. Then continue below in 'configure
vista' section.
-
Start
VistA
- Quick
Index Link.
-
Enter below bolded
instructions on command line as vista user:
- #start vista
-
gtm
-
Basic configuration
of VistA
- Quick
Index Link.
-
This consist of setting up MUMPS
routines, a domain, an admin user, taskman, mailman, an RPC
broker, and CPRS keys. This HowTo is emulating two other tutorials
written by Mark Street and Nancy Anthracite.
- LEGEND:
-
INPUT –
This color is for user input.
-
SPECIAL
– This color will be explained by my comments.
-
COMMENTS
– This color will contain comments.
-
Default to the
'ENTER' key if no specific instructions
-
- ##
First, lets set up the MUMPS routines
-
- GTM>D
^ZTMGRSET
-
- ZTMGRSET Version
8.0 **34,36,69,94,121,127,136,191,275**
-
HELLO! I exist to
assist you in correctly initializing the current account.
-
- THIS MAY NOT BE
THE MANAGER UCI.
-
I think it is
VAH,ROU. Should I continue anyway? N//YES
-
I think you are using
GT.M (Unix)
-
Which MUMPS system
should I install?
-
- 1 = VAX DSM(V6),
VAX DSM(V7)
-
2 = MSM-PC/PLUS, MSM
for NT or UNIX
-
3 = OpenM for NT,
Cache/NT, Cache/VMS
-
4 = Datatree, DTM-PC,
DT-MAX
-
5 = MVX,ISM VAX
-
6 = ISM (UNIX, Open
VMS)
-
7 = GT.M (VMS)
-
8 = GT.M (Unix)
-
System: 8//8
-
- I will now rename
a group of routines specific to your operating system.
-
Routine: ZOSVGUX
Loaded, Saved as %ZOSV
-
Routine: ZTBKCGUX
Missing
-
Routine: ZIS4GTM
. S (%,%1)=$ZGETDVI($I,"TT_ACCPORNAM")
-
^-----
-
At
column 14, line 44, source module /home/vista/r/ZIS4GTM.m
-
%GTM-E-FNOTONSYS,
Function or special variable is not supported by this operating
system
-
Loaded, Saved
as %ZIS4
-
Routine: ZISFGUX
Missing
-
Routine: ZISHGUX
Loaded, Saved as %ZISH
-
Routine: XUCIGTM
Loaded, Saved as %XUCI
-
Routine: ZISETGUX
Missing
-
Routine: ZOSV2GTM
Loaded, Saved as %ZOSV2
-
Routine: ZISTCPS
O NIO:(:SOCK:"AT"::512:512:10):30 Q:'$T S POP=0
U NIO
-
^-----
-
At
column 9, line 25, source module /home/vista/r/ZISTCPS.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
J
CHILDONT^%ZISTCPS(NIO,RTN):(:4:NIO:NIO):10 S %ZA=$ZA
-
^-----
-
At
column 32, line 30, source module /home/vista/r/ZISTCPS.m
-
%GTM-E-JOBPARUNK, Job
parameter unknown
-
U
IO:(::"-M") ;Work like DSM
-
^-----
-
At
column 8, line 36, source module /home/vista/r/ZISTCPS.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
Loaded, Saved
as %ZISTCPS
-
- NAME OF MANAGER'S
UCI,VOLUME SET: VAH,ROU//
-
The value of
PRODUCTION will be used in the GETENV api.
-
PRODUCTION (SIGN-ON)
UCI,VOLUME SET: VAH,ROU//
-
The VOLUME name must
match the one in PRODUCTION.
-
NAME OF VOLUME SET:
ROU//
-
The temp directory
for the system: '/tmp/'//
-
^%ZOSF setup
-
- Now to load
routines common to all systems.
-
Routine: ZTLOAD
Loaded, Saved as %ZTLOAD
-
Routine: ZTLOAD1
Loaded, Saved as %ZTLOAD1
-
Routine: ZTLOAD2
Loaded, Saved as %ZTLOAD2
-
Routine: ZTLOAD3
Loaded, Saved as %ZTLOAD3
-
Routine: ZTLOAD4
Loaded, Saved as %ZTLOAD4
-
Routine: ZTLOAD5
Loaded, Saved as %ZTLOAD5
-
Routine: ZTLOAD6
Loaded, Saved as %ZTLOAD6
-
Routine: ZTLOAD7
Loaded, Saved as %ZTLOAD7
-
Routine: ZTM
Loaded, Saved as %ZTM
-
Routine: ZTM0
Loaded, Saved as %ZTM0
-
Routine: ZTM1
Loaded, Saved as %ZTM1
-
Routine: ZTM2
Loaded, Saved as %ZTM2
-
Routine: ZTM3
Loaded, Saved as %ZTM3
-
Routine: ZTM4
Loaded, Saved as %ZTM4
-
Routine: ZTM5
Loaded, Saved as %ZTM5
-
Routine: ZTM6
S ZTNAME=$ZC(%GETJPI,ZTPID,"PRCNAM") Q:ZTNAME["Sub"
-
^-----
-
At
column 12, line 75, source module /home/vista/r/ZTM6.m
-
%GTM-E-FNOTONSYS,
Function or special variable is not supported by this operating
system
-
S
ZTSTATE=$ZC(%GETJPI,ZTPID,"STATE")
-
^-----
-
At
column 13, line 76, source module /home/vista/r/ZTM6.m
-
%GTM-E-FNOTONSYS,
Function or special variable is not supported by this operating
system
-
Loaded,
Saved as %ZTM6
-
Routine: ZTMS
Loaded, Saved as %ZTMS
-
Routine: ZTMS0
Loaded, Saved as %ZTMS0
-
Routine: ZTMS1
Loaded, Saved as %ZTMS1
-
Routine: ZTMS2
Loaded, Saved as %ZTMS2
-
Routine: ZTMS3
Loaded, Saved as %ZTMS3
-
Routine: ZTMS4
Loaded, Saved as %ZTMS4
-
Routine: ZTMS5
Loaded, Saved as %ZTMS5
-
Routine: ZTMS7
Loaded, Saved as %ZTMS7
-
Routine: ZTMSH
Loaded, Saved as %ZTMSH
-
Routine: ZTER
I ^%ZOSF("OS")["OpenM" D
SAVE("$ZU(56,2)",$ZU(56,2))
-
^-----
-
At
column 45, line 29, source module /home/vista/r/ZTER.m
-
%GTM-E-INVFCN,
Invalid function name
-
Loaded,
Saved as %ZTER
-
Routine: ZTER1
S
@%ZTERRT@("J")=$J_"^"_$ZC(%GETJPI,0,"PRCNAM")_"^"_$ZC(%GETJPI,0,"USERNAME")_"^"_%ZTER11I_"^"_$ZC(%SYSFAO,"!XL",$J),@%ZTERRT@("I")=$IO_"^"_$ZA_"^"_$ZB_"^"_$ZIO
K %ZTER11I
-
^-----
-
At
column 27, line 4, source module /home/vista/r/ZTER1.m
-
%GTM-E-FNOTONSYS,
Function or special variable is not supported by this operating
system
-
S
@%ZTERRT@("ZH")=$TR($ZH,",","^")
-
^-----
-
At
column 25, line 5, source module /home/vista/r/ZTER1.m
-
%GTM-E-INVSVN,
Invalid special variable name
-
S
%ZTER111="%" F D S %ZTER111=$ZSORT(@%ZTER111)
Q:%ZTER111="" ;Code from DEC
-
^-----
-
At
column 35, line 6, source module /home/vista/r/ZTER1.m
-
%GTM-E-INVFCN,
Invalid function name
-
Loaded, Saved
as %ZTER1
-
Routine: ZIS
Loaded, Saved as %ZIS
-
Routine: ZIS1
Loaded, Saved as %ZIS1
-
Routine: ZIS2
Loaded, Saved as %ZIS2
-
Routine: ZIS3
Loaded, Saved as %ZIS3
-
Routine: ZIS5
Loaded, Saved as %ZIS5
-
Routine: ZIS6
Loaded, Saved as %ZIS6
-
Routine: ZIS7
Loaded, Saved as %ZIS7
-
Routine: ZISC
Loaded, Saved as %ZISC
-
Routine: ZISP
Loaded, Saved as %ZISP
-
Routine: ZISS
Loaded, Saved as %ZISS
-
Routine: ZISS1
Loaded, Saved as %ZISS1
-
Routine: ZISS2
Loaded, Saved as %ZISS2
-
Routine: ZISTCP
O NIO:(TCPCHAN,ADDRESS=IP):TO G:'$T NOOPN
-
^-----
-
At
column 9, line 18, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
U
NIO::"TCP" W /SOCKET(IP,SOCK) I $KEY="" C NIO G
NOOPN
-
^-----
-
At
column 8, line 23, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
I
$$VERSION^%ZOSV'<5 S %A=$ZUTIL(68,55,1)
-
^-----
-
At
column 29, line 27, source module /home/vista/r/ZISTCP.m
-
%GTM-E-INVFCN,
Invalid function name
-
O
NIO:(IP:SOCK:"-M"::512:512):TO G:'$T NOOPN ;Make work like
DSM
-
^-----
-
At
column 9, line 29, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
I
%ZISOS["DSM",%ZISV'<7 S NIO="SYS$NET" O
NIO:(TCPDEV):5 D:$T VAR(NIO)
-
^-----
-
At
column 49, line 63, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
U
NIO::"TCP" W /SOCKET("",SOCK)
-
^-----
-
At
column 8, line 102, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
O
NIO:(:SOCK:"AT"::512:512:3):30 Q:'$T S POP=0
-
^-----
-
At
column 9, line 110, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
U
NIO:(::"-M") ;Work like DSM
-
^-----
-
At
column 9, line 116, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
S
NIO=SOCK O NIO:(TCPCHAN):30 Q:'$T S POP=0
-
^-----
-
At
column 20, line 121, source module /home/vista/r/ZISTCP.m
-
%GTM-E-DEVPARUNK,
Deviceparameter unknown
-
Loaded, Saved
as %ZISTCP
-
Routine: ZISUTL
Loaded, Saved as %ZISUTL
-
Routine: ZTPP
Loaded, Saved as %ZTPP
-
Routine: ZTP1
Loaded, Saved as %ZTP1
-
Routine: ZTPTCH
Loaded, Saved as %ZTPTCH
-
Routine: ZTRDEL
Loaded, Saved as %ZTRDEL
-
Routine: ZTMOVE
Loaded, Saved as %ZTMOVE
-
Want to rename the
FileMan routines: No//YES
-
Routine: DIDT
Loaded, Saved as %DT
-
Routine: DIDTC
Loaded, Saved as %DTC
-
Routine: DIRCR
Loaded, Saved as %RCR
-
Setting ^%ZIS('C')
-
- Now, I will check
your % globals...........
-
ALL DONE
-
- ##
Initialize Fileman
-
- GTM>D
^DINIT
-
- VA FileMan V.22.0
-
- Initialize VA
FileMan now? NO//YES
-
- SITE NAME:
TECHNICAL INTEGRATION SERVICE// BRADYMD
VISTA
-
- ##
Write down the below SITE NUMBER that you enter. You
-
##
will need this number later on when you type in an
- ##
Institution and Medical Center name.
-
- SITE NUMBER: 50//
4321..........................
-
- Now loading MUMPS
Operating System File....
-
- Now loading
DIALOG and LANGUAGE Files...........................................
-
...............
-
- TYPE OF MUMPS
SYSTEM YOU ARE USING: CACHE/OpenM// GT.M
-
1 GT.M(UNIX)
-
2 GT.M(VAX)
-
CHOOSE 1-2: 1
GT.M(UNIX)
-
- Now loading other
FileMan files--please wait....................................
-
................................................................................
-
................................................................................
-
................
-
..........
-
- The following
files have been installed:
-
.11 INDEX
-
.2
DESTINATION
-
.31 KEY
-
.4 PRINT
TEMPLATE
-
.401 SORT
TEMPLATE
-
.402 INPUT
TEMPLATE
-
.403 FORM
-
.404 BLOCK
-
.44 FOREIGN
FORMAT
-
.46 IMPORT
TEMPLATE
-
.5 FUNCTION
-
.6 DD AUDIT
-
.7 MUMPS
OPERATING SYSTEM
-
.81 DATA TYPE
-
.83 COMPILED
ROUTINE
-
.84 DIALOG
-
.85 LANGUAGE
-
1 FILE
-
1.1 AUDIT
-
1.11 ARCHIVAL
ACTIVITY
-
1.12 FILEGRAM
HISTORY
-
1.13 FILEGRAM
ERROR LOG
-
1.2 ALTERNATE
EDITOR
-
1.521
SQLI_SCHEMA
-
1.52101
SQLI_KEY_WORD
-
1.5211
SQLI_DATA_TYPE
-
1.5212
SQLI_DOMAIN
-
1.5213
SQLI_KEY_FORMAT
-
1.5214
SQLI_OUTPUT_FORMAT
-
1.5215 SQLI_TABLE
-
1.5216
SQLI_TABLE_ELEMENT
-
1.5217
SQLI_COLUMN
-
1.5218
SQLI_PRIMARY_KEY
-
1.5219
SQLI_FOREIGN_KEY
-
1.52191
SQLI_ERROR_TEXT
-
1.52192
SQLI_ERROR_LOG
-
- Re-indexing
entries in the DIALOG file.....................
-
- Compiling all
forms ...
-
- DICATT
(#.001)
-