(c) In order to comply with section five hundred-b of this chapter, to afford appropriate precautions for the personal safety and welfare of persons in custody, and to foster the safety, security and good order of the local correctional facility, a sheriff upon the lawful commitment of a person to his custody may request, and a sheriff to whom such request is made shall deliver, such information in his possession or summaries thereof as specified in subdivision (a) of this section with the exception of medical and psychiatric records which would be forwarded pursuant to subdivision (d) of this section.
(d) Any medical or psychiatric records in the possession of a health care provider shall be summarized in detail and forwarded by such health care provider to the medical director of the receiving local correctional facility upon the request of such sheriff or medical director. Requests for such information shall be made when the information is necessary for the timely and effective medical evaluation or treatment.
(e) A copy of any order of protection issued by any court against such inmate pursuant to article five hundred thirty of the criminal procedure law or article eight of the family court act at the time of sentencing or which thereafter be issued shall accompany any commitment.
(f) Information, however received, pursuant to subdivisions (c) and (d) of this section which is confidential as required by law shall be kept confidential by the party receiving such information and any limitation on the release of such information imposed by law upon the party furnishing the information shall also apply to the party receiving such information. Any disclosure of confidential material made pursuant to this section shall be limited to that information which is necessary in light of the reason for disclosure.
(g) The state commission of correction shall promulgate a rule and regulation which prescribes the manner in which confidential material shall be transmitted between local correctional facilities.