@careflair/common 1.0.46 → 1.0.47

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.
@@ -64,7 +64,7 @@ export declare const StateShortToFull: {
64
64
  readonly ACT: "Australian Capital Territory (ACT)";
65
65
  readonly NT: "Northern Territory (NT)";
66
66
  };
67
- export declare const SupportWorkerServiceLabels: Record<SupportWorkerService, string>;
67
+ export declare const ServiceLabels: Record<SupportWorkerService, string>;
68
68
  export declare const SUPPORT_WORKER_SERVICES_FILTERS: {
69
69
  label: string;
70
70
  options: {
@@ -85,6 +85,28 @@ export declare const PROVIDER_SERVICES_FILTERS: readonly [...{
85
85
  readonly value: SupportWorkerService.SupportedIndependentLivingSIL;
86
86
  }];
87
87
  }];
88
+ export declare const serviceTooltip: {
89
+ readonly showeringToiletingDressing: "Assistance with personal hygiene tasks, including showering, toileting, and dressing";
90
+ readonly continenceAidAssistance: "e.g., changing pads, incontinence management";
91
+ readonly pressureCare: "For bed-bound clients to prevent pressure sores";
92
+ readonly hoistLifting: "For clients requiring mechanical transfer support";
93
+ readonly overnightCare: "Active or inactive overnight support";
94
+ readonly generalEatingSupport: "e.g., cutting food, feeding assistance, mealtime supervision";
95
+ readonly pegFeeding: "Providing support for clients requiring percutaneous endoscopic gastrostomy (PEG) feeding.";
96
+ readonly medicationAssistance: "Including blister packs, PRN medications, and reminders";
97
+ readonly stomaCare: "e.g., emptying or changing colostomy/urostomy bags";
98
+ readonly basicDressingChanges: "For minor, non-infected wounds and simple adhesive dressings, as per care plan";
99
+ readonly cookingMealPrep: "Meal planning, batch cooking, and food storage. Does not include cooking for individuals with swallowing difficulties, texture-modified diets, or medically complex meal plans.";
100
+ readonly householdCleaning: "Vacuuming, dusting, laundry, bathroom cleaning, and general tidying";
101
+ readonly lightGardening: "Weeding, lawn cutting, planting, minor yard upkeep";
102
+ readonly appointmentManagement: "Reminders, calendar management, booking medical appointments, correspondence support";
103
+ readonly paperworkAdminHelp: "Form-filling, organizing personal documents, bill reminders – non-financial advice";
104
+ readonly communityAccess: "Accompanying clients to events, social groups, recreational activities, or appointments";
105
+ readonly standardVehicle: "Driving clients to appointments, social events, or community activities";
106
+ readonly wheelchairAccessibleVehicle: "For participants requiring a vehicle with a ramp or hoist";
107
+ readonly supportedIndependentLivingSIL: "24/7 support for people with disability to live independently in their own home";
108
+ };
109
+ export declare const SupportWorkerServiceLabels: Record<SupportWorkerService, string>;
88
110
  export declare const supportWorkerServiceTooltip: {
89
111
  readonly showeringToiletingDressing: "Assistance with personal hygiene tasks, including showering, toileting, and dressing";
90
112
  readonly continenceAidAssistance: "e.g., changing pads, incontinence management";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.flagCodeByLanguage = exports.daysOfWeek = exports.contractTypeDetails = exports.onboardingStepsDetails = exports.DocumentTypeLabels = exports.altCommunicationOptions = exports.altCommunicationLabels = exports.commonLabels = exports.supportWorkerServiceTooltip = exports.PROVIDER_SERVICES_FILTERS = exports.SUPPORT_WORKER_SERVICES_FILTERS = exports.SupportWorkerServiceLabels = exports.StateShortToFull = exports.StateFullToShort = exports.ProfileAllSteps = exports.educationTypeOptions = exports.providerInterestOptions = exports.providerPreferenceOptions = exports.participantInterestOptions = exports.participantPreferenceOptions = exports.complexNeedsSupportedOptions = exports.agesSupportedOptions = exports.genderOfAttendanceOptions = exports.deliveryOptions = exports.languageOptions = exports.statesOptions = void 0;
3
+ exports.flagCodeByLanguage = exports.daysOfWeek = exports.contractTypeDetails = exports.onboardingStepsDetails = exports.DocumentTypeLabels = exports.altCommunicationOptions = exports.altCommunicationLabels = exports.commonLabels = exports.supportWorkerServiceTooltip = exports.SupportWorkerServiceLabels = exports.serviceTooltip = exports.PROVIDER_SERVICES_FILTERS = exports.SUPPORT_WORKER_SERVICES_FILTERS = exports.ServiceLabels = exports.StateShortToFull = exports.StateFullToShort = exports.ProfileAllSteps = exports.educationTypeOptions = exports.providerInterestOptions = exports.providerPreferenceOptions = exports.participantInterestOptions = exports.participantPreferenceOptions = exports.complexNeedsSupportedOptions = exports.agesSupportedOptions = exports.genderOfAttendanceOptions = exports.deliveryOptions = exports.languageOptions = exports.statesOptions = void 0;
4
4
  const enums_1 = require("../enums");
5
5
  const utils_1 = require("../utils/utils");
6
6
  exports.statesOptions = (0, utils_1.enumToOptions)(enums_1.StatesEnum);
@@ -37,7 +37,7 @@ exports.StateShortToFull = {
37
37
  ACT: "Australian Capital Territory (ACT)",
38
38
  NT: "Northern Territory (NT)",
39
39
  };
40
- exports.SupportWorkerServiceLabels = {
40
+ exports.ServiceLabels = {
41
41
  [enums_1.SupportWorkerService.ShoweringToiletingDressing]: "Showering, toileting, and dressing assistance",
42
42
  [enums_1.SupportWorkerService.ContinenceAidAssistance]: "Assistance with continence aids",
43
43
  [enums_1.SupportWorkerService.PressureCare]: "Pressure care & repositioning",
@@ -69,23 +69,23 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
69
69
  label: "Personal Care & Daily Living",
70
70
  options: [
71
71
  {
72
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.ShoweringToiletingDressing],
72
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.ShoweringToiletingDressing],
73
73
  value: enums_1.SupportWorkerService.ShoweringToiletingDressing,
74
74
  },
75
75
  {
76
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.ContinenceAidAssistance],
76
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.ContinenceAidAssistance],
77
77
  value: enums_1.SupportWorkerService.ContinenceAidAssistance,
78
78
  },
