Commit b2f1f3d
adds support for federated terminology provider (#905)
* adds support for federated terminology provider
* fixes PackageVisitor tests
applies spotless
* Fixed bug in FederatedTerminologyProviderRouter and broken ReleaseVisitor tests
* Closing CRMI spec gaps and additional testing
* Wiring up the library package provider with updated parameter
* Add VSAC versioning syntax fix and enhanced logging to ExpandRunner
- Add buildResourceIdForExpand() to handle VSAC's non-standard URL format where version is appended with a dash (ValueSet/id-version) instead of the standard pipe separator
- Add formatParametersForLogging() and formatParameterValue() helpers for structured debug output of expansion parameters
- Enhance expansion attempt logging with terminology server base URL, full expand URL, and parameter details
- Change failure logging from info to warn level with additional context
* Fix LibraryPackageProvider compilation errors for artifactEndpointConfiguration support
* Add tests for federated terminology provider infrastructure
* add coverage tests for federated terminology provider infrastructure
FederatedTerminologyProviderRouterTest (16 tests):
- List-based expand overloads exercising prioritizeEndpoints and stream filtering
- List-based getValueSetResource, getCodeSystemResource, getLatestValueSetResource
- Empty endpoint list edge cases
- Exception catch-and-fallback paths in expandWithConfigurations, getValueSetResourceWithConfigurations, getCodeSystemResourceWithConfigurations
ExpandRunnerTest (2 tests):
- Transient server error (500) retry path exercising isTransient() true branch
- Part-parameters formatting exercising formatParameterValue hasPart() branch
GenericTerminologyServerClientClientTest (3 tests):
- Null URL with no url parameter throws UnprocessableEntityException
- initializeClientWithAuth with endpoint headers exercises hasHeaders() branch
- Single-arg constructor exercises default settings fallback
ArtifactEndpointConfigurationTest (8 tests):
- Optional getters for artifactRoute, endpointUri, endpoint (present and empty)
- toString with non-null endpoint resource
---------
Co-authored-by: c-schuler <hoofschu@gmail.com>1 parent 7270f66 commit b2f1f3d
File tree
34 files changed
+2621
-270
lines changed- cqf-fhir-cr-hapi/src/main/java/org/opencds/cqf/fhir/cr/hapi
- common
- r4/library
- cqf-fhir-cr/src
- main/java/org/opencds/cqf/fhir/cr/visitor
- r4
- test/java/org/opencds/cqf/fhir/cr/visitor
- dstu3
- r4
- r5
- cqf-fhir-utility/src
- main/java/org/opencds/cqf/fhir/utility
- client
- terminology
- test/java/org/opencds/cqf/fhir/utility
- client
- terminology
34 files changed
+2621
-270
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
cqf-fhir-cr-hapi/src/main/java/org/opencds/cqf/fhir/cr/hapi/r4/library/LibraryPackageProvider.java
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
94 | | - | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
138 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
139 | 151 | | |
140 | 152 | | |
141 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
| |||
157 | 173 | | |
158 | 174 | | |
159 | 175 | | |
160 | | - | |
| 176 | + | |
| 177 | + | |
161 | 178 | | |
162 | 179 | | |
163 | 180 | | |
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
Lines changed: 72 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | | - | |
| 96 | + | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
147 | 204 | | |
148 | 205 | | |
149 | 206 | | |
150 | | - | |
| 207 | + | |
151 | 208 | | |
152 | 209 | | |
153 | 210 | | |
| |||
261 | 318 | | |
262 | 319 | | |
263 | 320 | | |
264 | | - | |
| 321 | + | |
265 | 322 | | |
266 | 323 | | |
267 | 324 | | |
| |||
286 | 343 | | |
287 | 344 | | |
288 | 345 | | |
289 | | - | |
| 346 | + | |
290 | 347 | | |
291 | | - | |
| 348 | + | |
292 | 349 | | |
293 | 350 | | |
294 | 351 | | |
295 | 352 | | |
296 | 353 | | |
297 | | - | |
| 354 | + | |
298 | 355 | | |
299 | | - | |
| 356 | + | |
300 | 357 | | |
301 | 358 | | |
302 | 359 | | |
303 | 360 | | |
304 | 361 | | |
305 | | - | |
| 362 | + | |
306 | 363 | | |
307 | | - | |
| 364 | + | |
308 | 365 | | |
309 | 366 | | |
310 | 367 | | |
311 | | - | |
| 368 | + | |
312 | 369 | | |
313 | 370 | | |
314 | 371 | | |
| |||
0 commit comments