A 50-year-old man is hospitalized with acute onset of shortness of breath and fatigue. In the emergency department, he coughed up a large quantity of blood followed by hypoxic respiratory failure, for which he was intubated.

On physical examination, the patient is well developed. He is afebrile; blood pressure is 140/90 mm Hg, and heart rate is 98/min. There is no jugular venous distension. Coarse crackles are heard in the lung fields. There is trace lower extremity edema. The remainder of the physical examination is normal.

Laboratory studies:

Hemoglobin

9.0 g/dL (90 g/L)

Blood urea nitrogen

38 mg/dL (13.6 mmol/L)

Creatinine

3.2 mg/dL (282.9 µmol/L)

Liver chemistry tests

Normal

Urinalysis

3+ blood; 2+ protein; 20-30 erythrocytes/hpf; 5-10 leukocytes/hpf

Urine protein-creatinine ratio

2200 mg/g

A chest radiograph shows bilateral pulmonary infiltrates.

A kidney biopsy is performed, which shows necrotizing, crescentic glomerulonephritis with linear staining of IgG along the glomerular basement membrane.

Which of the following is the most likely diagnosis?