The general "patent application right" is generated or agreed before patent application, patented technology or research and development.
That is, the definition of patent applicant is stipulated in the Patent Law, one of which is that the ownership of technological achievements produced by R&D can be agreed before being developed with others, that is, to determine who owns the intellectual property rights of the acquired new technology.
If you can't answer your question according to the above explanation, please explain your question again.