{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/defianceinternational-io/json-schema/defianceinternational-io-get-sequence-lot-certificate-200-schema.json",
  "title": "getSequenceLotCertificate.200",
  "description": "The product’s current analytical record, in one of four states",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/defianceinternational-io-openapi.yml#/components/schemas/getSequenceLotCertificate.200",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "const": "lot"
        },
        "certificate": {
          "type": "object",
          "properties": {
            "productName": {
              "type": [
                "string",
                "null"
              ]
            },
            "size": {
              "type": [
                "string",
                "null"
              ]
            },
            "lotEnding": {
              "description": "The last 4 characters of the laboratory’s sample code, or null when it has fewer than 6",
              "type": [
                "string",
                "null"
              ]
            },
            "purityResult": {
              "type": [
                "string",
                "null"
              ]
            },
            "identityConfirmed": {
              "type": [
                "string",
                "null"
              ]
            },
            "netContent": {
              "type": [
                "string",
                "null"
              ]
            },
            "sterility": {
              "type": [
                "string",
                "null"
              ]
            },
            "sterilityMethod": {
              "type": [
                "string",
                "null"
              ]
            },
            "endotoxins": {
              "type": [
                "string",
                "null"
              ]
            },
            "heavyMetals": {
              "type": [
                "string",
                "null"
              ]
            },
            "residualSolvents": {
              "type": [
                "string",
                "null"
              ]
            },
            "structured": {
              "type": "object",
              "properties": {
                "purityResult": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "identityConfirmed": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "netContent": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "sterility": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "endotoxins": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "heavyMetals": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "residualSolvents": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "quantity"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "lt",
                            "lte"
                          ]
                        },
                        "magnitude": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "operator",
                        "magnitude"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "outcome"
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "no_growth",
                            "growth"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "outcome"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "lab-criterion"
                        },
                        "specification": {
                          "type": "string",
                          "description": "The specification exactly as the laboratory stated it"
                        },
                        "criterion": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "bound"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "lt",
                                            "lte",
                                            "gt",
                                            "gte"
                                          ]
                                        },
                                        "value": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "operator",
                                        "value",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "window"
                                        },
                                        "center": {
                                          "type": "string"
                                        },
                                        "tolerance": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "center",
                                        "tolerance",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "range"
                                        },
                                        "low": {
                                          "type": "string"
                                        },
                                        "high": {
                                          "type": "string"
                                        },
                                        "unit": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "low",
                                        "high",
                                        "unit"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "not_detected"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "expect"
                                        },
                                        "notation": {
                                          "type": "string",
                                          "const": "outcome"
                                        },
                                        "outcome": {
                                          "type": "string",
                                          "enum": [
                                            "no_growth",
                                            "growth"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "notation",
                                        "outcome"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "bound"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "window"
                                              },
                                              "center": {
                                                "type": "string"
                                              },
                                              "tolerance": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "center",
                                              "tolerance",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "range"
                                              },
                                              "low": {
                                                "type": "string"
                                              },
                                              "high": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "low",
                                              "high",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "expect"
                                              },
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stated": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "quantity"
                                    },
                                    "operator": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte"
                                      ]
                                    },
                                    "value": {
                                      "type": "string"
                                    },
                                    "unit": {
                                      "type": "string"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "operator",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "censored"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "not_detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "detected"
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "outcome"
                                    },
                                    "outcome": {
                                      "type": "string",
                                      "enum": [
                                        "no_growth",
                                        "growth"
                                      ]
                                    },
                                    "stage": {
                                      "type": "string",
                                      "enum": [
                                        "preliminary",
                                        "final",
                                        "unknown"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "outcome"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "notation": {
                                      "type": "string",
                                      "const": "elements"
                                    },
                                    "elements": {
                                      "type": "object",
                                      "propertyNames": {
                                        "type": "string"
                                      },
                                      "additionalProperties": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "quantity"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "eq",
                                                  "lt",
                                                  "lte",
                                                  "gt",
                                                  "gte"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              },
                                              "unit": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "operator",
                                              "value",
                                              "unit"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "censored"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "not_detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "detected"
                                              }
                                            },
                                            "required": [
                                              "notation"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "notation": {
                                                "type": "string",
                                                "const": "outcome"
                                              },
                                              "outcome": {
                                                "type": "string",
                                                "enum": [
                                                  "no_growth",
                                                  "growth"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "notation",
                                              "outcome"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "notation",
                                    "elements"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "specification",
                        "criterion",
                        "stated"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "description": "The structured half of each analytical result, where the recorded notation was recognized"
            },
            "additionalResults": {
              "type": "object",
              "properties": {
                "sterilityMethodStated": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "labStated": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The test name as the laboratory states it"
                      },
                      "method": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "result": {
                        "type": "string"
                      },
                      "unit": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "rawDataSha256": {
                        "description": "Lowercase SHA-256 of a raw data file the platform holds, or null",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "method",
                      "result",
                      "unit",
                      "rawDataSha256"
                    ],
                    "additionalProperties": false
                  },
                  "description": "Results the laboratory stated beyond the seven standard checks"
                },
                "containerClosure": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "pass",
                            "fail"
                          ]
                        },
                        "methodStated": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "outcome",
                        "methodStated"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "vialConformity": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "vial": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "description": "The row position in the laboratory’s per-vial table, 1..n"
                              },
                              "purityPct": {
                                "type": "number"
                              },
                              "netContentMg": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "vial",
                              "purityPct",
                              "netContentMg"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "averagePurityPct": {
                          "type": "string"
                        },
                        "averageNetContentMg": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "rows",
                        "averagePurityPct",
                        "averageNetContentMg"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "sterilityMethodStated",
                "labStated",
                "containerClosure",
                "vialConformity"
              ],
              "additionalProperties": false
            },
            "exemptionDisclosures": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "const": "netContent"
                      },
                      "measured": {
                        "type": "string"
                      },
                      "labelledSize": {
                        "type": "string"
                      },
                      "standard": {
                        "type": "string"
                      },
                      "limit": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "key",
                      "measured",
                      "labelledSize",
                      "standard",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "const": "netContent"
                      },
                      "release": {
                        "type": "string",
                        "const": "operator_ruling"
                      },
                      "measured": {
                        "type": "string"
                      },
                      "labelledSize": {
                        "type": "string"
                      },
                      "limit": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "key",
                      "release",
                      "measured",
                      "labelledSize",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "const": "purityResult"
                      },
                      "measured": {
                        "type": "string"
                      },
                      "minimum": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "key",
                      "measured",
                      "minimum"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "testedCount": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "testedParameters": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "testingLaboratory": {
              "type": [
                "string",
                "null"
              ]
            },
            "testMethod": {
              "type": [
                "string",
                "null"
              ]
            },
            "coaIssueDate": {
              "type": [
                "string",
                "null"
              ]
            },
            "coaVersion": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "versions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "issueDate": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "current",
                      "superseded"
                    ]
                  }
                },
                "required": [
                  "version",
                  "issueDate",
                  "status"
                ],
                "additionalProperties": false
              },
              "description": "Each issued version’s number, date and status"
            },
            "synthesisDate": {
              "type": [
                "string",
                "null"
              ]
            },
            "expiryDate": {
              "type": [
                "string",
                "null"
              ]
            },
            "analyticalComplete": {
              "type": "boolean"
            },
            "originalDocumentAvailable": {
              "type": "boolean",
              "description": "Whether the laboratory’s own document is on file; it opens only after a vial verifies"
            }
          },
          "required": [
            "productName",
            "size",
            "lotEnding",
            "purityResult",
            "identityConfirmed",
            "netContent",
            "sterility",
            "sterilityMethod",
            "endotoxins",
            "heavyMetals",
            "residualSolvents",
            "structured",
            "additionalResults",
            "exemptionDisclosures",
            "testedCount",
            "testedParameters",
            "testingLaboratory",
            "testMethod",
            "coaIssueDate",
            "coaVersion",
            "versions",
            "synthesisDate",
            "expiryDate",
            "analyticalComplete",
            "originalDocumentAvailable"
          ],
          "additionalProperties": false,
          "description": "The regenerated analytical record of the product’s current release, by allow-list"
        },
        "researchUseOnly": {
          "type": "string",
          "description": "The boundary statement, stated once at the top level.",
          "pattern": "^Research use only\\. Not for human consumption\\.$"
        }
      },
      "required": [
        "state",
        "certificate",
        "researchUseOnly"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "const": "under_review"
        },
        "researchUseOnly": {
          "type": "string",
          "description": "The boundary statement, stated once at the top level.",
          "pattern": "^Research use only\\. Not for human consumption\\.$"
        }
      },
      "required": [
        "state",
        "researchUseOnly"
      ],
      "additionalProperties": false,
      "description": "The current release is held for review"
    },
    {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "const": "preparing"
        },
        "testCount": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "testingLaboratory": {
          "type": [
            "string",
            "null"
          ]
        },
        "testMethod": {
          "type": [
            "string",
            "null"
          ]
        },
        "researchUseOnly": {
          "type": "string",
          "description": "The boundary statement, stated once at the top level.",
          "pattern": "^Research use only\\. Not for human consumption\\.$"
        }
      },
      "required": [
        "state",
        "testCount",
        "testingLaboratory",
        "testMethod",
        "researchUseOnly"
      ],
      "additionalProperties": false,
      "description": "A release is on file and its regenerated record cannot be built yet"
    },
    {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "const": "none"
        },
        "researchUseOnly": {
          "type": "string",
          "description": "The boundary statement, stated once at the top level.",
          "pattern": "^Research use only\\. Not for human consumption\\.$"
        }
      },
      "required": [
        "state",
        "researchUseOnly"
      ],
      "additionalProperties": false,
      "description": "No release is on file for this product"
    }
  ]
}