(domain, event_id, question)
Returns an Item namedtuple given a CommCare form and question name
Returns an Item namedtuple given a CommCare form and question name
Returns an Item namedtuple given a CommCare form and question name
def get_question_item(domain, event_id, question):
    """
    Returns an Item namedtuple given a CommCare form and question name
    """
    question_items = get_question_items(domain)
    try:
        se_oid, form_oid, ig_oid, item_oid = question_items[(event_id, question)]
        return Item(se_oid, form_oid, ig_oid, item_oid)
    except KeyError:
        # CommCare question does not match an OpenClinica item. This is a CommCare-only question.
        return None
def get_question_item ( domain , event_id , question ) : question_items = get_question_items ( domain ) try : se_oid , form_oid , ig_oid , item_oid = question_items [ ( event_id , question ) ] return Item ( se_oid , form_oid , ig_oid , item_oid ) except KeyError : # CommCare question does not match an OpenClinica item. This is a CommCare-only question. return None