maleo-enums 0.0.26__tar.gz → 0.0.28__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 (27) hide show
  1. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/PKG-INFO +2 -2
  2. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/maleo_enums.egg-info/PKG-INFO +2 -2
  3. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/maleo_enums.egg-info/SOURCES.txt +6 -2
  4. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/maleo_enums.egg-info/requires.txt +1 -1
  5. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/pyproject.toml +2 -2
  6. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/src/cardinality.py +25 -1
  7. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/src/connection.py +18 -0
  8. maleo_enums-0.0.28/src/environment.py +32 -0
  9. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/src/expiration.py +11 -1
  10. maleo_enums-0.0.28/src/identity.py +56 -0
  11. maleo_enums-0.0.28/src/medical.py +119 -0
  12. maleo_enums-0.0.28/src/order.py +27 -0
  13. maleo_enums-0.0.28/src/organization.py +119 -0
  14. maleo_enums-0.0.28/src/service.py +213 -0
  15. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/src/status.py +13 -1
  16. maleo_enums-0.0.28/src/system.py +36 -0
  17. maleo_enums-0.0.28/src/user.py +30 -0
  18. maleo_enums-0.0.26/src/environment.py +0 -20
  19. maleo_enums-0.0.26/src/order.py +0 -19
  20. maleo_enums-0.0.26/src/role.py +0 -29
  21. maleo_enums-0.0.26/src/service.py +0 -151
  22. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/LICENSE +0 -0
  23. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/README.md +0 -0
  24. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/maleo_enums.egg-info/dependency_links.txt +0 -0
  25. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/maleo_enums.egg-info/top_level.txt +0 -0
  26. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/setup.cfg +0 -0
  27. {maleo_enums-0.0.26 → maleo_enums-0.0.28}/src/__init__.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.28
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.8
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.28
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.8
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.8
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.28"
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.8",
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,11 +12,23 @@ 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]
19
+ ListOfCardinalitiesT = TypeVar("ListOfCardinalitiesT", bound=ListOfCardinalities)
17
20
  OptionalListOfCardinalities = Optional[ListOfCardinalities]
21
+ OptionalListOfCardinalitiesT = TypeVar(
22
+ "OptionalListOfCardinalitiesT", bound=OptionalListOfCardinalities
23
+ )
18
24
  SequenceOfCardinalities = Sequence[Cardinality]
25
+ SequenceOfCardinalitiesT = TypeVar(
26
+ "SequenceOfCardinalitiesT", bound=SequenceOfCardinalities
27
+ )
19
28
  OptionalSequenceOfCardinalities = Optional[SequenceOfCardinalities]
29
+ OptionalSequenceOfCardinalitiesT = TypeVar(
30
+ "OptionalSequenceOfCardinalitiesT", bound=OptionalSequenceOfCardinalities
31
+ )
20
32
 
21
33
 
22
34
  class Relationship(StrEnum):
@@ -46,8 +58,20 @@ class Relationship(StrEnum):
46
58
  return [e.value for e in cls]
47
59
 
48
60
 
61
+ RelationshipT = TypeVar("RelationshipT", bound=Relationship)
49
62
  OptionalRelationship = Optional[Relationship]
63
+ OptionalRelationshipT = TypeVar("OptionalRelationshipT", bound=OptionalRelationship)
50
64
  ListOfRelationships = List[Relationship]
65
+ ListOfRelationshipsT = TypeVar("ListOfRelationshipsT", bound=ListOfRelationships)
51
66
  OptionalListOfRelationships = Optional[ListOfRelationships]
67
+ OptionalListOfRelationshipsT = TypeVar(
68
+ "OptionalListOfRelationshipsT", bound=OptionalListOfRelationships
69
+ )
52
70
  SequenceOfRelationships = Sequence[Relationship]
71
+ SequenceOfRelationshipsT = TypeVar(
72
+ "SequenceOfRelationshipsT", bound=SequenceOfRelationships
73
+ )
53
74
  OptionalSequenceOfRelationships = Optional[SequenceOfRelationships]
75
+ OptionalSequenceOfRelationshipsT = TypeVar(
76
+ "OptionalSequenceOfRelationshipsT", bound=OptionalSequenceOfRelationships
77
+ )
@@ -18,9 +18,15 @@ SchemeT = TypeVar("SchemeT", bound=Scheme)
18
18
  OptionalScheme = Optional[Scheme]
19
19
  OptionalSchemeT = TypeVar("OptionalSchemeT", bound=OptionalScheme)
20
20
  ListOfSchemes = List[Scheme]
21
+ ListOfSchemesT = TypeVar("ListOfSchemesT", bound=ListOfSchemes)
21
22
  OptionalListOfSchemes = Optional[ListOfSchemes]
23
+ OptionalListOfSchemesT = TypeVar("OptionalListOfSchemesT", bound=OptionalListOfSchemes)
22
24
  SequenceOfSchemes = Sequence[Scheme]
25
+ SequenceOfSchemesT = TypeVar("SequenceOfSchemesT", bound=SequenceOfSchemes)
23
26
  OptionalSequenceOfSchemes = Optional[SequenceOfSchemes]
27
+ OptionalSequenceOfSchemesT = TypeVar(
28
+ "OptionalSequenceOfSchemesT", bound=OptionalSequenceOfSchemes
29
+ )
24
30
 
