{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.2to8.cc/schemas/cce-interop-0.3.0.json",
  "type": "object",
  "title": "Cold Chain Equipment monitoring transmission",
  "description": "Schema for transmission of Cold-Chain Equipment (CCE) monitoring data from monitoring suppliers to third-parties (esp., countries). This schema supports both both EMS and non-EMS (i.e., RTM) data and is a derivative of the WHO/PQS EMS specification (esp., E006/DS01 and Annexes) to the greatest extent possible. Notable differences from the PQS EMS standards are (primarily) to accommodate RTM systems.",
  "additionalProperties": true,
  "required": [
    "meta",
    "data"
  ],
  "properties": {
    "meta": {
      "$ref": "#/$defs/transmission-metadata"
    },
    "data": {
      "type": "array",
      "title": "Cold chain data reports",
      "description": "Array of data reports for one or more pieces of cold-chain equipment",
      "minItems": 1,
      "items": {
        "type": "object",
        "description": "Schema for individual CCE Report items is controlled by the value of 'meta.transferType' using the if/then/else conditional (see below)."
      }
    }
  },
  "if": {
    "properties": { "meta": { "properties": { "transferType": { "pattern": "^ems$" } } } }
  },
  "then": {
    "properties": { "data": { "items": { "$ref": "#/$defs/ems-report" } } }
  },
  "else": {
    "properties": { "data": { "items": { "$ref": "#/$defs/rtmd-report" } } }
  },
  "$defs": {
    "rtmd-record": {
      "type": "object",
      "title": "RTMD data record",
      "description": "Represents a data sample at a single point-in-time from an RTMD",
      "required": [
        "ABST",
        "ALRM",
        "BLOG",
        "TAMB",
        "TVC",
        "LERR"
      ],
      "additionalProperties": true,
      "properties": {
        "ABST": { "$ref": "#/$defs/PQS-DS01-objects/ABST" },
        "ACCD": { "$ref": "#/$defs/PQS-DS01-objects/ACCD" },
        "ACSV": { "$ref": "#/$defs/PQS-DS01-objects/ACSV" },
        "ALRM": { "$ref": "#/$defs/PQS-DS01-objects/ALRM" },
        "BEMD": { "$ref": "#/$defs/PQS-DS01-objects/BEMD" },
        "BLOG": { "$ref": "#/$defs/PQS-DS01-objects/BLOG" },
        "CMPR": { "$ref": "#/$defs/PQS-DS01-objects/CMPR" },
        "CMPR2": { "$ref": "#/$defs/PQS-DS01-objects/CMPR2" },
        "CMPS": { "$ref": "#/$defs/PQS-DS01-objects/CMPS" },
        "CMPS2": { "$ref": "#/$defs/PQS-DS01-objects/CMPS2" },
        "CSOF": { "$ref": "#/$defs/PQS-DS01-objects/CSOF" },
        "CSOF2": { "$ref": "#/$defs/PQS-DS01-objects/CSOF2" },
        "DCCD": { "$ref": "#/$defs/PQS-DS01-objects/DCCD" },
        "DCSV": { "$ref": "#/$defs/PQS-DS01-objects/DCSV" },
        "DORF": { "$ref": "#/$defs/PQS-DS01-objects/DORF" },
        "DORV": { "$ref": "#/$defs/PQS-DS01-objects/DORV" },
        "DRCF": { "$ref": "#/$defs/PQS-DS01-objects/DRCF" },
        "DRCV": { "$ref": "#/$defs/PQS-DS01-objects/DRCV" },
        "EDOP": { "$ref": "#/$defs/PQS-DS01-objects/EDOP" },
        "EERR": { "$ref": "#/$defs/PQS-DS01-objects/EERR" },
        "EMSV": { "$ref": "#/$defs/PQS-DS01-objects/EMSV" },
        "FANS": { "$ref": "#/$defs/PQS-DS01-objects/FANS" },
        "HAMB": { "$ref": "#/$defs/PQS-DS01-objects/HAMB" },
        "HCOM": { "$ref": "#/$defs/PQS-DS01-objects/HCOM" },
        "HOLD": { "$ref": "#/$defs/PQS-DS01-objects/HOLD" },
        "IDRF": { "$ref": "#/$defs/PQS-DS01-objects/IDRF" },
        "IDRV": { "$ref": "#/$defs/PQS-DS01-objects/IDRV" },
        "LACC": { "$ref": "#/$defs/PQS-DS01-objects/LACC" },
        "LAT": { "$ref": "#/$defs/PQS-DS01-objects/LAT" },
        "LERR": { "$ref": "#/$defs/PQS-DS01-objects/LERR" },
        "LNG": { "$ref": "#/$defs/PQS-DS01-objects/LNG" },
        "LSV": { "$ref": "#/$defs/PQS-DS01-objects/LSV" },
        "MSW": { "$ref": "#/$defs/PQS-DS01-objects/MSW" },
        "SVA": { "$ref": "#/$defs/PQS-DS01-objects/SVA" },
        "TAMB": { "$ref": "#/$defs/PQS-DS01-objects/TAMB" },
        "TCON": { "$ref": "#/$defs/PQS-DS01-objects/TCON" },
        "TCON2": { "$ref": "#/$defs/PQS-DS01-objects/TCON2" },
        "TFRZ": { "$ref": "#/$defs/PQS-DS01-objects/TFRZ" },
        "TPCB": { "$ref": "#/$defs/PQS-DS01-objects/TPCB" },
        "TPCB2": { "$ref": "#/$defs/PQS-DS01-objects/TPCB2" },
        "TVC": { "$ref": "#/$defs/PQS-DS01-objects/TVC" }
      }
    },
    "rtmd-report": {
      "type": "object",
      "title": "RTMD data report",
      "description": "Report for a single RTMD, including metadata and a collection of rtmd-records",
      "required": [
        "CID",
        "LDOP",
        "LMFR",
        "LMOD",
        "LPQS",
        "LSER",
        "records"
      ],
      "additionalProperties": true,
      "properties": {
        "ACAT": { "$ref": "#/$defs/PQS-DS01-objects/ACAT" },
        "ADOP": { "$ref": "#/$defs/PQS-DS01-objects/ADOP" },
        "AID": { "$ref": "#/$defs/PQS-DS01-objects/AID" },
        "AMFR": { "$ref": "#/$defs/PQS-DS01-objects/AMFR" },
        "AMOD": { "$ref": "#/$defs/PQS-DS01-objects/AMOD" },
        "APQS": { "$ref": "#/$defs/PQS-DS01-objects/APQS" },
        "ASER": { "$ref": "#/$defs/PQS-DS01-objects/ASER" },
        "CDAT": { "$ref": "#/$defs/PQS-DS01-objects/CDAT" },
        "CDAT2": { "$ref": "#/$defs/PQS-DS01-objects/CDAT2" },
        "CID": { "$ref": "#/$defs/PQS-DS01-objects/CID" },
        "CNAM": { "$ref": "#/$defs/PQS-DS01-objects/CNAM" },
        "CNAM2": { "$ref": "#/$defs/PQS-DS01-objects/CNAM2" },
        "CSER": { "$ref": "#/$defs/PQS-DS01-objects/CSER" },
        "CSER2": { "$ref": "#/$defs/PQS-DS01-objects/CSER2" },
        "CSOF": { "$ref": "#/$defs/PQS-DS01-objects/CSOF" },
        "CSOF2": { "$ref": "#/$defs/PQS-DS01-objects/CSOF2" },
        "DNAM": { "$ref": "#/$defs/PQS-DS01-objects/DNAM" },
        "EDOP": { "$ref": "#/$defs/PQS-DS01-objects/EDOP" },
        "EID": { "$ref": "#/$defs/PQS-DS01-objects/EID" },
        "EMFR": { "$ref": "#/$defs/PQS-DS01-objects/EMFR" },
        "EMOD": { "$ref": "#/$defs/PQS-DS01-objects/EMOD" },
        "EMSV": { "$ref": "#/$defs/PQS-DS01-objects/EMSV" },
        "EPQS": { "$ref": "#/$defs/PQS-DS01-objects/EPQS" },
        "ESER": { "$ref": "#/$defs/PQS-DS01-objects/ESER" },
        "FID": { "$ref": "#/$defs/PQS-DS01-objects/FID" },
        "FNAM": { "$ref": "#/$defs/PQS-DS01-objects/FNAM" },
        "LACC": { "$ref": "#/$defs/PQS-DS01-objects/LACC" },
        "LAT": { "$ref": "#/$defs/PQS-DS01-objects/LAT" },
        "LDOP": { "$ref": "#/$defs/PQS-DS01-objects/LDOP" },
        "LID": { "$ref": "#/$defs/PQS-DS01-objects/LID" },
        "LMFR": { "$ref": "#/$defs/PQS-DS01-objects/LMFR" },
        "LMOD": { "$ref": "#/$defs/PQS-DS01-objects/LMOD" },
        "LNG": { "$ref": "#/$defs/PQS-DS01-objects/LNG" },
        "LPQS": { "$ref": "#/$defs/PQS-DS01-objects/LPQS" },
        "LSER": { "$ref": "#/$defs/PQS-DS01-objects/LSER" },
        "LSV": { "$ref": "#/$defs/PQS-DS01-objects/LSV" },
        "RNAM": { "$ref": "#/$defs/PQS-DS01-objects/RNAM" },
        "SIGN": { "$ref": "#/$defs/PQS-DS01-objects/SIGN" },
        "records": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/rtmd-record" }
        }
      },
      "allOf": [
        {
            "oneOf": [
                {
                  "$comment": "LSV is a member of the main object",
                  "required": [ "LSV" ]
                },
                {
                  "$comment": "LSV is a member each object within the records array",
                  "properties": {
                        "records": {
                            "items": { "required": [ "LSV" ] }
                        }
                    }
                }
            ]
        }
      ]
    },
    "ems-record": {
      "type": "object",
      "title": "EMS data record",
      "description": "Represents a data sample at a single point-in-time from an EMS device",
      "required": [
        "ABST",
        "ALRM",
        "BEMD",
        "BLOG",
        "CMPR",
        "DORV",
        "EERR",
        "LERR",
        "TAMB",
        "TVC"
      ],
      "additionalProperties": true,
      "properties": {
        "ABST": { "$ref": "#/$defs/PQS-DS01-objects/ABST" },
        "ACCD": { "$ref": "#/$defs/PQS-DS01-objects/ACCD" },
        "ACSV": { "$ref": "#/$defs/PQS-DS01-objects/ACSV" },
        "ALRM": { "$ref": "#/$defs/PQS-DS01-objects/ALRM" },
        "BEMD": { "$ref": "#/$defs/PQS-DS01-objects/BEMD" },
        "BLOG": { "$ref": "#/$defs/PQS-DS01-objects/BLOG" },
        "CMPR": { "$ref": "#/$defs/PQS-DS01-objects/CMPR" },
        "CMPR2": { "$ref": "#/$defs/PQS-DS01-objects/CMPR2" },
        "CMPS": { "$ref": "#/$defs/PQS-DS01-objects/CMPS" },
        "CMPS2": { "$ref": "#/$defs/PQS-DS01-objects/CMPS2" },
        "CSOF": { "$ref": "#/$defs/PQS-DS01-objects/CSOF" },
        "CSOF2": { "$ref": "#/$defs/PQS-DS01-objects/CSOF2" },
        "DCCD": { "$ref": "#/$defs/PQS-DS01-objects/DCCD" },
        "DCSV": { "$ref": "#/$defs/PQS-DS01-objects/DCSV" },
        "DORF": { "$ref": "#/$defs/PQS-DS01-objects/DORF" },
        "DORV": { "$ref": "#/$defs/PQS-DS01-objects/DORV" },
        "DRCF": { "$ref": "#/$defs/PQS-DS01-objects/DRCF" },
        "DRCV": { "$ref": "#/$defs/PQS-DS01-objects/DRCV" },
        "EDOP": { "$ref": "#/$defs/PQS-DS01-objects/EDOP" },
        "EERR": { "$ref": "#/$defs/PQS-DS01-objects/EERR" },
        "EMSV": { "$ref": "#/$defs/PQS-DS01-objects/EMSV" },
        "FANS": { "$ref": "#/$defs/PQS-DS01-objects/FANS" },
        "HAMB": { "$ref": "#/$defs/PQS-DS01-objects/HAMB" },
        "HCOM": { "$ref": "#/$defs/PQS-DS01-objects/HCOM" },
        "HOLD": { "$ref": "#/$defs/PQS-DS01-objects/HOLD" },
        "IDRF": { "$ref": "#/$defs/PQS-DS01-objects/IDRF" },
        "IDRV": { "$ref": "#/$defs/PQS-DS01-objects/IDRV" },
        "LACC": { "$ref": "#/$defs/PQS-DS01-objects/LACC" },
        "LAT": { "$ref": "#/$defs/PQS-DS01-objects/LAT" },
        "LERR": { "$ref": "#/$defs/PQS-DS01-objects/LERR" },
        "LNG": { "$ref": "#/$defs/PQS-DS01-objects/LNG" },
        "LSV": { "$ref": "#/$defs/PQS-DS01-objects/LSV" },
        "MSW": { "$ref": "#/$defs/PQS-DS01-objects/MSW" },
        "SVA": { "$ref": "#/$defs/PQS-DS01-objects/SVA" },
        "TAMB": { "$ref": "#/$defs/PQS-DS01-objects/TAMB" },
        "TCON": { "$ref": "#/$defs/PQS-DS01-objects/TCON" },
        "TCON2": { "$ref": "#/$defs/PQS-DS01-objects/TCON2" },
        "TFRZ": { "$ref": "#/$defs/PQS-DS01-objects/TFRZ" },
        "TPCB": { "$ref": "#/$defs/PQS-DS01-objects/TPCB" },
        "TPCB2": { "$ref": "#/$defs/PQS-DS01-objects/TPCB2" },
        "TVC": { "$ref": "#/$defs/PQS-DS01-objects/TVC" }
      },
      "allOf": [
        {
            "oneOf": [
                {
                  "$comment": "For mains appliances, SVA is included in the record",
                  "required": [ "SVA" ],
                  "not": { "required": [ "DCSV", "DCCD" ] }
                },
                {
                  "$comment": "For solar appliances, DCSV and DCCD are included in the record",
                  "required": [ "DCSV", "DCCD" ],
                  "not": { "required": [ "SVA" ] }
                }
            ]
        }
      ]
    },
    "ems-report": {
      "type": "object",
      "title": "EMS data report",
      "description": "Report for a single EMS device, including metadata and a collection of ems-records",
      "required": [
        "CID",
        "ADOP",
        "AMFR",
        "AMOD",
        "APQS",
        "ASER",
        "LDOP",
        "LMFR",
        "LMOD",
        "LPQS",
        "LSER",
        "EDOP",
        "EMFR",
        "EMOD",
        "EPQS",
        "ESER",
        "records"
      ],
      "additionalProperties": true,
      "properties": {
        "ACAT": { "$ref": "#/$defs/PQS-DS01-objects/ACAT" },
        "ADOP": { "$ref": "#/$defs/PQS-DS01-objects/ADOP" },
        "AID": { "$ref": "#/$defs/PQS-DS01-objects/AID" },
        "AMFR": { "$ref": "#/$defs/PQS-DS01-objects/AMFR" },
        "AMOD": { "$ref": "#/$defs/PQS-DS01-objects/AMOD" },
        "APQS": { "$ref": "#/$defs/PQS-DS01-objects/APQS" },
        "ASER": { "$ref": "#/$defs/PQS-DS01-objects/ASER" },
        "CDAT": { "$ref": "#/$defs/PQS-DS01-objects/CDAT" },
        "CDAT2": { "$ref": "#/$defs/PQS-DS01-objects/CDAT2" },
        "CID": { "$ref": "#/$defs/PQS-DS01-objects/CID" },
        "CNAM": { "$ref": "#/$defs/PQS-DS01-objects/CNAM" },
        "CNAM2": { "$ref": "#/$defs/PQS-DS01-objects/CNAM2" },
        "CSER": { "$ref": "#/$defs/PQS-DS01-objects/CSER" },
        "CSER2": { "$ref": "#/$defs/PQS-DS01-objects/CSER2" },
        "CSOF": { "$ref": "#/$defs/PQS-DS01-objects/CSOF" },
        "CSOF2": { "$ref": "#/$defs/PQS-DS01-objects/CSOF2" },
        "DNAM": { "$ref": "#/$defs/PQS-DS01-objects/DNAM" },
        "EDOP": { "$ref": "#/$defs/PQS-DS01-objects/EDOP" },
        "EID": { "$ref": "#/$defs/PQS-DS01-objects/EID" },
        "EMFR": { "$ref": "#/$defs/PQS-DS01-objects/EMFR" },
        "EMOD": { "$ref": "#/$defs/PQS-DS01-objects/EMOD" },
        "EMSV": { "$ref": "#/$defs/PQS-DS01-objects/EMSV" },
        "EPQS": { "$ref": "#/$defs/PQS-DS01-objects/EPQS" },
        "ESER": { "$ref": "#/$defs/PQS-DS01-objects/ESER" },
        "FID": { "$ref": "#/$defs/PQS-DS01-objects/FID" },
        "FNAM": { "$ref": "#/$defs/PQS-DS01-objects/FNAM" },
        "LACC": { "$ref": "#/$defs/PQS-DS01-objects/LACC" },
        "LAT": { "$ref": "#/$defs/PQS-DS01-objects/LAT" },
        "LDOP": { "$ref": "#/$defs/PQS-DS01-objects/LDOP" },
        "LID": { "$ref": "#/$defs/PQS-DS01-objects/LID" },
        "LMFR": { "$ref": "#/$defs/PQS-DS01-objects/LMFR" },
        "LMOD": { "$ref": "#/$defs/PQS-DS01-objects/LMOD" },
        "LNG": { "$ref": "#/$defs/PQS-DS01-objects/LNG" },
        "LPQS": { "$ref": "#/$defs/PQS-DS01-objects/LPQS" },
        "LSER": { "$ref": "#/$defs/PQS-DS01-objects/LSER" },
        "LSV": { "$ref": "#/$defs/PQS-DS01-objects/LSV" },
        "RNAM": { "$ref": "#/$defs/PQS-DS01-objects/RNAM" },
        "SIGN": { "$ref": "#/$defs/PQS-DS01-objects/SIGN" },
        "records": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/ems-record" }
        }
      },
      "allOf": [
        {
            "oneOf": [
                {
                  "$comment": "LSV is a member of the main object",
                  "required": [ "LSV" ]
                },
                {
                  "$comment": "LSV is a member each object within the records array",
                  "properties": {
                        "records": {
                            "items": { "required": [ "LSV" ] }
                        }
                    }
                }
            ]
        },
        {
          "oneOf": [
              {
                "$comment": "EMSV is a member of the main object",
                "required": [ "EMSV" ]
              },
              {
                "$comment": "EMSV is a member each object within the records array",
                "properties": {
                      "records": {
                          "items": { "required": [ "EMSV" ] }
                      }
                  }
              }
          ]
        }
      ]
    },
    "transmission-metadata": {
      "type": "object",
      "title": "Transmission metadata",
      "description": "Metadata about the data transmission / transfer",
      "additionalProperties": true,
      "required": [
        "schemaVersion",
        "transferType",
        "transferId",
        "transferSrc",
        "transferredAt"
      ],
      "properties": {
        "schemaVersion": {
          "type": [
            "string"
          ],
          "title": "Transmission schema version",
          "description": "Version of the JSON schema against which the transmission should be validated (see the $id field at the top of this document)",
          "examples": [
            "0.1.1"
          ]
        },
        "transferType": {
          "type": [
            "string"
          ],
          "title": "Data transmission type",
          "description": "Type of data transmission (e.g., RTM, EMS, etc.)",
          "enum": [ "rtm", "ems" ],
          "examples": [
            "rtm"
          ]
        },
        "transferId": {
          "type": [
            "string"
          ],
          "title": "Data transmission identifier",
          "description": "Unique ID of a specific data transmission (generated by supplier)",
          "examples": [
            "be02ecfb-2f4f-4139-a2fa-508105740eee",
            "KE:SER19239898179:1701989567:1701903170"
          ]
        },
        "transferSrc": {
          "type": [
            "string"
          ],
          "title": "Data transmission source",
          "description": "URI of the data transmission source",
          "examples": [
            "com.mycompany",
            "https://mycompany.com"
          ]
        },
        "transferredAt": {
          "type": [
            "string"
          ],
          "title": "Data transmission datetime",
          "description": "Datetime of data tansmission",
          "pattern": "^2[0-9]{3}-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z$",
          "examples": [
            "2023-08-12T13:07:21Z"
          ]
        },
        "transferCallbackUrl": {
          "type": [
            "string"
          ],
          "title": "Webhook callback URL",
          "description": "URL of webhook to be called with data processing status",
          "examples": [
            "https://mycompany.com/rtm-webhook"
          ]
        }
      }
    },
    "PQS-DS01-objects": {
      "ABST": {
        "type": "string",
        "title": "Absolute time in UTC",
        "description": "Absolute time measured in UTC",
        "pattern": "^2[0-9]{7}T[0-2][0-9]{5}(\\.[0-9]+)?Z$",
        "examples": [
          "20200115T040554Z"
        ]
      },
      "ACAT": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance PQS device type",
        "description": "PQS device type or category",
        "examples": [
          "RF03"
        ]
      },
      "ACCD": {
        "type": [
          "number",
          "null"
        ],
        "title": "AC current drawn by the appliance",
        "description": "Average AC current being drawn from supply by the operation of the appliance within each 15 minute period. Average value of raw samples collected at intervals not longer than 10 seconds.",
        "examples": [
          1.62
        ],
        "minimum": 0.01,
        "maximum": 49.99
      },
      "ACSV": {
        "type": [
          "number",
          "null"
        ],
        "title": "AC supply voltage to the appliance",
        "description": "Average AC supply voltage to appliance within each 15 minute period. Average value of raw samples collected at intervals not longer than 10 seconds.",
        "examples": [
          235.3
        ],
        "minimum": 0,
        "maximum": 600
      },
      "ADOP": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance date of production",
        "description": "Date of manufacture",
        "examples": [
          "2020-12-01"
        ]
      },
      "AID": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance identifier",
        "description": "Identifier for program asset tracking",
        "examples": [
          "123456ABCDE"
        ]
      },
      "ALRM": {
        "type": [
          "string",
          "null"
        ],
        "title": "Alarm condition",
        "description": "Presence of defined alarm conditions",
        "examples": [
          "HEAT"
        ]
      },
      "AMFR": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance manufacturer",
        "description": "Manufacturer name",
        "examples": [
          "Company1234 Inc"
        ]
      },
      "AMOD": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance model",
        "description": "Manufacturer model number",
        "examples": [
          "FRIDGE-12345"
        ]
      },
      "APQS": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance PQS code",
        "description": "PQS code (E00X/XXX)",
        "examples": [
          "E003/123"
        ]
      },
      "ASER": {
        "type": [
          "string",
          "null"
        ],
        "title": "Appliance manufacturer serial number",
        "description": "Manufacturer serial number",
        "examples": [
          "1234asdf98jxzy"
        ]
      },
      "BEMD": {
        "type": [
          "number",
          "null"
        ],
        "title": "EMD battery remaining",
        "description": "Estimated number of days of battery life remaining",
        "examples": [
          14.3
        ],
        "minimum": 0,
        "maximum": 9999.9
      },
      "BLOG": {
        "type": "number",
        "title": "Logger battery remaining",
        "description": "Estimated number of days of battery life remaining",
        "examples": [
          367.4
        ],
        "minimum": 0,
        "maximum": 9999.9
      },
      "CDAT": {
        "type": [
          "string",
          "null"
        ],
        "title": "Compressor Electronic Unit production date",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "2021-06-01"
        ]
      },
      "CDAT2": {
        "type": [
          "string",
          "null"
        ],
        "title": "Secondary Compressor Electronic Unit production date",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "2021-06-01"
        ]
      },
      "CID": {
        "type": [
          "string",
          "null"
        ],
        "title": "Country ID",
        "description": "Country where monitored appliance is located",
        "examples": [
          "US"
        ]
      },
      "CMPR": {
        "type": [
          "number",
          "null"
        ],
        "title": "Compressor runtime",
        "description": "Total duration compressor operated within each 15 minute period measured in minutes",
        "examples": [
          7
        ],
        "minimum": 0,
        "maximum": 15
      },
      "CMPR2": {
        "type": [
          "number",
          "null"
        ],
        "title": "Secondary Compressor runtime",
        "description": "Total duration compressor operated within each 15 minute period measured in minutes",
        "examples": [
          7
        ],
        "minimum": 0,
        "maximum": 15
      },
      "CMPS": {
        "type": [
          "number",
          "null"
        ],
        "title": "Compressor speed",
        "description": "Maximum operating speed of the compressor in revolutions per minute within each 15-minute period, based on samples collected at intervals not longer than 10 seconds",
        "examples": [
          2835
        ],
        "minimum": 0,
        "maximum": 20000
      },
      "CMPS2": {
        "type": [
          "number",
          "null"
        ],
        "title": "Secondary compressor speed",
        "description": "Maximum operating speed of the compressor in revolutions per minute within each 15-minute period, based on samples collected at intervals not longer than 10 seconds",
        "examples": [
          2835
        ],
        "minimum": 0,
        "maximum": 20000
      },
      "CNAM": {
        "type": [
          "string",
          "null"
        ],
        "title": "Compressor Electronic Unit Manufacturer",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "Vendor_Name"
        ]
      },
      "CNAM2": {
        "type": [
          "string",
          "null"
        ],
        "title": "Secondary Compressor Electronic Unit Manufacturer",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "Vendor_Name"
        ]
      },
      "CSER": {
        "type": [
          "string",
          "null"
        ],
        "title": "Compressor Electronic Unit Product Code",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "COMP34567"
        ]
      },
      "CSER2": {
        "type": [
          "string",
          "null"
        ],
        "title": "Secondary Compressor Electronic Unit Product Code",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "COMP34567"
        ]
      },
      "CSOF": {
        "type": [
          "string",
          "null"
        ],
        "title": "Compressor Electronic Unit Software version",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "v01.02.004"
        ]
      },
      "CSOF2": {
        "type": [
          "string",
          "null"
        ],
        "title": "Secondary Compressor Electronic Unit Software version",
        "description": "Compressor electronic unit admin information",
        "examples": [
          "v01.02.004"
        ]
      },
      "DCCD": {
        "type": [
          "number",
          "null"
        ],
        "title": "DC current drawn by the appliance",
        "description": "Average DC current being drawn from supply by the operation of the appliance within each 15 minute period. Average value of raw samples collected at intervals not longer than 10 seconds.",
        "examples": [
          3.8
        ],
        "minimum": 0,
        "maximum": 99.9
      },
      "DCSV": {
        "type": [
          "number",
          "null"
        ],
        "title": "DC supply voltage to the appliance",
        "description": "Average DC supply voltage to appliance within each 15 minute period. Average value of raw samples collected at intervals not longer than 10 seconds.",
        "examples": [
          19.2
        ],
        "minimum": 0,
        "maximum": 999.9
      },
      "DNAM": {
        "type": [
          "string",
          "null"
        ],
        "title": "District Name",
        "description": "Name of district where device is located",
        "examples": [
          "Capitol Hill"
        ]
      },
      "DORF": {
        "type": [
          "number",
          "null"
        ],
        "title": "Door/lid opening (freezer/other compartment)",
        "description": "Total duration freezer compartment or other compartment door was opened within each 15 minute period measured in seconds",
        "examples": [
          223
        ],
        "minimum": 0,
        "maximum": 900
      },
      "DORV": {
        "type": [
          "number",
          "null"
        ],
        "title": "Door/lid opening (vaccine compartment)",
        "description": "Total duration vaccine compartment door was opened within each 15 minute period measured in seconds",
        "examples": [
          467
        ],
        "minimum": 0,
        "maximum": 900
      },
      "DRCF": {
        "type": [
          "number",
          "null"
        ],
        "title": "Number of door/lid openings (freezer/other compartment)",
        "description": "Number of door openings within each 15-minute sample period",
        "examples": [
          2
        ],
        "minimum": 0,
        "maximum": 900
      },
      "DRCV": {
        "type": [
          "number",
          "null"
        ],
        "title": "Number of door/lid openings (vaccine compartment)",
        "description": "Number of door openings within each 15-minute sample period",
        "examples": [
          0
        ],
        "minimum": 0,
        "maximum": 900
      },
      "EDOP": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD date of production",
        "description": "Date of manufacture",
        "examples": [
          "2021-06-01"
        ]
      },
      "EERR": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD Error Codes",
        "description": "Alphanumeric codes corresponding to conditions that may impair normal operation of the EMD (e.g. broken or disconnected sensors, self-test failure)",
        "examples": [
          "abcde"
        ]
      },
      "EID": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD identifier",
        "description": "Identifier for program asset tracking",
        "examples": [
          "845858KJLHJ"
        ]
      },
      "EMFR": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD manufacturer",
        "description": "Manufacturer name",
        "examples": [
          "EMD_Name"
        ]
      },
      "EMOD": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD model",
        "description": "Manufacturer model number",
        "examples": [
          "EMD-ModelNo"
        ]
      },
      "EMSV": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD software version",
        "description": "Version number of EMD software/firmware installed",
        "examples": [
          "v01.02.123"
        ]
      },
      "EPQS": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD PQS code",
        "description": "PQS code (E00X/XXX)",
        "examples": [
          "E006/999"
        ]
      },
      "ESER": {
        "type": [
          "string",
          "null"
        ],
        "title": "EMD serial number",
        "description": "Manufacturer serial number",
        "examples": [
          "EMD-SerialNum"
        ]
      },
      "FANS": {
        "type": [
          "number",
          "null"
        ],
        "title": "Fan speed",
        "description": "Min. 0% / Max. 100% speed",
        "examples": [
          68.6
        ],
        "minimum": 0,
        "maximum": 100
      },
      "FID": {
        "type": [
          "string",
          "null"
        ],
        "title": "Facility ID",
        "description": "Facility where monitored appliance is located",
        "examples": [
          "Facility-West"
        ]
      },
      "FNAM": {
        "type": [
          "string",
          "null"
        ],
        "title": "Facility Name",
        "description": "Name of facility where device is located",
        "examples": [
          "Capitol HC"
        ]
      },
      "HAMB": {
        "type": [
          "number",
          "null"
        ],
        "title": "Ambient relative humidity",
        "description": "RH%",
        "examples": [
          59.8
        ],
        "minimum": 0,
        "maximum": 100
      },
      "HCOM": {
        "type": [
          "number",
          "null"
        ],
        "title": "Compartment relative humidity",
        "description": "RH%",
        "examples": [
          98.2
        ],
        "minimum": 0,
        "maximum": 100
      },
      "HOLD": {
        "type": [
          "number",
          "null"
        ],
        "title": "Holdover autonomy or independence time",
        "description": "estimated time in days during which all points in the vaccine compartment remain between +2C and +8C if supply power disconnected",
        "examples": [
          7.3
        ],
        "minimum": 0,
        "maximum": 999.9
      },
      "IDRF": {
        "type": [
          "number",
          "null"
        ],
        "title": "Instantaneous door/lid opening (freezer compartment)",
        "description": "Total continuous duration freezer compartment door has been open at time of USB mount",
        "examples": [
          812
        ],
        "minimum": 0
      },
      "IDRV": {
        "type": [
          "number",
          "null"
        ],
        "title": "Instantaneous door/lid opening (vaccine compartment)",
        "description": "Total continuous duration vaccine compartment door has been open at time of USB mount",
        "examples": [
          812
        ],
        "minimum": 0
      },
      "LACC": {
        "type": [
          "number",
          "null"
        ],
        "title": "Location accuracy (in meters)",
        "description": "Accuracy of location information, in meters",
        "examples": [
          38.8
        ],
        "minimum": 0,
        "maximum": 999.9
      },
      "LAT": {
        "type": [
          "number",
          "null"
        ],
        "title": "Location / GIS Coordinates / Latitude",
        "description": "Physical location of asset",
        "examples": [
          38.88612
        ],
        "minimum": -90,
        "maximum": 90
      },
      "LDOP": {
        "type": "string",
        "title": "Logger date of production",
        "description": "Date of manufacture",
        "examples": [
          "2021-08-15"
        ]
      },
      "LERR": {
        "type": [
          "string",
          "null"
        ],
        "title": "Logger Error Codes",
        "description": "Alphanumeric codes corresponding to conditions that may impair normal operation of the Logger (e.g. broken or disconnected sensors, self-test failure)",
        "examples": [
          "abcde"
        ]
      },
      "LID": {
        "type": [
          "string",
          "null"
        ],
        "title": "Logger identifier",
        "description": "Identifier for program asset tracking",
        "examples": [
          "789032QEWRE"
        ]
      },
      "LMFR": {
        "type": "string",
        "title": "Logger manufacturer",
        "description": "Manufacturer name",
        "examples": [
          "Logger_Co"
        ]
      },
      "LMOD": {
        "type": "string",
        "title": "Logger model",
        "description": "Manufacturer model number",
        "examples": [
          "Logger_Model"
        ]
      },
      "LNG": {
        "type": [
          "number",
          "null"
        ],
        "title": "Location / GIS Coordinates / Longitude",
        "description": "Physical location of asset",
        "examples": [
          -77.00513
        ],
        "minimum": -180,
        "maximum": 180
      },
      "LPQS": {
        "type": "string",
        "title": "Logger PQS code",
        "description": "PQS code (E00X/XXX)",
        "examples": [
          "E006/998"
        ]
      },
      "LSER": {
        "type": "string",
        "title": "Logger serial number",
        "description": "Manufacturer serial number",
        "examples": [
          "log4567890asdf"
        ]
      },
      "LSV": {
        "type": [
          "string",
          "null"
        ],
        "title": "Logger software version",
        "description": "Version number of Logger software/firmware installed",
        "examples": [
          "v01.02.008"
        ]
      },
      "MSW": {
        "type": [
          "boolean",
          "null"
        ],
        "title": "Main ON/OFF switch",
        "description": "OFF (false) / ON (true) of main control switch of appliance",
        "examples": [
          true
        ]
      },
      "RNAM": {
        "type": [
          "string",
          "null"
        ],
        "title": "Region Name",
        "description": "Name of region where device is located",
        "examples": [
          "Washington DC"
        ]
      },
      "SIGN": {
        "type": [
          "string",
          "null"
        ],
        "title": "File Integrity check",
        "description": "Integrity check on file contents; could be CRC hash or signature",
        "examples": [
          "asdfjasdh74734asdf=="
        ]
      },
      "SVA": {
        "type": [
          "number",
          "null"
        ],
        "title": "AC Supply voltage availability",
        "description": "Data indicating the number of seconds within each 15-minute period when the AC voltage is within acceptable bounds to operate the appliance",
        "examples": [
          510
        ],
        "minimum": 0,
        "maximum": 900
      },
      "TAMB": {
        "type": "number",
        "title": "Ambient temperature",
        "description": "Temperature of the immediate appliance surroundings; should not be affected by appliance operation",
        "examples": [
          21
        ],
        "minimum": -55,
        "maximum": 60
      },
      "TCON": {
        "type": [
          "number",
          "null"
        ],
        "title": "Condenser temperature",
        "description": "Temperature of the condenser",
        "examples": [
          "101.50.3"
        ],
        "minimum": -55,
        "maximum": 150
      },
      "TCON2": {
        "type": [
          "number",
          "null"
        ],
        "title": "Secondary Condenser temperature",
        "description": "Temperature of the condenser",
        "examples": [
          "101.50.3"
        ],
        "minimum": -55,
        "maximum": 150
      },
      "TFRZ": {
        "type": [
          "number",
          "null"
        ],
        "title": "Freezer Compartment temperature",
        "description": "Temperature sensor located in a freezer compartment",
        "examples": [
          -4.5
        ],
        "minimum": -99.9,
        "maximum": 60
      },
      "TPCB": {
        "type": [
          "number",
          "null"
        ],
        "title": "Compressor Electronic Unit temperature",
        "description": "Temperature of Compressor Electronic Unit",
        "examples": [
          35.2
        ],
        "minimum": -55,
        "maximum": 150
      },
      "TPCB2": {
        "type": [
          "number",
          "null"
        ],
        "title": "Secondary Compressor Electronic Unit temperature",
        "description": "Temperature of Compressor Electronic Unit",
        "examples": [
          35.2
        ],
        "minimum": -55,
        "maximum": 150
      },
      "TVC": {
        "type": "number",
        "title": "Vaccine Compartment temperature",
        "description": "Temperature sensor located in coldest location of storage compartment",
        "examples": [
          3.2
        ],
        "minimum": -55,
        "maximum": 60
      }
    }
  },
  "examples": [
    {
      "meta": {
        "schemaVersion": "rtm:0.1.0",
        "transferId": "be02ecfb-2f4f-4139-a2fa-508105740eee",
        "transferSrc": "com.logger-co",
        "transferredAt": "2023-08-12T13:07:21Z",
        "transferCallbackUrl": "https://logger-co.com/callback"
      },
      "data": [
        {
          "CID": "US",
          "DNAM": "East Eastland",
          "RNAM": "Eastland",
          "FNAM": "East Eastland Hospital",
          "FID": "4bc7f772-efda-496a-874d-d21f6588c8ef",
          "LDOP": "2021-08-15",
          "LMFR": "Logger_Co",
          "LMOD": "Logger_Model",
          "LPQS": "E006/998",
          "LSER": "log4567890asdf",
          "LSV": "v01.02.008",
          "records": [
            {
              "ABST": "20231010T12071600Z",
              "BLOG": 6.5,
              "TAMB": 21.3,
              "TVC": 2.4,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11521700Z",
              "BLOG": 7.2,
              "TAMB": 21.2,
              "TVC": 2.3,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11371700Z",
              "BLOG": 8.5,
              "TAMB": 21.1,
              "TVC": 2.1,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11221800Z",
              "BLOG": 9,
              "TAMB": 21.1,
              "TVC": 0.1,
              "LERR": null,
              "ALRM": "FRZE"
            },
            {
              "ABST": "20231010T11071700Z",
              "BLOG": 8.7,
              "TAMB": 21.2,
              "TVC": 0.3,
              "LERR": "abcde",
              "ALRM": null
            }
          ]
        },
        {
          "CID": "US",
          "DNAM": "West Westland",
          "RNAM": "Westland",
          "FNAM": "West Westland Clinic",
          "FID": "425a5c67-2d6c-4c59-a7b9-a3bed67a361bcapitol_hopsital",
          "LDOP": "2021-09-12",
          "LMFR": "Logger_Co",
          "LMOD": "Logger_Model",
          "LPQS": "E006/998",
          "LSER": "log3456230puul",
          "LSV": "v01.03.00",
          "records": [
            {
              "ABST": "20231010T12071600Z",
              "BLOG": 5.5,
              "TAMB": 20.3,
              "TVC": 3.4,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11521700Z",
              "BLOG": 4.2,
              "TAMB": 20.2,
              "TVC": 3.3,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11371700Z",
              "BLOG": 4.5,
              "TAMB": 20.1,
              "TVC": 3.1,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11221800Z",
              "BLOG": 3,
              "TAMB": 20.1,
              "TVC": 3.1,
              "LERR": null,
              "ALRM": null
            },
            {
              "ABST": "20231010T11071700Z",
              "BLOG": 4.7,
              "TAMB": 20.2,
              "TVC": 3.3,
              "LERR": null,
              "ALRM": null
            }
          ]
        }
      ]
    }
  ]
}