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>/lib
change to:
<OPENVPMS_HOME>\lib
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 |
---|---|
bin | a number of tools used to load data into OpenVPMS |
conf | configuration files for the tools in ../bin |
db | MySQL SQL scripts to create the initial database |
import | data to import into OpenVPMS |
lib | jars used by the tools in ../bin |
reports | document templates for reporting |
update | data and scripts to migrate from earlier versions of OpenVPMS |
webapps | the OpenVPMS web applications |
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, run the following in a shell prompt
> cd <OPENVPMS_HOME>/bin
> dbtool --create install -u admin -p apasswd
NOTES:
hibernate.connection.url=jdbc:mysql://localhost:3306/openvpms
by the IP address or host name of the database server.
This MUST be done before running dbtool.
GRANT ALL PRIVILEGES ON openvpms.* TO 'openvpms'@'%' IDENTIFIED BY 'openvpms' WITH GRANT OPTION;
To improve security, the '%' should be replaced with the host that Tomcat will connect from.
Next, run the 'archload' script to load archetypes:
> cd <OPENVPMS_HOME>/bin
> archload
Next, run the 'dataload' script. This provides two options, 'base' and 'setup'. The former loads a base database setup in preparation for data migration. The latter contains a default setup suitable for a new installation.
e.g:
> cd <OPENVPMS_HOME>/bin
> dataload setup
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 'templateload' script. If you invoke this with no arguments you will get the following:
Loads OpenVPMS document and report templates
usage: templateload [type size]|[file]
type - the template type. One of: documents, reports
size - the page size. One of: A4, A5, Letter
file - templates.xml file path
NOTE: existing templates with the same name and content file name will be replaced
E.g.:
templateload documents A4
templateload reports Letter
templateload c:\myreports\my-custom-A4.xml
As indicated the templates are grouped by type and paper size. For new installations, you MUST load both the reports and the documents. However, when upgrading, if you have your own customised version of invoices etc, it may be beneficial to load all the reports but a restricted subset of the documents - see here for more information.
For new installations you need to do:
> cd <OPENVPMS_HOME>/bin
> templateload reports RS
> templateload documents DS
Where RS is the paper size for the reports and must be either A4 or Letter (ie US)
and DS is the paper size for the documents and must be one or A4, A5 or Letter
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:
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 your Internet Browser and enter the address:
http://localhost:8080/openvpms/app
Login to OpenVPMS using user admin and password admin
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 basic installation grants all functionality to all users. To restrict this, load the roles.xml file
> cd <OPENVPMS_HOME>/bin
> dataload -f ../import/data/roles.xml
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