Changes to patient model to support parsing REF representation.  Also added trivial markup to generic view JS to offload responsibility from dependant modules.