CHIEF COMPLAINT: 

PRESENT ILLNESS: This is a 53-year-old gentleman
who was referred to Dr. [**Last Name (STitle) 97864**] for ERCP for common bile duct
stone.  He was taken to the ERCP Suite where a large common
bile duct stone was identified.  A lithotripsy wire was
threaded into the stone and attempted fracture was performed,
however, the wire ruptured in the stone and got dislodged.  A
basket mechanism was then inserted around the stone to
attempt to retrieve the stone and wire complex and, again,
the basket was fractured.

MEDICAL HISTORY: 

MEDICATION ON ADMISSION: 

ALLERGIES: 

PHYSICAL EXAM: 

FAMILY HISTORY: 

SOCIAL HISTORY: 
Calculus of bile duct with other cholecystitis, with obstruction,Mechanical complication due to other implant and internal device, not elsewhere classified,Foreign object left in body during endoscopic examination
Choledochlith/gb NEC-obs,Malfunc oth device/graft,Postendoscopy forgn body
Admission Date:  [**2158-2-1**]       Discharge Date:  [**2158-2-7**]

Date of Birth:   [**2104-6-8**]       Sex:  M

Service:

HISTORY OF PRESENT ILLNESS:  This is a 53-year-old gentleman
who was referred to Dr. [**Last Name (STitle) 97864**] for ERCP for common bile duct
stone.  He was taken to the ERCP Suite where a large common
bile duct stone was identified.  A lithotripsy wire was
threaded into the stone and attempted fracture was performed,
however, the wire ruptured in the stone and got dislodged.  A
basket mechanism was then inserted around the stone to
attempt to retrieve the stone and wire complex and, again,
the basket was fractured.

HOSPITAL COURSE:  At that time Dr. [**Last Name (STitle) 468**] was consulted for
an emergent operation.  The patient was sedated and intubated
in the ERCP Suite after multiple attempts and was taken to
the Operating Room.  An exploratory laparotomy and common
bile duct exploration was performed and the stone and basket
and wire complex was then retrieved.  At that time a T-tube
was then placed and the common bile duct was closed.  The
gallbladder was taken so the cystic duct was used as the
entry point.  The patient tolerated the procedure well and
was transferred to the Medical/Surgical Intensive Care Unit
on the [**Hospital Ward Name 516**] where he did well.  A Foley catheter was
placed intraoperatively and intravenous fluids were
administered.  His urine output was excellent.  He had an NG
tube placed intraoperatively and that was kept in place for
two days postoperatively.  The patient continued to improve
and his liver function tests trended back down to normal and
the patient was able to be successfully weaned and extubated
on postoperative day one under close supervision of
Anesthesia due to his difficult intubation.  The patient was
then kept in the Intensive Care Unit for another day and then
transferred to the [**Hospital Ward Name 517**] to Far Six where he continued
to improve.  He was up and ambulating.  His NG tube was
removed and he started to have return of bowel function at
that time.  His diet was slowly advanced to sips and he
tolerated that.  His [**Location (un) 1661**]-[**Location (un) 1662**] drain was also placed
intraoperatively and that was continued to be followed.  The
output of that slowly decreased over the next couple of days.
His Foley catheter was removed postoperatively and he was
able to void successfully.  The patient continued to do well
from a hepatobiliary standpoint and his liver function tests
returned to [**Location 213**].  He was advanced to a regular diet and,
again, he was able to tolerate it without any problems.  The
patient was ambulating well.  At that time he was taken down
to the Interventional Radiology Suite for a T-tube
cholangiogram to assess the common bile duct and, again, the
T-tube cholangiogram showed good flow into the duodenum with
no obstructions and no extravasation.  At that time the
T-tube was clamped and the patient continued to improve.  He
was discharged on postoperative day six after tolerating a
regular diet.  His [**Location (un) 1661**]-[**Location (un) 1662**] drain was removed on
postoperative day five as well as the T-tube being clamped at
that time on postoperative day six prior to his discharge.
His staples were removed and Steri-Strips were placed and the
patient did well.

DISCHARGE MEDICATIONS:  Included Percocet one to two tabs
p.o. q. 4h. p.r.n., Colace 100 mg p.o. b.i.d., Protonix 40 mg
p.o. q. day.  He was instructed to continue his aspirin as
his preoperative medication.

CONDITION AT DISCHARGE:  The patient was discharged home in
stable condition at this time.

DISCHARGE DIAGNOSIS:  Choledocholithiasis status post
emergent common bile duct exploration.




                            [**First Name8 (NamePattern2) 251**] [**Name8 (MD) **], M.D.  [**MD Number(1) 4984**]

Dictated By:[**First Name (STitle) **]
MEDQUIST36

D:  [**2158-2-7**]  15:59
T:  [**2158-2-7**]  15:06
JOB#:  [**Job Number **]
{'Calculus of bile duct with other cholecystitis, with obstruction,Mechanical complication due to other implant and internal device, not elsewhere classified,Foreign object left in body during endoscopic examination'}


You are an AI assistant analyzing clinical admission notes from the MIMIC III dataset. Your task is to map symptoms mentioned in the notes to a list of provided ICD-9 LONG_TEXT.



### Clinical text :
CHIEF COMPLAINT: 

PRESENT ILLNESS: This is a 53-year-old gentleman
who was referred to Dr. [**Last Name (STitle) 97864**] for ERCP for common bile duct
stone.  He was taken to the ERCP Suite where a large common
bile duct stone was identified.  A lithotripsy wire was
threaded into the stone and attempted fracture was performed,
however, the wire ruptured in the stone and got dislodged.  A
basket mechanism was then inserted around the stone to
attempt to retrieve the stone and wire complex and, again,
the basket was fractured.

MEDICAL HISTORY: 

MEDICATION ON ADMISSION: 

ALLERGIES: 

PHYSICAL EXAM: 

FAMILY HISTORY: 

SOCIAL HISTORY:  

### Response:
{'Calculus of bile duct with other cholecystitis, with obstruction,Mechanical complication due to other implant and internal device, not elsewhere classified,Foreign object left in body during endoscopic examination'}
