@acorex-platform/module-health-core-client 0.0.21 → 0.0.24

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.
@@ -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-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 suggestedRestrictions?: 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-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;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,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AAC,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;AAqBA;;ACrBA;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/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 suggestedRestrictions?: 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;A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zE,YAAA,yBAAyB,EAAE,CAAA,EAAG,MAAM,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;AAqBA;;ACrBA;AAmCA;;ACnCA;AA0BA;;AC1BA;AA4BA;;AC5BA;AAgBA;;ACPA;;ACAA;;ACTA;;ACAA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-health-core-client",
3
- "version": "0.0.21",
3
+ "version": "0.0.24",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
+ "@acorex-platform/module-data-management-client": "0.0.24",
6
7
  "@angular/common": "^21.0.0",
7
8
  "@angular/core": "^21.0.0"
8
9
  },
@@ -1,6 +1,6 @@
1
1
  import { AXPEntityProperty, AXPQueryFilter, AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
2
  import { AXPMultiLanguageString, AXPEntityReference, AXPSystemStatusType, AXPCategoryListItem } from '@acorex-platform/framework-shared/core';
3
- import { AXMMetaDataBuilderValue } from '@acorex-platform/module-data-management-contracts';
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. */
6
6
  declare const HEALTH_CATALOG_SCOPE = "health-core.health";