Additional Property Definitions

Local Code properties can be defined by the following attributes (* are mandatory):

  • Name*: unique name of the property

  • Type*: type of the property

Property types

Description

Boolean

true|false

String

text type

Integer

integer numbers

Decimal

decimal numbers

Date

date with time part

URI

  • Cardinality*:

Values

Description

0..1

Optional

1..1

Mandatory

0..*

Any

1..*

Minimum one mandatory

  • Default value: Initial value of the property.

  • Description: String attribute to capture the description of the given property.

  • Validation expression: JavaScript validation expression to evaluate when value is assigned to the property.

  • Validation message: Validation message in case invalid property value entered (the validation expression evaluates to a false).

Hovering over the name or its field of the property definition attributes brings up a tooltip, about the descriptions of the attributes.

As a concrete example, the following definitions would need to be created for a Local Code System that groups codes related to medicinal products:

  • tradeName

    • Type: String

    • Cardinality: 1..1

    • Default value: MYTEXT

    • Description: Trade name of the medicinal product.

    • Validation expression: _this.value == _this.value.toUpperCase()

    • Validation message: Trade name '%s' needs to be all uppercase.

  • isVaccine

    • Type: Boolean

    • Cardinality: 1..1

  • numberOfTablets

    • Type: Integer

    • Cardinality: 0..1

    • Default value: 6

    • Description: The number of pills in the product.

    • Validation expression: _this.value > 0

    • Validation message: Number of tablets '%s' needs to be a positive number.

Last updated