In Norway there’s a whole field of laws regulating involuntary treatment (meaning with medications) and involuntary admissions. Called "Law of psychiatric care".
INVOLUNTARY ADMISSION / HOSPITALISATION
1) A physician is required to examine the patient prior to admission.
If the patient refuses the examination (doesn’t want to see the doctor), a written resolution
from the head community doctor is needed to go on with the examination.
2) There are two levels of involuntary admissions:
A) Involuntary observation for a maximum of 10 days:
If one has strong reason to suspect that the patient is suffering
from a serious mental (psychotic) illness, but has to little
knowledge about the patient to be completely sure(for instance;
psychosis because of intoxication from drugs and suicidal
patients)

Involuntary admission:
If the patient has a known chronic serious mental (psychotic)
illness (like schizophrenia) AND one of the listed conditions are
present:
a)It’s very likely that the patient will reduce his /her chances of
getting much better without admission, OR it is very likely that
the persons condition in a very near future will be much worse, OR
b)is putting his/her or other peoples life in danger
In both cases (A and

, the following criteria must be met:
a) voluntary treatment has been attempted without any results
b) The patient has been examined by two doctors (one prior to
admission and independent of the hospital in question), and one at
admission) (In addition a specialist in psychiatry at the hospital
needs to evaluate the criteria for the admission after another
independent examination within 24 hours)
c) The hospital / institution is professionally and materially able to
provide the help needed (in addition only psychiatric hospitals
institutions are qualified / permitted to admit people for
involuntary care)
d) The patient has been given the opportunity to speak for him- /
herself
e) Even if all these criteria are met, involuntary admission can only be
permitted if this is considered to be the overall best solution
for the patient.
The patient or his / her next of kin have the right to appeal against this decision to the local authorities (special appointed committees).
In addition one can ask to be admitted “voluntarily involuntarily”. That means that the patient can make an agreement with the hospital that they can hold him / her against their will for a maximum of 3 weeks if they change their mind about the admission before the treatment is completed.
If one is admitted voluntarily to the hospital, it is not permitted to change the voluntary status of the patient while he / she is admitted to hospital, even if the person is getting much worse and is refusing treatment. An exception to this is if the situation requires action permitted by principle of necessity (jus necessitatis)
INVOLUNTARY TREATMENT WITH MEDICATION
Is another chapter with specific strict regulations, and considers primarily antipsychotic treatment for severely psychotic people.