从医疗文本中提取实体及其属性的XML表示

ChatGPT4o 使用 ChatGPT 4o 回答

问题:

我希望你能扮演自然语言专家的角色。任务目标是利用给定的一个实体类型列表和文本,从文本中识别出这些类型的所有实体。 实体类型包括:诊断、手术、解剖部位、医疗器械、药品、检查、化验、症状。 指定文本:【患者平卧位,常规消毒、铺巾、局麻,成功穿刺右桡动脉后植入6F血管鞘,送Radial TIG导管至左、右冠脉口分别造影:LM未见明显狭窄,LAD近段至中段长节段性病变,最重处狭窄90%,LCX,RCA未见明显狭窄。告知患者及家属病情及征得患者及家属同意,决定针对LAD行PCI术;退出造影导管,将6F EBU3.25指引导管送至左冠开口处,将Runthough NS指引导丝经LAD病变处送入LAD远段,以2.515mm球囊扩张LAD病变,于LAD病变处植入3.519mm,3.519mm吉威药物支架2枚,3.512mm后扩球囊行支架内后扩张,重复造影,支架贴壁良好,未见明显残余狭窄,前向血流TIMI3级。术毕,退出导管、导丝,拔出血管鞘,加压包扎,患者未诉不适,安全送返病房。】 从文本中抽取相关的实体,在实体上添加属性,包括实体名称、实体类型、关联动词、数量、时间、解剖部位,实体表示为“<entity value='' type='' verb=’’ quantity=’’ time=’’ anatomical_location=’’ />”,用XML格式输出,XML中的值首选中文。

回答:
<entities>
    <entity value='穿刺' type='手术' verb='成功' quantity='' time='' anatomical_location='右桡动脉' />
    <entity value='血管鞘' type='医疗器械' verb='植入' quantity='1' time='' anatomical_location='右桡动脉' />
    <entity value='Radial TIG导管' type='医疗器械' verb='送' quantity='1' time='' anatomical_location='左、右冠脉口' />
    <entity value='造影' type='检查' verb='分别' quantity='' time='' anatomical_location='左、右冠脉口' />
    <entity value='狭窄' type='诊断' verb='未见' quantity='' time='' anatomical_location='LM' />
    <entity value='长节段性病变' type='诊断' verb='至' quantity='' time='' anatomical_location='LAD近段至中段' />
    <entity value='狭窄' type='诊断' verb='最重处' quantity='90%' time='' anatomical_location='LAD' />
    <entity value='狭窄' type='诊断' verb='未见' quantity='' time='' anatomical_location='LCX,RCA' />
    <entity value='PCI术' type='手术' verb='行' quantity='' time='' anatomical_location='LAD' />
    <entity value='造影导管' type='医疗器械' verb='退出' quantity='' time='' anatomical_location='' />
    <entity value='指引导管' type='医疗器械' verb='送' quantity='1' time='' anatomical_location='左冠开口处' />
    <entity value='指引导丝' type='医疗器械' verb='送入' quantity='1' time='' anatomical_location='LAD远段' />
    <entity value='球囊扩张' type='手术' verb='扩张' quantity='1' time='' anatomical_location='LAD病变' />
    <entity value='药物支架' type='医疗器械' verb='植入' quantity='2' time='' anatomical_location='LAD病变处' />
    <entity value='球囊' type='医疗器械' verb='后扩' quantity='1' time='' anatomical_location='LAD病变处' />
    <entity value='造影' type='检查' verb='重复' quantity='' time='' anatomical_location='' />
    <entity value='狭窄' type='诊断' verb='未见' quantity='' time='' anatomical_location='' />
    <entity value='血流' type='检查' verb='前向' quantity='TIMI3级' time='' anatomical_location='' />
    <entity value='导管' type='医疗器械' verb='退出' quantity='' time='' anatomical_location='' />
    <entity value='导丝' type='医疗器械' verb='退出' quantity='' time='' anatomical_location='' />
    <entity value='血管鞘' type='医疗器械' verb='拔出' quantity='' time='' anatomical_location='' />
    <entity value='加压包扎' type='手术' verb='加压' quantity='' time='' anatomical_location='' />
    <entity value='不适' type='症状' verb='未诉' quantity='' time='' anatomical_location='' />
</