The Scottish Ministers may, if they are satisfied that it is necessary to do so, direct—
(a)
a health board to make such payments as Ministers consider appropriate to—
(i)
another health board; or
(ii)
a local authority;
(b)
a local authority to make such payments as Ministers consider appropriate to—
(i)
another local authority; or
(ii)
a health board,
in connection with the performance by the recipient board or authority of its functions relating to the protection of public health.