79
79
  {
80
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.PressureCare],
80
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.PressureCare],
81
81
  value: enums_1.SupportWorkerService.PressureCare,
82
82
  },
83
83
  {
84
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.HoistLifting],
84
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.HoistLifting],
85
85
  value: enums_1.SupportWorkerService.HoistLifting,
86
86
  },
87
87
  {
88
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.OvernightCare],
88
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.OvernightCare],
89
89
  value: enums_1.SupportWorkerService.OvernightCare,
90
90
  },
91
91
  ],
@@ -94,7 +94,7 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
94
94
  label: "Community & Social Participation",
95
95
  options: [
96
96
  {
97
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.CommunityAccess],
97
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.CommunityAccess],
98
98
  value: enums_1.SupportWorkerService.CommunityAccess,
99
99
  },
100
100
  ],
@@ -103,11 +103,11 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
103
103
  label: "Eating & Mealtime Assistance",
104
104
  options: [
105
105
  {
106
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.GeneralEatingSupport],
106
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.GeneralEatingSupport],
107
107
  value: enums_1.SupportWorkerService.GeneralEatingSupport,
108
108
  },
109
109
  {
110
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.PegFeeding],
110
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.PegFeeding],
111
111
  value: enums_1.SupportWorkerService.PegFeeding,
112
112
  },
113
113
  ],
@@ -116,15 +116,15 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
116
116
  label: "Medical & Health-Related Assistance",
117
117
  options: [
118
118
  {
119
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.MedicationAssistance],
119
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.MedicationAssistance],
120
120
  value: enums_1.SupportWorkerService.MedicationAssistance,
121
121
  },
122
122
  {
123
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.StomaCare],
123
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.StomaCare],
124
124
  value: enums_1.SupportWorkerService.StomaCare,
125
125
  },
126
126
  {
127
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.BasicDressingChanges],
127
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.BasicDressingChanges],
128
128
  value: enums_1.SupportWorkerService.BasicDressingChanges,
129
129
  },
130
130
  ],
@@ -133,15 +133,15 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
133
133
  label: "Household & Domestic Support",
134
134
  options: [
135
135
  {
136
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.CookingMealPrep],
136
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.CookingMealPrep],
137
137
  value: enums_1.SupportWorkerService.CookingMealPrep,
138
138
  },
139
139
  {
140
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.HouseholdCleaning],
140
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.HouseholdCleaning],
141
141
  value: enums_1.SupportWorkerService.HouseholdCleaning,
142
142
  },
143
143
  {
144
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.LightGardening],
144
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.LightGardening],
145
145
  value: enums_1.SupportWorkerService.LightGardening,
146
146
  },
147
147
  ],
@@ -150,11 +150,11 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
150
150
  label: "Personal Admin & Organization",
