@bahmni/services 0.0.1-dev.171 → 0.0.1-dev.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/AppointmentService/_mocks_/mockData.d.ts +7 -0
  2. package/dist/AppointmentService/_mocks_/mockData.d.ts.map +1 -0
  3. package/dist/AppointmentService/appointmmetService.d.ts +44 -6
  4. package/dist/AppointmentService/appointmmetService.d.ts.map +1 -1
  5. package/dist/AppointmentService/constants.d.ts +16 -4
  6. package/dist/AppointmentService/constants.d.ts.map +1 -1
  7. package/dist/AppointmentService/index.d.ts +1 -1
  8. package/dist/AppointmentService/index.d.ts.map +1 -1
  9. package/dist/configService/__mocks__/configMocks.d.ts +131 -179
  10. package/dist/configService/__mocks__/configMocks.d.ts.map +1 -1
  11. package/dist/configService/configService.d.ts +7 -26
  12. package/dist/configService/configService.d.ts.map +1 -1
  13. package/dist/configService/constants.d.ts +0 -12
  14. package/dist/configService/constants.d.ts.map +1 -1
  15. package/dist/configService/index.d.ts +1 -2
  16. package/dist/configService/index.d.ts.map +1 -1
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3433 -3528
  20. package/dist/patientService/constants.d.ts +1 -1
  21. package/dist/patientService/constants.d.ts.map +1 -1
  22. package/dist/patientService/index.d.ts +1 -1
  23. package/dist/patientService/index.d.ts.map +1 -1
  24. package/dist/patientService/models.d.ts +31 -0
  25. package/dist/patientService/models.d.ts.map +1 -1
  26. package/dist/patientService/patientService.d.ts +1 -2
  27. package/dist/patientService/patientService.d.ts.map +1 -1
  28. package/dist/utils/utils.d.ts +14 -0
  29. package/dist/utils/utils.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/AppointmentService/models.d.ts +0 -71
  32. package/dist/AppointmentService/models.d.ts.map +0 -1
  33. package/dist/configService/models/config.d.ts +0 -35
  34. package/dist/configService/models/config.d.ts.map +0 -1
  35. package/dist/configService/models/dashboardConfig.d.ts +0 -15
  36. package/dist/configService/models/dashboardConfig.d.ts.map +0 -1
  37. package/dist/configService/models/registrationConfig.d.ts +0 -109
  38. package/dist/configService/models/registrationConfig.d.ts.map +0 -1
  39. package/dist/configService/models.d.ts +0 -5
  40. package/dist/configService/models.d.ts.map +0 -1
  41. package/dist/configService/schemas/clinicalConfig.schema.json.d.ts +0 -124
  42. package/dist/configService/schemas/dashboardConfig.schema.json.d.ts +0 -57
  43. package/dist/configService/schemas/medicationConfig.schema.json.d.ts +0 -40
  44. package/dist/configService/schemas/registrationConfig.schema.json.d.ts +0 -406
