omop-constructs 0.2.2__tar.gz → 0.2.4__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.2.2 → omop_constructs-0.2.4}/PKG-INFO +2 -2
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/pyproject.toml +2 -2
- omop_constructs-0.2.4/src/omop_constructs/alchemy/conditions/__init__.py +7 -0
- omop_constructs-0.2.4/src/omop_constructs/alchemy/episodes/__init__.py +13 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/episode_factories.py +10 -10
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/episode_joins.py +2 -2
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/README.md +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/adapters.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/concept_mappers.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/concept_standardisation.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/conditions/condition_joins.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/conditions/condition_mappers.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/condition_episode_mv.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/condition_modifier_join.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/condition_modifier_mv.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/modifier_factories.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/modifier_joins.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/modifier_mappers.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/source_factories.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/base.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/constructs.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/ddl.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/errors.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/materialized.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/plan.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/core/registry.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/py.typed +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/semantics/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/semantics/adapters.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/semantics/lookups.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/semantics/runtime_lookups.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/services/__init__.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/services/concept.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/services/person.py +0 -0
- {omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/typing.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: omop-constructs
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: For building complex constructs on top of the omop-alchemy library.
|
|
5
5
|
Author: Georgie Kennedy
|
|
6
6
|
Author-email: Georgie Kennedy <georgina.kennedy@unsw.edu.au>
|
|
7
7
|
Requires-Dist: omop-alchemy>=0.5.12
|
|
8
|
-
Requires-Dist: omop-semantics>=0.1.
|
|
8
|
+
Requires-Dist: omop-semantics>=0.1.10
|
|
9
9
|
Requires-Dist: psycopg2-binary>=2.9.11
|
|
10
10
|
Requires-Dist: sqlalchemy>=2.0.45
|
|
11
11
|
Requires-Dist: urllib3>=2.6.3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "omop-constructs"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4"
|
|
4
4
|
description = "For building complex constructs on top of the omop-alchemy library."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -9,7 +9,7 @@ authors = [
|
|
|
9
9
|
requires-python = ">=3.12"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"omop-alchemy>=0.5.12",
|
|
12
|
-
"omop-semantics>=0.1.
|
|
12
|
+
"omop-semantics>=0.1.10",
|
|
13
13
|
"psycopg2-binary>=2.9.11",
|
|
14
14
|
"sqlalchemy>=2.0.45",
|
|
15
15
|
"urllib3>=2.6.3",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .condition_episode_mv import OverarchingDiseaseEpisodeMV
|
|
2
|
+
from .episode_joins import episode_of_care_select, disease_extent_select, overarching_disease_episode
|
|
3
|
+
from .episode_factories import get_episode_query, require_condition_anchor, get_episode_hierarchy_query
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"OverarchingDiseaseEpisodeMV",
|
|
7
|
+
"episode_of_care_select",
|
|
8
|
+
"disease_extent_select",
|
|
9
|
+
"overarching_disease_episode",
|
|
10
|
+
"get_episode_query",
|
|
11
|
+
"require_condition_anchor",
|
|
12
|
+
"get_episode_hierarchy_query",
|
|
13
|
+
]
|
|
@@ -76,18 +76,18 @@ def get_episode_hierarchy_query(
|
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
sa.select(
|
|
79
|
-
parent_episode_subq.c.episode_id.label("
|
|
79
|
+
parent_episode_subq.c.episode_id.label("disease_episode_id"),
|
|
80
80
|
parent_episode_subq.c.person_id.label("person_id"),
|
|
81
|
-
parent_episode_subq.c.episode_concept_id.label("
|
|
82
|
-
parent_episode_subq.c.episode_label.label("
|
|
83
|
-
parent_episode_subq.c.episode_start_date.label("
|
|
84
|
-
parent_episode_subq.c.episode_end_date.label("
|
|
81
|
+
parent_episode_subq.c.episode_concept_id.label("disease_episode_concept_id"),
|
|
82
|
+
parent_episode_subq.c.episode_label.label("disease_episode_label"),
|
|
83
|
+
parent_episode_subq.c.episode_start_date.label("disease_episode_start_date"),
|
|
84
|
+
parent_episode_subq.c.episode_end_date.label("disease_episode_end_date"),
|
|
85
85
|
|
|
86
|
-
child_episode_subq.c.episode_id.label("
|
|
87
|
-
child_episode_subq.c.episode_concept_id.label("
|
|
88
|
-
child_episode_subq.c.episode_label.label("
|
|
89
|
-
child_episode_subq.c.episode_start_date.label("
|
|
90
|
-
child_episode_subq.c.episode_end_date.label("
|
|
86
|
+
child_episode_subq.c.episode_id.label("extent_episode_id"),
|
|
87
|
+
child_episode_subq.c.episode_concept_id.label("extent_episode_concept_id"),
|
|
88
|
+
child_episode_subq.c.episode_label.label("extent_episode_label"),
|
|
89
|
+
child_episode_subq.c.episode_start_date.label("extent_start_date"),
|
|
90
|
+
child_episode_subq.c.episode_end_date.label("extent_end_date"),
|
|
91
91
|
)
|
|
92
92
|
.join(
|
|
93
93
|
child_episode_subq,
|
|
@@ -3,14 +3,14 @@ from omop_semantics.runtime.default_valuesets import runtime
|
|
|
3
3
|
|
|
4
4
|
episode_of_care_select = require_condition_anchor(
|
|
5
5
|
get_episode_query(
|
|
6
|
-
[runtime.
|
|
6
|
+
[runtime.types.disease_episode_types.episode_of_care], # type: ignore
|
|
7
7
|
name="episode_of_care"
|
|
8
8
|
)
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
disease_extent_select = require_condition_anchor(
|
|
12
12
|
get_episode_query(
|
|
13
|
-
[runtime.
|
|
13
|
+
[runtime.types.disease_episode_types.disease_progression, runtime.types.disease_episode_types.metastatic], # type: ignore
|
|
14
14
|
name="disease_extent"
|
|
15
15
|
)
|
|
16
16
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.2.2 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omop_constructs-0.2.2 → omop_constructs-0.2.4}/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.2.2 → omop_constructs-0.2.4}/src/omop_constructs/semantics/runtime_lookups.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|