25
31
 
26
32
  class Protocol(StrEnum):
@@ -64,9 +70,15 @@ MethodT = TypeVar("MethodT", bound=Method)
64
70
  OptionalMethod = Optional[Method]
65
71
  OptionalMethodT = TypeVar("OptionalMethodT", bound=OptionalMethod)
66
72
  ListOfMethods = List[Method]
73
+ ListOfMethodsT = TypeVar("ListOfMethodsT", bound=ListOfMethods)
67
74
  OptionalListOfMethods = Optional[ListOfMethods]
75
+ OptionalListOfMethodsT = TypeVar("OptionalListOfMethodsT", bound=OptionalListOfMethods)
68
76
  SequenceOfMethods = Sequence[Method]
77
+ SequenceOfMethodsT = TypeVar("SequenceOfMethodsT", bound=SequenceOfMethods)
69
78
  OptionalSequenceOfMethods = Optional[SequenceOfMethods]
79
+ OptionalSequenceOfMethodsT = TypeVar(
80
+ "OptionalSequenceOfMethodsT", bound=OptionalSequenceOfMethods
81
+ )
70
82
 
71
83
 
72
84
  class Header(StrEnum):
@@ -161,6 +173,12 @@ HeaderT = TypeVar("HeaderT", bound=Header)
161
173
  OptionalHeader = Optional[Header]
162
174
  OptionalHeaderT = TypeVar("OptionalHeaderT", bound=OptionalHeader)
163
175
  ListOfHeaders = List[Header]
176
+ ListOfHeadersT = TypeVar("ListOfHeadersT", bound=ListOfHeaders)
164
177
  OptionalListOfHeaders = Optional[ListOfHeaders]
178
+ OptionalListOfHeadersT = TypeVar("OptionalListOfHeadersT", bound=OptionalListOfHeaders)
165
179
  SequenceOfHeaders = Sequence[Header]
180
+ SequenceOfHeadersT = TypeVar("SequenceOfHeadersT", bound=SequenceOfHeaders)
166
181
  OptionalSequenceOfHeaders = Optional[SequenceOfHeaders]
182
+ OptionalSequenceOfHeadersT = TypeVar(
183
+ "OptionalSequenceOfHeadersT", bound=OptionalSequenceOfHeaders
184
+ )
@@ -0,0 +1,32 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class Environment(StrEnum):
7
+ LOCAL = "local"
8
+ STAGING = "staging"
9
+ PRODUCTION = "production"
10
+
11
+ @classmethod
12
+ def choices(cls) -> ListOfStrings:
13
+ return [e.value for e in cls]
14
+
15
+
16
+ EnvironmentT = TypeVar("EnvironmentT", bound=Environment)
17
+ OptionalEnvironment = Optional[Environment]
18
+ OptionalEnvironmentT = TypeVar("OptionalEnvironmentT", bound=OptionalEnvironment)
19
+ ListOfEnvironments = List[Environment]
20
+ ListOfEnvironmentsT = TypeVar("ListOfEnvironmentsT", bound=ListOfEnvironments)
21
+ OptionalListOfEnvironments = Optional[ListOfEnvironments]
22
+ OptionalListOfEnvironmentsT = TypeVar(
23
+ "OptionalListOfEnvironmentsT", bound=OptionalListOfEnvironments
24
+ )
25
+ SequenceOfEnvironments = Sequence[Environment]
26
+ SequenceOfEnvironmentsT = TypeVar(
27
+ "SequenceOfEnvironmentsT", bound=SequenceOfEnvironments
28
+ )
29
+ OptionalSequenceOfEnvironments = Optional[SequenceOfEnvironments]
30
+ OptionalSequenceOfEnvironmentsT = TypeVar(
31
+ "OptionalSequenceOfEnvironmentsT", bound=OptionalSequenceOfEnvironments
32
+ )
@@ -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,8 +25,18 @@ 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]
32
+ ListOfExpirationsT = TypeVar("ListOfExpirationsT", bound=ListOfExpirations)
30
33
  OptionalListOfExpirations = Optional[ListOfExpirations]
34
+ OptionalListOfExpirationsT = TypeVar(
35
+ "OptionalListOfExpirationsT", bound=OptionalListOfExpirations
36
+ )
31
37
  SequenceOfExpirations = Sequence[Expiration]
38
+ SequenceOfExpirationsT = TypeVar("SequenceOfExpirationsT", bound=SequenceOfExpirations)
32
39
  OptionalSequenceOfExpirations = Optional[SequenceOfExpirations]
