"Okita" (沖田) was his family name; "Sōji" (総司) was his given name; "Fujiwara" (藤原) was his family clan (the surname of his ancestors); "Kaneyoshi" (房良) was his jitsumei, a formal given name (like a middle name for gentlemen equivalent).