Patient Metadata Create form

Overview #

This allows developers to dynamically display additional fields in the patient profile.

    PatientMetadataCreateFormEffect(form_fields=[
        FormField(
            key='status',
            label='Status',
            type=InputType.SELECT,
            required=False,
            editable=True,
            options=["open", "close"]
        ),
    ])

Structure #

FormField #

A FormField consists of the following properties:

Attributes #

AttributeTypeDescription
keystrunique identifier of the field - patient metadata key
labelstrthe label that will be displayed on the field
typeInputTypethe type of the input - TEXT, SELECT, DATE.
requiredboolif the input is required.
editableboolif the input can be editabled.
optionslist[str]possible options for when the input type is set to “SELECT”

PatientMetadataCreateFormEffect #

A PatientMetadataCreateFormEffect consists of the following properties:

Attributes #

AttributeTypeDescription
form_fieldslist[FormField]list of fields.