Both of these contraindications are controversial 
Poorly controlled psychosis
Severe liver disease such as cirrhosis
Pregnancy
Active substance use disorder (for serial ketamine injections)
Age less than 3 months

Side effects
At anesthetic doses, 10–20% of adults (1–2% of children) experience adverse psychiatric reactions that occur during emergence from anesthesia, ranging from dreams and dysphoria to hallucinations and emergence delirium. Psychotomimetic effects decrease adding lamotrigine and nimodipine and can be counteracted by pretreatment with a benzodiazepine or propofol. Ketamine anesthesia commonly causes tonic-clonic movements (greater than 10% of people) and rarely hypertonia. Vomiting can be expected in 5–15% of the patients; pretreatment with propofol mitigates it as well. Laryngospasm occurs only rarely with ketamine. Ketamine, generally, stimulates breathing; however, in the first 2–3 minutes of a high-dose rapid intravenous injection it may cause a transient respiratory depression.At lower sub-anesthetic doses, psychiatric side effects are prominent. Most people feel strange, spacey, woozy, or a sense of floating, or have visual distortions or numbness. Also very frequent (20–50%) are difficulty speaking, confusion, euphoria, drowsiness, and difficulty concentrating. The symptoms of psychosis such as going into a hole, disappearing, feeling as if melting, experiencing colors, and hallucinations are described by 6–10% of people. Dizziness, blurred vision, dry mouth, hypertension, nausea, increased or decreased body temperature, or feeling flushed are the common (>10%) non-psychiatric side effects. All these adverse effects are most pronounced by the end of the injection, dramatically reduced 40 minutes afterward, and completely disappear within 4 hours after the injection.
Another finding, often misinterpreted as early heterotopic bone formation, is an increased (early) uptake around the knees or the ankles in a patient with a very recent spinal cord injury. It is not clear exactly what this means, because these patients do not develop heterotopic bone formation. It has been hypothesized that this may be related to the autonomic nervous system and its control over circulation.When the initial presentation is swelling and increased temperature in a leg, the differential diagnosis includes thrombophlebitis. It may be necessary to do both a bone scan and a venogram to differentiate between heterotopic ossification and thrombophlebitis, and it is even possible that both could be present simultaneously. In heterotopic ossification, the swelling tends to be more proximal and localized, with little or no foot/ankle edema, whereas in thrombophlebitis the swelling is usually more uniform throughout the leg. Treatment
There is no clear form of treatment. Originally, bisphosphonates were expected to be of value after hip surgery but there has been no convincing evidence of benefit, despite having been used prophylactically.Depending on the growths location, orientation and severity, surgical removal may be possible. Radiation Therapy. Prophylactic radiation therapy for the prevention of heterotopic ossification has been employed since the 1970s. A variety of doses and techniques have been used. Generally, radiation therapy should be delivered as close as practical to the time of surgery. A dose of 7-8 Gray in a single fraction within 24–48 hours of surgery has been used successfully.