Skip to content

Commit a2fdfef

Browse files
committed
feat(package): Expose COVID feature in top-level __init__
This commit updates the main pat2vec/__init__.py file to make the new COVID-19 feature components accessible from the top-level package. The following functions and constants are now importable directly from pat2vec: get_covid, search_covid, calculate_covid_features COVID_FIELDS, SEARCH_TERM_ES, SEARCH_TERM_PLAIN generate_covid_observations_data These additions have been registered in the __all__ list to ensure they are part of the public API, improving usability and discoverability for developers using the library. This change completes the integration of the COVID feature into the package structure.
1 parent 1025fdc commit a2fdfef

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

pat2vec/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
get_core_resus,
3737
search_core_resus_observations,
3838
)
39+
from .pat2vec_get_methods.get_method_covid import (
40+
COVID_FIELDS,
41+
SEARCH_TERM_ES,
42+
SEARCH_TERM_PLAIN,
43+
calculate_covid_features,
44+
get_covid,
45+
search_covid,
46+
)
3947
from .pat2vec_get_methods.get_method_current_pat_annotations_mrc_cs import (
4048
get_current_pat_annotations_mrc_cs,
4149
)
@@ -256,6 +264,7 @@
256264
generate_bmi_data,
257265
generate_core_o2_data,
258266
generate_core_resus_data,
267+
generate_covid_observations_data,
259268
generate_diagnostic_orders_data,
260269
generate_drug_orders_data,
261270
generate_epr_documents_data,
@@ -446,6 +455,7 @@
446455
"COLUMNS_TO_DROP",
447456
"CORE_O2_FIELDS",
448457
"CORE_RESUS_FIELDS",
458+
"COVID_FIELDS",
449459
"CogStack",
450460
"CsvProfiler",
451461
"DEMOGRAPHICS_FIELDS",
@@ -459,6 +469,8 @@
459469
"MockConfig",
460470
"PathsClass",
461471
"SEARCH_TERM",
472+
"SEARCH_TERM_ES",
473+
"SEARCH_TERM_PLAIN",
462474
"SMOKING_FIELDS",
463475
"TestBuildIpwDataframe",
464476
"TestCalculateInterval",
@@ -503,6 +515,7 @@
503515
"calculate_bmi_features",
504516
"calculate_core_o2_features",
505517
"calculate_core_resus_features",
518+
"calculate_covid_features",
506519
"calculate_diagnostic_features",
507520
"calculate_drug_features",
508521
"calculate_hospital_site_features",
@@ -585,6 +598,7 @@
585598
"generate_control_list",
586599
"generate_core_o2_data",
587600
"generate_core_resus_data",
601+
"generate_covid_observations_data",
588602
"generate_date_list",
589603
"generate_diagnostic_orders_data",
590604
"generate_drug_orders_data",
@@ -611,6 +625,7 @@
611625
"get_cat",
612626
"get_core_02",
613627
"get_core_resus",
628+
"get_covid",
614629
"get_current_pat_annotations",
615630
"get_current_pat_annotations_mrc_cs",
616631
"get_current_pat_bloods",
@@ -746,6 +761,7 @@
746761
"search_cohort",
747762
"search_core_o2_observations",
748763
"search_core_resus_observations",
764+
"search_covid",
749765
"search_demographics",
750766
"search_diagnostic_orders",
751767
"search_drug_orders",

0 commit comments

Comments
 (0)