Big-Life-Lab / PHES-ODM

The Public Health Environmental Surveillance Open Data Model (PHES-ODM, or ODM). A data model, dictionary and support tools for environmental surveillance.
Creative Commons Attribution Share Alike 4.0 International
54 stars 18 forks source link

Removing "Default" fields in Schema #171

Closed jeandavidt closed 2 years ago

jeandavidt commented 3 years ago

Maybe "Default" fields (e.g., SampleCollectionDefault, MeasureFractionAnalyzedDefault, ...) belong in a config file rather that in the structure of the model itself, as they:

Having these defaults in the mapper configuration files would allow ODM users to still have default values if they wish, but without adding possibly confusing data to the ODM.

DougManuel commented 3 years ago

I agree with all points that you raise. There is the benefit of having a separate configuration file for other parts and uses of the ODM.

In addition to configurations for mappers, there is likely a need for configuration files for other libraries such as sharing and validation.

There is the benefit of having an explicitly defined configuration file as part of the dictionary. Let's plan on at least moving the current defaults to a new table or configuration file in the next major version update (something like config.csv or config.json.

mathew-thomson commented 2 years ago

Defaults have been removed from the dictionary for version 2. Flagging for future that these will be migrated over to a configuration file. Closing this issue for now.