anu-act-health-covid19-support / patientpaths

a clinical pathway modelling toolkit for everyone
GNU General Public License v3.0
2 stars 0 forks source link

jsonschema for data files #7

Closed benswift closed 4 years ago

benswift commented 4 years ago

We should have jsonschema "schema" files (which themselves are just JSON) for:

@Markopolo141 I notice that you added src/patientpaths/input2.json in the draft_json_input1 branch. If that's just a data file, the idea is that it would validate with the abovementioned schema files.

Then we could use this to generate automated tests, and also get e.g. Rob/Katie to help us put even stricter & more accurate bounds on the input values.

Again, @Zac-HD this is probably something where @Markopolo141 can fill out the schema once there's some scaffolding in place, but it'd be useful if you set things up in a way which is most natural (as per #6 ).

benswift commented 4 years ago

based on our discussion last week, we won't use jsonschema for the current version, so I'll close this issue for now