Пример #1
0
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
Пример #2
0
 def date_of_death(self):
     return get_path_as_datetime(self.data, ['death_time'])
Пример #3
0
 def from_time(self):
     return get_path_as_datetime(self.data, ['from_time'])
Пример #4
0
 def to_time(self):
     return get_path_as_datetime(self.data, ['to_time'])