/pmda/drugs/versions

POST /api/pmda/drugs/versions

Price: 1 credit

List the versions of one Japanese package insert that the register still holds, up to the current one, with the document format the regulator holds each version in and whether an XML and a PDF exist for it. Version numbers the register no longer holds are skipped, so the list can start above 1 or miss a number in the middle.

How to use it

Call this before pmda/drugs/package_insert when a historical version matters: versions published before the register moved to XML carry `document_format` SGML, and the oldest carry no machine-readable document at all. `xml_url` and `pdf_url` are filled only on the current version, because the register publishes no addressable document for an older one — `has_xml` and `has_pdf` record what exists, not what can be fetched: every route the register's own interface builds for a historical version answers with an error page, so only the current version's document can actually be retrieved. Read `version` on each row rather than the row order to build a timeline: the register answers for some past version numbers that it no longer holds and those are dropped, so a run is complete only when the numbers run 1..current with none missing.

Parameters

Request body

Response

Errors

Response headers