def disease_rheader(r, tabs=None):
 T = current.T
 if (r.representation != 'html'):
  return None
 resourcename = r.name
 if (resourcename == 'disease'):
  tabs = ((T('Basic Details'), None), (T('Symptoms'), 'symptom'), (T('Documents'), 'document'))
  rheader_fields = (['name'], ['code'])
  rheader = S3ResourceHeader(rheader_fields, tabs)(r)
 elif (resourcename == 'case'):
  tabs = ((T('Basic Details'), None), (T('Exposure'), 'exposure'), (T('Monitoring'), 'case_monitoring'), (T('Diagnostics'), 'case_diagnostics'), (T('Contacts'), 'contact'), (T('Tracing'), 'tracing'))
  rheader_fields = (['person_id'],)
  rheader = S3ResourceHeader(rheader_fields, tabs)(r)
 elif (resourcename == 'tracing'):
  tabs = ((T('Basic Details'), None), (T('Contact Persons'), 'exposure'))
  rheader_fields = (['case_id'],)
  rheader = S3ResourceHeader(rheader_fields, tabs)(r)
 else:
  rheader = ''
 return rheader

def disease_rheader ( r , tabs = None ) : T = current . T if ( r . representation != 'html' ) : return None resourcename = r . name if ( resourcename == 'disease' ) : tabs = ( ( T ( 'Basic Details' ) , None ) , ( T ( 'Symptoms' ) , 'symptom' ) , ( T ( 'Documents' ) , 'document' ) ) rheader_fields = ( [ 'name' ] , [ 'code' ] ) rheader = S3ResourceHeader ( rheader_fields , tabs ) ( r ) elif ( resourcename == 'case' ) : tabs = ( ( T ( 'Basic Details' ) , None ) , ( T ( 'Exposure' ) , 'exposure' ) , ( T ( 'Monitoring' ) , 'case_monitoring' ) , ( T ( 'Diagnostics' ) , 'case_diagnostics' ) , ( T ( 'Contacts' ) , 'contact' ) , ( T ( 'Tracing' ) , 'tracing' ) ) rheader_fields = ( [ 'person_id' ] , ) rheader = S3ResourceHeader ( rheader_fields , tabs ) ( r ) elif ( resourcename == 'tracing' ) : tabs = ( ( T ( 'Basic Details' ) , None ) , ( T ( 'Contact Persons' ) , 'exposure' ) ) rheader_fields = ( [ 'case_id' ] , ) rheader = S3ResourceHeader ( rheader_fields , tabs ) ( r ) else : rheader = '' return rheader
resource header for disease module .