Welcome to the forum.
The difference is the sentences are about different things - the first is about a patient who is to some degree worried about having an operation, whilst the second is about 'river travels' being quite expensive.
Did you mean to ask whether the meaning of 'somewhat' in each sentence is the same? If so, the answer is yes - somewhat retains the same meaning in both sentences.