omop-constructs 0.2.3__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.
Files changed (40) hide show
  1. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/PKG-INFO +2 -2
  2. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/pyproject.toml +2 -2
  3. omop_constructs-0.2.4/src/omop_constructs/alchemy/conditions/__init__.py +7 -0
  4. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/episode_factories.py +10 -10
  5. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/episode_joins.py +2 -2
  6. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/README.md +0 -0
  7. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/__init__.py +0 -0
  8. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/__init__.py +0 -0
  9. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/adapters.py +0 -0
  10. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/__init__.py +0 -0
  11. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/concept_mappers.py +0 -0
  12. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/concepts/concept_standardisation.py +0 -0
  13. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/conditions/condition_joins.py +0 -0
  14. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/conditions/condition_mappers.py +0 -0
  15. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/__init__.py +0 -0
  16. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/episodes/condition_episode_mv.py +0 -0
  17. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/__init__.py +0 -0
  18. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/condition_modifier_join.py +0 -0
  19. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/condition_modifier_mv.py +0 -0
  20. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/modifier_factories.py +0 -0
  21. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/modifier_joins.py +0 -0
  22. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/modifiers/modifier_mappers.py +0 -0
  23. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/alchemy/source_factories.py +0 -0
  24. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/__init__.py +0 -0
  25. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/base.py +0 -0
  26. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/constructs.py +0 -0
  27. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/ddl.py +0 -0
  28. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/errors.py +0 -0
  29. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/materialized.py +0 -0
  30. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/plan.py +0 -0
  31. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/core/registry.py +0 -0
  32. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/py.typed +0 -0
  33. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/semantics/__init__.py +0 -0
  34. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/semantics/adapters.py +0 -0
  35. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/semantics/lookups.py +0 -0
  36. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/semantics/runtime_lookups.py +0 -0
  37. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/services/__init__.py +0 -0
  38. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/services/concept.py +0 -0
  39. {omop_constructs-0.2.3 → omop_constructs-0.2.4}/src/omop_constructs/services/person.py +0 -0
  40. {omop_constructs-0.2.3 → 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
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
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"
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.8",
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,7 @@
1
+ from .condition_joins import condition_window
2
+ from .condition_mappers import Condition_Window
3
+
4
+ __all__ = [
5
+ "condition_window",
6
+ "Condition_Window"
7
+ ]
@@ -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("parent_episode_id"),
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("parent_episode_concept_id"),
82
- parent_episode_subq.c.episode_label.label("parent_episode_label"),
83
- parent_episode_subq.c.episode_start_date.label("parent_start_date"),
84
- parent_episode_subq.c.episode_end_date.label("parent_end_date"),
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("child_episode_id"),
87
- child_episode_subq.c.episode_concept_id.label("child_episode_concept_id"),
88
- child_episode_subq.c.episode_label.label("child_episode_label"),
89
- child_episode_subq.c.episode_start_date.label("child_start_date"),
90
- child_episode_subq.c.episode_end_date.label("child_end_date"),
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.episodes.disease_episode_types.episode_of_care], # type: ignore
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.episodes.disease_episode_types.metastatic, runtime.episodes.disease_episode_types.disease_progression], # type: ignore
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
  )