When we ingest data, we want to include the qualification codes alongside the data in the properties field (see the datapoints.json endpoint for an example of what the properties object looks like. kooper and I discussed that we could create these as additional parameters in the properties object.
For example, a datapoint right now looks like this (without a QAQC code):
properties: {
"Discharge, cubit ft per second": 100,
"Nitrate, mg/l": 25
}
I'd like to do it in a more verbose format, but this will break everything in geodashboard if we did it this way, because geodashboard reads the contents of properties in the assumption that everything is a parameter:
properties: {
"parameters" : [
,
...
]
}
So Rob and I are proposing the following:
properties: {
"discharge": 100,
"discharge-qc": "E"
}
Then inside the project's application config, we can define what "discharge" means and what "E" means for a qc code.