changedOutput schema / properties / data / oneOf
Previous value: -[
- {
- "additionalProperties": {},
- "properties": {
- "first_seen_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "history": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": {},
- "properties": {
- "change": {
- "const": "new",
- "type": "string"
- },
- "date": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "status": {
- "anyOf": [
- {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "date",
- "change",
- "status"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "change": {
- "const": "status_change",
- "type": "string"
- },
- "date": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "from": {
- "anyOf": [
- {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "to": {
- "anyOf": [
- {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "date",
- "change",
- "from",
- "to"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "change": {
- "const": "return_date_change",
- "type": "string"
- },
- "date": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "from_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "to_raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "date",
- "change",
- "from_raw",
- "to_raw"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "change": {
- "const": "delisted",
- "type": "string"
- },
- "date": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- }
- },
- "required": [
- "date",
- "change"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "change": {
- "const": "relisted",
- "type": "string"
- },
- "date": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- }
- },
- "required": [
- "date",
- "change"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "kind": {
- "const": "availability",
- "type": "string"
- },
- "linked_medicines": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "cis": {
- "pattern": "^\\d{8}$",
- "type": "string"
- },
- "match_confidence": {
- "type": "number"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "cis",
- "name",
- "match_confidence"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "linked_medicines_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "listed": {
- "type": "boolean"
- },
- "medicine": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "cis": {
- "pattern": "^\\d{8}$",
- "type": "string"
- },
- "is_mitm": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "cis",
- "name",
- "is_mitm"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "other_shortage_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "possibly_related_shortages": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "ansm_updated_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ansm_url": {
- "format": "uri",
- "type": "string"
- },
- "dci": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_return": {
- "additionalProperties": {},
- "properties": {
- "earliest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "latest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "likely_overdue": {
- "const": true,
- "type": "boolean"
- },
- "part": {
- "anyOf": [
- {
- "enum": [
- "debut",
- "mi",
- "fin"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "passed": {
- "type": "boolean"
- },
- "precision": {
- "anyOf": [
- {
- "enum": [
- "day",
- "month",
- "quarter",
- "year",
- "season"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "earliest",
- "latest",
- "precision",
- "part",
- "raw",
- "passed"
- ],
- "type": "object"
- },
- "match_confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "match_note": {
- "const": "probable match",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "returned_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "enum": [
- "ville",
- "hopital",
- "ville_hopital",
- "inconnu"
- ],
- "type": "string"
- },
- "scope_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "shortage_id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- "status_label_fr": {
- "type": "string"
- }
- },
- "required": [
- "shortage_id",
- "name",
- "dci",
- "status",
- "status_label_fr",
- "scope",
- "scope_raw",
- "expected_return",
- "returned_at",
- "ansm_updated_at",
- "ansm_url",
- "match_confidence"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "shortage": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "ansm_updated_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ansm_url": {
- "format": "uri",
- "type": "string"
- },
- "dci": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_return": {
- "additionalProperties": {},
- "properties": {
- "earliest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "latest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "likely_overdue": {
- "const": true,
- "type": "boolean"
- },
- "part": {
- "anyOf": [
- {
- "enum": [
- "debut",
- "mi",
- "fin"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "passed": {
- "type": "boolean"
- },
- "precision": {
- "anyOf": [
- {
- "enum": [
- "day",
- "month",
- "quarter",
- "year",
- "season"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "earliest",
- "latest",
- "precision",
- "part",
- "raw",
- "passed"
- ],
- "type": "object"
- },
- "match_confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "match_note": {
- "const": "probable match",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "returned_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "enum": [
- "ville",
- "hopital",
- "ville_hopital",
- "inconnu"
- ],
- "type": "string"
- },
- "scope_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "shortage_id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- "status_label_fr": {
- "type": "string"
- }
- },
- "required": [
- "shortage_id",
- "name",
- "dci",
- "status",
- "status_label_fr",
- "scope",
- "scope_raw",
- "expected_return",
- "returned_at",
- "ansm_updated_at",
- "ansm_url",
- "match_confidence"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "status_since": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "status_since_source": {
- "anyOf": [
- {
- "enum": [
- "ansm",
- "service"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "kind",
- "medicine",
- "linked_medicines",
- "linked_medicines_total",
- "listed",
- "shortage",
- "first_seen_at",
- "status_since",
- "status_since_source",
- "history",
- "other_shortage_ids",
- "possibly_related_shortages"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "kind": {
- "const": "aggregated",
- "type": "string"
- },
- "medicines": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "cis": {
- "pattern": "^\\d{8}$",
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "cis",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "possibly_related_shortages": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "ansm_updated_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ansm_url": {
- "format": "uri",
- "type": "string"
- },
- "dci": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_return": {
- "additionalProperties": {},
- "properties": {
- "earliest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "latest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "likely_overdue": {
- "const": true,
- "type": "boolean"
- },
- "part": {
- "anyOf": [
- {
- "enum": [
- "debut",
- "mi",
- "fin"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "passed": {
- "type": "boolean"
- },
- "precision": {
- "anyOf": [
- {
- "enum": [
- "day",
- "month",
- "quarter",
- "year",
- "season"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "earliest",
- "latest",
- "precision",
- "part",
- "raw",
- "passed"
- ],
- "type": "object"
- },
- "match_confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "match_note": {
- "const": "probable match",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "returned_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "enum": [
- "ville",
- "hopital",
- "ville_hopital",
- "inconnu"
- ],
- "type": "string"
- },
- "scope_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "shortage_id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- "status_label_fr": {
- "type": "string"
- }
- },
- "required": [
- "shortage_id",
- "name",
- "dci",
- "status",
- "status_label_fr",
- "scope",
- "scope_raw",
- "expected_return",
- "returned_at",
- "ansm_updated_at",
- "ansm_url",
- "match_confidence"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "query": {
- "type": "string"
- },
- "shortage": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "ansm_updated_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ansm_url": {
- "format": "uri",
- "type": "string"
- },
- "dci": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_return": {
- "additionalProperties": {},
- "properties": {
- "earliest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "latest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "likely_overdue": {
- "const": true,
- "type": "boolean"
- },
- "part": {
- "anyOf": [
- {
- "enum": [
- "debut",
- "mi",
- "fin"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "passed": {
- "type": "boolean"
- },
- "precision": {
- "anyOf": [
- {
- "enum": [
- "day",
- "month",
- "quarter",
- "year",
- "season"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "earliest",
- "latest",
- "precision",
- "part",
- "raw",
- "passed"
- ],
- "type": "object"
- },
- "match_confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "match_note": {
- "const": "probable match",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "returned_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "enum": [
- "ville",
- "hopital",
- "ville_hopital",
- "inconnu"
- ],
- "type": "string"
- },
- "scope_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "shortage_id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- "status_label_fr": {
- "type": "string"
- }
- },
- "required": [
- "shortage_id",
- "name",
- "dci",
- "status",
- "status_label_fr",
- "scope",
- "scope_raw",
- "expected_return",
- "returned_at",
- "ansm_updated_at",
- "ansm_url",
- "match_confidence"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "query",
- "total",
- "shortage",
- "medicines",
- "possibly_related_shortages"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "best_match_total": {
- "maximum": 9007199254740991,
- "minimum": 1,
- "type": "integer"
- },
- "candidates": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "atc_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "best_match": {
- "const": true,
- "type": "boolean"
- },
- "cis": {
- "pattern": "^\\d{8}$",
- "type": "string"
- },
- "holder": {
- "type": [
- "string",
- "null"
- ]
- },
- "is_mitm": {
- "type": "boolean"
- },
- "marketing_status": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "shortage_status": {
- "anyOf": [
- {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "cis",
- "name",
- "holder",
- "marketing_status",
- "shortage_status",
- "is_mitm",
- "atc_code"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "capped": {
- "type": "boolean"
- },
- "kind": {
- "const": "candidates",
- "type": "string"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "total",
- "capped",
- "candidates"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "did_you_mean": {
- "type": [
- "string",
- "null"
- ]
- },
- "kind": {
- "const": "not_found",
- "type": "string"
- },
- "possibly_related_shortages": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "ansm_updated_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ansm_url": {
- "format": "uri",
- "type": "string"
- },
- "dci": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_return": {
- "additionalProperties": {},
- "properties": {
- "earliest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "latest": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "likely_overdue": {
- "const": true,
- "type": "boolean"
- },
- "part": {
- "anyOf": [
- {
- "enum": [
- "debut",
- "mi",
- "fin"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "passed": {
- "type": "boolean"
- },
- "precision": {
- "anyOf": [
- {
- "enum": [
- "day",
- "month",
- "quarter",
- "year",
- "season"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "raw": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "earliest",
- "latest",
- "precision",
- "part",
- "raw",
- "passed"
- ],
- "type": "object"
- },
- "match_confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "match_note": {
- "const": "probable match",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "returned_at": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "enum": [
- "ville",
- "hopital",
- "ville_hopital",
- "inconnu"
- ],
- "type": "string"
- },
- "scope_raw": {
- "type": [
- "string",
- "null"
- ]
- },
- "shortage_id": {
- "type": "string"
- },
- "status": {
- "enum": [
- "rupture",
- "tension",
- "arret_commercialisation",
- "remise_a_disposition",
- "autre"
- ],
- "type": "string"
- },
- "status_label_fr": {
- "type": "string"
- }
- },
- "required": [
- "shortage_id",
- "name",
- "dci",
- "status",
- "status_label_fr",
- "scope",
- "scope_raw",
- "expected_return",
- "returned_at",
- "ansm_updated_at",
- "ansm_url",
- "match_confidence"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "kind",
- "possibly_related_shortages",
- "did_you_mean"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "properties": {
+ "first_seen_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "history": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "change": {
+ "const": "new",
+ "type": "string"
+ },
+ "date": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "status": {
+ "anyOf": [
+ {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "date",
+ "change",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "change": {
+ "const": "status_change",
+ "type": "string"
+ },
+ "date": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "from": {
+ "anyOf": [
+ {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "to": {
+ "anyOf": [
+ {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "date",
+ "change",
+ "from",
+ "to"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "change": {
+ "const": "return_date_change",
+ "type": "string"
+ },
+ "date": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "from_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "date",
+ "change",
+ "from_raw",
+ "to_raw"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "change": {
+ "const": "delisted",
+ "type": "string"
+ },
+ "date": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "date",
+ "change"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "change": {
+ "const": "relisted",
+ "type": "string"
+ },
+ "date": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "date",
+ "change"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "kind": {
+ "const": "availability",
+ "type": "string"
+ },
+ "linked_medicines": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "match_confidence": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cis",
+ "name",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "linked_medicines_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "listed": {
+ "type": "boolean"
+ },
+ "medicine": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "is_mitm": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cis",
+ "name",
+ "is_mitm"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "other_shortage_ids": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "possibly_related_shortages": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "ansm_updated_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ansm_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "dci": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_return": {
+ "additionalProperties": {},
+ "properties": {
+ "earliest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likely_overdue": {
+ "const": true,
+ "type": "boolean"
+ },
+ "part": {
+ "anyOf": [
+ {
+ "enum": [
+ "debut",
+ "mi",
+ "fin"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "passed": {
+ "type": "boolean"
+ },
+ "precision": {
+ "anyOf": [
+ {
+ "enum": [
+ "day",
+ "month",
+ "quarter",
+ "year",
+ "season"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "earliest",
+ "latest",
+ "precision",
+ "part",
+ "raw",
+ "passed"
+ ],
+ "type": "object"
+ },
+ "match_confidence": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "match_note": {
+ "const": "probable match",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "returned_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "ville",
+ "hopital",
+ "ville_hopital",
+ "inconnu"
+ ],
+ "type": "string"
+ },
+ "scope_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "shortage_id": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ "status_label_fr": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "shortage_id",
+ "name",
+ "dci",
+ "status",
+ "status_label_fr",
+ "scope",
+ "scope_raw",
+ "expected_return",
+ "returned_at",
+ "ansm_updated_at",
+ "ansm_url",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "shortage": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "ansm_updated_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ansm_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "dci": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_return": {
+ "additionalProperties": {},
+ "properties": {
+ "earliest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likely_overdue": {
+ "const": true,
+ "type": "boolean"
+ },
+ "part": {
+ "anyOf": [
+ {
+ "enum": [
+ "debut",
+ "mi",
+ "fin"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "passed": {
+ "type": "boolean"
+ },
+ "precision": {
+ "anyOf": [
+ {
+ "enum": [
+ "day",
+ "month",
+ "quarter",
+ "year",
+ "season"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "earliest",
+ "latest",
+ "precision",
+ "part",
+ "raw",
+ "passed"
+ ],
+ "type": "object"
+ },
+ "match_confidence": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "match_note": {
+ "const": "probable match",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "returned_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "ville",
+ "hopital",
+ "ville_hopital",
+ "inconnu"
+ ],
+ "type": "string"
+ },
+ "scope_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "shortage_id": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ "status_label_fr": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "shortage_id",
+ "name",
+ "dci",
+ "status",
+ "status_label_fr",
+ "scope",
+ "scope_raw",
+ "expected_return",
+ "returned_at",
+ "ansm_updated_at",
+ "ansm_url",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status_since": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status_since_source": {
+ "anyOf": [
+ {
+ "enum": [
+ "ansm",
+ "service"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "kind",
+ "medicine",
+ "linked_medicines",
+ "linked_medicines_total",
+ "listed",
+ "shortage",
+ "first_seen_at",
+ "status_since",
+ "status_since_source",
+ "history",
+ "other_shortage_ids",
+ "possibly_related_shortages"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "kind": {
+ "const": "aggregated",
+ "type": "string"
+ },
+ "medicines": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cis",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "possibly_related_shortages": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "ansm_updated_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ansm_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "dci": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_return": {
+ "additionalProperties": {},
+ "properties": {
+ "earliest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likely_overdue": {
+ "const": true,
+ "type": "boolean"
+ },
+ "part": {
+ "anyOf": [
+ {
+ "enum": [
+ "debut",
+ "mi",
+ "fin"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "passed": {
+ "type": "boolean"
+ },
+ "precision": {
+ "anyOf": [
+ {
+ "enum": [
+ "day",
+ "month",
+ "quarter",
+ "year",
+ "season"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "earliest",
+ "latest",
+ "precision",
+ "part",
+ "raw",
+ "passed"
+ ],
+ "type": "object"
+ },
+ "match_confidence": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "match_note": {
+ "const": "probable match",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "returned_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "ville",
+ "hopital",
+ "ville_hopital",
+ "inconnu"
+ ],
+ "type": "string"
+ },
+ "scope_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "shortage_id": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ "status_label_fr": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "shortage_id",
+ "name",
+ "dci",
+ "status",
+ "status_label_fr",
+ "scope",
+ "scope_raw",
+ "expected_return",
+ "returned_at",
+ "ansm_updated_at",
+ "ansm_url",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "query": {
+ "type": "string"
+ },
+ "shortage": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "ansm_updated_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ansm_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "dci": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_return": {
+ "additionalProperties": {},
+ "properties": {
+ "earliest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likely_overdue": {
+ "const": true,
+ "type": "boolean"
+ },
+ "part": {
+ "anyOf": [
+ {
+ "enum": [
+ "debut",
+ "mi",
+ "fin"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "passed": {
+ "type": "boolean"
+ },
+ "precision": {
+ "anyOf": [
+ {
+ "enum": [
+ "day",
+ "month",
+ "quarter",
+ "year",
+ "season"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "earliest",
+ "latest",
+ "precision",
+ "part",
+ "raw",
+ "passed"
+ ],
+ "type": "object"
+ },
+ "match_confidence": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "match_note": {
+ "const": "probable match",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "returned_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "ville",
+ "hopital",
+ "ville_hopital",
+ "inconnu"
+ ],
+ "type": "string"
+ },
+ "scope_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "shortage_id": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ "status_label_fr": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "shortage_id",
+ "name",
+ "dci",
+ "status",
+ "status_label_fr",
+ "scope",
+ "scope_raw",
+ "expected_return",
+ "returned_at",
+ "ansm_updated_at",
+ "ansm_url",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "query",
+ "total",
+ "shortage",
+ "medicines",
+ "possibly_related_shortages"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "best_match_total": {
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "candidates": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "atc_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "best_match": {
+ "const": true,
+ "type": "boolean"
+ },
+ "cis": {
+ "pattern": "^\\d{8}$",
+ "type": "string"
+ },
+ "holder": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "is_mitm": {
+ "type": "boolean"
+ },
+ "marketing_status": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "shortage_status": {
+ "anyOf": [
+ {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "cis",
+ "name",
+ "holder",
+ "marketing_status",
+ "shortage_status",
+ "is_mitm",
+ "atc_code"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "capped": {
+ "type": "boolean"
+ },
+ "in_shortage_total": {
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "kind": {
+ "const": "candidates",
+ "type": "string"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "total",
+ "capped",
+ "candidates"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "did_you_mean": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "kind": {
+ "const": "not_found",
+ "type": "string"
+ },
+ "possibly_related_shortages": {
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "ansm_updated_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ansm_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "dci": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_return": {
+ "additionalProperties": {},
+ "properties": {
+ "earliest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latest": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "likely_overdue": {
+ "const": true,
+ "type": "boolean"
+ },
+ "part": {
+ "anyOf": [
+ {
+ "enum": [
+ "debut",
+ "mi",
+ "fin"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "passed": {
+ "type": "boolean"
+ },
+ "precision": {
+ "anyOf": [
+ {
+ "enum": [
+ "day",
+ "month",
+ "quarter",
+ "year",
+ "season"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "earliest",
+ "latest",
+ "precision",
+ "part",
+ "raw",
+ "passed"
+ ],
+ "type": "object"
+ },
+ "match_confidence": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "match_note": {
+ "const": "probable match",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "returned_at": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "ville",
+ "hopital",
+ "ville_hopital",
+ "inconnu"
+ ],
+ "type": "string"
+ },
+ "scope_raw": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "shortage_id": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "rupture",
+ "tension",
+ "arret_commercialisation",
+ "remise_a_disposition",
+ "autre"
+ ],
+ "type": "string"
+ },
+ "status_label_fr": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "shortage_id",
+ "name",
+ "dci",
+ "status",
+ "status_label_fr",
+ "scope",
+ "scope_raw",
+ "expected_return",
+ "returned_at",
+ "ansm_updated_at",
+ "ansm_url",
+ "match_confidence"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "possibly_related_shortages",
+ "did_you_mean"
+ ],
+ "type": "object"
+ }
+]