%% GNUmed Consultation Report LaTeX template
%% This document is an integral part of the GNUmed project, find us at <wiki.gnumed.de>
%------------------------------------------------------------------
% License: GPL v2 or later
%------------------------------------------------------------------

% debugging
\listfiles

\documentclass[10pt,english]{article}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ucs}
\usepackage{array}
%\usepackage{lmodern}
%\usepackage{times}
%\usepackage{amsmath}
\usepackage{babel}
\usepackage{longtable}
\usepackage{tabu}
\usepackage{lastpage}
\usepackage[a4paper]{geometry}
\usepackage{fancyhdr}
\usepackage{hyperref}

\geometry{verbose,lmargin=2.54cm}

\pagestyle{fancy}
\fancyhf{}
\lhead{\scriptsize
	$<praxis::%(branch)s, %(praxis)s::120>$ \\
	Consultation Report
}
\rhead{\scriptsize
	$<title::::>$ $<lastname::::>$, $<firstname::::>$ \\
	born $<date_of_birth::%Y %B %d::>$
}
\lfoot{\tiny $<current_provider::::>$, $<today::%d.%B %Y::50>$}
\rfoot{\tiny page \thepage\ of \pageref{LastPage}}
\renewcommand{\footrulewidth}{0.1pt}
\fancypagestyle{fancyfirstpage}{
	\fancyhf{}
	\renewcommand{\headrulewidth}{0pt}
	\lfoot{\tiny
		\href {http://www.gnumed.org}{GNUmed} $<client_version::::>$\\
		\href {http://www.gnumed.org}{www.gnumed.org}
	}
	\cfoot{\tiny
		Document template:\\
		$<form_name_long::::60>$ v$<form_version::::20>$
	}
	\rfoot{\tiny page \thepage\ of \pageref{LastPage}}
}


\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}


\begin{document}


\title {Consultation Report for: \\ \emph {$<title::::>$ $<lastname::::>$, $<firstname::::>$}}
\author {
	From $<current_provider::::>$\\
	($<praxis::%(branch)s, %(praxis)s::120>$)
}
\maketitle 


% use fancyhdr on this page as well;
\thispagestyle{fancyfirstpage}


\begin{longtabu} to \textwidth {lX[,L]}
\multicolumn{2}{r}{\tiny continued on next page...}
\endfoot
\endlastfoot
$<soap_for_encounters::soap//::9999999>$
\end{longtabu}


\begin{tabular}{c}
\rule{0pt}{10ex} \texttt {\textsl {\footnotesize <Practice Stamp / Signature>}}\\
\rule{0pt}{4ex} {\footnotesize $<current_provider::::>$}\\
\hline
\tiny The above physician cannot be held responsible for unconfirmed content or alterations to this letter. \\
\end{tabular}

\end{document}

%------------------------------------------------------------------
