Skip to content

Commit 85ae1ea

Browse files
committed
wip
1 parent b1ae7f8 commit 85ae1ea

6 files changed

Lines changed: 98 additions & 19 deletions

File tree

backend/src/mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ class DiseaseCodes:
5555
]
5656

5757

58-
# valid_disease_code_combinations = [x[0] for x in vaccine_type_mappings]
58+
valid_disease_code_combinations = [x[0] for x in vaccine_type_mappings]

recordprocessor/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ test:
88
python -m unittest
99

1010
coverage run:
11-
coverage run -m unittest discover
11+
coverage run -m unittest discover
1212

1313
coverage report:
1414
coverage report -m
1515

1616
coverage html:
17-
coverage html
17+
coverage html
1818

1919
.PHONY: build package

recordprocessor/poetry.lock

Lines changed: 86 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

recordprocessor/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
packages = [{include = "src"}]
88

99
[tool.poetry.dependencies]
10-
python = "~3.10"
10+
python = "~3.11"
1111
"fhir.resources" = "~7.0.2"
1212
boto3 = "~1.38.17"
1313
boto3-stubs-lite = {extras = ["dynamodb"], version = "~1.26.90"}
@@ -25,6 +25,7 @@ structlog = "^24.1.0"
2525
pandas = "^2.2.3"
2626
freezegun = "^1.5.1"
2727
coverage = "^7.8.0"
28+
redis = "^5.1.1"
2829

2930
[build-system]
3031
requires = ["poetry-core ~= 1.5.0"]

recordprocessor/src/mappings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from enum import Enum
44
from typing import Dict, List
55
from constants import Urls
6-
from elasticache import get_disease_mapping_json_from_cache
76

87

98
class Vaccine(Enum):
@@ -48,9 +47,6 @@ class DiseaseDisplayTerm(Enum):
4847
RSV: str = "Respiratory syncytial virus infection (disorder)"
4948

5049

51-
VACCINE_DISEASE_MAPPING2 = get_disease_mapping_json_from_cache()
52-
53-
5450
VACCINE_DISEASE_MAPPING: Dict[Vaccine, List[Disease]] = {
5551
Vaccine.COVID_19: [Disease.COVID_19],
5652
Vaccine.FLU: [Disease.FLU],
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""Mappings for converting vaccine type into target disease FHIR element"""
2+
3+
4+
from elasticache import get_disease_mapping_json_from_cache
5+
6+
7+
VACCINE_DISEASE_MAPPING2 = get_disease_mapping_json_from_cache()

0 commit comments

Comments
 (0)