maleo-enums 0.0.26__tar.gz → 0.0.27__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/PKG-INFO +2 -2
  2. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/maleo_enums.egg-info/PKG-INFO +2 -2
  3. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/maleo_enums.egg-info/SOURCES.txt +6 -2
  4. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/maleo_enums.egg-info/requires.txt +1 -1
  5. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/pyproject.toml +2 -2
  6. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/cardinality.py +5 -1
  7. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/environment.py +3 -1
  8. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/expiration.py +3 -1
  9. maleo_enums-0.0.27/src/identity.py +42 -0
  10. maleo_enums-0.0.27/src/medical.py +105 -0
  11. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/order.py +3 -1
  12. maleo_enums-0.0.27/src/organization.py +93 -0
  13. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/service.py +29 -13
  14. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/status.py +3 -1
  15. maleo_enums-0.0.26/src/role.py → maleo_enums-0.0.27/src/system.py +13 -12
  16. maleo_enums-0.0.27/src/user.py +22 -0
  17. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/LICENSE +0 -0
  18. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/README.md +0 -0
  19. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/maleo_enums.egg-info/dependency_links.txt +0 -0
  20. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/maleo_enums.egg-info/top_level.txt +0 -0
  21. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/setup.cfg +0 -0
  22. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/__init__.py +0 -0
  23. {maleo_enums-0.0.26 → maleo_enums-0.0.27}/src/connection.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -14,7 +14,7 @@ Requires-Dist: colorama>=0.4.6
14
14
  Requires-Dist: distlib>=0.4.0
15
15
  Requires-Dist: filelock>=3.19.1
16
16
  Requires-Dist: identify>=2.6.13
17
- Requires-Dist: maleo-types>=0.0.6
17
+ Requires-Dist: maleo-types>=0.0.7
18
18
  Requires-Dist: mypy_extensions>=1.1.0
19
19
  Requires-Dist: nodeenv>=1.9.1
20
20
  Requires-Dist: packaging>=25.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-enums
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
4
  Summary: Enums package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -14,7 +14,7 @@ Requires-Dist: colorama>=0.4.6
14
14
  Requires-Dist: distlib>=0.4.0
15
15
  Requires-Dist: filelock>=3.19.1
16
16
  Requires-Dist: identify>=2.6.13
17
- Requires-Dist: maleo-types>=0.0.6
17
+ Requires-Dist: maleo-types>=0.0.7
18
18
  Requires-Dist: mypy_extensions>=1.1.0
19
19
  Requires-Dist: nodeenv>=1.9.1
20
20
  Requires-Dist: packaging>=25.0
@@ -11,7 +11,11 @@ src/cardinality.py
11
11
  src/connection.py
12
12
  src/environment.py
13
13
  src/expiration.py
14
+ src/identity.py
15
+ src/medical.py
14
16
  src/order.py
15
- src/role.py
17
+ src/organization.py
16
18
  src/service.py
17
- src/status.py
19
+ src/status.py
20
+ src/system.py
21
+ src/user.py
@@ -5,7 +5,7 @@ colorama>=0.4.6
5
5
  distlib>=0.4.0
6
6
  filelock>=3.19.1
7
7
  identify>=2.6.13
8
- maleo-types>=0.0.6
8
+ maleo-types>=0.0.7
9
9
  mypy_extensions>=1.1.0
10
10
  nodeenv>=1.9.1
11
11
  packaging>=25.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo-enums"
