Intelligent document processing in healthcare