OK, I have worked as a medical device designer and business leader (GE Healthcare) for nearly 40 years, so I can provide some insight:
1) If under warranty or a service contract, the service provider should cover this.
2) If under hourly billed service (time and material service) with the manufacturer, check for two things:
a) What will they charge to fix it? [Likely to be a lot]
b) What will they sell the part for? [Also likely to be a lot]
3) Now check with 3rd party parts providers. There are many. They are likely to have new or refurbished parts that are guaranteed to work as new.
4) Finally, if you strike out on 1, 2, and 3, replace the whole cord. Here are some things to think about:
a) Is the replacement part listed for the purpose?
b) How is the strain relief protection for the cord? Always assume that someone will yank plug out by the cord, or that they will move the bed without unplugging. Replacing only the plug is not likely going to meet the strain relief requirements.
c) Review your proposed change with at least one other colleague to assess the risks presented and document your decision.