@bahmni/registration-app 0.0.1-dev.316 → 0.0.1-dev.318
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-CZ7r9UXA.js} +6 -6
- package/dist/{FormsTable-H67oOCKk-SuqqsZVg.js → FormsTable-F1FaoFiu-BvsMf-oP.js} +72 -72
- package/dist/{LNWAZHJI-BIIkKWDh.js → LNWAZHJI-CQ_YpgG0.js} +2 -2
- package/dist/{MWZ6AO7Z-DYmhxXMn.js → MWZ6AO7Z-olcgEiYh.js} +2 -2
- package/dist/{Observations-BLNBreYi-DP8TEM1b.js → Observations-HyR2_B59-BrpT--QO.js} +1 -1
- package/dist/{YPM2AS64-BEk339x8.js → YPM2AS64-BuO7hNyx.js} +1 -1
- package/dist/{index-BI5WR9sd.js → index-YTRw6D2t.js} +11178 -11167
- package/dist/index.js +1 -1
- package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts +2 -2
- 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
|
@@ -5,8 +5,8 @@ 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
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
|
|
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,EAE1B,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,EACpB,gBAAgB,MAAM,KACrB,uBAAuB,EAOzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,eAAe,MAAM,EACrB,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,gBAAgB,SAU3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,kBAAkB,EAC1B,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,EACpD,mBAAmB,yBAAyB,EAC5C,sBAAsB,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,EAC/D,UAAU,gBAAgB,kBAsC3B,CAAC;AAQF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,kBAAkB,EAC1B,gBAAgB,aAAa,EAAE,EAC/B,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,KACnD,OAcF,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,QAAQ,MAAM,EAAE,GAAG,SAAS,EAC5B,eAAe,MAAM,EAAE,GAAG,SAAS,EACnC,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,KACnD,OASF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC5B,gBAAgB,aAAa,EAAE,MAAM,OAAO,MAAM,EAAE,YAEpD,CAAC;AAEJ,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAIrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAkBrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/index.tsx"],"names":[],"mappings":"AA4CA;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EA6T9B,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
|
},
|