Skip to main content

mb-search

Properties

PropertyAttributeTypeDefaultDescription
axiosaxiosAxiosInstance
datadataData of CodedText
datatypedatatypestring | undefinedAn internal representation of type to handle serializing
debounceIntervaldebounceIntervalnumber150
hitshitsnumber10
isMbElementbooleantrue
labellabelstring | undefinedOptional label for the element
mockmockstring[][]
parentAxiosKeyparentAxiosKeystring"hermes"
pathpathstringPath of the data element. Use the VSCode extension to get the appropriate paths
pluginplugin{ search: SearchFunction; getConstraints: (filters: string[]) => string | undefined; }s{"search":"hermesPlugin","getConstraints":"joinSnomedConstraints"}
searchTermsearchTermstring
terminologyterminologystring"local"Terminology of preference. Eg: SNOMED-CT, LOINC, local (for openEHR)
valuevaluestring""

Methods

MethodTypeDescription
getResults(): Promise<TemplateResult | TemplateResult[]>Function to get results from an external source
handlePathChange(oldPath: string, newPath: string): void
reportValidity(): booleanFunction to validate the element during form submit

Events

EventDescription
mb-connectDispatched when the component connects
mb-dependencyDispatched if dependencies are needed from an external or parent source
mb-disconnectDispatched when the component disconnects
mb-inputDispatched when the input changes