Skip to content

Commit

Permalink
MyPy Type Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bencap committed Apr 11, 2024
1 parent 2ccf76d commit 26e07a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/seattleflu/id3c/cli/command/etl/redcap_det_kiosk.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_sfs_barcode(redcap_record: dict) -> str:
return barcode


def create_cepheid_result_observation_resource(redcap_record: dict) -> List[dict]:
def create_cepheid_result_observation_resource(redcap_record: dict) -> List[Observation]:
"""
Determine the cepheid results based on responses in *redcap_record* and
create observation resources for each result following the FHIR format
Expand Down Expand Up @@ -282,7 +282,7 @@ def create_cepheid_result_observation_resource(redcap_record: dict) -> List[dict
cepheid_results = find_selected_options('cepheid_results___', redcap_record)

# Create observation resources for all potential results in Cepheid test
diagnostic_results = {}
diagnostic_results: dict[str, Observation] = {}
for index, result in enumerate(code_map):
new_observation = observation_resource('Cepheid')
new_observation['id'] = 'result-' + str(index+1)
Expand Down Expand Up @@ -695,7 +695,7 @@ def determine_symptoms_codes(redcap_record: dict) -> Optional[dict]:
def create_encounter(redcap_record: REDCapRecord,
patient_reference: dict,
location_references: List[dict],
symptom_resources: Optional[List[dict]],
symptom_resources: Optional[List[Condition]],
symptom_references: Optional[List[dict]]) -> tuple:
"""
Create FHIR encounter resource and encounter reference from given
Expand Down

0 comments on commit 26e07a1

Please sign in to comment.