diff --git a/gatsby-config.js b/gatsby-config.js index 05d443417..f5b05ad11 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,4 +1,5 @@ module.exports = { + pathPrefix: `/drug-cbd-research`, // <-- your subpath 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 ad0c530ff..e1bf233dc 100644 --- a/src/components/ApiStatus.tsx +++ b/src/components/ApiStatus.tsx @@ -21,6 +21,8 @@ let endpointKeys = [ 'drugenforcement', 'drugsfda', 'drugshortages', + 'drugresearchcbdliverjamap1', + 'drugresearchcbdliverjamap2', 'deviceevent', 'devicerecall', 'deviceclass', @@ -53,6 +55,8 @@ const catMap: Record = Object.freeze({ 'drugenforcement': 'Drugs › Enforcement Reports', 'drugsfda': 'Drugs › Drugs@FDA', 'drugshortages': 'Drugs › Drug Shortages', + 'drugresearchcbdliverjamap1': 'Drugs › CBD Liver JAMA Research Part One', + 'drugresearchcbdliverjamap2': 'Drugs › CBD Liver JAMA Research Part Two', 'deviceevent': 'Devices › Adverse Events', 'devicerecall': 'Devices › Recalls', 'deviceclass': 'Devices › Classification', @@ -84,6 +88,8 @@ const endpointLinkMap: Record = Object.freeze({ 'drugenforcement': 'drug/enforcement', 'drugsfda': 'drug/drugsfda', 'drugshortages': 'drug/shortages', + 'drugresearchcbdliverjamap1': 'drug/researchcbdliverjamap1', + 'drugresearchcbdliverjamap2': 'drug/researchcbdliverjamap2', 'deviceevent': 'device/event', 'devicerecall': 'device/recall', 'deviceclass': 'device/classification', diff --git a/src/components/ApiUsage.tsx b/src/components/ApiUsage.tsx index 3026fd371..e0a79f78c 100644 --- a/src/components/ApiUsage.tsx +++ b/src/components/ApiUsage.tsx @@ -453,6 +453,8 @@ if (!bp.mob && hasWindow) { Enforcement Reports{this.docCount('drugenforcement')} Drugs@FDA{this.docCount('drugsfda')} Drug Shortages{this.docCount('drugshortages')} + CBD Liver JAMA Research Part One{this.docCount('drugresearchcbdliverjamap1')} + CBD Liver JAMA Research Part Two{this.docCount('drugresearchcbdliverjamap2')} Foods Adverse Event Reports{this.docCount('foodevent')} @@ -514,6 +516,8 @@ if (!bp.mob && hasWindow) { Enforcement Reports{this.downloadCount('drugenforcement')} Drugs@FDA{this.downloadCount('drugsfda')} Drug Shortages{this.downloadCount('drugshortages')} + CBD Liver JAMA Research Part One{this.downloadCount('drugresearchcbdliverjamap1')} + CBD Liver JAMA Research Part Two{this.downloadCount('drugresearchcbdliverjamap2')} Foods Adverse Event Reports{this.downloadCount('foodevent')} diff --git a/src/components/DataDictionary.tsx b/src/components/DataDictionary.tsx index 4a315c6cf..0556c141e 100644 --- a/src/components/DataDictionary.tsx +++ b/src/components/DataDictionary.tsx @@ -103,6 +103,8 @@ class DataDictionary extends React.Component<{}, DataDictionaryState> { 'nsde': 'NSDE', 'drugsfda': 'Drugs@FDA', 'drugshortages': 'Drug Shortages', + 'researchcbdliverjamap1': 'CBD Liver JAMA Research Part One', + 'researchcbdliverjamap2': 'CBD Liver JAMA Research Part Two', 'covid19serology': 'COVID-19 Serology', 'pma': 'Pre-Market Approval', 'recall': 'Recall', diff --git a/src/components/EndpointBox.tsx b/src/components/EndpointBox.tsx index 7320768ba..be6d4442d 100644 --- a/src/components/EndpointBox.tsx +++ b/src/components/EndpointBox.tsx @@ -51,7 +51,9 @@ const EndpointBox = (props: endpointBoxProps) => { 'ndc':
, 'enforcement':
, 'drugsfda':
, - 'drugshortages':
+ 'drugshortages':
, + 'researchcbdliverjamap1':
, + 'researchcbdliverjamap2':
}, 'other': { 'historicaldocument':
, diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 716ccd9fc..94a16c70d 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,6 +1,7 @@ /* @flow */ import React from 'react' +import { withPrefix } from "gatsby" import '../css/components/Footer.scss' const links: Array = [ @@ -80,7 +81,7 @@ class Footer extends React.Component { Go to FDA website diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index f191914c7..facf3acbe 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -36,8 +36,10 @@ const Layout = (props: LayoutProps) => { down: 'sticky-scroll-down', 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, 24) === `/drug-cbd-research/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 0bef13abb..64262b092 100644 --- a/src/components/RenderContentObject/KeyFacts.tsx +++ b/src/components/RenderContentObject/KeyFacts.tsx @@ -34,7 +34,9 @@ const source: Record> = { 'ndc': 'NDC Directory', 'enforcement': 'FDA Recall Enterprise System (RES)', 'drugsfda': 'Drugs@FDA', - 'shortages': 'Drug Shortages' + 'shortages': 'Drug Shortages', + 'researchcbdliverjamap1': 'CBD Liver JAMA Research', + 'researchcbdliverjamap2': 'CBD Liver JAMA Research' }, 'other': { 'historicaldocument': 'Historic FDA Press Releases', @@ -77,7 +79,9 @@ const sourceLink: any = { 'ndc': '/data/ndc/', 'enforcement': '/data/res/', 'drugsfda': '/data/drugsfda/', - 'shortages': '/data/drugshortages' + 'shortages': '/data/drugshortages', + 'researchcbdliverjamap1': '/data/drugresearchcbdliverjama', + 'researchcbdliverjamap2': '/data/drugresearchcbdliverjama' }, 'other': { 'historicaldocument': '/data/historicaldocument/', @@ -122,7 +126,9 @@ const timePeriod: any = { 'ndc': 'Last updated on', 'enforcement': '2004 to', 'drugsfda': '1939 to', - 'shortages': '2012 to' + 'shortages': '2012 to', + 'researchcbdliverjamap1': 'Last updated', + 'researchcbdliverjamap2': 'Last updated' }, 'other': { 'historicaldocument': '1913 to', @@ -168,7 +174,9 @@ const frequency = { 'ndc': 'Daily', 'enforcement': 'Weekly', 'drugsfda': 'Daily (Monday-Friday)', - 'shortages': 'Daily' + 'shortages': 'Daily', + 'researchcbdliverjamap1': 'n/a', + 'researchcbdliverjamap2': 'n/a' }, 'other': { 'historicaldocument': 'Infrequently', diff --git a/src/constants/api.tsx b/src/constants/api.tsx index 46581b082..742a3c93d 100644 --- a/src/constants/api.tsx +++ b/src/constants/api.tsx @@ -1,4 +1,4 @@ -export const API_LINK: string = "https://api.fda.gov" +export const API_LINK: string = "https://openfda-api.preprod.fda.gov" 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 b1f512721..f7bf5e08a 100644 --- a/src/constants/endpoint_box.ts +++ b/src/constants/endpoint_box.ts @@ -30,7 +30,9 @@ export const description: Record> 'ndc': 'NDC directory containing information on the National Drug Code (NDC)', 'enforcement': 'Drug product recall enforcement reports.', '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.', + 'researchcbdliverjamap1': 'This dataset makes available Part One of the research paper "Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults".', + 'researchcbdliverjamap2': 'This dataset makes available Part Two of the research paper "Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults".' }, 'other': { 'historicaldocument': 'FDA Press Releases, 1913-2014, in searchable format', @@ -76,7 +78,9 @@ export const ep_title: Record>> = 'ndc': 'NDC Directory', 'enforcement': 'Recall enforcement reports', 'drugsfda': 'Drugs@FDA', - 'drugshortages': 'Drug shortages' + 'drugshortages': 'Drug shortages', + 'researchcbdliverjamap1': 'Drug CBD liver JAMA research Part One', + 'researchcbdliverjamap2': 'Drug CBD liver JAMA research Part Two' }, 'other': { 'historicaldocument': 'Historical Documents', @@ -132,7 +136,9 @@ export const ep_path: Record>> = 'ndc': '/apis/drug/ndc/', 'enforcement': '/apis/drug/enforcement/', 'drugsfda': '/apis/drug/drugsfda/', - 'drugshortages': '/apis/drug/drugshortages/' + 'drugshortages': '/apis/drug/drugshortages/', + 'researchcbdliverjamap1': '/apis/drug/researchcbdliverjamap1/', + 'researchcbdliverjamap2': '/apis/drug/researchcbdliverjamap2/' }, 'other': { 'historicaldocument': '/apis/other/historicaldocument/', diff --git a/src/constants/fields/drugresearchcbdliverjamap1.yaml b/src/constants/fields/drugresearchcbdliverjamap1.yaml new file mode 100644 index 000000000..f39b819f7 --- /dev/null +++ b/src/constants/fields/drugresearchcbdliverjamap1.yaml @@ -0,0 +1,144 @@ +properties: + 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 + sex: + description: "Sex of the participant (one of 'Female' or 'Male')" + format: + is_exact: true + possible_values: + type: string + age: + description: "Age of the participant (unit = years)" + format: + is_exact: true + possible_values: + type: integer + 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 + ethnicity: + description: "Ethnicity of the participant (one of 'Hispanic or Latino' or 'Not Hispanic or Latino')" + format: + is_exact: true + possible_values: + type: string + 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 + height: + description: "Height of the participant (unit = cm)" + format: + is_exact: true + possible_values: + type: integer + study_visit_days: + type: array + items: + type: object + properties: + study_day: + description: "Study visit day" + format: + is_exact: true + possible_values: + type: string + laboratory: + type: array + items: + type: object + properties: + lab_test: + description: "Laboratory test name (one of Alkaline Phos, ALT, AST, Bilirubin Direct, Bilirubin Total, Eosinophil %, Eosinophile Absolute, GGT, INR" + format: + is_exact: true + possible_values: + type: string + reported_lab_result: + description: "Reported laboratory test result/value" + format: + is_exact: true + possible_values: + type: string + reported_lab_result_units: + description: "Reported laboratory test units" + format: + is_exact: true + possible_values: + type: string + analytye: + description: "Measured analyte. One of CBD, 7-OH-CBD, 7-COOH-CBD" + format: + is_exact: true + possible_values: + type: string + concentration: + description: "Reported concentration with values below lower limit of quantification set to zero. (units are defined in Units)" + format: + is_exact: true + possible_values: + type: number + concentration_units: + description: "Units for the reported ‘Concentration’ variable (unit = ng/mL)" + format: + is_exact: true + possible_values: + type: string + lower_limit_of_quantitation: + description: "Lower limit of quantitation for each analyte (1.95, 3.91, and 31.25 for CBD, 7-OH-CBD, and 7-COOH-CBD, respectively)" + format: + is_exact: true + possible_values: + type: number + lower_limit_of_quantitation_flag: + description: "Flag of if the concentration is below the lower limit of quantification" + format: + is_exact: true + possible_values: + type: boolean +type: object diff --git a/src/constants/fields/drugresearchcbdliverjamap2.yaml b/src/constants/fields/drugresearchcbdliverjamap2.yaml new file mode 100644 index 000000000..3db182197 --- /dev/null +++ b/src/constants/fields/drugresearchcbdliverjamap2.yaml @@ -0,0 +1,158 @@ +properties: + participant_id: + description: "Participant ID" + format: + is_exact: false + possible_values: + type: integer + exclude: + description: "Indicator of whether the datapoint was excluded from analysis. 0 indicates inclusion and 1 indicates exclusion. Note: One subject (16204) had detectable levels of citalopram and metabolites at predose at levels suggesting repeated administration. This participant was excluded from all analyses as a protocol violation as per I/E criteria." + format: + is_exact: false + possible_values: + type: boolean + age: + description: "Age of the participant (unit = years)." + format: + is_exact: false + possible_values: + type: integer + sex: + description: "Sex of the participant, assigned at birth. One of 'Female' or 'Male'." + format: + is_exact: true + possible_values: + 'Female': 'Female' + 'Male': 'Male' + type: string + ethnicity: + description: "Ethnicity of the participant. One of 'Hispanic or Latino' or 'Not Hispanic or Latino'." + format: + is_exact: true + possible_values: + 'Hispanic or Latino': 'Hispanic or Latino' + 'Not Hispanic or Latino': 'Not Hispanic or Latino' + type: string + race: + description: "Race of the participant. One or multiple of ‘American Indian or Alaska Native’, ‘Asian', 'Black or African American', ‘Native Hawaiian or Other Pacific Islander’, 'White' or ‘Unknown’." + format: + is_exact: true + possible_values: + 'American Indian or Alaska Native': 'American Indian or Alaska Native' + 'Asian': 'Asian' + 'Black or African American': 'Black or African American' + 'Native Hawaiian or Other Pacific Islander': 'Native Hawaiian or Other Pacific Islander' + 'White': 'White' + 'Unknown': 'Unknown' + type: string + height: + description: "Height of the participant (unit = cm)." + format: + is_exact: false + possible_values: + type: number + weight: + description: "Weight of the participant (unit = kg)." + format: + is_exact: false + possible_values: + type: number + body_mass_index: + description: "Body mass index of the participant (unit = kg/m2)." + format: + is_exact: false + possible_values: + type: number + phenotype: + description: "Type of CYP2C19 metabolizer based on genotyping results. One of ‘Normal’, ‘Intermediate’, ‘Rapid’, or ‘Ultra-Rapid’." + format: + is_exact: false + possible_values: + 'Normal': 'Normal' + 'Intermediate': 'Intermediate' + 'Rapid': 'Rapid' + 'Ultra-Rapid': 'Ultra-Rapid' + type: string + rs7438135_genotype: + description: "Type of UGT2B7 rs7438135 variation. One of GG, AG, AA." + format: + is_exact: false + possible_values: + 'GG': 'GG' + 'AG': 'AG' + 'AA': 'AA' + type: string + rs7668282_genotype: + description: "Type of UGT2B7 rs7668282 variation. One of TT, TC, CC." + format: + is_exact: false + possible_values: + 'TT': 'TT' + 'TC': 'TC' + 'CC': 'CC' + type: string + rs7439366_genotype: + description: "Type of UGT2B7 rs7439366 variation. One of TT, CT, CC." + format: + is_exact: false + possible_values: + 'TT': 'TT' + 'CT': 'CT' + 'CC': 'CC' + type: string + products: + type: array + items: + type: object + properties: + product: + description: "Administered product. One of ‘Citalopram alone’, ‘Citalopram + steady state cannabidiol’, ‘Morphine alone’, ‘Morphine + 1 dose of cannabidiol’, ‘Morphine + steady state cannabidiol’." + format: + is_exact: true + possible_values: + 'Citalopram alone': 'Citalopram alone' + 'Citalopram + steady state cannabidiol': 'Citalopram + steady state cannabidiol' + 'Morphine alone': 'Morphine alone' + 'Morphine + 1 dose of cannabidiol': 'Morphine + 1 dose of cannabidiol' + 'Morphine + steady state cannabidiol': 'Morphine + steady state cannabidiol' + type: string + times: + type: array + items: + type: object + properties: + time: + description: "Nominal sampling time (unit = hours)." + format: + is_exact: false + possible_values: + type: integer + analytes: + type: array + items: + type: object + properties: + analyte: + description: "Measured analyte. One of Citalopram, Desmethylcitalopram, Morphine, Morphine-3-glucuronide, Morphine-6-glucuronide." + format: + is_exact: false + possible_values: + 'Citalopram': 'Citalopram' + 'Desmethylcitalopram': 'Desmethylcitalopram' + 'Morphine': 'Morphine' + 'Morphine-3-glucuronide': 'Morphine-3-glucuronide' + 'Morphine-6-glucuronide': 'Morphine-6-glucuronide' + type: string + concentration: + description: "Reported concentration with BLQ values set to zero (unit = ng/mL)." + format: + is_exact: false + possible_values: + type: number + blq: + description: "Denotes samples below the limit of quantitation. Limits were 0.2 ng/mL for citalopram, 0.16 ng/mL for desmethylcitalopram, 0.78 ng/mL for morphine, 3.91 ng/mL for morphine-3-glucuronide, and 1.56 ng/mL for morphine-6-glucuronide." + format: + is_exact: false + possible_values: + type: boolean +type: object diff --git a/src/constants/fields/master_fields.yaml b/src/constants/fields/master_fields.yaml index 0ac222e77..9a0191e93 100644 --- a/src/constants/fields/master_fields.yaml +++ b/src/constants/fields/master_fields.yaml @@ -7791,6 +7791,151 @@ drug: name: "Universal Product Code" link: "https://en.wikipedia.org/wiki/Universal_Product_Code" type: object + researchcbdliverjama: + properties: + 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 + sex: + description: "Sex of the participant (one of 'Female' or 'Male')" + format: + is_exact: true + possible_values: + type: string + age: + description: "Age of the participant (unit = years)" + format: + is_exact: true + possible_values: + type: integer + 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 + ethnicity: + description: "Ethnicity of the participant (one of 'Hispanic or Latino' or 'Not Hispanic or Latino')" + format: + is_exact: true + possible_values: + type: string + 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 + height: + description: "Height of the participant (unit = cm)" + format: + is_exact: true + possible_values: + type: integer + study_visit_days: + type: array + items: + type: object + properties: + study_day: + description: "Study visit day" + format: + is_exact: true + possible_values: + type: string + laboratory: + type: array + items: + type: object + properties: + lab_test: + description: "Laboratory test name (one of Alkaline Phos, ALT, AST, Bilirubin Direct, Bilirubin Total, Eosinophil %, Eosinophile Absolute, GGT, INR" + format: + is_exact: true + possible_values: + type: string + reported_lab_result: + description: "Reported laboratory test result/value" + format: + is_exact: true + possible_values: + type: string + reported_lab_result_units: + description: "Reported laboratory test units" + format: + is_exact: true + possible_values: + type: string + analytye: + description: "Measured analyte. One of CBD, 7-OH-CBD, 7-COOH-CBD" + format: + is_exact: true + possible_values: + type: string + concentration: + description: "Reported concentration with values below lower limit of quantification set to zero. (units are defined in Units)" + format: + is_exact: true + possible_values: + type: number + concentration_units: + description: "Units for the reported ‘Concentration’ variable (unit = ng/mL)" + format: + is_exact: true + possible_values: + type: string + lower_limit_of_quantitation: + description: "Lower limit of quantitation for each analyte (1.95, 3.91, and 31.25 for CBD, 7-OH-CBD, and 7-COOH-CBD, respectively)" + format: + is_exact: true + possible_values: + type: number + lower_limit_of_quantitation_flag: + description: "Flag of if the concentration is below the lower limit of quantification" + format: + is_exact: true + possible_values: + type: boolean + type: object food: enforcement: properties: diff --git a/src/constants/file_download.ts b/src/constants/file_download.ts index 4c6ca2328..dff0d00ff 100644 --- a/src/constants/file_download.ts +++ b/src/constants/file_download.ts @@ -10,6 +10,8 @@ export const pdfDownloadMap: Readonly> = Object.freeze({ 'drugenforcement': '/fields/drugenforcement_reference.pdf', 'drugsfda': '/fields/drugsfda_reference.pdf', 'drugshortages': '/fields/drugshortages_reference.pdf', + 'drugresearchcbdliverjamap1': '/fields/drugresearchcbdliverjamap1_reference.pdf', + 'drugresearchcbdliverjamap2': '/fields/drugresearchcbdliverjamap2_reference.pdf', 'deviceevent': '/fields/deviceevent_reference.pdf', 'devicerecall': '/fields/devicerecall_reference.pdf', 'deviceclass': '/fields/deviceclass_reference.pdf', @@ -37,6 +39,8 @@ export const xlsxDownloadMap: Readonly> = Object.freeze({ 'drugenforcement': '/fields/drugenforcement_reference.xlsx', 'drugsfda': '/fields/drugsfda_reference.xlsx', 'drugshortages': '/fields/drugshortages_reference.xlsx', + 'drugresearchcbdliverjamap1': '/fields/drugresearchcbdliverjamap1_reference.xlsx', + 'drugresearchcbdliverjamap2': '/fields/drugresearchcbdliverjamap2_reference.xlsx', 'deviceevent': '/fields/deviceevent_reference.xlsx', 'devicerecall': '/fields/devicerecall_reference.xlsx', 'deviceclass': '/fields/deviceclass_reference.xlsx', @@ -64,6 +68,8 @@ export const yamlDownloadMap: Readonly> = Object.freeze({ 'drugenforcement': '/fields/drugenforcement.yaml', 'drugsfda': '/fields/drugsfda.yaml', 'drugshortages': '/fields/drugshortages.yaml', + 'drugresearchcbdliverjamap1': '/fields/drugresearchcbdliverjamap1.yaml', + 'drugresearchcbdliverjamap2': '/fields/drugresearchcbdliverjamap2.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 1b07b80f1..6140bea23 100644 --- a/src/pages/about/updates/updates.yaml +++ b/src/pages/about/updates/updates.yaml @@ -158,4 +158,12 @@ updates: - title: "New openFDA Dataset - Tobacco Digital Ads Research" path: /apis/tobacco/researchdigitalads/ date: 2026-02-17 - desc: "The dataset Tobacco Digital Ads Research is now available." \ No newline at end of file + desc: "The dataset Tobacco Digital Ads Research is now available." + - title: "New openFDA Dataset - Tobacco Smokefree Research" + path: /apis/tobacco/researchsmokefree/ + date: 2026-03-11 + desc: "The dataset Tobacco Smokefree Research is now available." + - title: "New openFDA Dataset - Drug CBD Liver JAMA Research" + path: /apis/drug/researchcbdliverjama/ + date: 2026-03-06 + desc: "The dataset Drug CBD Liver JAMA 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 7a54f4a18..22084b7f6 100644 --- a/src/pages/apis/doc-links.yaml +++ b/src/pages/apis/doc-links.yaml @@ -180,6 +180,38 @@ link: /apis/drug/drugshortages/download/ - title: Searchable fields link: /apis/drug/drugshortages/searchable-fields/ + - title: CBD Liver JAMA Research Part One + id: drug-research-cbd-liver-jama-p1 + collapse: true + items: + - title: Overview + link: /apis/drug/researchcbdliverjamap1/ + - title: How to use the API + link: /apis/drug/researchcbdliverjamap1/how-to-use-the-endpoint/ + - title: Example API queries + link: /apis/drug/researchcbdliverjamap1/example-api-queries/ + - title: Understanding the API Results + link: /apis/drug/researchcbdliverjamap1/understanding-the-api-results/ + - title: Download the dataset + link: /apis/drug/researchcbdliverjamap1/download/ + - title: Searchable fields + link: /apis/drug/researchcbdliverjamap1/searchable-fields/ + - title: CBD Liver JAMA Research Part Two + id: drug-research-cbd-liver-jama-p2 + collapse: true + items: + - title: Overview + link: /apis/drug/researchcbdliverjamap2/ + - title: How to use the API + link: /apis/drug/researchcbdliverjamap2/how-to-use-the-endpoint/ + - title: Example API queries + link: /apis/drug/researchcbdliverjamap2/example-api-queries/ + - title: Understanding the API Results + link: /apis/drug/researchcbdliverjamap2/understanding-the-api-results/ + - title: Download the dataset + link: /apis/drug/researchcbdliverjamap2/download/ + - title: Searchable fields + link: /apis/drug/researchcbdliverjamap2/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 6e2641648..995ecd240 100644 --- a/src/pages/apis/drug/index.tsx +++ b/src/pages/apis/drug/index.tsx @@ -31,6 +31,14 @@ export default () => ( noun_name='drug' endpoint_name='drugshortages' /> + +
diff --git a/src/pages/apis/drug/researchcbdliverjamap1/_explorers.yaml b/src/pages/apis/drug/researchcbdliverjamap1/_explorers.yaml new file mode 100644 index 000000000..c2d0cc783 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/_explorers.yaml @@ -0,0 +1,23 @@ +oneRecord: + title: One Drug CBD Liver JAMA Research Part One record + params: + - Search for all records and display one. + - limit to 1 record. + description: + - This query searches for all records and asks for a single one. + query: 'https://openfda-api.preprod.fda.gov/drug/researchcbdliverjamap1.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: 'https://openfda-api.preprod.fda.gov/drug/researchcbdliverjamap1.json?search=body_mass_index:[1+TO+25]+AND+treatment:"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: 'https://openfda-api.preprod.fda.gov/drug/researchcbdliverjamap2.json?count=study_visit_days.analytye.exact' diff --git a/src/pages/apis/drug/researchcbdliverjamap1/_meta.yaml b/src/pages/apis/drug/researchcbdliverjamap1/_meta.yaml new file mode 100644 index 000000000..a9b52e1b3 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/_meta.yaml @@ -0,0 +1,12 @@ +documentTitle: openFDA › Drugs › CBD Liver JAMA Research Part One +label: Drug CBD Liver JAMA Research Part One +title: Drug CBD Liver JAMA Research Part One +description: 'This dataset makes available part one of the research paper "Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults".' +datasets: + - drugresearchcbdliverjamap1 +path: /apis/drug/researchcbdliverjamap1 +api_path: /drug/researchcbdliverjamap1 +start: 19390101 +status: drugresearchcbdliverjamap1 +dateConstraintKey: submission_status_date +type: endpoint diff --git a/src/pages/apis/drug/researchcbdliverjamap1/download/index.tsx b/src/pages/apis/drug/researchcbdliverjamap1/download/index.tsx new file mode 100644 index 000000000..a8369c404 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/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/researchcbdliverjamap1/example-api-queries/index.tsx b/src/pages/apis/drug/researchcbdliverjamap1/example-api-queries/index.tsx new file mode 100644 index 000000000..c6b296f28 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/example-api-queries/index.tsx @@ -0,0 +1,43 @@ +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 CBD Liver JAMA Research Part One 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/researchcbdliverjamap1/how-to-use-the-endpoint/index.tsx b/src/pages/apis/drug/researchcbdliverjamap1/how-to-use-the-endpoint/index.tsx new file mode 100644 index 000000000..fa46fb30a --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/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 CBD Liver JAMA Research Part One endpoint for matches with Placebo in the treatment 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/researchcbdliverjamap1.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/researchcbdliverjamap1/index.tsx b/src/pages/apis/drug/researchcbdliverjamap1/index.tsx new file mode 100644 index 000000000..1ab37a6a6 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/index.tsx @@ -0,0 +1,28 @@ +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 ( +
+

CBD Liver JAMA Research Part One 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/researchcbdliverjamap1/searchable-fields/index.tsx b/src/pages/apis/drug/researchcbdliverjamap1/searchable-fields/index.tsx new file mode 100644 index 000000000..0be05f4e8 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/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/drugresearchcbdliverjamap1.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/researchcbdliverjamap1/understanding-the-api-results/_examples.json b/src/pages/apis/drug/researchcbdliverjamap1/understanding-the-api-results/_examples.json new file mode 100644 index 000000000..e76a4e49f --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/understanding-the-api-results/_examples.json @@ -0,0 +1,50 @@ +{ + "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-02-27" + }, + "results": [ + { + "term": "ALT", + "count": 201 + }, + { + "term": "AST", + "count": 201 + }, + { + "term": "Alkaline Phos", + "count": 201 + }, + { + "term": "Bilirubin, Direct", + "count": 201 + }, + { + "term": "Bilirubin, Total", + "count": 201 + }, + { + "term": "Eosinophil %", + "count": 201 + }, + { + "term": "Eosinophil Absolute", + "count": 201 + }, + { + "term": "GGT", + "count": 201 + }, + { + "term": "INR", + "count": 201 + } + ] + } + ] +} diff --git a/src/pages/apis/drug/researchcbdliverjamap1/understanding-the-api-results/index.tsx b/src/pages/apis/drug/researchcbdliverjamap1/understanding-the-api-results/index.tsx new file mode 100644 index 000000000..68427715e --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap1/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/researchcbdliverjamap1.json?limit=1), the results section includes matching CBD Liver JAMA Research Part One results returned by the API.

+

For count queries (such as: https://api.fda.gov/drug/researchcbdliverjamap1.json?count=study_visit_days.laboratory.lab_test.exact&limit=10), the results section will look something like the following:

+ + {example} + +
+ ) + } +} + +export default IndexRoute diff --git a/src/pages/apis/drug/researchcbdliverjamap2/_explorers.yaml b/src/pages/apis/drug/researchcbdliverjamap2/_explorers.yaml new file mode 100644 index 000000000..86225873d --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/_explorers.yaml @@ -0,0 +1,23 @@ +oneRecord: + title: One Drug CBD Liver JAMA Research Part Two record + params: + - Search for all records and display one. + - limit to 1 record. + description: + - This query searches for all records and asks for a single one. + query: 'https://openfda-api.preprod.fda.gov/drug/researchcbdliverjamap2.json?limit=1' +lowBMICitalopram: + title: Normal to High BMI with Citalopram alone + description: + - This query searches for all records with body mass index in the range of 1 to 25 and product equal to "Citalopram alone". + params: + - search for all records with body mass index in the range of 25 to 50 and product equal to "Citalopram alone". + query: 'https://openfda-api.preprod.fda.gov/drug/researchcbdliverjamap2.json?search=body_mass_index:[25+TO+50]+AND+products.product:"Citalopram alone"' +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: 'https://openfda-api.preprod.fda.gov/drug/researchcbdliverjamap2.json?count=products.times.analytye.exact' diff --git a/src/pages/apis/drug/researchcbdliverjamap2/_meta.yaml b/src/pages/apis/drug/researchcbdliverjamap2/_meta.yaml new file mode 100644 index 000000000..b9323fadf --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/_meta.yaml @@ -0,0 +1,12 @@ +documentTitle: openFDA › Drugs › CBD Liver JAMA Research Part Two +label: Drug CBD Liver JAMA Research Part Two +title: Drug CBD Liver JAMA Research Part Two +description: 'This dataset makes available part two of the research paper "Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults".' +datasets: + - drugresearchcbdliverjamap2 +path: /apis/drug/researchcbdliverjamap2 +api_path: /drug/researchcbdliverjamap2 +start: 19390101 +status: drugresearchcbdliverjamap2 +dateConstraintKey: submission_status_date +type: endpoint diff --git a/src/pages/apis/drug/researchcbdliverjamap2/download/index.tsx b/src/pages/apis/drug/researchcbdliverjamap2/download/index.tsx new file mode 100644 index 000000000..a8369c404 --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/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/researchcbdliverjamap2/example-api-queries/index.tsx b/src/pages/apis/drug/researchcbdliverjamap2/example-api-queries/index.tsx new file mode 100644 index 000000000..bf8b6945a --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/example-api-queries/index.tsx @@ -0,0 +1,43 @@ +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 lowBMICitalopram = explorers.lowBMICitalopram + const countAnalytye = explorers.countAnalytye + + return ( +
+

Example CBD Liver JAMA Research Part Two 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/researchcbdliverjamap2/how-to-use-the-endpoint/index.tsx b/src/pages/apis/drug/researchcbdliverjamap2/how-to-use-the-endpoint/index.tsx new file mode 100644 index 000000000..923677c7c --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/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 CBD Liver JAMA Research Part Two endpoint for matches with Placebo in the treatment 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/researchcbdliverjamap2.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/researchcbdliverjamap2/index.tsx b/src/pages/apis/drug/researchcbdliverjamap2/index.tsx new file mode 100644 index 000000000..44ea3263b --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/index.tsx @@ -0,0 +1,28 @@ +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 ( +
+

CBD Liver JAMA Research Part Two Overview

+

This dataset makes available part two of 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/researchcbdliverjamap2/searchable-fields/index.tsx b/src/pages/apis/drug/researchcbdliverjamap2/searchable-fields/index.tsx new file mode 100644 index 000000000..a5598a49d --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/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/drugresearchcbdliverjamap2.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/researchcbdliverjamap2/understanding-the-api-results/_examples.json b/src/pages/apis/drug/researchcbdliverjamap2/understanding-the-api-results/_examples.json new file mode 100644 index 000000000..bf6e33abb --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/understanding-the-api-results/_examples.json @@ -0,0 +1,34 @@ +{ + "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-06-15" + }, + "results": [ + { + "term": "Citalopram + steady state cannabidiol", + "count": 20 + }, + { + "term": "Citalopram alone", + "count": 20 + }, + { + "term": "Morphine + 1 dose of cannabidiol", + "count": 20 + }, + { + "term": "Morphine alone", + "count": 20 + }, + { + "term": "Morphine + steady state cannabidiol", + "count": 18 + } + ] + } + ] +} diff --git a/src/pages/apis/drug/researchcbdliverjamap2/understanding-the-api-results/index.tsx b/src/pages/apis/drug/researchcbdliverjamap2/understanding-the-api-results/index.tsx new file mode 100644 index 000000000..f463a164a --- /dev/null +++ b/src/pages/apis/drug/researchcbdliverjamap2/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/researchcbdliverjamap2.json?limit=1), the results section includes matching CBD Liver JAMA Research Part Two results returned by the API.

+

For count queries (such as: https://api.fda.gov/drug/researchcbdliverjamap2.json?count=products.product.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 5d0e08dce..8ad3a7cdb 100644 --- a/src/pages/data/downloads/index.tsx +++ b/src/pages/data/downloads/index.tsx @@ -17,6 +17,8 @@ import drug_label_meta from '../../apis/drug/label/_meta.yaml' import drug_ndc_meta from '../../apis/drug/ndc/_meta.yaml' import drug_drugsfda_meta from '../../apis/drug/drugsfda/_meta.yaml' import drug_drugshortages_meta from '../../apis/drug/drugshortages/_meta.yaml' +import drug_researchcbdliverjamap1_meta from '../../apis/drug/researchcbdliverjamap1/_meta.yaml' +import drug_researchcbdliverjamap2_meta from '../../apis/drug/researchcbdliverjamap2/_meta.yaml' import device_510k_meta from '../../apis/device/510k/_meta.yaml' import device_classification_meta from '../../apis/device/classification/_meta.yaml' import device_enforcement_meta from '../../apis/device/enforcement/_meta.yaml' @@ -52,6 +54,8 @@ const endpoint_list = { 'Human Drugs@FDA': drug_drugsfda_meta, 'Human Drug Shortages': drug_drugshortages_meta, 'Human Drug Enforcement': drug_enforcement_meta, + 'Human Drug CBD Liver JAMA Research Part One': drug_researchcbdliverjamap1_meta, + 'Human Drug CBD Liver JAMA Research Part Two': drug_researchcbdliverjamap2_meta, 'Medical Device': 'device_header', 'Medical Device 510k': device_510k_meta, 'Medical Device Classification': device_classification_meta, diff --git a/src/pages/data/drugresearchcbdliverjama/_meta.yaml b/src/pages/data/drugresearchcbdliverjama/_meta.yaml new file mode 100644 index 000000000..fe2dce3cf --- /dev/null +++ b/src/pages/data/drugresearchcbdliverjama/_meta.yaml @@ -0,0 +1,25 @@ +type: dataset +documentTitle: 'openFDA › Datasets › Drug CBD Liver JAMA Research' +crumbs: + - openFDA + - Datasets + - Drug CBD Liver JAMA Research +title: 'Drug CBD Liver JAMA Research' +description: 'Research study into the impacts of CBD on the liver, as published in the Journal of the American Medical Association.' +source: + name: 'Drug CBD Liver JAMA Research' + nameLong: 'Drug CBD Liver JAMA Research' +license: + name: 'Public Domain and CC0' + link: 'http://creativecommons.org/publicdomain/zero/1.0/' + time: + start: + current: + delay: + frequency: +provider: + name: 'FDA' + link: 'http://www.fda.gov/' +additionalContent: + - 'openFDa currently hosts one FDA study in two parts which delves into the impacts of CBD on the liver:' + - 'Cannabidiol and Liver Enzyme Level Elevations in Healthy Adults Part One' diff --git a/src/pages/data/drugresearchcbdliverjama/index.tsx b/src/pages/data/drugresearchcbdliverjama/index.tsx new file mode 100644 index 000000000..6db3d63c4 --- /dev/null +++ b/src/pages/data/drugresearchcbdliverjama/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 25c486c7b..69294908b 100644 --- a/src/types/endpoint.types.ts +++ b/src/types/endpoint.types.ts @@ -14,6 +14,7 @@ export type EndpointName = | 'ndc' | 'drugsfda' | 'drugshortages' + | 'researchcbdliverjama' | 'historicaldocument' | 'nsde' | 'substance' diff --git a/static/fields/drugresearchcbdliverjamap1.yaml b/static/fields/drugresearchcbdliverjamap1.yaml new file mode 100644 index 000000000..f39b819f7 --- /dev/null +++ b/static/fields/drugresearchcbdliverjamap1.yaml @@ -0,0 +1,144 @@ +properties: + 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 + sex: + description: "Sex of the participant (one of 'Female' or 'Male')" + format: + is_exact: true + possible_values: + type: string + age: + description: "Age of the participant (unit = years)" + format: + is_exact: true + possible_values: + type: integer + 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 + ethnicity: + description: "Ethnicity of the participant (one of 'Hispanic or Latino' or 'Not Hispanic or Latino')" + format: + is_exact: true + possible_values: + type: string + 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 + height: + description: "Height of the participant (unit = cm)" + format: + is_exact: true + possible_values: + type: integer + study_visit_days: + type: array + items: + type: object + properties: + study_day: + description: "Study visit day" + format: + is_exact: true + possible_values: + type: string + laboratory: + type: array + items: + type: object + properties: + lab_test: + description: "Laboratory test name (one of Alkaline Phos, ALT, AST, Bilirubin Direct, Bilirubin Total, Eosinophil %, Eosinophile Absolute, GGT, INR" + format: + is_exact: true + possible_values: + type: string + reported_lab_result: + description: "Reported laboratory test result/value" + format: + is_exact: true + possible_values: + type: string + reported_lab_result_units: + description: "Reported laboratory test units" + format: + is_exact: true + possible_values: + type: string + analytye: + description: "Measured analyte. One of CBD, 7-OH-CBD, 7-COOH-CBD" + format: + is_exact: true + possible_values: + type: string + concentration: + description: "Reported concentration with values below lower limit of quantification set to zero. (units are defined in Units)" + format: + is_exact: true + possible_values: + type: number + concentration_units: + description: "Units for the reported ‘Concentration’ variable (unit = ng/mL)" + format: + is_exact: true + possible_values: + type: string + lower_limit_of_quantitation: + description: "Lower limit of quantitation for each analyte (1.95, 3.91, and 31.25 for CBD, 7-OH-CBD, and 7-COOH-CBD, respectively)" + format: + is_exact: true + possible_values: + type: number + lower_limit_of_quantitation_flag: + description: "Flag of if the concentration is below the lower limit of quantification" + format: + is_exact: true + possible_values: + type: boolean +type: object diff --git a/static/fields/drugresearchcbdliverjamap1_reference.pdf b/static/fields/drugresearchcbdliverjamap1_reference.pdf new file mode 100644 index 000000000..185569b7b Binary files /dev/null and b/static/fields/drugresearchcbdliverjamap1_reference.pdf differ diff --git a/static/fields/drugresearchcbdliverjamap1_reference.xlsx b/static/fields/drugresearchcbdliverjamap1_reference.xlsx new file mode 100644 index 000000000..50afd4f85 Binary files /dev/null and b/static/fields/drugresearchcbdliverjamap1_reference.xlsx differ diff --git a/static/fields/drugresearchcbdliverjamap2.yaml b/static/fields/drugresearchcbdliverjamap2.yaml new file mode 100644 index 000000000..3db182197 --- /dev/null +++ b/static/fields/drugresearchcbdliverjamap2.yaml @@ -0,0 +1,158 @@ +properties: + participant_id: + description: "Participant ID" + format: + is_exact: false + possible_values: + type: integer + exclude: + description: "Indicator of whether the datapoint was excluded from analysis. 0 indicates inclusion and 1 indicates exclusion. Note: One subject (16204) had detectable levels of citalopram and metabolites at predose at levels suggesting repeated administration. This participant was excluded from all analyses as a protocol violation as per I/E criteria." + format: + is_exact: false + possible_values: + type: boolean + age: + description: "Age of the participant (unit = years)." + format: + is_exact: false + possible_values: + type: integer + sex: + description: "Sex of the participant, assigned at birth. One of 'Female' or 'Male'." + format: + is_exact: true + possible_values: + 'Female': 'Female' + 'Male': 'Male' + type: string + ethnicity: + description: "Ethnicity of the participant. One of 'Hispanic or Latino' or 'Not Hispanic or Latino'." + format: + is_exact: true + possible_values: + 'Hispanic or Latino': 'Hispanic or Latino' + 'Not Hispanic or Latino': 'Not Hispanic or Latino' + type: string + race: + description: "Race of the participant. One or multiple of ‘American Indian or Alaska Native’, ‘Asian', 'Black or African American', ‘Native Hawaiian or Other Pacific Islander’, 'White' or ‘Unknown’." + format: + is_exact: true + possible_values: + 'American Indian or Alaska Native': 'American Indian or Alaska Native' + 'Asian': 'Asian' + 'Black or African American': 'Black or African American' + 'Native Hawaiian or Other Pacific Islander': 'Native Hawaiian or Other Pacific Islander' + 'White': 'White' + 'Unknown': 'Unknown' + type: string + height: + description: "Height of the participant (unit = cm)." + format: + is_exact: false + possible_values: + type: number + weight: + description: "Weight of the participant (unit = kg)." + format: + is_exact: false + possible_values: + type: number + body_mass_index: + description: "Body mass index of the participant (unit = kg/m2)." + format: + is_exact: false + possible_values: + type: number + phenotype: + description: "Type of CYP2C19 metabolizer based on genotyping results. One of ‘Normal’, ‘Intermediate’, ‘Rapid’, or ‘Ultra-Rapid’." + format: + is_exact: false + possible_values: + 'Normal': 'Normal' + 'Intermediate': 'Intermediate' + 'Rapid': 'Rapid' + 'Ultra-Rapid': 'Ultra-Rapid' + type: string + rs7438135_genotype: + description: "Type of UGT2B7 rs7438135 variation. One of GG, AG, AA." + format: + is_exact: false + possible_values: + 'GG': 'GG' + 'AG': 'AG' + 'AA': 'AA' + type: string + rs7668282_genotype: + description: "Type of UGT2B7 rs7668282 variation. One of TT, TC, CC." + format: + is_exact: false + possible_values: + 'TT': 'TT' + 'TC': 'TC' + 'CC': 'CC' + type: string + rs7439366_genotype: + description: "Type of UGT2B7 rs7439366 variation. One of TT, CT, CC." + format: + is_exact: false + possible_values: + 'TT': 'TT' + 'CT': 'CT' + 'CC': 'CC' + type: string + products: + type: array + items: + type: object + properties: + product: + description: "Administered product. One of ‘Citalopram alone’, ‘Citalopram + steady state cannabidiol’, ‘Morphine alone’, ‘Morphine + 1 dose of cannabidiol’, ‘Morphine + steady state cannabidiol’." + format: + is_exact: true + possible_values: + 'Citalopram alone': 'Citalopram alone' + 'Citalopram + steady state cannabidiol': 'Citalopram + steady state cannabidiol' + 'Morphine alone': 'Morphine alone' + 'Morphine + 1 dose of cannabidiol': 'Morphine + 1 dose of cannabidiol' + 'Morphine + steady state cannabidiol': 'Morphine + steady state cannabidiol' + type: string + times: + type: array + items: + type: object + properties: + time: + description: "Nominal sampling time (unit = hours)." + format: + is_exact: false + possible_values: + type: integer + analytes: + type: array + items: + type: object + properties: + analyte: + description: "Measured analyte. One of Citalopram, Desmethylcitalopram, Morphine, Morphine-3-glucuronide, Morphine-6-glucuronide." + format: + is_exact: false + possible_values: + 'Citalopram': 'Citalopram' + 'Desmethylcitalopram': 'Desmethylcitalopram' + 'Morphine': 'Morphine' + 'Morphine-3-glucuronide': 'Morphine-3-glucuronide' + 'Morphine-6-glucuronide': 'Morphine-6-glucuronide' + type: string + concentration: + description: "Reported concentration with BLQ values set to zero (unit = ng/mL)." + format: + is_exact: false + possible_values: + type: number + blq: + description: "Denotes samples below the limit of quantitation. Limits were 0.2 ng/mL for citalopram, 0.16 ng/mL for desmethylcitalopram, 0.78 ng/mL for morphine, 3.91 ng/mL for morphine-3-glucuronide, and 1.56 ng/mL for morphine-6-glucuronide." + format: + is_exact: false + possible_values: + type: boolean +type: object diff --git a/static/fields/drugresearchcbdliverjamap2_reference.xlsx b/static/fields/drugresearchcbdliverjamap2_reference.xlsx new file mode 100644 index 000000000..1e736e84c Binary files /dev/null and b/static/fields/drugresearchcbdliverjamap2_reference.xlsx differ diff --git a/static/fields/drugresearchcbdliverjamap2_reference.xlsx.pdf b/static/fields/drugresearchcbdliverjamap2_reference.xlsx.pdf new file mode 100644 index 000000000..15ad09969 Binary files /dev/null and b/static/fields/drugresearchcbdliverjamap2_reference.xlsx.pdf differ