
    Create a function that converts the emergency room database field names from snake case format to camel case format to ensure compatibility between the hospital's backend database and the patient prediction dashboard's JavaScript frontend. The function should take a snake case string representing a patient metric field name (like "patient_wait_time") and transform it to its camel case equivalent (like "patientWaitTime") while preserving all characters and their sequence.
    

    
def snake_to_camel(word):
    """
    Create a function that converts the emergency room database field names from snake case format to camel case format to ensure compatibility between the hospital's backend database and the patient prediction dashboard's JavaScript frontend. The function should take a snake case string representing a patient metric field name (like "patient_wait_time") and transform it to its camel case equivalent (like "patientWaitTime") while preserving all characters and their sequence.
    

    """
import re

def snake_to_camel(word):
    """
    Create a function that converts the emergency room database field names from snake case format to camel case format to ensure compatibility between the hospital's backend database and the patient prediction dashboard's JavaScript frontend. The function should take a snake case string representing a patient metric field name (like "patient_wait_time") and transform it to its camel case equivalent (like "patientWaitTime") while preserving all characters and their sequence.
    

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