In this paper we show that harmonic compact operator-valued functions are characterized by having harmonic diagonal matrix coefficients in any choice of basis. We also give an example which shows that an operator-valued function with values outside the compact operators can have harmonic diagonal matrix coefficients in any choice of basis without being a harmonic operator-valued function. We us...