"Phone", widget=StringWidget(label=_("Phone"), ), ), StringField( "Fax", widget=StringWidget(label=_("Fax"), ), ), StringField("EmailAddress", schemata="Address", widget=StringWidget(label=_("Email Address"), ), validators=("isEmail", )), AddressField( "PhysicalAddress", schemata="Address", widget=AddressWidget(label=_("Physical address"), ), subfield_validators={ "country": "inline_field_validator", "state": "inline_field_validator", "district": "inline_field_validator", }, ), AddressField( "PostalAddress", schemata="Address", widget=AddressWidget(label=_("Postal address"), ), subfield_validators={ "country": "inline_field_validator", "state": "inline_field_validator", "district": "inline_field_validator", }, ), AddressField(
), StringField( 'Phone', widget=StringWidget(label=_("Phone"), ), ), StringField( 'Fax', widget=StringWidget(label=_("Fax"), ), ), StringField('EmailAddress', schemata='Address', widget=StringWidget(label=_("Email Address"), ), validators=('isEmail', )), AddressField( 'PhysicalAddress', schemata='Address', widget=AddressWidget(label=_("Physical address"), ), ), AddressField( 'PostalAddress', schemata='Address', widget=AddressWidget(label=_("Postal address"), ), ), AddressField( 'BillingAddress', schemata='Address', widget=AddressWidget(label=_("Billing address"), ), ), StringField( 'AccountType', schemata='Bank details',
'MobilePhone', schemata='Email Telephone Fax', widget=StringWidget(label=_("Phone (mobile)"), ), ), StringField( 'JobTitle', widget=StringWidget(label=_("Job title"), ), ), StringField( 'Department', widget=StringWidget(label=_("Department"), ), ), AddressField( 'PhysicalAddress', schemata='Address', widget=RecordWidget( macro='bika_widgets/custom_address_widget', label=_("Physical address"), ), ), AddressField( 'PostalAddress', schemata='Address', widget=RecordWidget( macro='bika_widgets/custom_address_widget', label=_("Postal address"), ), ), ), ) class Person(BaseFolder):
'AgeSplitted', required=1, widget=SplittedDateWidget(label=_('Age'), ), ), ComputedField( 'AgeSplittedStr', expression="context.getAgeSplittedStr()", widget=ComputedWidget(visible=False), ), AddressField( 'CountryState', widget=AddressWidget( searchable=True, label=_("Country and state"), showLegend=True, showDistrict=True, showCopyFrom=False, showCity=False, showPostalCode=False, showAddress=False, ), ), RecordsField( 'PatientIdentifiers', type='patientidentifiers', subfields=('IdentifierType', 'Identifier'), subfield_labels={ 'IdentifierType': _('Identifier Type'), 'Identifier': _('Identifier') }, subfield_sizes={
BooleanField( 'BirthDateEstimated', default=False, widget=BooleanWidget(label=_('Birth date is estimated'), ), ), RecordsField( 'AgeSplitted', required=1, widget=SplittedDateWidget(label=_('Age'), ), ), AddressField( 'CountryState', widget=AddressWidget( label=_("Country and state"), showLegend=True, showDistrict=False, showCopyFrom=False, showCity=False, showPostalCode=False, showAddress=False, ), ), RecordsField( 'PatientIdentifiers', type='patientidentifiers', subfields=('IdentifierType', 'Identifier'), subfield_labels={ 'IdentifierType': _('Identifier Type'), 'Identifier': _('Identifier') }, subfield_sizes={ 'Identifier': 15,
widget=StringWidget( label=_("Job title"), ), ), StringField( "Department", widget=StringWidget( label=_("Department"), ), ), AddressField( "PhysicalAddress", schemata="Address", widget=AddressWidget( label=_("Physical address"), ), ), ComputedField( "City", expression="context.getPhysicalAddress().get('city')", searchable=1, widget=ComputedWidget( visible=False ), ), ComputedField( "District",
widget=StringWidget(label=_("Phone"), ), ), StringField( 'Fax', widget=StringWidget(label=_("Fax"), ), ), StringField('EmailAddress', schemata='Address', widget=StringWidget(label=_("Email Address"), ), validators=('isEmail', )), AddressField( 'PhysicalAddress', schemata='Address', widget=AddressWidget(label=_("Physical address"), ), subfield_validators={ 'country': 'inline_field_validator', 'state': 'inline_field_validator', 'district': 'inline_field_validator', }, inline_field_validator="validate_address", ), AddressField( 'PostalAddress', schemata='Address', widget=AddressWidget(label=_("Postal address"), ), subfield_validators={ 'country': 'inline_field_validator', 'state': 'inline_field_validator', 'district': 'inline_field_validator', }, inline_field_validator="validate_address",