Developing a Flexible Electronic Patient Record as a Web of Active Documents.