diff --git a/gatsby-config.js b/gatsby-config.js index 05d443417..654c9b825 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,4 +1,5 @@ module.exports = { + pathPrefix: `/opioid-and-ssri`, siteMetadata: { title: `openFDA`, siteUrl: `https://www.open.fda.gov`, diff --git a/package.json b/package.json index 20eaf8252..a38620366 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "author": "Violet Wren, Priyanka Ayer", "scripts": { "dev": "gatsby develop -H 0.0.0.0 -p 3000", - "serve": "gatsby serve -H 0.0.0.0 -p 3000", - "build": "gatsby build --verbose", + "serve": "gatsby serve --prefix-paths -H 0.0.0.0 -p 3000", + "build": "gatsby build --prefix-paths --verbose", "format": "prettier --trailing-comma es5 --no-semi --single-quote --write 'src/**/*.{js,ts,tsx}'", - "develop": "gatsby develop", + "develop": "gatsby develop --prefix-paths", "cy:open": "cypress open", "cy:run": "cypress run", "test:e2e": "start-server-and-test dev http-get://127.0.0.1:3000 cy:open", diff --git a/src/components/ApiStatus.tsx b/src/components/ApiStatus.tsx index fa6aef5ed..19931e45a 100644 --- a/src/components/ApiStatus.tsx +++ b/src/components/ApiStatus.tsx @@ -22,6 +22,7 @@ let endpointKeys = [ 'drugorangebook', 'drugsfda', 'drugshortages', + 'drugresearchopioidandssri', 'deviceevent', 'devicerecall', 'deviceclass', @@ -56,6 +57,7 @@ const catMap: Record = Object.freeze({ 'drugenforcement': 'Drugs › Enforcement Reports', 'drugsfda': 'Drugs › Drugs@FDA', 'drugshortages': 'Drugs › Drug Shortages', + 'drugresearchopioidandssri': 'Drugs › Opioid and SSRI Interactions Research', 'deviceevent': 'Devices › Adverse Events', 'devicerecall': 'Devices › Recalls', 'deviceclass': 'Devices › Classification', @@ -89,6 +91,7 @@ const endpointLinkMap: Record = Object.freeze({ 'drugorangebook': 'drug/orangebook', 'drugsfda': 'drug/drugsfda', 'drugshortages': 'drug/shortages', + 'drugresearchopioidandssri': 'drug/researchopioidandssri', 'deviceevent': 'device/event', 'devicerecall': 'device/recall', 'deviceclass': 'device/classification', diff --git a/src/components/ApiUsage.tsx b/src/components/ApiUsage.tsx index 2c43760b6..0a3fc862f 100644 --- a/src/components/ApiUsage.tsx +++ b/src/components/ApiUsage.tsx @@ -453,6 +453,7 @@ if (!bp.mob && hasWindow) { Orange Book{this.docCount('drugorangebook')} Drugs@FDA{this.docCount('drugsfda')} Drug Shortages{this.docCount('drugshortages')} + Opioid and SSRI Interactions Research{this.docCount('drugresearchopioidandssri')} Foods Adverse Event Reports{this.docCount('foodevent')} @@ -516,6 +517,7 @@ if (!bp.mob && hasWindow) { Orange Book{this.downloadCount('drugorangebook')} Drugs@FDA{this.downloadCount('drugsfda')} Drug Shortages{this.downloadCount('drugshortages')} + Opioid and SSRI Interactions Research{this.downloadCount('drugresearchopioidandssri')} Foods Adverse Event Reports{this.downloadCount('foodevent')} diff --git a/src/components/DataDictionary.tsx b/src/components/DataDictionary.tsx index cad24c822..84efb5c61 100644 --- a/src/components/DataDictionary.tsx +++ b/src/components/DataDictionary.tsx @@ -104,6 +104,7 @@ class DataDictionary extends React.Component<{}, DataDictionaryState> { 'orangebook': 'Orange Book', 'drugsfda': 'Drugs@FDA', 'drugshortages': 'Drug Shortages', + 'researchopioidandssri': 'Opioid and SSRI Interactions Research ', 'covid19serology': 'COVID-19 Serology', 'pma': 'Pre-Market Approval', 'recall': 'Recall', diff --git a/src/components/EndpointBox.tsx b/src/components/EndpointBox.tsx index 801b4874c..1b3b406a7 100644 --- a/src/components/EndpointBox.tsx +++ b/src/components/EndpointBox.tsx @@ -52,7 +52,8 @@ const EndpointBox = (props: endpointBoxProps) => { 'enforcement':
, 'drugsfda':
, 'drugshortages':
, - 'orangebook':
+ 'orangebook':
, + 'researchopioidandssri':
}, 'other': { 'historicaldocument':
, diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 21d8fda93..5e512b192 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -70,7 +70,7 @@ class Footer extends React.Component { Go to FDA website diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index f191914c7..d02e6d4a9 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -37,7 +37,10 @@ const Layout = (props: LayoutProps) => { up: 'sticky-scroll-up' } - const hasSidebar = props.location.pathname.slice(0, 6) === `/apis/` + console.log(props.location.pathname) + console.log(props.location.pathname.slice(0, 23)) + const hasSidebar = props.location.pathname.slice(0, 6) === `/apis/` || props.location.pathname.slice(0, 22) === `/opioid-and-ssri/apis/` + // const hasSidebar = props.location.pathname.slice(0, 6) === `/apis/` return (
diff --git a/src/components/RenderContentObject/KeyFacts.tsx b/src/components/RenderContentObject/KeyFacts.tsx index cb43b263e..911a0ce88 100644 --- a/src/components/RenderContentObject/KeyFacts.tsx +++ b/src/components/RenderContentObject/KeyFacts.tsx @@ -35,7 +35,8 @@ const source: Record> = { 'enforcement': 'FDA Recall Enterprise System (RES)', 'orangebook': 'Approved Drug Products with Therapeutic Equivalence Evaluations (Orange Book)', 'drugsfda': 'Drugs@FDA', - 'shortages': 'Drug Shortages' + 'shortages': 'Drug Shortages', + 'researchopioidandssri': 'Opioid and SSRI Interactions Research' }, 'other': { 'historicaldocument': 'Historic FDA Press Releases', @@ -80,7 +81,8 @@ const sourceLink: any = { 'enforcement': '/data/res/', 'orangebook': '/data/orangebook/', 'drugsfda': '/data/drugsfda/', - 'shortages': '/data/drugshortages' + 'shortages': '/data/drugshortages/', + 'researchopioidandssri': '/data/researchopioidandssri/' }, 'other': { 'historicaldocument': '/data/historicaldocument/', @@ -127,7 +129,8 @@ const timePeriod: any = { 'enforcement': '2004 to', 'orangebook': 'Content current as of:', 'drugsfda': '1939 to', - 'shortages': '2012 to' + 'shortages': '2012 to', + 'researchopioidandssri': 'Last updated' }, 'other': { 'historicaldocument': '1913 to', @@ -175,7 +178,8 @@ const frequency = { 'enforcement': 'Weekly', 'orangebook': 'Monthly', 'drugsfda': 'Daily (Monday-Friday)', - 'shortages': 'Daily' + 'shortages': 'Daily', + 'researchopioidandssri': 'Infrequently' }, 'other': { 'historicaldocument': 'Infrequently', diff --git a/src/constants/api.tsx b/src/constants/api.tsx index 46581b082..9356294d6 100644 --- a/src/constants/api.tsx +++ b/src/constants/api.tsx @@ -1,4 +1,6 @@ -export const API_LINK: string = "https://api.fda.gov" +// export const API_LINK: string = "https://api.fda.gov" +export const API_LINK: string = "https://openfda-api.preprod.fda.gov" +// export const API_LINK: string = "http://54.196.38.238:8000" export const API_NAME: string = "api.fda.gov" export default { API_LINK, diff --git a/src/constants/endpoint_box.ts b/src/constants/endpoint_box.ts index 0f454f5da..b3f05d839 100644 --- a/src/constants/endpoint_box.ts +++ b/src/constants/endpoint_box.ts @@ -31,7 +31,8 @@ export const description: Record> 'enforcement': 'Drug product recall enforcement reports.', 'orangebook': 'Approved Drug Products with Therapeutic Equivalence Evaluations (Orange Book).', 'drugsfda': 'Drugs@FDA includes most of the drug products approved since 1939.', - 'drugshortages': 'Drug Shortages can occur for many reasons, including manufacturing and quality problems, delays, and discontinuations.' + 'drugshortages': 'Drug Shortages can occur for many reasons, including manufacturing and quality problems, delays, and discontinuations.', + 'researchopioidandssri': 'This dataset makes available the research paper "Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults".' }, 'other': { 'historicaldocument': 'FDA Press Releases, 1913-2014, in searchable format', @@ -79,7 +80,8 @@ export const ep_title: Record>> = 'enforcement': 'Recall enforcement reports', 'orangebook': 'Orange Book', 'drugsfda': 'Drugs@FDA', - 'drugshortages': 'Drug shortages' + 'drugshortages': 'Drug shortages', + 'researchopioidandssri': 'Opioid and SSRI Interactions Research' }, 'other': { 'historicaldocument': 'Historical Documents', @@ -137,7 +139,8 @@ export const ep_path: Record>> = 'enforcement': '/apis/drug/enforcement/', 'orangebook': '/apis/drug/orangebook/', 'drugsfda': '/apis/drug/drugsfda/', - 'drugshortages': '/apis/drug/drugshortages/' + 'drugshortages': '/apis/drug/drugshortages/', + 'researchopioidandssri': '/apis/drug/researchopioidandssri/' }, 'other': { 'historicaldocument': '/apis/other/historicaldocument/', diff --git a/src/constants/fields/drugresearchopioidandssri.yaml b/src/constants/fields/drugresearchopioidandssri.yaml new file mode 100644 index 000000000..ff32ff8f2 --- /dev/null +++ b/src/constants/fields/drugresearchopioidandssri.yaml @@ -0,0 +1,189 @@ +properties: + subject_id: + description: "Participant ID" + format: + is_exact: true + possible_values: + type: string + age: + description: "Age of the participant (unit = years)" + format: + is_exact: true + possible_values: + type: integer + sex: + description: "Sex of the participant (one of 'Female' or 'Male')" + format: + is_exact: true + possible_values: + type: string + ethnicity: + description: "Ethnicity of the participant (one of 'Hispanic or Latino' or 'Not Hispanic or Latino')" + format: + is_exact: true + possible_values: + type: string + race: + description: "Race of the participant (one of ‘American Indian or Alaska Native’, 'Asian', 'Black or African American', ‘Multiple’, ‘Unknown’, or 'White')" + format: + is_exact: true + possible_values: + type: string + height: + description: "Height of the participant (unit = cm)" + format: + is_exact: true + possible_values: + type: integer + weight: + description: "Weight of the participant (unit = kg)" + format: + is_exact: true + possible_values: + type: number + body_mass_index: + description: "Body mass index of the participant (unit = kg/m2)" + format: + is_exact: true + possible_values: + type: number + treatment: + description: "Type of treatment (one of CBD = “Cannabidiol”; PLB = “Placebo”)" + format: + is_exact: true + possible_values: + type: string + primary_event_flag: + description: "Flag for if the participant had an event meeting criteria for the primary endpoint" + format: + is_exact: true + possible_values: + type: boolean + secondary_event_flag: + description: "Flag for if the participant had an event meeting criteria for the secondary endpoint" + format: + is_exact: true + possible_values: + type: boolean + discontinued_no_event: + description: "Flag for if the participant discontinued before the end of the study for reasons other than liver enzyme elevations (i.e., for non-liver safety, withdrawal of consent, lack of adherence, etc.)" + format: + is_exact: true + possible_values: + type: boolean + start_day: + description: "Day treatment was initiated. (Day = 1 for all participants)" + format: + is_exact: true + possible_values: + type: integer + end_day: + description: "Last day study drug was administered" + format: + is_exact: true + possible_values: + type: integer + periods: + type: array + items: + type: object + properties: + period: + description: "Study period when data was collected. One of 1, 2, or 3." + format: + is_exact: true + possible_values: + type: string + days: + type: array + items: + type: object + properties: + day: + description: "Nominal study day (unit = day)." + format: + is_exact: true + possible_values: + type: string + times: + type: array + items: + type: object + properties: + time: + description: "Nominal sampling time (unit = hour)." + format: + is_exact: true + possible_values: + type: string + analytes: + type: array + items: + type: object + properties: + analyte: + description: "Measured analyte. One of Oxycodone, Oxymorphone, Paroxetine, Escitalopram, Desmethylescitalopram, and Didesmethylescitalopram." + format: + is_exact: true + possible_values: + type: string + drug: + description: 'Administered co-drug with oxycodone. One of "Placebo", "Escitalopram" and "Paroxetine".' + format: + is_exact: true + possible_values: + type: string + concentration: + description: "Reported concentration with values below lower limit of quantification set to zero. (unit = ng/mL)" + format: + is_exact: true + possible_values: + type: number + mixtures: + type: array + items: + type: object + properties: + mixture: + description: "Type of hypercapnic gas mixture in rebreathing bag. One of hyperoxic (24% O2, 6% CO2, N2 balanced) or hypoxic (6% O2, 6% CO2, N2 balanced)." + format: + is_exact: true + possible_values: + type: string + drug: + description: 'Administered co-drug with oxycodone. One of "Placebo", "Escitalopram" and "Paroxetine".' + format: + is_exact: true + possible_values: + type: string + mvresting: + description: "Resting minute ventilation (unit=L/min)" + format: + is_exact: true + possible_values: + type: number + etco2: + description: "Resting end-tidal carbon dioxide partial pressure (unit=mm Hg)" + format: + is_exact: true + possible_values: + type: number + spo2: + description: "Resting oxygen saturation (unit=%)" + format: + is_exact: true + possible_values: + type: number + ve55: + description: "Minute ventilation assessment at 55 mm Hg carbon dioxide. (unit=L/min)" + format: + is_exact: true + possible_values: + type: number + vas_score: + description: "Visual analogue score for sedation (range of 0 to 100) (unit=mm)" + format: + is_exact: true + possible_values: + type: number +type: object \ No newline at end of file diff --git a/src/constants/fields/master_fields.yaml b/src/constants/fields/master_fields.yaml index d12f65671..08a3bdd6f 100644 --- a/src/constants/fields/master_fields.yaml +++ b/src/constants/fields/master_fields.yaml @@ -7979,6 +7979,196 @@ drug: name: "Universal Product Code" link: "https://en.wikipedia.org/wiki/Universal_Product_Code" type: object + drugopioidandssri: + properties: + subject_id: + description: "Participant ID" + format: + is_exact: true + possible_values: + type: string + age: + description: "Age of the participant (unit = years)" + format: + is_exact: true + possible_values: + type: integer + sex: + description: "Sex of the participant (one of 'Female' or 'Male')" + format: + is_exact: true + possible_values: + type: string + ethnicity: + description: "Ethnicity of the participant (one of 'Hispanic or Latino' or 'Not Hispanic or Latino')" + format: + is_exact: true + possible_values: + type: string + race: + description: "Race of the participant (one of ‘American Indian or Alaska Native’, 'Asian', 'Black or African American', ‘Multiple’, ‘Unknown’, or 'White')" + format: + is_exact: true + possible_values: + type: string + height: + description: "Height of the participant (unit = cm)" + format: + is_exact: true + possible_values: + type: integer + weight: + description: "Weight of the participant (unit = kg)" + format: + is_exact: true + possible_values: + type: number + body_mass_index: + description: "Body mass index of the participant (unit = kg/m2)" + format: + is_exact: true + possible_values: + type: number + treatment: + description: "Type of treatment (one of CBD = “Cannabidiol”; PLB = “Placebo”)" + format: + is_exact: true + possible_values: + type: string + primary_event_flag: + description: "Flag for if the participant had an event meeting criteria for the primary endpoint" + format: + is_exact: true + possible_values: + type: boolean + secondary_event_flag: + description: "Flag for if the participant had an event meeting criteria for the secondary endpoint" + format: + is_exact: true + possible_values: + type: boolean + discontinued_no_event: + description: "Flag for if the participant discontinued before the end of the study for reasons other than liver enzyme elevations (i.e., for non-liver safety, withdrawal of consent, lack of adherence, etc.)" + format: + is_exact: true + possible_values: + type: boolean + start_day: + description: "Day treatment was initiated. (Day = 1 for all participants)" + format: + is_exact: true + possible_values: + type: integer + end_day: + description: "Last day study drug was administered" + format: + is_exact: true + possible_values: + type: integer + periods: + type: array + items: + type: object + properties: + period: + description: "Study period when data was collected. One of 1, 2, or 3." + format: + is_exact: true + possible_values: + type: string + days: + type: array + items: + type: object + properties: + day: + description: "Nominal study day (unit = day)." + format: + is_exact: true + possible_values: + type: string + times: + type: array + items: + type: object + properties: + time: + description: "Nominal sampling time (unit = hour)." + format: + is_exact: true + possible_values: + type: string + analytes: + type: array + items: + type: object + properties: + analyte: + description: "Measured analyte. One of Oxycodone, Oxymorphone, Paroxetine, Escitalopram, Desmethylescitalopram, and Didesmethylescitalopram." + format: + is_exact: true + possible_values: + type: string + drug: + description: 'Administered co-drug with oxycodone. One of "Placebo", "Escitalopram" and "Paroxetine".' + format: + is_exact: true + possible_values: + type: string + concentration: + description: "Reported concentration with values below lower limit of quantification set to zero. (unit = ng/mL)" + format: + is_exact: true + possible_values: + type: number + mixtures: + type: array + items: + type: object + properties: + mixture: + description: "Type of hypercapnic gas mixture in rebreathing bag. One of hyperoxic (24% O2, 6% CO2, N2 balanced) or hypoxic (6% O2, 6% CO2, N2 balanced)." + format: + is_exact: true + possible_values: + type: string + drug: + description: 'Administered co-drug with oxycodone. One of "Placebo", "Escitalopram" and "Paroxetine".' + format: + is_exact: true + possible_values: + type: string + mvresting: + description: "Resting minute ventilation (unit=L/min)" + format: + is_exact: true + possible_values: + type: number + etco2: + description: "Resting end-tidal carbon dioxide partial pressure (unit=mm Hg)" + format: + is_exact: true + possible_values: + type: number + spo2: + description: "Resting oxygen saturation (unit=%)" + format: + is_exact: true + possible_values: + type: number + ve55: + description: "Minute ventilation assessment at 55 mm Hg carbon dioxide. (unit=L/min)" + format: + is_exact: true + possible_values: + type: number + vas_score: + description: "Visual analogue score for sedation (range of 0 to 100) (unit=mm)" + format: + is_exact: true + possible_values: + type: number + type: object food: enforcement: properties: diff --git a/src/constants/file_download.ts b/src/constants/file_download.ts index aafffb563..6f41d8d50 100644 --- a/src/constants/file_download.ts +++ b/src/constants/file_download.ts @@ -11,6 +11,7 @@ export const pdfDownloadMap: Readonly> = Object.freeze({ 'drugsfda': '/fields/drugsfda_reference.pdf', 'drugshortages': '/fields/drugshortages_reference.pdf', 'drugorangebook': '/fields/drugshortages_reference.pdf', + 'drugresearchopioidandssri': '/fields/drugresearchopioidandssri_reference.pdf', 'deviceevent': '/fields/deviceevent_reference.pdf', 'devicerecall': '/fields/devicerecall_reference.pdf', 'deviceclass': '/fields/deviceclass_reference.pdf', @@ -42,6 +43,7 @@ export const xlsxDownloadMap: Readonly> = Object.freeze({ 'drugorangebook': '/fields/drugorangebook_reference.xlsx', 'drugsfda': '/fields/drugsfda_reference.xlsx', 'drugshortages': '/fields/drugshortages_reference.xlsx', + 'drugresearchopioidandssri': '/fields/drugresearchopioidandssri_reference.xlsx', 'deviceevent': '/fields/deviceevent_reference.xlsx', 'devicerecall': '/fields/devicerecall_reference.xlsx', 'deviceclass': '/fields/deviceclass_reference.xlsx', @@ -73,6 +75,7 @@ export const yamlDownloadMap: Readonly> = Object.freeze({ 'drugorangebook': '/fields/drugorangebook.yaml', 'drugsfda': '/fields/drugsfda.yaml', 'drugshortages': '/fields/drugshortages.yaml', + 'drugresearchopioidandssri': '/fields/drugresearchopioidandssri.yaml', 'deviceevent': '/fields/deviceevent.yaml', 'devicerecall': '/fields/devicerecall.yaml', 'deviceclass': '/fields/deviceclass.yaml', diff --git a/src/pages/about/updates/updates.yaml b/src/pages/about/updates/updates.yaml index d8b5789c0..d959469d5 100644 --- a/src/pages/about/updates/updates.yaml +++ b/src/pages/about/updates/updates.yaml @@ -166,4 +166,8 @@ updates: - title: "New openFDA Dataset - Orange Book" path: /apis/drug/orangebook/ date: 2026-06-30 - desc: "The dataset Orange Book is now available." \ No newline at end of file + desc: "The dataset Orange Book is now available." + - title: "New openFDA Dataset - Opioid and SSRI Interactions Research" + path: /apis/drug/researchopioidandssri/ + date: 2026-08-05 + desc: "The dataset Opioid and SSRI Interactions Research is now available." \ No newline at end of file diff --git a/src/pages/apis/doc-links.yaml b/src/pages/apis/doc-links.yaml index 77ad34fb4..1f070a70b 100644 --- a/src/pages/apis/doc-links.yaml +++ b/src/pages/apis/doc-links.yaml @@ -198,6 +198,22 @@ link: /apis/drug/drugshortages/download/ - title: Searchable fields link: /apis/drug/drugshortages/searchable-fields/ + - title: Opioid and SSRI Interactions Research + id: drug-research-opioid-and-ssri + collapse: true + items: + - title: Overview + link: /apis/drug/researchopioidandssri/ + - title: How to use the API + link: /apis/drug/researchopioidandssri/how-to-use-the-endpoint/ + - title: Example API queries + link: /apis/drug/researchopioidandssri/example-api-queries/ + - title: Understanding the API Results + link: /apis/drug/researchopioidandssri/understanding-the-api-results/ + - title: Download the dataset + link: /apis/drug/researchopioidandssri/download/ + - title: Searchable fields + link: /apis/drug/researchopioidandssri/searchable-fields/ - title: Device API Endpoints id: device-api-endpoints diff --git a/src/pages/apis/drug/index.tsx b/src/pages/apis/drug/index.tsx index 58f5977e1..f7a360390 100644 --- a/src/pages/apis/drug/index.tsx +++ b/src/pages/apis/drug/index.tsx @@ -35,6 +35,10 @@ export default () => ( noun_name='drug' endpoint_name='drugshortages' /> +
diff --git a/src/pages/apis/drug/researchopioidandssri/_explorers.yaml b/src/pages/apis/drug/researchopioidandssri/_explorers.yaml new file mode 100644 index 000000000..f0f3111b2 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/_explorers.yaml @@ -0,0 +1,23 @@ +oneRecord: + title: One record + description: + - This query searches for all records and asks for a single one. + params: + - Search for all records and display one. + - limit to 1 record + query: 'drug/researchopioidandssri.json?limit=1' +lowBMIPlacebo: + title: Low to Normal BMI with Placebo + description: + - This query searches for all records with body mass index in the range of 1 to 25 and treatment equal to "Placebo". + params: + - search for all records with body mass index in the range of 1 to 25 and treatment equal to "Placebo". + query: 'drug/researchopioidandssri.json?search=body_mass_index:[1+TO+25]+AND+drug:"Placebo"' +countAnalytye: + title: Records by Analytye + description: + - This query searches for the count of records with each analytye. + - The suffix .exact is required by openFDA to count the unique full phrases in the field product. Without it, the API will count each word in that field individually. + params: + - count the number of records associated with each analytye + query: 'drug/researchopioidandssri.json?count=periods.days.times.analytes.analyte.exact' \ No newline at end of file diff --git a/src/pages/apis/drug/researchopioidandssri/_meta.yaml b/src/pages/apis/drug/researchopioidandssri/_meta.yaml new file mode 100644 index 000000000..0093613cd --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/_meta.yaml @@ -0,0 +1,12 @@ +documentTitle: openFDA › Drugs › Opioid and SSRI Interactions Research +label: Opioid and SSRI Interactions Research +title: Opioid and SSRI Interactions Research +description: 'This dataset makes available the research paper "Opioid and SSRI Drug Interactions".' +datasets: + - Opioid and SSRI Interactions Research +path: /apis/drug/researchopioidandssri +api_path: /drug/researchopioidandssri +start: 20000101 +status: drugresearchopioidandssri +dateConstraintKey: approval_date +type: endpoint \ No newline at end of file diff --git a/src/pages/apis/drug/researchopioidandssri/download/index.tsx b/src/pages/apis/drug/researchopioidandssri/download/index.tsx new file mode 100644 index 000000000..a8369c404 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/download/index.tsx @@ -0,0 +1,23 @@ +import React from "react" +import Link from "gatsby-link" + +import Downloads from '../../../../../components/Downloads' + +import meta from '../_meta.yaml' + +class IndexRoute extends React.Component { + render () { + + return ( +
+

Download the dataset

+

Use the links below to download the dataset manually, or review the Downloads documentation for more information about other download methods.

+ +
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/apis/drug/researchopioidandssri/example-api-queries/index.tsx b/src/pages/apis/drug/researchopioidandssri/example-api-queries/index.tsx new file mode 100644 index 000000000..eb1cec69c --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/example-api-queries/index.tsx @@ -0,0 +1,44 @@ +import React from "react" + +import QueryTour from '../../../../../components/QueryTour' +import explorers from '../_explorers.yaml' + +class IndexRoute extends React.Component { + render () { + + const oneRecord = explorers.oneRecord + const lowBMIPlacebo = explorers.lowBMIPlacebo + const countAnalytye = explorers.countAnalytye + + + return ( +
+

Example Opioid and SSRI Interactions Research queries

+

To help get you started, we have provided some query examples below. Use the Run query button to call the Application Programming Interface and get back results. You can experiment by editing the example queries in the black text box.

+ + + +
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/apis/drug/researchopioidandssri/how-to-use-the-endpoint/index.tsx b/src/pages/apis/drug/researchopioidandssri/how-to-use-the-endpoint/index.tsx new file mode 100644 index 000000000..3e16b8962 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/how-to-use-the-endpoint/index.tsx @@ -0,0 +1,35 @@ +import React from "react" +import Link from "gatsby-link" + +import APIUseSteps from "../../../../../components/APIUseSteps" +import APIQueryBreakdown from "../../../../../components/APIQueryBreakdown" + + +class IndexRoute extends React.Component { + render () { + + return ( +
+

How to use the API

+

Getting started with and learning how to use the Application Programming Interface is relatively straightforward. Here are some recommended steps:

+ +

Then, when you are ready, obtain an Application Programming Interface Key. While you don’t need an Application Programming Interface Key to use the Application Programming Interface, we recommend you get one if you are planning to use the Application Programming Interface on a regular basis. For more information on Application Programming Interface Keys, see the Authentication documentation.

+ +

Making a simple API Call

+

You can call the Application Programming Interface from a web browser. Simply type a valid query in your browser’s address bar and press the Enter key.

+

In the example below, we are searching the records in the Drug Opioid and SSRI Interactions Research endpoint for matches with AP in the Placebo field. We are requesting to see the first 5 records that match.

+ + +

Some key pointers

+
    +
  • An openFDA query always begins with the base endpoint, which in this case is: https://api.fda.gov/drug/researchopioidandssri.json
  • +
  • Searches have a special syntax: search=field:term
  • +
  • Unless otherwise specified, the Application Programming Interface will return only one matching record for a search. You can specify the number of records to be returned by using the limit parameter. The maximum limit allowed is 99 for any single Application Programming Interface call. If no limit is set, the Application Programming Interface will return one matching record.
  • +
+

It is possible to construct very complex queries using the openFDA Application Programming Interface. Review the Construct the query documentation to learn more about all the available query parameters, how to handle quotations, spaces, phrase matches, and groupings, how to search on dates and ranges, and more.

+
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/apis/drug/researchopioidandssri/index.tsx b/src/pages/apis/drug/researchopioidandssri/index.tsx new file mode 100644 index 000000000..178409f43 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/index.tsx @@ -0,0 +1,29 @@ +import React from "react" +import Link from "gatsby-link" + +import KeyFacts from '../../../../components/RenderContentObject/KeyFacts' +import meta from './_meta.yaml' + +class IndexRoute extends React.Component { + render () { + + return ( +
+

Drug Opioid and SSRI Interactions Research Overview

+

This dataset makes available the research paper "Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults".

+ + + +

Responsible use of the data

+

Do not rely on openFDA to make decisions regarding medical care. Always speak to your health provider about the risks and benefits of FDA-regulated products. We may limit or otherwise restrict your access to the Application Programming Interface in line with our Terms of Service

+
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/apis/drug/researchopioidandssri/searchable-fields/index.tsx b/src/pages/apis/drug/researchopioidandssri/searchable-fields/index.tsx new file mode 100644 index 000000000..25e3168f4 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/searchable-fields/index.tsx @@ -0,0 +1,24 @@ +import React from "react" + +import FieldExplorer from '../../../../../components/FieldExplorer' + +import meta from '../_meta.yaml' +import fields from '../../../../../constants/fields/drugresearchopioidandssri.yaml' + +class IndexRoute extends React.Component { + render () { + + return ( +
+

Searchable Fields

+

Use the fields explorer below to find detailed explanations of every field in the dataset.

+ +
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/apis/drug/researchopioidandssri/understanding-the-api-results/_examples.json b/src/pages/apis/drug/researchopioidandssri/understanding-the-api-results/_examples.json new file mode 100644 index 000000000..89cc3ae61 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/understanding-the-api-results/_examples.json @@ -0,0 +1,36 @@ +{ + "count": { + "meta": { + "disclaimer": "Do not rely on openFDA to make decisions regarding medical care. While we make every effort to ensure that data is accurate, you should assume all results are unvalidated. We may limit or otherwise restrict your access to the API in line with our Terms of Service.", + "terms": "https://open.fda.gov/terms/", + "license": "https://open.fda.gov/license/", + "last_updated": "2026-07-07" + }, + "results": [ + { + "term": "DDE", + "count": 22 + }, + { + "term": "DE", + "count": 22 + }, + { + "term": "Escitalopram", + "count": 22 + }, + { + "term": "Oxycodone", + "count": 22 + }, + { + "term": "Oxymorphone", + "count": 22 + }, + { + "term": "Paroxetine", + "count": 22 + } + ] + } +} \ No newline at end of file diff --git a/src/pages/apis/drug/researchopioidandssri/understanding-the-api-results/index.tsx b/src/pages/apis/drug/researchopioidandssri/understanding-the-api-results/index.tsx new file mode 100644 index 000000000..2f89b3104 --- /dev/null +++ b/src/pages/apis/drug/researchopioidandssri/understanding-the-api-results/index.tsx @@ -0,0 +1,24 @@ +import React from "react" +import Highlight from 'react-highlight.js' + +import examples from './_examples.json' + +class IndexRoute extends React.Component { + render () { + const example: string = JSON.stringify(examples.count, null, ' ') || '' + + return ( +
+

Understanding the API Results

+

For search queries (such as: https://api.fda.gov/drug/researchopioidandssri.json?limit=1), the results section includes matching Opioid and SSRI Interactions Research results returned by the API.

+

For count queries (such as: https://api.fda.gov/drug/researchopioidandssri.json?count=periods.days.times.analytes.analyte.exact&limit=10), the results section will look something like the following:

+ + {example} + +
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/data/downloads/index.tsx b/src/pages/data/downloads/index.tsx index adb822fd8..8fbf5f469 100644 --- a/src/pages/data/downloads/index.tsx +++ b/src/pages/data/downloads/index.tsx @@ -17,6 +17,7 @@ import drug_label_meta from '../../apis/drug/label/_meta.yaml' import drug_ndc_meta from '../../apis/drug/ndc/_meta.yaml' import drug_orangebook_meta from '../../apis/drug/orangebook/_meta.yaml' import drug_drugsfda_meta from '../../apis/drug/drugsfda/_meta.yaml' +import drug_drugresearchopioidandssri_meta from '../../apis/drug/researchopioidandssri/_meta.yaml' import drug_drugshortages_meta from '../../apis/drug/drugshortages/_meta.yaml' import device_510k_meta from '../../apis/device/510k/_meta.yaml' import device_classification_meta from '../../apis/device/classification/_meta.yaml' @@ -55,6 +56,7 @@ const endpoint_list = { 'Human Drug Shortages': drug_drugshortages_meta, 'Human Drug Enforcement': drug_enforcement_meta, 'Human Drug Orange Book': drug_orangebook_meta, + 'Human Drug Opioid and SSRI Interactions Research': drug_drugresearchopioidandssri_meta, 'Medical Device': 'device_header', 'Medical Device 510k': device_510k_meta, 'Medical Device Classification': device_classification_meta, diff --git a/src/pages/data/researchopioidandssri/_meta.yaml b/src/pages/data/researchopioidandssri/_meta.yaml new file mode 100644 index 000000000..72ae012bb --- /dev/null +++ b/src/pages/data/researchopioidandssri/_meta.yaml @@ -0,0 +1,27 @@ +type: dataset +documentTitle: 'openFDA › Datasets › Opioid and SSRI Interactions Research' +crumbs: + - openFDA + - Datasets + - Opioid and SSRI Interactions Research +title: 'Opioid and SSRI Interactions Research' +description: 'Research study into drug interactions between opioids and SSRIs.' +source: + name: 'Opioid and SSRI Interactions Research' + nameLong: 'Opioid and SSRI Interactions Research' + link: 'https://www.fda.gov/drugs/drug-safety-and-availability/drug-shortages' + linkDownload: 'https://dps.fda.gov/drugshortages' +license: + name: 'Public Domain and CC0' + link: 'http://creativecommons.org/publicdomain/zero/1.0/' + time: + start: + current: + delay: + frequency: 'Infrequently' +provider: + name: 'FDA' + link: 'http://www.fda.gov/' +additionalContent: + - 'openFDa currently hosts one FDA study which delves into the drug interactions between opioids and SSRIs:' + - 'Opioid and SSRI Drug Interactions' \ No newline at end of file diff --git a/src/pages/data/researchopioidandssri/index.tsx b/src/pages/data/researchopioidandssri/index.tsx new file mode 100644 index 000000000..6db3d63c4 --- /dev/null +++ b/src/pages/data/researchopioidandssri/index.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +import Dataset from '../../../components/Dataset' + +import meta from './_meta.yaml' + +export default () => ( + +) diff --git a/src/types/endpoint.types.ts b/src/types/endpoint.types.ts index 97ee5a9a4..6f1c02787 100644 --- a/src/types/endpoint.types.ts +++ b/src/types/endpoint.types.ts @@ -15,6 +15,7 @@ export type EndpointName = | 'orangebook' | 'drugsfda' | 'drugshortages' + | 'researchopioidandssri' | 'historicaldocument' | 'nsde' | 'substance' diff --git a/static/fields/drugresearchopioidandssri.yaml b/static/fields/drugresearchopioidandssri.yaml new file mode 100644 index 000000000..d8bb4dff0 --- /dev/null +++ b/static/fields/drugresearchopioidandssri.yaml @@ -0,0 +1,153 @@ +properties: + subject_id: + description: "Participant ID" + format: + is_exact: true + possible_values: + type: string + age: + description: "Age of the participant (unit = years)" + format: + is_exact: true + possible_values: + type: integer + sex: + description: "Sex of the participant (one of 'Female' or 'Male')" + format: + is_exact: true + possible_values: + type: string + ethnicity: + description: "Ethnicity of the participant (one of 'Hispanic or Latino' or 'Not Hispanic or Latino')" + format: + is_exact: true + possible_values: + type: string + race: + description: "Race of the participant (one of ‘American Indian or Alaska Native’, 'Asian', 'Black or African American', ‘Multiple’, ‘Unknown’, or 'White')" + format: + is_exact: true + possible_values: + type: string + height: + description: "Height of the participant (unit = cm)" + format: + is_exact: true + possible_values: + type: integer + weight: + description: "Weight of the participant (unit = kg)" + format: + is_exact: true + possible_values: + type: number + body_mass_index: + description: "Body mass index of the participant (unit = kg/m2)" + format: + is_exact: true + possible_values: + type: number + periods: + type: array + items: + type: object + properties: + period: + description: "Study period when data was collected. One of 1, 2, or 3." + format: + is_exact: true + possible_values: + type: string + days: + type: array + items: + type: object + properties: + day: + description: "Nominal study day (unit = day)." + format: + is_exact: true + possible_values: + type: string + times: + type: array + items: + type: object + properties: + time: + description: "Nominal sampling time (unit = hour)." + format: + is_exact: true + possible_values: + type: string + analytes: + type: array + items: + type: object + properties: + analyte: + description: "Measured analyte. One of Oxycodone, Oxymorphone, Paroxetine, Escitalopram, Desmethylescitalopram, and Didesmethylescitalopram." + format: + is_exact: true + possible_values: + type: string + drug: + description: 'Administered co-drug with oxycodone. One of "Placebo", "Escitalopram" and "Paroxetine".' + format: + is_exact: true + possible_values: + type: string + concentration: + description: "Reported concentration with values below lower limit of quantification set to zero. (unit = ng/mL)" + format: + is_exact: true + possible_values: + type: number + mixtures: + type: array + items: + type: object + properties: + mixture: + description: "Type of hypercapnic gas mixture in rebreathing bag. One of hyperoxic (24% O2, 6% CO2, N2 balanced) or hypoxic (6% O2, 6% CO2, N2 balanced)." + format: + is_exact: true + possible_values: + type: string + drug: + description: 'Administered co-drug with oxycodone. One of "Placebo", "Escitalopram" and "Paroxetine".' + format: + is_exact: true + possible_values: + type: string + mvresting: + description: "Resting minute ventilation (unit=L/min)" + format: + is_exact: true + possible_values: + type: number + etco2: + description: "Resting end-tidal carbon dioxide partial pressure (unit=mm Hg)" + format: + is_exact: true + possible_values: + type: number + spo2: + description: "Resting oxygen saturation (unit=%)" + format: + is_exact: true + possible_values: + type: number + ve55: + description: "Minute ventilation assessment at 55 mm Hg carbon dioxide. (unit=L/min)" + format: + is_exact: true + possible_values: + type: number + vas_score: + description: "Visual analogue score for sedation (range of 0 to 100) (unit=mm)" + format: + is_exact: true + possible_values: + type: number +type: object \ No newline at end of file diff --git a/static/fields/drugresearchopioidandssri_reference.pdf b/static/fields/drugresearchopioidandssri_reference.pdf new file mode 100644 index 000000000..cdee07490 Binary files /dev/null and b/static/fields/drugresearchopioidandssri_reference.pdf differ diff --git a/static/fields/drugresearchopioidandssri_reference.xlsx b/static/fields/drugresearchopioidandssri_reference.xlsx new file mode 100644 index 000000000..902022057 Binary files /dev/null and b/static/fields/drugresearchopioidandssri_reference.xlsx differ