40
+ OptionalSequenceOfExpirationsT = TypeVar(
41
+ "OptionalSequenceOfExpirationsT", bound=OptionalSequenceOfExpirations
42
+ )
@@ -0,0 +1,56 @@
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
+ ListOfBloodTypesT = TypeVar("ListOfBloodTypesT", bound=ListOfBloodTypes)
22
+ OptionalListOfBloodTypes = Optional[ListOfBloodTypes]
23
+ OptionalListOfBloodTypesT = TypeVar(
24
+ "OptionalListOfBloodTypesT", bound=OptionalListOfBloodTypes
25
+ )
26
+ SequenceOfBloodTypes = Sequence[BloodType]
27
+ SequenceOfBloodTypesT = TypeVar("SequenceOfBloodTypesT", bound=SequenceOfBloodTypes)
28
+ OptionalSequenceOfBloodTypes = Optional[SequenceOfBloodTypes]
29
+ OptionalSequenceOfBloodTypesT = TypeVar(
30
+ "OptionalSequenceOfBloodTypesT", bound=OptionalSequenceOfBloodTypes
31
+ )
32
+
33
+
34
+ class Gender(StrEnum):
35
+ UNDISCLOSED = "undisclosed"
36
+ FEMALE = "female"
37
+ MALE = "male"
38
+
39
+ @classmethod
40
+ def choices(cls) -> ListOfStrings:
41
+ return [e.value for e in cls]
42
+
43
+
44
+ GenderT = TypeVar("GenderT", bound=Gender)
45
+ OptionalGender = Optional[Gender]
46
+ OptionalGenderT = TypeVar("OptionalGenderT", bound=OptionalGender)
47
+ ListOfGenders = List[Gender]
48
+ ListOfGendersT = TypeVar("ListOfGendersT", bound=ListOfGenders)
49
+ OptionalListOfGenders = Optional[ListOfGenders]
50
+ OptionalListOfGendersT = TypeVar("OptionalListOfGendersT", bound=OptionalListOfGenders)
51
+ SequenceOfGenders = Sequence[Gender]
52
+ SequenceOfGendersT = TypeVar("SequenceOfGendersT", bound=SequenceOfGenders)
53
+ OptionalSequenceOfGenders = Optional[SequenceOfGenders]
54
+ OptionalSequenceOfGendersT = TypeVar(
55
+ "OptionalSequenceOfGendersT", bound=OptionalSequenceOfGenders
56
+ )
@@ -0,0 +1,119 @@
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
+ ListOfRolesT = TypeVar("ListOfRolesT", bound=ListOfRoles)
84
+ OptionalListOfRoles = Optional[ListOfRoles]
85
+ OptionalListOfRolesT = TypeVar("OptionalListOfRolesT", bound=OptionalListOfRoles)
86
+ SequenceOfRoles = Sequence[Role]
87
+ SequenceOfRolesT = TypeVar("SequenceOfRolesT", bound=SequenceOfRoles)
88
+ OptionalSequenceOfRoles = Optional[SequenceOfRoles]
89
+ OptionalSequenceOfRolesT = TypeVar(
90
+ "OptionalSequenceOfRolesT", bound=OptionalSequenceOfRoles
91
+ )
92
+
93
+
94
+ class Service(StrEnum):
95
+ EMERGENCY = "emergency"
96
+ INPATIENT = "inpatient"
97
+ INTENSIVE = "intensive"
98
+ OUTPATIENT = "outpatient"
99
+
100
+ @classmethod
101
+ def choices(cls) -> ListOfStrings:
102
+ return [e.value for e in cls]
103
+
104
+
105
+ ServiceT = TypeVar("ServiceT", bound=Service)
106
+ OptionalService = Optional[Service]
107
+ OptionalServiceT = TypeVar("OptionalServiceT", bound=OptionalService)
108
+ ListOfServices = List[Service]
109
+ ListOfServicesT = TypeVar("ListOfServicesT", bound=ListOfServices)
110
+ OptionalListOfServices = Optional[ListOfServices]
111
+ OptionalListOfServicesT = TypeVar(
112
+ "OptionalListOfServicesT", bound=OptionalListOfServices
113
+ )
114
+ SequenceOfServices = Sequence[Service]
115
+ SequenceOfServicesT = TypeVar("SequenceOfServicesT", bound=SequenceOfServices)
116
+ OptionalSequenceOfServices = Optional[SequenceOfServices]
117
+ OptionalSequenceOfServicesT = TypeVar(
118
+ "OptionalSequenceOfServicesT", bound=OptionalSequenceOfServices
119
+ )
@@ -0,0 +1,27 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class Order(StrEnum):
7
+ ASC = "asc"
8
+ DESC = "desc"
9
+
10
+ @classmethod
11
+ def choices(cls) -> ListOfStrings:
12
+ return [e.value for e in cls]
13
+
14
+
15
+ OrderT = TypeVar("OrderT", bound=Order)
16
+ OptionalOrder = Optional[Order]
17
+ OptionalOrderT = TypeVar("OptionalOrderT", bound=OptionalOrder)
18
+ ListOfOrders = List[Order]
19
+ ListOfOrdersT = TypeVar("ListOfOrdersT", bound=ListOfOrders)
20
+ OptionalListOfOrders = Optional[ListOfOrders]
21
+ OptionalListOfOrdersT = TypeVar("OptionalListOfOrdersT", bound=OptionalListOfOrders)
22
+ SequenceOfOrders = Sequence[Order]
23
+ SequenceOfOrdersT = TypeVar("SequenceOfOrdersT", bound=SequenceOfOrders)
24
+ OptionalSequenceOfOrders = Optional[SequenceOfOrders]
25
+ OptionalSequenceOfOrdersT = TypeVar(
26
+ "OptionalSequenceOfOrdersT", bound=OptionalSequenceOfOrders
27
+ )
@@ -0,0 +1,119 @@
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
+ ListOfOrganizationTypesT = TypeVar(
46
+ "ListOfOrganizationTypesT", bound=ListOfOrganizationTypes
47
+ )
48
+ OptionalListOfOrganizationTypes = Optional[ListOfOrganizationTypes]
49
+ OptionalListOfOrganizationTypesT = TypeVar(
50
+ "OptionalListOfOrganizationTypesT", bound=OptionalListOfOrganizationTypes
51
+ )
52
+ SequenceOfOrganizationTypes = Sequence[OrganizationType]
53
+ SequenceOfOrganizationTypesT = TypeVar(
54
+ "SequenceOfOrganizationTypesT", bound=SequenceOfOrganizationTypes
55
+ )
56
+ OptionalSequenceOfOrganizationTypes = Optional[SequenceOfOrganizationTypes]
57
+ OptionalSequenceOfOrganizationTypesT = TypeVar(
58
+ "OptionalSequenceOfOrganizationTypesT", bound=OptionalSequenceOfOrganizationTypes
59
+ )
60
+
61
+
62
+ class Relation(StrEnum):
63
+ AFFILIATE = "affiliate"
64
+ APPLICATION = "application"
65
+ BRANCH = "branch"
66
+ CLIENT = "client"
67
+ DEPARTMENT = "department"
68
+ DIVISION = "division"
69
+ NETWORK_MEMBER = "network_member"
70
+ PARENT = "parent"
71
+ PARTNER = "partner"
72
+ SUBSIDIARY = "subsidiary"
73
+ VENDOR = "vendor"
74
+
75
+ @classmethod
76
+ def choices(cls) -> ListOfStrings:
77
+ return [e.value for e in cls]
78
+
79
+
80
+ RelationT = TypeVar("RelationT", bound=Relation)
81
+ OptionalRelation = Optional[Relation]
82
+ OptionalRelationT = TypeVar("OptionalRelationT", bound=OptionalRelation)
83
+ ListOfRelations = List[Relation]
84
+ ListOfRelationsT = TypeVar("ListOfRelationsT", bound=ListOfRelations)
85
+ OptionalListOfRelations = Optional[ListOfRelations]
86
+ OptionalListOfRelationsT = TypeVar(
87
+ "OptionalListOfRelationsT", bound=OptionalListOfRelations
88
+ )
89
+ SequenceOfRelations = Sequence[Relation]
90
+ SequenceOfRelationsT = TypeVar("SequenceOfRelationsT", bound=SequenceOfRelations)
91
+ OptionalSequenceOfRelations = Optional[SequenceOfRelations]
92
+ OptionalSequenceOfRelationsT = TypeVar(
93
+ "OptionalSequenceOfRelationsT", bound=OptionalSequenceOfRelations
94
+ )
95
+
96
+
97
+ class Role(StrEnum):
98
+ OWNER = "owner"
99
+ ADMINISTRATOR = "administrator"
100
+ USER = "user"
101
+
102
+ @classmethod
103
+ def choices(cls) -> ListOfStrings:
104
+ return [e.value for e in cls]
105
+
106
+
107
+ RoleT = TypeVar("RoleT", bound=Role)
108
+ OptionalRole = Optional[Role]
109
+ OptionalRoleT = TypeVar("OptionalRoleT", bound=OptionalRole)
110
+ ListOfRoles = List[Role]
111
+ ListOfRolesT = TypeVar("ListOfRolesT", bound=ListOfRoles)
112
+ OptionalListOfRoles = Optional[ListOfRoles]
113
+ OptionalListOfRolesT = TypeVar("OptionalListOfRolesT", bound=OptionalListOfRoles)
114
+ SequenceOfRoles = Sequence[Role]
115
+ SequenceOfRolesT = TypeVar("SequenceOfRolesT", bound=SequenceOfRoles)
116
+ OptionalSequenceOfRoles = Optional[SequenceOfRoles]
117
+ OptionalSequenceOfRolesT = TypeVar(
118
+ "OptionalSequenceOfRolesT", bound=OptionalSequenceOfRoles
119
+ )
@@ -0,0 +1,213 @@
1
+ from enum import StrEnum
2
+ from typing import List, Optional, Sequence, TypeVar
3
+ from maleo.types.string import ListOfStrings
4
+
5
+
6
+ class ServiceType(StrEnum):
7
+ BACKEND = "backend"
8
+ FRONTEND = "frontend"
9
+
10
+ @classmethod
11
+ def choices(cls) -> ListOfStrings:
12
+ return [e.value for e in cls]
13
+
14
+
15
+ ServiceTypeT = TypeVar("ServiceTypeT", bound=ServiceType)
16
+ OptionalServiceType = Optional[ServiceType]
17
+ OptionalServiceTypeT = TypeVar("OptionalServiceTypeT", bound=OptionalServiceType)
18
+ ListOfServiceTypes = List[ServiceType]
19
+ ListOfServiceTypesT = TypeVar("ListOfServiceTypesT", bound=ListOfServiceTypes)
20
+ OptionalListOfServiceTypes = Optional[ListOfServiceTypes]
21
+ OptionalListOfServiceTypesT = TypeVar(
22
+ "OptionalListOfServiceTypesT", bound=OptionalListOfServiceTypes
23
+ )
24
+ SequenceOfServiceTypes = Sequence[ServiceType]
25
+ SequenceOfServiceTypesT = TypeVar(
26
+ "SequenceOfServiceTypesT", bound=SequenceOfServiceTypes
27
+ )
28
+ OptionalSequenceOfServiceTypes = Optional[SequenceOfServiceTypes]
29
+ OptionalSequenceOfServiceTypesT = TypeVar(
30
+ "OptionalSequenceOfServiceTypesT", bound=OptionalSequenceOfServiceTypes
31
+ )
32
+
33
+
34
+ class Category(StrEnum):
35
+ CORE = "core"
36
+ AI = "ai"
37
+
38
+ @classmethod
39
+ def choices(cls) -> ListOfStrings:
40
+ return [e.value for e in cls]
41
+
42
+
43
+ CategoryT = TypeVar("CategoryT", bound=Category)
44
+ OptionalCategory = Optional[Category]
45
+ OptionalCategoryT = TypeVar("OptionalCategoryT", bound=OptionalCategory)
46
+ ListOfCategories = List[Category]
47
+ ListOfCategoriesT = TypeVar("ListOfCategoriesT", bound=ListOfCategories)
48
+ OptionalListOfCategories = Optional[ListOfCategories]
49
+ OptionalListOfCategoriesT = TypeVar(
50
+ "OptionalListOfCategoriesT", bound=OptionalListOfCategories
51
+ )
52
+ SequenceOfCategories = Sequence[Category]
53
+ SequenceOfCategoriesT = TypeVar("SequenceOfCategoriesT", bound=SequenceOfCategories)
54
+ OptionalSequenceOfCategories = Optional[SequenceOfCategories]
55
+ OptionalSequenceOfCategoriesT = TypeVar(
56
+ "OptionalSequenceOfCategoriesT", bound=OptionalSequenceOfCategories
57
+ )
58
+
59
+
60
+ class ShortKey(StrEnum):
61
+ STUDIO = "studio"
62
+ NEXUS = "nexus"
63
+ TELEMETRY = "telemetry"
64
+ METADATA = "metadata"
65
+ IDENTITY = "identity"
66
+ ACCESS = "access"
67
+ WORKSHOP = "workshop"
68
+ RESEARCH = "research"
69
+ REGISTRY = "registry"
70
+ SOAPIE = "soapie"
71
+ MEDIX = "medix"
72
+ DICOM = "dicom"
73
+ SCRIBE = "scribe"
74
+ CDS = "cds"
75
+ IMAGING = "imaging"
76
+ MCU = "mcu"
77
+
78
+ @classmethod
79
+ def choices(cls) -> ListOfStrings:
80
+ return [e.value for e in cls]
81
+
82
+
83
+ ShortKeyT = TypeVar("ShortKeyT", bound=ShortKey)
84
+ OptionalShortKey = Optional[ShortKey]
85
+ OptionalShortKeyT = TypeVar("OptionalShortKeyT", bound=OptionalShortKey)
86
+ ListOfShortKeys = List[ShortKey]
87
+ ListOfShortKeysT = TypeVar("ListOfShortKeysT", bound=ListOfShortKeys)
88
+ OptionalListOfShortKeys = Optional[ListOfShortKeys]
89
+ OptionalListOfShortKeysT = TypeVar(
90
+ "OptionalListOfShortKeysT", bound=OptionalListOfShortKeys
91
+ )
92
+ SequenceOfShortKeys = Sequence[ShortKey]
93
+ SequenceOfShortKeysT = TypeVar("SequenceOfShortKeysT", bound=SequenceOfShortKeys)
94
+ OptionalSequenceOfShortKeys = Optional[SequenceOfShortKeys]
95
+ OptionalSequenceOfShortKeysT = TypeVar(
96
+ "OptionalSequenceOfShortKeysT", bound=OptionalSequenceOfShortKeys
97
+ )
98
+
99
+
100
+ class Key(StrEnum):
101
+ STUDIO = "maleo-studio"
102
+ NEXUS = "maleo-nexus"
103
+ TELEMETRY = "maleo-telemetry"
104
+ METADATA = "maleo-metadata"
105
+ IDENTITY = "maleo-identity"
106
+ ACCESS = "maleo-access"
107
+ WORKSHOP = "maleo-workshop"
108
+ RESEARCH = "maleo-research"
109
+ REGISTRY = "maleo-registry"
110
+ SOAPIE = "maleo-soapie"
111
+ MEDIX = "maleo-medix"
112
+ DICOM = "maleo-dicom"
113
+ SCRIBE = "maleo-scribe"
114
+ CDS = "maleo-cds"
115
+ IMAGING = "maleo-imaging"
116
+ MCU = "maleo-mcu"
117
+
118
+ @classmethod
119
+ def choices(cls) -> ListOfStrings:
120
+ return [e.value for e in cls]
121
+
122
+
123
+ KeyT = TypeVar("KeyT", bound=Key)
124
+ OptionalKey = Optional[Key]
125
+ OptionalKeyT = TypeVar("OptionalKeyT", bound=OptionalKey)
126
+ ListOfKeys = List[Key]
127
+ ListOfKeysT = TypeVar("ListOfKeysT", bound=ListOfKeys)
128
+ OptionalListOfKeys = Optional[ListOfKeys]
129
+ OptionalListOfKeysT = TypeVar("OptionalListOfKeysT", bound=OptionalListOfKeys)
130
+ SequenceOfKeys = Sequence[Key]
131
+ SequenceOfKeysT = TypeVar("SequenceOfKeysT", bound=SequenceOfKeys)
132
+ OptionalSequenceOfKeys = Optional[SequenceOfKeys]
133
+ OptionalSequenceOfKeysT = TypeVar(
134
+ "OptionalSequenceOfKeysT", bound=OptionalSequenceOfKeys
135
+ )
136
+
137
+
138
+ class ShortName(StrEnum):
139
+ STUDIO = "Studio"
140
+ NEXUS = "Nexus"
141
+ TELEMETRY = "Telemetry"
142
+ METADATA = "Metadata"
143
+ IDENTITY = "Identity"
144
+ ACCESS = "Access"
145
+ WORKSHOP = "Workshop"
146
+ RESEARCH = "Research"
147
+ REGISTRY = "Registry"
148
+ SOAPIE = "SOAPIE"
149
+ MEDIX = "Medix"
150
+ DICOM = "DICON"
151
+ SCRIBE = "Scribe"
152
+ CDS = "CDS"
153
+ IMAGING = "Imaging"
154
+ MCU = "MCU"
155
+
156
+ @classmethod
157
+ def choices(cls) -> ListOfStrings:
158
+ return [e.value for e in cls]
159
+
160
+
161
+ ShortNameT = TypeVar("ShortNameT", bound=ShortName)
162
+ OptionalShortName = Optional[ShortName]
163
+ OptionalShortNameT = TypeVar("OptionalShortNameT", bound=OptionalShortName)
164
+ ListOfShortNames = List[ShortName]
165
+ ListOfShortNamesT = TypeVar("ListOfShortNamesT", bound=ListOfShortNames)
166
+ OptionalListOfShortNames = Optional[ListOfShortNames]
167
+ OptionalListOfShortNamesT = TypeVar(
168
+ "OptionalListOfShortNamesT", bound=OptionalListOfShortNames
169
+ )
170
+ SequenceOfShortNames = Sequence[ShortName]
171
+ SequenceOfShortNamesT = TypeVar("SequenceOfShortNamesT", bound=SequenceOfShortNames)
172
+ OptionalSequenceOfShortNames = Optional[SequenceOfShortNames]
173
+ OptionalSequenceOfShortNamesT = TypeVar(
174
+ "OptionalSequenceOfShortNamesT", bound=OptionalSequenceOfShortNames
175
+ )
176
+
177
+
178
+ class Name(StrEnum):
179
+ STUDIO = "MaleoStudio"
180
+ NEXUS = "MaleoNexus"
181
+ TELEMETRY = "MaleoTelemetry"
182
+ METADATA = "MaleoMetadata"
183
+ IDENTITY = "MaleoIdentity"
184
+ ACCESS = "MaleoAccess"
185
+ WORKSHOP = "MaleoWorkshop"
186
+ RESEARCH = "MaleoResearch"
187
+ REGISTRY = "MaleoRegistry"
188
+ SOAPIE = "MaleoSOAPIE"
189
+ MEDIX = "MaleoMedix"
190
+ DICOM = "MaleoDICON"
191
+ SCRIBE = "MaleoScribe"
192
+ CDS = "MaleoCDS"
193
+ IMAGING = "MaleoImaging"
194
+ MCU = "MaleoMCU"
195
+
196
+ @classmethod
197
+ def choices(cls) -> ListOfStrings:
198
+ return [e.value for e in cls]
199
+
200
+
201
+ NameT = TypeVar("NameT", bound=Name)
202
+ OptionalName = Optional[Name]
203
+ OptionalNameT = TypeVar("OptionalNameT", bound=OptionalName)
204
+ ListOfNames = List[Name]
205
+ ListOfNamesT = TypeVar("ListOfNamesT", bound=ListOfNames)
206
+ OptionalListOfNames = Optional[ListOfNames]
207
+ OptionalListOfNamesT = TypeVar("OptionalListOfNamesT", bound=OptionalListOfNames)
208
+ SequenceOfNames = Sequence[Name]
209
+ SequenceOfNamesT = TypeVar("SequenceOfNamesT", bound=SequenceOfNames)
210
+ OptionalSequenceOfNames = Optional[SequenceOfNames]
211
+ OptionalSequenceOfNamesT = TypeVar(
212
+ "OptionalSequenceOfNamesT", bound=OptionalSequenceOfNames
213
+ )
@@ -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,11 +13,23 @@ 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]
20
+ ListOfDataStatusesT = TypeVar("ListOfDataStatusesT", bound=ListOfDataStatuses)
18
21
  OptionalListOfDataStatuses = Optional[ListOfDataStatuses]
