BDMS-139: Create Parameter table#152
Conversation
refactor: Add valid limit_type values to the `lexicon.json` file.
Codecov Report❌ Patch coverage is
|
…can be discovered
|
@ksmuczynski please update the lexicon.json file to use the new normalized structure. Then I will merge this PR |
|
@ksmuczynski tests are failing. once they are fixed i will merge PR |
Create parameter fixtures, update test files, update schema files, update lexicon
Resolve merge conflicts
|
@jirhiker three updates needed to be made to ensure the tests past and that the API is working as expected:
meant that if This error didn't occur previously because after the
|
Why
This PR addresses the following problem / context:
Parametertable to store centralized metadata about each parameter, such as its category (e.g., 'Metals', 'Field Parameter') and its unique chemical identifier (CAS Number).Parametertable is is to ensure that every observation in the database is linked to a single, authoritative definition of what was measured.Regulatory_Limittable to store all the specific, citable standards and limits, regulatory and health-based, associated with a given parameter.Regulatory_Limittable allows a singleParameterto have multiple different limits set by various agencies (e.g., a federal EPA limit and a state-level NMED limit).How
Implementation summary - the following was changed / added / removed:
Parametertable and populated with appropriate fields and relationships.Regulatory_Limittable and populated with appropriate fields and relationships.lexicon.jsonfile to include valid values for thelimit_typefield.ParameterandRegulatoryLimittables to the__init__.pyfileNotes
Any special considerations, workarounds, or follow-up work to note?