Adverse event and death classes.
Project description
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 Distributions
Built Distribution
File details
Details for the file edc_adverse_event-0.3.18-py3-none-any.whl
.
File metadata
- Download URL: edc_adverse_event-0.3.18-py3-none-any.whl
- Upload date:
- Size: 126.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb08a80e4c7f42ca962ec58a2491c064c1b66abb1005f8f34dcb314ffeed8fc |
|
MD5 | 0e64fa868869e8480dad667a3c17b742 |
|
BLAKE2b-256 | 146f16ec7c98b5c55895cb6a1bf659cc4b51e64a34a2ce020bfa2d86ea5edffc |