Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "open-fda-gov",
"description": "openFDA website",
"version": "2.0.0",
"author": "Jack Finch <jack.finch@semanticbits.com>",
"author": "Violet Wren <violet.wren@icf.com>",
"scripts": {
"dev": "./node_modules/.bin/gatsby develop -H 0.0.0.0 -p 3000",
"build": "./node_modules/.bin/gatsby build --verbose",
Expand Down
2 changes: 1 addition & 1 deletion push-site.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

TODAY=$(date +"%Y-%m-%d")
BUCKET="open.fda.gov-$TODAY"
BUCKET="open.fda.gov-remssplupdated"

echo "Pushing to: ${BUCKET}"

Expand Down
2 changes: 2 additions & 0 deletions src/components/ApiStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const catMap: Object = Object.freeze({
'ndc': 'Drugs › NDC Directory',
'drugenforcement': 'Drugs › Enforcement Reports',
'drugsfda': 'Drugs › Drugs@FDA',
'drugremsspl': 'Drugs › REMS SPL',
'deviceevent': 'Devices › Adverse Events',
'devicerecall': 'Devices › Recalls',
'deviceclass': 'Devices › Classification',
Expand All @@ -44,6 +45,7 @@ const endpointLinkMap: Object = Object.freeze({
'ndc': 'drug/ndc',
'drugenforcement': 'drug/enforcement',
'drugsfda': 'drug/drugsfda',
'drugremsspl': 'drug/drugremsspl',
'deviceevent': 'device/event',
'devicerecall': 'device/recall',
'deviceclass': 'device/classification',
Expand Down
2 changes: 2 additions & 0 deletions src/components/ApiUsage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ const ApiUsage = (props:tPROPS) => {
<tr><td>NDC Directory</td><td>{this.docCount('ndc')}</td></tr>
<tr><td>Enforcement Reports</td><td>{this.docCount('drugenforcement')}</td></tr>
<tr><td>Drugs@FDA</td><td>{this.docCount('drugsfda')}</td></tr>
<tr><td>REMS SPL</td><td>{this.docCount('drugremsspl')}</td></tr>

<tr className="bg-primary-darkest clr-white"><td colSpan="2"><strong>Foods</strong></td></tr>
<tr><td>Adverse Event Reports</td><td>{this.docCount('foodevent')}</td></tr>
Expand Down Expand Up @@ -363,6 +364,7 @@ const ApiUsage = (props:tPROPS) => {
<tr><td>NDC Directory</td><td>{this.downloadCount('ndc')}</td></tr>
<tr><td>Enforcement Reports</td><td>{this.downloadCount('drugenforcement')}</td></tr>
<tr><td>Drugs@FDA</td><td>{this.downloadCount('drugsfda')}</td></tr>
<tr><td>REMS SPL</td><td>{this.downloadCount('drugremsspl')}</td></tr>

<tr className="bg-primary-darkest clr-white"><td colSpan="2"><strong>Foods</strong></td></tr>
<tr><td>Adverse Event Reports</td><td>{this.downloadCount('foodevent')}</td></tr>
Expand Down
1 change: 1 addition & 0 deletions src/components/DataDictionary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class DataDictionary extends React.Component {
'enforcement': 'Enforcement',
'nsde': 'NSDE',
'drugsfda': 'Drugs@FDA',
'remsspl': 'REMS SPL',
'covid19serology': 'COVID-19 Serology',
'pma': 'Pre-Market Approval',
'recall': 'Recall',
Expand Down
12 changes: 8 additions & 4 deletions src/components/EndpointBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const EndpointBox = (props: tPROPS) => {
'label': 'Structured product information, including prescribing information, for approved drug products.',
'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.'
'drugsfda': 'Drugs@FDA includes most of the drug products approved since 1939.',
'remsspl': 'REMS are programs designed to ensure that the benefits of certain drugs outweigh their risks.'
},
'other': {
'nsde': 'Comprehensive NDC SPL Data Elements File',
Expand Down Expand Up @@ -86,7 +87,8 @@ const EndpointBox = (props: tPROPS) => {
'label': 'Product labeling',
'ndc': 'NDC Directory',
'enforcement': 'Recall enforcement reports',
'drugsfda': 'Drugs@FDA'
'drugsfda': 'Drugs@FDA',
'remsspl': 'REMS SPL'
},
'other': {
'nsde': 'NDC SPL Data Elements',
Expand Down Expand Up @@ -130,7 +132,8 @@ const EndpointBox = (props: tPROPS) => {
'label': <div className="ep-icon" style={bg_color['drug']}><i className="fa fa-3x fa-barcode" style={{color: "white"}}/></div>,
'ndc': <div className="ep-icon" style={bg_color['drug']}><i className="fa fa-3x fa-database" style={{color: "white"}}/></div>,
'enforcement': <div className="ep-icon" style={bg_color['drug']}><i className="fa fa-3x fa-rotate-left" style={{color: "white"}}/></div>,
'drugsfda': <div className="ep-icon" style={bg_color['drug']}><i className="fa fa-3x fa-at" style={{color: "white"}}/></div>
'drugsfda': <div className="ep-icon" style={bg_color['drug']}><i className="fa fa-3x fa-at" style={{color: "white"}}/></div>,
'remsspl': <div className="ep-icon" style={bg_color['drug']}><i className="fa fa-3x fa-bar-chart" style={{color: "white"}}/></div>
},
'other': {
'nsde': <div className="ep-icon" style={bg_color['other']}><i className="fa fa-3x fa-database" style={{color: "white"}}/></div>,
Expand Down Expand Up @@ -166,7 +169,8 @@ const EndpointBox = (props: tPROPS) => {
'label': '/apis/drug/label/',
'ndc': '/apis/drug/ndc/',
'enforcement': '/apis/drug/enforcement/',
'drugsfda': '/apis/drug/drugsfda/'
'drugsfda': '/apis/drug/drugsfda/',
'remsspl': '/apis/drug/remsspl/'
},
'other': {
'nsde': '/apis/other/nsde/',
Expand Down
3 changes: 3 additions & 0 deletions src/components/FieldDownload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const pdfDownloadMap: Object = Object.freeze({
'drugndc': '/fields/drugndc_reference.pdf',
'drugenforcement': '/fields/drugenforcement_reference.pdf',
'drugsfda': '/fields/drugsfda_reference.pdf',
'drugremsspl': '/fields/drugremsspl_reference.pdf',
'deviceevent': '/fields/deviceevent_reference.pdf',
'devicerecall': '/fields/devicerecall_reference.pdf',
'deviceclass': '/fields/deviceclass_reference.pdf',
Expand All @@ -33,6 +34,7 @@ const xlsxDownloadMap: Object = Object.freeze({
'drugndc': '/fields/drugndc_reference.xlsx',
'drugenforcement': '/fields/drugenforcement_reference.xlsx',
'drugsfda': '/fields/drugsfda_reference.xlsx',
'drugremsspl': '/fields/drugremsspl_reference.xlsx',
'deviceevent': '/fields/deviceevent_reference.xlsx',
'devicerecall': '/fields/devicerecall_reference.xlsx',
'deviceclass': '/fields/deviceclass_reference.xlsx',
Expand All @@ -56,6 +58,7 @@ const yamlDownloadMap: Object = Object.freeze({
'drugndc': '/fields/drugndc.yaml',
'drugenforcement': '/fields/drugenforcement.yaml',
'drugsfda': '/fields/drugsfda.yaml',
'drugremsspl': '/fields/drugremsspl.yaml',
'deviceevent': '/fields/deviceevent.yaml',
'devicerecall': '/fields/devicerecall.yaml',
'deviceclass': '/fields/deviceclass.yaml',
Expand Down
5 changes: 4 additions & 1 deletion src/components/FieldsHarmonization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import drugenforcement from '../constants/fields/drugenforcement.yaml'
import druglabel from '../constants/fields/druglabel.yaml'
import drugndc from '../constants/fields/drugndc.yaml'
import drugsfda from '../constants/fields/drugsfda.yaml'
import drugremsspl from '../constants/fields/drugremsspl.yaml'
import Values from './RenderContentObject/Values'

import '../css/components/FieldsHarmonization.scss'
Expand Down Expand Up @@ -75,7 +76,8 @@ class FieldsHarmonization extends React.Component {
drugdrugsfda: drugsfda,
drugenforcement: drugenforcement,
druglabel: druglabel,
drugndc: drugndc
drugndc: drugndc,
drugremsspl: drugremsspl
}

let field_name = dataTip[0]
Expand Down Expand Up @@ -195,6 +197,7 @@ class FieldsHarmonization extends React.Component {
'drugsfda': 'Drugs@FDA',
'label': 'Label',
'ndc': 'NDC',
'remsspl': 'REMS SPL',
'nsde': 'NSDE'
}

Expand Down
10 changes: 7 additions & 3 deletions src/components/RenderContentObject/KeyFacts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const KeyFacts = (props: tPROPS) => {
'label': 'FDA SPL files',
Comment thread
violetcrestedwren marked this conversation as resolved.
Outdated
'ndc': 'NDC Directory',
'enforcement': 'FDA Recall Enterprise System (RES)',
'drugsfda': 'Drugs@FDA'
'drugsfda': 'Drugs@FDA',
'remsspl': 'REMS SPL'
},
'other': {
'nsde': 'NDC SPL Data Elements',
Expand Down Expand Up @@ -74,7 +75,8 @@ const KeyFacts = (props: tPROPS) => {
'label': '/data/spl/',
'ndc': '/data/ndc/',
'enforcement': '/data/res/',
'drugsfda': '/data/drugsfda/'
'drugsfda': '/data/drugsfda/',
'remsspl': '/data/remsspl/'
},
'other': {
'nsde': '/apis/other/nsde/',
Expand Down Expand Up @@ -110,7 +112,8 @@ const KeyFacts = (props: tPROPS) => {
'label': 'The bulk of the data is from June 2009 (when labeling was first posted publicly in the SPL format) to the present. However, there are a small number of records from earlier than mid-2009.',
'ndc': 'Present',
'enforcement': '2004 to present',
'drugsfda': '1939 to present'
'drugsfda': '1939 to present',
'remsspl': '2007 to present'
},
'other': {
'nsde': '2009 to present',
Expand Down Expand Up @@ -147,6 +150,7 @@ const KeyFacts = (props: tPROPS) => {
'ndc': 'Daily',
'enforcement': 'Weekly',
'drugsfda': 'Weekly',
'remsspl': 'Weekly'
},
'other': {
'nsde': 'Daily',
Expand Down
2 changes: 1 addition & 1 deletion src/constants/api.jsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Loading