def validate_HR_data(in_data):  # test
    """Validates input to add_heart_rate for correct fields

    Args:
        in_data: dictionary received from POST request

    Returns:
        boolean: if in_data contains the correct fields
    """
    expected_keys = {"patient_id", "heart_rate"}
    for key in in_data.keys():
        if key not in expected_keys:
            return False
    return True