Added datatime cast to date objects in CarePlan hierachy.