@bahmni/registration-app 0.0.1-dev.316 → 0.0.1-dev.320
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/dist/{DocumentsTable-CGQkFmPv-9msukKZk.js → DocumentsTable-N3KZd9ZV-CFK3Uqis.js} +6 -6
- package/dist/{FormsTable-H67oOCKk-SuqqsZVg.js → FormsTable-F1FaoFiu-DZSpaXa0.js} +72 -72
- package/dist/{LNWAZHJI-BIIkKWDh.js → LNWAZHJI-Cm-agdri.js} +2 -2
- package/dist/{MWZ6AO7Z-DYmhxXMn.js → MWZ6AO7Z-COGPqmQg.js} +2 -2
- package/dist/{Observations-BLNBreYi-DP8TEM1b.js → Observations-HyR2_B59-S0Y0rSCd.js} +1 -1
- package/dist/{YPM2AS64-BEk339x8.js → YPM2AS64-BE7gjSGN.js} +1 -1
- package/dist/{index-BI5WR9sd.js → index-pNCRgyjy.js} +9882 -9859
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +1 -0
- package/dist/locales/locale_es.json +1 -0
- package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts +4 -4
- package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts.map +1 -1
- package/dist/pages/patientSearchPage/index.d.ts.map +1 -1
- package/dist/providers/registrationConfig/schema.json.d.ts +13 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"NOTIFICATION_UNABLE_TO_GET_CONTACT_DATA": "Unable to get patient contact data",
|
|
160
160
|
"NOTIFICATION_UNABLE_TO_GET_ADDITIONAL_DATA": "Unable to get patient additional data",
|
|
161
161
|
"REGISTRATION_PATIENT_SEARCH_APPOINTMENT": "Search by Appointment",
|
|
162
|
+
"REGISTRATION_ACTION_BUTTON_GENERIC_ERROR": "Something went wrong. Please try again.",
|
|
162
163
|
"SUCCESS": "Success",
|
|
163
164
|
"VIEWED_REGISTRATION_PATIENT_SEARCH_MESSAGE": "User {{username}} accessed patient search screen in registration app",
|
|
164
165
|
"YEARS_one": " year",
|
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"NOTIFICATION_UNABLE_TO_GET_CONTACT_DATA": "No se pueden obtener los datos de contacto del paciente",
|
|
160
160
|
"NOTIFICATION_UNABLE_TO_GET_ADDITIONAL_DATA": "No se pueden obtener los datos adicionales del paciente",
|
|
161
161
|
"REGISTRATION_PATIENT_SEARCH_APPOINTMENT": "Búsqueda por cita",
|
|
162
|
+
"REGISTRATION_ACTION_BUTTON_GENERIC_ERROR": "Algo salió mal. Por favor, inténtelo de nuevo.",
|
|
162
163
|
"SUCCESS": "Éxito",
|
|
163
164
|
"VIEWED_REGISTRATION_PATIENT_SEARCH_MESSAGE": "El usuario {{username}} accedió a la pantalla de búsqueda de pacientes en la aplicación de registro",
|
|
164
165
|
"YEARS_one": " año",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AppointmentSearchResult, SearchActionConfig, UserPrivilege, PatientSearchResultBundle } from '@bahmni/services';
|
|
1
|
+
import { AppointmentSearchResult, SearchActionConfig, UserPrivilege, PatientSearchResultBundle, Notification } from '@bahmni/services';
|
|
2
2
|
import { NavigateFunction } from 'react-router-dom';
|
|
3
3
|
import { PatientSearchViewModel } from './utils';
|
|
4
4
|
export declare const getAppointmentStatusClassName: (status: string) => string;
|
|
5
5
|
export declare const updateAppointmentStatusInResults: (appointmentPatientData: AppointmentSearchResult[], responseUuid: string, responseStatus: string) => AppointmentSearchResult[];
|
|
6
6
|
export declare const handleActionNavigation: (navigationUrl: string, options: Record<string, string>, navigate: NavigateFunction) => void;
|
|
7
|
-
export declare const handleActionButtonClick: (action: SearchActionConfig, row: PatientSearchViewModel<AppointmentSearchResult>, patientSearchData: PatientSearchResultBundle, setPatientSearchData: (data: PatientSearchResultBundle) => void, navigate: NavigateFunction) => Promise<void>;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const handleActionButtonClick: (action: SearchActionConfig, row: PatientSearchViewModel<AppointmentSearchResult>, patientSearchData: PatientSearchResultBundle, setPatientSearchData: (data: PatientSearchResultBundle) => void, navigate: NavigateFunction, addNotification: (notification: Omit<Notification, "id">) => void, t: (key: string) => string) => Promise<void>;
|
|
8
|
+
export declare const shouldRenderActionButton: (action: SearchActionConfig, userPrivileges: UserPrivilege[], row: PatientSearchViewModel<AppointmentSearchResult>) => boolean;
|
|
9
|
+
export declare const appointmentServiceValidator: (values: string[] | undefined, excludeValues: string[] | undefined, row: PatientSearchViewModel<AppointmentSearchResult>) => boolean;
|
|
10
10
|
export declare const privilegeValidator: (userPrivileges: UserPrivilege[]) => (rules: string[]) => boolean;
|
|
11
11
|
export declare const statusValidator: (rules: string[], row: PatientSearchViewModel<AppointmentSearchResult>) => boolean;
|
|
12
12
|
export declare const appDateValidator: (rules: string[], row: PatientSearchViewModel<AppointmentSearchResult>) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/appointmentSearchResultActionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/appointmentSearchResultActionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAGlB,aAAa,EAEb,yBAAyB,EAEzB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,6BAA6B,GAAI,QAAQ,MAAM,KAAG,MAkB9D,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,wBAAwB,uBAAuB,EAAE,EACjD,cAAc,MAAM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
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/index.tsx"],"names":[],"mappings":"AAgDA;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAgU9B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -129,7 +129,7 @@ declare const _default: {
|
|
|
129
129
|
},
|
|
130
130
|
"type": {
|
|
131
131
|
"type": "string",
|
|
132
|
-
"enum": ["changeStatus", "navigate"],
|
|
132
|
+
"enum": ["changeStatus", "navigate", "checkInAndStartVisit"],
|
|
133
133
|
"description": "Type of action to perform"
|
|
134
134
|
},
|
|
135
135
|
"enabledRule": {
|
|
@@ -143,14 +143,20 @@ declare const _default: {
|
|
|
143
143
|
"enum": [
|
|
144
144
|
"privilegeCheck",
|
|
145
145
|
"statusCheck",
|
|
146
|
-
"appDateCheck"
|
|
146
|
+
"appDateCheck",
|
|
147
|
+
"appointmentService"
|
|
147
148
|
],
|
|
148
149
|
"description": "Type of rule to evaluate"
|
|
149
150
|
},
|
|
150
151
|
"values": {
|
|
151
152
|
"type": "array",
|
|
152
153
|
"items": { "type": "string" },
|
|
153
|
-
"description": "Values to
|
|
154
|
+
"description": "Values to match for the rule. For appointmentService: UUIDs of services — action is enabled only when the appointment service UUID is in this list."
|
|
155
|
+
},
|
|
156
|
+
"excludeValues": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"items": { "type": "string" },
|
|
159
|
+
"description": "Values to exclude for the rule. Only valid for appointmentService type: UUIDs of services — action is enabled when the appointment service UUID is NOT in this list."
|
|
154
160
|
}
|
|
155
161
|
}
|
|
156
162
|
}
|
|
@@ -167,6 +173,10 @@ declare const _default: {
|
|
|
167
173
|
"navigation": {
|
|
168
174
|
"type": "string",
|
|
169
175
|
"description": "URL path to navigate to (for navigate type)"
|
|
176
|
+
},
|
|
177
|
+
"submit": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "API endpoint URL to submit to (for checkInAndStartVisit type)"
|
|
170
180
|
}
|
|
171
181
|
}
|
|
172
182
|
},
|