civicpy/recipes.py
def get_variant_phenotypes_with_suggested_changes_merged(variant_id_list):
    '''for each variant, yields evidence and merged phenotype from applying suggested changes to current'''
    for evidence, phenotype_status in get_variant_phenotypes_with_suggested_changes(variant_id_list):
        final = phenotype_status['current']
        for rid in sorted(phenotype_status['suggested_changes']):
            changes = phenotype_status['suggested_changes'][rid]
            final = final - changes['deleted']
            final = final | changes['added']
        if final:
            yield evidence, final
def get_variant_phenotypes_with_suggested_changes_merged(variant_id_list):
    '''for each variant, yields evidence and merged phenotype from applying suggested changes to current'''
    for evidence, phenotype_status in get_variant_phenotypes_with_suggested_changes(variant_id_list):
        final = phenotype_status['current']
        for rid in sorted(phenotype_status['suggested_changes']):
            changes = phenotype_status['suggested_changes'][rid]
            final = final - changes['deleted']
            final = final | changes['added']
        if final:
            yield evidence, final
for each variant, yields evidence and merged phenotype from applying suggested changes to current