%------------------------------------------------------------------
% Author: Karsten Hilbert
% License: GPL v2 or later
%------------------------------------------------------------------

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{hyperref}
\usepackage{tabularx}
%\usepackage{ucs}
%\usepackage{lmodern}
%\usepackage{times}
%\usepackage{amsmath}
\usepackage[a4paper]{geometry}
\geometry{verbose,lmargin=2.54cm}
\pagestyle{empty}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\makeatother

\usepackage{babel}

\begin{document}

\footnotetext {\href {http://www.gnumed.org}{GNUmed} $<client_version>$ -- \href {http://www.gnumed.org}{www.gnumed.org}}
\footnotetext {\tiny $<tex_escape::$Id: GNUmed-default_medication_list_template.tex,v 1.6 2010-01-21 08:47:11 ncq Exp $>$}

\noindent \begin{center}
{\LARGE Current Medication List}%
\par\end{center}

\noindent \begin{center}
{\large Printed: $<today::%Y %B %d>$}
\par\end{center}{\large \par}

\noindent \begin{center}
{\large Provider: $<current_provider>$}
\par\end{center}{\large \par}

\noindent Patient: $<lastname>$, $<firstname>$

\noindent Birthdate: $<date_of_birth::%Y %B %d>$

{\footnotesize
	$<adr_street::home>$ $<adr_number::home>$ \\
	$<adr_postcode::home>$ $<adr_location::home>$
}


\vspace*{\medskipamount}

%------------------------------------------------------------------
$<current_meds_table::latex>$

$<current_meds_notes::latex>$

%------------------------------------------------------------------
$<free_text::tex//Medication notes to the patient::9999>$
%------------------------------------------------------------------

% uncomment, if and as needed, the next lines to append text below the table
%{\footnotesize			% start smaller font
% <any line(s) of info you wish to be printed immediately below the table>
%}						% end smaller font
%------------------------------------------------------------------

\vfill{}

%------------------------------------------------------------------
\noindent Allergies:

\noindent $<allergy_state>$

\begin{tabular}{|l|l|l|}
\hline 
Agent & Type & Reaction\tabularnewline
\hline
\hline
$<allergies::%(descriptor)s & %(l10n_type)s & {\footnotesize %(reaction)s} \tabularnewline \hline >$
\end{tabular}
%------------------------------------------------------------------

\medskip{}


\noindent \begin{flushright}
\texttt{\textsl{\footnotesize Practice Stamp / Physician Signature}}
\par\end{flushright}
\end{document}

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