Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

CalibrationRecord

Source schemas/json/calibration-record.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Mappings to open standards
  5. Schema

One calibration of one observed property of a sensor (OBSP 0.1 section 5.3): reference standard, traceability chain, uncertainty with units, validity window, method and the role that performed it. A calibration record is evidence of a procedure, not an accreditation or certification.

FieldValue
Identifierurn:obsp:schema:v3.1:calibrationrecord
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsDescribe, Qualify

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
calibrationUniyesreference
versionyesreference
sensorPassportRefyesreference
observedPropertyyesstring
referenceStandardyesobject
traceabilityChainyesarrayUnbroken chain from the reference standard upward, level 0 nearest the instrument. Authority kinds, never organisation names
methodyesobject
uncertaintyyesobjectCalibration uncertainty with its unit (GUM). An expanded uncertainty states its coverage factor
validFromyesreference
validUntilyesreference
performedByyesobject
performedAtyesreference
outcomeyesenumeration
coefficientsnoarray
correctionStateyesreference
evidenceRefsyesarray
recordedAtyesreference
extensionsnoreference

Positive fixtures

  • calibration-record.valid.json

Negative fixtures

  • calibration-record.company-performer.json: performedBy is a role, never a company name
  • calibration-record.empty-traceability-chain.json: traceability chain is non-empty
  • calibration-record.expanded-without-coverage-factor.json: expanded uncertainty states its coverage factor
  • calibration-record.missing-valid-until.json: validity window is closed
  • calibration-record.uncertainty-without-unit.json: uncertainty carries units
  • calibration-record.zero-uncertainty.json: a stated uncertainty is never zero

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NRS-S11 System profile: instruments, sensors and calibration (OPS) (relation REL-NRS-S11)
  • maps to ISO/IEC 17025 (testing and calibration laboratories) (relation EXT-ISO17025)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:calibrationrecord",
  "title": "CalibrationRecord",
  "description": "One calibration of one observed property of a sensor (OBSP 0.1 section 5.3): reference standard, traceability chain, uncertainty with units, validity window, method and the role that performed it. A calibration record is evidence of a procedure, not an accreditation or certification.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "calibrationUni",
    "version",
    "sensorPassportRef",
    "observedProperty",
    "referenceStandard",
    "traceabilityChain",
    "method",
    "uncertainty",
    "validFrom",
    "validUntil",
    "performedBy",
    "performedAt",
    "outcome",
    "correctionState",
    "evidenceRefs",
    "recordedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/calibration-record/v3.1"
    },
    "kind": {
      "const": "CalibrationRecord"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "calibrationUni": {
      "$ref": "#/$defs/Uni"
    },
    "version": {
      "$ref": "#/$defs/RecordVersion"
    },
    "sensorPassportRef": {
      "$ref": "#/$defs/VersionedRecordRef"
    },
    "observedProperty": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$"
    },
    "referenceStandard": {
      "type": "object",
      "required": [
        "identifier",
        "standardKind",
        "certificateDigest"
      ],
      "properties": {
        "identifier": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "standardKind": {
          "enum": [
            "PRIMARY",
            "SECONDARY",
            "WORKING",
            "TRANSFER",
            "CERTIFIED_REFERENCE_MATERIAL"
          ]
        },
        "certificateDigest": {
          "$ref": "#/$defs/Digest"
        },
        "certificateValidUntil": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "additionalProperties": false
    },
    "traceabilityChain": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "level",
          "authorityKind",
          "standardIdentifier",
          "certificateDigest"
        ],
        "properties": {
          "level": {
            "type": "integer",
            "minimum": 0
          },
          "authorityKind": {
            "enum": [
              "SI_REALISATION",
              "NATIONAL_METROLOGY_INSTITUTE",
              "ACCREDITED_CALIBRATION_LABORATORY",
              "IN_HOUSE_REFERENCE_LABORATORY",
              "FIELD_TRANSFER_STANDARD"
            ]
          },
          "standardIdentifier": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "certificateDigest": {
            "$ref": "#/$defs/Digest"
          }
        },
        "additionalProperties": false
      },
      "description": "Unbroken chain from the reference standard upward, level 0 nearest the instrument. Authority kinds, never organisation names"
    },
    "method": {
      "type": "object",
      "required": [
        "procedureRef",
        "procedureVersion"
      ],
      "properties": {
        "procedureRef": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "procedureVersion": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        }
      },
      "additionalProperties": false
    },
    "uncertainty": {
      "type": "object",
      "required": [
        "kind",
        "value",
        "unit"
      ],
      "properties": {
        "kind": {
          "enum": [
            "EXPANDED",
            "STANDARD"
          ]
        },
        "value": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "unit": {
          "$ref": "#/$defs/UcumUnit"
        },
        "coverageFactor": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "confidenceLevel": {
          "type": "number",
          "exclusiveMinimum": 0,
          "exclusiveMaximum": 1
        }
      },
      "additionalProperties": false,
      "if": {
        "properties": {
          "kind": {
            "const": "EXPANDED"
          }
        },
        "required": [
          "kind"
        ]
      },
      "then": {
        "required": [
          "coverageFactor"
        ]
      },
      "description": "Calibration uncertainty with its unit (GUM). An expanded uncertainty states its coverage factor"
    },
    "validFrom": {
      "$ref": "#/$defs/Timestamp"
    },
    "validUntil": {
      "$ref": "#/$defs/Timestamp"
    },
    "performedBy": {
      "type": "object",
      "required": [
        "role",
        "uni"
      ],
      "properties": {
        "role": {
          "$ref": "#/$defs/ProtocolRole"
        },
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "accreditationRef": {
          "$ref": "#/$defs/RecordRef"
        }
      },
      "additionalProperties": false
    },
    "performedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "outcome": {
      "enum": [
        "WITHIN_TOLERANCE",
        "ADJUSTED_WITHIN_TOLERANCE",
        "OUT_OF_TOLERANCE",
        "ABORTED"
      ]
    },
    "coefficients": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "value",
          "unit"
        ],
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[a-z][a-zA-Z0-9_]{0,63}$"
          },
          "value": {
            "type": "number"
          },
          "unit": {
            "$ref": "#/$defs/UcumUnit"
          }
        },
        "additionalProperties": false
      }
    },
    "correctionState": {
      "$ref": "#/$defs/CorrectionState"
    },
    "evidenceRefs": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "recordedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "$defs": {
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$",
      "description": "Durable UNI or typed unresolved identifier according to authority rules"
    },
    "Digest": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$",
      "description": "Algorithm-prefixed hexadecimal digest"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "RecordVersion": {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]+){0,2}$"
    },
    "Extensions": {
      "type": "object",
      "description": "Namespaced extension bag; unknown top-level fields remain forbidden.",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "recordedAt": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "additionalProperties": false
    },
    "ProtocolRole": {
      "enum": [
        "NODE",
        "SITE_CELL",
        "CLUSTER",
        "FED_PEER",
        "GRID_OPERATOR",
        "PROVIDER",
        "VERIFIER",
        "CONSUMER",
        "STEWARD"
      ],
      "description": "OBSP 0.1 participant role (specification section 3). Roles, never company names."
    },
    "RecordRef": {
      "type": "object",
      "required": [
        "uni",
        "digest"
      ],
      "properties": {
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "version": {
          "$ref": "#/$defs/RecordVersion"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "VersionedRecordRef": {
      "type": "object",
      "required": [
        "uni",
        "version",
        "digest"
      ],
      "properties": {
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "version": {
          "$ref": "#/$defs/RecordVersion"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "CorrectionState": {
      "enum": [
        "CURRENT",
        "DISPUTED",
        "SUPERSEDED",
        "WITHDRAWN",
        "RECALLED"
      ]
    },
    "UcumUnit": {
      "type": "string",
      "pattern": "^[A-Za-z0-9%\\[\\]{}*./'_+-]{1,64}$",
      "description": "UCUM case-sensitive unit code (for example Cel, m/s, hPa, W/m2, 1, %). Spaces and non-ASCII symbols are rejected."
    }
  },
  "additionalProperties": false
}