7
- version = "0.0.26"
7
+ version = "0.0.27"
8
8
  description = "Enums package for MaleoSuite"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -20,7 +20,7 @@ dependencies = [
20
20
  "distlib>=0.4.0",
21
21
  "filelock>=3.19.1",
22
22
  "identify>=2.6.13",
23
- "maleo-types>=0.0.6",
23
+ "maleo-types>=0.0.7",
24
24
  "mypy_extensions>=1.1.0",
25
25
  "nodeenv>=1.9.1",
26
26
  "packaging>=25.0",
@@ -1,5 +1,5 @@
1
1
  from enum import StrEnum
2
- from typing import List, Optional, Sequence
2
+ from typing import List, Optional, Sequence, TypeVar
3
3
  from maleo.types.string import ListOfStrings
4
4
 
5
5
 
@@ -12,7 +12,9 @@ class Cardinality(StrEnum):
12
12
  return [e.value for e in cls]
13
13
 
14
14
 
15
+ CardinalityT = TypeVar("CardinalityT", bound=Cardinality)
15
16
  OptionalCardinality = Optional[Cardinality]
17
+ OptionalCardinalityT = TypeVar("OptionalCardinalityT", bound=OptionalCardinality)
16
18
  ListOfCardinalities = List[Cardinality]
17
19
  OptionalListOfCardinalities = Optional[ListOfCardinalities]
18
20
  SequenceOfCardinalities = Sequence[Cardinality]
@@ -46,7 +48,9 @@ class Relationship(StrEnum):
46
48
  return [e.value for e in cls]
47
49
 
48
50
 
51
+ RelationshipT = TypeVar("RelationshipT", bound=Relationship)
49
52
  OptionalRelationship = Optional[Relationship]
53
+ OptionalRelationshipT = TypeVar("OptionalRelationshipT", bound=OptionalRelationship)
50
54
  ListOfRelationships = List[Relationship]
51
55
  OptionalListOfRelationships = Optional[ListOfRelationships]
52
56
  SequenceOfRelationships = Sequence[Relationship]
@@ -1,5 +1,5 @@
1
1
  from enum import StrEnum
2
- from typing import List, Optional, Sequence
2
+ from typing import List, Optional, Sequence, TypeVar
3
3
  from maleo.types.string import ListOfStrings
4
4
 
5
5
 
@@ -13,7 +13,9 @@ class Environment(StrEnum):
13
13
  return [e.value for e in cls]
14
14
 
15
15
 
16
+ EnvironmentT = TypeVar("EnvironmentT", bound=Environment)
16
17
  OptionalEnvironment = Optional[Environment]
18
+ OptionalEnvironmentT = TypeVar("OptionalEnvironmentT", bound=OptionalEnvironment)
17
19
  ListOfEnvironments = List[Environment]
18
20
  OptionalListOfEnvironments = Optional[ListOfEnvironments]
19
21
  SequenceOfEnvironments = Sequence[Environment]
@@ -1,5 +1,5 @@
1
1
  from enum import IntEnum
2
- from typing import List, Optional, Sequence
2
+ from typing import List, Optional, Sequence, TypeVar
3
3
  from maleo.types.integer import ListOfIntegers
4
4
 
5
5
 
@@ -25,7 +25,9 @@ class Expiration(IntEnum):
25
25
  return [e.value for e in cls]
26
26
 
27
27
 
28
+ ExpirationT = TypeVar("ExpirationT", bound=Expiration)
28
29
  OptionalExpiration = Optional[Expiration]
30
+ OptionalExpirationT = TypeVar("OptionalExpirationT", bound=OptionalExpiration)
29
31
  ListOfExpirations = List[Expiration]
30
32
  OptionalListOfExpirations = Optional[ListOfExpirations]
31
33
  SequenceOfExpirations = Sequence[Expiration]
@@ -0,0 +1,42 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class BloodType(StrEnum):
7
+ A = "a"
8
+ B = "b"
9
+ AB = "ab"
10
+ O = "o" # noqa: E741
11
+
12
+ @classmethod
13
+ def choices(cls) -> ListOfStrings:
14
+ return [e.value for e in cls]
15
+
16
+
17
+ BloodTypeT = TypeVar("BloodTypeT", bound=BloodType)
18
+ OptionalBloodType = Optional[BloodType]
19
+ OptionalBloodTypeT = TypeVar("OptionalBloodTypeT", bound=OptionalBloodType)
20
+ ListOfBloodTypes = List[BloodType]
21
+ OptionalListOfBloodTypes = Optional[ListOfBloodTypes]
22
+ SequenceOfBloodTypes = Sequence[BloodType]
23
+ OptionalSequenceOfBloodTypes = Optional[SequenceOfBloodTypes]
24
+
25
+
26
+ class Gender(StrEnum):
27
+ UNDISCLOSED = "undisclosed"
28
+ FEMALE = "female"
29
+ MALE = "male"
30
+
31
+ @classmethod
32
+ def choices(cls) -> ListOfStrings:
33
+ return [e.value for e in cls]
34
+
35
+
36
+ GenderT = TypeVar("GenderT", bound=Gender)
37
+ OptionalGender = Optional[Gender]
38
+ OptionalGenderT = TypeVar("OptionalGenderT", bound=OptionalGender)
39
+ ListOfGenders = List[Gender]
40
+ OptionalListOfGenders = Optional[ListOfGenders]
41
+ SequenceOfGenders = Sequence[Gender]
42
+ OptionalSequenceOfGenders = Optional[SequenceOfGenders]
@@ -0,0 +1,105 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class Role(StrEnum):
7
+ # Level 1: Director category
8
+ DIRECTOR = "director"
9
+ PRESIDENT = "president"
10
+ VICE_PRESIDENT = "vice_president"
11
+ SECRETARY = "secretary"
12
+ TREASURER = "treasurer"
13
+ # Level 1: Management category
14
+ HEAD = "head"
15
+ CEO = "ceo"
16
+ COO = "coo"
17
+ CFO = "cfo"
18
+ CCO = "cco"
19
+ # Level 1: Administration category
20
+ ADMINISTRATOR = "administrator"
21
+ ADMISSION = "admission"
22
+ CASHIER = "cashier"
23
+ CASEMIX = "casemix"
24
+ MEDICAL_RECORD = "medical_record"
25
+ # Level 1: Medical category
26
+ DOCTOR = "doctor"
27
+ NURSE = "nurse"
28
+ MIDWIFE = "midwife"
29
+ # Level 2: Doctor's specialization
30
+ INTERNIST = "internist"
31
+ PEDIATRICIAN = "pediatrician"
32
+ OBSTETRICIAN = "obstetrician"
33
+ GYNECOLOGIST = "gynecologist"
34
+ OBGYN = "obgyn"
35
+ PSYCHIATRIST = "psychiatrist"
36
+ DERMATOLOGIST = "dermatologist"
37
+ NEUROLOGIST = "neurologist"
38
+ CARDIOLOGIST = "cardiologist"
39
+ OPHTHALMOLOGIST = "ophthalmologist"
40
+ RADIOLOGIST = "radiologist"
41
+ ANESTHESIOLOGIST = "anesthesiologist"
42
+ HEMATOLOGIST = "hematologist"
43
+ ENDOCRINOLOGIST = "endocrinologist"
44
+ GASTROENTEROLOGIST = "gastroenterologist"
45
+ NEPHROLOGIST = "nephrologist"
46
+ UROLOGIST = "urologist"
47
+ PULMONOLOGIST = "pulmonologist"
48
+ RHEUMATOLOGIST = "rheumatologist"
49
+ SURGEON = "surgeon"
50
+ # Level 3: Surgeon's specialization
51
+ ORTHOPEDIC_SURGEON = "orthopedic_surgeon"
52
+ # Level 2: Nurse's specialization
53
+ SCRUB_NURSE = "scrub_nurse"
54
+ TRIAGE_NURSE = "triage_nurse"
55
+ ICU_NURSE = "icu_nurse"
56
+ NICU_NURSE = "nicu_nurse"
57
+ OR_NURSE = "or_nurse"
58
+ ER_NURSE = "er_nurse"
59
+ # Level 1: Technical category
60
+ TECHNICIAN = "technician"
61
+ LABORATORY_TECHNICIAN = "laboratory_technician"
62
+ RADIOGRAPHER = "radiographer"
63
+ SONOGRAPHER = "sonographer"
64
+ # Level 1: Therapeutic category
65
+ THERAPIST = "therapist"
66
+ PHYSIOTHERAPIST = "physiotherapist"
67
+ OCCUPATIONAL_THERAPIST = "occupational_therapist"
68
+ SPEECH_THERAPIST = "speech_therapist"
69
+ PSYCHOLOGIST = "psychologist"
70
+ # Level 1: Support category
71
+ PHARMACIST = "pharmacist"
72
+ NUTRITIONIST = "nutritionist"
73
+
74
+ @classmethod
75
+ def choices(cls) -> ListOfStrings:
76
+ return [e.value for e in cls]
77
+
78
+
79
+ RoleT = TypeVar("RoleT", bound=Role)
80
+ OptionalRole = Optional[Role]
81
+ OptionalRoleT = TypeVar("OptionalRoleT", bound=OptionalRole)
82
+ ListOfRoles = List[Role]
83
+ OptionalListOfRoles = Optional[ListOfRoles]
84
+ SequenceOfRoles = Sequence[Role]
85
+ OptionalSequenceOfRoles = Optional[SequenceOfRoles]
86
+
87
+
88
+ class Service(StrEnum):
89
+ EMERGENCY = "emergency"
90
+ INPATIENT = "inpatient"
91
+ INTENSIVE = "intensive"
92
+ OUTPATIENT = "outpatient"
93
+
94
+ @classmethod
95
+ def choices(cls) -> ListOfStrings:
96
+ return [e.value for e in cls]
97
+
98
+
99
+ ServiceT = TypeVar("ServiceT", bound=Service)
100
+ OptionalService = Optional[Service]
101
+ OptionalServiceT = TypeVar("OptionalServiceT", bound=OptionalService)
102
+ ListOfServices = List[Service]
103
+ OptionalListOfServices = Optional[ListOfServices]
104
+ SequenceOfServices = Sequence[Service]
105
+ OptionalSequenceOfServices = Optional[SequenceOfServices]
@@ -1,5 +1,5 @@
1
1
  from enum import StrEnum
2
- from typing import List, Optional, Sequence
2
+ from typing import List, Optional, Sequence, TypeVar
3
3
  from maleo.types.string import ListOfStrings
4
4
 
5
5
 
@@ -12,7 +12,9 @@ class Order(StrEnum):
12
12
  return [e.value for e in cls]
13
13
 
14
14
 
15
+ OrderT = TypeVar("OrderT", bound=Order)
15
16
  OptionalOrder = Optional[Order]
17
+ OptionalOrderT = TypeVar("OptionalOrderT", bound=OptionalOrder)
16
18
  ListOfOrders = List[Order]
17
19
  OptionalListOfOrders = Optional[ListOfOrders]
18
20
  SequenceOfOrders = Sequence[Order]
@@ -0,0 +1,93 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class OrganizationType(StrEnum):
7
+ APPLICATION = "application"
8
+ BRANCH = "branch"
9
+ CLIENT = "client"
10
+ CLINIC = "clinic"
11
+ CORPORATION = "corporation"
12
+ DEPARTMENT = "department"
13
+ DIVISION = "division"
14
+ GOVERNMENT = "government"
15
+ HOSPITAL_SYSTEM = "hospital_system"
16
+ HOSPITAL = "hospital"
17
+ INSURANCE_PROVIDER = "insurance_provider"
18
+ INTERNAL = "internal"
19
+ LABORATORY = "laboratory"
20
+ MEDICAL_GROUP = "medical_group"
21
+ NETWORK = "network"
22
+ PARTNER = "partner"
23
+ PHARMACY = "pharmacy"
24
+ PRIMARY_HEALTH_CARE = "primary_health_care"
25
+ PUBLIC_HEALTH_AGENCY = "public_health_agency"
26
+ REGIONAL_OFFICE = "regional_office"
27
+ REGULAR = "regular"
28
+ RESEARCH_INSTITUTE = "research_institute"
29
+ SUBSIDIARY = "subsidiary"
30
+ THIRD_PARTY_ADMINISTRATOR = "third_party_administrator"
31
+ UNIT = "unit"
32
+ VENDOR = "vendor"
33
+
34
+ @classmethod
35
+ def choices(cls) -> ListOfStrings:
36
+ return [e.value for e in cls]
37
+
38
+
39
+ OrganizationTypeT = TypeVar("OrganizationTypeT", bound=OrganizationType)
40
+ OptionalOrganizationType = Optional[OrganizationType]
41
+ OptionalOrganizationTypeT = TypeVar(
42
+ "OptionalOrganizationTypeT", bound=OptionalOrganizationType
43
+ )
44
+ ListOfOrganizationTypes = List[OrganizationType]
45
+ OptionalListOfOrganizationTypes = Optional[ListOfOrganizationTypes]
46
+ SequenceOfOrganizationTypes = Sequence[OrganizationType]
47
+ OptionalSequenceOfOrganizationTypes = Optional[SequenceOfOrganizationTypes]
48
+
49
+
50
+ class Relation(StrEnum):
51
+ AFFILIATE = "affiliate"
52
+ APPLICATION = "application"
53
+ BRANCH = "branch"
54
+ CLIENT = "client"
55
+ DEPARTMENT = "department"
56
+ DIVISION = "division"
57
+ NETWORK_MEMBER = "network_member"
58
+ PARENT = "parent"
59
+ PARTNER = "partner"
60
+ SUBSIDIARY = "subsidiary"
61
+ VENDOR = "vendor"
62
+
63
+ @classmethod
64
+ def choices(cls) -> ListOfStrings:
65
+ return [e.value for e in cls]
66
+
67
+
68
+ RelationT = TypeVar("RelationT", bound=Relation)
69
+ OptionalRelation = Optional[Relation]
70
+ OptionalRelationT = TypeVar("OptionalRelationT", bound=OptionalRelation)
71
+ ListOfRelations = List[Relation]
72
+ OptionalListOfRelations = Optional[ListOfRelations]
73
+ SequenceOfRelations = Sequence[Relation]
74
+ OptionalSequenceOfRelations = Optional[SequenceOfRelations]
75
+
76
+
77
+ class Role(StrEnum):
78
+ OWNER = "owner"
79
+ ADMINISTRATOR = "administrator"
80
+ USER = "user"
81
+
82
+ @classmethod
83
+ def choices(cls) -> ListOfStrings:
84
+ return [e.value for e in cls]
85
+
86
+
87
+ RoleT = TypeVar("RoleT", bound=Role)
88
+ OptionalRole = Optional[Role]
89
+ OptionalRoleT = TypeVar("OptionalRoleT", bound=OptionalRole)
90
+ ListOfRoles = List[Role]
91
+ OptionalListOfRoles = Optional[ListOfRoles]
92
+ SequenceOfRoles = Sequence[Role]
93
+ OptionalSequenceOfRoles = Optional[SequenceOfRoles]
@@ -1,5 +1,5 @@
1
1
  from enum import StrEnum
2
- from typing import List, Optional, Sequence
2
+ from typing import List, Optional, Sequence, TypeVar
3
3
  from maleo.types.string import ListOfStrings
4
4
 
5
5
 
@@ -12,7 +12,9 @@ class ServiceType(StrEnum):
12
12
  return [e.value for e in cls]
13
13
 
14
14
 
15
+ ServiceTypeT = TypeVar("ServiceTypeT", bound=ServiceType)
15
16
  OptionalServiceType = Optional[ServiceType]
17
+ OptionalServiceTypeT = TypeVar("OptionalServiceTypeT", bound=OptionalServiceType)
16
18
  ListOfServiceTypes = List[ServiceType]
17
19
  OptionalListOfServiceTypes = Optional[ListOfServiceTypes]
18
20
  SequenceOfServiceTypes = Sequence[ServiceType]
@@ -28,14 +30,16 @@ class Category(StrEnum):
28
30
  return [e.value for e in cls]
29
31
 
30
32
 
33
+ CategoryT = TypeVar("CategoryT", bound=Category)
31
34
  OptionalCategory = Optional[Category]
35
+ OptionalCategoryT = TypeVar("OptionalCategoryT", bound=OptionalCategory)
32
36
  ListOfCategories = List[Category]
33
37
  OptionalListOfCategories = Optional[ListOfCategories]
34
38
  SequenceOfCategories = Sequence[Category]
35
39
  OptionalSequenceOfCategories = Optional[SequenceOfCategories]
36
40
 
37
41
 
38
- class SimpleKey(StrEnum):
42
+ class ShortKey(StrEnum):
39
43
  STUDIO = "studio"
40
44
  NEXUS = "nexus"
41
45
  TELEMETRY = "telemetry"
@@ -44,6 +48,7 @@ class SimpleKey(StrEnum):
44
48
  ACCESS = "access"
45
49
  WORKSHOP = "workshop"
46
50
  RESEARCH = "research"
51
+ REGISTRY = "registry"
47
52
  SOAPIE = "soapie"
48
53
  MEDIX = "medix"
49
54
  DICOM = "dicom"
@@ -57,11 +62,13 @@ class SimpleKey(StrEnum):
57
62
  return [e.value for e in cls]
58
63
 
59
64
 
60
- OptionalSimpleKey = Optional[SimpleKey]
61
- ListOfSimpleKeys = List[SimpleKey]
62
- OptionalListOfSimpleKeys = Optional[ListOfSimpleKeys]
63
- SequenceOfSimpleKeys = Sequence[SimpleKey]
64
- OptionalSequenceOfSimpleKeys = Optional[SequenceOfSimpleKeys]
65
+ ShortKeyT = TypeVar("ShortKeyT", bound=ShortKey)
66
+ OptionalShortKey = Optional[ShortKey]
67
+ OptionalShortKeyT = TypeVar("OptionalShortKeyT", bound=OptionalShortKey)
68
+ ListOfShortKeys = List[ShortKey]
69
+ OptionalListOfShortKeys = Optional[ListOfShortKeys]
70
+ SequenceOfShortKeys = Sequence[ShortKey]
71
+ OptionalSequenceOfShortKeys = Optional[SequenceOfShortKeys]
65
72
 
66
73
 
67
74
  class Key(StrEnum):
@@ -73,6 +80,7 @@ class Key(StrEnum):
73
80
  ACCESS = "maleo-access"
74
81
  WORKSHOP = "maleo-workshop"
75
82
  RESEARCH = "maleo-research"
83
+ REGISTRY = "maleo-registry"
76
84
  SOAPIE = "maleo-soapie"
77
85
  MEDIX = "maleo-medix"
78
86
  DICOM = "maleo-dicom"
@@ -86,14 +94,16 @@ class Key(StrEnum):
86
94
  return [e.value for e in cls]
87
95
 
88
96
 
97
+ KeyT = TypeVar("KeyT", bound=Key)
89
98
  OptionalKey = Optional[Key]
99
+ OptionalKeyT = TypeVar("OptionalKeyT", bound=OptionalKey)
90
100
  ListOfKeys = List[Key]
91
101
  OptionalListOfKeys = Optional[ListOfKeys]
92
102
  SequenceOfKeys = Sequence[Key]
93
103
  OptionalSequenceOfKeys = Optional[SequenceOfKeys]
94
104
 
95
105
 
96
- class SimpleName(StrEnum):
106
+ class ShortName(StrEnum):
97
107
  STUDIO = "Studio"
98
108
  NEXUS = "Nexus"
99
109
  TELEMETRY = "Telemetry"
@@ -102,6 +112,7 @@ class SimpleName(StrEnum):
102
112
  ACCESS = "Access"
103
113
  WORKSHOP = "Workshop"
104
114
  RESEARCH = "Research"
115
+ REGISTRY = "Registry"
105
116
  SOAPIE = "SOAPIE"
106
117
  MEDIX = "Medix"
107
118
  DICOM = "DICON"
@@ -115,11 +126,13 @@ class SimpleName(StrEnum):
115
126
  return [e.value for e in cls]
116
127
 
117
128
 
118
- OptionalSimpleName = Optional[SimpleName]
119
- ListOfSimpleNames = List[SimpleName]
120
- OptionalListOfSimpleNames = Optional[ListOfSimpleNames]
121
- SequenceOfSimpleNames = Sequence[SimpleName]
122
- OptionalSequenceOfSimpleNames = Optional[SequenceOfSimpleNames]
129
+ ShortNameT = TypeVar("ShortNameT", bound=ShortName)
130
+ OptionalShortName = Optional[ShortName]
131
+ OptionalShortNameT = TypeVar("OptionalShortNameT", bound=OptionalShortName)
132
+ ListOfShortNames = List[ShortName]
133
+ OptionalListOfShortNames = Optional[ListOfShortNames]
134
+ SequenceOfShortNames = Sequence[ShortName]
135
+ OptionalSequenceOfShortNames = Optional[SequenceOfShortNames]
123
136
 
124
137
 
125
138
  class Name(StrEnum):
@@ -131,6 +144,7 @@ class Name(StrEnum):
131
144
  ACCESS = "MaleoAccess"
132
145
  WORKSHOP = "MaleoWorkshop"
133
146
  RESEARCH = "MaleoResearch"
147
+ REGISTRY = "MaleoRegistry"
134
148
  SOAPIE = "MaleoSOAPIE"
135
149
  MEDIX = "MaleoMedix"
136
150
  DICOM = "MaleoDICON"
@@ -144,7 +158,9 @@ class Name(StrEnum):
144
158
  return [e.value for e in cls]
145
159
 
146
160
 
161
+ NameT = TypeVar("NameT", bound=Name)
147
162
  OptionalName = Optional[Name]
163
+ OptionalNameT = TypeVar("OptionalNameT", bound=OptionalName)
148
164
  ListOfNames = List[Name]
149
165
  OptionalListOfNames = Optional[ListOfNames]
150
166
  SequenceOfNames = Sequence[Name]
@@ -1,5 +1,5 @@
1
1
  from enum import StrEnum
2
- from typing import List, Optional, Sequence
2
+ from typing import List, Optional, Sequence, TypeVar
3
3
  from maleo.types.string import ListOfStrings
4
4
 
5
5
 
@@ -13,7 +13,9 @@ class DataStatus(StrEnum):
13
13
  return [e.value for e in cls]
14
14
 
15
15
 
16
+ DataStatusT = TypeVar("DataStatusT", bound=DataStatus)
16
17
  OptionalDataStatus = Optional[DataStatus]
18
+ OptionalDataStatusT = TypeVar("OptionalDataStatusT", bound=OptionalDataStatus)
17
19
  ListOfDataStatuses = List[DataStatus]
18
20
  OptionalListOfDataStatuses = Optional[ListOfDataStatuses]
19
21
  SequenceOfDataStatuses = Sequence[DataStatus]
@@ -1,29 +1,30 @@
1
1
  from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
2
3
  from maleo.types.string import ListOfStrings
3
4
 
4
5
 
5
- class Organization(StrEnum):
6
- OWNER = "owner"
7
- ADMINISTRATOR = "administrator"
8
- USER = "user"
9
-
10
- @classmethod
11
- def choices(cls) -> ListOfStrings:
12
- return [e.value for e in cls]
13
-
14
-
15
- class System(StrEnum):
6
+ class Role(StrEnum):
16
7
  ADMINISTRATOR = "administrator"
17
8
  ANALYST = "analyst"
18
9
  ENGINEER = "engineer"
19
- SUPPORT = "support"
10
+ GUEST = "guest"
20
11
  MANAGER = "manager"
21
12
  OFFICER = "officer"
22
13
  OPERATIONS = "operations"
23
14
  SECURITY = "security"
15
+ SUPPORT = "support"
24
16
  TESTER = "tester"
25
17
  USER = "user"
26
18
 
27
19
  @classmethod
28
20
  def choices(cls) -> ListOfStrings:
29
21
  return [e.value for e in cls]
22
+
23
+
24
+ RoleT = TypeVar("RoleT", bound=Role)
25
+ OptionalRole = Optional[Role]
26
+ OptionalRoleT = TypeVar("OptionalRoleT", bound=OptionalRole)
27
+ ListOfRoles = List[Role]
28
+ OptionalListOfRoles = Optional[ListOfRoles]
29
+ SequenceOfRoles = Sequence[Role]
30
+ OptionalSequenceOfRoles = Optional[SequenceOfRoles]
@@ -0,0 +1,22 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class UserType(StrEnum):
7
+ PROXY = "proxy"
8
+ REGULAR = "regular"
9
+ SERVICE = "service"
10
+
11
+ @classmethod
12
+ def choices(cls) -> ListOfStrings:
13
+ return [e.value for e in cls]
14
+
15
+
16
+ UserTypeT = TypeVar("UserTypeT", bound=UserType)
17
+ OptionalUserType = Optional[UserType]
18
+ OptionalUserTypeT = TypeVar("OptionalUserTypeT", bound=OptionalUserType)
19
+ ListOfUserTypes = List[UserType]
20
+ OptionalListOfUserTypes = Optional[ListOfUserTypes]
21
+ SequenceOfUserTypes = Sequence[UserType]
22
+ OptionalSequenceOfUserTypes = Optional[SequenceOfUserTypes]
File without changes
File without changes
File without changes