Skip to content

feat: add Physiological and Socioeconomic variable types#30

Open
clevinson wants to merge 2 commits into
mainfrom
clev/physiological-socioeconomic-variables
Open

feat: add Physiological and Socioeconomic variable types#30
clevinson wants to merge 2 commits into
mainfrom
clev/physiological-socioeconomic-variables

Conversation

@clevinson
Copy link
Copy Markdown
Collaborator

@clevinson clevinson commented May 25, 2026

Here's how I've added these new variable types:

  • socioeconomic is under InSituVariable, so it has all those standard fields of the InSituVariable variable type (not a user-facing variable name, this is just one we use in the schema to group together all the Discrete and Measured variables).
  • physiological is similar to all the other main variables (like pH, sediment, etc.) in that it can be "Calculated", "Discrete", or "Continuous".
    • For Discrete & Continuous physiological variables, we add these following specific physiological fields here.

Some questions that came up along the way:

  1. Socioeconomic units: units is currently required for SocioeconomicVariable (also inherited from InSituVariable), is that OK?
  2. Physiological variable discrete/continuous/calculated: Physiological variables currently can be both discrete and continuous, following the same pattern as pH, TA, DIC, etc. A researcher selects "Physiological" as the variable type, then chooses measured (discrete or continuous) or calculated. Do all of these options apply?

Let me know if you have any feedback or suggestions to change the above.

corresponding Metadata Builder PR is here: submarine-mrv/oae-metadata-builder#42

Add DiscretePhysiologicalVariable and ContinuousPhysiologicalVariable
under MeasuredVariable with MeasuredPhysiologicalFields mixin (biological
subject, taxonomic ID, life stage, experimental design fields).

Add SocioeconomicVariable under InSituVariable with study characterization
fields (quantitative/qualitative, social study type, site characterization).
No QC, instrument, or calibration fields.

New enums: TaxonomicCodeSystem, LifeStage, QuantitativeQualitative,
SocialStudyType. Add physiological and socioeconomic to VariableType enum.

Update Variables docs page: mermaid diagram, type table, mapping table
(also adds missing ContinuousCO2Variable), type-specific traits section
with links to auto-generated mixin pages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://submarine-mrv.github.io/oae-data-protocol/pr-preview/pr-30/

Built to branch gh-pages at 2026-06-02 16:58 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant