-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renaming start_date in order to date_activated
- Loading branch information
1 parent
515a4ef
commit cc8882c
Showing
34 changed files
with
179 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,8 +383,8 @@ public String exportXml(Integer patientId) throws DAOException { | |
if (order.getInstructions() != null) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wluyima
Member
|
||
orderNode.setAttribute("instructions", order.getInstructions()); | ||
} | ||
if (order.getStartDate() != null) { | ||
orderNode.setAttribute("start_date", df.format(order.getStartDate())); | ||
if (order.getDateActivated() != null) { | ||
orderNode.setAttribute("date_activated", df.format(order.getDateActivated())); | ||
} | ||
if (order.getAutoExpireDate() != null) { | ||
orderNode.setAttribute("auto_expire_date", df.format(order.getAutoExpireDate())); | ||
|
@@ -1790,7 +1790,7 @@ public Map<Integer, Collection<Integer>> getActiveDrugIds(Collection<Integer> pa | |
List<String> whereClauses = new ArrayList<String>(); | ||
whereClauses.add("o.voided = false"); | ||
if (toDate != null) { | ||
whereClauses.add("o.start_date <= :toDate"); | ||
whereClauses.add("o.date_activated <= :toDate"); | ||
} | ||
if (fromDate != null) { | ||
whereClauses.add("(o.auto_expire_date is null or o.auto_expire_date > :fromDate)"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8422,5 +8422,13 @@ | |
<comment>Dropping default value for drug_order.drug_inventory_id </comment> | ||
<dropDefaultValue tableName="drug_order" columnName="drug_inventory_id" columnDataType="int" /> | ||
</changeSet> | ||
<changeSet id="20140801-TRUNK-4443-rename_order_start_date_to_date_activated" author="bharti"> | ||
<preConditions onFail="MARK_RAN"> | ||
<columnExists columnName="start_date" tableName="orders" /> | ||
This comment has been minimized.
Sorry, something went wrong.
wluyima
Member
|
||
</preConditions> | ||
<comment>Renaming the start_date in order table to date_activated</comment> | ||
<renameColumn tableName="orders" newColumnName="date_activated" oldColumnName="start_date" columnDataType="datetime" /> | ||
</changeSet> | ||
|
||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I believe there is more things to change in this class