Well... A risk assessment assess how a hazard, potentially evolving during a process, can have an impact on people using a product. Hazard can be biological, chemical or physical, in food processes, but they can also be related to food fraud, food defense, and all other sectors than food. Usually, in food industries, risk assessment is conducted by food safety authorities, while hazard analysis (how the hazard will evolve during my particular process) is operator's business.
You can compile all risk assessments or hazard analysis in the same folder or file, but you won't be able to take one from a different business in your own, as the processes, hazards, products and use can differ.
How to do a hazard analysis ? Establish the flow diagram, and evaluate how the hazard can evolve through the process.
For the risk assessment, you can you the hazard analysis, set the limit value that hazard can have at the point of use / consumption (for example, we can have only 1 people sick due to C. botulinum in a billion of tins) and go back through the process to determine what are your process and raw materials requirements.