(case)
return (
            case.type == CC_SUBJECT_CASE_TYPE and
            hasattr(case, CC_SUBJECT_KEY) and
            hasattr(case, CC_STUDY_SUBJECT_ID)
        )
Is the case that of a subject who has been selected for a study
Is the case that of a subject who has been selected for a study
Is the case that of a subject who has been selected for a study
def is_subject_selected(case):
        """
        Is the case that of a subject who has been selected for a study
        """
        return (
            case.type == CC_SUBJECT_CASE_TYPE and
            hasattr(case, CC_SUBJECT_KEY) and
            hasattr(case, CC_STUDY_SUBJECT_ID)
        )
def is_subject_selected ( case ) : return ( case . type == CC_SUBJECT_CASE_TYPE and hasattr ( case , CC_SUBJECT_KEY ) and hasattr ( case , CC_STUDY_SUBJECT_ID ) )