Ejemplo n.º 1
0
                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
Ejemplo n.º 2
0
#         # StringField('dea',
#         #             widget=StringWidget(label=_('DEA #'),
#         #             ),
#         # ),
#         # TODO: retirar (May2012)
#         StringField('credentials',
#             widget=StringWidget(label=_('Credentials'),
#             ),
#         ),
                                                             
# ))
# set_schemata_properties(OTHER, schemata='Outro')

SIGN_PASSWORD = Schema((
    StringField('signPassword',
        encryption='SSHA',
        widget=PasswordWidget(label=_('Sign Password'),
                                    visible={'edit': 'invisible',
                                             'view': 'invisible',
                                             }
                                    ),
        ),
))
set_schemata_properties(SIGN_PASSWORD, schemata='Assinatura Eletronica')
        
baseSchema = finalizeSchema(wresuser.WRESUserSchema.copy())

DoctorSchema = baseSchema + MAIN + PASSWORD + SIGN_PASSWORD

set_schemata_properties(DoctorSchema, read_permission=VIEW_DOCTOR, write_permission=EDIT_DOCTOR) 
Ejemplo n.º 3
0
                                       visible={'view': 'visible',
                                                'edit': 'visible',
                                                },
                                       ),
    ),
    ReferenceField('related_documents',
        multiValued=1,
        relationship='encounter_document',
        widget=ReferenceWidget(label='Related Documents',
                              label_msgid="cmfuemr_label_related_documents",
                              i18n_domain='cmfuemr',
                              visible={'view': 'visible',
                                       'edit': 'visible',
                                       },),
    ),
    StringField('prescription',
        subfields=('medication',),
        widget=StringWidget(label='Prescription',
                          label_msgid='cmfuemr_label_precription',
                          i18n_domain='cmfuemr',
                          visible={'view': 'visible',
                                   'edit': 'visible',
                                   },
                          ),
    ),
))
        
baseSchema = finalizeSchema(folder.ATFolderSchema.copy())

EncounterSchema = baseSchema + MAIN
Ejemplo n.º 4
0
            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)
Ejemplo n.º 5
0
            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)
Ejemplo n.º 6
0
        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)
Ejemplo n.º 7
0
		validators = ('isTidyHtmlWithCleanup',),
		#validators = ('isTidyHtml',),
		default_output_type = 'text/x-html-safe',
		widget = RichWidget(
		        description = '',
		        label = 'Corpo do Modelo',
		        rows = 30,
		        allow_file_upload = False,
		),
    ),    

))
set_schemata_properties(MAIN, schemata='default')

baseSchema = schemata.finalizeATCTSchema(schemata.ATContentTypeSchema.copy(), moveDiscussion=False)
baseSchema = finalizeSchema(baseSchema, non_exclude_schematas=['default',])
TemplateSchema = baseSchema + MAIN


class Template(base.ATCTContent):
    """A medical template."""
    implements(ITemplate)

    meta_type = "Template"
    schema = TemplateSchema

    def manage_afterAdd(self, item=None, container=None):
		self.manage_permission('View management screens', [DOCTOR_ROLE, MANAGER_ROLE], acquire=False)

    def getDocumentOwnerName(self):
        """