allow_reorder = False, fixed_rows = [ FixedRow(keyColumn="course", initialData = { "tipo" : "", "course" : "Medicina", "inst" : "" }), ], widget=DataGridWidget( label='Curriculum', columns={ 'tipo' : SelectColumn('Tipo', vocabulary='getCourseTypes'), 'course' : Column('Área'), 'inst' : Column('Instituição'), }, ), ), )) set_schemata_properties(MAIN, schemata='Principal') PASSWORD = Schema(( StringField('password', validators = ('isCurrentPassword',), widget=PasswordWidget( label='Senha Atual', condition='python:object.showPasswordCondition()', ), ), StringField('newPassword', required=False, widget=PasswordWidget( label='Nova Senha', macro_edit='cmed_password_widget', condition='python:object.showNewPasswordCondition()',
macro='autocomplete_string', rows=2, ), ), StringField('man_genital', widget=TextAreaWidget( label='Tem ou teve algum problema genital? Pênis, próstata, testículos?', description='Somente para homens', macro='autocomplete_string', rows=2, ), ), StringField('ex_prevencao', widget=TextAreaWidget( label='Data do último exame de prevenção: Toque retal, dosagem de PSA no sangue?', description='Somente para homens', macro='autocomplete_string', rows=2, ), ), )) set_schemata_properties(MAIN, schemata='Principal') baseSchema = finalizeSchema(schemata.ATContentTypeSchema.copy()) ReviewOfSystemsSchema = baseSchema + MAIN
from Products.Archetypes.atapi import * from wres.archetypes.content.medicaldocument import MedicalDocumentSchema from wres.policy.utils.utils import set_schemata_properties _ = MessageFactory("cmfuemr") DOC_BODY = Schema(( TextField('gdocument_body', required=False, searchable=False, primary=True, storage = AnnotationStorage(migrate=True), validators = ('isTidyHtmlWithCleanup',), #validators = ('isTidyHtml',), default_output_type = 'text/x-html-safe', widget = RichWidget( description = '', label = _(u'label_generic_document_body_text', default=u'Document Body'), rows = 30, allow_file_upload = False, macro_edit='generic_richtext_edit_macro', helper_js=('generic_richtext_edit.js', ), helper_css=('generic_richtext_edit.css', 'cmed.css'), ), ), )) set_schemata_properties(DOC_BODY, schemata='Corpo do Documento') GenericDocumentSchema = MedicalDocumentSchema + DOC_BODY
), ), ReferenceField( 'doctor', relationship='doctor', allowed_types=('Doctor', ), vocabulary_custom_label='b.asc2title', widget=ReferenceWidget( macro='reference_formatted', label=_('Provider'), startup_directory='Doctors', restrict_browsing_to_startup_directory=True, ), ), )) set_schemata_properties(MAIN, schemata='Principal') COMPLEMENTAR = Schema(( CPFField( 'socialSecurity', index="FieldIndex:schema", searchable=1, widget=CPFWidget(label=_('SSN'), ), ), StringField( 'identidade', widget=StringWidget(label='Identidade', ), ), StringField( 'orgaoEmissor', vocabulary=ORGAOEMISSOR,
description='You must enter only numbers', description_msgid='help_you_must_enter_only_numbers', i18n_domain='cmfuemr', ), ), StringField( 'email', schemata='main', validators='isEmail', widget=StringWidget(label=_('Email'), ), ), StringField( 'webPage', schemata='main', validators='isURL', widget=StringWidget(label=_('Web Site'), ), ), )) set_schemata_properties(MAIN, schemata='Principal') NOTES = Schema((TextField( 'notas', schemata='notas', widget=TextAreaWidget(label=_('Notes'), ), ), )) set_schemata_properties(NOTES, schemata='Notas') baseSchema = finalizeSchema(schemata.ATContentTypeSchema.copy()) InsuranceSchema = baseSchema + MAIN + NOTES
#DataGridField('medication_taken', #columns=('medication', 'mg', 'use', 'start'), #allow_empty_rows = False, #allow_oddeven=True, #widget=DataGridWidget( #label=_('Medicamentos em uso'), #columns={ #'medication' : Column('Medicamento'), #'mg' : Column('Concentração'), #'use' : Column('Uso'), #'start' : Column('Data', default=DateTime().strftime('%d/%m/%Y')), #}, #), #), )) set_schemata_properties(SUBJECTIVE, schemata='Subjetivo') OBJECTIVE = Schema(( DataGridField( 'vital_signs', columns=('blood_pressure', 'respiratory_rate', 'temperature', 'height', 'weight', 'IMC'), allow_empty_rows=False, allow_oddeven=True, widget=DataGridWidget( label=_('Sinais Vitais e Medidas'), columns={ 'blood_pressure': Column('Pressão Arterial'), 'respiratory_rate': Column('Freqüência Respiratória'), 'temperature': Column('Temperatura'), 'height': Column('Altura'),
StringField('middleInitial', widget=StringWidget(label=_('Middle Initial'), visible={'edit': 'invisible', 'view': 'invisible',}, ), ), CPFField('ssn', index="FieldIndex:schema", searchable=1, widget=CPFWidget( label=_('SSN'), ), ), StringField('email', required=1, validators='isEmail', widget=StringWidget(label=_('Email'), ), ), )) set_schemata_properties(MAIN, schemata='Principal') baseSchema = finalizeSchema(wresuser.WRESUserSchema.copy()) AdminSchema = baseSchema + MAIN
description_msgid='cmfuemr_help_you_must_enter_only_numbers', i18n_domain='cmfuemr', ), searchable=1, ), BrPhoneField( 'cel', widget=BrPhoneWidget( label=_('Cel'), description='You must enter only numbers', description_msgid='cmfuemr_help_you_must_enter_only_numbers', i18n_domain='cmfuemr', ), ), )) set_schemata_properties(MAIN, schemata='Principal') PASSWORD = Schema(( StringField( 'password', validators=('isCurrentPassword', ), widget=PasswordWidget( label='Senha Atual', condition='python:object.showPasswordCondition()', ), ), StringField( 'newPassword', required=False, widget=PasswordWidget( label='Nova Senha',
from wres.archetypes.content.medicaldocument import MedicalDocumentSchema from wres.policy.utils.utils import set_schemata_properties _ = MessageFactory("cmfuemr") DOC_BODY = Schema(( TextField( 'gdocument_body', required=False, searchable=False, primary=True, storage=AnnotationStorage(migrate=True), validators=('isTidyHtmlWithCleanup', ), #validators = ('isTidyHtml',), default_output_type='text/x-html-safe', widget=RichWidget( description='', label=_(u'label_generic_document_body_text', default=u'Document Body'), rows=30, allow_file_upload=False, macro_edit='generic_richtext_edit_macro', helper_js=('generic_richtext_edit.js', ), helper_css=('generic_richtext_edit.css', 'cmed.css'), ), ), )) set_schemata_properties(DOC_BODY, schemata='Corpo do Documento') GenericDocumentSchema = MedicalDocumentSchema + DOC_BODY
ReferenceField('doctor', relationship='doctor', allowed_types=('Doctor',), vocabulary_custom_label='b.asc2title', widget=ReferenceWidget( macro = 'reference_formatted', label=_('Provider'), startup_directory = 'Doctors', restrict_browsing_to_startup_directory = True, ), ), )) set_schemata_properties(MAIN, schemata='Principal') COMPLEMENTAR = Schema(( CPFField('socialSecurity', index="FieldIndex:schema", searchable=1, widget=CPFWidget( label=_('SSN'), ), ), StringField('identidade', widget=StringWidget( label='Identidade', ),
widget = SelectionWidget( label = 'Razão da Visita', macro_edit='generic_selection_edit_macro', helper_js=('generic_selection_edit.js', ), ), ), StringField('insurance', required=False, vocabulary = "getInsurancesNames", widget = SelectionWidget( label = 'Convênio', macro_edit='insurance_selection_edit_macro', helper_js=('insurance_selection_edit.js', ), ), ), )) set_schemata_properties(MAIN, schemata='default') baseSchema = finalizeSchema(event.ATEventSchema.copy(), type='Visit') VisitSchema = baseSchema + MAIN # move os campos patient e doctor para a 1a e 2a posicao, respectivamente. VisitSchema._moveFieldToPosition('patient', 1) # VisitSchema._moveFieldToPosition('doctor', 2) VisitSchema._moveFieldToPosition('startDate', 2) VisitSchema._moveFieldToPosition('duration', 3)
label='Fax', description='You must enter only numbers', description_msgid='cmfuemr_help_home_phone', i18n_domain='cmfuemr' ), ), StringField('email', validators='isEmail', widget=StringWidget( label='Email', ), ), ImageField('logo', max_size=(1600,160), widget=ImageWidget( label='Logo da Clínica', description='A imagem será colocada no cabeçalho dos documentos impressos. Largura: 845px; Altura: 75px.' ), ), )) set_schemata_properties(INFO, schemata='Informacoes da Clinica') baseSchema = finalizeSchema(schemata.ATContentTypeSchema.copy()) ClinicSchema = baseSchema + INFO set_schemata_properties(ClinicSchema, read_permission=VIEW_DOCTOR)
vocabulary="getVisitReason", widget=SelectionWidget( label='Razão da Visita', macro_edit='generic_selection_edit_macro', helper_js=('generic_selection_edit.js', ), ), ), StringField( 'insurance', required=False, vocabulary="getInsurancesNames", widget=SelectionWidget( label='Convênio', macro_edit='insurance_selection_edit_macro', helper_js=('insurance_selection_edit.js', ), ), ), )) set_schemata_properties(MAIN, schemata='default') baseSchema = finalizeSchema(event.ATEventSchema.copy(), type='Visit') VisitSchema = baseSchema + MAIN # move os campos patient e doctor para a 1a e 2a posicao, respectivamente. VisitSchema._moveFieldToPosition('patient', 1) # VisitSchema._moveFieldToPosition('doctor', 2) VisitSchema._moveFieldToPosition('startDate', 2) VisitSchema._moveFieldToPosition('duration', 3)
description_msgid='cmfuemr_help_you_must_enter_only_numbers', i18n_domain='cmfuemr', ), searchable=1, ), BrPhoneField('cel', widget=BrPhoneWidget(label=_('Cel'), description='You must enter only numbers', description_msgid='cmfuemr_help_you_must_enter_only_numbers', i18n_domain='cmfuemr', ), ), )) set_schemata_properties(MAIN, schemata='Principal') PASSWORD = Schema(( StringField('password', validators = ('isCurrentPassword',), widget=PasswordWidget( label='Senha Atual', condition='python:object.showPasswordCondition()', ), ), StringField('newPassword', required=False, widget=PasswordWidget( label='Nova Senha', macro_edit='cmed_password_widget', ),
'fax', # required=1, bax migrando # validators='isBrTelefone', widget=BrPhoneWidget(label='Fax', description='You must enter only numbers', description_msgid='cmfuemr_help_home_phone', i18n_domain='cmfuemr'), ), StringField( 'email', validators='isEmail', widget=StringWidget(label='Email', ), ), ImageField( 'logo', max_size=(1600, 160), widget=ImageWidget( label='Logo da Clínica', description= 'A imagem será colocada no cabeçalho dos documentos impressos. Largura: 845px; Altura: 75px.' ), ), )) set_schemata_properties(INFO, schemata='Informacoes da Clinica') baseSchema = finalizeSchema(schemata.ATContentTypeSchema.copy()) ClinicSchema = baseSchema + INFO set_schemata_properties(ClinicSchema, read_permission=VIEW_DOCTOR)
), StringField('email', schemata='main', validators='isEmail', widget=StringWidget(label=_('Email'), ), ), StringField('webPage', schemata='main', validators='isURL', widget=StringWidget(label=_('Web Site'), ), ), )) set_schemata_properties(MAIN, schemata='Principal') NOTES = Schema(( TextField('notas', schemata='notas', widget=TextAreaWidget(label=_('Notes'), ), ), )) set_schemata_properties(NOTES, schemata='Notas') baseSchema = finalizeSchema(schemata.ATContentTypeSchema.copy()) InsuranceSchema = baseSchema + MAIN + NOTES