@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.
Files changed (78) hide show
  1. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs +222 -0
  2. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs +169 -0
  4. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs +222 -0
  6. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs +242 -0
  8. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs +450 -0
  10. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs +458 -0
  12. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs +462 -0
  14. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs +199 -0
  16. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs +189 -0
  18. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs +169 -0
  20. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs +169 -0
  22. package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs +128 -0
  24. 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
  25. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs +123 -0
  26. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs +70 -0
  28. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs +123 -0
  30. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs +143 -0
  32. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs +272 -0
  34. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs +280 -0
  36. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs +284 -0
  38. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-Dgq6FTVR.mjs +100 -0
  40. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-Dgq6FTVR.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-CE1oWLLW.mjs +90 -0
  42. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-CE1oWLLW.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs +84 -0
  44. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-subject-form-layout.utils-BOm1lGPF.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-tYDRX6YY.mjs +70 -0
  46. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-tYDRX6YY.mjs.map +1 -0
  47. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-Cj0alpZ1.mjs +70 -0
  48. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-Cj0alpZ1.mjs.map +1 -0
  49. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs +2 -0
  50. package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-health-core-client-contracts.mjs.map +1 -1
  52. package/fesm2022/acorex-platform-module-health-core-client-list-alcohol-consumption-options.query-CFQk6mlY.mjs.map +1 -1
  53. package/fesm2022/acorex-platform-module-health-core-client-list-allergy-severity-options.query-BmdEP1TK.mjs.map +1 -1
  54. package/fesm2022/acorex-platform-module-health-core-client-list-chronic-condition-status-options.query-QgsQCqLm.mjs.map +1 -1
  55. package/fesm2022/acorex-platform-module-health-core-client-list-health-risk-level-options.query-BtJdBZVT.mjs.map +1 -1
  56. package/fesm2022/acorex-platform-module-health-core-client-list-injury-mechanism-options.query-D7Tjl7eC.mjs.map +1 -1
  57. package/fesm2022/acorex-platform-module-health-core-client-list-pain-rate-options.query-C9sGCRmk.mjs.map +1 -1
  58. package/fesm2022/acorex-platform-module-health-core-client-list-smoking-status-options.query-EUVhlNLW.mjs.map +1 -1
  59. package/fesm2022/acorex-platform-module-health-core-client-list-work-capacity-options.query-YQ6BW3kG.mjs.map +1 -1
  60. package/fesm2022/acorex-platform-module-health-core-client-local-entities.mjs +39 -0
  61. package/fesm2022/acorex-platform-module-health-core-client-local-entities.mjs.map +1 -0
  62. package/fesm2022/acorex-platform-module-health-core-client-start-health-record-flow.command-BsB-MPmu.mjs.map +1 -1
  63. package/fesm2022/acorex-platform-module-health-core-client.mjs.map +1 -1
  64. package/package.json +54 -2
  65. package/types/acorex-platform-module-health-core-client-contracts-entities-blood-type.d.ts +5 -0
  66. package/types/acorex-platform-module-health-core-client-contracts-entities-body-part.d.ts +5 -0
  67. package/types/acorex-platform-module-health-core-client-contracts-entities-disability-status.d.ts +5 -0
  68. package/types/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.d.ts +5 -0
  69. package/types/acorex-platform-module-health-core-client-contracts-entities-health-condition.d.ts +5 -0
  70. package/types/acorex-platform-module-health-core-client-contracts-entities-health-event.d.ts +5 -0
  71. package/types/acorex-platform-module-health-core-client-contracts-entities-health-profile.d.ts +5 -0
  72. package/types/acorex-platform-module-health-core-client-contracts-entities-health-record-type.d.ts +5 -0
  73. package/types/acorex-platform-module-health-core-client-contracts-entities-health-restriction.d.ts +5 -0
  74. package/types/acorex-platform-module-health-core-client-contracts-entities-injury-type.d.ts +5 -0
  75. package/types/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.d.ts +5 -0
  76. package/types/acorex-platform-module-health-core-client-contracts-entity-catalog.d.ts +10 -0
  77. package/types/acorex-platform-module-health-core-client-contracts.d.ts +2 -1
  78. package/types/acorex-platform-module-health-core-client-local-entities.d.ts +12 -0
