Skip to main content
Glama

Get availability

get_availability
Read-onlyIdempotent

Current ANSM shortage status of one medicine, given exactly one of: its CIS code, an ANSM shortage id or a name. Returns the status, the expected return in ANSM's wording, the change history and possibly related entries. A name matching several medicines that share the same listed entry (or none) gets one answer for all of them; otherwise ranked candidates with their total, holder, marketing, shortage and MITM status and ATC code; a misspelled name gets a spelling suggestion. Information only: never use this to recommend a substitute, an alternative or an equivalent medicine, a dosage change or stopping a treatment. Other medicines in the results are not alternatives.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
cisNo8-digit BDPM medicine code (CIS).
nameNoMedicine name; resolved to one CIS or a list of candidates.
shortage_idNoANSM shortage id: the numeric id of an ANSM shortage entry.

Output Schema

NameRequiredDescriptionDefault
dataYes
safetyYes
sourceYes
warningNo
disclaimerYes
coverage_noteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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"
      +  }
      +]
  2. Changed1 schema field changed
    • 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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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": {
      -      "candidates": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "atc_code": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      +      },
      +      "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"
      +  }
      +]
  3. Changed3 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / data / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -          "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": false,
      -            "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": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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": false,
      -    "properties": {
      -      "kind": {
      -        "const": "aggregated",
      -        "type": "string"
      -      },
      -      "medicines": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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": false,
      -    "properties": {
      -      "candidates": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "atc_code": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "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": false,
      -    "properties": {
      -      "did_you_mean": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "kind": {
      -        "const": "not_found",
      -        "type": "string"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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": {
      +      "candidates": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "atc_code": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +  }
      +]
    • changedOutput schema / properties / source / additionalProperties
      Previous value: -falseNew value: +{}
  4. Changed1 schema field changed
    • changedOutput schema / properties / data / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -          "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": false,
      -            "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": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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": false,
      -    "properties": {
      -      "kind": {
      -        "const": "aggregated",
      -        "type": "string"
      -      },
      -      "medicines": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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": false,
      -    "properties": {
      -      "candidates": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "holder": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "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"
      -          ],
      -          "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": false,
      -    "properties": {
      -      "did_you_mean": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "kind": {
      -        "const": "not_found",
      -        "type": "string"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      +    "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +          "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": false,
      +            "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": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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": false,
      +            "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": false,
      +                "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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": false,
      +    "properties": {
      +      "kind": {
      +        "const": "aggregated",
      +        "type": "string"
      +      },
      +      "medicines": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cis": {
      +              "pattern": "^\\d{8}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "cis",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "possibly_related_shortages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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": false,
      +            "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": false,
      +                "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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": false,
      +    "properties": {
      +      "candidates": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "atc_code": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "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": false,
      +    "properties": {
      +      "did_you_mean": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "kind": {
      +        "const": "not_found",
      +        "type": "string"
      +      },
      +      "possibly_related_shortages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +  }
      +]
  5. Changed1 schema field changed
    • changedOutput schema / properties / data / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -          "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": false,
      -            "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": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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": false,
      -    "properties": {
      -      "candidates": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "kind": {
      -        "const": "candidates",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "candidates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "not_found",
      -        "type": "string"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +          "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": false,
      +            "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": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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": false,
      +            "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": false,
      +                "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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": false,
      +    "properties": {
      +      "kind": {
      +        "const": "aggregated",
      +        "type": "string"
      +      },
      +      "medicines": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cis": {
      +              "pattern": "^\\d{8}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "cis",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "possibly_related_shortages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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": false,
      +            "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": false,
      +                "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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": false,
      +    "properties": {
      +      "candidates": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cis": {
      +              "pattern": "^\\d{8}$",
      +              "type": "string"
      +            },
      +            "holder": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "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"
      +          ],
      +          "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": false,
      +    "properties": {
      +      "did_you_mean": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "kind": {
      +        "const": "not_found",
      +        "type": "string"
      +      },
      +      "possibly_related_shortages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +  }
      +]
  6. Changed4 schema fields changed
    • removedInput schema / properties / shortage_id / maxLength
      Removed value: -20
    • removedInput schema / properties / shortage_id / minLength
      Removed value: -1
    • addedInput schema / properties / shortage_id / pattern
      Added value: +"^\\d{1,6}$"
    • changedOutput schema / properties / data / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "match_confidence": {
      -              "type": "number"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name",
      -            "match_confidence"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "listed": {
      -        "type": "boolean"
      -      },
      -      "medicine": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "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": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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",
      -      "listed",
      -      "shortage",
      -      "first_seen_at",
      -      "status_since",
      -      "status_since_source",
      -      "history",
      -      "other_shortage_ids",
      -      "possibly_related_shortages"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "candidates": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "kind": {
      -        "const": "candidates",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "candidates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "not_found",
      -        "type": "string"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +          "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": false,
      +            "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": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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": false,
      +            "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": false,
      +                "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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": false,
      +    "properties": {
      +      "candidates": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cis": {
      +              "pattern": "^\\d{8}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "cis",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "kind": {
      +        "const": "candidates",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "candidates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "not_found",
      +        "type": "string"
      +      },
      +      "possibly_related_shortages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +    ],
      +    "type": "object"
      +  }
      +]
  7. Changed1 schema field changed
    • changedOutput schema / properties / data / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "days_in_current_status": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -              "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": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "match_confidence": {
      -              "type": "number"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name",
      -            "match_confidence"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "listed": {
      -        "type": "boolean"
      -      },
      -      "medicine": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "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": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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": false,
      -            "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": false,
      -                "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"
      -                      }
      -                    ]
      -                  },
      -                  "part": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "debut",
      -                          "mi",
      -                          "fin"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "passed": {
      -                    "type": "boolean"
      -                  },
      -                  "precision": {
      -                    "anyOf": [
      -                      {
      -                        "enum": [
      -                          "day",
      -                          "month",
      -                          "quarter",
      -                          "year"
      -                        ],
      -                        "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"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "medicine",
      -      "linked_medicines",
      -      "listed",
      -      "shortage",
      -      "first_seen_at",
      -      "days_in_current_status",
      -      "history",
      -      "other_shortage_ids",
      -      "possibly_related_shortages"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "candidates": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "cis": {
      -              "pattern": "^\\d{8}$",
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "cis",
      -            "name"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "kind": {
      -        "const": "candidates",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "candidates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "kind": {
      -        "const": "not_found",
      -        "type": "string"
      -      },
      -      "possibly_related_shortages": {
      -        "items": {
      -          "additionalProperties": false,
      -          "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": false,
      -              "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"
      -                    }
      -                  ]
      -                },
      -                "part": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "debut",
      -                        "mi",
      -                        "fin"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "passed": {
      -                  "type": "boolean"
      -                },
      -                "precision": {
      -                  "anyOf": [
      -                    {
      -                      "enum": [
      -                        "day",
      -                        "month",
      -                        "quarter",
      -                        "year"
      -                      ],
      -                      "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"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +              "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": false,
      +          "properties": {
      +            "cis": {
      +              "pattern": "^\\d{8}$",
      +              "type": "string"
      +            },
      +            "match_confidence": {
      +              "type": "number"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "cis",
      +            "name",
      +            "match_confidence"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "listed": {
      +        "type": "boolean"
      +      },
      +      "medicine": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "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": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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": false,
      +            "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": false,
      +                "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"
      +                      }
      +                    ]
      +                  },
      +                  "part": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "debut",
      +                          "mi",
      +                          "fin"
      +                        ],
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "passed": {
      +                    "type": "boolean"
      +                  },
      +                  "precision": {
      +                    "anyOf": [
      +                      {
      +                        "enum": [
      +                          "day",
      +                          "month",
      +                          "quarter",
      +                          "year"
      +                        ],
      +                        "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",
      +      "listed",
      +      "shortage",
      +      "first_seen_at",
      +      "status_since",
      +      "status_since_source",
      +      "history",
      +      "other_shortage_ids",
      +      "possibly_related_shortages"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "candidates": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cis": {
      +              "pattern": "^\\d{8}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "cis",
      +            "name"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "kind": {
      +        "const": "candidates",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "candidates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "not_found",
      +        "type": "string"
      +      },
      +      "possibly_related_shortages": {
      +        "items": {
      +          "additionalProperties": false,
      +          "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": false,
      +              "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"
      +                    }
      +                  ]
      +                },
      +                "part": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "debut",
      +                        "mi",
      +                        "fin"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "passed": {
      +                  "type": "boolean"
      +                },
      +                "precision": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "day",
      +                        "month",
      +                        "quarter",
      +                        "year"
      +                      ],
      +                      "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"
      +    ],
      +    "type": "object"
      +  }
      +]
  8. Changed1 schema field changed
    • changedInput schema / properties / shortage_id / description
      Previous value: -"ANSM shortage id, as returned by the other tools."New value: +"ANSM shortage id: the numeric id of an ANSM shortage entry."
  9. Changed2 schema fields changed
    • addedOutput schema / properties / source / properties / bdpm_imported_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date-time",
      +      "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / source / required
      Previous value: -[
      -  "ansm",
      -  "bdpm",
      -  "ansm_last_ingest",
      -  "bdpm_release"
      -]New value: +[
      +  "ansm",
      +  "bdpm",
      +  "ansm_last_ingest",
      +  "bdpm_release",
      +  "bdpm_imported_at"
      +]
  10. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, closed-world, non-destructive), but the description adds substantial behavior: name resolution semantics, the single-answer-for-shared-entry rule, ranked candidates with total/holder/marketing/shortage/MITM status and ATC code, and spelling suggestions on a miss. Only freshness/rate-limit details are absent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the identifier constraint, then edge cases, then the safety boundary — a sensible order. The middle sentence is a long semicolon chain that takes effort to parse, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still conveys the resolution edge cases an agent must anticipate (shared entries, ambiguous names, misspellings) and the hard 'not a substitute recommendation' boundary. For a three-optional-parameter lookup tool, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a constraint the schema does not encode: 'exactly one of' the three identifiers. With required=0 and no oneOf in the schema, this mutual-exclusivity rule is real added meaning, plus it clarifies what a name input is resolved into.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Current ANSM shortage status of one medicine', plus the three accepted identifiers. It is clearly distinct in intent from list_current_shortages (plural listing) and search_medicine, but it does not name or explicitly contrast any sibling, so 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is a strong when-not clause ('Information only: never use this to recommend a substitute, an alternative or an equivalent medicine...'), which genuinely constrains misuse. However, it gives no tool-selection guidance — nothing says when to prefer list_current_shortages, search_medicine or get_medicine_info over this call — so usage context is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.