(form_config, info)
return values_for_concept
Returns a dictionary mapping OpenMRS concept UUIDs to lists of
    values. Each value will be exported as a separate Observation.
Returns a dictionary mapping OpenMRS concept UUIDs to lists of
    values. Each value will be exported as a separate Observation.
Returns a dictionary mapping OpenMRS concept UUIDs to lists of values . Each value will be exported as a separate Observation .
def get_values_for_concept(form_config, info):
    """
    Returns a dictionary mapping OpenMRS concept UUIDs to lists of
    values. Each value will be exported as a separate Observation.
    """
    values_for_concept = defaultdict(list)
    for obs in form_config.openmrs_observations:
        if obs.concept == ALL_CONCEPTS:
            # ALL_CONCEPTS is a special value for importing all
            # Observations as extension cases. It's not applicable here.
            continue
        value_source = as_value_source(obs.value)
        if value_source.can_export and not is_blank(value_source.get_value(info)):
            values_for_concept[obs.concept].append(value_source.get_value(info))
    return values_for_concept
def get_values_for_concept ( form_config , info ) : values_for_concept = defaultdict ( list ) for obs in form_config . openmrs_observations : if obs . concept == ALL_CONCEPTS : # ALL_CONCEPTS is a special value for importing all # Observations as extension cases. It's not applicable here. continue value_source = as_value_source ( obs . value ) if value_source . can_export and not is_blank ( value_source . get_value ( info ) ) : values_for_concept [ obs . concept ] . append ( value_source . get_value ( info ) ) return values_for_concept