
    In a busy emergency room, given a sequence of patient triage codes, write a function to identify the first unique medical condition code that appears only once in the sequence. This will help prioritize immediate attention for patients with distinct medical needs that aren't duplicated elsewhere in the current patient queue.
    

    
def first_non_repeating_character(str1):
    """
    In a busy emergency room, given a sequence of patient triage codes, write a function to identify the first unique medical condition code that appears only once in the sequence. This will help prioritize immediate attention for patients with distinct medical needs that aren't duplicated elsewhere in the current patient queue.
    

    """
def first_non_repeating_character(str1):
    """
    In a busy emergency room, given a sequence of patient triage codes, write a function to identify the first unique medical condition code that appears only once in the sequence. This will help prioritize immediate attention for patients with distinct medical needs that aren't duplicated elsewhere in the current patient queue.
    

    """
    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