Docs / Guides

Records and provenance

A record is one entry of one official source, as the publisher describes it, with the provenance you need to cite it.

The record object

country string
Two-letter country code of the source.
sourceId string
The source the record comes from, such as it.aifa.packages.
id string
The record’s identity within its source. Stable across collections.
kind string
The kind of record within the source, such as packages, ingredients or veterinary-medicines.
name string
The record’s display name: its first name.
names string[]
Every name the record can be found by, from its own fields.
identifiers object[]
Typed identifiers as { scheme, value }, such as aic, cn, ndc-package or din. Values are always strings.
data object
The normalized fields of the source, plus useDomain and targetSpecies with their evidence.
region string | null
A sub-national region when the source is regional, otherwise null.
retrievedAt string
ISO 8601 time the record was collected from its source.
sourceUrl string
The official dataset the record was collected from.
licence object
The source’s licence: id, url and the attribution text to display.
limitations string[]
What the source does not establish, such as current marketing or patient eligibility.

Sources stay independent

Different sources may describe the same medicine. Medifontis never merges records or relates them by name; connect them yourself through identifiers such as an ATC code or a national code when the sources publish them.

Identifiers

Identifiers are typed: the scheme says what the value is, and values are always strings, so leading zeros survive. Each source publishes its own schemes; the Search guide lists those of this country.

Provenance

  • sourceUrl links the official dataset the record was collected from.
  • retrievedAt is when Medifontis collected it.
  • licence names the publisher’s terms and the attribution to show.
  • limitations lists what the source does not establish, such as current availability.

What a record does not tell you

Retrieve a record again

To refresh a record you saved, read it by its country, sourceId and id with GET /v1/drugs/record. It answers 404 when the source no longer publishes the record.

GET /v1/drugs/record
curl -G https://api.medifontis.com/v1/drugs/record \
  -H "Authorization: Bearer $MEDIFONTIS_API_KEY" \
  --data-urlencode "country=fr" \
  --data-urlencode "sourceId=fr.ansm.bdpm" \
  --data-urlencode "id=fr:ansm:registrations:60234100"