diff --git a/README.rst b/README.rst index eba8a49..01d7743 100644 --- a/README.rst +++ b/README.rst @@ -24,7 +24,7 @@ This extension adds Diseases, Signs and Symptoms handling to `SENAITE LIMS`_. License ------- -**SENAITE.DIAGNOSIS** Copyright (C) 2022-2023 RIDING BYTES & NARALABS +**SENAITE.DIAGNOSIS** Copyright (C) 2022-2024 RIDING BYTES & NARALABS This program is free software; you can redistribute it and/or modify it under the terms of the `GNU General Public License version 2`_ as published diff --git a/docs/changelog.rst b/docs/changelog.rst index 1741f2b..d6e7c6f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,7 +1,7 @@ Changelog ========= -1.0.0 (Unreleased) +1.0.0 (2024-01-11) ------------------ - First version diff --git a/setup.py b/setup.py index fa3bf4c..6701bd7 100644 --- a/setup.py +++ b/setup.py @@ -36,8 +36,7 @@ include_package_data=True, zip_safe=False, install_requires=[ - "senaite.lims>=2.3.0", - "senaite.patient", + "senaite.patient>=1.4.0", ], extras_require={ "test": [ diff --git a/src/senaite/__init__.py b/src/senaite/__init__.py index eeb9bc9..fa0bd5a 100644 --- a/src/senaite/__init__.py +++ b/src/senaite/__init__.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. try: diff --git a/src/senaite/diagnosis/__init__.py b/src/senaite/diagnosis/__init__.py index 895c01c..bb04e93 100644 --- a/src/senaite/diagnosis/__init__.py +++ b/src/senaite/diagnosis/__init__.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. import logging diff --git a/src/senaite/diagnosis/browser/__init__.py b/src/senaite/diagnosis/browser/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/browser/__init__.py +++ b/src/senaite/diagnosis/browser/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/browser/content/__init__.py b/src/senaite/diagnosis/browser/content/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/browser/content/__init__.py +++ b/src/senaite/diagnosis/browser/content/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/browser/content/diseases.py b/src/senaite/diagnosis/browser/content/diseases.py index b003977..8132d12 100644 --- a/src/senaite/diagnosis/browser/content/diseases.py +++ b/src/senaite/diagnosis/browser/content/diseases.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. import collections diff --git a/src/senaite/diagnosis/browser/content/etiologicagents.py b/src/senaite/diagnosis/browser/content/etiologicagents.py index b10d933..01b7ff4 100644 --- a/src/senaite/diagnosis/browser/content/etiologicagents.py +++ b/src/senaite/diagnosis/browser/content/etiologicagents.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. import collections diff --git a/src/senaite/diagnosis/browser/content/symptoms.py b/src/senaite/diagnosis/browser/content/symptoms.py index 2efac33..350a97f 100644 --- a/src/senaite/diagnosis/browser/content/symptoms.py +++ b/src/senaite/diagnosis/browser/content/symptoms.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. import collections diff --git a/src/senaite/diagnosis/browser/theme/__init__.py b/src/senaite/diagnosis/browser/theme/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/browser/theme/__init__.py +++ b/src/senaite/diagnosis/browser/theme/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/browser/theme/icons.py b/src/senaite/diagnosis/browser/theme/icons.py index baf466c..23ffbcc 100644 --- a/src/senaite/diagnosis/browser/theme/icons.py +++ b/src/senaite/diagnosis/browser/theme/icons.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. import os diff --git a/src/senaite/diagnosis/config.py b/src/senaite/diagnosis/config.py index f201a6c..2f22f92 100644 --- a/src/senaite/diagnosis/config.py +++ b/src/senaite/diagnosis/config.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. PRODUCT_NAME = "senaite.diagnosis" diff --git a/src/senaite/diagnosis/content/__init__.py b/src/senaite/diagnosis/content/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/content/__init__.py +++ b/src/senaite/diagnosis/content/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/content/analysisrequest.py b/src/senaite/diagnosis/content/analysisrequest.py index 1d6c3d8..e08b444 100644 --- a/src/senaite/diagnosis/content/analysisrequest.py +++ b/src/senaite/diagnosis/content/analysisrequest.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from archetypes.schemaextender.interfaces import IBrowserLayerAwareExtender diff --git a/src/senaite/diagnosis/content/disease.py b/src/senaite/diagnosis/content/disease.py index 2f8ad2f..c246c5d 100644 --- a/src/senaite/diagnosis/content/disease.py +++ b/src/senaite/diagnosis/content/disease.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from AccessControl import ClassSecurityInfo diff --git a/src/senaite/diagnosis/content/diseases.py b/src/senaite/diagnosis/content/diseases.py index 8ff70b5..928f729 100644 --- a/src/senaite/diagnosis/content/diseases.py +++ b/src/senaite/diagnosis/content/diseases.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from plone.dexterity.content import Container diff --git a/src/senaite/diagnosis/content/etiologicagent.py b/src/senaite/diagnosis/content/etiologicagent.py index 235e3dc..ca61c34 100644 --- a/src/senaite/diagnosis/content/etiologicagent.py +++ b/src/senaite/diagnosis/content/etiologicagent.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from AccessControl import ClassSecurityInfo diff --git a/src/senaite/diagnosis/content/etiologicagents.py b/src/senaite/diagnosis/content/etiologicagents.py index 54d3642..3998f5a 100644 --- a/src/senaite/diagnosis/content/etiologicagents.py +++ b/src/senaite/diagnosis/content/etiologicagents.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from plone.dexterity.content import Container diff --git a/src/senaite/diagnosis/content/fields.py b/src/senaite/diagnosis/content/fields.py index 0bba843..0aedb53 100644 --- a/src/senaite/diagnosis/content/fields.py +++ b/src/senaite/diagnosis/content/fields.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from archetypes.schemaextender.field import ExtensionField diff --git a/src/senaite/diagnosis/content/symptom.py b/src/senaite/diagnosis/content/symptom.py index 0a4d34d..1d5273e 100644 --- a/src/senaite/diagnosis/content/symptom.py +++ b/src/senaite/diagnosis/content/symptom.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from AccessControl import ClassSecurityInfo diff --git a/src/senaite/diagnosis/content/symptoms.py b/src/senaite/diagnosis/content/symptoms.py index c46dbd4..028bdfa 100644 --- a/src/senaite/diagnosis/content/symptoms.py +++ b/src/senaite/diagnosis/content/symptoms.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from plone.dexterity.content import Container diff --git a/src/senaite/diagnosis/interfaces.py b/src/senaite/diagnosis/interfaces.py index d75deb5..d91e9ed 100644 --- a/src/senaite/diagnosis/interfaces.py +++ b/src/senaite/diagnosis/interfaces.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from bika.lims.interfaces import IDoNotSupportSnapshots diff --git a/src/senaite/diagnosis/patches/__init__.py b/src/senaite/diagnosis/patches/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/patches/__init__.py +++ b/src/senaite/diagnosis/patches/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/patches/content/__init__.py b/src/senaite/diagnosis/patches/content/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/patches/content/__init__.py +++ b/src/senaite/diagnosis/patches/content/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/patches/content/analysisrequest.py b/src/senaite/diagnosis/patches/content/analysisrequest.py index 8974eab..ba03762 100644 --- a/src/senaite/diagnosis/patches/content/analysisrequest.py +++ b/src/senaite/diagnosis/patches/content/analysisrequest.py @@ -15,10 +15,9 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. - def getRawSymptoms(self): # noqa camelcase """Returns the UIDs of the Symptom objects assigned to the Sample """ @@ -94,4 +93,4 @@ def getEtiologicAgents(self): # noqa camelcase def setEtiologicAgents(self, value): # noqa camelcase """Sets the etiologic agents to the sample """ - self.getField("EtiologicAgents").set(self, value) \ No newline at end of file + self.getField("EtiologicAgents").set(self, value) diff --git a/src/senaite/diagnosis/permissions.py b/src/senaite/diagnosis/permissions.py index 0bbde54..ba63108 100644 --- a/src/senaite/diagnosis/permissions.py +++ b/src/senaite/diagnosis/permissions.py @@ -15,11 +15,10 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. # Field permissions for Samples (aka AnalysisRequest) - FieldEditDateOfDiagnosis = "senaite.diagnosis: Field: Edit Date of Diagnosis" FieldEditDateOfOnset = "senaite.diagnosis: Field: Edit Date of Onset" FieldEditEtiologicAgents = "senaite.diagnosis: Field: Edit Etiologic Agents" diff --git a/src/senaite/diagnosis/setuphandlers.py b/src/senaite/diagnosis/setuphandlers.py index c8b66dc..2d84d04 100644 --- a/src/senaite/diagnosis/setuphandlers.py +++ b/src/senaite/diagnosis/setuphandlers.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from bika.lims import api diff --git a/src/senaite/diagnosis/subscribers/__init__.py b/src/senaite/diagnosis/subscribers/__init__.py index 7b053d3..baea2a2 100644 --- a/src/senaite/diagnosis/subscribers/__init__.py +++ b/src/senaite/diagnosis/subscribers/__init__.py @@ -15,5 +15,5 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. diff --git a/src/senaite/diagnosis/subscribers/upgrade.py b/src/senaite/diagnosis/subscribers/upgrade.py index cc0b42d..8f1c0f6 100644 --- a/src/senaite/diagnosis/subscribers/upgrade.py +++ b/src/senaite/diagnosis/subscribers/upgrade.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. from bika.lims.api import get_portal diff --git a/src/senaite/diagnosis/utils.py b/src/senaite/diagnosis/utils.py index 8c79d39..53f46e9 100644 --- a/src/senaite/diagnosis/utils.py +++ b/src/senaite/diagnosis/utils.py @@ -15,7 +15,7 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright 2022 by it's authors. +# Copyright 2022-2024 by it's authors. # Some rights reserved, see README and LICENSE. import re