Judge James W. Midelis instructed the jury in state court late last week that because of a Florida appeals court decision, it was already ''a matter of law'' that the patient, Luis Alberto Jimenez, had been unlawfully detained and deprived of his liberty.