{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# H/ICH/MedDRA/SMQs by ICH\n", "\n", "The Medical Dictionary for Regulatory Activities (MedDRA) is a set of standardized terminologies commonly used in clinical safety recording, communicating, and reporting activities. MedDRA is developed and maintained by the International Council for Harmonisation of Technical Requirements for Pharmaceuticals for Human Use (ICH)[^1],[^2]. \n", "\n", "The Standardized MedDRA Queries (SMQs) are groups of MedDRA terms used to describe conditions of interest[^3]. \n", "A detailed demonstration of using SMQ can be found in JMP reporting documentation [^4].\n", "\n", "The module `emt` also includes basic functions for working with MedDRA SMQs. \n" ] }, { "cell_type": "markdown", "metadata": { "vscode": { "languageId": "plaintext" } }, "source": [ "## Assign MedDRA Distribution Folder\n", "\n", "Please see more details here." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "from mtbp3.health.emt import Emt\n", "\n", "emt = Emt(folder_name='')\n", "print(emt.find_files())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Find SMQ Terms \n", "\n", "To find a list of SMQ terms:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "smq_names = emt.find_smq()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To find a list of id from SMQ names:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "print(emt.find_smq(smq_names[:3]))" ] }, { "cell_type": "markdown", "metadata": { "vscode": { "languageId": "plaintext" } }, "source": [ "To find more details about a specific SMQ by name or id:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "print(emt.find_smq(smq_names[0], with_detail=True).T)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Find MedDRA Terms Given a SMQ\n", "\n", "There are 230 active SMQs included in MedDRA v26.1 (Sep, 2023). \n", "A total of 10 out of these 230 SMQs are algorithm based.\n", "SMQs may also have up to 5 hierarchical relationships. \n", "There are 39 SMQs related to at least one other more general SMQs in v26.1.\n", "\n", "Functions in this section accept only one SMQ each time, and return a dataframe that includes information necessary for further processing.\n", "For algorithm based SMQ, `term_category` will be included in output.\n", "\n", "To find MedDRA terms given a SMQ and count by level:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "vscode": { "languageId": "plaintext" } }, "outputs": [], "source": [ "terms = emt.find_terms_given_smq(smq_names[0])\n", "print(terms['term_level'].value_counts())\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Note that if the SMQ has hierarchical definition, the structure will be flattened in output, and the output will keep the level of child SMQs.\n", "If the SMQ is algorithm based, the terms will keep category and weight information to be used for for downstream analyses. \n", "Use the function `find_smq` with option `with_detail=True` to see the algorithm definition.\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Reference\n", "\n", "[^1]: ICH. (2013). Understanding MedDRA. ([pdf](https://admin.meddra.org/sites/default/files/page/documents_insert/meddra2013_0.pdf))\n", "[^2]: Dutta, A. (2020). MedDRA - Terminologies & Coding. ([pdf](https://meddra.org/sites/default/files/page/documents_insert/meddra_-_terminologies_coding.pdf))\n", "[^3]: ICH, Standardised MedDRA Queries. ([web page](https://www.meddra.org/standardised-meddra-queries))\n", "[^4]: JMP. (year). Standardized MedDRA Queries Distribution. ([web page](https://www.jmp.com/support/downloads/JMPC70_documentation/report_selector/OP_C_EV_0014.html))" ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 2 }