The following describes how to install OpenVPMS from scratch and assumes that you have downloaded it and unpacked its zip file.
If you have not installed the other required software, see Requirements.
The headings below are:
Note that in the following the directory or folder separator character is shown as /, following unix conventions. On Windows, replace / with \. e.g. given:
<OPENVPMS_HOME>/bin
change to:
<OPENVPMS_HOME>\bin
The OpenVPMS installation has a single top-level directory named:
openvpms-release-XXX
where XXX indicates the version.
This will be referred to as <OPENVPMS_HOME> in the remainder of this document. This directory has the following sub-directories:
Name | Contents |
---|---|
archetypes | archetype definitions |
bin | tools used to configure and load data into OpenVPMS |
conf | configuration files for the tools in ../bin |
import | data to import into OpenVPMS |
legacy-migration | scripts used to migrate from releases prior to OpenVPMS 1.9. |
lib | jars used by the tools in ../bin |
reports | document templates for reporting |
plugins | plugin support |
webapps | the OpenVPMS web applications |
NOTE: the OpenVPMS installation directory should be secured to prevent unauthorised user access.
The MySQL Connector/J JDBC driver needs to be downloaded from:
http://dev.mysql.com/downloads/connector/j/5.1.html
It is typically named mysql-connector-java-5.1.<x>.zip or mysql-connector-java-5.1.<x>.tar.gz where <x> represents the minor version number.
The JDBC driver in the archive is named:
mysql-connector-java-5.1.<x>-bin.jar.
This needs to be copied to:
In the above, <TOMCAT_HOME> refers to the directory where Apache Tomcat is installed. On Windows, this will be something like:
C:\Program Files\Apache Software Foundation\Tomcat 7.0
To create the OpenVPMS MySQL database:
The toolbox configure command:
E.g.:
> cd <OPENVPMS_HOME>/bin > toolbox configure Database URL [jdbc:mysql://localhost:3306/openvpms?useSSL=false]: Database user [openvpms]: Database password: apasswd Reporting database URL [jdbc:mysql://localhost:3306/openvpms?useSSL=false]: Reporting database user [openvpms]: Reporting database password [apasswd]: The file ../conf/openvpms.properties should have restrictive permissions to protect passwords Take a secure backup of the file ../conf/openvpms.properties This needs to be kept for subsequent updates.
If the MySQL database is on a different host to that running Tomcat, replace localhost in the Database URL with the correct host name or IP address.
The toolbox database --create command:
> cd <OPENVPMS_HOME>/bin > toolbox database --create -u <admin-user> -p <admin-password> Created openvpms Archetypes successfully loaded
NOTES:
GRANT ALL PRIVILEGES ON <database-name>.* TO '<user-name>'@'%' IDENTIFIED BY '<user-password>' WITH GRANT OPTION;
Replace <database-name>, <user-name> and <user-password> with the corresponding values entered during toolbox configure.
To improve security, the '%' should be replaced with the host that Tomcat will connect from.
The dataload command provides two options:
> cd <OPENVPMS_HOME>/bin > dataload setup
The dataload command creates a default administration user named admin with password admin.
This should be secured by providing a new password e.g.:
> cd <OPENVPMS_HOME>/bin > toolbox user --setpassword admin -p somestrongpassword
The templates used for document (ie invoices, payments etc.) and reports, are located in:
<OPENVPMS_HOME>/reports
These need to be loaded prior to use. This can be done using the toolbox template --load command.
There are 3 sizes of templates supported: A4, A5 and Letter (i.e. US-Letter).
To load all A4 templates:
> cd <OPENVPMS_HOME>/bin > toolbox template --load --size A4 --all Loaded 'Counter Sale' Loaded 'Credit' Loaded 'Credit Adjustment' Loaded 'Debit Adjustment' Loaded 'Estimate' Loaded 'Estimate Items' Loaded 'Estimate Items-PT' Loaded 'Invoice' Loaded 'Invoice Items' Loaded 'Invoice Items-P ... Loaded 'Stock Movement Report' Loaded 'Stock Reorder Report' Loaded 'Stock Valuation Report' Loaded 'Stocktake Export Report' Loaded 'Stocktake List Report' Loaded 'HL7 Messages Report' Loaded 'Insurance Claims Report'
NOTES:
After installation, templates can be updated using via Administration|Templates.
Templates may be customised if necessary - those that have content with a:
Customising of the .odt template content will be required to:
Customising of the .jrxml template content is not generally required - the localisation is done using the Letterhead facility.
See also Introduction|Reporting, Reference|Reports and Forms, and Administration|Templates.
To install the OpenVPMS web application:
> cd <OPENVPMS_HOME>/bin > ./toolbox war Created ../webapps/openvpms.war The file ../webapps/openvpms.war should have restrictive permissions to protect passwords
OpenVPMS uses OpenOffice to perform reporting, printing and document conversion.
Install it as per your platform's requirements and then:
C:\Program Files (x86)\OpenOffice 4\program
Windows users can find instructions for changing the PATH here.
To test the installation, open up a web browser and enter the address:
http://localhost:8080/openvpms/login
Login to OpenVPMS using user admin and the password set above.
OpenVPMS ships with optional data that can be loaded as required. This includes:
Note that having loaded these (as with any external changes to the database) you should restart Tomcat to ensure that its caches do not hold obsolete information.
The VeNom codes are standardised codes for classifying veterinary data. OpenVPMS can use VeNom:
VeNom codes can all be loaded using:
> cd <OPENVPMS_HOME>/bin
> dataload -d ../import/data/VeNom
To load specific codes, see below.
> cd <OPENVPMS_HOME>/bin > dataload -f ../import/data/VeNom/presentingComplaint.xml
> cd <OPENVPMS_HOME>/bin > dataload -f ../import/data/VeNom/diagnosis.xml
> cd <OPENVPMS_HOME>/bin > dataload -f ../import/data/VeNom/visitReason.xml
These can be loaded using:
> cd <OPENVPMS_HOME>/bin > dataload -f ../import/data/postcodesAU.xml
The installation includes a single administrator user named 'admin' that has authorities to perform all operations.
New users can be added in the web application at Administration - Users by clicking the New button.
Users have categories and roles that determine what they can do.
E.g., clinicians should be assigned:
See Concepts - Users for more details.