def extract_start_end_date(questionnaire_response):
  """Extracts start and end dates from a QuestionnaireResponse resource."""
  item = questionnaire_response['item'][1]['item']
  return item[0]['answer'][0]['valueDate'], item[1]['answer'][0]['valueDate']