{"id":"legemiddelmangel","name":"Medicine shortages (DMP)","description":"Norway's medicine shortage list, scraped from the table embedded in the DMP shortage page, with status, ATC code, supplier and shortage period.","documentation":"https://www.dmp.no/forsyningssikkerhet/legemiddelmangel/oversikt-over-legemiddelmangel---for-apotek","operations":[{"name":"search_shortages","description":"Search Norway's medicine shortage list from DMP. Signature: search_shortages(query: string, optional, default None; status: string, optional, default None; atc_code: string, optional, default None; notified_since: string, optional, default None; limit: integer, items, optional, default 50; offset: integer, items, optional, default 0).","signature":"search_shortages(query: string, optional, default None; status: string, optional, default None; atc_code: string, optional, default None; notified_since: string, optional, default None; limit: integer, items, optional, default 50; offset: integer, items, optional, default 0)","parameters":[{"name":"query","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Case-insensitive substring over medicine name, active ingredients, company and item number, e.g. \"Emend\".","unit":null,"display_type":"string"},{"name":"status","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Only shortages with this status, one of \"P\u00e5g\u00e5ende\", \"Kommende\", \"Avsluttet\" or \"Midlertidig utg\u00e5tt/avregistrert\" (also the English ongoing, upcoming, ended, withdrawn).","unit":null,"display_type":"string"},{"name":"atc_code","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Case-insensitive ATC prefix, e.g. \"N02\" for opioids and other analgesics, \"A04\" for antiemetics.","unit":null,"display_type":"string"},{"name":"notified_since","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Only shortages notified on or after this date (YYYY-MM-DD, the Meldingsdato column).","unit":null,"display_type":"string"},{"name":"limit","type":"integer","schema":{"type":"integer"},"required":false,"default":50,"description":"Max shortages to return, 1-500 (default 50). Unit: items.","unit":"items","display_type":"integer"},{"name":"offset","type":"integer","schema":{"type":"integer"},"required":false,"default":0,"description":"Results to skip before the first one returned (default 0); with limit, pages through every match. Unit: items.","unit":"items","display_type":"integer"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/search_shortages?query={query}&status={status}&atc_code={atc_code}&notified_since={notified_since}&limit=50&offset=0","output_fields":["as_of","count","returned","shortages","shortages[].name","shortages[].item_number","shortages[].atc_code","shortages[].active_ingredients","shortages[].company","shortages[].reason","shortages[].status","shortages[].notified","shortages[].updated","shortages[].shortage_from","shortages[].shortage_to","shortages[].measures","shortages[].info","shortages[].foreign_packs_decision","shortages[].foreign_packs_until","shortages[].foreign_packs_reimbursement"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["shortages[].name"]},"description_language":"en","documentation":"Search Norway's medicine shortage list from DMP.\n\nArgs:\n    query: Case-insensitive substring over medicine name, active\n        ingredients, company and item number, e.g. \"Emend\".\n    status: Only shortages with this status, one of \"P\u00e5g\u00e5ende\",\n        \"Kommende\", \"Avsluttet\" or \"Midlertidig utg\u00e5tt/avregistrert\"\n        (also the English ongoing, upcoming, ended, withdrawn).\n    atc_code: Case-insensitive ATC prefix, e.g. \"N02\" for opioids and\n        other analgesics, \"A04\" for antiemetics.\n    notified_since: Only shortages notified on or after this date\n        (YYYY-MM-DD, the Meldingsdato column).\n    limit: Max shortages to return, 1-500 (default 50).\n    offset: Results to skip before the first one returned (default 0); with\n        limit, pages through every match.\n\nReturns a dict with `as_of` (the date DMP last refreshed the list,\nYYYY-MM-DD), `count` (all matches before the cap), `returned` and\n`shortages`, newest notification first. Each shortage has name,\nitem_number, atc_code, active_ingredients, company, reason, status,\nnotified, updated, shortage_from, shortage_to, measures, info and, for\nforeign pack approvals, foreign_packs_decision, foreign_packs_until and\nforeign_packs_reimbursement. Empty fields are omitted.\n\nData: Direktoratet for medisinske produkter (DMP).\n\nSignature: search_shortages(query: string, optional, default None; status: string, optional, default None; atc_code: string, optional, default None; notified_since: string, optional, default None; limit: integer, items, optional, default 50; offset: integer, items, optional, default 0).","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/legemiddelmangel/search_shortages/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/legemiddelmangel/search_shortages/?query={query}&status={status}&atc_code={atc_code}&notified_since={notified_since}&limit=50&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/search_shortages","response_schema":{"type":"object","properties":{"as_of":{"type":["string","null"]},"count":{"type":"integer"},"returned":{"type":"integer"},"shortages":{"type":"array","items":{"type":"object","properties":{"name":{"type":["string","null"]},"item_number":{"type":["string","null"]},"atc_code":{"type":["string","null"]},"active_ingredients":{"type":["string","null"]},"company":{"type":["string","null"]},"reason":{"type":["string","null"]},"status":{"type":["string","null"]},"notified":{"type":["string","null"],"format":"date"},"updated":{"type":["string","null"],"format":"date"},"shortage_from":{"type":["string","null"],"format":"date"},"shortage_to":{"type":["string","null"],"format":"date"},"measures":{"type":["string","null"]},"info":{"type":["string","null"]},"foreign_packs_decision":{"type":["string","null"],"format":"date"},"foreign_packs_until":{"type":["string","null"],"format":"date"},"foreign_packs_reimbursement":{"type":["string","null"]}},"additionalProperties":false}}},"additionalProperties":false,"required":["as_of","count","returned","shortages"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"intentionally_none","entity_types":[],"description":"No stable cross-source entity projection is defined for this operation; entities is intentionally empty."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/search_shortages/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/search_shortages","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/search_shortages?query={query}&status={status}&atc_code={atc_code}&notified_since={notified_since}&limit=50&offset=0","response_example":{"source":"legemiddelmangel","operation":"search_shortages","parameters":{"query":"example value","status":"example value","atc_code":"example value","notified_since":"example value","limit":50,"offset":0},"data":{"as_of":"example value","count":1,"returned":1,"shortages":[{"name":"Example","item_number":"example value","atc_code":"example value","active_ingredients":"example value","company":"example value","reason":"example value","status":"example value","notified":"2026-01-15","updated":"2026-01-15T12:00:00Z","shortage_from":"2026-01-15","shortage_to":"2026-01-15","measures":"example value","info":"example value","foreign_packs_decision":"2026-01-15","foreign_packs_until":"2026-01-15","foreign_packs_reimbursement":"example value"}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"legemiddelmangel","name":"Medicine shortages (DMP)","description":"Norway's medicine shortage list, scraped from the table embedded in the DMP shortage page, with status, ATC code, supplier and shortage period.","cache_ttl_seconds":3600,"documentation":"https://www.dmp.no/forsyningssikkerhet/legemiddelmangel/oversikt-over-legemiddelmangel---for-apotek"}]},"_provenance":{"data":{"source":"legemiddelmangel","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel"},"entities":{"source":"legemiddelmangel","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/search_shortages","source":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel","wiki":"https://allemannsdata.com/wiki/kilder/legemiddelmangel/search_shortages/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}],"operation_schema_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel/{operation}/schema","related_sources":[{"id":"fhi","name":"FHI Statistics","reason":"Public-health statistics on medicine use and availability.","api":"https://allemannsdata.com/wiki/api/v1/kilder/fhi","wiki":"https://allemannsdata.com/wiki/kilder/fhi/"}],"_meta":{"retrieved_at":"2026-10-16T03:59:55Z","language":"en","content_languages":["en"],"sources":[{"id":"legemiddelmangel","name":"Medicine shortages (DMP)","description":"Norway's medicine shortage list, scraped from the table embedded in the DMP shortage page, with status, ATC code, supplier and shortage period.","documentation":"https://www.dmp.no/forsyningssikkerhet/legemiddelmangel/oversikt-over-legemiddelmangel---for-apotek","cache_ttl_seconds":3600}]},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel","names":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel?view=names","compact":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel?view=compact","full":"https://allemannsdata.com/wiki/api/v1/kilder/legemiddelmangel","wiki":"https://allemannsdata.com/wiki/kilder/legemiddelmangel/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}
