@acorex-platform/module-health-core-client 0.0.32 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs +222 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs +169 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs +222 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs +242 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs +450 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs +458 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs +462 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs +199 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs +189 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs +169 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs +169 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs +128 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs +123 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs +70 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs +123 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs +143 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs +272 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs +280 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs +284 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-Dgq6FTVR.mjs +100 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-Dgq6FTVR.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-CE1oWLLW.mjs +90 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-CE1oWLLW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs +84 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-tYDRX6YY.mjs +70 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-tYDRX6YY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-Cj0alpZ1.mjs +70 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-Cj0alpZ1.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-alcohol-consumption-options.query-CFQk6mlY.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-allergy-severity-options.query-BmdEP1TK.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-chronic-condition-status-options.query-QgsQCqLm.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-health-risk-level-options.query-BtJdBZVT.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-injury-mechanism-options.query-D7Tjl7eC.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-pain-rate-options.query-C9sGCRmk.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-smoking-status-options.query-EUVhlNLW.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-list-work-capacity-options.query-YQ6BW3kG.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-local-entities.mjs +39 -0
- package/fesm2022/acorex-platform-module-health-core-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-start-health-record-flow.command-BsB-MPmu.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client.mjs.map +1 -1
- package/package.json +54 -2
- package/types/acorex-platform-module-health-core-client-contracts-entities-blood-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-body-part.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-disability-status.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-condition.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-event.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-profile.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-record-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-health-restriction.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-injury-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.d.ts +5 -0
- package/types/acorex-platform-module-health-core-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-health-core-client-contracts.d.ts +2 -1
- package/types/acorex-platform-module-health-core-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { o as omitHealthSubjectFromEditLayouts, c as createHealthSubjectLookupProperty } from './acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs';
|
|
4
|
+
import { R as RootConfig } from './acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs';
|
|
5
|
+
|
|
6
|
+
//#region ---- Imports ----
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Shared property layouts ----
|
|
9
|
+
const eventDetailsViewProperties = [
|
|
10
|
+
{ name: 'subject.id', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
11
|
+
{ name: 'recordTypeId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
12
|
+
{ name: 'occurredDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
13
|
+
{ name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
14
|
+
{ name: 'provider', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
15
|
+
{ name: 'facility', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
16
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },
|
|
17
|
+
{ name: 'employeeSignature', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
18
|
+
{ name: 'employeeSignedAt', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
19
|
+
{ name: 'managerSignature', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
20
|
+
{ name: 'managerSignedAt', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
21
|
+
];
|
|
22
|
+
const eventDetailsEditProperties = omitHealthSubjectFromEditLayouts(eventDetailsViewProperties);
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ---- Entity Factory ----
|
|
25
|
+
async function healthEventFactory() {
|
|
26
|
+
const entityDef = {
|
|
27
|
+
module: RootConfig.module.name,
|
|
28
|
+
name: RootConfig.entities.healthEvent.name,
|
|
29
|
+
title: RootConfig.entities.healthEvent.title,
|
|
30
|
+
icon: RootConfig.entities.healthEvent.icon,
|
|
31
|
+
plugins: [
|
|
32
|
+
{ name: 'history' },
|
|
33
|
+
{ name: 'reports' },
|
|
34
|
+
{
|
|
35
|
+
name: 'attachments',
|
|
36
|
+
options: {
|
|
37
|
+
showListAction: false,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'workflow-run',
|
|
42
|
+
options: {
|
|
43
|
+
list: {
|
|
44
|
+
mode: 'workflow-run',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'status',
|
|
50
|
+
options: {
|
|
51
|
+
field: 'statusId',
|
|
52
|
+
definition: 'health-core.status.health-event',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'meta-data-form',
|
|
57
|
+
options: {
|
|
58
|
+
title: '@health-core:health-events.entities.health-event.groups.more-information',
|
|
59
|
+
path: 'recordTypeId',
|
|
60
|
+
display: 'section',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
formats: {
|
|
65
|
+
individual: RootConfig.entities.healthEvent.title,
|
|
66
|
+
plural: RootConfig.entities.healthEvent.titlePlural,
|
|
67
|
+
searchResult: {
|
|
68
|
+
title: '{{ context.eval("recordType.title", { pipes: ["translate"] }) }}',
|
|
69
|
+
description: '{{ context.eval("subject.title", { pipes: ["translate"] }) }}',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
groups: [
|
|
73
|
+
{
|
|
74
|
+
id: 'event-details',
|
|
75
|
+
title: '@health-core:health-events.entities.health-event.groups.event-details',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 'sign-off',
|
|
79
|
+
title: '@health-core:health-events.entities.health-event.groups.sign-off',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
properties: [
|
|
83
|
+
{
|
|
84
|
+
name: 'id',
|
|
85
|
+
title: 'ID',
|
|
86
|
+
groupId: 'event-details',
|
|
87
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
88
|
+
},
|
|
89
|
+
createHealthSubjectLookupProperty('event-details', { readonly: true }),
|
|
90
|
+
{
|
|
91
|
+
name: 'recordTypeId',
|
|
92
|
+
title: '@health-core:health-events.entities.health-event.fields.record-type-id',
|
|
93
|
+
groupId: 'event-details',
|
|
94
|
+
options: {
|
|
95
|
+
sort: { enabled: true },
|
|
96
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
97
|
+
},
|
|
98
|
+
schema: {
|
|
99
|
+
dataType: 'string',
|
|
100
|
+
interface: {
|
|
101
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
102
|
+
options: {
|
|
103
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.healthRecordType.name}`,
|
|
104
|
+
textField: 'title',
|
|
105
|
+
valueField: 'id',
|
|
106
|
+
look: 'select',
|
|
107
|
+
columns: ['title'],
|
|
108
|
+
expose: [
|
|
109
|
+
{ source: 'id', target: 'recordType.id' },
|
|
110
|
+
{ source: 'title', target: 'recordType.title' },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
validations: [{ rule: 'required' }],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'occurredDate',
|
|
119
|
+
title: '@health-core:health-events.entities.health-event.fields.occurred-date',
|
|
120
|
+
groupId: 'event-details',
|
|
121
|
+
options: {
|
|
122
|
+
sort: { enabled: true },
|
|
123
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
124
|
+
},
|
|
125
|
+
schema: {
|
|
126
|
+
dataType: 'date',
|
|
127
|
+
defaultValue: '{{ date.today() }}',
|
|
128
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox },
|
|
129
|
+
},
|
|
130
|
+
validations: [{ rule: 'required' }],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'endDate',
|
|
134
|
+
title: '@health-core:health-events.entities.health-event.fields.end-date',
|
|
135
|
+
groupId: 'event-details',
|
|
136
|
+
options: {
|
|
137
|
+
sort: { enabled: true },
|
|
138
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
139
|
+
},
|
|
140
|
+
schema: {
|
|
141
|
+
dataType: 'date',
|
|
142
|
+
nullable: true,
|
|
143
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox },
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'provider',
|
|
148
|
+
title: '@health-core:health-events.entities.health-event.fields.provider.title',
|
|
149
|
+
groupId: 'event-details',
|
|
150
|
+
options: {
|
|
151
|
+
sort: { enabled: true },
|
|
152
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
153
|
+
},
|
|
154
|
+
schema: {
|
|
155
|
+
dataType: 'string',
|
|
156
|
+
interface: {
|
|
157
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
158
|
+
options: {
|
|
159
|
+
placeholder: '@health-core:health-events.entities.health-event.fields.provider.placeholder',
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'facility',
|
|
166
|
+
title: '@health-core:health-events.entities.health-event.fields.facility.title',
|
|
167
|
+
groupId: 'event-details',
|
|
168
|
+
options: {
|
|
169
|
+
sort: { enabled: true },
|
|
170
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
171
|
+
},
|
|
172
|
+
schema: {
|
|
173
|
+
dataType: 'string',
|
|
174
|
+
interface: {
|
|
175
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
176
|
+
options: {
|
|
177
|
+
placeholder: '@health-core:health-events.entities.health-event.fields.facility.placeholder',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'notes',
|
|
184
|
+
title: '@general:terms.common.notes',
|
|
185
|
+
groupId: 'event-details',
|
|
186
|
+
options: {
|
|
187
|
+
sort: { enabled: false },
|
|
188
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
189
|
+
},
|
|
190
|
+
schema: {
|
|
191
|
+
dataType: 'string',
|
|
192
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'employeeSignature',
|
|
197
|
+
title: '@health-core:health-events.entities.health-event.fields.employee-signature',
|
|
198
|
+
groupId: 'sign-off',
|
|
199
|
+
schema: {
|
|
200
|
+
dataType: 'string',
|
|
201
|
+
nullable: true,
|
|
202
|
+
readonly: true,
|
|
203
|
+
interface: { type: AXPWidgetsList.Editors.SignatureBox },
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'employeeSignedAt',
|
|
208
|
+
title: '@health-core:health-events.entities.health-event.fields.employee-signed-at',
|
|
209
|
+
groupId: 'sign-off',
|
|
210
|
+
schema: {
|
|
211
|
+
dataType: 'date',
|
|
212
|
+
nullable: true,
|
|
213
|
+
readonly: true,
|
|
214
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox },
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'managerSignature',
|
|
219
|
+
title: '@health-core:health-events.entities.health-event.fields.manager-signature',
|
|
220
|
+
groupId: 'sign-off',
|
|
221
|
+
schema: {
|
|
222
|
+
dataType: 'string',
|
|
223
|
+
nullable: true,
|
|
224
|
+
readonly: true,
|
|
225
|
+
interface: { type: AXPWidgetsList.Editors.SignatureBox },
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'managerSignedAt',
|
|
230
|
+
title: '@health-core:health-events.entities.health-event.fields.manager-signed-at',
|
|
231
|
+
groupId: 'sign-off',
|
|
232
|
+
schema: {
|
|
233
|
+
dataType: 'date',
|
|
234
|
+
nullable: true,
|
|
235
|
+
readonly: true,
|
|
236
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox },
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
columns: [
|
|
241
|
+
{ name: 'recordTypeId', options: { dataPath: 'recordType.title' } },
|
|
242
|
+
{ name: 'occurredDate' },
|
|
243
|
+
{ name: 'endDate' },
|
|
244
|
+
{ name: 'provider' },
|
|
245
|
+
{ name: 'statusId' },
|
|
246
|
+
{ name: 'subject.id', options: { dataPath: 'subject.title' } },
|
|
247
|
+
],
|
|
248
|
+
relatedEntities: [],
|
|
249
|
+
interfaces: {
|
|
250
|
+
master: {
|
|
251
|
+
create: {
|
|
252
|
+
sections: [{ id: 'event-details' }],
|
|
253
|
+
properties: eventDetailsEditProperties,
|
|
254
|
+
},
|
|
255
|
+
update: {
|
|
256
|
+
sections: [{ id: 'event-details' }],
|
|
257
|
+
properties: eventDetailsEditProperties,
|
|
258
|
+
},
|
|
259
|
+
single: {
|
|
260
|
+
title: '{{ context.eval("subject.title", { pipes: ["translate"] }) + " - " + context.eval("recordType.title", { pipes: ["translate"] }) + " - " + context.eval("occurredDate", { pipes: ["date"] }) }}',
|
|
261
|
+
sections: [
|
|
262
|
+
{ id: 'event-details', order: 1 },
|
|
263
|
+
{ id: 'sign-off', order: 2 },
|
|
264
|
+
],
|
|
265
|
+
properties: eventDetailsViewProperties,
|
|
266
|
+
actions: entityMasterRecordActions(),
|
|
267
|
+
},
|
|
268
|
+
list: {
|
|
269
|
+
actions: [...entityMasterCrudActions({ create: false, delete: false, view: false })],
|
|
270
|
+
views: [createAllQueryView({ sorts: [{ name: 'occurredDate', dir: 'desc' }] })],
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
return entityDef;
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
|
|
279
|
+
export { healthEventFactory };
|
|
280
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/health-event/health-event.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { createHealthSubjectLookupProperty } from '../../health-subject.utils';\nimport { omitHealthSubjectFromEditLayouts } from '../../health-subject-form-layout.utils';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Shared property layouts ----\n\nconst eventDetailsViewProperties = [\n { name: 'subject.id', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'recordTypeId', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'occurredDate', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'endDate', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'provider', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'facility', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 7 } } } },\n { name: 'employeeSignature', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'employeeSignedAt', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'managerSignature', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'managerSignedAt', layout: { positions: { lg: { colSpan: 6 } } } },\n];\n\nconst eventDetailsEditProperties = omitHealthSubjectFromEditLayouts(eventDetailsViewProperties);\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function healthEventFactory(): Promise<AXPEntity> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.healthEvent.name,\n title: RootConfig.entities.healthEvent.title,\n icon: RootConfig.entities.healthEvent.icon,\n plugins: [\n { name: 'history' },\n { name: 'reports' },\n {\n name: 'attachments',\n options: {\n showListAction: false,\n },\n },\n {\n name: 'workflow-run',\n options: {\n list: {\n mode: 'workflow-run',\n },\n },\n },\n {\n name: 'status',\n options: {\n field: 'statusId',\n definition: 'health-core.status.health-event',\n },\n },\n {\n name: 'meta-data-form',\n options: {\n title: '@health-core:health-events.entities.health-event.groups.more-information',\n path: 'recordTypeId',\n display: 'section',\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.healthEvent.title,\n plural: RootConfig.entities.healthEvent.titlePlural,\n searchResult: {\n title: '{{ context.eval(\"recordType.title\", { pipes: [\"translate\"] }) }}',\n description: '{{ context.eval(\"subject.title\", { pipes: [\"translate\"] }) }}',\n },\n },\n groups: [\n {\n id: 'event-details',\n title: '@health-core:health-events.entities.health-event.groups.event-details',\n },\n {\n id: 'sign-off',\n title: '@health-core:health-events.entities.health-event.groups.sign-off',\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'event-details',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n createHealthSubjectLookupProperty('event-details', { readonly: true }),\n {\n name: 'recordTypeId',\n title: '@health-core:health-events.entities.health-event.fields.record-type-id',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.healthRecordType.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title'],\n expose: [\n { source: 'id', target: 'recordType.id' },\n { source: 'title', target: 'recordType.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'occurredDate',\n title: '@health-core:health-events.entities.health-event.fields.occurred-date',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n defaultValue: '{{ date.today() }}',\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'endDate',\n title: '@health-core:health-events.entities.health-event.fields.end-date',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n nullable: true,\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n {\n name: 'provider',\n title: '@health-core:health-events.entities.health-event.fields.provider.title',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@health-core:health-events.entities.health-event.fields.provider.placeholder',\n },\n },\n },\n },\n {\n name: 'facility',\n title: '@health-core:health-events.entities.health-event.fields.facility.title',\n groupId: 'event-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@health-core:health-events.entities.health-event.fields.facility.placeholder',\n },\n },\n },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n groupId: 'event-details',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },\n },\n },\n {\n name: 'employeeSignature',\n title: '@health-core:health-events.entities.health-event.fields.employee-signature',\n groupId: 'sign-off',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.SignatureBox },\n },\n },\n {\n name: 'employeeSignedAt',\n title: '@health-core:health-events.entities.health-event.fields.employee-signed-at',\n groupId: 'sign-off',\n schema: {\n dataType: 'date',\n nullable: true,\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n {\n name: 'managerSignature',\n title: '@health-core:health-events.entities.health-event.fields.manager-signature',\n groupId: 'sign-off',\n schema: {\n dataType: 'string',\n nullable: true,\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.SignatureBox },\n },\n },\n {\n name: 'managerSignedAt',\n title: '@health-core:health-events.entities.health-event.fields.manager-signed-at',\n groupId: 'sign-off',\n schema: {\n dataType: 'date',\n nullable: true,\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n ],\n columns: [\n { name: 'recordTypeId', options: { dataPath: 'recordType.title' } },\n { name: 'occurredDate' },\n { name: 'endDate' },\n { name: 'provider' },\n { name: 'statusId' },\n { name: 'subject.id', options: { dataPath: 'subject.title' } },\n ],\n relatedEntities: [],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'event-details' }],\n properties: eventDetailsEditProperties,\n },\n update: {\n sections: [{ id: 'event-details' }],\n properties: eventDetailsEditProperties,\n },\n single: {\n title:\n '{{ context.eval(\"subject.title\", { pipes: [\"translate\"] }) + \" - \" + context.eval(\"recordType.title\", { pipes: [\"translate\"] }) + \" - \" + context.eval(\"occurredDate\", { pipes: [\"date\"] }) }}',\n sections: [\n { id: 'event-details', order: 1 },\n { id: 'sign-off', order: 2 },\n ],\n properties: eventDetailsViewProperties,\n actions: entityMasterRecordActions(),\n },\n list: {\n actions: [...entityMasterCrudActions({ create: false, delete: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EAAE;AAC7B,qBAAA;AACD,oBAAA,UAAU,EAAE,0BAA0B;oBACtC,OAAO,EAAE,yBAAyB,EAAE;AACrC,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;oBACpF,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAChF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { o as omitHealthSubjectFromEditLayouts, c as createHealthSubjectLookupProperty } from './acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs';
|
|
4
|
+
import { R as RootConfig } from './acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs';
|
|
5
|
+
|
|
6
|
+
//#region ---- Imports ----
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Form layouts ----
|
|
9
|
+
const profilePropertyLayouts = [
|
|
10
|
+
{ name: 'subject.id', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
11
|
+
// Row 1: 4 + 4 + 4
|
|
12
|
+
{ name: 'disabilityStatusId', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },
|
|
13
|
+
{ name: 'smokingStatus', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },
|
|
14
|
+
{ name: 'alcoholConsumption', layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
|
|
15
|
+
// Row 2: 4 + 4
|
|
16
|
+
{ name: 'bloodTypeId', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },
|
|
17
|
+
{ name: 'healthRiskLevel', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },
|
|
18
|
+
// Row 3: 4 + 4
|
|
19
|
+
{ name: 'doctorName', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },
|
|
20
|
+
{ name: 'doctorNumber', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },
|
|
21
|
+
// Row 4: 4 + 4 + 4
|
|
22
|
+
{ name: 'emergencyContactName', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },
|
|
23
|
+
{ name: 'emergencyContactPhone', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },
|
|
24
|
+
{ name: 'emergencyContactEmail', layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },
|
|
25
|
+
// Row 5: 12
|
|
26
|
+
{ name: 'notes', layout: { positions: { lg: { colSpan: 12, colStart: 1 } } } },
|
|
27
|
+
];
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ---- Entity Factory ----
|
|
30
|
+
async function healthProfileFactory() {
|
|
31
|
+
const sections = [{ id: 'profile-details', layout: { positions: { lg: { colSpan: 12 } } } }];
|
|
32
|
+
const propertyLayouts = omitHealthSubjectFromEditLayouts(profilePropertyLayouts);
|
|
33
|
+
const entityDef = {
|
|
34
|
+
module: RootConfig.module.name,
|
|
35
|
+
name: RootConfig.entities.healthProfile.name,
|
|
36
|
+
title: RootConfig.entities.healthProfile.title,
|
|
37
|
+
icon: RootConfig.entities.healthProfile.icon,
|
|
38
|
+
formats: {
|
|
39
|
+
individual: RootConfig.entities.healthProfile.title,
|
|
40
|
+
plural: RootConfig.entities.healthProfile.titlePlural,
|
|
41
|
+
searchResult: { title: '{{ subject.title }}', description: RootConfig.module.title },
|
|
42
|
+
},
|
|
43
|
+
plugins: [{ name: 'history' }, { name: 'reports' }],
|
|
44
|
+
groups: [
|
|
45
|
+
{
|
|
46
|
+
id: 'profile-details',
|
|
47
|
+
title: '@health-core:health-profiles.entities.health-profile.groups.profile-details',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
properties: [
|
|
51
|
+
{
|
|
52
|
+
name: 'id',
|
|
53
|
+
title: '@general:terms.common.id',
|
|
54
|
+
groupId: 'profile-details',
|
|
55
|
+
schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },
|
|
56
|
+
},
|
|
57
|
+
createHealthSubjectLookupProperty('profile-details', { readonly: true }),
|
|
58
|
+
{
|
|
59
|
+
name: 'disabilityStatusId',
|
|
60
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.disability-status-id',
|
|
61
|
+
groupId: 'profile-details',
|
|
62
|
+
options: {
|
|
63
|
+
sort: { enabled: true },
|
|
64
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
65
|
+
},
|
|
66
|
+
schema: {
|
|
67
|
+
dataType: 'string',
|
|
68
|
+
interface: {
|
|
69
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
70
|
+
options: {
|
|
71
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.disabilityStatus.name}`,
|
|
72
|
+
textField: 'title',
|
|
73
|
+
valueField: 'id',
|
|
74
|
+
look: 'select',
|
|
75
|
+
expose: [
|
|
76
|
+
{ source: 'id', target: 'disabilityStatus.id' },
|
|
77
|
+
{ source: 'title', target: 'disabilityStatus.title' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'smokingStatus',
|
|
85
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.smoking-status',
|
|
86
|
+
groupId: 'profile-details',
|
|
87
|
+
options: {
|
|
88
|
+
sort: { enabled: true },
|
|
89
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
90
|
+
},
|
|
91
|
+
schema: {
|
|
92
|
+
dataType: 'string',
|
|
93
|
+
interface: {
|
|
94
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
95
|
+
options: {
|
|
96
|
+
dataSource: 'HealthCore:ListSmokingStatusOptions',
|
|
97
|
+
valueField: 'value',
|
|
98
|
+
textField: 'title',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'alcoholConsumption',
|
|
105
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.alcohol-consumption',
|
|
106
|
+
groupId: 'profile-details',
|
|
107
|
+
options: {
|
|
108
|
+
sort: { enabled: true },
|
|
109
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
110
|
+
},
|
|
111
|
+
schema: {
|
|
112
|
+
dataType: 'string',
|
|
113
|
+
interface: {
|
|
114
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
115
|
+
options: {
|
|
116
|
+
dataSource: 'HealthCore:ListAlcoholConsumptionOptions',
|
|
117
|
+
valueField: 'value',
|
|
118
|
+
textField: 'title',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'bloodTypeId',
|
|
125
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.blood-type-id',
|
|
126
|
+
groupId: 'profile-details',
|
|
127
|
+
options: {
|
|
128
|
+
sort: { enabled: true },
|
|
129
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
130
|
+
},
|
|
131
|
+
schema: {
|
|
132
|
+
dataType: 'string',
|
|
133
|
+
interface: {
|
|
134
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
135
|
+
options: {
|
|
136
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.bloodType.name}`,
|
|
137
|
+
textField: 'title',
|
|
138
|
+
valueField: 'id',
|
|
139
|
+
look: 'select',
|
|
140
|
+
expose: [
|
|
141
|
+
{ source: 'id', target: 'bloodType.id' },
|
|
142
|
+
{ source: 'title', target: 'bloodType.title' },
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'healthRiskLevel',
|
|
150
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.health-risk-level',
|
|
151
|
+
groupId: 'profile-details',
|
|
152
|
+
options: {
|
|
153
|
+
sort: { enabled: true },
|
|
154
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
155
|
+
},
|
|
156
|
+
schema: {
|
|
157
|
+
dataType: 'string',
|
|
158
|
+
interface: {
|
|
159
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
160
|
+
options: {
|
|
161
|
+
dataSource: 'HealthCore:ListHealthRiskLevelOptions',
|
|
162
|
+
valueField: 'value',
|
|
163
|
+
textField: 'title',
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'doctorName',
|
|
170
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.doctor-name',
|
|
171
|
+
groupId: 'profile-details',
|
|
172
|
+
options: {
|
|
173
|
+
sort: { enabled: true },
|
|
174
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
175
|
+
},
|
|
176
|
+
schema: {
|
|
177
|
+
dataType: 'string',
|
|
178
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'doctorNumber',
|
|
183
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.doctor-number',
|
|
184
|
+
groupId: 'profile-details',
|
|
185
|
+
options: {
|
|
186
|
+
sort: { enabled: true },
|
|
187
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
188
|
+
},
|
|
189
|
+
schema: {
|
|
190
|
+
dataType: 'string',
|
|
191
|
+
interface: {
|
|
192
|
+
type: AXPWidgetsList.Editors.ContactBox,
|
|
193
|
+
options: { type: 'phone', hasLabel: false, hasIcon: true },
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'emergencyContactName',
|
|
199
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.emergency-contact-name',
|
|
200
|
+
groupId: 'profile-details',
|
|
201
|
+
options: {
|
|
202
|
+
sort: { enabled: true },
|
|
203
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
204
|
+
},
|
|
205
|
+
schema: {
|
|
206
|
+
dataType: 'string',
|
|
207
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'emergencyContactPhone',
|
|
212
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.emergency-contact-phone',
|
|
213
|
+
groupId: 'profile-details',
|
|
214
|
+
options: {
|
|
215
|
+
sort: { enabled: true },
|
|
216
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
217
|
+
},
|
|
218
|
+
schema: {
|
|
219
|
+
dataType: 'string',
|
|
220
|
+
interface: {
|
|
221
|
+
type: AXPWidgetsList.Editors.ContactBox,
|
|
222
|
+
options: { type: 'phone', hasLabel: false, hasIcon: true },
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: 'emergencyContactEmail',
|
|
228
|
+
title: '@health-core:health-profiles.entities.health-profile.fields.emergency-contact-email',
|
|
229
|
+
groupId: 'profile-details',
|
|
230
|
+
options: {
|
|
231
|
+
sort: { enabled: true },
|
|
232
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
233
|
+
},
|
|
234
|
+
schema: {
|
|
235
|
+
dataType: 'string',
|
|
236
|
+
interface: {
|
|
237
|
+
type: AXPWidgetsList.Editors.ContactBox,
|
|
238
|
+
options: { type: 'email', hasLabel: false, hasIcon: true },
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'notes',
|
|
244
|
+
title: '@general:terms.common.notes',
|
|
245
|
+
groupId: 'profile-details',
|
|
246
|
+
options: {
|
|
247
|
+
sort: { enabled: false },
|
|
248
|
+
filter: { advance: { enabled: true }, inline: { enabled: false } },
|
|
249
|
+
},
|
|
250
|
+
schema: {
|
|
251
|
+
dataType: 'string',
|
|
252
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
columns: [
|
|
257
|
+
{ name: 'subject.id', options: { dataPath: 'subject.title' } },
|
|
258
|
+
{ name: 'bloodTypeId', options: { dataPath: 'bloodType.title' } },
|
|
259
|
+
{ name: 'disabilityStatusId', options: { dataPath: 'disabilityStatus.title' } },
|
|
260
|
+
{ name: 'healthRiskLevel' },
|
|
261
|
+
],
|
|
262
|
+
interfaces: {
|
|
263
|
+
master: {
|
|
264
|
+
create: { sections, properties: propertyLayouts },
|
|
265
|
+
update: { sections, properties: propertyLayouts },
|
|
266
|
+
single: {
|
|
267
|
+
title: '{{ subject.title }}',
|
|
268
|
+
sections,
|
|
269
|
+
properties: propertyLayouts,
|
|
270
|
+
actions: [...entityMasterRecordActions()],
|
|
271
|
+
},
|
|
272
|
+
list: {
|
|
273
|
+
actions: [...entityMasterCrudActions()],
|
|
274
|
+
views: [createAllQueryView({ sorts: [{ name: 'subject.id', dir: 'asc' }] })],
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
return entityDef;
|
|
280
|
+
}
|
|
281
|
+
//#endregion
|
|
282
|
+
|
|
283
|
+
export { healthProfileFactory };
|
|
284
|
+
//# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/health-profile/health-profile.entity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n\nimport { createHealthSubjectLookupProperty } from '../../health-subject.utils';\nimport { omitHealthSubjectFromEditLayouts } from '../../health-subject-form-layout.utils';\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Form layouts ----\n\nconst profilePropertyLayouts = [\n { name: 'subject.id', layout: { positions: { lg: { colSpan: 12 } } } },\n // Row 1: 4 + 4 + 4\n { name: 'disabilityStatusId', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },\n { name: 'smokingStatus', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },\n { name: 'alcoholConsumption', layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n // Row 2: 4 + 4\n { name: 'bloodTypeId', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },\n { name: 'healthRiskLevel', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },\n // Row 3: 4 + 4\n { name: 'doctorName', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },\n { name: 'doctorNumber', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },\n // Row 4: 4 + 4 + 4\n { name: 'emergencyContactName', layout: { positions: { lg: { colSpan: 4, colStart: 1 } } } },\n { name: 'emergencyContactPhone', layout: { positions: { lg: { colSpan: 4, colStart: 5 } } } },\n { name: 'emergencyContactEmail', layout: { positions: { lg: { colSpan: 4, colStart: 9 } } } },\n // Row 5: 12\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, colStart: 1 } } } },\n];\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function healthProfileFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'profile-details', layout: { positions: { lg: { colSpan: 12 } } } }];\n const propertyLayouts = omitHealthSubjectFromEditLayouts(profilePropertyLayouts);\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.healthProfile.name,\n title: RootConfig.entities.healthProfile.title,\n icon: RootConfig.entities.healthProfile.icon,\n formats: {\n individual: RootConfig.entities.healthProfile.title,\n plural: RootConfig.entities.healthProfile.titlePlural,\n searchResult: { title: '{{ subject.title }}', description: RootConfig.module.title },\n },\n plugins: [{ name: 'history' }, { name: 'reports' }],\n groups: [\n {\n id: 'profile-details',\n title: '@health-core:health-profiles.entities.health-profile.groups.profile-details',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'profile-details',\n schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },\n },\n createHealthSubjectLookupProperty('profile-details', { readonly: true }),\n\n {\n name: 'disabilityStatusId',\n title: '@health-core:health-profiles.entities.health-profile.fields.disability-status-id',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.disabilityStatus.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'disabilityStatus.id' },\n { source: 'title', target: 'disabilityStatus.title' },\n ],\n },\n },\n },\n },\n {\n name: 'smokingStatus',\n title: '@health-core:health-profiles.entities.health-profile.fields.smoking-status',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n dataSource: 'HealthCore:ListSmokingStatusOptions',\n valueField: 'value',\n textField: 'title',\n },\n },\n },\n },\n {\n name: 'alcoholConsumption',\n title: '@health-core:health-profiles.entities.health-profile.fields.alcohol-consumption',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n dataSource: 'HealthCore:ListAlcoholConsumptionOptions',\n valueField: 'value',\n textField: 'title',\n },\n },\n },\n },\n {\n name: 'bloodTypeId',\n title: '@health-core:health-profiles.entities.health-profile.fields.blood-type-id',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.bloodType.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'bloodType.id' },\n { source: 'title', target: 'bloodType.title' },\n ],\n },\n },\n },\n },\n {\n name: 'healthRiskLevel',\n title: '@health-core:health-profiles.entities.health-profile.fields.health-risk-level',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n dataSource: 'HealthCore:ListHealthRiskLevelOptions',\n valueField: 'value',\n textField: 'title',\n },\n },\n },\n },\n {\n name: 'doctorName',\n title: '@health-core:health-profiles.entities.health-profile.fields.doctor-name',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'doctorNumber',\n title: '@health-core:health-profiles.entities.health-profile.fields.doctor-number',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.ContactBox,\n options: { type: 'phone', hasLabel: false, hasIcon: true },\n },\n },\n },\n {\n name: 'emergencyContactName',\n title: '@health-core:health-profiles.entities.health-profile.fields.emergency-contact-name',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'emergencyContactPhone',\n title: '@health-core:health-profiles.entities.health-profile.fields.emergency-contact-phone',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.ContactBox,\n options: { type: 'phone', hasLabel: false, hasIcon: true },\n },\n },\n },\n {\n name: 'emergencyContactEmail',\n title: '@health-core:health-profiles.entities.health-profile.fields.emergency-contact-email',\n groupId: 'profile-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.ContactBox,\n options: { type: 'email', hasLabel: false, hasIcon: true },\n },\n },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n groupId: 'profile-details',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },\n },\n },\n ],\n columns: [\n { name: 'subject.id', options: { dataPath: 'subject.title' } },\n { name: 'bloodTypeId', options: { dataPath: 'bloodType.title' } },\n { name: 'disabilityStatusId', options: { dataPath: 'disabilityStatus.title' } },\n { name: 'healthRiskLevel' },\n ],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: {\n title: '{{ subject.title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'subject.id', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAAA;AASA;AAEA;AAEA,MAAM,sBAAsB,GAAG;AAC7B,IAAA,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;;IAEtE,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;IAC1F,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;IACrF,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;;IAE1F,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;IACnF,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;;IAEvF,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO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