Schemas / Record

rig.record.event

v1.0.0 · stable maturity: draft 3 fields 2 required

Fields

FieldTypeMeaning
subject entity required Who or what the happening is about
code string required Event code as the source wrote it
codeSystem string optional Optional. Code system name (iso20022, custom)

A happening with no magnitude. Format when present.

Auth hits, page views, and status changes land here. A measurement with a value is rig.clinic.observation - do not attach this schema to one.

subject and code are required.

The clock is rig.calendar.event on this entity. Title is rig.meta.named. A file this happening belongs to is rig.record.concerns.

JSON Schema

Resolves at https://rig.works/schemas/rig.record.event.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.record.event.schema.json",
  "title": "rig.record.event",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "subject": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "code": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "codeSystem": {
      "$ref": "./_defs.schema.json#/$defs/string"
    }
  },
  "required": [
    "subject",
    "code"
  ],
  "description": "A happening with no magnitude. Clock composes rig.calendar.event. A measurement is rig.clinic.observation.",
  "x-rig-maturity": "draft"
}

Seen in

record-bank.json