41 lines
2.1 KiB
XML
41 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<databaseChangeLog
|
|
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
|
|
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
|
|
|
<!-- This Liquibase file is meant to contain changesets for miscellaneous configuration Only -->
|
|
<changeSet id="BAHMNI-IMPL-OMRS-MISC-001" author="tw">
|
|
<comment>Location on Server where the patient uploaded images will be stored</comment>
|
|
<sql>
|
|
INSERT INTO global_property (`property`, `property_value`, `description`, `uuid`)
|
|
VALUES ('emr.personImagesDirectory', '/home/bahmni/patient_images', 'Location of patient images - required by emrapi', uuid());
|
|
</sql>
|
|
</changeSet>
|
|
<changeSet id="BD-20151124-1650" author="tw">
|
|
<preConditions onFail="MARK_RAN">
|
|
<sqlCheck expectedResult="1">
|
|
SELECT COUNT(*) FROM global_property where property='patient.nameValidationRegex';
|
|
</sqlCheck>
|
|
</preConditions>
|
|
<comment>Updating the given name regex pattern </comment>
|
|
<sql>
|
|
update global_property set property_value='^[a-zA-Z \\-\\.]+$' where property='patient.nameValidationRegex';
|
|
</sql>
|
|
</changeSet>
|
|
<changeSet id="BD-20170321-1519" author="Anjaly,Dubey">
|
|
<preConditions onFail="MARK_RAN">
|
|
<sqlCheck expectedResult="1">
|
|
SELECT COUNT(*) FROM global_property where property='patient.nameValidationRegex';
|
|
</sqlCheck>
|
|
</preConditions>
|
|
<comment>Removing the regex pattern so we can create person for provider with organization name</comment>
|
|
<sql>
|
|
update global_property set property_value='' where property='patient.nameValidationRegex';
|
|
</sql>
|
|
</changeSet>
|
|
</databaseChangeLog>
|