Create and use de-identified research databases. Preprocess, extract text, anonymise/de-identify, link, apply natural language processing, query for research, manage consent for contact.
I've ended up consolidating the two Django applications into one. This makes the containerisation much simpler.
There were some problems that I couldn't easily resolve with trying to make the browsable API test area work with multiple form fields. It would have required too much custom code. So for now I've removed support for multipart/form-data. All requests now need to be application/json. I don't think this will be a problem.
Getting the tests to work with pytest requires a few fudges to prevent errors both in pytest's initial automatic test discovery and later when running the tests themselves:
A RUNNING_TESTS environment variable that we check to stop various things happening
The tests require their own simplified Django settings file and no local settings file
I've also fixed some deprecation warnings: url()ugettext() and ugettext_lazy()
I've ended up consolidating the two Django applications into one. This makes the containerisation much simpler.
There were some problems that I couldn't easily resolve with trying to make the browsable API test area work with multiple form fields. It would have required too much custom code. So for now I've removed support for multipart/form-data. All requests now need to be application/json. I don't think this will be a problem.
Getting the tests to work with pytest requires a few fudges to prevent errors both in pytest's initial automatic test discovery and later when running the tests themselves:
I've also fixed some deprecation warnings:
url()
ugettext()
andugettext_lazy()