Description of the issue/feature this PR addresses
This Pull Request allows the user to set the maximum holding time (sample) before it does no longer make sense to perform a given test. Note that "holding time" is understood as the elapsed amount of time from the point of collection to the start of the analysis.
For instance, testing for arboviral illnesses like Dengue, Zika, and Chikungunya might not make sense 5 days after the collection date. Likewise, identification of pathogenic microorganisms in a food sample won't make sense e.g. 2d after collection.
A new field "Maximum holding time" has been added to services and analyses:
On sample creation form, when the user selects a collection date that makes not possible to conduct a given analysis within the holding time, the service becomes not available for selection and an icon is displayed instead, along with an informative text:
Service is still available for selection from "Manage analyses" view though.
An alert icon is also displayed in analyses listing either when the result was captured beyond the analytical holding time or when the holding time is due:
--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.
Description of the issue/feature this PR addresses
This Pull Request allows the user to set the maximum holding time (sample) before it does no longer make sense to perform a given test. Note that "holding time" is understood as the elapsed amount of time from the point of collection to the start of the analysis.
For instance, testing for arboviral illnesses like Dengue, Zika, and Chikungunya might not make sense 5 days after the collection date. Likewise, identification of pathogenic microorganisms in a food sample won't make sense e.g. 2d after collection.
A new field "Maximum holding time" has been added to services and analyses:
On sample creation form, when the user selects a collection date that makes not possible to conduct a given analysis within the holding time, the service becomes not available for selection and an icon is displayed instead, along with an informative text:
Service is still available for selection from "Manage analyses" view though.
An alert icon is also displayed in analyses listing either when the result was captured beyond the analytical holding time or when the holding time is due:
-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.