@@ -0,0 +1,7 @@
1
+ import { Appointment as FhirAppointment, Bundle, BundleEntry } from 'fhir/r4';
2
+ export declare const createEmptyBundle: () => Bundle<FhirAppointment>;
3
+ export declare const createBundleWithEntry: (entry: BundleEntry<FhirAppointment>[]) => Bundle<FhirAppointment>;
4
+ export declare const createBundleWithAppointments: (appointments: FhirAppointment[]) => Bundle<FhirAppointment>;
5
+ export declare const createMockFhirAppointment: (uuid: string, appointmentNumber: string, startDate: string, provider: string, status: string) => FhirAppointment;
6
+ export declare const createMockAppointmentBundle: (appointments: FhirAppointment[]) => Bundle<FhirAppointment>;
7
+ //# sourceMappingURL=mockData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/AppointmentService/_mocks_/mockData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,IAAI,eAAe,EAC9B,MAAM,EACN,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,iBAAiB,QAAO,MAAM,CAAC,eAAe,CAIzD,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAChC,OAAO,WAAW,CAAC,eAAe,CAAC,EAAE,KACpC,MAAM,CAAC,eAAe,CAIvB,CAAC;AAEH,eAAO,MAAM,4BAA4B,GACvC,cAAc,eAAe,EAAE,KAC9B,MAAM,CAAC,eAAe,CAKtB,CAAC;AAEJ,eAAO,MAAM,yBAAyB,GACpC,MAAM,MAAM,EACZ,mBAAmB,MAAM,EACzB,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,QAAQ,MAAM,KACb,eA+CD,CAAC;AAEH,eAAO,MAAM,2BAA2B,GACtC,cAAc,eAAe,EAAE,KAC9B,MAAM,CAAC,eAAe,CAMvB,CAAC"}
@@ -1,7 +1,45 @@
1
- import { Appointment } from './models';
2
- export declare const searchAppointmentsByAttribute: (searchParam: Record<string, string>) => Promise<Appointment[]>;
3
- export declare const getUpcomingAppointments: (patientUuid: string) => Promise<Appointment[]>;
4
- export declare const getPastAppointments: (patientUuid: string) => Promise<Appointment[]>;
5
- export declare const updateAppointmentStatus: (appointmentUuid: string, toStatus: string, onDate?: Date) => Promise<Appointment>;
6
- export declare function getAppointmentById(uuid: string): Promise<Appointment>;
1
+ import { Appointment, Bundle } from 'fhir/r4';
2
+ /**
3
+ * Search for appointments by specified attributes.
4
+ *
5
+ * @param searchParam - Search parameters for appointments
6
+ * @returns Raw FHIR Bundle containing appointments matching search criteria. Consumer is responsible for transformation to view model
7
+ * @throws Error if the API request fails
8
+ */
9
+ export declare const searchAppointmentsByAttribute: (searchParam: Record<string, string>) => Promise<Bundle<Appointment>>;
10
+ /**
11
+ * Fetch upcoming appointments for a patient.
12
+ *
13
+ * @param patientUuid - Patient UUID to fetch appointments for
14
+ * @returns Raw FHIR Bundle containing upcoming appointments. Consumer is responsible for transformation to view model
15
+ * @throws Error if the API request fails
16
+ */
17
+ export declare function getUpcomingAppointments(patientUuid: string): Promise<Bundle<Appointment>>;
18
+ /**
19
+ * Fetch past appointments for a patient.
20
+ *
21
+ * @param patientUuid - Patient UUID to fetch appointments for
22
+ * @param count - Optional limit on number of past appointments to fetch (from config)
23
+ * @returns Raw FHIR Bundle containing past appointments sorted by date (most recent first). Consumer is responsible for transformation to view model
24
+ * @throws Error if the API request fails
25
+ */
26
+ export declare function getPastAppointments(patientUuid: string, count?: number): Promise<Bundle<Appointment>>;
27
+ /**
28
+ * Update the status of an appointment.
29
+ *
30
+ * @param appointmentUuid - Appointment UUID to update
31
+ * @param toStatus - New status value
32
+ * @param onDate - Optional date for the status update
33
+ * @returns Raw FHIR Appointment resource with updated status. Consumer is responsible for transformation to view model
34
+ * @throws Error if the API request fails
35
+ */
36
+ export declare const updateAppointmentStatus: (appointmentUuid: string, toStatus: string, onDate?: Date) => Promise<unknown>;
37
+ /**
38
+ * Fetch a specific appointment by ID.
39
+ *
40
+ * @param uuid - Appointment UUID
41
+ * @returns Raw FHIR Appointment resource. Consumer is responsible for transformation to view model
42
+ * @throws Error if the API request fails
43
+ */
44
+ export declare function getAppointmentById(uuid: string): Promise<unknown>;
7
45
  //# sourceMappingURL=appointmmetService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appointmmetService.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/appointmmetService.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,6BAA6B,GACxC,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAClC,OAAO,CAAC,WAAW,EAAE,CAMvB,CAAC;AAyEF,eAAO,MAAM,uBAAuB,GAClC,aAAa,MAAM,KAClB,OAAO,CAAC,WAAW,EAAE,CAKvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,KAClB,OAAO,CAAC,WAAW,EAAE,CAKvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,MAAM,EACvB,UAAU,MAAM,EAChB,SAAS,IAAI,KACZ,OAAO,CAAC,WAAW,CAMrB,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAE3E"}
