According to "Yoro ritsuryo code" (code promulgated in the Yoro era), "shitokan" (four classifications of bureaucrats' ranks), including "Tenyaku no kami" (the head of Tenyakuryo), were established within Tenyakuryo, and there existed four kinds of technocrats, that is, doctor, acupuncturist, masseur, and necromancer.
養老律令によれば、典薬寮に典薬頭以下の四等官が設置され、医師・針師・按摩師・呪禁師の技術官僚が置かれた。 - Wikipedia日英京都関連文書対訳コーパス
Moreover, Tenyakuryo had an educational organization that was headed by an "I-hakase" (Master of Medicine), a "Hari-hakase" (Master of Acupuncture), an "Anma-hakase" (Master of Massage), and a "Jugon-hakase" (Master of Necromancy), who were selected as excellent in their knowledge and medical techniques from all technocrats.
これとは別に教育組織として技術官僚の中で学識・技術の優秀な人物から選ばれた医博士・針博士・按摩博士・呪禁博士が各1置かれていた。 - Wikipedia日英京都関連文書対訳コーパス