def case_appointment():
 def prep(r):
  if (r.method == 'import'):
   ptable = s3db.pr_person
   ptable.pe_label.requires = None
  return True
 s3.prep = prep
 table = s3db.dvr_case_appointment
 return s3_rest_controller(csv_extra_fields=[{'label': 'Appointment Type', 'field': table.type_id}, {'label': 'Appointment Date', 'field': table.date}, {'label': 'Appointment Status', 'field': table.status}])

def case_appointment ( ) : def prep ( r ) : if ( r . method == 'import' ) : ptable = s3db . pr_person ptable . pe_label . requires = None return True s3 . prep = prep table = s3db . dvr_case_appointment return s3_rest_controller ( csv_extra_fields = [ { 'label' : 'Appointment Type' , 'field' : table . type_id } , { 'label' : 'Appointment Date' , 'field' : table . date } , { 'label' : 'Appointment Status' , 'field' : table . status } ] )
appointments: restful crud controller .