Skip to main content

Adverse event and death classes for clinicedc/edc projects

Project description

pypi actions codecov downloads

edc-adverse-event

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: The initial report of a adverse event

  • AE Followup: 1 or more follow-ups to the initial AE report

  • AE Special Interest

  • AE SUSAR

  • AE External Reviewer

  • Death Report

  • Death Report External Reviewer

TMG: Trial Management Group forms

  • AE Tmg:

Settings

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

# settings.py

...

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 list_data.py

There are a few FK fields on the AE models. You need to define a list_data.py 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.py

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",
            (
                "In-patient hospitalization or prolongation "
                "(17 or more days from study inclusion)"
            ),
        ),
        (
            "medically_important_event",
            "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 action_items.py:

# action_items.py

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

site_action_items.register(AeInitialAction)
site_action_items.register(AeFollowupAction)
site_action_items.register(AeTmgAction)
site_action_items.register(AeSusarAction)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

edc-adverse-event-0.3.75.tar.gz (91.1 kB view details)

Uploaded Source

Built Distribution

edc_adverse_event-0.3.75-py3-none-any.whl (159.7 kB view details)

Uploaded Python 3

File details

Details for the file edc-adverse-event-0.3.75.tar.gz.

File metadata

  • Download URL: edc-adverse-event-0.3.75.tar.gz
  • Upload date:
  • Size: 91.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for edc-adverse-event-0.3.75.tar.gz
Algorithm Hash digest
SHA256 5b3a5c3c9f3867f3219e8265e58ba4aac97e70f4c46108840dad0c1920bfffb4
MD5 ca26756e8f3c09206e6908378da83134
BLAKE2b-256 ae210407ddf43dffbf7ec79175947f322bfb47bc5ace5b1a2537fbb24e90a557

See more details on using hashes here.

File details

Details for the file edc_adverse_event-0.3.75-py3-none-any.whl.

File metadata

File hashes

Hashes for edc_adverse_event-0.3.75-py3-none-any.whl
Algorithm Hash digest
SHA256 e4dbcbc3a1c4cd1a39458476f0dba4de65a21620f4c6ab39b5df6eed6e4fb027
MD5 a1d32056ed1b94bf73efd01de303867b
BLAKE2b-256 5e987c3acb21a4a38a139a14c30ae1277be36392d120b6d57a68dfbf3d43edcf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page