@bahmni/widgets 0.0.1-dev.368 → 0.0.1-dev.369

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 (52) hide show
  1. package/dist/{DocumentsTable-ynSAezHt.js → DocumentsTable-C3JJ1xpu.js} +21 -21
  2. package/dist/{FormsTable-TU36luHL.js → FormsTable-0SOxqm3W.js} +23 -23
  3. package/dist/{Observations-C-w2rdNj.js → Observations-BdM5fpej.js} +10 -10
  4. package/dist/{index-BSeVwI6Q.js → index-DmCVL-yu.js} +13079 -13037
  5. package/dist/index.css +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +14 -14
  9. package/dist/search/models.d.ts +2 -1
  10. package/dist/search/models.d.ts.map +1 -1
  11. package/dist/search/searchPatient/PatientSearchResults.d.ts.map +1 -0
  12. package/dist/search/searchPatient/SearchPatient.d.ts +4 -0
  13. package/dist/search/searchPatient/SearchPatient.d.ts.map +1 -0
  14. package/dist/search/searchPatient/SearchPatientInput.d.ts.map +1 -0
  15. package/dist/search/searchPatient/SearchStrategy.interface.d.ts.map +1 -0
  16. package/dist/search/searchPatient/__mocks__/mocks.d.ts +10 -0
  17. package/dist/search/searchPatient/__mocks__/mocks.d.ts.map +1 -0
  18. package/dist/search/searchPatient/appointmentSearchResultActionHandler.d.ts.map +1 -0
  19. package/dist/search/searchPatient/index.d.ts.map +1 -0
  20. package/dist/search/searchPatient/models.d.ts +7 -0
  21. package/dist/search/searchPatient/models.d.ts.map +1 -0
  22. package/dist/search/searchPatient/schema.json.d.ts +188 -0
  23. package/dist/search/searchPatient/strategies/AppointmentSearchStrategy.d.ts.map +1 -0
  24. package/dist/search/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +1 -0
  25. package/dist/search/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +1 -0
  26. package/dist/search/searchPatient/strategies/SearchStrategyRegistry.d.ts.map +1 -0
  27. package/dist/search/searchPatient/utils.d.ts.map +1 -0
  28. package/package.json +1 -1
  29. package/dist/searchPatient/PatientSearchResults.d.ts.map +0 -1
  30. package/dist/searchPatient/SearchPatient.d.ts +0 -13
  31. package/dist/searchPatient/SearchPatient.d.ts.map +0 -1
  32. package/dist/searchPatient/SearchPatientInput.d.ts.map +0 -1
  33. package/dist/searchPatient/SearchStrategy.interface.d.ts.map +0 -1
  34. package/dist/searchPatient/__mocks__/mocks.d.ts +0 -25
  35. package/dist/searchPatient/__mocks__/mocks.d.ts.map +0 -1
  36. package/dist/searchPatient/appointmentSearchResultActionHandler.d.ts.map +0 -1
  37. package/dist/searchPatient/index.d.ts.map +0 -1
  38. package/dist/searchPatient/strategies/AppointmentSearchStrategy.d.ts.map +0 -1
  39. package/dist/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +0 -1
  40. package/dist/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +0 -1
  41. package/dist/searchPatient/strategies/SearchStrategyRegistry.d.ts.map +0 -1
  42. package/dist/searchPatient/utils.d.ts.map +0 -1
  43. /package/dist/{searchPatient → search/searchPatient}/PatientSearchResults.d.ts +0 -0
  44. /package/dist/{searchPatient → search/searchPatient}/SearchPatientInput.d.ts +0 -0
  45. /package/dist/{searchPatient → search/searchPatient}/SearchStrategy.interface.d.ts +0 -0
  46. /package/dist/{searchPatient → search/searchPatient}/appointmentSearchResultActionHandler.d.ts +0 -0
  47. /package/dist/{searchPatient → search/searchPatient}/index.d.ts +0 -0
  48. /package/dist/{searchPatient → search/searchPatient}/strategies/AppointmentSearchStrategy.d.ts +0 -0
  49. /package/dist/{searchPatient → search/searchPatient}/strategies/AttributeSearchStrategy.d.ts +0 -0
  50. /package/dist/{searchPatient → search/searchPatient}/strategies/NameOrIdSearchStrategy.d.ts +0 -0
  51. /package/dist/{searchPatient → search/searchPatient}/strategies/SearchStrategyRegistry.d.ts +0 -0
  52. /package/dist/{searchPatient → search/searchPatient}/utils.d.ts +0 -0