151
151
  options: [
152
152
  {
153
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.AppointmentManagement],
153
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.AppointmentManagement],
154
154
  value: enums_1.SupportWorkerService.AppointmentManagement,
155
155
  },
156
156
  {
157
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.PaperworkAdminHelp],
157
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.PaperworkAdminHelp],
158
158
  value: enums_1.SupportWorkerService.PaperworkAdminHelp,
159
159
  },
160
160
  ],
@@ -163,11 +163,11 @@ exports.SUPPORT_WORKER_SERVICES_FILTERS = [
163
163
  label: "Transportation",
164
164
  options: [
165
165
  {
166
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.StandardVehicle],
166
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.StandardVehicle],
167
167
  value: enums_1.SupportWorkerService.StandardVehicle,
168
168
  },
169
169
  {
170
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.WheelchairAccessibleVehicle],
170
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.WheelchairAccessibleVehicle],
171
171
  value: enums_1.SupportWorkerService.WheelchairAccessibleVehicle,
172
172
  },
173
173
  ],
@@ -180,14 +180,14 @@ exports.PROVIDER_SERVICES_FILTERS = [
180
180
  label: "Provider Specific",
181
181
  options: [
182
182
  {
183
- label: exports.SupportWorkerServiceLabels[enums_1.SupportWorkerService.SupportedIndependentLivingSIL],
183
+ label: exports.ServiceLabels[enums_1.SupportWorkerService.SupportedIndependentLivingSIL],
184
184
  value: enums_1.SupportWorkerService.SupportedIndependentLivingSIL,
185
185
  },
186
186
  ],
187
187
  },
188
188
  ];
189
- // Support Worker Service Tooltips
190
- exports.supportWorkerServiceTooltip = {
189
+ // Service Tooltips (used by both support workers and providers)
190
+ exports.serviceTooltip = {
191
191
  [enums_1.SupportWorkerService.ShoweringToiletingDressing]: "Assistance with personal hygiene tasks, including showering, toileting, and dressing",
192
192
  [enums_1.SupportWorkerService.ContinenceAidAssistance]: "e.g., changing pads, incontinence management",
193
193
  [enums_1.SupportWorkerService.PressureCare]: "For bed-bound clients to prevent pressure sores",
@@ -208,6 +208,9 @@ exports.supportWorkerServiceTooltip = {
208
208
  [enums_1.SupportWorkerService.WheelchairAccessibleVehicle]: "For participants requiring a vehicle with a ramp or hoist",
209
209
  [enums_1.SupportWorkerService.SupportedIndependentLivingSIL]: "24/7 support for people with disability to live independently in their own home",
210
210
  };
211
+ // Legacy exports for backward compatibility (deprecated - use new names instead)
212
+ exports.SupportWorkerServiceLabels = exports.ServiceLabels;
213
+ exports.supportWorkerServiceTooltip = exports.serviceTooltip;
211
214
  // common labels
212
215
  exports.commonLabels = {
213
216
  GenderOfAttendanceEnum: enums_1.GenderOfAttendanceEnum,
@@ -1,3 +1,4 @@
1
+ export declare const getServiceLabel: (service: string) => string;
1
2
  export declare const getSupportWorkerServiceLabel: (service: string) => string;
2
3
  export declare const getGenderLabel: (gender: string) => string;
3
4
  export declare const getPreferencesLabel: (preference: string) => string;
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAltCommunicationLabel = exports.getPreferencesLabel = exports.getGenderLabel = exports.getSupportWorkerServiceLabel = void 0;
3
+ exports.getAltCommunicationLabel = exports.getPreferencesLabel = exports.getGenderLabel = exports.getSupportWorkerServiceLabel = exports.getServiceLabel = void 0;
4
4
  const constants_1 = require("../constants");
5
5
  const enums_1 = require("../enums");
6
- const getSupportWorkerServiceLabel = (service) => {
7
- return constants_1.SupportWorkerServiceLabels[service] || service;
6
+ const getServiceLabel = (service) => {
7
+ return constants_1.ServiceLabels[service] || service;
8
8
  };
9
- exports.getSupportWorkerServiceLabel = getSupportWorkerServiceLabel;
9
+ exports.getServiceLabel = getServiceLabel;
10
+ // Legacy export for backward compatibility (deprecated - use getServiceLabel instead)
11
+ exports.getSupportWorkerServiceLabel = exports.getServiceLabel;
10
12
  const getGenderLabel = (gender) => {
11
13
  return (enums_1.GenderOfAttendanceEnum[gender] ||
12
14
  gender);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careflair/common",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "Shared assets for CareFlair",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",