(
    case_trigger_infos: List[CaseTriggerInfo],
    resource_types_by_case_type: dict,
)
return results
Returns pairs of CaseTriggerInfo + the FHIR resource they map to.
Returns pairs of CaseTriggerInfo + the FHIR resource they map to.
Returns pairs of CaseTriggerInfo + the FHIR resource they map to .
def get_info_resource_list(
    case_trigger_infos: List[CaseTriggerInfo],
    resource_types_by_case_type: dict,
) -> List[Tuple[CaseTriggerInfo, dict]]:
    """
    Returns pairs of CaseTriggerInfo + the FHIR resource they map to.
    """
    results = []
    for info in case_trigger_infos:
        resource_type = resource_types_by_case_type[info.type]
        resource = build_fhir_resource_for_info(info, resource_type)
        if resource:
            # We return `info` with `resource` because
            # `get_bundle_entries()` will need both.
            results.append((info, resource))
    return results
def get_info_resource_list ( case_trigger_infos : List [ CaseTriggerInfo ] , resource_types_by_case_type : dict , ) -> List [ Tuple [ CaseTriggerInfo , dict ] ] : results = [ ] for info in case_trigger_infos : resource_type = resource_types_by_case_type [ info . type ] resource = build_fhir_resource_for_info ( info , resource_type ) if resource : # We return `info` with `resource` because # `get_bundle_entries()` will need both. results . append ( ( info , resource ) ) return results