22
+ OptionalListOfDataStatusesT = TypeVar(
23
+ "OptionalListOfDataStatusesT", bound=OptionalListOfDataStatuses
24
+ )
19
25
  SequenceOfDataStatuses = Sequence[DataStatus]
26
+ SequenceOfDataStatusesT = TypeVar(
27
+ "SequenceOfDataStatusesT", bound=SequenceOfDataStatuses
28
+ )
20
29
  OptionalSequenceOfDataStatuses = Optional[SequenceOfDataStatuses]
30
+ OptionalSequenceOfDataStatusesT = TypeVar(
31
+ "OptionalSequenceOfDataStatusesT", bound=OptionalSequenceOfDataStatuses
32
+ )
21
33
 
22
34
 
23
35
  FULL_DATA_STATUSES: SequenceOfDataStatuses = (
@@ -0,0 +1,36 @@
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
+ ADMINISTRATOR = "administrator"
8
+ ANALYST = "analyst"
9
+ ENGINEER = "engineer"
10
+ GUEST = "guest"
11
+ MANAGER = "manager"
12
+ OFFICER = "officer"
13
+ OPERATIONS = "operations"
14
+ SECURITY = "security"
15
+ SUPPORT = "support"
16
+ TESTER = "tester"
17
+ USER = "user"
18
+
19
+ @classmethod
20
+ def choices(cls) -> ListOfStrings:
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
+ ListOfRolesT = TypeVar("ListOfRolesT", bound=ListOfRoles)
29
+ OptionalListOfRoles = Optional[ListOfRoles]
30
+ OptionalListOfRolesT = TypeVar("OptionalListOfRolesT", bound=OptionalListOfRoles)
31
+ SequenceOfRoles = Sequence[Role]
32
+ SequenceOfRolesT = TypeVar("SequenceOfRolesT", bound=SequenceOfRoles)
33
+ OptionalSequenceOfRoles = Optional[SequenceOfRoles]
34
+ OptionalSequenceOfRolesT = TypeVar(
35
+ "OptionalSequenceOfRolesT", bound=OptionalSequenceOfRoles
36
+ )
@@ -0,0 +1,30 @@
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
+ ListOfUserTypesT = TypeVar("ListOfUserTypesT", bound=ListOfUserTypes)
21
+ OptionalListOfUserTypes = Optional[ListOfUserTypes]
22
+ OptionalListOfUserTypesT = TypeVar(
23
+ "OptionalListOfUserTypesT", bound=OptionalListOfUserTypes
24
+ )
25
+ SequenceOfUserTypes = Sequence[UserType]
26
+ SequenceOfUserTypesT = TypeVar("SequenceOfUserTypesT", bound=SequenceOfUserTypes)
27
+ OptionalSequenceOfUserTypes = Optional[SequenceOfUserTypes]
28
+ OptionalSequenceOfUserTypesT = TypeVar(
29
+ "OptionalSequenceOfUserTypesT", bound=OptionalSequenceOfUserTypes
30
+ )
@@ -1,20 +0,0 @@
1
- from enum import StrEnum
2
- from typing import List, Optional, Sequence
3
- from maleo.types.string import ListOfStrings
4
-
5
-
6
- class Environment(StrEnum):
7
- LOCAL = "local"
8
- STAGING = "staging"
9
- PRODUCTION = "production"
10
-
11
- @classmethod
12
- def choices(cls) -> ListOfStrings:
13
- return [e.value for e in cls]
14
-
15
-
16
- OptionalEnvironment = Optional[Environment]
17
- ListOfEnvironments = List[Environment]
18
- OptionalListOfEnvironments = Optional[ListOfEnvironments]
19
- SequenceOfEnvironments = Sequence[Environment]
20
- OptionalSequenceOfEnvironments = Optional[SequenceOfEnvironments]
@@ -1,19 +0,0 @@
1
- from enum import StrEnum
2
- from typing import List, Optional, Sequence
3
- from maleo.types.string import ListOfStrings
4
-
5
-
6
- class Order(StrEnum):
7
- ASC = "asc"
8
- DESC = "desc"
9
-
10
- @classmethod
11
- def choices(cls) -> ListOfStrings:
12
- return [e.value for e in cls]
13
-
14
-
15
- OptionalOrder = Optional[Order]
16
- ListOfOrders = List[Order]
17
- OptionalListOfOrders = Optional[ListOfOrders]
18
- SequenceOfOrders = Sequence[Order]
19
- OptionalSequenceOfOrders = Optional[SequenceOfOrders]
@@ -1,29 +0,0 @@
1
- from enum import StrEnum
2
- from maleo.types.string import ListOfStrings
3
-
4
-
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):
16
- ADMINISTRATOR = "administrator"
17
- ANALYST = "analyst"
18
- ENGINEER = "engineer"
19
- SUPPORT = "support"
20
- MANAGER = "manager"
21
- OFFICER = "officer"
22
- OPERATIONS = "operations"
23
- SECURITY = "security"
24
- TESTER = "tester"
25
- USER = "user"
26
-
27
- @classmethod
28
- def choices(cls) -> ListOfStrings:
29
- return [e.value for e in cls]
@@ -1,151 +0,0 @@
1
- from enum import StrEnum
2
- from typing import List, Optional, Sequence
3
- from maleo.types.string import ListOfStrings
4
-
5
-
6
- class ServiceType(StrEnum):
7
- BACKEND = "backend"
8
- FRONTEND = "frontend"
9
-
10
- @classmethod
11
- def choices(cls) -> ListOfStrings:
12
- return [e.value for e in cls]
13
-
14
-
15
- OptionalServiceType = Optional[ServiceType]
16
- ListOfServiceTypes = List[ServiceType]
17
- OptionalListOfServiceTypes = Optional[ListOfServiceTypes]
18
- SequenceOfServiceTypes = Sequence[ServiceType]
19
- OptionalSequenceOfServiceTypes = Optional[SequenceOfServiceTypes]
20
-
21
-
22
- class Category(StrEnum):
23
- CORE = "core"
24
- AI = "ai"
25
-
26
- @classmethod
27
- def choices(cls) -> ListOfStrings:
28
- return [e.value for e in cls]
29
-
30
-
31
- OptionalCategory = Optional[Category]
32
- ListOfCategories = List[Category]
33
- OptionalListOfCategories = Optional[ListOfCategories]
34
- SequenceOfCategories = Sequence[Category]
35
- OptionalSequenceOfCategories = Optional[SequenceOfCategories]
36
-
37
-
38
- class SimpleKey(StrEnum):
39
- STUDIO = "studio"
40
- NEXUS = "nexus"
41
- TELEMETRY = "telemetry"
42
- METADATA = "metadata"
43
- IDENTITY = "identity"
44
- ACCESS = "access"
45
- WORKSHOP = "workshop"
46
- RESEARCH = "research"
47
- SOAPIE = "soapie"
48
- MEDIX = "medix"
49
- DICOM = "dicom"
50
- SCRIBE = "scribe"
51
- CDS = "cds"
52
- IMAGING = "imaging"
53
- MCU = "mcu"
54
-
55
- @classmethod
56
- def choices(cls) -> ListOfStrings:
57
- return [e.value for e in cls]
58
-
59
-
60
- OptionalSimpleKey = Optional[SimpleKey]
61
- ListOfSimpleKeys = List[SimpleKey]
62
- OptionalListOfSimpleKeys = Optional[ListOfSimpleKeys]
63
- SequenceOfSimpleKeys = Sequence[SimpleKey]
64
- OptionalSequenceOfSimpleKeys = Optional[SequenceOfSimpleKeys]
65
-
66
-
67
- class Key(StrEnum):
68
- STUDIO = "maleo-studio"
69
- NEXUS = "maleo-nexus"
70
- TELEMETRY = "maleo-telemetry"
71
- METADATA = "maleo-metadata"
72
- IDENTITY = "maleo-identity"
73
- ACCESS = "maleo-access"
74
- WORKSHOP = "maleo-workshop"
75
- RESEARCH = "maleo-research"
76
- SOAPIE = "maleo-soapie"
77
- MEDIX = "maleo-medix"
78
- DICOM = "maleo-dicom"
79
- SCRIBE = "maleo-scribe"
80
- CDS = "maleo-cds"
81
- IMAGING = "maleo-imaging"
82
- MCU = "maleo-mcu"
83
-
84
- @classmethod
85
- def choices(cls) -> ListOfStrings:
86
- return [e.value for e in cls]
87
-
88
-
89
- OptionalKey = Optional[Key]
90
- ListOfKeys = List[Key]
91
- OptionalListOfKeys = Optional[ListOfKeys]
92
- SequenceOfKeys = Sequence[Key]
93
- OptionalSequenceOfKeys = Optional[SequenceOfKeys]
94
-
95
-
96
- class SimpleName(StrEnum):
97
- STUDIO = "Studio"
98
- NEXUS = "Nexus"
99
- TELEMETRY = "Telemetry"
100
- METADATA = "Metadata"
101
- IDENTITY = "Identity"
102
- ACCESS = "Access"
103
- WORKSHOP = "Workshop"
104
- RESEARCH = "Research"
105
- SOAPIE = "SOAPIE"
106
- MEDIX = "Medix"
107
- DICOM = "DICON"
108
- SCRIBE = "Scribe"
109
- CDS = "CDS"
110
- IMAGING = "Imaging"
111
- MCU = "MCU"
112
-
113
- @classmethod
114
- def choices(cls) -> ListOfStrings:
115
- return [e.value for e in cls]
116
-
117
-
118
- OptionalSimpleName = Optional[SimpleName]
119
- ListOfSimpleNames = List[SimpleName]
120
- OptionalListOfSimpleNames = Optional[ListOfSimpleNames]
121
- SequenceOfSimpleNames = Sequence[SimpleName]
122
- OptionalSequenceOfSimpleNames = Optional[SequenceOfSimpleNames]
123
-
124
-
125
- class Name(StrEnum):
126
- STUDIO = "MaleoStudio"
127
- NEXUS = "MaleoNexus"
128
- TELEMETRY = "MaleoTelemetry"
129
- METADATA = "MaleoMetadata"
130
- IDENTITY = "MaleoIdentity"
131
- ACCESS = "MaleoAccess"
132
- WORKSHOP = "MaleoWorkshop"
133
- RESEARCH = "MaleoResearch"
134
- SOAPIE = "MaleoSOAPIE"
135
- MEDIX = "MaleoMedix"
136
- DICOM = "MaleoDICON"
137
- SCRIBE = "MaleoScribe"
138
- CDS = "MaleoCDS"
139
- IMAGING = "MaleoImaging"
140
- MCU = "MaleoMCU"
141
-
142
- @classmethod
143
- def choices(cls) -> ListOfStrings:
144
- return [e.value for e in cls]
145
-
146
-
147
- OptionalName = Optional[Name]
148
- ListOfNames = List[Name]
149
- OptionalListOfNames = Optional[ListOfNames]
150
- SequenceOfNames = Sequence[Name]
151
- OptionalSequenceOfNames = Optional[SequenceOfNames]
File without changes
File without changes
File without changes