omop-constructs 0.3.0__tar.gz → 0.3.1__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.
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/PKG-INFO +1 -1
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/pyproject.toml +1 -1
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/__init__.py +3 -2
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/condition_modifier_join.py +6 -4
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/modifier_mappers.py +1 -1
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/README.md +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/adapters.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/concepts/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/concepts/concept_mappers.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/concepts/concept_standardisation.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/conditions/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/conditions/condition_joins.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/conditions/condition_mappers.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/demography/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/demography/demography_matview.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/demography/demography_queries.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/episodes/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/episodes/condition_episode_mv.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/episodes/condition_episode_objects.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/episodes/episode_factories.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/episodes/episode_joins.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/events/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/events/dx_linked_event_mv.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/events/event_factories.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/events/event_queries.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/condition_modifier_mv.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/modifier_factories.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/modifier_joins.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/source_factories.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/base.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/constructs.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/ddl.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/errors.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/materialized.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/plan.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/core/registry.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/py.typed +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/semantics/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/semantics/adapters.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/semantics/lookups.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/semantics/runtime_lookups.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/services/__init__.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/services/concept.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/services/person.py +0 -0
- {omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/typing.py +0 -0
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/modifiers/__init__.py
RENAMED
|
@@ -9,7 +9,7 @@ from .modifier_mappers import (
|
|
|
9
9
|
MetastaticDiseaseModifierMV,
|
|
10
10
|
AllStageModifierMV
|
|
11
11
|
)
|
|
12
|
-
from .condition_modifier_mv import ModifiedCondition
|
|
12
|
+
from .condition_modifier_mv import ModifiedCondition, StageModifier
|
|
13
13
|
|
|
14
14
|
__all__ = [
|
|
15
15
|
"TStageMV",
|
|
@@ -21,5 +21,6 @@ __all__ = [
|
|
|
21
21
|
"SizeModifierMV",
|
|
22
22
|
"ModifiedCondition",
|
|
23
23
|
"MetastaticDiseaseModifierMV",
|
|
24
|
-
"AllStageModifierMV"
|
|
24
|
+
"AllStageModifierMV",
|
|
25
|
+
"StageModifier"
|
|
25
26
|
]
|
|
@@ -18,6 +18,7 @@ from .modifier_mappers import (
|
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
condition_concept = so.aliased(Concept, name='condition_concept')
|
|
21
|
+
stage_concept = so.aliased(Concept, name='stage_concept')
|
|
21
22
|
|
|
22
23
|
modified_conditions_join = (
|
|
23
24
|
sa.select(
|
|
@@ -147,10 +148,10 @@ all_stage_join = (
|
|
|
147
148
|
Condition_Occurrence.condition_concept_id,
|
|
148
149
|
condition_concept.concept_name.label('condition_concept'),
|
|
149
150
|
Episode_Event.episode_id.label('condition_episode'),
|
|
150
|
-
AllStageModifierMV.
|
|
151
|
-
AllStageModifierMV.
|
|
152
|
-
AllStageModifierMV.
|
|
153
|
-
|
|
151
|
+
AllStageModifierMV.measurement_id.label('stage_id'),
|
|
152
|
+
AllStageModifierMV.measurement_date.label('stage_date'),
|
|
153
|
+
AllStageModifierMV.measurement_concept_id.label('stage_concept_id'),
|
|
154
|
+
stage_concept.concept_name.label('stage_label'),
|
|
154
155
|
)
|
|
155
156
|
.join(
|
|
156
157
|
Episode_Event,
|
|
@@ -169,4 +170,5 @@ all_stage_join = (
|
|
|
169
170
|
isouter=True
|
|
170
171
|
)
|
|
171
172
|
.join(condition_concept, condition_concept.concept_id==Condition_Occurrence.condition_concept_id)
|
|
173
|
+
.join(stage_concept, stage_concept.concept_id==AllStageModifierMV.measurement_concept_id)
|
|
172
174
|
)
|
|
@@ -116,7 +116,7 @@ class MetastaticDiseaseModifierMV(MeasModCols, MaterializedViewMixin, Base):
|
|
|
116
116
|
measurement_concept_id = sa.Column(sa.Integer)
|
|
117
117
|
|
|
118
118
|
@register_construct
|
|
119
|
-
class AllStageModifierMV(
|
|
119
|
+
class AllStageModifierMV(MeasModCols, MaterializedViewMixin, Base):
|
|
120
120
|
__mv_name__ = "all_stage_modifier_mv"
|
|
121
121
|
__mv_select__ = all_stage_select.select()
|
|
122
122
|
__mv_index__ = "measurement_event_id"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/concepts/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/conditions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/demography/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/episodes/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/events/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/events/event_queries.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/alchemy/source_factories.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.3.0 → omop_constructs-0.3.1}/src/omop_constructs/semantics/runtime_lookups.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|