@@ -0,0 +1,188 @@
1
+ declare const _default: {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Search Patient Widget Config Schema",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "patientDetailUrl": {
8
+ "type": "string",
9
+ "description": "URL template for navigating to a patient detail page. Use {{patientUuid}} as a placeholder."
10
+ },
11
+ "customAttributes": {
12
+ "type": "array",
13
+ "description": "Array of available search fields",
14
+ "items": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "translationKey": {
19
+ "type": "string",
20
+ "description": "Translation key for the dropdown label"
21
+ },
22
+ "fields": {
23
+ "type": "array",
24
+ "description": "Array of field names to search against",
25
+ "items": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "columnTranslationKeys": {
30
+ "type": "array",
31
+ "description": "Array of translation keys for the column headers",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "expectedFields": {
37
+ "type": "array",
38
+ "description": "Array of fields configurations with translation keys to display on table headers",
39
+ "items": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "properties": {
43
+ "field": {
44
+ "type": "string",
45
+ "description": "field corresponding to table header"
46
+ },
47
+ "translationKey": {
48
+ "type": "string",
49
+ "description": "Translation key for the table header"
50
+ }
51
+ }
52
+ }
53
+ },
54
+ "type": {
55
+ "type": "string",
56
+ "enum": ["person", "address", "program", "appointment"],
57
+ "description": "Type of the search field (person, address, program, appointment)"
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "appointment": {
63
+ "type": "array",
64
+ "description": "Array of available search fields for appointments",
65
+ "items": {
66
+ "type": "object",
67
+ "additionalProperties": true,
68
+ "required": ["translationKey", "fields"],
69
+ "properties": {
70
+ "translationKey": {
71
+ "type": "string",
72
+ "description": "Translation key for the field label"
73
+ },
74
+ "fields": {
75
+ "type": "array",
76
+ "description": "Array of field names to search against",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "expectedFields": {
82
+ "type": "array",
83
+ "description": "Array of expected fields with optional types",
84
+ "items": {
85
+ "type": "object",
86
+ "required": ["field", "translationKey"],
87
+ "properties": {
88
+ "field": {
89
+ "type": "string",
90
+ "description": "The field name (e.g., apptNumber, apptDate)"
91
+ },
92
+ "translationKey": {
93
+ "type": "string",
94
+ "description": "Translation key for the field's display label"
95
+ },
96
+ "type": {
97
+ "type": "string",
98
+ "description": "Optional field type (e.g., date, string)"
99
+ }
100
+ }
101
+ }
102
+ },
103
+ "type": {
104
+ "type": "string",
105
+ "enum": ["appointment"],
106
+ "description": "Type of the search field (appointment)"
107
+ },
108
+ "actions": {
109
+ "type": "array",
110
+ "description": "Array of actions allowed on this search field",
111
+ "items": {
112
+ "type": "object",
113
+ "required": ["translationKey", "type", "enabledRule", "onAction"],
114
+ "properties": {
115
+ "translationKey": {
116
+ "type": "string",
117
+ "description": "Translation key for the action button label"
118
+ },
119
+ "type": {
120
+ "type": "string",
121
+ "enum": ["changeStatus", "navigate", "checkInAndStartVisit"],
122
+ "description": "Type of action to perform"
123
+ },
124
+ "enabledRule": {
125
+ "type": "array",
126
+ "description": "Conditions to enable this action (rules)",
127
+ "items": {
128
+ "type": "object",
129
+ "properties": {
130
+ "type": {
131
+ "type": "string",
132
+ "enum": ["privilegeCheck", "statusCheck", "appDateCheck", "appointmentService"],
133
+ "description": "Type of rule to evaluate"
134
+ },
135
+ "values": {
136
+ "type": "array",
137
+ "items": { "type": "string" },
138
+ "description": "Values to match for the rule"
139
+ },
140
+ "excludeValues": {
141
+ "type": "array",
142
+ "items": { "type": "string" },
143
+ "description": "Values to exclude for the rule"
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "onAction": {
149
+ "type": "object",
150
+ "description": "What happens when action is triggered",
151
+ "additionalProperties": true,
152
+ "properties": {
153
+ "status": {
154
+ "type": "string",
155
+ "description": "Status to set (for changeStatus type)"
156
+ },
157
+ "navigation": {
158
+ "type": "string",
159
+ "description": "URL path to navigate to (for navigate type)"
160
+ },
161
+ "submit": {
162
+ "type": "string",
163
+ "description": "API endpoint URL to submit to (for checkInAndStartVisit type)"
164
+ }
165
+ }
166
+ },
167
+ "onSuccess": {
168
+ "type": "object",
169
+ "description": "Notification or other success response",
170
+ "additionalProperties": true,
171
+ "properties": {
172
+ "notification": {
173
+ "type": "string",
174
+ "description": "Translation key for success notification message"
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ ;
187
+
188
+ export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppointmentSearchStrategy.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/AppointmentSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,yBAAyB,EAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,qBAAa,yBAA0B,YAAW,cAAc;IAC9D,QAAQ,CAAC,IAAI,EAAG,aAAa,CAAU;IAEvC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAUrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAOzC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;OAEG;IACH,OAAO,CAAC,oCAAoC;IAY5C;;OAEG;IACH,OAAO,CAAC,kCAAkC,CAgCvC;IAEH;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAS9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeSearchStrategy.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/AttributeSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,qBAAa,uBAAwB,YAAW,cAAc;IAC5D,QAAQ,CAAC,IAAI,EAAG,YAAY,CAAU;IAEtC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAgBrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,gBAAgB;IAajE;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM;IAS1D;;OAEG;IACH,gBAAgB,CACd,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB;IAqB5B;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAgB3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAK1B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NameOrIdSearchStrategy.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/NameOrIdSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAC3D,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAU;IAEpC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAQrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAOzC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC;;OAEG;IACH,OAAO,CAAC,SAAS;IAUjB;;OAEG;IACH,gBAAgB,CACd,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB;CA4B7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchStrategyRegistry.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/SearchStrategyRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAKhF;;;GAGG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,UAAU,CAAgD;IAElE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAIxC;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc;IAQpD;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO;IAI7C;;;OAGG;IACH,kBAAkB,IAAI,iBAAiB,EAAE;CAG1C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,wBAA+B,CAAC;AAQnE,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/search/searchPatient/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,GAAG;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAgBF,eAAO,MAAM,yBAAyB,GACpC,2BAA2B,yBAAyB,GAAG,SAAS,EAChE,sBAAqB,kBAAkB,EAAO,KAC7C,sBAAsB,CAAC,mBAAmB,CAAC,EAkC7C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.368",
3
+ "version": "0.0.1-dev.369",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"PatientSearchResults.d.ts","sourceRoot":"","sources":["../../src/searchPatient/PatientSearchResults.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,kBAAkB,EAElB,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAsB1B,UAAU,yBAAyB;IACjC,IAAI,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACpD;AAED,QAAA,MAAM,oBAAoB,GAAI,yHAU3B,yBAAyB,4CA8M3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { AppointmentSearchField, PatientSearchField } from '@bahmni/services';
2
- interface SearchPatientProps {
3
- buttonTitle: string;
4
- searchBarPlaceholder: string;
5
- patientSearch?: {
6
- patientDetailUrl?: string;
7
- customAttributes: PatientSearchField[];
8
- appointment: AppointmentSearchField[];
9
- };
10
- }
11
- declare const SearchPatient: ({ buttonTitle, searchBarPlaceholder, patientSearch, }: SearchPatientProps) => import("react/jsx-runtime").JSX.Element;
12
- export default SearchPatient;
13
- //# sourceMappingURL=SearchPatient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchPatient.d.ts","sourceRoot":"","sources":["../../src/searchPatient/SearchPatient.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAGnB,MAAM,kBAAkB,CAAC;AAS1B,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE;QACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;QACvC,WAAW,EAAE,sBAAsB,EAAE,CAAC;KACvC,CAAC;CACH;AAED,QAAA,MAAM,aAAa,GAAI,uDAIpB,kBAAkB,4CA4OpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchPatientInput.d.ts","sourceRoot":"","sources":["../../src/searchPatient/SearchPatientInput.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,QAAA,MAAM,kBAAkB,GAAI,uPAgBzB,uBAAuB,4CAmGzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchStrategy.interface.d.ts","sourceRoot":"","sources":["../../src/searchPatient/SearchStrategy.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,GAAG,aAAa,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,YAAY,EAAE,kBAAkB,EAAE,CAAC;IAEnC,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAEjC;;;;;OAKG;IACH,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAEnE;;;;;OAKG;IACH,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAAC;IAE5D;;;;;OAKG;IACH,gBAAgB,CAAC,CACf,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB,CAAC;CAC9B"}
@@ -1,25 +0,0 @@
1
- import { PatientSearchResult } from '@bahmni/services';
2
- export declare const buttonTitle = "Search";
3
- export declare const searchBarPlaceholder = "Search by name or patient ID";
4
- export declare const mockPatient: PatientSearchResult;
5
- export declare const mockSearchPatientData: PatientSearchResult[];
6
- export declare const validPatientSearchConfig: {
7
- customAttributes: ({
8
- translationKey: string;
9
- fields: string[];
10
- columnTranslationKeys: string[];
11
- type: "person";
12
- } | {
13
- translationKey: string;
14
- fields: string[];
15
- columnTranslationKeys: string[];
16
- type: "address";
17
- } | {
18
- translationKey: string;
19
- fields: string[];
20
- columnTranslationKeys: string[];
21
- type: "program";
22
- })[];
23
- appointment: never[];
24
- };
25
- //# sourceMappingURL=mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/searchPatient/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAEnE,eAAO,MAAM,WAAW,EAAE,mBAqBzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,EAItD,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;CAuCpC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../src/searchPatient/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,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,EAC1B,iBAAiB,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,EACjE,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,kBAiE3B,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 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/searchPatient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppointmentSearchStrategy.d.ts","sourceRoot":"","sources":["../../../src/searchPatient/strategies/AppointmentSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,yBAAyB,EAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,qBAAa,yBAA0B,YAAW,cAAc;IAC9D,QAAQ,CAAC,IAAI,EAAG,aAAa,CAAU;IAEvC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAUrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAOzC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;OAEG;IACH,OAAO,CAAC,oCAAoC;IAY5C;;OAEG;IACH,OAAO,CAAC,kCAAkC,CAgCvC;IAEH;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAS9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttributeSearchStrategy.d.ts","sourceRoot":"","sources":["../../../src/searchPatient/strategies/AttributeSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,qBAAa,uBAAwB,YAAW,cAAc;IAC5D,QAAQ,CAAC,IAAI,EAAG,YAAY,CAAU;IAEtC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAgBrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,gBAAgB;IAajE;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM;IAS1D;;OAEG;IACH,gBAAgB,CACd,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB;IAqB5B;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAgB3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAK1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NameOrIdSearchStrategy.d.ts","sourceRoot":"","sources":["../../../src/searchPatient/strategies/NameOrIdSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAC3D,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAU;IAEpC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAQrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAOzC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC;;OAEG;IACH,OAAO,CAAC,SAAS;IAUjB;;OAEG;IACH,gBAAgB,CACd,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB;CA4B7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchStrategyRegistry.d.ts","sourceRoot":"","sources":["../../../src/searchPatient/strategies/SearchStrategyRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAKhF;;;GAGG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,UAAU,CAAgD;IAElE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAIxC;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc;IAQpD;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO;IAI7C;;;OAGG;IACH,kBAAkB,IAAI,iBAAiB,EAAE;CAG1C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,wBAA+B,CAAC;AAQnE,eAAe,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/searchPatient/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,GAAG;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAgBF,eAAO,MAAM,yBAAyB,GACpC,2BAA2B,yBAAyB,GAAG,SAAS,EAChE,sBAAqB,kBAAkB,EAAO,KAC7C,sBAAsB,CAAC,mBAAmB,CAAC,EAkC7C,CAAC"}