Made a script to print patient to a file in xml format. Doesn't work 100% yet.