
    In a hospital's patient record system, develop a function that identifies the first unique character in a patient's medical record identifier to help distinguish between similar records and prevent mix-ups during patient care. The function should analyze the medical record identifier string and return the first character that appears exactly once in the string, ensuring accurate patient identification in critical healthcare scenarios.
    

    
def first_non_repeating_character(str1):
    """
    In a hospital's patient record system, develop a function that identifies the first unique character in a patient's medical record identifier to help distinguish between similar records and prevent mix-ups during patient care. The function should analyze the medical record identifier string and return the first character that appears exactly once in the string, ensuring accurate patient identification in critical healthcare scenarios.
    

    """
def first_non_repeating_character(str1):
    """
    In a hospital's patient record system, develop a function that identifies the first unique character in a patient's medical record identifier to help distinguish between similar records and prevent mix-ups during patient care. The function should analyze the medical record identifier string and return the first character that appears exactly once in the string, ensuring accurate patient identification in critical healthcare scenarios.
    

    """
    char_order = []
    ctr = {}
    for c in str1:
        if c in ctr:
            ctr[c] += 1
        else:
            ctr[c] = 1
            char_order.append(c)
    for c in char_order:
        if ctr[c] == 1:
            return c
    return None