maleo-enums 0.0.25__py3-none-any.whl → 0.0.27__py3-none-any.whl
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.
- maleo/enums/cardinality.py +5 -1
- maleo/enums/environment.py +3 -1
- maleo/enums/expiration.py +3 -1
- maleo/enums/identity.py +42 -0
- maleo/enums/medical.py +105 -0
- maleo/enums/order.py +3 -1
- maleo/enums/organization.py +93 -0
- maleo/enums/service.py +29 -13
- maleo/enums/status.py +3 -1
- maleo/enums/{system_role.py → system.py} +13 -2
- maleo/enums/user.py +22 -0
- {maleo_enums-0.0.25.dist-info → maleo_enums-0.0.27.dist-info}/METADATA +2 -2
- maleo_enums-0.0.27.dist-info/RECORD +18 -0
- maleo_enums-0.0.25.dist-info/RECORD +0 -14
- {maleo_enums-0.0.25.dist-info → maleo_enums-0.0.27.dist-info}/WHEEL +0 -0
- {maleo_enums-0.0.25.dist-info → maleo_enums-0.0.27.dist-info}/licenses/LICENSE +0 -0
- {maleo_enums-0.0.25.dist-info → maleo_enums-0.0.27.dist-info}/top_level.txt +0 -0
maleo/enums/cardinality.py
CHANGED
|
@@ -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]
|
maleo/enums/environment.py
CHANGED
|
@@ -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]
|
maleo/enums/expiration.py
CHANGED
|
@@ -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]
|
maleo/enums/identity.py
ADDED
|
@@ -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]
|
maleo/enums/medical.py
ADDED
|
@@ -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]
|
maleo/enums/order.py
CHANGED
|
@@ -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]
|
maleo/enums/service.py
CHANGED
|
@@ -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
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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]
|
maleo/enums/status.py
CHANGED
|
@@ -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,19 +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
|
|
6
|
+
class Role(StrEnum):
|
|
6
7
|
ADMINISTRATOR = "administrator"
|
|
7
8
|
ANALYST = "analyst"
|
|
8
9
|
ENGINEER = "engineer"
|
|
9
|
-
|
|
10
|
+
GUEST = "guest"
|
|
10
11
|
MANAGER = "manager"
|
|
11
12
|
OFFICER = "officer"
|
|
12
13
|
OPERATIONS = "operations"
|
|
13
14
|
SECURITY = "security"
|
|
15
|
+
SUPPORT = "support"
|
|
14
16
|
TESTER = "tester"
|
|
15
17
|
USER = "user"
|
|
16
18
|
|
|
17
19
|
@classmethod
|
|
18
20
|
def choices(cls) -> ListOfStrings:
|
|
19
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]
|
maleo/enums/user.py
ADDED
|
@@ -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]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-enums
|
|
3
|
-
Version: 0.0.
|
|
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.
|
|
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
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
maleo/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
maleo/enums/cardinality.py,sha256=f2MmIWvDhxgGG2toDts8n-nrOIDaclwHi_YEgYRtv_E,2124
|
|
3
|
+
maleo/enums/connection.py,sha256=jXww92ACMyvVPn1fGte7tbpj64LuyjzWKCeu835x2o0,4793
|
|
4
|
+
maleo/enums/environment.py,sha256=Km1RwRphegMfhb-afF-s12bBymZZY8Iwn-p0ytbXnLA,718
|
|
5
|
+
maleo/enums/expiration.py,sha256=YJaokiGGGVBBd8snwenxC-JoLOFRDySfRaZqazb9Ik0,1100
|
|
6
|
+
maleo/enums/identity.py,sha256=ERKqOH_9Fpq8SO4RGC642QqVB9a5ni99NFnwOa4pNEs,1182
|
|
7
|
+
maleo/enums/medical.py,sha256=pU2jZHZH8zxznlwdW9e3aYHOGXzyE1xrvLu2_8MDvYc,3208
|
|
8
|
+
maleo/enums/order.py,sha256=PCc_eKjzqWbA4oFEezwejo8GwAs0vC6LB385c9tRGig,576
|
|
9
|
+
maleo/enums/organization.py,sha256=rMnrRCV6-b8IFUrYaStUWeYX-VVytgpyoF7gUJEed8M,2809
|
|
10
|
+
maleo/enums/service.py,sha256=hEzI3m8Ytp2BN0zzWlyqZUQ88toDWWl9tnNDAYlwWF4,4570
|
|
11
|
+
maleo/enums/status.py,sha256=JB6rG8I5ATZ0h8jTZKQ3fKsGNGum2GYfggvINIsV6ro,927
|
|
12
|
+
maleo/enums/system.py,sha256=5SG6Z6lcEFqq03jgjh60FPVB3UdXYP4XcqH5qSG6W3Y,799
|
|
13
|
+
maleo/enums/user.py,sha256=hcmylbZxXE6-qdLMXqV-zzrVVNgNy3kFC0v-EsD3vkE,661
|
|
14
|
+
maleo_enums-0.0.27.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
|
|
15
|
+
maleo_enums-0.0.27.dist-info/METADATA,sha256=g_Bp7yGMndjpmoOJkq7WGBW-MRiAzc-shFqqF34NiQc,1345
|
|
16
|
+
maleo_enums-0.0.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
maleo_enums-0.0.27.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
|
|
18
|
+
maleo_enums-0.0.27.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
maleo/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
maleo/enums/cardinality.py,sha256=XTf3li1y9i5HUSDYyYntaOT8AN7nFMjFWBFiyQIyODc,1829
|
|
3
|
-
maleo/enums/connection.py,sha256=jXww92ACMyvVPn1fGte7tbpj64LuyjzWKCeu835x2o0,4793
|
|
4
|
-
maleo/enums/environment.py,sha256=uyHMsJIGTujJ_d_maM3RO6A79W9uhhScRlgWiT48R40,569
|
|
5
|
-
maleo/enums/expiration.py,sha256=G7iDMQIOTQzUkx_nQFe04p-nwGz2OYqZJo98H63AO6U,957
|
|
6
|
-
maleo/enums/order.py,sha256=XxwsoKnptfetEu-R0SQNqFsJPCP8qrhYycRFZE43b74,463
|
|
7
|
-
maleo/enums/service.py,sha256=gyVmRDe5L05XD07OnPn3ZgdUyme7Ie2g3-WdffmiMCI,3766
|
|
8
|
-
maleo/enums/status.py,sha256=qWT5pcJ-29Jd6FUs_vlUThGHzMXRQV1sfqGzVx_ExIM,784
|
|
9
|
-
maleo/enums/system_role.py,sha256=wJtN0KMik858uyChe_g3e1_c7zWZ5_OwKvR6h9sw6YA,441
|
|
10
|
-
maleo_enums-0.0.25.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
|
|
11
|
-
maleo_enums-0.0.25.dist-info/METADATA,sha256=mLAGLhtSNfnDW2uSQs3gZLStcnO5yWAyVvc6P8BDpis,1345
|
|
12
|
-
maleo_enums-0.0.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
-
maleo_enums-0.0.25.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
|
|
14
|
-
maleo_enums-0.0.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|