1
+ {"version":3,"file":"appointmmetService.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/appointmmetService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAUnD;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAClC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAE7B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAE9B;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAI9B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,MAAM,EACvB,UAAU,MAAM,EAChB,SAAS,IAAI,qBAMd,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,oBAEpD"}
@@ -1,9 +1,21 @@
1
+ export declare const APPOINTMENT_STATUSES: {
2
+ readonly PROPOSED: "proposed";
3
+ readonly PENDING: "pending";
4
+ readonly BOOKED: "booked";
5
+ readonly ARRIVED: "arrived";
6
+ readonly FULFILLED: "fulfilled";
7
+ readonly CANCELLED: "cancelled";
8
+ readonly NOSHOW: "noshow";
9
+ readonly CHECKED_IN: "checked-in";
10
+ readonly WAITLIST: "waitlist";
11
+ readonly ENTERED_IN_ERROR: "entered-in-error";
12
+ };
1
13
  export declare const APPOINTMENTS_SEARCH_URL: string;
2
14
  export declare const APPOINTMENTS_URL: string;
3
- export declare const UPCOMING_APPOINTMENTS_SQL_QUERY = "bahmni.sqlGet.upComingAppointments";
4
- export declare const PAST_APPOINTMENTS_SQL_QUERY = "bahmni.sqlGet.pastAppointments";
15
+ export declare const APPOINTMENT_IDENTIFIER_SYSTEM = "http://fhir.bahmni.org/code-system/appointments";
5
16
  export declare const getAppointmentByIdUrl: (uuid: string) => string;
6
- export declare const getUpcomingAppointmentsUrl: (patientUuid: string) => string;
7
- export declare const getPastAppointmentsUrl: (patientUuid: string) => string;
17
+ export declare const getAppointmentsUrl: (patientUUID: string, type: "upcoming" | "past", count?: number) => string;
18
+ export declare const UPCOMING_APPOINTMENTS_URL: (patientUUID: string) => string;
19
+ export declare const PAST_APPOINTMENTS_URL: (patientUUID: string, count?: number) => string;
8
20
  export declare const updateAppointmentStatusUrl: (appointmentUuid: string) => string;
