This appeal presents the issue of whether a physician owes a duty of care to a third party where the physician fails to properly advise a patient who has been exposed to a communicable disease, and the patient, relying upon the advice, spreads the disease to the third party.
On June 18, 1985, Janet Viscichini, a blood technician, went to the Lynch Home in Kimberton, Pennsylvania, to take a blood sample from one of the residents. During the procedure, the patient struck or kicked Ms. Viscichini, whose skin was accidentally punctured by the needle which she had used to take blood from the patient. When Ms. Viscichini learned that the patient was a carrier of hepatitis and other diseases, she immediately sought treatment from Doctors Giunta and Alwine, appellants herein. The appellants advised her that if she remained symptom free for six weeks, she would not have been infected by the hepatitis virus. Ms. Viscichini was not told to refrain from sexual relations for any period of time following her exposure to *560the disease, but she practiced sexual abstinence until eight weeks after the exposure. As she had remained symptom free during that time, she resumed sexual relations with appellee, Joseph DiMarco, to whom she was not married. In September of 1985, Ms. Viscichini was diagnosed as suffering from hepatitis B; in December of 1985, appellee was diagnosed as having the same disease.
Appellee brought an action in the Court of Common Pleas of Philadelphia County against appellants and the Lynch Home. Among appellee’s claims is the assertion that it was negligent for the appellants not to have warned Ms. Viscichini that having sexual relations within six months of the exposure could cause her sexual partner to contract hepatitis. The trial court granted appellants’ preliminary objections and dismissed appellee’s complaint with prejudice on the ground that the appellants owed appellee no duty of care because there was no privity between appellee and the appellants. The trial court suggested, however, that a duty may be owed under these facts where the patient and the third party are married.
Appellee filed an appeal to Superior Court, which reversed, holding that the appellants “had a duty to act reasonably in advising [Viscichini] regarding her ability to transmit her communicable disease.” DiMarco v. Lynch Homes—Chester County, Inc., 384 Pa.Super. 463, 474 n. 3, 559 A.2d 530, 535 n. 3 (1989). To support its conclusion that appellants owed appellee a duty, Superior Court cites the Restatement (Second) of Torts, § 324A, which provides:
One who undertakes, gratuitously or for consideration, to render services to another which he should recognize as necessary for the protection of a third person or his things, is subject to liability to the third person for the physical harm resulting from his failure to exercise reasonable care to protect his undertaking, if
(a) his failure to exercise reasonable care increases the risk of such harm, or
(b) he has undertaken to perform a duty owed by the other to the third person, or
*561(c) the harm is suffered because of reliance of the other or the third person upon the undertaking.
Restatement (Second) of Torts § 324A. Specifically, Superi- or Court found that subsection (c) provided the basis for liability in this case. Accordingly, Superior Court found that appellee had pled a cause of action in negligence, and the case was remanded for trial. We granted the appellants’ petition for allowance of appeal, and we now affirm the decision of the Superior Court.
On an appeal from the sustaining of preliminary objections in the nature of a demurrer, “we accept as true all well-pleaded material facts set forth in the complaint as well as all inferences reasonably deducible therefrom.” Dercoli v. Pennsylvania National Mutual Insurance Co., 520 Pa. 471, 476, 554 A.2d 906, 908 (1989). In the instant case, appellee averred in his complaint that he contracted hepatitis after he had intimate relations with a woman who had been exposed to hepatitis eight weeks prior to the sexual relations; that this woman had been told by her doctors, appellants herein, that if she remained symptom free for six weeks, she would not have been infected by the hepatitis virus; that in reliance upon that advice, the woman abstained from sexual relations for eight weeks; and that the advice of the appellants was wrong in that the waiting period should have been twenty-six weeks.
In Cantwell v. Allegheny County, 506 Pa. 35, 41, 483 A.2d 1350, 1353-54 (1984), this Court stated:
In order to state a cause of action under § 324A, a complaint must contain factual allegations sufficient to establish the legal requirement that the defendant has undertaken “to render services to another which he should recognize as necessary for the protection of a third person” (in this case, the plaintiff, appellee). This is essentially a requirement of foreseeability.
(citation omitted).
When a physician treats a patient who has been exposed to or who has contracted a communicable and/or contagious disease, it is imperative that the physician give his or her *562patient the proper advice about preventing the spread of the disease. Communicable diseases are so named because they are readily spread from person to person. Physicians are the first line of defense against the spread of communicable diseases, because physicians know what measures must be taken to prevent the infection of others. The patient must be advised to take certain sanitary measures, or to remain quarantined for a period of time, or to practice sexual abstinence or what is commonly referred to as “safe sex.”
Such precautions are taken not to protect the health of the patient, whose well-being has already been compromised, rather such precautions are taken to safeguard the health of others. Thus, the duty of a physician in such circumstances extends to those “within the foreseeable orbit of risk of harm.” Doyle v. South Pittsburgh Water Co., 414 Pa. 199, 207, 199 A.2d 875, 878 (1964). If a third person is in that class of persons whose health is likely to be threatened by the patient, and if erroneous advice is given to that patient to the ultimate detriment of the third person, the third person has a cause of action against the physician, because the physician should recognize that the services rendered to the patient are necessary for the protection of the third person.1
*563As Superior Court Judge Frank J. Montemuro, Jr., writing for the majority, so cogently noted:
[T]his case involves a communicable disease. It hardly needs to be said that the prevention and control of communicable diseases is a momentous task which is of the utmost importance to the health and welfare of our citizens. The Disease Prevention and Control Law of 1955 requires a physician who treats or examines a person suffering from or who is suspected of having a communicable disease to make a prompt report to the local board of health or, if necessary, to the State Health Center of the Department. See 35 P.S. § 521.3; 28 Pa.Code § 27.21(a) and (b). We note that 28 Pa.Code § 27.115 specifically requires physicians to report cases of Hepatitis B. Further, several provisions of the Pennsylvania Code set forth procedures to be followed to prevent the contamination of our blood banks with blood from donors who suffer from or may have been exposed to viral hepatitis. See 28 Pa.Code §§ 25.71 and 30.30(7)(i).
384 Pa.Super. 463, 470, 559 A.2d 530, 533 (1989) (footnote omitted). Clearly, such measures are mandated by law specifically to protect third persons who will come into contact with those who have been exposed to or who have contracted a communicable disease.2
We find, therefore, on the basis of the averments set forth in appellee’s complaint, that appellee has stated a cause of action against the appellants. We further hold that the class of persons whose health is likely to be threatened by the patient includes any one who is physically intimate with the patient. Those, like the trial court, who *564insist that we cannot predict, or foresee, that a patient will engage in sexual activity outside of the marital relationship and that thus, we need not protect those who engage in “casual” sex, are exalting an unheéded morality over reality.3
Accordingly, we affirm the order of the Superior Court reversing and remanding for further proceedings.
FLAHERTY, J., filed a dissenting opinion joined by NIX, C.J., and ZAPPALA, J.