ProcedureLog schemas
Entry schemas for procedure logs: measurements followed over time for one procedure.
Table of contents
How to use this family
procedurelog:typeselects the type; each log entry added through the entry actions is validated against it.- Every version is published at
https://www.brainstem.org/schemas/ProcedureLog/<Type>/<version>.jsonand never changes;https://www.brainstem.org/schemas/ProcedureLog/<Type>.jsonis the current version andhttps://www.brainstem.org/schemas/ProcedureLog/<Type>/lists the versions. See Public schemas. - Quantities are objects
{"value": <number>, "unit": "<code>"}. Property paths with[]are inside a repeatable list of rows. The server sets the schema version field itself.
Quick type map
| Type code | Title | Version | Required properties | Schema |
|---|---|---|---|---|
Impedances | Impedances log | 1.0.3 | impedances | 1.0.3.json |
LinearDisplacement | Linear displacement log | 1.1.1 | displacement | 1.1.1.json |
TetrodeAdjustment | Tetrode adjustment log | 1.0.0 | tetrodes | 1.0.0.json |
Impedances log
- type code
Impedances· version 1.0.3 · schema
Logs electrode impedance measurements per channel, with impedance and phase values, unit and measurement frequency, for example to track an implant over days.
| Property | Title | Shape | Required | Allowed values | Meaning |
|---|---|---|---|---|---|
impedances | Impedances | multi-select | yes | Impedance values ordered to correspond to the listed channels. | |
impedanceUnit | Impedance unit | choice | one of Ω, kΩ, MΩ; default "kΩ" | The unit shared by all impedance values in this log entry. | |
measurementFrequency | Measurement frequency | quantity with unit | units Hz, kHz; default {"unit": "kHz"} | The stimulus frequency used for the impedance measurement. | |
phases | Phases (°) | multi-select | Phase angles ordered to correspond to the listed channels. | ||
channels | List of channels | list of integers | Channel numbers corresponding by position to the impedance and phase arrays. |
Illustrative payload:
{
"impedances": [
"text"
],
"impedanceUnit": "Ω",
"measurementFrequency": {
"value": 1,
"unit": "kHz"
}
}
Linear displacement log
- type code
LinearDisplacement· version 1.1.1 · schema
Logs the displacement of a movable implant at each log time, for example a probe advanced on a microdrive.
| Property | Title | Shape | Required | Allowed values | Meaning |
|---|---|---|---|---|---|
displacement | Displacement | quantity with unit | yes | units nm, µm, mm, cm, m; default {"unit": "µm"} | The signed or absolute displacement recorded at this log time. |
Illustrative payload:
{
"displacement": {
"value": 1,
"unit": "µm"
}
}
Tetrode adjustment log
- type code
TetrodeAdjustment· version 1.0.0 · schema
Logs adjustments of individual tetrodes on a drive, with one row per tetrode moved at each log time.
| Property | Title | Shape | Required | Allowed values | Meaning |
|---|---|---|---|---|---|
tetrodes | Tetrode adjustments | table of rows | yes | format table | One row per tetrode adjusted at this log time; tetrodes left untouched are omitted. |
tetrodes[].tetrode | Tetrode | integer | yes | ≥ 1 | Position of the tetrode on the drive, numbered from 1 as the lab labels it. |
tetrodes[].advance | Advance | quantity with unit | yes | units µm, mm, turn, °; default {"unit": "turn"} | How far the tetrode was moved in this adjustment, as a distance or as screw rotation; negative values retract. |
Illustrative payload:
{
"tetrodes": [
{
"tetrode": 1,
"advance": {
"value": 1,
"unit": "turn"
}
}
]
}