requests

ConceptSuggestionRequest

class ConceptSuggestionRequest(BaseModel):
   source_term: str
    vocabulary_id: Optional[List[str]] = None
    domain_id: Optional[List[str]] = None
    standard_concept: bool = False
    valid_concept: bool = False
    top_k: int = 5

A model describing API requests for concept suggestions

Attributes

FieldsTypeDescription
source_termThe source term the request wants concept suggestions for
vocabulary_idOptional[List[str]]An optional filter on the vocabularies searched. If None, no filter is applied. If any vocabulary_id are supplied, only concepts from those vocabularies will be suggested
domain_idOptional[List[str]]An optional filter on the domains searched. If None, no filter is applied. If any domain_id are supplied, only concepts from those domains will be suggested
standard_conceptboolFilter on standard concepts. If True, only standard concepts will be suggested
valid_conceptboolFilter on valid concepts. If True, only valid concepts will be suggested
top_kintThe number of suggestions to make