First of all, it is more natural to say, "I have just been diagnosed."
Basically, those are two ways of saying virtually the same thing, if it is in the context of, for example, someone saying, "When did you find out you had cancer?" and you could reply either, "I was just diagnosed," or, "I have just been diagnosed." Both mean it happened in the immediate past.