{
  "type" : "record",
  "name" : "HazmatItem",
  "namespace" : "eu.europa.emsa.echd",
  "fields" : [ {
    "name" : "id",
    "type" : {
      "type" : "string",
      "maxLength" : 30,
      "example" : "CHD123456789"
    },
    "doc" : "The id of the hazmat item as maintained in the CHD."
  }, {
    "name" : "editionType",
    "type" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 17,
      "example" : "MANDATORY"
    },
    "doc" : "Code indicating whether the hazmat item is referred to in a mandatory or voluntary edition of the corresponding code.\n\t<br/>\n    Note: Voluntary codes become mandatory on January the following year.\n    <br/>\n    Applicable values: VOLUNTARY, MANDATORY"
  }, {
    "name" : "deleted",
    "type" : {
      "type" : "boolean",
      "example" : false
    },
    "doc" : "Specifies if the record is deleted."
  }, {
    "name" : "details",
    "type" : [ "null", {
      "type" : "record",
      "name" : "HazmatItemDetails",
      "fields" : [ {
        "name" : "regulation",
        "type" : {
          "type" : "string",
          "minLength" : 3,
          "maxLength" : 3,
          "example" : "IMD"
        },
        "doc" : "Code specifying a dangerous goods regulatory instrument, such as IMDG, IBC, IGC, IMSBC, MARPOL.\n\t\t<br/>\n\t\tValues are mapped such as:\n\t\t<br/>\n\t\tIMDG -> IMD\n\t\t<br/>\n\t\tIBC and IBC_TPA -> ADY\n\t\t<br/>\n\t\tIGC -> ADZ\n\t\t<br/>\n        IMSBC -> AEA\n        <br/>\n\t\tMarpol Annex 1 -> AEB"
      }, {
        "name" : "editionType",
        "type" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 17,
          "example" : "MANDATORY"
        },
        "doc" : "Code indicating whether the hazmat item is referred to in a mandatory or voluntary edition of the corresponding code.\n\t<br/>\n    Note: Voluntary codes become mandatory on January the following year.\n    <br/>\n    Applicable values: VOLUNTARY, MANDATORY"
      }, {
        "name" : "properShippingName",
        "type" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 512,
          "example" : "NSECTICIDE GAS, TOXIC, FLAMMABLE, N.O.S."
        },
        "doc" : "The proper shipping name for goods under IMDG Code, or the product name for goods under IBC Code and IGC Code, or the bulk cargo shipping name for goods under IMSBC Code, or the name of oil for goods under Annex I to the MARPOL Convention."
      }, {
        "name" : "hazardClass",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 7,
          "example" : "5.1"
        } ],
        "doc" : "The hazard class code of the referenced dangerous goods according to the specified regulation. Possible values:\n<br/>1\n<br/>2\n<br/>3\n<br/>4\n<br/>5\n<br/>6\n<br/>7\n<br/>8\n<br/>9\n<br/>1.1\n<br/>1.2\n<br/>1.3\n<br/>1.4\n<br/>1.5\n<br/>1.6\n<br/>1.1A\n<br/>1.1B\n<br/>1.1C\n<br/>1.1D\n<br/>1.1E\n<br/>1.1F\n<br/>1.1G\n<br/>1.1J\n<br/>1.1L\n<br/>1.2B\n<br/>1.2C\n<br/>1.2D\n<br/>1.2E\n<br/>1.2F\n<br/>1.2G\n<br/>1.2H\n<br/>1.2J\n<br/>1.2K\n<br/>1.2L\n<br/>1.3C\n<br/>1.3F\n<br/>1.3G\n<br/>1.3H\n<br/>1.3J\n<br/>1.3K\n<br/>1.3L\n<br/>1.4B\n<br/>1.4C\n<br/>1.4D\n<br/>1.4E\n<br/>1.4F\n<br/>1.4G\n<br/>1.4S\n<br/>1.5D\n<br/>1.6N\n<br/>2.1\n<br/>2.2\n<br/>2.3\n<br/>4.1\n<br/>4.2\n<br/>4.3\n<br/>5.1\n<br/>5.2\n<br/>6.1\n<br/>6.2\n<br/>A\n<br/>A AND B\n<br/>B\n<br/>N.A.\n<br/>P\n<br/>S\n<br/>S/P"
      }, {
        "name" : "UNDGnumber",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 4,
          "maxLength" : 4,
          "pattern" : "d{4}",
          "example" : "3087"
        } ],
        "doc" : "United Nations Dangerous Goods Identifier (UNDG) assigned by the UN Sub-Committee of Experts on the Transport of Dangerous Goods and shown in the IMO IMDG."
      }, {
        "name" : "packingGroup",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 3,
          "example" : "II"
        } ],
        "doc" : "The packing group according to the UN Recommendations on the Transport of Dangerous Goods and IMO IMDG Code.\n<br/>\nApplicable values: I, II, III"
      }, {
        "name" : "subsidiaryRisk",
        "type" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "minLength" : 1,
            "maxLength" : 7,
            "example" : "6.1"
          },
          "maxItems" : 5,
          "example" : [ "6.1", "8" ]
        },
        "doc" : "Any risk in addition to the class of the referenced dangerous goods according to the IMO IMDG Code. Possible values:\n<br/>1\n<br/>2\n<br/>3\n<br/>4\n<br/>5\n<br/>6\n<br/>7\n<br/>8\n<br/>9\n<br/>1.1\n<br/>1.2\n<br/>1.3\n<br/>1.4\n<br/>1.5\n<br/>1.6\n<br/>1.1A\n<br/>1.1B\n<br/>1.1C\n<br/>1.1D\n<br/>1.1E\n<br/>1.1F\n<br/>1.1G\n<br/>1.1J\n<br/>1.1L\n<br/>1.2B\n<br/>1.2C\n<br/>1.2D\n<br/>1.2E\n<br/>1.2F\n<br/>1.2G\n<br/>1.2H\n<br/>1.2J\n<br/>1.2K\n<br/>1.2L\n<br/>1.3C\n<br/>1.3F\n<br/>1.3G\n<br/>1.3H\n<br/>1.3J\n<br/>1.3K\n<br/>1.3L\n<br/>1.4B\n<br/>1.4C\n<br/>1.4D\n<br/>1.4E\n<br/>1.4F\n<br/>1.4G\n<br/>1.4S\n<br/>1.5D\n<br/>1.6N\n<br/>2.1\n<br/>2.2\n<br/>2.3\n<br/>4.1\n<br/>4.2\n<br/>4.3\n<br/>5.1\n<br/>5.2\n<br/>6.1\n<br/>6.2\n<br/>A\n<br/>A AND B\n<br/>B\n<br/>N.A.\n<br/>P\n<br/>S\n<br/>S/P"
      }, {
        "name" : "marinePollutionType",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 3,
          "example" : "O"
        } ],
        "doc" : "A code representing the type of marine pollutant properties for the referenced dangerous goods from the IMO IMDG Code or IBC Code / MARPOL Convention.\n<br/>\nApplicable values:\n<br/>\nO - Other Substances\n<br/>\nP - Marine pollutant\n<br/>\nX - Category X\n<br/>\nY - Category Y\n<br/>\nZ - Category Z"
      }, {
        "name" : "emsNumber",
        "type" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "minLength" : 1,
            "maxLength" : 6,
            "example" : "F-Z"
          },
          "maxItems" : 3,
          "example" : [ "F-A", "F-D" ]
        },
        "doc" : "The emergency schedule identified in the IMO EmS Guide – Emergency Response Procedures for Ships Carrying Dangerous Goods."
      }, {
        "name" : "additionalInformation",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 1024,
          "example" : "This product/cargo is not listed in a Code but is being carried on the basis of a tripartite agreement including agreed conditions between the flag State of the ship and the port States where the cargo is loaded and discharged"
        } ],
        "doc" : "A statement of any other information relevant to the characteristics or hazards of the referenced dangerous goods cargo item."
      }, {
        "name" : "flashPoint",
        "type" : [ "null", {
          "type" : "double",
          "minimum" : -237.15,
          "maximum" : 999999.99,
          "multipleOf" : 0.01,
          "example" : 125.25
        } ],
        "doc" : "The flashpoint of the referenced dangerous goods according to the IMO IMDG Code expressed in degrees Celsius."
      }, {
        "name" : "carriageMode",
        "type" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 17,
          "example" : "Bulk"
        },
        "doc" : "A code indicating the mode of carriage of the dangerous goods.\n<br/>\nApplicable values: Packaged, Bulk"
      }, {
        "name" : "productType",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 17,
          "example" : "Liquid"
        } ],
        "doc" : "A code indicating the type of product of the dangerous goods.\n<br/>\nApplicable values: Liquid, Solid, Gas"
      }, {
        "name" : "liquidType",
        "type" : [ "null", {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 20,
          "example" : "Chemicals or noxious"
        } ],
        "doc" : "A code indicating the type of liquid of the dangerous goods. Only applicable to liquid products.\n<br/>\nApplicable values: Chemicals or noxious, Oil"
      } ]
    } ],
    "doc" : "Details of the hazmat item, null if the record is deleted."
  } ]
}
