Support deriving auto_expire_date from duration and duration units for Drug Orders - TRUNK-4446 TRUNK-4446: Infer drug order auto expire date based on duration and frequency
TRUNK-4446: Use uuid for comparision. Improved javadoc for ISO8601Duration
* Remove unused constants in map type
* Use uuid of concept source
* Exception when duration code is unknown
* Exception when frequency not provide for recurring interval
* Fix uuid, dates in change set.
* New change set for alter column
* Check for duration and units before infering expire date
* Use getEffectiveStartDate to handle scheduled order
TRUNK-4446: Add preconditions for inserting concept source and reference terms
TRUNK-4446: Move migrations from liquibase-core-data.xml to liquibase-update-to-latest.xml
TRUNK-4446: Validate duration units is mapped to ISO 8601 duration when auto expire date is not set
Follow up to remove concept map uuid restriction and moved logic that checks for durations mappings to DrugOrderValidator - TRUNK-4446
java.lang.NullPointerException
at org.openmrs.api.handler.OpenmrsObjectSaveHandler.handle(OpenmrsObjectSaveHandler.java:82)
at org.openmrs.aop.RequiredDataAdvice.recursivelyHandle(RequiredDataAdvice.java:270)
at org.openmrs.aop.RequiredDataAdvice.recursivelyHandle(RequiredDataAdvice.java:234)
at org.openmrs.aop.RequiredDataAdvice.before(RequiredDataAdvice.java:139)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
(39 more lines...)