@@ -0,0 +1,123 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ 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';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function disabilityStatusFactory() {
8
+ const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
9
+ const propertyLayouts = [
10
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
11
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
12
+ ];
13
+ const entityDef = {
14
+ module: RootConfig.module.name,
15
+ name: RootConfig.entities.disabilityStatus.name,
16
+ title: RootConfig.entities.disabilityStatus.title,
17
+ icon: RootConfig.entities.disabilityStatus.icon,
18
+ formats: {
19
+ individual: RootConfig.entities.disabilityStatus.title,
20
+ plural: RootConfig.entities.disabilityStatus.titlePlural,
21
+ searchResult: {
22
+ title: '{{ title }}',
23
+ description: RootConfig.module.title,
24
+ },
25
+ },
26
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],
27
+ groups: [
28
+ {
29
+ id: 'basic-info',
30
+ title: '@health-core:disability-statuses.entities.disability-status.groups.basic-info',
31
+ },
32
+ ],
33
+ properties: [
34
+ {
35
+ name: 'id',
36
+ title: '@general:terms.common.id',
37
+ groupId: 'basic-info',
38
+ schema: {
39
+ dataType: 'uuid',
40
+ visible: false,
41
+ readonly: true,
42
+ unique: { enabled: true },
43
+ },
44
+ },
45
+ {
46
+ name: 'title',
47
+ title: '@general:terms.common.title',
48
+ groupId: 'basic-info',
49
+ options: {
50
+ sort: { enabled: true },
51
+ filter: {
52
+ advance: { enabled: true },
53
+ inline: { enabled: true },
54
+ },
55
+ },
56
+ schema: {
57
+ dataType: 'string',
58
+ interface: {
59
+ type: AXPWidgetsList.Editors.TextBox,
60
+ options: {
61
+ placeholder: '@general:terms.common.title',
62
+ },
63
+ },
64
+ },
65
+ validations: [{ rule: 'required' }],
66
+ },
67
+ {
68
+ name: 'description',
69
+ title: '@general:terms.common.description',
70
+ groupId: 'basic-info',
71
+ options: {
72
+ sort: { enabled: false },
73
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
74
+ },
75
+ schema: {
76
+ dataType: 'string',
77
+ interface: {
78
+ type: AXPWidgetsList.Editors.LargeTextBox,
79
+ options: {
80
+ rows: 3,
81
+ placeholder: '@general:terms.common.description',
82
+ },
83
+ },
84
+ },
85
+ },
86
+ ],
87
+ columns: [
88
+ { name: 'title', options: { width: '220px', order: 1 } },
89
+ { name: 'description', options: { width: '280px', order: 2 } },
90
+ ],
91
+ interfaces: {
92
+ master: {
93
+ create: {
94
+ sections,
95
+ properties: propertyLayouts,
96
+ },
97
+ update: {
98
+ sections,
99
+ properties: propertyLayouts,
100
+ },
101
+ single: {
102
+ title: '{{ title }}',
103
+ sections,
104
+ properties: propertyLayouts,
105
+ actions: [...entityMasterRecordActions()],
106
+ },
107
+ list: {
108
+ actions: [...entityMasterCrudActions()],
109
+ views: [
110
+ createAllQueryView({
111
+ sorts: [{ name: 'title', dir: 'asc' }],
112
+ }),
113
+ ],
114
+ },
115
+ },
116
+ },
117
+ };
118
+ return entityDef;
119
+ }
120
+ //#endregion
121
+
122
+ export { disabilityStatusFactory };
123
+ //# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/disability-status/disability-status.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function disabilityStatusFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.disabilityStatus.name,\n title: RootConfig.entities.disabilityStatus.title,\n icon: RootConfig.entities.disabilityStatus.icon,\n formats: {\n individual: RootConfig.entities.disabilityStatus.title,\n plural: RootConfig.entities.disabilityStatus.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],\n groups: [\n {\n id: 'basic-info',\n title: '@health-core:disability-statuses.entities.disability-status.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@general:terms.common.title',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder: '@general:terms.common.description',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '220px', order: 1 } },\n { name: 'description', options: { width: '280px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,uBAAuB,GAAA;IAC3C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAEvF,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC3E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;KAClF;AAED,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IA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EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACxD,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AAC/D,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACvC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,143 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ 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';
4
+
5
+ //#region ---- Imports ----
6
+ //#endregion
7
+ //#region ---- Entity Factory ----
8
+ async function healthConditionTypeFactory() {
9
+ const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
10
+ const propertyLayouts = [
11
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
12
+ { name: 'kind', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
13
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
14
+ { name: 'suggestedRestrictionIds', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
15
+ ];
16
+ const entityDef = {
17
+ module: RootConfig.module.name,
18
+ name: RootConfig.entities.healthConditionType.name,
19
+ title: RootConfig.entities.healthConditionType.title,
20
+ icon: RootConfig.entities.healthConditionType.icon,
21
+ formats: {
22
+ individual: RootConfig.entities.healthConditionType.title,
23
+ plural: RootConfig.entities.healthConditionType.titlePlural,
24
+ searchResult: { title: '{{ title }}', description: '{{ kind }}' },
25
+ },
26
+ plugins: [
27
+ { name: 'meta-data-builder', options: { display: 'page' } },
28
+ { name: 'history' },
29
+ { name: 'compare' },
30
+ { name: 'clone' },
31
+ ],
32
+ groups: [
33
+ {
34
+ id: 'basic-info',
35
+ title: '@health-core:health-condition-types.entities.health-condition-type.groups.basic-info',
36
+ },
37
+ ],
38
+ properties: [
39
+ {
40
+ name: 'id',
41
+ title: '@general:terms.common.id',
42
+ groupId: 'basic-info',
43
+ schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },
44
+ },
45
+ {
46
+ name: 'title',
47
+ title: '@general:terms.common.title',
48
+ groupId: 'basic-info',
49
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
50
+ schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },
51
+ validations: [{ rule: 'required' }],
52
+ },
53
+ {
54
+ name: 'kind',
55
+ title: '@health-core:health-condition-types.entities.health-condition-type.fields.kind',
56
+ groupId: 'basic-info',
57
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
58
+ schema: {
59
+ dataType: 'string',
60
+ interface: {
61
+ type: AXPWidgetsList.Editors.SelectBox,
62
+ options: {
63
+ dataSource: [
64
+ { value: 'allergy', title: '@health-core:health-condition-types.kinds.allergy' },
65
+ { value: 'chronic', title: '@health-core:health-condition-types.kinds.chronic' },
66
+ ],
67
+ valueField: 'value',
68
+ textField: 'title',
69
+ },
70
+ },
71
+ },
72
+ validations: [{ rule: 'required' }],
73
+ },
74
+ {
75
+ name: 'description',
76
+ title: '@general:terms.common.description',
77
+ groupId: 'basic-info',
78
+ options: {
79
+ sort: { enabled: false },
80
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
81
+ },
82
+ schema: {
83
+ dataType: 'string',
84
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 3 } },
85
+ },
86
+ },
87
+ {
88
+ name: 'suggestedRestrictionIds',
89
+ title: '@health-core:health-condition-types.entities.health-condition-type.fields.suggested-restriction-ids',
90
+ groupId: 'basic-info',
91
+ options: {
92
+ sort: { enabled: false },
93
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
94
+ },
95
+ schema: {
96
+ dataType: 'array',
97
+ interface: {
98
+ type: AXPWidgetsList.Editors.LookupBox,
99
+ options: {
100
+ entity: `${RootConfig.module.name}.${RootConfig.entities.healthRestriction.name}`,
101
+ textField: 'title',
102
+ valueField: 'id',
103
+ look: 'select',
104
+ multiple: true,
105
+ columns: ['title', 'description'],
106
+ expose: [
107
+ { source: 'id', target: 'suggestedRestrictionsList.{id}' },
108
+ { source: 'title', target: 'suggestedRestrictionsList.{title}' },
109
+ ],
110
+ },
111
+ },
112
+ },
113
+ },
114
+ ],
115
+ columns: [
116
+ { name: 'title', options: { width: '220px', order: 1 } },
117
+ { name: 'kind', options: { width: '120px', order: 2 } },
118
+ { name: 'description', options: { width: '280px', order: 3 } },
119
+ { name: 'suggestedRestrictionIds', options: { dataPath: 'suggestedRestrictionsList', width: '240px', order: 4 } },
120
+ ],
121
+ interfaces: {
122
+ master: {
123
+ create: { sections, properties: propertyLayouts },
124
+ update: { sections, properties: propertyLayouts },
125
+ single: {
126
+ title: '{{ title }}',
127
+ sections,
128
+ properties: propertyLayouts,
129
+ actions: [...entityMasterRecordActions()],
130
+ },
131
+ list: {
132
+ actions: [...entityMasterCrudActions()],
133
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
134
+ },
135
+ },
136
+ },
137
+ };
138
+ return entityDef;
139
+ }
140
+ //#endregion
141
+
142
+ export { healthConditionTypeFactory };
143
+ //# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/health-condition-type/health-condition-type.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 { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function healthConditionTypeFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'kind', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'suggestedRestrictionIds', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.healthConditionType.name,\n title: RootConfig.entities.healthConditionType.title,\n icon: RootConfig.entities.healthConditionType.icon,\n formats: {\n individual: RootConfig.entities.healthConditionType.title,\n plural: RootConfig.entities.healthConditionType.titlePlural,\n searchResult: { title: '{{ title }}', description: '{{ kind }}' },\n },\n plugins: [\n { name: 'meta-data-builder', options: { display: 'page' } },\n { name: 'history' },\n { name: 'compare' },\n { name: 'clone' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@health-core:health-condition-types.entities.health-condition-type.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: { dataType: 'string', interface: { type: AXPWidgetsList.Editors.TextBox } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'kind',\n title: '@health-core:health-condition-types.entities.health-condition-type.fields.kind',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n dataSource: [\n { value: 'allergy', title: '@health-core:health-condition-types.kinds.allergy' },\n { value: 'chronic', title: '@health-core:health-condition-types.kinds.chronic' },\n ],\n valueField: 'value',\n textField: 'title',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\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: 'suggestedRestrictionIds',\n title:\n '@health-core:health-condition-types.entities.health-condition-type.fields.suggested-restriction-ids',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'array',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.healthRestriction.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n multiple: true,\n columns: ['title', 'description'],\n expose: [\n { source: 'id', target: 'suggestedRestrictionsList.{id}' },\n { source: 'title', target: 'suggestedRestrictionsList.{title}' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '220px', order: 1 } },\n { name: 'kind', options: { width: '120px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\n { name: 'suggestedRestrictionIds', options: { dataPath: 'suggestedRestrictionsList', width: '240px', order: 4 } },\n ],\n interfaces: {\n master: {\n create: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAAA;AAOA;AAEA;AAEO,eAAe,0BAA0B,GAAA;IAC9C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AACvF,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACzE,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,E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,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,aAAa;oBACpB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,272 @@
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 ---- Repeater children ----
9
+ const RESTRICTIONS_REPEATER_CHILDREN = [
10
+ {
11
+ type: AXPWidgetsList.Layouts.GridLayout,
12
+ mode: 'edit',
13
+ name: 'restrictionRow',
14
+ options: {
15
+ grid: {
16
+ default: {
17
+ columns: 12,
18
+ gap: '1rem',
19
+ },
20
+ },
21
+ },
22
+ children: [
23
+ {
24
+ type: AXPWidgetsList.Layouts.GridItemLayout,
25
+ mode: 'edit',
26
+ options: { colSpan: 6 },
27
+ children: [
28
+ {
29
+ type: AXPWidgetsList.Layouts.FormField,
30
+ mode: 'edit',
31
+ options: {
32
+ label: '@health-core:health-conditions.entities.health-condition.fields.restriction-id',
33
+ showLabel: true,
34
+ },
35
+ children: [
36
+ {
37
+ type: AXPWidgetsList.Editors.LookupBox,
38
+ mode: 'edit',
39
+ path: 'restrictionId',
40
+ name: 'restrictionId',
41
+ options: {
42
+ entity: `${RootConfig.module.name}.${RootConfig.entities.healthRestriction.name}`,
43
+ textField: 'title',
44
+ valueField: 'id',
45
+ look: 'select',
46
+ columns: ['title', 'description'],
47
+ expose: [
48
+ { source: 'id', target: 'restriction.id' },
49
+ { source: 'title', target: 'restriction.title' },
50
+ ],
51
+ validations: [{ rule: 'required' }],
52
+ },
53
+ },
54
+ ],
55
+ },
56
+ ],
57
+ },
58
+ {
59
+ type: AXPWidgetsList.Layouts.GridItemLayout,
60
+ mode: 'edit',
61
+ options: { colSpan: 3 },
62
+ children: [
63
+ {
64
+ type: AXPWidgetsList.Layouts.FormField,
65
+ mode: 'edit',
66
+ options: {
67
+ label: '@health-core:health-conditions.entities.health-condition.fields.start-date',
68
+ showLabel: true,
69
+ },
70
+ children: [
71
+ {
72
+ type: AXPWidgetsList.Editors.DateTimeBox,
73
+ mode: 'edit',
74
+ path: 'startDate',
75
+ name: 'startDate',
76
+ options: {},
77
+ },
78
+ ],
79
+ },
80
+ ],
81
+ },
82
+ {
83
+ type: AXPWidgetsList.Layouts.GridItemLayout,
84
+ mode: 'edit',
85
+ options: { colSpan: 3 },
86
+ children: [
87
+ {
88
+ type: AXPWidgetsList.Layouts.FormField,
89
+ mode: 'edit',
90
+ options: {
91
+ label: '@health-core:health-conditions.entities.health-condition.fields.end-date',
92
+ showLabel: true,
93
+ },
94
+ children: [
95
+ {
96
+ type: AXPWidgetsList.Editors.DateTimeBox,
97
+ mode: 'edit',
98
+ path: 'endDate',
99
+ name: 'endDate',
100
+ options: {},
101
+ },
102
+ ],
103
+ },
104
+ ],
105
+ },
106
+ ],
107
+ },
108
+ ];
109
+ //#endregion
110
+ //#region ---- Entity Factory ----
111
+ async function healthConditionFactory() {
112
+ const sections = [
113
+ { id: 'condition-details', layout: { positions: { lg: { colSpan: 12 } } } },
114
+ { id: 'restrictions', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },
115
+ ];
116
+ const restrictionsPropertyLayout = {
117
+ name: 'restrictions',
118
+ layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } },
119
+ };
120
+ const viewPropertyLayouts = [
121
+ { name: 'subject.id', layout: { positions: { lg: { colSpan: 12 } } } },
122
+ { name: 'conditionTypeId', layout: { positions: { lg: { colSpan: 6 } } } },
123
+ { name: 'diagnosedDate', layout: { positions: { lg: { colSpan: 6 } } } },
124
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },
125
+ restrictionsPropertyLayout,
126
+ ];
127
+ const editPropertyLayouts = omitHealthSubjectFromEditLayouts(viewPropertyLayouts);
128
+ const entityDef = {
129
+ module: RootConfig.module.name,
130
+ name: RootConfig.entities.healthCondition.name,
131
+ title: RootConfig.entities.healthCondition.title,
132
+ icon: RootConfig.entities.healthCondition.icon,
133
+ plugins: [
134
+ { name: 'history' },
135
+ { name: 'reports' },
136
+ {
137
+ name: 'meta-data-form',
138
+ options: {
139
+ title: '@health-core:health-conditions.entities.health-condition.groups.more-information',
140
+ path: 'conditionTypeId',
141
+ display: {
142
+ section: {
143
+ order: 2,
144
+ },
145
+ },
146
+ },
147
+ },
148
+ ],
149
+ formats: {
150
+ individual: RootConfig.entities.healthCondition.title,
151
+ plural: RootConfig.entities.healthCondition.titlePlural,
152
+ searchResult: {
153
+ title: '{{ context.eval("conditionType.title", { pipes: ["translate"] }) }}',
154
+ description: '{{ context.eval("subject.title", { pipes: ["translate"] }) }}',
155
+ },
156
+ },
157
+ groups: [
158
+ {
159
+ id: 'condition-details',
160
+ title: '@health-core:health-conditions.entities.health-condition.groups.condition-details',
161
+ },
162
+ {
163
+ id: 'restrictions',
164
+ title: '@health-core:health-conditions.entities.health-condition.groups.restrictions',
165
+ },
166
+ ],
167
+ properties: [
168
+ {
169
+ name: 'id',
170
+ title: '@general:terms.common.id',
171
+ groupId: 'condition-details',
172
+ schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },
173
+ },
174
+ createHealthSubjectLookupProperty('condition-details', { readonly: true }),
175
+ {
176
+ name: 'conditionTypeId',
177
+ title: '@health-core:health-conditions.entities.health-condition.fields.condition-type-id',
178
+ groupId: 'condition-details',
179
+ options: {
180
+ sort: { enabled: true },
181
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
182
+ },
183
+ schema: {
184
+ dataType: 'string',
185
+ interface: {
186
+ type: AXPWidgetsList.Editors.LookupBox,
187
+ options: {
188
+ entity: `${RootConfig.module.name}.${RootConfig.entities.healthConditionType.name}`,
189
+ textField: 'title',
190
+ valueField: 'id',
191
+ look: 'select',
192
+ columns: ['title', 'kind'],
193
+ expose: [
194
+ { source: 'id', target: 'conditionType.id' },
195
+ { source: 'title', target: 'conditionType.title' },
196
+ { source: 'kind', target: 'conditionType.kind' },
197
+ ],
198
+ },
199
+ },
200
+ },
201
+ validations: [{ rule: 'required' }],
202
+ },
203
+ {
204
+ name: 'diagnosedDate',
205
+ title: '@health-core:health-conditions.entities.health-condition.fields.diagnosed-date',
206
+ groupId: 'condition-details',
207
+ options: {
208
+ sort: { enabled: true },
209
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
210
+ },
211
+ schema: {
212
+ dataType: 'date',
213
+ interface: { type: AXPWidgetsList.Editors.DateTimeBox },
214
+ },
215
+ },
216
+ {
217
+ name: 'restrictions',
218
+ title: '@health-core:health-conditions.entities.health-condition.fields.restrictions.title',
219
+ groupId: 'restrictions',
220
+ schema: {
221
+ defaultValue: [],
222
+ dataType: 'array',
223
+ interface: {
224
+ type: AXPWidgetsList.Layouts.RepeaterLayout,
225
+ options: { hasControls: true },
226
+ children: [...RESTRICTIONS_REPEATER_CHILDREN],
227
+ },
228
+ },
229
+ },
230
+ {
231
+ name: 'notes',
232
+ title: '@general:terms.common.notes',
233
+ groupId: 'condition-details',
234
+ options: {
235
+ sort: { enabled: false },
236
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
237
+ },
238
+ schema: {
239
+ dataType: 'string',
240
+ interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 2 } },
241
+ },
242
+ },
243
+ ],
244
+ columns: [
245
+ { name: 'conditionTypeId', options: { dataPath: 'conditionType.title', width: '300px' } },
246
+ { name: 'diagnosedDate', options: { width: '150px' } },
247
+ { name: 'restrictions', options: { width: '280px' } },
248
+ { name: 'notes', options: { width: '300px' } },
249
+ ],
250
+ interfaces: {
251
+ master: {
252
+ create: { sections, properties: editPropertyLayouts },
253
+ update: { sections, properties: editPropertyLayouts },
254
+ single: {
255
+ title: '{{ context.eval("conditionType.title", { pipes: ["translate"] }) }}',
256
+ sections,
257
+ properties: viewPropertyLayouts,
258
+ actions: [...entityMasterRecordActions()],
259
+ },
260
+ list: {
261
+ actions: [...entityMasterCrudActions()],
262
+ views: [createAllQueryView({ sorts: [{ name: 'diagnosedDate', dir: 'desc' }] })],
263
+ },
264
+ },
265
+ },
266
+ };
267
+ return entityDef;
268
+ }
269
+ //#endregion
270
+
271
+ export { healthConditionFactory };
272
+ //# sourceMappingURL=acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/health-condition/health-condition.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 ---- Repeater children ----\n\nconst RESTRICTIONS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Layouts.GridLayout,\n mode: 'edit' as const,\n name: 'restrictionRow',\n options: {\n grid: {\n default: {\n columns: 12,\n gap: '1rem',\n },\n },\n },\n children: [\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 6 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label: '@health-core:health-conditions.entities.health-condition.fields.restriction-id',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.LookupBox,\n mode: 'edit' as const,\n path: 'restrictionId',\n name: 'restrictionId',\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.healthRestriction.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title', 'description'],\n expose: [\n { source: 'id', target: 'restriction.id' },\n { source: 'title', target: 'restriction.title' },\n ],\n validations: [{ rule: 'required' }],\n },\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 3 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label: '@health-core:health-conditions.entities.health-condition.fields.start-date',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.DateTimeBox,\n mode: 'edit' as const,\n path: 'startDate',\n name: 'startDate',\n options: {},\n },\n ],\n },\n ],\n },\n {\n type: AXPWidgetsList.Layouts.GridItemLayout,\n mode: 'edit' as const,\n options: { colSpan: 3 },\n children: [\n {\n type: AXPWidgetsList.Layouts.FormField,\n mode: 'edit' as const,\n options: {\n label: '@health-core:health-conditions.entities.health-condition.fields.end-date',\n showLabel: true,\n },\n children: [\n {\n type: AXPWidgetsList.Editors.DateTimeBox,\n mode: 'edit' as const,\n path: 'endDate',\n name: 'endDate',\n options: {},\n },\n ],\n },\n ],\n },\n ],\n },\n];\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function healthConditionFactory(): Promise<AXPEntity> {\n const sections = [\n { id: 'condition-details', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'restrictions', order: 3, layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const restrictionsPropertyLayout = {\n name: 'restrictions',\n layout: { label: { visible: false }, positions: { lg: { colSpan: 12 } } },\n };\n\n const viewPropertyLayouts = [\n { name: 'subject.id', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'conditionTypeId', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'diagnosedDate', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12 } } } },\n restrictionsPropertyLayout,\n ];\n const editPropertyLayouts = omitHealthSubjectFromEditLayouts(viewPropertyLayouts);\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.healthCondition.name,\n title: RootConfig.entities.healthCondition.title,\n icon: RootConfig.entities.healthCondition.icon,\n plugins: [\n { name: 'history' },\n { name: 'reports' },\n {\n name: 'meta-data-form',\n options: {\n title: '@health-core:health-conditions.entities.health-condition.groups.more-information',\n path: 'conditionTypeId',\n display: {\n section: {\n order: 2,\n },\n },\n },\n },\n ],\n formats: {\n individual: RootConfig.entities.healthCondition.title,\n plural: RootConfig.entities.healthCondition.titlePlural,\n searchResult: {\n title: '{{ context.eval(\"conditionType.title\", { pipes: [\"translate\"] }) }}',\n description: '{{ context.eval(\"subject.title\", { pipes: [\"translate\"] }) }}',\n },\n },\n groups: [\n {\n id: 'condition-details',\n title: '@health-core:health-conditions.entities.health-condition.groups.condition-details',\n },\n {\n id: 'restrictions',\n title: '@health-core:health-conditions.entities.health-condition.groups.restrictions',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'condition-details',\n schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } },\n },\n createHealthSubjectLookupProperty('condition-details', { readonly: true }),\n {\n name: 'conditionTypeId',\n title: '@health-core:health-conditions.entities.health-condition.fields.condition-type-id',\n groupId: 'condition-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.healthConditionType.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n columns: ['title', 'kind'],\n expose: [\n { source: 'id', target: 'conditionType.id' },\n { source: 'title', target: 'conditionType.title' },\n { source: 'kind', target: 'conditionType.kind' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'diagnosedDate',\n title: '@health-core:health-conditions.entities.health-condition.fields.diagnosed-date',\n groupId: 'condition-details',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'date',\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n {\n name: 'restrictions',\n title: '@health-core:health-conditions.entities.health-condition.fields.restrictions.title',\n groupId: 'restrictions',\n schema: {\n defaultValue: [],\n dataType: 'array',\n interface: {\n type: AXPWidgetsList.Layouts.RepeaterLayout,\n options: { hasControls: true },\n children: [...RESTRICTIONS_REPEATER_CHILDREN],\n },\n },\n },\n {\n name: 'notes',\n title: '@general:terms.common.notes',\n groupId: 'condition-details',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox, options: { rows: 2 } },\n },\n },\n ],\n columns: [\n { name: 'conditionTypeId', options: { dataPath: 'conditionType.title', width: '300px' } },\n { name: 'diagnosedDate', options: { width: '150px' } },\n { name: 'restrictions', options: { width: '280px' } },\n { name: 'notes', options: { width: '300px' } },\n ],\n interfaces: {\n master: {\n create: { sections, properties: editPropertyLayouts },\n update: { sections, properties: editPropertyLayouts },\n single: {\n title: '{{ context.eval(\"conditionType.title\", { pipes: [\"translate\"] }) }}',\n sections,\n properties: viewPropertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'diagnosedDate', dir: 'desc' }] })],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;AAAA;AASA;AAEA;AAEA,MAAM,8BAA8B,GAAG;AACrC,IAAA;AACE,QAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,UAAU;AACvC,QAAA,IAAI,EAAE,MAAe;AACrB,QAAA,IAAI,EAAE,gBAAgB;AACtB,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE;AACJ,gBAAA,OAAO,EAAE;AACP,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,GAAG,EAAE,MAAM;AACZ,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA;AACE,gBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,cAAc;AAC3C,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;AACvB,gBAAA,QAAQ,EAAE;AACR,oBAAA;AACE,wBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;AACtC,wBAAA,IAAI,EAAE,MAAe;AACrB,wBAAA,OAAO,EAAE;AACP,4BAAA,KAAK,EAAE,gFAAgF;AACvF,4BAAA,SAAS,EAAE,IAAI;AAChB,yBAAA;AACD,wBAAA,QAAQ,EAAE;AACR,4BAAA;AACE,gCAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;AACtC,gCAAA,IAAI,EAAE,MAAe;AACrB,gCAAA,IAAI,EAAE,eAAe;AACrB,gCAAA,IAAI,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