Fixes for Result reference range & hData Metadata

Older fix for getting reference range from lab results, and fixing DocumentMetadata so it follows the spec (DocumentMetaData instead of DocumentMetadata)