merged back changes from trunk

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6207 9e4fa352-aafb-0310-9071-df624684024b
Initial support for pharmacy orders for OVPMS-1523 HL7 Pharmacy Orders

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6210 9e4fa352-aafb-0310-9071-df624684024b
Add support to configure a dispense connector for pharmacies

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6215 9e4fa352-aafb-0310-9071-df624684024b
Add node to locate the act.patientClinicalEvent linked to the invoice item

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6218 9e4fa352-aafb-0310-9071-df624684024b
added customer pharmacy order archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6221 9e4fa352-aafb-0310-9071-df624684024b
added user node to party.organisationPharmacy to specify the user to process pharmacy dispense messages as

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6237 9e4fa352-aafb-0310-9071-df624684024b
merged back changes from 1.8-dev branch

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6239 9e4fa352-aafb-0310-9071-df624684024b
, reinstate archetypeRange for dispensing node of act.customerAccountInvoiceItem so its rendered on a tab
. added includeMillis, includeTimeZone to entity.connectorReceiverHL7MLLPType

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6243 9e4fa352-aafb-0310-9071-df624684024b
refactoring HL7 archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6248 9e4fa352-aafb-0310-9071-df624684024b
refactoring HL7 archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6249 9e4fa352-aafb-0310-9071-df624684024b
refactoring HL7 archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6254 9e4fa352-aafb-0310-9071-df624684024b
. added OrderRules
. added location node to act.customerOrderPharmacy and act.customerReturnPharmacy

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6258 9e4fa352-aafb-0310-9071-df624684024b
. changed customer order acts to FinancialActs, in order to support queries of other customer orders down the track
. added CustomerAccountRules.getCredit()
. expanded OrderRules

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6262 9e4fa352-aafb-0310-9071-df624684024b
. commented out batch in orders and returns for time being
. refactor FinancialTestHelper

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6265 9e4fa352-aafb-0310-9071-df624684024b
. added PatientHistoryChanges.isNew(Act event)
. added MedicalRecordRules.isAllergy(Act alert)

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6269 9e4fa352-aafb-0310-9071-df624684024b
Added nodes to track order received and return quantities

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6281 9e4fa352-aafb-0310-9071-df624684024b
merged back changes from 1.8-dev branch

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6282 9e4fa352-aafb-0310-9071-df624684024b
added support to make hl7 messages persistent

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6286 9e4fa352-aafb-0310-9071-df624684024b
. made author node mandatory on act.HL7Message
. added serviceUser node to party.organisationPractice

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6292 9e4fa352-aafb-0310-9071-df624684024b
Fixed PartyFunctionsTestCase.testActGetPatientReferralVet() to ensure that the act is dated after the REFERRED_FROM relationship

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6293 9e4fa352-aafb-0310-9071-df624684024b