-
Notifications
You must be signed in to change notification settings - Fork 68
/
openmrs-esm-home-schema.ts
38 lines (37 loc) · 1.05 KB
/
openmrs-esm-home-schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Type, validators } from '@openmrs/esm-framework';
export const esmHomeSchema = {
buttons: {
enabled: {
_type: Type.Boolean,
_default: true,
_description: 'Whether to show big buttons on the home page (including extensions)',
},
list: {
_type: Type.Array,
_elements: {
label: { _type: Type.String },
link: {
_type: Type.String,
_validators: [validators.isUrl],
},
requiredPrivilege: {
_type: Type.String,
},
spa: {
_type: Type.Boolean,
_default: false,
},
},
_default: [],
_description: 'Custom buttons to add, which will come after the button extensions',
},
},
search: {
patientResultUrl: {
_type: Type.String,
_default: '${openmrsSpaBase}/patient/${patientUuid}/chart',
_description: 'Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}',
_validators: [validators.isUrlWithTemplateParameters(['patientUuid'])],
},
},
};