Step 1. Was case classified as valid case using the Is Case Valid phenotype. If No, mark No. If Yes, proceed to step 2.
Step 2. Was the case classified as a Intubation Only using the Procedure Type: Intubation Only phenotype. If Yes, mark No. If No, proceed to step 3.
Step 3. Check the case for at least one of the Surgical CPT codes listed below. If one of the Surgical CPT codes are present, proceed to step 5. If no proceed to step 4.
- Surgical CPT: 43200, 43201, 43202, 43204, 43205, 43215, 43216, 43217, 43219, 43220, 43226, 43227, 43228, 43231, 43232, 43260, 43261, 43262, 43263, 43264, 43265, 43267, 43268, 43269, 43271, 43272, 43234, 43235, 43236, 43237, 43238, 43239, 43240, 43241, 43242, 43243, 43244, 43245, 43246, 43247, 43248, 43249, 43250, 43251, 43255, 43256, 43257, 43258, 43259, 47553, 47554, 47555, 47556, 44380, 44382, 44383, 44385, 44386, 44388, 44389, 44390, 44391, 44392, 44393, 44394, 44397, 45330, 45331, 45332, 45333, 45334, 45335, 45337, 45338, 45339, 45340, 45341, 45342, 45345, 45355, 45378, 45379, 45380, 45381, 45382, 45383, 45384, 45385, 45386, 45387, 45391, 45392, 44360, 44361, 44363, 44364, 44365, 44366, 44369, 44370, 44372, 44373, 44376, 44377, 44378, 44379
Step 4. Check the case for the following procedure text? If the text is not present, mark no. If the text is present, proceed to step 5.
- COL, colon, EGD, Endo ERCP, Endoscopic Retrograde Cholangiopancreatography, EUS, endoscopic ultrasound*, flex sig OR
- Text that contains both 'colorectal' and 'screening.'
- Text that contains 'GI' or colon and the text 'exam'
- Text that begins with the text on the list below and ends in -scopy.
- Ana, ano, chol, colo, duoden, edo, end, enter, etra, esoph, esph, gastro, ileo, illeo, jeju, loop, naso, pancr, panendo, pouch, pro, sial, sigm, simo, sinu.
- * Exclude from text search if Bronch text is present.
Step 5. Check the case for indicators that the endoscopy/ERCP were associated with another procedure using the procedure text below. If the below procedure text is present, proceed to step 7. If No, proceed to step 6.
- Ankle, bone, burn, bypass CABG, carpel, cervical, cervix, coronary, creat%stoma, debrid, ECMO, embolization, exploratory, eye, foot, fusion, harvest, hernia repair, hip, I & D, I&D, I and D, incision and drainage, knee, ORIF, PEG, port, repair, resect*, stoma%creat, transplant, tube**,uret, uterus, uterin, valve, washout, wound, wrist OR
- *Resect except when the text "polyp" or "mucus" is also in the same procedure text.
- **Tube except when the text "orogastic, nasogastic, NG, OG proceed the tube text.
- Text that begins with arthro-, circ-, cysto-, fluro-, hyster-, Lary-, vagin- OR
- Text that ends with -ectomy**, -otomy, -plasty, stomy
- **-ectomy except when the follow text preceeds it
- Ployp, plyp, poilyp, pole, pollyp, poloy, polp, poly, poolyp, popl, poyl, poyp, pre-col
Step 6. Check the procedure text for indications that an ERCP was performed using the below procedure text. If the below text is present, return "ERCP Only." If no, return "Endoscopy Only."
- ERCP, Endoscopic Retrograde Cholangiopancreatography
Step 7. Check the procedure text for indications that an ERCP was performed using the procedure text below. If the below text is present, return "ERCP Plus Another Procedure." If no, return "Endoscopy Plus Another Procedure."
- ERCP, Endoscopic Retrograde Cholangiopancreatography