ProcedureLog schemas

Entry schemas for procedure logs: measurements followed over time for one procedure.

Table of contents

  1. How to use this family
  2. Quick type map
  3. Impedances log
  4. Linear displacement log
  5. Tetrode adjustment log

How to use this family

  • procedurelog: type selects 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>.json and never changes; https://www.brainstem.org/schemas/ProcedureLog/<Type>.json is the current version and https://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 codeTitleVersionRequired propertiesSchema
ImpedancesImpedances log1.0.3impedances1.0.3.json
LinearDisplacementLinear displacement log1.1.1displacement1.1.1.json
TetrodeAdjustmentTetrode adjustment log1.0.0tetrodes1.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.

PropertyTitleShapeRequiredAllowed valuesMeaning
impedancesImpedancesmulti-selectyes Impedance values ordered to correspond to the listed channels.
impedanceUnitImpedance unitchoice one of Ω, kΩ, MΩ; default "kΩ"The unit shared by all impedance values in this log entry.
measurementFrequencyMeasurement frequencyquantity with unit units Hz, kHz; default {"unit": "kHz"}The stimulus frequency used for the impedance measurement.
phasesPhases (°)multi-select  Phase angles ordered to correspond to the listed channels.
channelsList of channelslist 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.

PropertyTitleShapeRequiredAllowed valuesMeaning
displacementDisplacementquantity with unityesunits 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.

PropertyTitleShapeRequiredAllowed valuesMeaning
tetrodesTetrode adjustmentstable of rowsyesformat tableOne row per tetrode adjusted at this log time; tetrodes left untouched are omitted.
tetrodes[].tetrodeTetrodeintegeryes≥ 1Position of the tetrode on the drive, numbered from 1 as the lab labels it.
tetrodes[].advanceAdvancequantity with unityesunits µ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"
            }
        }
    ]
}