def lab_order_to_xml(lab_order): node = Element('LabOrder') from_time = get_path_as_datetime(lab_order.data, ['from_time']) if from_time is not None: from_time_node = SubElement(node, 'FromTime') from_time_node.text = from_time.isoformat() return node
def date_of_death(self): return get_path_as_datetime(self.data, ['death_time'])
def from_time(self): return get_path_as_datetime(self.data, ['from_time'])
def to_time(self): return get_path_as_datetime(self.data, ['to_time'])