def get_region_data(data):
    """
    Takes in data and returns all the allowed fields
    in a dict format
    """
    data = {
        "region": data.get('region'),
        "periodType": data.get('periodType'),
        "timeToElapse": data.get('timeToElapse'),
        "reportedCases": data.get('reportedCases'),
        "population": data.get('population'),
        "totalHospitalBeds": data.get('totalHospitalBeds')
    }
    return data