cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
91 stars 25 forks source link

What's the Null values section in the double-click-the-header help? #244

Closed turbomam closed 2 years ago

turbomam commented 2 years ago

Possibly see also #243

ddooley commented 2 years ago

At moment there is a feature in DH that allows the "data status" column of a template (in data.tsv) to be a (nominal) list of permitted null values - e.g. "Not Applicable; Missing; Not Collected; Not Provided; Restricted Access" to be added in addition to whatever field validation is applicable to a field (decimal, date, enumerated list). The double click header help lists off the allowed null value tokens for the field.

ddooley commented 2 years ago

I don't quite know how to multiplex/demultiplex this into the LinkML specification though. See https://github.com/linkml/linkml/issues/178

turbomam commented 2 years ago

Thanks, that makes sense

ddooley commented 2 years ago

The ability to specify multiple ranges provides a solution for having null value categorical choices added to any desired field, so will implement that solution, per bottom of linkml/linkml#178

ddooley commented 2 years ago

This is now done on the WIP-validation branch which will be merged soon.