Skip to main content

mb-fhir-form

Properties

PropertyAttributeModifiersTypeDefaultDescription
ctxctxContext object that is set before submitting form. Automatic inferences are made where possible.
dataData
export"this.serialize.bind(this)"
hermeshermesAxiosInstanceHermes instance to communicate with for SNOMED CT search elements.
inputEventEmitter<any>
loadEventEmitter<any>
mbElements{ [path: string]: EhrElement; }The child elements are loaded
novalidatenovalidatebooleanfalseSkip validation of form
observerMutationObserver
overwritectxoverwritectxbooleanfalseContext will not be automatically inferd. What you pass in will be directly reflected.
pluginpluginMbPluginPlugin to handle serialization and parsing of the input. openEHR and FHIR Plugins are built-in.
submitEventEmitter<any>
submitButtonreadonlyMbSubmit | null

Methods

MethodTypeDescription
getStructured(flat: Data, path?: string | undefined): any
handleChildConnect(e: CustomEvent<any>): void
handleChildPathChange(e: CustomEvent<{ oldPath: string; newPath: string; }>): void
handleDependency(e: CustomEvent<{ key: string; value: any; }>): void
handleInput(e: CustomEvent<any>): void
handleSlotChange(): void
handleSubmit(): Promise<void>
import(data: any): voidParses and sets the form data to current data
insertContext(): void
parse(data: any): anyParse output format to internal representation.
removeMbElement(path: string): void
serialize(mbElements?: { [path: string]: EhrElement; }): anySerialize EHRElement to the output format - eg: openEHR FLAT format, FHIR resource.
validate(): booleanRuns validation on all the elements. Returns validation message.

Events

EventDescription
mb-inputWhen contents of the form change. The result must be obtained using e=>e.target.data.
mb-loadTriggered when the form first loads.
mb-submitTriggered with all the serialized data in the detail of the Event.