module WolfCore::Barton::Mappings
def map_display_pay_rate_unit(value)
def map_display_pay_rate_unit(value) DISPLAY_PAY_RATE_UNIT_MAP[value] || value end
def map_locum_availability(value)
def map_locum_availability(value) LOCUM_AVAILABILITY_MAP[value] || value end
def map_order_status(value)
def map_order_status(value) ORDER_STATUS_MAP[value] || value end
def map_pricing_id_to_provider_type(pricing_id)
def map_pricing_id_to_provider_type(pricing_id) return nil if pricing_id.blank? pricing_id = pricing_id.to_s provider_type = PROVIDER_TYPE_MAPPING.invert[pricing_id] provider_type || pricing_id end
def map_provider_type_to_pricing_id(provider_type)
def map_provider_type_to_pricing_id(provider_type) pricing_id = PROVIDER_TYPE_MAPPING[provider_type] pricing_id || provider_type end
def map_state_to_abbreviation(value)
def map_state_to_abbreviation(value) STATE_ABBREVIATIONS_MAP[value] || value end
def map_submittal_stage_to_order_application_status(value)
def map_submittal_stage_to_order_application_status(value) SUBMITTAL_STAGE_MAP[value] || value end
def reverse_map_locum_availability(value)
def reverse_map_locum_availability(value) LOCUM_AVAILABILITY_MAP.invert[value] || value end
def reverse_map_order_status(value)
def reverse_map_order_status(value) ORDER_STATUS_MAP.invert[value] || value end
def revert_map_display_pay_rate_unit(value)
def revert_map_display_pay_rate_unit(value) DISPLAY_PAY_RATE_UNIT_MAP.invert[value] || value end
def revert_map_state_to_abbreviation(value)
def revert_map_state_to_abbreviation(value) STATE_ABBREVIATIONS_MAP.invert[value] || value end
def revert_map_submittal_stage_to_order_application_status(value)
def revert_map_submittal_stage_to_order_application_status(value) SUBMITTAL_STAGE_MAP.invert[value] || value end