Switch dataset (17)
Datasets / Healthcare & Pharma / fda_shortages_pit_v1

FDA Drug Shortages & Discontinuations

Package-level U.S. drug shortage and discontinuation listings from openFDA, preserving earlier recovery estimates and status changes mapped to parent pharma companies.

Rows
1,549 rows (100-row sample)
File size (ZSTD)
64.1 KiB (65,669 bytes)
Event dates (event_period_end_utc)
2012-01-01T00:00:00Z
2026-11-24T00:00:00Z
Release dates (known_time_utc)
2023-04-28T23:59:59Z
2026-11-24T23:59:59Z

SHA-256: e01dc06fd94e8125d4803f1ce5d9d9ee76b69b52fbd33505a121223b771da1b1 · Protected URL: https://bitemporal.dev/v1/datasets/fda_shortages_pit_v1.parquet

On this page: Sample rows Query snippets Schema (27 columns) Envelope reference

Sample rows

First five rows from this file showing event dates beside public release times.

event_period_end_utc: event date known_time_utc: first public release Delay shows time between them
package_ndcevent_period_end_utcknown_time_utcDelayRevisionEntityshortage_statusupdate_type
0338-0004-022023-04-28T00:00:00Z2026-11-18T23:59:59Z+1300d 23hOriginal r0BAX (CIK_0000010456)CURRENTREVISED
0338-0004-032023-04-28T00:00:00Z2026-11-18T23:59:59Z+1300d 23hOriginal r0BAX (CIK_0000010456)CURRENTREVERIFIED
0338-0004-042023-04-28T00:00:00Z2026-11-18T23:59:59Z+1300d 23hOriginal r0BAX (CIK_0000010456)CURRENTREVERIFIED
0338-0017-022022-02-14T00:00:00Z2026-11-18T23:59:59Z+1738d 23hOriginal r0BAX (CIK_0000010456)CURRENTREVERIFIED
0338-0017-032022-02-14T00:00:00Z2026-11-18T23:59:59Z+1738d 23hOriginal r0BAX (CIK_0000010456)CURRENTREVERIFIED

Query from DuckDB, Polars, or curl

HTTP 206 range reads · free samples
-- Query the 100-row sample directly over HTTPS
INSTALL httpfs;
LOAD httpfs;
SELECT COUNT(*), MIN(event_period_end_utc), MAX(known_time_utc)
FROM 'https://bitemporal.dev/v1/sample/fda_shortages_pit_v1.parquet';

-- Query the full file (1,549 rows) with a pass key
CREATE OR REPLACE SECRET bt_auth (TYPE HTTP, BEARER_TOKEN 'bt_live_your_token');
SELECT * FROM 'https://bitemporal.dev/v1/datasets/fda_shortages_pit_v1.parquet' LIMIT 25;
# Scan the 100-row sample with Polars
import polars as pl

sample_df = (
    pl.scan_parquet("https://bitemporal.dev/v1/sample/fda_shortages_pit_v1.parquet")
    .select(["event_period_end_utc", "known_time_utc", "entity_id", "match_status"])
    .limit(10)
    .collect()
)

# Read the full file (1,549 rows) with your API key
full_df = pl.scan_parquet(
    "https://bitemporal.dev/v1/datasets/fda_shortages_pit_v1.parquet",
    storage_options={"Authorization": "Bearer bt_live_your_token"},
).collect()
# Check byte-range support on the sample file
curl -i -r 0-3 "https://bitemporal.dev/v1/sample/fda_shortages_pit_v1.parquet"

# Download the 100-row sample file
curl -fSL -o sample.parquet "https://bitemporal.dev/v1/sample/fda_shortages_pit_v1.parquet"

# Download the full file (1,549 rows)
curl -fSL -H "Authorization: Bearer bt_live_your_token" -o dataset.parquet "https://bitemporal.dev/v1/datasets/fda_shortages_pit_v1.parquet"

Column schema (27 columns)

# Column Parquet type Nullability Role
1 package_ndc string Required Dataset field
2 event_period_end_utc timestamp[ms, tz=UTC] Required Event date (UTC)
3 known_time_utc timestamp[ms, tz=UTC] Required First public release (UTC)
4 initial_known_time_utc timestamp[ms, tz=UTC] Required Revision history
5 prior_known_time_utc timestamp[ms, tz=UTC] Optional Revision history
6 revision_seq uint16 Required Revision history
7 record_op string Required Revision history
8 vintage_source string Required Revision history
9 payload_sha256 string Required Revision history
10 generic_name string Optional Dataset field
11 manufacturer_name string Optional Dataset field
12 shortage_status string Optional Dataset field
13 update_type string Optional Dataset field
14 availability_note string Optional Dataset field
15 shortage_reason string Optional Dataset field
16 therapeutic_category string Optional Dataset field
17 entity_id string Required Entity resolution
18 match_status string Required Entity resolution
19 pit_primary_lei string Optional Entity resolution
20 pit_primary_figi string Optional Entity resolution
21 pit_primary_cik string Optional Entity resolution
22 pit_primary_ticker string Optional Entity resolution
23 pit_primary_ownership_share float Required Entity resolution
24 entity_mapping_known_time_utc timestamp[ms, tz=UTC] Required Entity resolution
25 event_year int16 Required Dataset field
26 event_quarter int8 Required Dataset field
27 pub_date date32[day] Required Dataset field