Vedic astrology and Vastu Shastra generally advise against purchasing a house directly opposite a cemetery, prison, or hospital. These locations are often associated with negative energies and are believed to create an imbalance in the surrounding environment. Residing near a cemetery can bring about feelings of fear, unease, and a sense of heaviness. Proximity to a prison can create an atmosphere of negativity and restriction, potentially affecting the residents' freedom and peace of mind. Similarly, being opposite a hospital can expose the house to a constant influx of illness and suffering, impacting the overall health and well-being of the occupants. While these are general guidelines, it's always best to consult with an experienced astrologer or Vastu consultant. They can provide personalized insights based on the specific location, the house's orientation, and other planetary influences in your birth chart, offering a more comprehensive understanding of the potential effects.