A study of pain management: patient controlled analgesia versus intramuscular analgesia