get
https://{instanceUrl}/construe/codes//search/text
Performs fast full-text search over code IDs and descriptions.
When to use: Best for autocomplete UIs, code lookup, or when users know part of the code ID or specific keywords. Fast response times suitable for typeahead interfaces.
Features:
- Substring matching on code IDs (e.g., "11.65" finds "E11.65")
- Typo tolerance on descriptions (not on code IDs)
- Fast response times (~10-50ms)
Examples:
- Query "E11" finds all codes starting with E11 (diabetes codes)
- Query "diabtes" (typo) still finds "diabetes" codes
Trade-offs: Faster than semantic search, but only matches keywords/substrings. Won't find conceptually related codes with different terminology.
See also: /search/semantic for finding conceptually similar codes.
Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
