@acorex-platform/module-health-core-client 0.0.37 → 0.0.46
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 +14 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-blood-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs +14 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-body-part.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs +14 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-disability-status.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs +15 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs +16 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-condition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs +16 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-event.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs +16 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-profile.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs +16 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-record-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs +15 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-health-restriction.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs +16 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-injury-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs +16 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entities-vaccination-type.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DLDMbF0U.mjs} +12 -12
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-ChOQtTh6.mjs.map → acorex-platform-module-health-core-client-contracts-entity-catalog-acorex-platform-module-health-core-client-contracts-entity-catalog-DLDMbF0U.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-DHCEP2kY.mjs} +16 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-DHCEP2kY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-lBXtuEGq.mjs} +16 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-lBXtuEGq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-BcL-qsoH.mjs} +16 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-BcL-qsoH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-C6So6WSi.mjs} +17 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-C6So6WSi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-CiOhvj2a.mjs} +18 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-CiOhvj2a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-B6mUNj4M.mjs} +18 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-B6mUNj4M.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-DpF_kZ1a.mjs} +18 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-DpF_kZ1a.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-Dgq6FTVR.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-hOaD6rUU.mjs} +18 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-hOaD6rUU.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-CE1oWLLW.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-C6iGWR6f.mjs} +17 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-C6iGWR6f.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-tYDRX6YY.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-CSYkZ0KW.mjs} +18 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-CSYkZ0KW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-Cj0alpZ1.mjs → acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-0xXFFpFH.mjs} +18 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-0xXFFpFH.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts.mjs +19 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-health-core-client.mjs +2 -30
- package/fesm2022/acorex-platform-module-health-core-client.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-module-health-core-client-contracts.d.ts +8 -2
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-disability-status.entity-CJEwjeD6.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition-type.entity-nMvpgBZN.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-condition.entity-WsD5JyJg.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-event.entity-CqqtU3qo.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-profile.entity-qqN4ZIIb.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-record-type.entity-Dgq6FTVR.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-health-restriction.entity-CE1oWLLW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-injury-type.entity-tYDRX6YY.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-health-core-client-contracts-entity-catalog-vaccination-type.entity-Cj0alpZ1.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-health-core-client-contracts.mjs","sources":["../../../../libs/modules/health-core/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/health-core/contracts/src/commands.keys.ts","../../../../libs/modules/health-core/contracts/src/menu.keys.ts","../../../../libs/modules/health-core/contracts/src/permission.keys.ts","../../../../libs/modules/health-core/contracts/src/health-subject-form-layout.utils.ts","../../../../libs/modules/health-core/contracts/src/health-subject.utils.ts","../../../../libs/modules/health-core/contracts/src/root-config.ts","../../../../libs/modules/health-core/contracts/src/entities/blood-type/blood-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/body-part/body-part.types.ts","../../../../libs/modules/health-core/contracts/src/entities/disability-status/disability-status.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-condition/health-condition.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-condition-type/health-condition-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-event/health-event.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-profile/health-profile.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-record-type/health-record-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-restriction/health-restriction.types.ts","../../../../libs/modules/health-core/contracts/src/entities/injury-type/injury-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/vaccination-type/vaccination-type.types.ts","../../../../libs/modules/health-core/contracts/src/index.ts","../../../../libs/modules/health-core/contracts/src/acorex-platform-module-health-core-client-contracts.ts"],"sourcesContent":["/** Health catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const HEALTH_CATALOG_SCOPE = 'health-core.health';\n","export const AXMHealthCoreCommandKeys = {\n HealthEvent: {\n StartFlow: 'HealthCore.HealthEvent:StartFlow',\n },\n} as const;\n","export const AXMHealthCoreMenuKeys = {\n Root: 'health-core',\n BloodTypes: 'health-core.blood-types',\n BodyParts: 'health-core.body-parts',\n DisabilityStatuses: 'health-core.disability-statuses',\n InjuryTypes: 'health-core.injury-types',\n VaccinationTypes: 'health-core.vaccination-types',\n HealthConditionTypes: 'health-core.health-condition-types',\n HealthRestrictions: 'health-core.health-restrictions',\n HealthRecordTypes: 'health-core.health-record-types',\n HealthEvents: 'health-core.health-events',\n HealthProfiles: 'health-core.health-profiles',\n HealthConditions: 'health-core.health-conditions',\n} as const;\n","/**\n * Safety & Risk capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPSafetyRiskPermissionKeys = {\n Access: 'SafetyRisk:Permission:Access',\n MaintainSafety: 'SafetyRisk:Permission:MaintainSafety',\n MaintainRisk: 'SafetyRisk:Permission:MaintainRisk',\n MaintainHealth: 'SafetyRisk:Permission:MaintainHealth',\n MaintainAssessments: 'SafetyRisk:Permission:MaintainAssessments',\n Setup: 'SafetyRisk:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPSafetyRiskPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMHealthCorePermissionKeys = {\n HealthCore: {\n BloodType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n BodyPart: { Management: AXPSafetyRiskPermissionKeys.Setup },\n DisabilityStatus: { Management: AXPSafetyRiskPermissionKeys.Setup },\n InjuryType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n VaccinationType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthConditionType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthRestriction: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthRecordType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthProfile: {\n ViewOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n EditOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n View: AXPSafetyRiskPermissionKeys.MaintainHealth,\n Manage: AXPSafetyRiskPermissionKeys.MaintainHealth,\n },\n HealthCondition: {\n ViewOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n EditOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n View: AXPSafetyRiskPermissionKeys.MaintainHealth,\n Manage: AXPSafetyRiskPermissionKeys.MaintainHealth,\n },\n HealthEvent: {\n ViewOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n EditOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n View: AXPSafetyRiskPermissionKeys.MaintainHealth,\n Manage: AXPSafetyRiskPermissionKeys.MaintainHealth,\n },\n },\n} as const;\n","//#region ---- Subject form layout helpers ----\n\n/** Subject lookup field omitted from create/update when injected from parent context. */\nexport const HEALTH_SUBJECT_PROPERTY_NAMES = ['subject.id'] as const;\n\ntype PropertyLayoutRef = { name: string; layout?: Record<string, unknown> };\n\n/** Omits subject lookup from master create/update layouts (subject is injected from context). */\nexport function omitHealthSubjectFromEditLayouts<T extends PropertyLayoutRef>(layouts: T[]): T[] {\n return layouts.filter(\n (layout) => !HEALTH_SUBJECT_PROPERTY_NAMES.includes(layout.name as (typeof HEALTH_SUBJECT_PROPERTY_NAMES)[number]),\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityProperty, AXPQueryFilter } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Subject filter helpers ----\n\n/** Person subject type for health records shared between My Profile and employee detail. */\nexport const HEALTH_PERSON_SUBJECT_TYPE = 'PersonCore.Person';\n\n/** Filters child health records by polymorphic subject on a parent entity detail context. */\nexport function healthSubjectReferenceConditions(subjectType: string): AXPQueryFilter[] {\n return [\n {\n name: 'subject.type',\n operator: { type: 'equal' },\n value: subjectType,\n },\n {\n name: 'subject.id',\n operator: { type: 'equal' },\n value: '{{context.eval(\"id\")}}',\n },\n ];\n}\n\n/**\n * Filters health records for an employee's linked person (`personId` on employee context).\n * Use for all person-scoped health records on employee detail so data matches My Profile.\n */\nexport function healthPersonSubjectReferenceConditions(\n personIdExpression = '{{context.eval(\"personId\")}}',\n): AXPQueryFilter[] {\n return [\n {\n name: 'subject.type',\n operator: { type: 'equal' },\n value: HEALTH_PERSON_SUBJECT_TYPE,\n },\n {\n name: 'subject.id',\n operator: { type: 'equal' },\n value: personIdExpression,\n },\n ];\n}\n\n//#endregion\n\n//#region ---- Subject lookup property ----\n\n/** Single polymorphic subject lookup (assessment-case `subjectRef.id` pattern). */\nexport function createHealthSubjectLookupProperty(\n groupId: string,\n options: { readonly?: boolean } = {},\n): AXPEntityProperty {\n const readonly = options.readonly ?? false;\n\n return {\n name: 'subject.id',\n title: '@health-core:terms.subject.title',\n groupId,\n options: readonly\n ? { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } }\n : undefined,\n schema: {\n dataType: 'string',\n readonly,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n readonly,\n entity: \"{{ context.eval('subject.type') }}\",\n valueField: 'id',\n expose: [\n { source: 'id', target: 'subject.id' },\n { source: 'title', target: 'subject.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n };\n}\n\n//#endregion\n","const config = {\n i18n: 'health-core',\n module: 'HealthCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-heart-pulse',\n },\n entities: {\n bloodType: {\n name: 'BloodType',\n title: `@${config.i18n}:blood-types.entities.blood-type.title`,\n titlePlural: `@${config.i18n}:blood-types.entities.blood-type.plural`,\n icon: 'fa-light fa-droplet',\n },\n bodyPart: {\n name: 'BodyPart',\n title: `@${config.i18n}:body-parts.entities.body-part.title`,\n titlePlural: `@${config.i18n}:body-parts.entities.body-part.plural`,\n icon: 'fa-light fa-person',\n },\n disabilityStatus: {\n name: 'DisabilityStatus',\n title: `@${config.i18n}:disability-statuses.entities.disability-status.title`,\n titlePlural: `@${config.i18n}:disability-statuses.entities.disability-status.plural`,\n icon: 'fa-light fa-wheelchair',\n },\n injuryType: {\n name: 'InjuryType',\n title: `@${config.i18n}:injury-types.entities.injury-type.title`,\n titlePlural: `@${config.i18n}:injury-types.entities.injury-type.plural`,\n icon: 'fa-light fa-bandage',\n },\n vaccinationType: {\n name: 'VaccinationType',\n title: `@${config.i18n}:vaccination-types.entities.vaccination-type.title`,\n titlePlural: `@${config.i18n}:vaccination-types.entities.vaccination-type.plural`,\n icon: 'fa-light fa-syringe',\n },\n healthConditionType: {\n name: 'HealthConditionType',\n title: `@${config.i18n}:health-condition-types.entities.health-condition-type.title`,\n titlePlural: `@${config.i18n}:health-condition-types.entities.health-condition-type.plural`,\n icon: 'fa-light fa-file-medical',\n },\n healthRestriction: {\n name: 'HealthRestriction',\n title: `@${config.i18n}:health-restrictions.entities.health-restriction.title`,\n titlePlural: `@${config.i18n}:health-restrictions.entities.health-restriction.plural`,\n icon: 'fa-light fa-ban',\n },\n healthRecordType: {\n name: 'HealthRecordType',\n title: `@${config.i18n}:health-record-types.entities.health-record-type.title`,\n titlePlural: `@${config.i18n}:health-record-types.entities.health-record-type.plural`,\n icon: 'fa-light fa-notes-medical',\n },\n healthEvent: {\n name: 'HealthEvent',\n title: `@${config.i18n}:health-events.entities.health-event.title`,\n titlePlural: `@${config.i18n}:health-events.entities.health-event.plural`,\n icon: 'fa-light fa-file-medical',\n },\n healthProfile: {\n name: 'HealthProfile',\n title: `@${config.i18n}:health-profiles.entities.health-profile.title`,\n titlePlural: `@${config.i18n}:health-profiles.entities.health-profile.plural`,\n icon: 'fa-light fa-heart-pulse',\n },\n healthCondition: {\n name: 'HealthCondition',\n title: `@${config.i18n}:health-conditions.entities.health-condition.title`,\n titlePlural: `@${config.i18n}:health-conditions.entities.health-condition.plural`,\n icon: 'fa-light fa-file-medical',\n },\n },\n queries: {\n reports: {\n getHealthEventsByType: `${config.module}:Reports:GetHealthEventsByType`,\n getWorkplaceInjuries: `${config.module}:Reports:GetWorkplaceInjuries`,\n getActiveWorkRestrictions: `${config.module}:Reports:GetActiveWorkRestrictions`,\n getFitnessForWorkStatus: `${config.module}:Reports:GetFitnessForWorkStatus`,\n getVaccinationCoverage: `${config.module}:Reports:GetVaccinationCoverage`,\n getHealthRiskDistribution: `${config.module}:Reports:GetHealthRiskDistribution`,\n getIncompleteHealthProfiles: `${config.module}:Reports:GetIncompleteHealthProfiles`,\n getIncompleteHealthProfileEmployees: `${config.module}:Reports:GetIncompleteHealthProfileEmployees`,\n },\n dashboard: {\n healthEventsTrendLine: `${config.module}:Dashboard:HealthEventsTrendLine`,\n },\n },\n} as const;\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Blood Type Model ----\n\nexport interface AXMHealthCoreBloodTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Body Part Model ----\n\nexport interface AXMHealthCoreBodyPartEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Disability Status Model ----\n\nexport interface AXMHealthCoreDisabilityStatusEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXPEntityReference } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Restriction assignment ----\n\nexport interface AXMHealthCoreHealthConditionRestrictionItem {\n restrictionId: string;\n restriction?: { id: string; title?: unknown };\n startDate?: Date | string;\n endDate?: Date | string;\n}\n\n//#endregion\n\n//#region ---- Health condition ----\n\nexport interface AXMHealthCoreHealthConditionEntityModel extends AXPEntityModel<string> {\n subject: AXPEntityReference;\n conditionTypeId: string;\n conditionType?: { id: string; title?: unknown; kind?: string };\n diagnosedDate?: Date | string;\n restrictions?: AXMHealthCoreHealthConditionRestrictionItem[];\n notes?: string;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';\nimport type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health condition type ----\n\nexport type AXMHealthCoreHealthConditionKind = 'allergy' | 'chronic';\n\nexport interface AXMHealthCoreHealthConditionTypeEntityModel extends AXPEntityModel<string> {\n title: unknown;\n kind: AXMHealthCoreHealthConditionKind;\n description?: unknown;\n suggestedRestrictionIds?: string[];\n /** Expanded from `suggestedRestrictionIds` for list/detail grids (multi-lookup join alias). */\n suggestedRestrictionsList?: Array<{ id: string; title: AXPMultiLanguageString }>;\n metaDataList?: AXMMetaDataBuilderValue;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { type AXPEntityReference, type AXPMultiLanguageString, AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health event ----\n\nexport type AXMHealthCoreHealthEventStatus =\n | AXPSystemStatusType.InProgress\n | AXPSystemStatusType.WaitingSignOff\n | AXPSystemStatusType.Completed\n | AXPSystemStatusType.Cancelled;\n\nexport interface AXMHealthCoreHealthEventEntityModel extends AXPEntityModel<string> {\n subject: AXPEntityReference;\n recordTypeId: string;\n recordType?: {\n id: string;\n title?: AXPMultiLanguageString;\n };\n occurredDate?: Date | string;\n endDate?: Date | string | null;\n provider?: string;\n facility?: string;\n notes?: string;\n employeeSignature?: string;\n employeeSignedAt?: Date | string;\n managerSignature?: string;\n managerSignedAt?: Date | string;\n statusId?: AXMHealthCoreHealthEventStatus;\n status?: { id: AXMHealthCoreHealthEventStatus; title?: string };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXPEntityReference } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health profile ----\n\nexport interface AXMHealthCoreHealthProfileEntityModel extends AXPEntityModel<string> {\n subject: AXPEntityReference;\n bloodTypeId?: string;\n bloodType?: { id: string; title?: unknown };\n disabilityStatusId?: string;\n disabilityStatus?: { id: string; title?: unknown };\n smokingStatus?: string;\n alcoholConsumption?: string;\n healthRiskLevel?: string;\n doctorName?: string;\n doctorNumber?: string;\n emergencyContactName?: string;\n emergencyContactPhone?: string;\n emergencyContactEmail?: string;\n notes?: string;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';\nimport type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health record type ----\n\n/** Workflow template binding and admin-configured default inputs for health record types. */\nexport interface AXMHealthCoreHealthRecordTypeWorkflowConfig {\n workflowDefinitionId: string;\n workflowName: string;\n defaultInput?: Record<string, unknown>;\n}\n\n/**\n * Defines workflow defaults, questionnaire, and metadata schema for health timeline records.\n */\nexport interface AXMHealthCoreHealthRecordTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n workflowConfig?: AXMHealthCoreHealthRecordTypeWorkflowConfig | null;\n icon?: string;\n metaDataList?: AXMMetaDataBuilderValue;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXPCategoryListItem, AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health restriction ----\n\nexport interface AXMHealthCoreHealthRestrictionEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n categoryIds?: string[];\n categories?: AXPCategoryListItem[];\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Injury Type Model ----\n\nexport interface AXMHealthCoreInjuryTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Vaccination Type Model ----\n\nexport interface AXMHealthCoreVaccinationTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\n\nexport * from './health-subject-form-layout.utils';\nexport * from './health-subject.utils';\nexport * from './root-config';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;AACO,MAAM,oBAAoB,GAAG;;ACD7B,MAAM,wBAAwB,GAAG;AACtC,IAAA,WAAW,EAAE;AACX,QAAA,SAAS,EAAE,kCAAkC;AAC9C,KAAA;;;ACHI,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,UAAU,EAAE,yBAAyB;AACrC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,kBAAkB,EAAE,iCAAiC;AACr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AAM,CAAC,MAAM,CAAA,kCAAA,CAAoC;AAC/E,YAAA,2BAA2B,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,oCAAA,CAAsC;AACnF,YAAA,mCAAmC,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,4CAAA,CAA8C;AACpG,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,qBAAqB,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,gCAAA,CAAkC;AAC1E,SAAA;AACF,KAAA;;;ACrFH;;ACAA;;ACAA;;ACTA;AA6BA;;AC7BA;AAsBA;;ACtBA;AAmCA;;ACnCA;AA0BA;;AC1BA;AA4BA;;AC5BA;AAgBA;;ACPA;;ACAA;;ACTA;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client-contracts.mjs","sources":["../../../../libs/modules/health-core/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/health-core/contracts/src/commands.keys.ts","../../../../libs/modules/health-core/contracts/src/menu.keys.ts","../../../../libs/modules/health-core/contracts/src/permission.keys.ts","../../../../libs/modules/health-core/contracts/src/health-subject-form-layout.utils.ts","../../../../libs/modules/health-core/contracts/src/health-subject.utils.ts","../../../../libs/modules/health-core/contracts/src/root-config.ts","../../../../libs/modules/health-core/contracts/src/manifest.ts","../../../../libs/modules/health-core/contracts/src/entities/blood-type/blood-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/body-part/body-part.types.ts","../../../../libs/modules/health-core/contracts/src/entities/disability-status/disability-status.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-condition/health-condition.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-condition-type/health-condition-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-event/health-event.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-profile/health-profile.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-record-type/health-record-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/health-restriction/health-restriction.types.ts","../../../../libs/modules/health-core/contracts/src/entities/injury-type/injury-type.types.ts","../../../../libs/modules/health-core/contracts/src/entities/vaccination-type/vaccination-type.types.ts","../../../../libs/modules/health-core/contracts/src/index.ts","../../../../libs/modules/health-core/contracts/src/acorex-platform-module-health-core-client-contracts.ts"],"sourcesContent":["/** Health catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const HEALTH_CATALOG_SCOPE = 'health-core.health';\n","export const AXMHealthCoreCommandKeys = {\n HealthEvent: {\n StartFlow: 'HealthCore.HealthEvent:StartFlow',\n },\n} as const;\n","export const AXMHealthCoreMenuKeys = {\n Root: 'health-core',\n BloodTypes: 'health-core.blood-types',\n BodyParts: 'health-core.body-parts',\n DisabilityStatuses: 'health-core.disability-statuses',\n InjuryTypes: 'health-core.injury-types',\n VaccinationTypes: 'health-core.vaccination-types',\n HealthConditionTypes: 'health-core.health-condition-types',\n HealthRestrictions: 'health-core.health-restrictions',\n HealthRecordTypes: 'health-core.health-record-types',\n HealthEvents: 'health-core.health-events',\n HealthProfiles: 'health-core.health-profiles',\n HealthConditions: 'health-core.health-conditions',\n} as const;\n","/**\n * Safety & Risk capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPSafetyRiskPermissionKeys = {\n Access: 'SafetyRisk:Permission:Access',\n MaintainSafety: 'SafetyRisk:Permission:MaintainSafety',\n MaintainRisk: 'SafetyRisk:Permission:MaintainRisk',\n MaintainHealth: 'SafetyRisk:Permission:MaintainHealth',\n MaintainAssessments: 'SafetyRisk:Permission:MaintainAssessments',\n Setup: 'SafetyRisk:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPSafetyRiskPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMHealthCorePermissionKeys = {\n HealthCore: {\n BloodType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n BodyPart: { Management: AXPSafetyRiskPermissionKeys.Setup },\n DisabilityStatus: { Management: AXPSafetyRiskPermissionKeys.Setup },\n InjuryType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n VaccinationType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthConditionType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthRestriction: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthRecordType: { Management: AXPSafetyRiskPermissionKeys.Setup },\n HealthProfile: {\n ViewOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n EditOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n View: AXPSafetyRiskPermissionKeys.MaintainHealth,\n Manage: AXPSafetyRiskPermissionKeys.MaintainHealth,\n },\n HealthCondition: {\n ViewOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n EditOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n View: AXPSafetyRiskPermissionKeys.MaintainHealth,\n Manage: AXPSafetyRiskPermissionKeys.MaintainHealth,\n },\n HealthEvent: {\n ViewOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n EditOwn: AXPSafetyRiskPermissionKeys.MaintainHealth,\n View: AXPSafetyRiskPermissionKeys.MaintainHealth,\n Manage: AXPSafetyRiskPermissionKeys.MaintainHealth,\n },\n },\n} as const;\n","//#region ---- Subject form layout helpers ----\n\n/** Subject lookup field omitted from create/update when injected from parent context. */\nexport const HEALTH_SUBJECT_PROPERTY_NAMES = ['subject.id'] as const;\n\ntype PropertyLayoutRef = { name: string; layout?: Record<string, unknown> };\n\n/** Omits subject lookup from master create/update layouts (subject is injected from context). */\nexport function omitHealthSubjectFromEditLayouts<T extends PropertyLayoutRef>(layouts: T[]): T[] {\n return layouts.filter(\n (layout) => !HEALTH_SUBJECT_PROPERTY_NAMES.includes(layout.name as (typeof HEALTH_SUBJECT_PROPERTY_NAMES)[number]),\n );\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityProperty, AXPQueryFilter } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Subject filter helpers ----\n\n/** Person subject type for health records shared between My Profile and employee detail. */\nexport const HEALTH_PERSON_SUBJECT_TYPE = 'PersonCore.Person';\n\n/** Filters child health records by polymorphic subject on a parent entity detail context. */\nexport function healthSubjectReferenceConditions(subjectType: string): AXPQueryFilter[] {\n return [\n {\n name: 'subject.type',\n operator: { type: 'equal' },\n value: subjectType,\n },\n {\n name: 'subject.id',\n operator: { type: 'equal' },\n value: '{{context.eval(\"id\")}}',\n },\n ];\n}\n\n/**\n * Filters health records for an employee's linked person (`personId` on employee context).\n * Use for all person-scoped health records on employee detail so data matches My Profile.\n */\nexport function healthPersonSubjectReferenceConditions(\n personIdExpression = '{{context.eval(\"personId\")}}',\n): AXPQueryFilter[] {\n return [\n {\n name: 'subject.type',\n operator: { type: 'equal' },\n value: HEALTH_PERSON_SUBJECT_TYPE,\n },\n {\n name: 'subject.id',\n operator: { type: 'equal' },\n value: personIdExpression,\n },\n ];\n}\n\n//#endregion\n\n//#region ---- Subject lookup property ----\n\n/** Single polymorphic subject lookup (assessment-case `subjectRef.id` pattern). */\nexport function createHealthSubjectLookupProperty(\n groupId: string,\n options: { readonly?: boolean } = {},\n): AXPEntityProperty {\n const readonly = options.readonly ?? false;\n\n return {\n name: 'subject.id',\n title: '@health-core:terms.subject.title',\n groupId,\n options: readonly\n ? { sort: { enabled: false }, filter: { advance: { enabled: false }, inline: { enabled: false } } }\n : undefined,\n schema: {\n dataType: 'string',\n readonly,\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n readonly,\n entity: \"{{ context.eval('subject.type') }}\",\n valueField: 'id',\n expose: [\n { source: 'id', target: 'subject.id' },\n { source: 'title', target: 'subject.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n };\n}\n\n//#endregion\n","const config = {\n i18n: 'health-core',\n module: 'HealthCore',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-heart-pulse',\n },\n entities: {\n bloodType: {\n name: 'BloodType',\n title: `@${config.i18n}:blood-types.entities.blood-type.title`,\n titlePlural: `@${config.i18n}:blood-types.entities.blood-type.plural`,\n icon: 'fa-light fa-droplet',\n },\n bodyPart: {\n name: 'BodyPart',\n title: `@${config.i18n}:body-parts.entities.body-part.title`,\n titlePlural: `@${config.i18n}:body-parts.entities.body-part.plural`,\n icon: 'fa-light fa-person',\n },\n disabilityStatus: {\n name: 'DisabilityStatus',\n title: `@${config.i18n}:disability-statuses.entities.disability-status.title`,\n titlePlural: `@${config.i18n}:disability-statuses.entities.disability-status.plural`,\n icon: 'fa-light fa-wheelchair',\n },\n injuryType: {\n name: 'InjuryType',\n title: `@${config.i18n}:injury-types.entities.injury-type.title`,\n titlePlural: `@${config.i18n}:injury-types.entities.injury-type.plural`,\n icon: 'fa-light fa-bandage',\n },\n vaccinationType: {\n name: 'VaccinationType',\n title: `@${config.i18n}:vaccination-types.entities.vaccination-type.title`,\n titlePlural: `@${config.i18n}:vaccination-types.entities.vaccination-type.plural`,\n icon: 'fa-light fa-syringe',\n },\n healthConditionType: {\n name: 'HealthConditionType',\n title: `@${config.i18n}:health-condition-types.entities.health-condition-type.title`,\n titlePlural: `@${config.i18n}:health-condition-types.entities.health-condition-type.plural`,\n icon: 'fa-light fa-file-medical',\n },\n healthRestriction: {\n name: 'HealthRestriction',\n title: `@${config.i18n}:health-restrictions.entities.health-restriction.title`,\n titlePlural: `@${config.i18n}:health-restrictions.entities.health-restriction.plural`,\n icon: 'fa-light fa-ban',\n },\n healthRecordType: {\n name: 'HealthRecordType',\n title: `@${config.i18n}:health-record-types.entities.health-record-type.title`,\n titlePlural: `@${config.i18n}:health-record-types.entities.health-record-type.plural`,\n icon: 'fa-light fa-notes-medical',\n },\n healthEvent: {\n name: 'HealthEvent',\n title: `@${config.i18n}:health-events.entities.health-event.title`,\n titlePlural: `@${config.i18n}:health-events.entities.health-event.plural`,\n icon: 'fa-light fa-file-medical',\n },\n healthProfile: {\n name: 'HealthProfile',\n title: `@${config.i18n}:health-profiles.entities.health-profile.title`,\n titlePlural: `@${config.i18n}:health-profiles.entities.health-profile.plural`,\n icon: 'fa-light fa-heart-pulse',\n },\n healthCondition: {\n name: 'HealthCondition',\n title: `@${config.i18n}:health-conditions.entities.health-condition.title`,\n titlePlural: `@${config.i18n}:health-conditions.entities.health-condition.plural`,\n icon: 'fa-light fa-file-medical',\n },\n },\n queries: {\n reports: {\n getHealthEventsByType: `${config.module}:Reports:GetHealthEventsByType`,\n getWorkplaceInjuries: `${config.module}:Reports:GetWorkplaceInjuries`,\n getActiveWorkRestrictions: `${config.module}:Reports:GetActiveWorkRestrictions`,\n getFitnessForWorkStatus: `${config.module}:Reports:GetFitnessForWorkStatus`,\n getVaccinationCoverage: `${config.module}:Reports:GetVaccinationCoverage`,\n getHealthRiskDistribution: `${config.module}:Reports:GetHealthRiskDistribution`,\n getIncompleteHealthProfiles: `${config.module}:Reports:GetIncompleteHealthProfiles`,\n getIncompleteHealthProfileEmployees: `${config.module}:Reports:GetIncompleteHealthProfileEmployees`,\n },\n dashboard: {\n healthEventsTrendLine: `${config.module}:Dashboard:HealthEventsTrendLine`,\n },\n },\n} as const;\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Health Core Module Manifest.\n * Defines module metadata for health-related reference data (blood type, disability status, etc.).\n */\nexport const HealthCoreManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'domain',\n domain: 'workplace-safety',\n};\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Blood Type Model ----\n\nexport interface AXMHealthCoreBloodTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Body Part Model ----\n\nexport interface AXMHealthCoreBodyPartEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Disability Status Model ----\n\nexport interface AXMHealthCoreDisabilityStatusEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXPEntityReference } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Restriction assignment ----\n\nexport interface AXMHealthCoreHealthConditionRestrictionItem {\n restrictionId: string;\n restriction?: { id: string; title?: unknown };\n startDate?: Date | string;\n endDate?: Date | string;\n}\n\n//#endregion\n\n//#region ---- Health condition ----\n\nexport interface AXMHealthCoreHealthConditionEntityModel extends AXPEntityModel<string> {\n subject: AXPEntityReference;\n conditionTypeId: string;\n conditionType?: { id: string; title?: unknown; kind?: string };\n diagnosedDate?: Date | string;\n restrictions?: AXMHealthCoreHealthConditionRestrictionItem[];\n notes?: string;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';\nimport type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health condition type ----\n\nexport type AXMHealthCoreHealthConditionKind = 'allergy' | 'chronic';\n\nexport interface AXMHealthCoreHealthConditionTypeEntityModel extends AXPEntityModel<string> {\n title: unknown;\n kind: AXMHealthCoreHealthConditionKind;\n description?: unknown;\n suggestedRestrictionIds?: string[];\n /** Expanded from `suggestedRestrictionIds` for list/detail grids (multi-lookup join alias). */\n suggestedRestrictionsList?: Array<{ id: string; title: AXPMultiLanguageString }>;\n metaDataList?: AXMMetaDataBuilderValue;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { type AXPEntityReference, type AXPMultiLanguageString, AXPSystemStatusType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health event ----\n\nexport type AXMHealthCoreHealthEventStatus =\n | AXPSystemStatusType.InProgress\n | AXPSystemStatusType.WaitingSignOff\n | AXPSystemStatusType.Completed\n | AXPSystemStatusType.Cancelled;\n\nexport interface AXMHealthCoreHealthEventEntityModel extends AXPEntityModel<string> {\n subject: AXPEntityReference;\n recordTypeId: string;\n recordType?: {\n id: string;\n title?: AXPMultiLanguageString;\n };\n occurredDate?: Date | string;\n endDate?: Date | string | null;\n provider?: string;\n facility?: string;\n notes?: string;\n employeeSignature?: string;\n employeeSignedAt?: Date | string;\n managerSignature?: string;\n managerSignedAt?: Date | string;\n statusId?: AXMHealthCoreHealthEventStatus;\n status?: { id: AXMHealthCoreHealthEventStatus; title?: string };\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXPEntityReference } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health profile ----\n\nexport interface AXMHealthCoreHealthProfileEntityModel extends AXPEntityModel<string> {\n subject: AXPEntityReference;\n bloodTypeId?: string;\n bloodType?: { id: string; title?: unknown };\n disabilityStatusId?: string;\n disabilityStatus?: { id: string; title?: unknown };\n smokingStatus?: string;\n alcoholConsumption?: string;\n healthRiskLevel?: string;\n doctorName?: string;\n doctorNumber?: string;\n emergencyContactName?: string;\n emergencyContactPhone?: string;\n emergencyContactEmail?: string;\n notes?: string;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';\nimport type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health record type ----\n\n/** Workflow template binding and admin-configured default inputs for health record types. */\nexport interface AXMHealthCoreHealthRecordTypeWorkflowConfig {\n workflowDefinitionId: string;\n workflowName: string;\n defaultInput?: Record<string, unknown>;\n}\n\n/**\n * Defines workflow defaults, questionnaire, and metadata schema for health timeline records.\n */\nexport interface AXMHealthCoreHealthRecordTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n workflowConfig?: AXMHealthCoreHealthRecordTypeWorkflowConfig | null;\n icon?: string;\n metaDataList?: AXMMetaDataBuilderValue;\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport type { AXPCategoryListItem, AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\n//#endregion\n\n//#region ---- Health restriction ----\n\nexport interface AXMHealthCoreHealthRestrictionEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString;\n categoryIds?: string[];\n categories?: AXPCategoryListItem[];\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Injury Type Model ----\n\nexport interface AXMHealthCoreInjuryTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","import { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n//#region ---- Vaccination Type Model ----\n\nexport interface AXMHealthCoreVaccinationTypeEntityModel extends AXPEntityModel<string> {\n title: AXPMultiLanguageString;\n description?: AXPMultiLanguageString | null;\n}\n\n//#endregion\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\n\nexport * from './health-subject-form-layout.utils';\nexport * from './health-subject.utils';\nexport * from './root-config';\nexport * from './manifest';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;AACO,MAAM,oBAAoB,GAAG;;ACD7B,MAAM,wBAAwB,GAAG;AACtC,IAAA,WAAW,EAAE;AACX,QAAA,SAAS,EAAE,kCAAkC;AAC9C,KAAA;;;ACHI,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,UAAU,EAAE,yBAAyB;AACrC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,kBAAkB,EAAE,iCAAiC;AACrD,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,gBAAgB,EAAE,+BAA+B;AACjD,IAAA,oBAAoB,EAAE,oCAAoC;AAC1D,IAAA,kBAAkB,EAAE,iCAAiC;AACrD,IAAA,iBAAiB,EAAE,iCAAiC;AACpD,IAAA,YAAY,EAAE,2BAA2B;AACzC,IAAA,cAAc,EAAE,6BAA6B;AAC7C,IAAA,gBAAgB,EAAE,+BAA+B;;;ACZnD;;;AAGG;AACI,MAAM,2BAA2B,GAAG;AACzC,IAAA,MAAM,EAAE,8BAA8B;AACtC,IAAA,cAAc,EAAE,sCAAsC;AACtD,IAAA,YAAY,EAAE,oCAAoC;AAClD,IAAA,cAAc,EAAE,sCAAsC;AACtD,IAAA,mBAAmB,EAAE,2CAA2C;AAChE,IAAA,KAAK,EAAE,6BAA6B;;AAGtC;;;AAGG;AACI,MAAM,2BAA2B,GAAG;AACzC,IAAA,UAAU,EAAE;AACV,QAAA,SAAS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AAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,kBAAkB;;AAG5B;;ACdA;;ACAA;;ACAA;;ACTA;AA6BA;;AC7BA;AAsBA;;ACtBA;AAmCA;;ACnCA;AA0BA;;AC1BA;AA4BA;;AC5BA;AAgBA;;ACPA;;ACAA;;ACTA;;ACAA;;AAEG;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, inject, NgModule } from '@angular/core';
|
|
3
|
-
import { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
3
|
+
import { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_CATALOG_SCOPE_DEFINITION_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';
|
|
4
4
|
import { AXP_STATUS_PROVIDERS, AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
5
5
|
import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
|
|
6
6
|
import { AXPRuntimeModule, provideCommandSetups, provideQuerySetups } from '@acorex-platform/framework-client/runtime';
|
|
7
|
-
import { HEALTH_CATALOG_SCOPE,
|
|
7
|
+
import { HEALTH_CATALOG_SCOPE, HEALTH_PERSON_SUBJECT_TYPE, RootConfig, AXMHealthCoreCommandKeys, AXPSafetyRiskPermissionKeys, AXMHealthCoreMenuKeys } from '@acorex-platform/module-health-core-client/contracts';
|
|
8
8
|
import { AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';
|
|
9
9
|
import { AXTranslationService, resolveMultiLanguageString } from '@acorex/core/translation';
|
|
10
10
|
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
@@ -41,24 +41,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
41
41
|
type: Injectable
|
|
42
42
|
}] });
|
|
43
43
|
|
|
44
|
-
//#region ---- Imports ----
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ---- Manifest Definition ----
|
|
47
|
-
/**
|
|
48
|
-
* Health Core Module Manifest.
|
|
49
|
-
* Defines module metadata for health-related reference data (blood type, disability status, etc.).
|
|
50
|
-
*/
|
|
51
|
-
const HealthCoreManifest = {
|
|
52
|
-
name: RootConfig.module.name,
|
|
53
|
-
version: '1.0.0',
|
|
54
|
-
title: RootConfig.module.title,
|
|
55
|
-
icon: RootConfig.module.icon,
|
|
56
|
-
i18n: RootConfig.config.i18n,
|
|
57
|
-
type: 'domain',
|
|
58
|
-
domain: 'workplace-safety',
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
|
|
62
44
|
//#region ---- Imports ----
|
|
63
45
|
//#endregion
|
|
64
46
|
//#region ---- Icon helpers ----
|
|
@@ -283,11 +265,6 @@ class AXMHealthCoreModule {
|
|
|
283
265
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMHealthCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
284
266
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXMHealthCoreModule, imports: [AXPRuntimeModule, AXMHealthCoreHealthEventFeatureModule] }); }
|
|
285
267
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMHealthCoreModule, providers: [
|
|
286
|
-
{
|
|
287
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
288
|
-
useValue: HealthCoreManifest,
|
|
289
|
-
multi: true,
|
|
290
|
-
},
|
|
291
268
|
{
|
|
292
269
|
provide: AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,
|
|
293
270
|
useClass: AXMHealthCoreCatalogScopeDefinitionProvider,
|
|
@@ -336,11 +313,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
336
313
|
args: [{
|
|
337
314
|
imports: [AXPRuntimeModule, AXMHealthCoreHealthEventFeatureModule],
|
|
338
315
|
providers: [
|
|
339
|
-
{
|
|
340
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
341
|
-
useValue: HealthCoreManifest,
|
|
342
|
-
multi: true,
|
|
343
|
-
},
|
|
344
316
|
{
|
|
345
317
|
provide: AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,
|
|
346
318
|
useClass: AXMHealthCoreCatalogScopeDefinitionProvider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-health-core-client.mjs","sources":["../../../../libs/modules/health-core/client/src/lib/catalog-scope-definition.provider.ts","../../../../libs/modules/health-core/client/src/lib/manifest.ts","../../../../libs/modules/health-core/client/src/lib/features/health-event/health-record-expression-evaluator-scope.provider.ts","../../../../libs/modules/health-core/client/src/lib/features/health-event/health-event-status.provider.ts","../../../../libs/modules/health-core/client/src/lib/features/health-event/health-event.module.ts","../../../../libs/modules/health-core/client/src/lib/health-core.module.ts","../../../../libs/modules/health-core/client/src/lib/menu.provider.ts","../../../../libs/modules/health-core/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/health-core/client/src/acorex-platform-module-health-core-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport type {\n AXPCatalogScopeDefinition,\n AXPCatalogScopeDefinitionProvider,\n} from '@acorex-platform/framework-client/core';\nimport { Injectable } from '@angular/core';\n\nimport { HEALTH_CATALOG_SCOPE } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst QUESTIONNAIRE = 'AssessmentManagement.Questionnaire';\nconst QUESTION_BANK_ITEM = 'AssessmentManagement.QuestionBankItem';\nconst WORKFLOW_DEFINITION = 'WorkflowManagement.WorkflowDefinition';\n\nconst HEALTH_CATALOG_TARGETS = [QUESTIONNAIRE, QUESTION_BANK_ITEM, WORKFLOW_DEFINITION] as const;\n\n//#endregion\n\n//#region ---- Provider ----\n\n@Injectable()\nexport class AXMHealthCoreCatalogScopeDefinitionProvider implements AXPCatalogScopeDefinitionProvider {\n async items(): Promise<AXPCatalogScopeDefinition[]> {\n return [\n {\n name: HEALTH_CATALOG_SCOPE,\n title: '@health-core:catalog-scopes.health.title',\n description: '@health-core:catalog-scopes.health.description',\n targets: [...HEALTH_CATALOG_TARGETS],\n icon: 'fa-light fa-heart-pulse',\n cssClass: 'danger-lighter',\n order: 11,\n },\n ];\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Health Core Module Manifest.\n * Defines module metadata for health-related reference data (blood type, disability status, etc.).\n */\nexport const HealthCoreManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'domain',\n domain: 'workplace-safety',\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPEntityAction, AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';\nimport { AXTranslationService, resolveMultiLanguageString } from '@acorex/core/translation';\n\nimport { AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { get } from 'lodash';\n\nimport { HEALTH_PERSON_SUBJECT_TYPE } from '@acorex-platform/module-health-core-client/contracts';\nimport { AXMHealthCoreCommandKeys } from '@acorex-platform/module-health-core-client/contracts';\nimport { RootConfig } from '@acorex-platform/module-health-core-client/contracts';\nimport type { AXMHealthCoreHealthRecordTypeEntityModel } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Icon helpers ----\n\nfunction healthEventMenuIconSuffix(icon?: string): string {\n const trimmed = icon?.trim();\n if (!trimmed) {\n return 'fa-circle-plus';\n }\n const rest = trimmed.replace(/^(fa-(?:duotone|solid|regular|light|thin|brands))\\s+/i, '').trim();\n return rest || 'fa-circle-plus';\n}\n\nfunction resolveSubjectTitleExpression(subjectType: string): string {\n if (subjectType === 'HumanCapitalManagement.Employee') {\n return '{{ context.eval(\"person.fullName\") || context.eval(\"employeeCode\") }}';\n }\n if (subjectType === HEALTH_PERSON_SUBJECT_TYPE) {\n return '{{ context.eval(\"fullName\") || context.eval(\"person.fullName\") || (context.eval(\"firstName\") + \" \" + context.eval(\"lastName\")) || (context.eval(\"person.firstName\") + \" \" + context.eval(\"person.lastName\")) }}';\n }\n return '{{ context.eval(\"title\", { pipes: [\"translate\"] }) || context.eval(\"id\") }}';\n}\n\nfunction resolveSubjectIdExpression(subjectType: string): string {\n if (subjectType === HEALTH_PERSON_SUBJECT_TYPE) {\n return '{{ context.eval(\"personId\") || context.eval(\"id\") }}';\n }\n return '{{ context.eval(\"id\") }}';\n}\n\n//#endregion\n\n/**\n * Expression-evaluator scope for health event guided-start dropdown items.\n */\nexport class AXMHealthCoreHealthEventExpressionEvaluatorScopeProvider\n implements AXPExpressionEvaluatorScopeProvider {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- AXPExpressionEvaluatorScopeProvider ----\n\n async provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void> {\n context.addScope(RootConfig.module.name, {\n /**\n * Loads health record types and returns toolbar child actions for guided create.\n * @param subjectType Entity key for the polymorphic subject (e.g. HumanCapitalManagement.Employee).\n */\n HealthEvents: async (subjectType: string): Promise<AXPEntityAction[]> => {\n const resolvedSubjectType = String(subjectType ?? '').trim();\n if (!resolvedSubjectType) {\n return [];\n }\n\n try {\n const locale = this.translation.getActiveLang();\n const page = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.healthRecordType.name)\n .data()\n .query({ skip: 0, take: 500 });\n const rows = (page.items ?? []) as Pick<\n AXMHealthCoreHealthRecordTypeEntityModel,\n 'id' | 'title' | 'icon' | 'workflowConfig'\n >[];\n\n const sorted = [...rows].sort((a, b) => {\n const ta = resolveMultiLanguageString(a.title as never, locale).trim() || a.id;\n const tb = resolveMultiLanguageString(b.title as never, locale).trim() || b.id;\n return ta.localeCompare(tb, locale, { sensitivity: 'base' });\n });\n\n const subjectTitleExpr = resolveSubjectTitleExpression(resolvedSubjectType);\n const subjectIdExpr = resolveSubjectIdExpression(resolvedSubjectType);\n\n return sorted.map((row) => {\n const menuTitle =\n resolveMultiLanguageString(row.title as never, locale).trim() || row.id;\n\n const workflowConfig = row.workflowConfig;\n const workflowId = workflowConfig?.workflowName?.trim();\n const defaultInput = workflowConfig?.defaultInput ?? {};\n const questionnaireId = get(defaultInput, 'questionnaireId') as string | undefined;\n const requireEmployeeSignature = get(defaultInput, 'requireEmployeeSignature') as boolean | undefined;\n const requireManagerSignature = get(defaultInput, 'requireManagerSignature') as boolean | undefined;\n\n const guidedFlowCommand =\n workflowId\n ? ({\n name: AXMHealthCoreCommandKeys.HealthEvent.StartFlow,\n options: {\n workflowId,\n input: {\n subjectType: resolvedSubjectType,\n subjectId: subjectIdExpr,\n subjectTitle: subjectTitleExpr,\n recordTypeId: row.id,\n recordTypeTitle: row.title,\n questionnaireId,\n requireEmployeeSignature,\n requireManagerSignature,\n },\n },\n } satisfies AXPEntityAction['command'])\n : undefined;\n\n const notImplementedToastCommand = {\n name: 'workflow-activity:show-toast',\n options: {\n message: '@health-core:health-events.messages.event-not-implemented',\n type: 'warning',\n },\n } satisfies AXPEntityAction['command'];\n\n return {\n name: `start-health-event-${row.id}`,\n title: menuTitle,\n icon: healthEventMenuIconSuffix(row.icon),\n color: 'default',\n command: guidedFlowCommand ?? notImplementedToastCommand,\n priority: 'primary',\n type: 'info',\n scope: AXPEntityCommandScope.TypeLevel,\n } satisfies AXPEntityAction;\n });\n } catch (error: unknown) {\n console.error(\n `${RootConfig.module.name}.HealthEvents failed:`,\n error instanceof Error ? error.message : error,\n );\n return [];\n }\n },\n });\n }\n\n //#endregion\n}\n","//#region ---- Imports ----\n\nimport { AXPStatusProvider, AXPStatusTransition, AXPSystemStatusType, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';\n\n//#endregion\n\n//#region ---- Health event status ----\n\n/** Status lifecycle for health events: In progress → Waiting sign-off → Completed (or Cancelled). */\nexport class AXMHealthCoreHealthEventStatusProvider extends AXPStatusProvider {\n readonly key = 'health-core.status.health-event';\n\n readonly statuses = [\n systemStatusToDefinition(AXPSystemStatusType.InProgress, {\n title: '@health-core:health-events.states.in-progress',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.WaitingSignOff, {\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Completed, {\n title: '@health-core:health-events.states.completed',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Cancelled, {\n title: '@health-core:health-events.states.cancelled',\n generateView: true,\n }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n {\n from: AXPSystemStatusType.InProgress,\n to: AXPSystemStatusType.WaitingSignOff,\n title: '@health-core:health-events.transitions.await-sign-off',\n },\n {\n from: AXPSystemStatusType.WaitingSignOff,\n to: AXPSystemStatusType.Completed,\n title: '@health-core:health-events.transitions.complete',\n },\n {\n from: AXPSystemStatusType.WaitingSignOff,\n to: AXPSystemStatusType.Cancelled,\n title: '@general:statuses.transitions.cancel',\n },\n {\n from: AXPSystemStatusType.InProgress,\n to: AXPSystemStatusType.Cancelled,\n title: '@general:statuses.transitions.cancel',\n },\n ];\n\n readonly defaultStatus = AXPSystemStatusType.InProgress;\n}\n\n//#endregion\n","import { AXP_STATUS_PROVIDERS } from '@acorex-platform/framework-client/common';\nimport { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { AXPRuntimeModule, provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\n\nimport { AXMHealthCoreCommandKeys } from '@acorex-platform/module-health-core-client/contracts';\nimport { AXMHealthCoreHealthEventExpressionEvaluatorScopeProvider } from './health-record-expression-evaluator-scope.provider';\nimport { AXMHealthCoreHealthEventStatusProvider } from './health-event-status.provider';\n\n@NgModule({\n imports: [AXPRuntimeModule],\n providers: [\n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMHealthCoreHealthEventStatusProvider,\n multi: true,\n },\n {\n provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,\n useClass: AXMHealthCoreHealthEventExpressionEvaluatorScopeProvider,\n multi: true,\n },\n provideCommandSetups([\n {\n key: AXMHealthCoreCommandKeys.HealthEvent.StartFlow,\n command: () =>\n import('./commands/start-health-record-flow.command').then((c) => c.StartHealthEventFlowCommand),\n },\n ]),\n ],\n})\nexport class AXMHealthCoreHealthEventFeatureModule {}\n","//#region ---- Imports ----\n\nimport { NgModule } from '@angular/core';\nimport {\n AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,\n AXP_MODULE_MANIFEST_PROVIDER,\n provideLazyProvider,\n} from '@acorex-platform/framework-client/core';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeModule, provideQuerySetups } from '@acorex-platform/framework-client/runtime';\n\nimport { AXMHealthCoreCatalogScopeDefinitionProvider } from './catalog-scope-definition.provider';\nimport { HealthCoreManifest } from './manifest';\nimport { AXMHealthCoreMenuProvider } from './menu.provider';\nimport { AXMHealthCorePermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMHealthCoreHealthEventFeatureModule } from './features/health-event/health-event.module';\n\n//#endregion\n\n//#region ---- Module ----\n\n@NgModule({\n imports: [AXPRuntimeModule, AXMHealthCoreHealthEventFeatureModule],\n providers: [\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: HealthCoreManifest,\n multi: true,\n },\n {\n provide: AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,\n useClass: AXMHealthCoreCatalogScopeDefinitionProvider,\n multi: true,\n },\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMHealthCorePermissionDefinitionProvider),\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () =>\n import('./menu.provider').then((m) => m.AXMHealthCoreMenuProvider),\n ),\n provideQuerySetups([\n {\n key: 'HealthCore:ListHealthRiskLevelOptions',\n loader: () =>\n import('./features/queries/list-health-risk-level-options.query').then(\n (c) => c.AXMListHealthRiskLevelOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListAlcoholConsumptionOptions',\n loader: () =>\n import('./features/queries/list-alcohol-consumption-options.query').then(\n (c) => c.AXMListAlcoholConsumptionOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListSmokingStatusOptions',\n loader: () =>\n import('./features/queries/list-smoking-status-options.query').then(\n (c) => c.AXMListSmokingStatusOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListAllergySeverityOptions',\n loader: () =>\n import('./features/queries/list-allergy-severity-options.query').then(\n (c) => c.AXMListAllergySeverityOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListChronicConditionStatusOptions',\n loader: () =>\n import('./features/queries/list-chronic-condition-status-options.query').then(\n (c) => c.AXMListChronicConditionStatusOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListInjuryMechanismOptions',\n loader: () =>\n import('./features/queries/list-injury-mechanism-options.query').then(\n (c) => c.AXMListInjuryMechanismOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListWorkCapacityOptions',\n loader: () =>\n import('./features/queries/list-work-capacity-options.query').then(\n (c) => c.AXMListWorkCapacityOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListPainRateOptions',\n loader: () =>\n import('./features/queries/list-pain-rate-options.query').then(\n (c) => c.AXMListPainRateOptionsQuery,\n ),\n },\n ]),\n ],\n})\nexport class AXMHealthCoreModule {}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPSafetyRiskPermissionKeys\n} from '@acorex-platform/module-health-core-client/contracts';\nimport { AXMHealthCoreMenuKeys } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMHealthCoreMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPSafetyRiskPermissionKeys;\n\n const healthMenu = context.find(AXPCommonMenuKeys.Health);\n if (!healthMenu.exists) {\n context.find(AXPCommonMenuKeys.Configuration).addItems([\n {\n name: AXPCommonMenuKeys.Health,\n priority: 8445,\n text: '@general:menus.health.title',\n icon: 'fa-light fa-heart-pulse',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.Health).addItems([\n {\n name: AXMHealthCoreMenuKeys.BloodTypes,\n text: RootConfig.entities.bloodType.titlePlural,\n icon: RootConfig.entities.bloodType.icon,\n priority: 11,\n path: this.entityService.withEntity(module.name, RootConfig.entities.bloodType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.BodyParts,\n text: RootConfig.entities.bodyPart.titlePlural,\n icon: RootConfig.entities.bodyPart.icon,\n priority: 12,\n path: this.entityService.withEntity(module.name, RootConfig.entities.bodyPart.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.DisabilityStatuses,\n text: RootConfig.entities.disabilityStatus.titlePlural,\n icon: RootConfig.entities.disabilityStatus.icon,\n priority: 14,\n path: this.entityService.withEntity(module.name, RootConfig.entities.disabilityStatus.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.InjuryTypes,\n text: RootConfig.entities.injuryType.titlePlural,\n icon: RootConfig.entities.injuryType.icon,\n priority: 15,\n path: this.entityService.withEntity(module.name, RootConfig.entities.injuryType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.VaccinationTypes,\n text: RootConfig.entities.vaccinationType.titlePlural,\n icon: RootConfig.entities.vaccinationType.icon,\n priority: 16,\n path: this.entityService.withEntity(module.name, RootConfig.entities.vaccinationType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.HealthConditionTypes,\n text: RootConfig.entities.healthConditionType.titlePlural,\n icon: RootConfig.entities.healthConditionType.icon,\n priority: 17,\n path: this.entityService.withEntity(module.name, RootConfig.entities.healthConditionType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.HealthRestrictions,\n text: RootConfig.entities.healthRestriction.titlePlural,\n icon: RootConfig.entities.healthRestriction.icon,\n priority: 18,\n path: this.entityService.withEntity(module.name, RootConfig.entities.healthRestriction.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.HealthRecordTypes,\n text: RootConfig.entities.healthRecordType.titlePlural,\n icon: RootConfig.entities.healthRecordType.icon,\n priority: 19,\n path: this.entityService.withEntity(module.name, RootConfig.entities.healthRecordType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\r\n\r\nimport {\r\n AXPPermissionDefinitionProvider,\r\n AXPPermissionDefinitionProviderContext,\r\n} from '@acorex-platform/framework-client/auth';\r\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPSafetyRiskPermissionKeys\n} from '@acorex-platform/module-health-core-client/contracts';\n\r\nimport { Injectable } from '@angular/core';\r\n\r\n//#endregion\r\n\r\n//#region ---- Permission Definition Provider ----\r\n\r\n/**\r\n * Registers health capabilities into the shared Safety & Risk group.\r\n */\r\n@Injectable()\r\nexport class AXMHealthCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\r\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\r\n const keys = AXPSafetyRiskPermissionKeys;\r\n const groups = AXPCommonPermissionGroupKeys;\r\n const P = '@common:safety-risk.permissions';\r\n const G = '@common:permission-groups';\r\n\r\n context.addGroup(groups.SafetyRisk.Root, `${G}.safety-risk.title`, `${G}.safety-risk.description`, { order: 30 });\n\n context\n .addGroup(\n groups.SafetyRisk.Health,\n `${G}.safety-risk-health.title`,\n `${G}.safety-risk-health.description`,\n { parent: groups.SafetyRisk.Root, order: 30 },\n )\n .addPermission(keys.MaintainHealth, `${P}.maintain-health.title`, `${P}.maintain-health.description`)\r\n .endPermission()\r\r\n .endGroup();\r\n }\r\n}\r\n\r\n//#endregion\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA;AAEA;AAEA,MAAM,aAAa,GAAG,oCAAoC;AAC1D,MAAM,kBAAkB,GAAG,uCAAuC;AAClE,MAAM,mBAAmB,GAAG,uCAAuC;AAEnE,MAAM,sBAAsB,GAAG,CAAC,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,CAAU;AAEhG;AAEA;MAGa,2CAA2C,CAAA;AACtD,IAAA,MAAM,KAAK,GAAA;QACT,OAAO;AACL,YAAA;AACE,gBAAA,IAAI,EAAE,o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}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-health-core-client.mjs","sources":["../../../../libs/modules/health-core/client/src/lib/catalog-scope-definition.provider.ts","../../../../libs/modules/health-core/client/src/lib/features/health-event/health-record-expression-evaluator-scope.provider.ts","../../../../libs/modules/health-core/client/src/lib/features/health-event/health-event-status.provider.ts","../../../../libs/modules/health-core/client/src/lib/features/health-event/health-event.module.ts","../../../../libs/modules/health-core/client/src/lib/health-core.module.ts","../../../../libs/modules/health-core/client/src/lib/menu.provider.ts","../../../../libs/modules/health-core/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/health-core/client/src/acorex-platform-module-health-core-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport type {\n AXPCatalogScopeDefinition,\n AXPCatalogScopeDefinitionProvider,\n} from '@acorex-platform/framework-client/core';\nimport { Injectable } from '@angular/core';\n\nimport { HEALTH_CATALOG_SCOPE } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Constants ----\n\nconst QUESTIONNAIRE = 'AssessmentManagement.Questionnaire';\nconst QUESTION_BANK_ITEM = 'AssessmentManagement.QuestionBankItem';\nconst WORKFLOW_DEFINITION = 'WorkflowManagement.WorkflowDefinition';\n\nconst HEALTH_CATALOG_TARGETS = [QUESTIONNAIRE, QUESTION_BANK_ITEM, WORKFLOW_DEFINITION] as const;\n\n//#endregion\n\n//#region ---- Provider ----\n\n@Injectable()\nexport class AXMHealthCoreCatalogScopeDefinitionProvider implements AXPCatalogScopeDefinitionProvider {\n async items(): Promise<AXPCatalogScopeDefinition[]> {\n return [\n {\n name: HEALTH_CATALOG_SCOPE,\n title: '@health-core:catalog-scopes.health.title',\n description: '@health-core:catalog-scopes.health.description',\n targets: [...HEALTH_CATALOG_TARGETS],\n icon: 'fa-light fa-heart-pulse',\n cssClass: 'danger-lighter',\n order: 11,\n },\n ];\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPEntityAction, AXPEntityCommandScope } from '@acorex-platform/framework-shared/entity';\nimport { AXTranslationService, resolveMultiLanguageString } from '@acorex/core/translation';\n\nimport { AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { get } from 'lodash';\n\nimport { HEALTH_PERSON_SUBJECT_TYPE } from '@acorex-platform/module-health-core-client/contracts';\nimport { AXMHealthCoreCommandKeys } from '@acorex-platform/module-health-core-client/contracts';\nimport { RootConfig } from '@acorex-platform/module-health-core-client/contracts';\nimport type { AXMHealthCoreHealthRecordTypeEntityModel } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Icon helpers ----\n\nfunction healthEventMenuIconSuffix(icon?: string): string {\n const trimmed = icon?.trim();\n if (!trimmed) {\n return 'fa-circle-plus';\n }\n const rest = trimmed.replace(/^(fa-(?:duotone|solid|regular|light|thin|brands))\\s+/i, '').trim();\n return rest || 'fa-circle-plus';\n}\n\nfunction resolveSubjectTitleExpression(subjectType: string): string {\n if (subjectType === 'HumanCapitalManagement.Employee') {\n return '{{ context.eval(\"person.fullName\") || context.eval(\"employeeCode\") }}';\n }\n if (subjectType === HEALTH_PERSON_SUBJECT_TYPE) {\n return '{{ context.eval(\"fullName\") || context.eval(\"person.fullName\") || (context.eval(\"firstName\") + \" \" + context.eval(\"lastName\")) || (context.eval(\"person.firstName\") + \" \" + context.eval(\"person.lastName\")) }}';\n }\n return '{{ context.eval(\"title\", { pipes: [\"translate\"] }) || context.eval(\"id\") }}';\n}\n\nfunction resolveSubjectIdExpression(subjectType: string): string {\n if (subjectType === HEALTH_PERSON_SUBJECT_TYPE) {\n return '{{ context.eval(\"personId\") || context.eval(\"id\") }}';\n }\n return '{{ context.eval(\"id\") }}';\n}\n\n//#endregion\n\n/**\n * Expression-evaluator scope for health event guided-start dropdown items.\n */\nexport class AXMHealthCoreHealthEventExpressionEvaluatorScopeProvider\n implements AXPExpressionEvaluatorScopeProvider {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly translation = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- AXPExpressionEvaluatorScopeProvider ----\n\n async provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void> {\n context.addScope(RootConfig.module.name, {\n /**\n * Loads health record types and returns toolbar child actions for guided create.\n * @param subjectType Entity key for the polymorphic subject (e.g. HumanCapitalManagement.Employee).\n */\n HealthEvents: async (subjectType: string): Promise<AXPEntityAction[]> => {\n const resolvedSubjectType = String(subjectType ?? '').trim();\n if (!resolvedSubjectType) {\n return [];\n }\n\n try {\n const locale = this.translation.getActiveLang();\n const page = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.healthRecordType.name)\n .data()\n .query({ skip: 0, take: 500 });\n const rows = (page.items ?? []) as Pick<\n AXMHealthCoreHealthRecordTypeEntityModel,\n 'id' | 'title' | 'icon' | 'workflowConfig'\n >[];\n\n const sorted = [...rows].sort((a, b) => {\n const ta = resolveMultiLanguageString(a.title as never, locale).trim() || a.id;\n const tb = resolveMultiLanguageString(b.title as never, locale).trim() || b.id;\n return ta.localeCompare(tb, locale, { sensitivity: 'base' });\n });\n\n const subjectTitleExpr = resolveSubjectTitleExpression(resolvedSubjectType);\n const subjectIdExpr = resolveSubjectIdExpression(resolvedSubjectType);\n\n return sorted.map((row) => {\n const menuTitle =\n resolveMultiLanguageString(row.title as never, locale).trim() || row.id;\n\n const workflowConfig = row.workflowConfig;\n const workflowId = workflowConfig?.workflowName?.trim();\n const defaultInput = workflowConfig?.defaultInput ?? {};\n const questionnaireId = get(defaultInput, 'questionnaireId') as string | undefined;\n const requireEmployeeSignature = get(defaultInput, 'requireEmployeeSignature') as boolean | undefined;\n const requireManagerSignature = get(defaultInput, 'requireManagerSignature') as boolean | undefined;\n\n const guidedFlowCommand =\n workflowId\n ? ({\n name: AXMHealthCoreCommandKeys.HealthEvent.StartFlow,\n options: {\n workflowId,\n input: {\n subjectType: resolvedSubjectType,\n subjectId: subjectIdExpr,\n subjectTitle: subjectTitleExpr,\n recordTypeId: row.id,\n recordTypeTitle: row.title,\n questionnaireId,\n requireEmployeeSignature,\n requireManagerSignature,\n },\n },\n } satisfies AXPEntityAction['command'])\n : undefined;\n\n const notImplementedToastCommand = {\n name: 'workflow-activity:show-toast',\n options: {\n message: '@health-core:health-events.messages.event-not-implemented',\n type: 'warning',\n },\n } satisfies AXPEntityAction['command'];\n\n return {\n name: `start-health-event-${row.id}`,\n title: menuTitle,\n icon: healthEventMenuIconSuffix(row.icon),\n color: 'default',\n command: guidedFlowCommand ?? notImplementedToastCommand,\n priority: 'primary',\n type: 'info',\n scope: AXPEntityCommandScope.TypeLevel,\n } satisfies AXPEntityAction;\n });\n } catch (error: unknown) {\n console.error(\n `${RootConfig.module.name}.HealthEvents failed:`,\n error instanceof Error ? error.message : error,\n );\n return [];\n }\n },\n });\n }\n\n //#endregion\n}\n","//#region ---- Imports ----\n\nimport { AXPStatusProvider, AXPStatusTransition, AXPSystemStatusType, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';\n\n//#endregion\n\n//#region ---- Health event status ----\n\n/** Status lifecycle for health events: In progress → Waiting sign-off → Completed (or Cancelled). */\nexport class AXMHealthCoreHealthEventStatusProvider extends AXPStatusProvider {\n readonly key = 'health-core.status.health-event';\n\n readonly statuses = [\n systemStatusToDefinition(AXPSystemStatusType.InProgress, {\n title: '@health-core:health-events.states.in-progress',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.WaitingSignOff, {\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Completed, {\n title: '@health-core:health-events.states.completed',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Cancelled, {\n title: '@health-core:health-events.states.cancelled',\n generateView: true,\n }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n {\n from: AXPSystemStatusType.InProgress,\n to: AXPSystemStatusType.WaitingSignOff,\n title: '@health-core:health-events.transitions.await-sign-off',\n },\n {\n from: AXPSystemStatusType.WaitingSignOff,\n to: AXPSystemStatusType.Completed,\n title: '@health-core:health-events.transitions.complete',\n },\n {\n from: AXPSystemStatusType.WaitingSignOff,\n to: AXPSystemStatusType.Cancelled,\n title: '@general:statuses.transitions.cancel',\n },\n {\n from: AXPSystemStatusType.InProgress,\n to: AXPSystemStatusType.Cancelled,\n title: '@general:statuses.transitions.cancel',\n },\n ];\n\n readonly defaultStatus = AXPSystemStatusType.InProgress;\n}\n\n//#endregion\n","import { AXP_STATUS_PROVIDERS } from '@acorex-platform/framework-client/common';\nimport { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { AXPRuntimeModule, provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\n\nimport { AXMHealthCoreCommandKeys } from '@acorex-platform/module-health-core-client/contracts';\nimport { AXMHealthCoreHealthEventExpressionEvaluatorScopeProvider } from './health-record-expression-evaluator-scope.provider';\nimport { AXMHealthCoreHealthEventStatusProvider } from './health-event-status.provider';\n\n@NgModule({\n imports: [AXPRuntimeModule],\n providers: [\n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMHealthCoreHealthEventStatusProvider,\n multi: true,\n },\n {\n provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,\n useClass: AXMHealthCoreHealthEventExpressionEvaluatorScopeProvider,\n multi: true,\n },\n provideCommandSetups([\n {\n key: AXMHealthCoreCommandKeys.HealthEvent.StartFlow,\n command: () =>\n import('./commands/start-health-record-flow.command').then((c) => c.StartHealthEventFlowCommand),\n },\n ]),\n ],\n})\nexport class AXMHealthCoreHealthEventFeatureModule {}\n","//#region ---- Imports ----\n\nimport { NgModule } from '@angular/core';\nimport {\n AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,\n provideLazyProvider,\n} from '@acorex-platform/framework-client/core';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeModule, provideQuerySetups } from '@acorex-platform/framework-client/runtime';\n\nimport { AXMHealthCoreCatalogScopeDefinitionProvider } from './catalog-scope-definition.provider';\nimport { AXMHealthCoreMenuProvider } from './menu.provider';\nimport { AXMHealthCorePermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMHealthCoreHealthEventFeatureModule } from './features/health-event/health-event.module';\n\n//#endregion\n\n//#region ---- Module ----\n\n@NgModule({\n imports: [AXPRuntimeModule, AXMHealthCoreHealthEventFeatureModule],\n providers: [\n {\n provide: AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,\n useClass: AXMHealthCoreCatalogScopeDefinitionProvider,\n multi: true,\n },\n provideLazyProvider(AXP_PERMISSION_DEFINITION_PROVIDER, () =>\n import('./permission-definition.provider').then((m) => m.AXMHealthCorePermissionDefinitionProvider),\n ),\n provideLazyProvider(AXP_MENU_PROVIDER, () =>\n import('./menu.provider').then((m) => m.AXMHealthCoreMenuProvider),\n ),\n provideQuerySetups([\n {\n key: 'HealthCore:ListHealthRiskLevelOptions',\n loader: () =>\n import('./features/queries/list-health-risk-level-options.query').then(\n (c) => c.AXMListHealthRiskLevelOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListAlcoholConsumptionOptions',\n loader: () =>\n import('./features/queries/list-alcohol-consumption-options.query').then(\n (c) => c.AXMListAlcoholConsumptionOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListSmokingStatusOptions',\n loader: () =>\n import('./features/queries/list-smoking-status-options.query').then(\n (c) => c.AXMListSmokingStatusOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListAllergySeverityOptions',\n loader: () =>\n import('./features/queries/list-allergy-severity-options.query').then(\n (c) => c.AXMListAllergySeverityOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListChronicConditionStatusOptions',\n loader: () =>\n import('./features/queries/list-chronic-condition-status-options.query').then(\n (c) => c.AXMListChronicConditionStatusOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListInjuryMechanismOptions',\n loader: () =>\n import('./features/queries/list-injury-mechanism-options.query').then(\n (c) => c.AXMListInjuryMechanismOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListWorkCapacityOptions',\n loader: () =>\n import('./features/queries/list-work-capacity-options.query').then(\n (c) => c.AXMListWorkCapacityOptionsQuery,\n ),\n },\n {\n key: 'HealthCore:ListPainRateOptions',\n loader: () =>\n import('./features/queries/list-pain-rate-options.query').then(\n (c) => c.AXMListPainRateOptionsQuery,\n ),\n },\n ]),\n ],\n})\nexport class AXMHealthCoreModule {}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPCommonMenuKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPSafetyRiskPermissionKeys\n} from '@acorex-platform/module-health-core-client/contracts';\nimport { AXMHealthCoreMenuKeys } from '@acorex-platform/module-health-core-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMHealthCoreMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPSafetyRiskPermissionKeys;\n\n const healthMenu = context.find(AXPCommonMenuKeys.Health);\n if (!healthMenu.exists) {\n context.find(AXPCommonMenuKeys.Configuration).addItems([\n {\n name: AXPCommonMenuKeys.Health,\n priority: 8445,\n text: '@general:menus.health.title',\n icon: 'fa-light fa-heart-pulse',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.Health).addItems([\n {\n name: AXMHealthCoreMenuKeys.BloodTypes,\n text: RootConfig.entities.bloodType.titlePlural,\n icon: RootConfig.entities.bloodType.icon,\n priority: 11,\n path: this.entityService.withEntity(module.name, RootConfig.entities.bloodType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.BodyParts,\n text: RootConfig.entities.bodyPart.titlePlural,\n icon: RootConfig.entities.bodyPart.icon,\n priority: 12,\n path: this.entityService.withEntity(module.name, RootConfig.entities.bodyPart.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.DisabilityStatuses,\n text: RootConfig.entities.disabilityStatus.titlePlural,\n icon: RootConfig.entities.disabilityStatus.icon,\n priority: 14,\n path: this.entityService.withEntity(module.name, RootConfig.entities.disabilityStatus.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.InjuryTypes,\n text: RootConfig.entities.injuryType.titlePlural,\n icon: RootConfig.entities.injuryType.icon,\n priority: 15,\n path: this.entityService.withEntity(module.name, RootConfig.entities.injuryType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.VaccinationTypes,\n text: RootConfig.entities.vaccinationType.titlePlural,\n icon: RootConfig.entities.vaccinationType.icon,\n priority: 16,\n path: this.entityService.withEntity(module.name, RootConfig.entities.vaccinationType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.HealthConditionTypes,\n text: RootConfig.entities.healthConditionType.titlePlural,\n icon: RootConfig.entities.healthConditionType.icon,\n priority: 17,\n path: this.entityService.withEntity(module.name, RootConfig.entities.healthConditionType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.HealthRestrictions,\n text: RootConfig.entities.healthRestriction.titlePlural,\n icon: RootConfig.entities.healthRestriction.icon,\n priority: 18,\n path: this.entityService.withEntity(module.name, RootConfig.entities.healthRestriction.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n {\n name: AXMHealthCoreMenuKeys.HealthRecordTypes,\n text: RootConfig.entities.healthRecordType.titlePlural,\n icon: RootConfig.entities.healthRecordType.icon,\n priority: 19,\n path: this.entityService.withEntity(module.name, RootConfig.entities.healthRecordType.name).createPath(),\n policy: { features: [RootConfig.module.name], permissions: [keys.Setup] },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\r\n\r\nimport {\r\n AXPPermissionDefinitionProvider,\r\n AXPPermissionDefinitionProviderContext,\r\n} from '@acorex-platform/framework-client/auth';\r\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPSafetyRiskPermissionKeys\n} from '@acorex-platform/module-health-core-client/contracts';\n\r\nimport { Injectable } from '@angular/core';\r\n\r\n//#endregion\r\n\r\n//#region ---- Permission Definition Provider ----\r\n\r\n/**\r\n * Registers health capabilities into the shared Safety & Risk group.\r\n */\r\n@Injectable()\r\nexport class AXMHealthCorePermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\r\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\r\n const keys = AXPSafetyRiskPermissionKeys;\r\n const groups = AXPCommonPermissionGroupKeys;\r\n const P = '@common:safety-risk.permissions';\r\n const G = '@common:permission-groups';\r\n\r\n context.addGroup(groups.SafetyRisk.Root, `${G}.safety-risk.title`, `${G}.safety-risk.description`, { order: 30 });\n\n context\n .addGroup(\n groups.SafetyRisk.Health,\n `${G}.safety-risk-health.title`,\n `${G}.safety-risk-health.description`,\n { parent: groups.SafetyRisk.Root, order: 30 },\n )\n .addPermission(keys.MaintainHealth, `${P}.maintain-health.title`, `${P}.maintain-health.description`)\r\n .endPermission()\r\r\n .endGroup();\r\n }\r\n}\r\n\r\n//#endregion\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;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AM,MAAM,GAAG,4BAA4B;QAC3C,MAAM,CAAC,GAAG,iCAAiC;QAC3C,MAAM,CAAC,GAAG,2BAA2B;QAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,EAAG,CAAC,oBAAoB,EAAE,CAAA,EAAG,CAAC,CAAA,wBAAA,CAA0B,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;QAEjH;AACG,aAAA,QAAQ,CACP,MAAM,CAAC,UAAU,CAAC,MAAM,EACxB,CAAA,EAAG,CAAC,CAAA,yBAAA,CAA2B,EAC/B,CAAA,EAAG,CAAC,CAAA,+BAAA,CAAiC,EACrC,EAAE,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;AAE9C,aAAA,aAAa,CAAC,IAAI,CAAC,cAAc,EAAE,CAAA,EAAG,CAAC,CAAA,sBAAA,CAAwB,EAAE,CAAA,EAAG,CAAC,CAAA,4BAAA,CAA8B;AACnG,aAAA,aAAa;AAEb,aAAA,QAAQ,EAAE;IACf;8GApBW,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAzC,yCAAyC,EAAA,CAAA,CAAA;;2FAAzC,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBADrD;;;;;;;;ACtBD;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-health-core-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@acorex-platform/module-data-management-client": "0.0.
|
|
6
|
+
"@acorex-platform/module-data-management-client": "0.0.46",
|
|
7
7
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
8
8
|
"@angular/core": "^21.0.0 || ^22.0.0"
|
|
9
9
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXPEntityProperty, AXPQueryFilter, AXPEntityModel } from '@acorex-platform/framework-shared/entity';
|
|
2
|
-
import { AXPMultiLanguageString, AXPEntityReference, AXPSystemStatusType, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPModuleManifest, AXPMultiLanguageString, AXPEntityReference, AXPSystemStatusType, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
|
|
3
3
|
import { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-client/contracts';
|
|
4
4
|
|
|
5
5
|
/** Health catalog scope for questionnaires, question bank items, and workflow definitions. */
|
|
@@ -207,6 +207,12 @@ declare const RootConfig: {
|
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Health Core Module Manifest.
|
|
212
|
+
* Defines module metadata for health-related reference data (blood type, disability status, etc.).
|
|
213
|
+
*/
|
|
214
|
+
declare const HealthCoreManifest: AXPModuleManifest;
|
|
215
|
+
|
|
210
216
|
interface AXMHealthCoreBloodTypeEntityModel extends AXPEntityModel<string> {
|
|
211
217
|
title: AXPMultiLanguageString;
|
|
212
218
|
description?: AXPMultiLanguageString | null;
|
|
@@ -339,5 +345,5 @@ interface AXMHealthCoreVaccinationTypeEntityModel extends AXPEntityModel<string>
|
|
|
339
345
|
description?: AXPMultiLanguageString | null;
|
|
340
346
|
}
|
|
341
347
|
|
|
342
|
-
export { AXMHealthCoreCommandKeys, AXMHealthCoreMenuKeys, AXMHealthCorePermissionKeys, AXPSafetyRiskPermissionKeys, HEALTH_CATALOG_SCOPE, HEALTH_PERSON_SUBJECT_TYPE, HEALTH_SUBJECT_PROPERTY_NAMES, RootConfig, createHealthSubjectLookupProperty, healthPersonSubjectReferenceConditions, healthSubjectReferenceConditions, omitHealthSubjectFromEditLayouts };
|
|
348
|
+
export { AXMHealthCoreCommandKeys, AXMHealthCoreMenuKeys, AXMHealthCorePermissionKeys, AXPSafetyRiskPermissionKeys, HEALTH_CATALOG_SCOPE, HEALTH_PERSON_SUBJECT_TYPE, HEALTH_SUBJECT_PROPERTY_NAMES, HealthCoreManifest, RootConfig, createHealthSubjectLookupProperty, healthPersonSubjectReferenceConditions, healthSubjectReferenceConditions, omitHealthSubjectFromEditLayouts };
|
|
343
349
|
export type { AXMHealthCoreBloodTypeEntityModel, AXMHealthCoreBodyPartEntityModel, AXMHealthCoreDisabilityStatusEntityModel, AXMHealthCoreHealthConditionEntityModel, AXMHealthCoreHealthConditionKind, AXMHealthCoreHealthConditionRestrictionItem, AXMHealthCoreHealthConditionTypeEntityModel, AXMHealthCoreHealthEventEntityModel, AXMHealthCoreHealthEventStatus, AXMHealthCoreHealthProfileEntityModel, AXMHealthCoreHealthRecordTypeEntityModel, AXMHealthCoreHealthRecordTypeWorkflowConfig, AXMHealthCoreHealthRestrictionEntityModel, AXMHealthCoreInjuryTypeEntityModel, AXMHealthCoreVaccinationTypeEntityModel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-blood-type.entity-Ctb-5t-D.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/blood-type/blood-type.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 bloodTypeFactory(): 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.bloodType.name,\n title: RootConfig.entities.bloodType.title,\n icon: RootConfig.entities.bloodType.icon,\n formats: {\n individual: RootConfig.entities.bloodType.title,\n plural: RootConfig.entities.bloodType.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:blood-types.entities.blood-type.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":[],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,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;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-health-core-client-contracts-entity-catalog-body-part.entity-DVSkMY6m.mjs","sources":["../../../../libs/modules/health-core/contracts/src/entities/body-part/body-part.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 bodyPartFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\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 const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.bodyPart.name,\n title: RootConfig.entities.bodyPart.title,\n icon: RootConfig.entities.bodyPart.icon,\n formats: {\n individual: RootConfig.entities.bodyPart.title,\n plural: RootConfig.entities.bodyPart.titlePlural,\n searchResult: { title: '{{ title }}', description: RootConfig.module.title },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],\n groups: [{ id: 'basic-info', title: '@health-core:body-parts.entities.body-part.groups.basic-info' }],\n properties: [\n { name: 'id', title: '@general:terms.common.id', groupId: 'basic-info', schema: { dataType: 'uuid', visible: false, readonly: true, unique: { enabled: true } } },\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: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox, options: { placeholder: '@general:terms.common.title' } },\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, placeholder: '@general:terms.common.description' } },\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: { sections, properties: propertyLayouts },\n update: { sections, properties: propertyLayouts },\n single: { title: '{{ title }}', sections, properties: propertyLayouts, actions: [...entityMasterRecordActions()] },\n list: { actions: [...entityMasterCrudActions()], views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })] },\n },\n },\n };\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,eAAe,GAAA;IACnC,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,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,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AAK,EAAE,CAAC,EAAE,EAAE;AAC/D,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE;AACjD,gBAAA,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC,EAAE;AAClH,gBAAA,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;AAC3H,aAAA;AACF,SAAA;KACF;AACD,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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;\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,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;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,CAAC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jD,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;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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;AAS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