(domain, cc_user)
return OpenClinicaUser(
        user_id=oc_user.user_id,
        username=mk_oc_username(cc_user.username),
        first_name=oc_user.first_name,
        last_name=oc_user.last_name,
        full_name=' '.join((oc_user.first_name, oc_user.last_name)),
    ) if oc_user else None
Returns OpenClinica user details for corresponding CommCare user (CouchUser)
Returns OpenClinica user details for corresponding CommCare user (CouchUser)
Returns OpenClinica user details for corresponding CommCare user ( CouchUser )
def get_oc_user(domain, cc_user):
    """
    Returns OpenClinica user details for corresponding CommCare user (CouchUser)
    """
    oc_users_by_name = get_oc_users_by_name(domain)
    oc_user = oc_users_by_name.get((cc_user.first_name, cc_user.last_name))
    return OpenClinicaUser(
        user_id=oc_user.user_id,
        username=mk_oc_username(cc_user.username),
        first_name=oc_user.first_name,
        last_name=oc_user.last_name,
        full_name=' '.join((oc_user.first_name, oc_user.last_name)),
    ) if oc_user else None
def get_oc_user ( domain , cc_user ) : oc_users_by_name = get_oc_users_by_name ( domain ) oc_user = oc_users_by_name . get ( ( cc_user . first_name , cc_user . last_name ) ) return OpenClinicaUser ( user_id = oc_user . user_id , username = mk_oc_username ( cc_user . username ) , first_name = oc_user . first_name , last_name = oc_user . last_name , full_name = ' ' . join ( ( oc_user . first_name , oc_user . last_name ) ) , ) if oc_user else None