Package Gnumed :: Package exporters :: Module gmTimelineExporter
[frames] | no frames]

Module gmTimelineExporter

source code

Timeline exporter.

Copyright: authors


Author: Karsten Hilbert <Karsten.Hilbert@gmx.net>

License: GPL v2 or later (details at http://www.gnu.org)

Functions
 
format_pydt(pydt, format='%Y-%m-%d %H:%M:%S') source code
 
create_timeline_file(patient=None, filename=None) source code
 
create_fake_timeline_file(patient=None, filename=None)
Used to create an 'empty' timeline file for display.
source code
Variables
  ERA_NAME_CARE_PERIOD = _('Care Period')
  xml_start = """<?xml version="1.0" encoding="utf-8...
  xml_end = ...

Imports: sys, logging, io, os, gmTools, gmDateTime


Function Details

create_fake_timeline_file(patient=None, filename=None)

source code 
Used to create an 'empty' timeline file for display.

- needed because .clear_timeline() doesn't really work


Variables Details

xml_start

Value:
"""<?xml version="1.0" encoding="utf-8"?>
<timeline>
	<version>1.16.0</version>
	<!-- ======================================== Eras ==================\
====================== -->
	<eras>
		<era>
			<name>%s</name>
...

xml_end

Value:
"""
	</events>
	<view>
		<displayed_period>
			<start>%s</start>
			<end>%s</end>
		</displayed_period>
	<hidden_categories>
...