Skip to main content

Types

FormMetadata

Type: Object

KeyTypeDefaultDescription
namestring-Specifies the name of the form.
versionstring-Specifies the version of the form.
templateIdstring-Specifies the template id.
resourcesResources-Defines the resources for form.

Resources

Type: Object

KeyTypeDefaultDescription
descriptionobjectnullSpecifies the Ehr form description of the form.
layoutobject-Specifies the layout of the form.

Credentials

Type: Object

KeyTypeDefaultDescription
usernamestringtrueSpecifies name of the user.
passwordstringtrueSpecifies password of the user.
authTypestringfalseSpecifies the type of authentication.

MrdTimePlaceholderFormat

Type: Object

KeyTypeAcceptedRequiredDescription
hourstringHour formatsfalseSpecifies the hour format.
minutestringMinute formatsfalseSpecifies the minute format.

ValidationModel

Type: Object

KeyTypeDescription
validbooleanIndicates whether or not the form is valid.
errorMessagesobjectSpecifies the validity for required fields in the form.

InputItem

Type: Object

KeyTypeRequiredDescription
labelstringtrueSpecifies the label value.
codestringtrueSpecifies the code value.

FormElement

Type: Object

KeyTypeDescription
namestringSpecifies the name of a form element.
typestringSpecifies the type of a form element.
valueobjectSpecifies the value of a form element.
aqlPathstringSpecifies the aql path of a form element.
isHiddenbooleanSpecifies whether a form element is hidden.
isReadOnlybooleanSpecifies whether a form element is in read only mode.
isContainerbooleanSpecifies whether a form element is of type container.
minnumberSpecifies the minimum multiplicity of a form element.
maxnumberSpecifies the maximum multiplicity of a form element.

ScriptApiListenerOptions

Type: Object

KeyTypeDefaultRequiredDescription
onInitialValueSetbooleantruefalseSpecifies whether the script will run on initial load (when form is rendered).
searchWithinContainerstringfalseSpecifies the parent container’s tag or id to search from.
debouncenumberfalseSpecifies an amount of time in milliseconds that the listener should wait before processing a new event

ScriptApiClearOptions

Type: Object

KeyTypeAcceptedRequiredDescription
propstringProperty namesfalseSpecifies the property name of form element.
searchWithinContainerTagstringfalseSpecifies the parent container’s tag to search from.

Variable

Type: Object

KeyTypeAcceptedDescription
idstringSpecifies the id of a variable.
namestringSpecifies the name of a variable.
mandatorystringSpecifies whether the variable value must be provided.
typestringVariable typesSpecifies the type of a variable.
valuestring, number, boolean, object, or arraySpecifies the value of a variable.
sourcestringVariable sourcesSpecifies the source of a variable.
createdstringVariable creation typesSpecifies the creation type of a variable.
dependentFieldsarray<string>Specifies the form ids of form elements that are dependent on a variable
testValuestring, number, boolean, object, or arraySpecifies the value of a variable that is used when building a form.

ModelDuplicate

Type: Object

KeyTypeDescription
duplicatedModelobjectSpecifies the duplicate of a model.
modelIndexnumberSpecifies the index of a model based on the parent model children.

FormInfo

Type: Object

KeyTypeDescription
namestringSpecifies the name of the form.
versionstringSpecifies the version of the form.
templateIdstringSpecifies the template id.
tagsobjectSpecifies the tags of the form.

ImageArea

Type: Object

KeyTypeAcceptedRequiredDescription
shapestring'rect', 'circle', 'poly'trueSpecifies the shape of the area
coordsstringtrueSVG coordinates of the shape (example value for rect: '206,153,257,192'
valuestringfalseEach area should have a corresponding value that maps to one field input value
titlestringfalseTitle of the area shown as helper text if user hovers the area
colorImageAreaColorfalseColor attributes of the image area

ImageAreaColor

Type: Object

KeyTypeDescription
fillstringSpecifies the fill color of the area provided in HEX format (e.g.: #fefefe)
outlinestringSpecifies the border color of the area provided in HEX format (e.g.: #fefefe)

PreSaveHookOptions

KeyTypeDescription
catchErrorbooleanSpecifies if the error should be handled if the hook throws an error