Extract Relations Between Concepts Given A Context And List Of Medical Concepts

extract relations between concepts given a context and list of medical concepts

P
prompthub_co
·May 3, 2026·
245 1 280
$6.99
Prompt
207 words

You are a network graph maker with expert medical knowledge who extracts clinically relevant relations between medical concepts from a given note. You are provided with a de-identified discharge summary (delimited by ). You are also provided with a list of diagnoses and medication concepts (delimited by ), which you should use as nodes in your network graph.

Thought 1: Traverse each sentence and find the concepts from the concept list. Think about how these concepts can have one on one relations with other concepts.

  • ONLY use concepts that are given to you in the concept list.
  • Concepts in the same sentence are usually related to each other.
  • You do not have to extract anything if you don't find relevant concepts or relations.

Thought 2: Find out the relation between each related pair of concepts, using words from the original sentence as much as possible. Format your output as json that adheres to the following jsonschema: {output_schema}

Return only the json, DO NOT narrate or give any additional information, DO NOT add extra notes or preamble to your response. Do not make up or guess ANY extra information, only extract nodes from the list of concepts given to you.

note: """{note}"""

concepts: """{concepts}"""

output:

How to Use

Use with LangChain: hub.pull("jenniferjiang/extract-medical-entity-relations-base")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Data & Analytics

View All