
    As part of modernizing the hospital's patient analytics system, create a function that converts legacy medical record field names from snake case format to camel case format to ensure compatibility with the new risk assessment platform. The function should handle any medical data field name containing underscores and convert it to a standardized camel case format, maintaining the exact sequence of words while removing underscores and capitalizing appropriate letters.
    

    
def snake_to_camel(word):
    """
    As part of modernizing the hospital's patient analytics system, create a function that converts legacy medical record field names from snake case format to camel case format to ensure compatibility with the new risk assessment platform. The function should handle any medical data field name containing underscores and convert it to a standardized camel case format, maintaining the exact sequence of words while removing underscores and capitalizing appropriate letters.
    

    """
import re

def snake_to_camel(word):
    """
    As part of modernizing the hospital's patient analytics system, create a function that converts legacy medical record field names from snake case format to camel case format to ensure compatibility with the new risk assessment platform. The function should handle any medical data field name containing underscores and convert it to a standardized camel case format, maintaining the exact sequence of words while removing underscores and capitalizing appropriate letters.
    

    """
    return ''.join((x.capitalize() or '_' for x in word.split('_')))