Extract codes you can trust

Construe is a configurable medical-RAG pipeline. Its two most important knobs are chunking, which decides what gets coded, and validation, which decides what survives.

Chunking

Use sentences for citation-friendly defaults, clinical_ner_extract for dense notes, and fasthpocr for HPO phenotype extraction.

Validation

Candidate codes can be filtered with LLM checks, prescription-aware medication search, or non-LLM similarity. Set validation_method: "none" to inspect every candidate.

Auditing

Turn on include_citations for source spans and include_rationale for concise reasons. For repeatability, raise consistency_effort.

const result = await client.construe.codes.extract({
  text: note,
  system: { name: "RXNORM", version: "11042024" },
  config: {
    chunking_method: "clinical_ner_extract",
    validation_method: "medication_search",
    include_citations: true,
    include_rationale: true,
    consistency_effort: "high",
  },
});

See the Construe reference.

Was this page helpful?

Need exact parameters? Open the API reference.