\documentclass[a5paper]{article}
\usepackage{eso-pic}
\usepackage{fancyhdr}
\usepackage[pdfauthor={VB},%
pdftitle={Consultation},%
pagebackref=true,%
]{hyperref}
\usepackage[headsep=3cm,top=4cm, bottom=4cm]{geometry}
%\usepackage{bookman}
\AddToShipoutPicture{%
\AtTextUpperLeft{%
\makebox(420,75)[lt]{%
\small%
\begin{tabular}{@{}*{3}{p{3.5cm}}@{}}%
\textbf{Name}\newline\myauthor&%
\textbf{Date of birth}\newline\mydate&%
\textbf{Address}\newline\myaddress%
\end{tabular}%
}}}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{{\Large \scshape d} \\ My degree\\My reg no}
\fancyhead[RO]{{\Large \scshape other dr }\\ MBBS, \\reg no }
\renewcommand{\footrulewidth}{0.4pt}%
\fancyfoot[CO]{{\scshape my clinics}\\ My road,\\ city \\ Phone: 000000000}
\usepackage{titling}
\posttitle{\par\end{center}}
\setlength{\droptitle}{-80pt}
\title{}
\author{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\myauthor}{user34083}
\newcommand{\mydate}{December 26, 1997}
\newcommand{\myaddress}{26 Washington Ave., Manhattan, New York.\newline United States of America}
\begin{document}
\maketitle
\thispagestyle{fancy}
\subsection*{History}
\subsection*{Examination}
\subsection*{Investigations}
\subsection*{Diagnosis}
\clearpage
\date{\today}
\subsection*{Rx}
\clearpage
\date
\subsection*{Follow up/History}
\end{document}
This is the template I use to generate my patient's medical record using lyx. There are few problems. If you help me solve, I would be obliged.
When I use
\date{\today}, today's date is generated. I can use\date {ddMMYYYY}to have fixed date. When I use\today, can the date of printing the document be fixed; so that next time when I follow up a patient, the previous visit date is not changed.As you can see, I create single file per patient. So that when follow up occurs, I can continue on the same file and print only the recent observations. Is there a possibility of exporting a pdf file which has "name-datetime stamp" pattern, so that 1 pdf is generated every visit. This will help me save visit vise, but incremental notes (First pdf file will have first vist note, but subsequent files will have current visits notes in addition to previous visit). As I use lyx, I would like to change the preamble only.
How can I vertically center every page generated? Most visits are short, and require 1 (max 2) page documentation only (majority).