Concepts overview for R&D
configuration
clinical
Evn
lookups
i18n
user data
etc.
Save
Cancel
Model :
Meta-Data -
// model
{
personKey: 1030210250.0,
lastName: "Davidson",
firstName: "David",
get fullName() { return
`${this.lastName}, ${this.firstName}`;
},
visit: [
{
visitKey: 2000009164.0,
patientClass: "Emergency",
orders: [
{
orderKey: 1203000316539.0,
reasonForOrder: "test me"
}
]
}
]
}// metadata
{
personKey: { type: 'number', id: true },
lastName: { type: 'text' },
firstName: { type: 'text' },
fullName: { type: 'text', calculated: true },
visit: {
type: 'group',
multiple: true,
fields: {
visitKey: { type: 'number', id: true },
patientClass: { type: 'text' },
orders: {
type: 'group',
multiple: true,
fields: {
orderKey: {
type: 'number',
id: true
},
reasonForOrder: { type: 'text' }
}
}
}
}
}
// view-model
{
lable: 'Patient Form',
fields: {
firstNameField: {
lable: 'First Name',
path: 'firstName'
},
lastNameField: {
lable: 'Last Name',
path: 'lastName'
},
fullNameField: {
lable: 'Full Name',
path: 'fullName'
},
orderKeyField: {
lable: 'Order Key',
path: 'visit.0.orders.0.orderKey'
}
}
}View Model is structured using:
A layout add visual description to the
view model:
// layout
{
align: Alignment.Tabs,
// optional- Alignment.Vertical,
// Alignment.Horizontal
children: [
{
fieldName:
'firstNameField'
},
{
fieldName:
'lastNameField'
},
{
fieldName:
'fullNameField'
},
{
fieldName:
'orderKeyField'
}
]
}Collapsible boxes
// model
{
...
genderKey: 2.0,
FKLookupRows: {
genderKey: {
genderKey: 2.0,
description: "Male"
}
}
}// metadata
{
...
genderKey: {
type: 'lookup',
lookupName: 'GENDER',
lookupKey: 'genderKey',
lookupDescription: 'description'
}
}// view-model
{
gender: {
lable: 'Gender',
path: 'genderKey'
},
...
}// model
{
personKey: 1030210250.0,
lastName: "Davidson",
firstName: "David",
get fullName() { return ... },
visit: [
{
visitKey: 2000009164.0,
patientClass: "Emergency",
orders: [
{
orderKey: 1203000316539.0,
reasonForOrder: "test me"
}
]
}
]
}(angular Control)
(angular Control)
(angular Control)