@bahmni/services 0.0.1-dev.266 → 0.0.1-dev.267
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/appointmentService/__mocks__/mocks.d.ts +9 -0
- package/dist/appointmentService/__mocks__/mocks.d.ts.map +1 -1
- package/dist/appointmentService/appointmentService.d.ts +12 -1
- package/dist/appointmentService/appointmentService.d.ts.map +1 -1
- package/dist/appointmentService/constants.d.ts +1 -0
- package/dist/appointmentService/constants.d.ts.map +1 -1
- package/dist/appointmentService/index.d.ts +2 -2
- package/dist/appointmentService/index.d.ts.map +1 -1
- package/dist/appointmentService/models.d.ts +31 -0
- package/dist/appointmentService/models.d.ts.map +1 -1
- package/dist/date/constants.d.ts +1 -0
- package/dist/date/constants.d.ts.map +1 -1
- package/dist/date/date.d.ts +13 -0
- package/dist/date/date.d.ts.map +1 -1
- package/dist/date/index.d.ts +2 -2
- package/dist/date/index.d.ts.map +1 -1
- package/dist/events/cdssEvents.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7203 -5697
- package/dist/locationService/__tests__/__mocks__/mocks.d.ts +3 -0
- package/dist/locationService/__tests__/__mocks__/mocks.d.ts.map +1 -1
- package/dist/locationService/constants.d.ts +1 -0
- package/dist/locationService/constants.d.ts.map +1 -1
- package/dist/locationService/index.d.ts +1 -1
- package/dist/locationService/index.d.ts.map +1 -1
- package/dist/locationService/locationService.d.ts +7 -0
- package/dist/locationService/locationService.d.ts.map +1 -1
- package/dist/locationService/models.d.ts +6 -1
- package/dist/locationService/models.d.ts.map +1 -1
- package/dist/providerService/__mocks__/mocks.d.ts +216 -0
- package/dist/providerService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/providerService/constants.d.ts +1 -0
- package/dist/providerService/constants.d.ts.map +1 -1
- package/dist/providerService/index.d.ts +1 -1
- package/dist/providerService/index.d.ts.map +1 -1
- package/dist/providerService/models.d.ts +15 -1
- package/dist/providerService/models.d.ts.map +1 -1
- package/dist/providerService/providerService.d.ts +15 -2
- package/dist/providerService/providerService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { Bundle, Location as FHIRLocation } from 'fhir/r4';
|
|
1
2
|
import { Location, LocationResponse } from '../../models';
|
|
2
3
|
export declare const mockLocation: Location;
|
|
3
4
|
export declare const mockLocationWithNoChildren: Location;
|
|
4
5
|
export declare const mockLocationResponse: LocationResponse;
|
|
5
6
|
export declare const mockEmptyLocationResponse: LocationResponse;
|
|
7
|
+
export declare const mockFHIRLocationBundle: Bundle<FHIRLocation>;
|
|
8
|
+
export declare const mockEmptyFHIRLocationBundle: Bundle<FHIRLocation>;
|
|
6
9
|
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../src/locationService/__tests__/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAO,MAAM,YAAY,EAAE,QAO1B,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAIxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,gBAElC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,gBAEvC,CAAC"}
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../src/locationService/__tests__/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAO,MAAM,YAAY,EAAE,QAO1B,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAIxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,gBAElC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,gBAEvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,YAAY,CA2BvD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,YAAY,CAK5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/locationService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,WACoG,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/locationService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,WACoG,CAAC;AAEpJ,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,WACW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locationService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locationService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Bundle, Location as FHIRLocation } from 'fhir/r4';
|
|
1
2
|
import { Location } from './models';
|
|
2
3
|
/**
|
|
3
4
|
* Fetches locations from OpenMRS filtered by a given tag
|
|
@@ -5,4 +6,10 @@ import { Location } from './models';
|
|
|
5
6
|
* @returns Promise resolving to an array of Location objects
|
|
6
7
|
*/
|
|
7
8
|
export declare function getLocationByTag(tag: string): Promise<Location[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Fetches locations from FHIR API filtered by a given tag
|
|
11
|
+
* @param tag - The location tag to filter by (e.g. "Appointment Location")
|
|
12
|
+
* @returns Promise resolving to the raw FHIR Bundle response
|
|
13
|
+
*/
|
|
14
|
+
export declare function getFHIRLocationsByTag(tag: string): Promise<Bundle<FHIRLocation>>;
|
|
8
15
|
//# sourceMappingURL=locationService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationService.d.ts","sourceRoot":"","sources":["../../src/locationService/locationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"locationService.d.ts","sourceRoot":"","sources":["../../src/locationService/locationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,QAAQ,EAAoB,MAAM,UAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAGvE;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAE/B"}
|
|
@@ -3,10 +3,15 @@ export interface ChildLocation {
|
|
|
3
3
|
display: string;
|
|
4
4
|
retired: boolean;
|
|
5
5
|
}
|
|
6
|
+
export interface LocationTag {
|
|
7
|
+
uuid?: string;
|
|
8
|
+
display: string;
|
|
9
|
+
}
|
|
6
10
|
export interface Location {
|
|
7
11
|
uuid: string;
|
|
8
12
|
display: string;
|
|
9
|
-
childLocations
|
|
13
|
+
childLocations?: ChildLocation[];
|
|
14
|
+
tags?: LocationTag[];
|
|
10
15
|
}
|
|
11
16
|
export interface LocationResponse {
|
|
12
17
|
results: Location[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/locationService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/locationService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,QAAQ,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
export declare const mockUserUUID = "d7a669e7-5e07-11ef-8f7c-0242ac120002";
|
|
2
|
+
export declare const mockProviderResponse: {
|
|
3
|
+
results: {
|
|
4
|
+
uuid: string;
|
|
5
|
+
display: string;
|
|
6
|
+
person: {
|
|
7
|
+
preferredAddress: null;
|
|
8
|
+
attributes: never[];
|
|
9
|
+
uuid: string;
|
|
10
|
+
display: string;
|
|
11
|
+
gender: string;
|
|
12
|
+
age: number;
|
|
13
|
+
birthdate: string;
|
|
14
|
+
birthdateEstimated: boolean;
|
|
15
|
+
dead: boolean;
|
|
16
|
+
deathDate: null;
|
|
17
|
+
causeOfDeath: null;
|
|
18
|
+
preferredName: {
|
|
19
|
+
uuid: string;
|
|
20
|
+
display: string;
|
|
21
|
+
links: never[];
|
|
22
|
+
};
|
|
23
|
+
voided: boolean;
|
|
24
|
+
birthtime: null;
|
|
25
|
+
deathdateEstimated: boolean;
|
|
26
|
+
links: never[];
|
|
27
|
+
resourceVersion: string;
|
|
28
|
+
};
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
export declare const mockProviderWithLoginLocations: {
|
|
32
|
+
results: {
|
|
33
|
+
uuid: string;
|
|
34
|
+
display: string;
|
|
35
|
+
person: {
|
|
36
|
+
uuid: string;
|
|
37
|
+
display: string;
|
|
38
|
+
gender: string;
|
|
39
|
+
age: number;
|
|
40
|
+
birthdate: string;
|
|
41
|
+
birthdateEstimated: boolean;
|
|
42
|
+
dead: boolean;
|
|
43
|
+
deathDate: null;
|
|
44
|
+
causeOfDeath: null;
|
|
45
|
+
preferredName: {
|
|
46
|
+
uuid: string;
|
|
47
|
+
display: string;
|
|
48
|
+
links: never[];
|
|
49
|
+
};
|
|
50
|
+
voided: boolean;
|
|
51
|
+
birthtime: null;
|
|
52
|
+
deathdateEstimated: boolean;
|
|
53
|
+
links: never[];
|
|
54
|
+
resourceVersion: string;
|
|
55
|
+
};
|
|
56
|
+
attributes: ({
|
|
57
|
+
uuid: string;
|
|
58
|
+
display: string;
|
|
59
|
+
attributeType: {
|
|
60
|
+
uuid: string;
|
|
61
|
+
display: string;
|
|
62
|
+
};
|
|
63
|
+
value: {
|
|
64
|
+
uuid: string;
|
|
65
|
+
display: string;
|
|
66
|
+
childLocations: never[];
|
|
67
|
+
tags: {
|
|
68
|
+
display: string;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
voided: boolean;
|
|
72
|
+
} | {
|
|
73
|
+
uuid: string;
|
|
74
|
+
display: string;
|
|
75
|
+
attributeType: {
|
|
76
|
+
uuid: string;
|
|
77
|
+
display: string;
|
|
78
|
+
};
|
|
79
|
+
value: boolean;
|
|
80
|
+
voided: boolean;
|
|
81
|
+
})[];
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
84
|
+
export declare const mockProviderPage1: {
|
|
85
|
+
results: {
|
|
86
|
+
uuid: string;
|
|
87
|
+
display: string;
|
|
88
|
+
person: {
|
|
89
|
+
uuid: string;
|
|
90
|
+
display: string;
|
|
91
|
+
gender: string;
|
|
92
|
+
age: number;
|
|
93
|
+
birthdate: string;
|
|
94
|
+
birthdateEstimated: boolean;
|
|
95
|
+
dead: boolean;
|
|
96
|
+
deathDate: null;
|
|
97
|
+
causeOfDeath: null;
|
|
98
|
+
preferredName: {
|
|
99
|
+
uuid: string;
|
|
100
|
+
display: string;
|
|
101
|
+
links: never[];
|
|
102
|
+
};
|
|
103
|
+
voided: boolean;
|
|
104
|
+
birthtime: null;
|
|
105
|
+
deathdateEstimated: boolean;
|
|
106
|
+
links: never[];
|
|
107
|
+
resourceVersion: string;
|
|
108
|
+
};
|
|
109
|
+
}[];
|
|
110
|
+
links: {
|
|
111
|
+
rel: string;
|
|
112
|
+
uri: string;
|
|
113
|
+
resourceAlias: string;
|
|
114
|
+
}[];
|
|
115
|
+
};
|
|
116
|
+
export declare const mockProviderPage2: {
|
|
117
|
+
results: {
|
|
118
|
+
uuid: string;
|
|
119
|
+
display: string;
|
|
120
|
+
person: {
|
|
121
|
+
uuid: string;
|
|
122
|
+
display: string;
|
|
123
|
+
gender: string;
|
|
124
|
+
age: number;
|
|
125
|
+
birthdate: string;
|
|
126
|
+
birthdateEstimated: boolean;
|
|
127
|
+
dead: boolean;
|
|
128
|
+
deathDate: null;
|
|
129
|
+
causeOfDeath: null;
|
|
130
|
+
preferredName: {
|
|
131
|
+
uuid: string;
|
|
132
|
+
display: string;
|
|
133
|
+
links: never[];
|
|
134
|
+
};
|
|
135
|
+
voided: boolean;
|
|
136
|
+
birthtime: null;
|
|
137
|
+
deathdateEstimated: boolean;
|
|
138
|
+
links: never[];
|
|
139
|
+
resourceVersion: string;
|
|
140
|
+
};
|
|
141
|
+
}[];
|
|
142
|
+
links: {
|
|
143
|
+
rel: string;
|
|
144
|
+
uri: string;
|
|
145
|
+
resourceAlias: string;
|
|
146
|
+
}[];
|
|
147
|
+
};
|
|
148
|
+
export declare const mockProviderPage3: {
|
|
149
|
+
results: {
|
|
150
|
+
uuid: string;
|
|
151
|
+
display: string;
|
|
152
|
+
person: {
|
|
153
|
+
uuid: string;
|
|
154
|
+
display: string;
|
|
155
|
+
gender: string;
|
|
156
|
+
age: number;
|
|
157
|
+
birthdate: string;
|
|
158
|
+
birthdateEstimated: boolean;
|
|
159
|
+
dead: boolean;
|
|
160
|
+
deathDate: null;
|
|
161
|
+
causeOfDeath: null;
|
|
162
|
+
preferredName: {
|
|
163
|
+
uuid: string;
|
|
164
|
+
display: string;
|
|
165
|
+
links: never[];
|
|
166
|
+
};
|
|
167
|
+
voided: boolean;
|
|
168
|
+
birthtime: null;
|
|
169
|
+
deathdateEstimated: boolean;
|
|
170
|
+
links: never[];
|
|
171
|
+
resourceVersion: string;
|
|
172
|
+
};
|
|
173
|
+
}[];
|
|
174
|
+
links: never[];
|
|
175
|
+
};
|
|
176
|
+
export declare const mockSinglePageResponse: {
|
|
177
|
+
results: {
|
|
178
|
+
uuid: string;
|
|
179
|
+
display: string;
|
|
180
|
+
person: {
|
|
181
|
+
uuid: string;
|
|
182
|
+
display: string;
|
|
183
|
+
gender: string;
|
|
184
|
+
age: number;
|
|
185
|
+
birthdate: string;
|
|
186
|
+
birthdateEstimated: boolean;
|
|
187
|
+
dead: boolean;
|
|
188
|
+
deathDate: null;
|
|
189
|
+
causeOfDeath: null;
|
|
190
|
+
preferredName: {
|
|
191
|
+
uuid: string;
|
|
192
|
+
display: string;
|
|
193
|
+
links: never[];
|
|
194
|
+
};
|
|
195
|
+
voided: boolean;
|
|
196
|
+
birthtime: null;
|
|
197
|
+
deathdateEstimated: boolean;
|
|
198
|
+
links: never[];
|
|
199
|
+
resourceVersion: string;
|
|
200
|
+
};
|
|
201
|
+
}[];
|
|
202
|
+
};
|
|
203
|
+
export declare const mockEmptyProvidersResponse: {
|
|
204
|
+
results: never[];
|
|
205
|
+
};
|
|
206
|
+
export declare const mockProviderWithoutAttributes: {
|
|
207
|
+
results: {
|
|
208
|
+
uuid: string;
|
|
209
|
+
display: string;
|
|
210
|
+
person: {
|
|
211
|
+
uuid: string;
|
|
212
|
+
display: string;
|
|
213
|
+
};
|
|
214
|
+
}[];
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/providerService/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,yCAAyC,CAAC;AA4DnE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQhC,CAAC;AAsBF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD1C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;CAEtC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;CAWzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/providerService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/providerService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,WAEkB,CAAC;AAEzE,eAAO,MAAM,iBAAiB,QAC2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providerService/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providerService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Location } from '../locationService';
|
|
1
2
|
/**
|
|
2
3
|
* Interface representing a link to a resource
|
|
3
4
|
*/
|
|
@@ -34,6 +35,17 @@ export interface Person {
|
|
|
34
35
|
links: Link[];
|
|
35
36
|
resourceVersion: string;
|
|
36
37
|
}
|
|
38
|
+
export interface ProviderAttributeType {
|
|
39
|
+
uuid: string;
|
|
40
|
+
display: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ProviderAttribute {
|
|
43
|
+
uuid: string;
|
|
44
|
+
display: string;
|
|
45
|
+
attributeType: ProviderAttributeType;
|
|
46
|
+
value: boolean | Location;
|
|
47
|
+
voided: boolean;
|
|
48
|
+
}
|
|
37
49
|
/**
|
|
38
50
|
* Interface representing OpenMRS Provider resource from REST API
|
|
39
51
|
*/
|
|
@@ -41,11 +53,13 @@ export interface Provider {
|
|
|
41
53
|
uuid: string;
|
|
42
54
|
display: string;
|
|
43
55
|
person: Person;
|
|
56
|
+
attributes?: ProviderAttribute[];
|
|
44
57
|
}
|
|
45
58
|
/**
|
|
46
59
|
* Interface representing Provider response from REST API
|
|
47
60
|
*/
|
|
48
61
|
export interface ProviderResponse {
|
|
49
|
-
results: Provider[];
|
|
62
|
+
results: Provider[] | null;
|
|
63
|
+
links?: Link[];
|
|
50
64
|
}
|
|
51
65
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/providerService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,UAAU,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/providerService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,UAAU,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,qBAAqB,CAAC;IACrC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB"}
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
+
import { Location } from '../locationService/models';
|
|
1
2
|
import { Provider } from './models';
|
|
2
3
|
/**
|
|
3
|
-
* Fetches the
|
|
4
|
-
* @returns Promise resolving to
|
|
4
|
+
* Fetches the provider record for the given user UUID
|
|
5
|
+
* @returns Promise resolving to the Provider or null if not found
|
|
5
6
|
*/
|
|
6
7
|
export declare function getCurrentProvider(userUUID: string): Promise<Provider | null>;
|
|
8
|
+
/**
|
|
9
|
+
* Fetches all providers from OpenMRS with pagination support
|
|
10
|
+
* Iterates through all pages until no "next" link is found
|
|
11
|
+
* @returns Promise resolving to an array of all Provider objects
|
|
12
|
+
*/
|
|
13
|
+
export declare function fetchAllProviders(): Promise<Provider[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Fetches login locations from user's provider attributes
|
|
16
|
+
* @param userUuid - The UUID of the user whose provider login locations to fetch
|
|
17
|
+
* @returns Promise resolving to an array of Location objects from provider's Login Locations attributes
|
|
18
|
+
*/
|
|
19
|
+
export declare function getProviderLoginLocations(userUuid: string): Promise<Location[]>;
|
|
7
20
|
//# sourceMappingURL=providerService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerService.d.ts","sourceRoot":"","sources":["../../src/providerService/providerService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"providerService.d.ts","sourceRoot":"","sources":["../../src/providerService/providerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAoB,MAAM,UAAU,CAAC;AAEtD;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAS1B;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAa7D;AAED;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,QAAQ,EAAE,CAAC,CAkBrB"}
|