Skip to main content

Adverse event and death classes.

Project description

pypi travis codecov downloads


Create an AE application

Create an AE app that will house your AE concrete models, admin site, list data, and action items.

Adverse events models

Model mixins exist for you to create the following concrete models in your AE app:

  • AE Initial
  • AE Followup
  • AE Special Interest
  • AE External Reviewer
  • Death Report
  • Death Report External Reviewer


These are the settings attributes you need to define for edc_adverse_event:



ADVERSE_EVENT_APP_LABEL="edc_adverse_event"  # replace with your AE app label
ADVERSE_EVENT_ADMIN_SITE="edc_adverse_event_admin"  # replave with your AE app admin site name


Define a

There are a few FK fields on the AE models. You need to define a that will be read to populate the FK list models.

The list model tables are: * edc_adverse_event.aeclassification (See AeInitial) * edc_adverse_event.saereason (See AeInitial)


list_data = {
    "edc_adverse_event.aeclassification": [
        ("anaemia", "Anaemia"),
        ("diarrhoea", "Diarrhoea"),
        ("renal_impairment", "Renal impairment"),
        (OTHER, "Other"),
    "edc_adverse_event.saereason": [
        (NOT_APPLICABLE, "Not applicable"),
        (DEAD, "Death"),
        ("life_threatening", "Life-threatening"),
        ("significant_disability", "Significant disability"),
                "In-patient hospitalization or prolongation "
                "(17 or more days from study inclusion)"
            "Medically important event (e.g. recurrence of symptoms not requiring admission, "
            "Hospital acquired pneumonia)",

preload_data = PreloadData(
    list_data=list_data, model_data={}, unique_field_data=None)

Register AE Action Items

The AE action items are not registered by default. To register, in the root of your AE app add an


    from edc_adverse_event.action_items import AeInitialAction
    from edc_adverse_event.action_items import AeFollowupAction
    from edc_adverse_event.action_items import AeSusarAction
    from edc_adverse_event.action_items import AeTmgAction


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for edc-adverse-event, version 0.1.34
Filename, size File type Python version Upload date Hashes
Filename, size edc_adverse_event-0.1.34-py3-none-any.whl (118.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page