I am conflicted between getting a second master's and moving on to a PhD? I have always loved psychology, and so I went and got a first degree in that field. However, I also loved technology (especially computers) while growing up. Unfortunately, I wasn't well-informed about university programs, and so I didn't know I could do both psychology and computer science in my undergraduate, until I was admitted and wasn't allowed by my institution to pick on new programs. So after undergraduate I decided to go on to pursue a health technology (ehealth &amp; telemedicine) master's program, but my lack of knowledge in computer science makes me not proficient in the tech aspect of my field and limits my PhD options in that field. My ideal career move involves combining technology in my psychology professional practice. But now, I am confused as to whether I should just go on and pursue a PhD Health technology or go in for a second master's in psychology to allow me further into PhD psychology afterwards? I can't apply for PhD in psychology without a master's in that field either, but I also feel I am not growing younger anymore and so time matters, if I want to enjoy a long career before retirement then I should get a PhD soon enough. But that will mean sticking to health technology and forgoing my psychology dreams. I am really confused now. Also, is there anyway I can get into psychology and still take a course in computer science? What are my options, what should I do?
If it is possible to start your dream PhD without further prerequisites: do it. Also take notice that it'll be hard, but doable. In my opinion a second Master's has no benefit, taking the possible admission to the PhD program aside.

I know someone, who got a PhD in physics after a Master's in biology. I went to a PhD in CS after a Master's in mathematics.

(This is also a bit dependent on the field and on the social component, so please tag with a country for further answers. My experience references German system, but it should be generic enough for US too.)