9
21
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAChF,eAAO,MAAM,gBAAgB,QAAoC,CAAC;AAElE,eAAO,MAAM,+BAA+B,uCACN,CAAC;AACvC,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAG5E,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,MACtB,CAAC;AAEhC,eAAO,MAAM,0BAA0B,GAAI,aAAa,MAAM,KAAG,MAC2B,CAAC;AAE7F,eAAO,MAAM,sBAAsB,GAAI,aAAa,MAAM,KAAG,MAC2B,CAAC;AAEzF,eAAO,MAAM,0BAA0B,GAAI,iBAAiB,MAAM,KAAG,MACb,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAWvB,CAAC;AAEX,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAChF,eAAO,MAAM,gBAAgB,QAAoC,CAAC;AAGlE,eAAO,MAAM,6BAA6B,oDACS,CAAC;AAEpD,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,MACtB,CAAC;AAEhC,eAAO,MAAM,kBAAkB,GAC7B,aAAa,MAAM,EACnB,MAAM,UAAU,GAAG,MAAM,EACzB,QAAQ,MAAM,KACb,MAgBF,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,aAAa,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,aAAa,MAAM,EAAE,QAAQ,MAAM,WAExE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,iBAAiB,MAAM,KAAG,MACb,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { searchAppointmentsByAttribute, updateAppointmentStatus, getAppointmentById, getUpcomingAppointments, getPastAppointments, } from './appointmmetService';
2
- export { type Appointment, type AppointmentSearchResult, type Reason, } from './models';
2
+ export { APPOINTMENT_STATUSES, APPOINTMENT_IDENTIFIER_SYSTEM, } from './constants';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,MAAM,GACZ,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,aAAa,CAAC"}
@@ -1,196 +1,148 @@
1
- import { DashboardConfig } from '../models';
2
- export declare const validFullClinicalConfig: {
3
- patientInformation: {
4
- displayPatientIdentifiers: boolean;
5
- showPatientPhoto: boolean;
6
- additionalAttributes: string[];
7
- };
8
- contextInformation: {
9
- program: {
10
- fields: string[];
1
+ export declare const mockVitalSignsSchema: {
2
+ $schema: string;
3
+ title: string;
4
+ description: string;
5
+ type: string;
6
+ required: string[];
7
+ additionalProperties: boolean;
8
+ properties: {
9
+ vitalSigns: {
10
+ type: string;
11
+ description: string;
12
+ minItems: number;
13
+ items: {
14
+ type: string;
15
+ required: string[];
16
+ additionalProperties: boolean;
17
+ properties: {
18
+ name: {
19
+ type: string;
20
+ description: string;
21
+ minLength: number;
22
+ };
23
+ conceptUuid: {
24
+ type: string;
25
+ description: string;
26
+ pattern: string;
27
+ };
28
+ unit: {
29
+ type: string;
30
+ description: string;
31
+ minLength: number;
32
+ };
33
+ dataType: {
34
+ type: string;
35
+ description: string;
36
+ enum: string[];
37
+ };
38
+ normalRange: {
39
+ type: string;
40
+ description: string;
41
+ additionalProperties: boolean;
42
+ properties: {
43
+ min: {
44
+ type: string;
45
+ description: string;
46
+ };
47
+ max: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ };
52
+ };
53
+ mandatory: {
54
+ type: string;
55
+ description: string;
56
+ };
57
+ };
58
+ };
11
59
  };
12
- };
13
- actions: {
14
- name: string;
15
- url: string;
16
- icon: string;
17
- requiredPrivilege: string;
18
- }[];
19
- dashboards: ({
20
- name: string;
21
- url: string;
22
- requiredPrivileges: string[];
23
- icon: string;
24
- default: boolean;
25
- } | {
26
- name: string;
27
- url: string;
28
- requiredPrivileges: string[];
29
- icon: string;
30
- default?: undefined;
31
- })[];
32
- consultationPad: {
33
- allergyConceptMap: {
34
- medicationAllergenUuid: string;
35
- foodAllergenUuid: string;
36
- environmentalAllergenUuid: string;
37
- allergyReactionUuid: string;
60
+ captureFrequency: {
61
+ type: string;
62
+ description: string;
63
+ required: string[];
64
+ additionalProperties: boolean;
65
+ properties: {
66
+ defaultInterval: {
67
+ type: string;
68
+ description: string;
69
+ minimum: number;
70
+ };
71
+ unit: {
72
+ type: string;
73
+ description: string;
74
+ enum: string[];
75
+ };
76
+ allowCustom: {
77
+ type: string;
78
+ description: string;
79
+ };
80
+ };
38
81
  };
39
- };
40
- };
41
- export declare const minimalClinicalConfig: {
42
- patientInformation: {};
43
- actions: never[];
44
- dashboards: {
45
- name: string;
46
- url: string;
47
- requiredPrivileges: string[];
48
- }[];
49
- consultationPad: {
50
- allergyConceptMap: {
51
- medicationAllergenUuid: string;
52
- foodAllergenUuid: string;
53
- environmentalAllergenUuid: string;
54
- allergyReactionUuid: string;
82
+ alertThresholds: {
83
+ type: string;
84
+ description: string;
85
+ required: string[];
86
+ additionalProperties: boolean;
87
+ properties: {
88
+ enabled: {
89
+ type: string;
90
+ description: string;
91
+ };
92
+ notificationMethod: {
93
+ type: string;
94
+ description: string;
95
+ items: {
96
+ type: string;
97
+ enum: string[];
98
+ };
99
+ };
100
+ };
55
101
  };
56
102
  };
57
103
  };
58
- export declare const mixedClinicalConfig: {
59
- patientInformation: {
60
- displayPatientIdentifiers: boolean;
61
- };
62
- actions: {
104
+ export declare const mockValidVitalSignsConfig: {
105
+ vitalSigns: {
63
106
  name: string;
64
- url: string;
65
- requiredPrivilege: string;
66
- }[];
67
- dashboards: ({
68
- name: string;
69
- url: string;
70
- requiredPrivileges: string[];
71
- icon?: undefined;
72
- default?: undefined;
73
- } | {
74
- name: string;
75
- url: string;
76
- requiredPrivileges: string[];
77
- icon: string;
78
- default: boolean;
79
- })[];
80
- consultationPad: {
81
- allergyConceptMap: {
82
- medicationAllergenUuid: string;
83
- foodAllergenUuid: string;
84
- environmentalAllergenUuid: string;
85
- allergyReactionUuid: string;
107
+ conceptUuid: string;
108
+ unit: string;
109
+ dataType: string;
110
+ normalRange: {
111
+ min: number;
112
+ max: number;
86
113
  };
87
- };
88
- };
89
- export declare const invalidClinicalConfig: {
90
- patientInformation: {};
91
- otherProperty: string;
92
- };
93
- export declare const emptyResponse: null;
94
- export declare const malformedJsonResponse = "{invalid-json}";
95
- export declare const largeConfig: {
96
- patientInformation: {
97
- displayPatientIdentifiers: boolean;
98
- showPatientPhoto: boolean;
99
- additionalAttributes: string[];
100
- };
101
- actions: {
102
- name: string;
103
- url: string;
104
- icon: string;
105
- requiredPrivilege: string;
114
+ mandatory: boolean;
106
115
  }[];
107
- dashboards: {
108
- name: string;
109
- url: string;
110
- requiredPrivileges: string[];
111
- icon: string;
112
- default: boolean;
113
- }[];
114
- consultationPad: {
115
- allergyConceptMap: {
116
- medicationAllergenUuid: string;
117
- foodAllergenUuid: string;
118
- environmentalAllergenUuid: string;
119
- allergyReactionUuid: string;
120
- };
116
+ captureFrequency: {
117
+ defaultInterval: number;
118
+ unit: string;
119
+ allowCustom: boolean;
121
120
  };
122
- };
123
- export declare const allOptionalFieldsConfig: {
124
- patientInformation: {
125
- displayPatientIdentifiers: boolean;
126
- showPatientPhoto: boolean;
127
- additionalAttributes: string[];
128
- customSections: {
129
- name: string;
130
- attributes: string[];
131
- }[];
121
+ alertThresholds: {
122
+ enabled: boolean;
123
+ notificationMethod: string[];
132
124
  };
133
- actions: {
134
- name: string;
135
- url: string;
136
- icon: string;
137
- requiredPrivilege: string;
138
- order: number;
139
- type: string;
140
- additionalParams: {
141
- color: string;
142
- size: string;
143
- showInHeader: boolean;
144
- };
145
- }[];
146
- dashboards: {
125
+ };
126
+ export declare const mockInvalidVitalSignsConfig: {
127
+ vitalSigns: {
147
128
  name: string;
148
- url: string;
149
- requiredPrivileges: string[];
150
- icon: string;
151
- default: boolean;
152
- order: number;
153
- displayName: string;
154
- description: string;
155
- config: {
156
- refreshInterval: number;
157
- layout: string;
158
- maxItems: number;
129
+ conceptUuid: string;
130
+ unit: string;
131
+ dataType: string;
132
+ normalRange: {
133
+ min: number;
134
+ max: number;
159
135
  };
136
+ extraField: string;
160
137
  }[];
161
- consultationPad: {
162
- allergyConceptMap: {
163
- medicationAllergenUuid: string;
164
- foodAllergenUuid: string;
165
- environmentalAllergenUuid: string;
166
- allergyReactionUuid: string;
167
- };
138
+ captureFrequency: {
139
+ defaultInterval: number;
140
+ unit: string;
168
141
  };
169
- };
170
- export declare const validDashboardConfig: DashboardConfig;
171
- export declare const validRegistrationConfig: {
172
- patientSearch: {
173
- customAttributes: {
174
- translationKey: string;
175
- fields: string[];
176
- columnTranslationKeys: string[];
177
- type: string;
178
- }[];
142
+ alertThresholds: {
143
+ enabled: string;
144
+ notificationMethod: string[];
179
145
  };
180
- };
181
- export declare const invalidDashboardConfig: {
182
- sections: ({
183
- id: string;
184
- icon: string;
185
- translationKey: string;
186
- controls: never[];
187
- name?: undefined;
188
- } | {
189
- id: string;
190
- name: string;
191
- icon: string;
192
- controls: never[];
193
- translationKey?: undefined;
194
- })[];
146
+ unexpectedProperty: string;
195
147
  };
196
148
  //# sourceMappingURL=configMocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configMocks.d.ts","sourceRoot":"","sources":["../../../src/configService/__mocks__/configMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;CAkBjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC/B,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;CAMjC,CAAC;AAEF,eAAO,MAAM,aAAa,MAAO,CAAC;AAElC,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAGtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDnC,CAAC;AA0BF,eAAO,MAAM,oBAAoB,EAAE,eAelC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;CAwCnC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;CAelC,CAAC"}
1
+ {"version":3,"file":"configMocks.d.ts","sourceRoot":"","sources":["../../../src/configService/__mocks__/configMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGhC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CA6CrC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;CAuBvC,CAAC"}
@@ -1,31 +1,12 @@
1
- import { ClinicalConfig, DashboardConfig, MedicationJSONConfig, RegistrationConfig } from './models';
2
1
  /**
3
- * Fetches and validates clinical app configuration from the server
2
+ * Fetches and validates configuration from a URL against a JSON schema.
4
3
  *
5
- * @returns Validated configuration object or null if invalid/error
6
- * @throws Error if fetch fails or validation fails
7
- */
8
- export declare const getClinicalConfig: <T extends ClinicalConfig>() => Promise<T | null>;
9
- /**
10
- * Fetches and validates dashboard configuration from the server
11
- *
12
- * @param dashboardURL - URL path to fetch the dashboard configuration
13
- * @returns Validated configuration object or null if invalid/error
14
- * @throws Error if fetch fails or validation fails
15
- */
16
- export declare const getDashboardConfig: <T extends DashboardConfig>(dashboardURL: string) => Promise<T | null>;
17
- /**
18
- * Fetches and validates medication configuration from the server
19
- *
20
- * @returns Validated medication configuration object or null if invalid/error
21
- * @throws Error if fetch fails or validation fails
22
- */
23
- export declare const getMedicationConfig: () => Promise<MedicationJSONConfig | null>;
24
- /**
25
- * Fetches and validates registration configuration from the server
4
+ * @param configPath - URL path to fetch the configuration
5
+ * @param configSchema - JSON schema for validation
6
+ * @returns Validated configuration object
26
7
  *
27
- * @returns Validated registration configuration object or null if invalid/error
28
- * @throws Error if fetch fails or validation fails
8
+ * @example
9
+ * const config = await getConfig<MyConfig>(url, schema);
29
10
  */
30
- export declare const getRegistrationConfig: () => Promise<RegistrationConfig | null>;
11
+ export declare const getConfig: <T>(configPath: string, configSchema: Record<string, unknown>) => Promise<T>;
31
12
  //# sourceMappingURL=configService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configService.d.ts","sourceRoot":"","sources":["../../src/configService/configService.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAMlB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,CAAC,SAAS,cAAc,OACrB,OAAO,CAAC,CAAC,GAAG,IAAI,CAEpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAU,CAAC,SAAS,eAAe,EAChE,cAAc,MAAM,KACnB,OAAO,CAAC,CAAC,GAAG,IAAI,CAmBlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,QACpB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAK5C,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,QACtB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAK1C,CAAC"}
1
+ {"version":3,"file":"configService.d.ts","sourceRoot":"","sources":["../../src/configService/configService.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,GAAU,CAAC,EAC/B,YAAY,MAAM,EAClB,cAAc,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACpC,OAAO,CAAC,CAAC,CAYX,CAAC"}
@@ -1,10 +1,3 @@
1
- export declare const CLINICAL_V2_CONFIG_BASE_URL = "/bahmni_config/openmrs/apps/clinical/v2";
2
- export declare const REGISTRATION_CONFIG_BASE_URL = "/bahmni_config/openmrs/apps/registration/v2";
3
- export declare const CONFIG_TRANSLATIONS_URL_TEMPLATE: (lang: string) => string;
4
- export declare const CLINICAL_CONFIG_URL: string;
5
- export declare const REGISTRATION_CONFIG_URL: string;
6
- export declare const MEDICATIONS_CONFIG_URL: string;
7
- export declare const DASHBOARD_CONFIG_URL: (dashboardURL: string) => string;
8
1
  /**
9
2
  * Configuration-related error messages
10
3
  * Used for consistent error handling across the application
@@ -14,9 +7,4 @@ export declare const ERROR_MESSAGES: {
14
7
  VALIDATION_FAILED: string;
15
8
  SCHEMA_VALIDATION_FAILED: string;
16
9
  };
17
- export declare const ERROR_TITLES: {
18
- CONFIG_ERROR: string;
19
- VALIDATION_ERROR: string;
20
- DASHBOARD_ERROR: string;
21
- };
22
10
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/configService/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,4CACG,CAAC;AAE5C,eAAO,MAAM,4BAA4B,gDACM,CAAC;AAEhD,eAAO,MAAM,gCAAgC,GAAI,MAAM,MAAM,WACD,CAAC;AAC7D,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,uBAAuB,QACQ,CAAC;AAC7C,eAAO,MAAM,sBAAsB,QACe,CAAC;AACnD,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,WACI,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/configService/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;CAI1B,CAAC"}
@@ -1,3 +1,2 @@
1
- export { getClinicalConfig, getDashboardConfig, getMedicationConfig, getRegistrationConfig, } from './configService';
2
- export { type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type ControlConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type AppExtensionConfig, type ExtensionPoint, } from './models';
1
+ export { getConfig } from './configService';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { get, post, put, patch, del } from './api';
2
2
  export { initAppI18n, useTranslation, normalizeTranslationKey, getUserPreferredLocale, } from './i18n';
3
3
  export { useCamera } from './cameraService';
4
- export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getOrderedAddressHierarchyLevels, getPatientImageAsDataUrl, getPatientProfile, getPersonAttributeTypes, getRelationshipTypes, type FormattedPatientData, type PatientSearchResult, type PatientSearchResultBundle, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './patientService';
4
+ export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getOrderedAddressHierarchyLevels, getPatientImageAsDataUrl, getPatientProfile, getPersonAttributeTypes, getRelationshipTypes, type FormattedPatientData, type PatientSearchResult, type PatientSearchResultBundle, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, type PatientSearchField, type AppointmentSearchField, type ExpectedFieldConfig, type SearchActionConfig, AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './patientService';
5
5
  export { getVisitTypes, checkIfActiveVisitExists, createVisitForPatient, getActiveVisitByPatient, type VisitType, type VisitTypes, type VisitData, type ActiveVisit, } from './visitService';
6
6
  export { searchAppointmentsByAttribute, updateAppointmentStatus, getAppointmentById, getUpcomingAppointments, getPastAppointments, } from './AppointmentService/appointmmetService';
7
- export { type Appointment, type AppointmentSearchResult, type Patient, type AppointmentService, type Location, type Reason, } from './AppointmentService/models';
7
+ export { APPOINTMENT_STATUSES, APPOINTMENT_IDENTIFIER_SYSTEM, } from './AppointmentService/constants';
8
8
  export { getFormattedError } from './errorHandling';
9
9
  export { capitalize, generateId, getCookieByName, isStringEmpty, getPriorityByOrder, groupByDate, filterReplacementEntries, refreshQueries, parseQueryParams, formatUrl, getValueType, camelToScreamingSnakeCase, convertToSentenceCase, } from './utils';
10
10
  export { type FormatDateResult, calculateAge, formatDateTime, formatDate, formatDateDistance, calculateOnsetDate, sortByDate, DATE_FORMAT, DATE_PICKER_INPUT_FORMAT, DATE_TIME_FORMAT, ISO_DATE_FORMAT, FULL_MONTH_DATE_FORMAT, REGISTRATION_DATE_FORMAT, getTodayDate, calculateAgeinYearsAndMonths, formatDateAndTime, DURATION_UNIT_TO_DAYS, calculateEndDate, doDateRangesOverlap, } from './date';
@@ -18,7 +18,7 @@ export { getPatientRadiologyInvestigations, getPatientRadiologyInvestigationBund
18
18
  export { getLabInvestigationsBundle } from './labInvestigationService';
19
19
  export { getDiagnosticReports, getDiagnosticReportBundle, PROCESSED_REPORT_STATUSES, PENDING_REPORT_STATUSES, updateDiagnosticReportBundle, } from './diagnosticReportService';
20
20
  export { getFlattenedInvestigations, getOrderTypes, getCategoryUuidFromOrderTypes, getOrderTypeNames, getExistingServiceRequestsForAllCategories, type ExistingServiceRequest, type FlattenedInvestigations, type OrderType, type OrderTypeResponse, ORDER_TYPE_QUERY_KEY, } from './investigationService';
21
- export { getClinicalConfig, getDashboardConfig, getMedicationConfig, getRegistrationConfig, type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type ControlConfig, type AppExtensionConfig, type ExtensionPoint, } from './configService';
21
+ export { getConfig } from './configService';
22
22
  export { getCurrentUser, getUserLoginLocation, type User } from './userService';
23
23
  export { USER_PINNED_PREFERENCE_URL } from './observationFormsService/constants';
24
24
  export { getPatientObservationsBundle, getPatientObservationsWithEncounterBundle, getPatientObservations, } from './observationService';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"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