@classmethod
def _add_questions(cls, q, code_id_map, questions):
    for (system, code, linkId, repeats) in questions:
        q.questions.append(QuestionnaireQuestion(questionnaireId=q.questionnaireId, questionnaireVersion=q.version, linkId=linkId, codeId=code_id_map.get(system, code), repeats=(repeats if repeats else False)))
@classmethod
def _add_questions(cls, q, code_id_map, questions):
    for (system, code, linkId, repeats) in questions:
        q.questions.append(QuestionnaireQuestion(questionnaireId=q.questionnaireId, questionnaireVersion=q.version, linkId=linkId, codeId=code_id_map.get(system, code), repeats=(repeats if repeats else False)))