-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport_practitioner_modules.html
More file actions
770 lines (676 loc) · 74.3 KB
/
report_practitioner_modules.html
File metadata and controls
770 lines (676 loc) · 74.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title id="head-title">report_practitioner_modules.html</title>
<link href="assets\style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h1 id="title">report_practitioner_modules.html</h1>
<p>Report generated on 13-Nov-2025 at 14:07:35 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a>
v4.1.1</p>
<div id="environment-header">
<h2>Environment</h2>
</div>
<table id="environment"></table>
<!-- TEMPLATES -->
<template id="template_environment_row">
<tr>
<td></td>
<td></td>
</tr>
</template>
<template id="template_results-table__body--empty">
<tbody class="results-table-row">
<tr id="not-found-message">
<td colspan="4">No results found. Check the filters.</th>
</tr>
</template>
<template id="template_results-table__tbody">
<tbody class="results-table-row">
<tr class="collapsible">
</tr>
<tr class="extras-row">
<td class="extra" colspan="4">
<div class="extraHTML"></div>
<div class="media">
<div class="media-container">
<div class="media-container__nav--left"><</div>
<div class="media-container__viewport">
<img src="" />
<video controls>
<source src="" type="video/mp4">
</video>
</div>
<div class="media-container__nav--right">></div>
</div>
<div class="media__name"></div>
<div class="media__counter"></div>
</div>
<div class="logwrapper">
<div class="logexpander"></div>
<div class="log"></div>
</div>
</td>
</tr>
</tbody>
</template>
<!-- END TEMPLATES -->
<div class="summary">
<div class="summary__data">
<h2>Summary</h2>
<div class="additional-summary prefix">
</div>
<p class="run-count">18 tests took 00:00:04.</p>
<p class="filter">(Un)check the boxes to filter the results.</p>
<div class="summary__reload">
<div class="summary__reload__button hidden" onclick="location.reload()">
<div>There are still tests running. <br />Reload this page to get the latest results!</div>
</div>
</div>
<div class="summary__spacer"></div>
<div class="controls">
<div class="filters">
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="failed" disabled/>
<span class="failed">0 Failed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="passed" />
<span class="passed">18 Passed,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="skipped" disabled/>
<span class="skipped">0 Skipped,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xfailed" disabled/>
<span class="xfailed">0 Expected failures,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="xpassed" disabled/>
<span class="xpassed">0 Unexpected passes,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="error" disabled/>
<span class="error">0 Errors,</span>
<input checked="true" class="filter" name="filter_checkbox" type="checkbox" data-test-result="rerun" disabled/>
<span class="rerun">0 Reruns</span>
</div>
<div class="collapse">
<button id="show_all_details">Show all details</button> / <button id="hide_all_details">Hide all details</button>
</div>
</div>
</div>
<div class="additional-summary summary">
</div>
<div class="additional-summary postfix">
</div>
</div>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable" data-column-type="result">Result</th>
<th class="sortable" data-column-type="testId">Test</th>
<th class="sortable" data-column-type="duration">Duration</th>
<th>Links</th>
</tr>
</thead>
</table>
</body>
<footer>
<div id="data-container" data-jsonblob="{"environment": {"Python": "3.13.3", "Platform": "Windows-10-10.0.19045-SP0", "Packages": {"pytest": "7.4.4", "pluggy": "1.6.0"}, "Plugins": {"Faker": "37.5.3", "cov": "4.1.0", "html": "4.1.1", "metadata": "3.1.1", "mock": "3.14.1", "xdist": "3.8.0"}, "JAVA_HOME": "C:\\tools\\OpenJDK11U-jdk_x64_windows_hotspot_11.0.12_7\\jdk-11.0.12+7"}, "tests": {"tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_init": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_init", "duration": "236 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_init</td>", "<td class=\"col-duration\">236 ms</td>", "<td class=\"col-links\"></td>"], "log": "---------------------------- Captured stdout setup -----------------------------\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n\n------------------------------ Captured log setup ------------------------------\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\n"}], "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_success": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_success", "duration": "8 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_success</td>", "<td class=\"col-duration\">8 ms</td>", "<td class=\"col-links\"></td>"], "log": "---------------------------- Captured stdout setup -----------------------------\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n\n------------------------------ Captured log setup ------------------------------\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\n\n----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Submitting Practitioner resource to http://test-server:9012/fhir/Practitioner/practitioner-001\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Practitioner resource submitted successfully.\n\n------------------------------ Captured log call -------------------------------\nINFO PractitionerRequestSubmitter:logger.py:79 Submitting Practitioner resource to http://test-server:9012/fhir/Practitioner/practitioner-001\nINFO PractitionerRequestSubmitter:logger.py:79 Practitioner resource submitted successfully.\n\n"}], "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_no_token": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_no_token", "duration": "7 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_no_token</td>", "<td class=\"col-duration\">7 ms</td>", "<td class=\"col-links\"></td>"], "log": "---------------------------- Captured stdout setup -----------------------------\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n\n------------------------------ Captured log setup ------------------------------\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\n\n----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - ERROR - [logger.py:87] - No access token could be retrieved, aborting request.\n\n------------------------------ Captured log call -------------------------------\nERROR PractitionerRequestSubmitter:logger.py:87 No access token could be retrieved, aborting request.\n\n"}], "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_http_error": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_http_error", "duration": "00:00:02", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_practitioner_http_error</td>", "<td class=\"col-duration\">00:00:02</td>", "<td class=\"col-links\"></td>"], "log": "---------------------------- Captured stdout setup -----------------------------\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:31 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n\n------------------------------ Captured log setup ------------------------------\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\n\n----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - ERROR - [logger.py:87] - Error Connecting: HTTPConnectionPool(host=&#x27;test-server&#x27;, port=9012): Max retries exceeded with url: /fhir/Practitioner/practitioner-001 (Caused by NameResolutionError(&quot;&lt;urllib3.connection.HTTPConnection object at 0x00000174895FD160&gt;: Failed to resolve &#x27;test-server&#x27; ([Errno 11001] getaddrinfo failed)&quot;)) \n\n------------------------------ Captured log call -------------------------------\nERROR PractitionerRequestSubmitter:logger.py:87 Error Connecting: HTTPConnectionPool(host=&#x27;test-server&#x27;, port=9012): Max retries exceeded with url: /fhir/Practitioner/practitioner-001 (Caused by NameResolutionError(&quot;&lt;urllib3.connection.HTTPConnection object at 0x00000174895FD160&gt;: Failed to resolve &#x27;test-server&#x27; ([Errno 11001] getaddrinfo failed)&quot;))\n\n"}], "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_batch_practitioners": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_batch_practitioners", "duration": "8 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerRequestSubmitter::test_submit_batch_practitioners</td>", "<td class=\"col-duration\">8 ms</td>", "<td class=\"col-links\"></td>"], "log": "---------------------------- Captured stdout setup -----------------------------\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n\n------------------------------ Captured log setup ------------------------------\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\n\n----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Submitting Practitioner Bundle resource to http://test-server:9012/fhir\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Practitioner Bundle resource submitted successfully.\n\n------------------------------ Captured log call -------------------------------\nINFO PractitionerRequestSubmitter:logger.py:79 Submitting Practitioner Bundle resource to http://test-server:9012/fhir\nINFO PractitionerRequestSubmitter:logger.py:79 Practitioner Bundle resource submitted successfully.\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_init": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_init", "duration": "4 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_init</td>", "<td class=\"col-duration\">4 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_success": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_success", "duration": "5 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_success</td>", "<td class=\"col-duration\">5 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 123 with status: 201 Created\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 456 with status: 201 Created\nresult, [{&#x27;practitioner_id&#x27;: &#x27;123&#x27;, &#x27;status&#x27;: &#x27;201 Created&#x27;}, {&#x27;practitioner_id&#x27;: &#x27;456&#x27;, &#x27;status&#x27;: &#x27;201 Created&#x27;}]\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 123 with status: 201 Created\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 456 with status: 201 Created\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_mixed_results": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_mixed_results", "duration": "6 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_mixed_results</td>", "<td class=\"col-duration\">6 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 123 with status: 201 Created\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 1 with status: 400 Bad Request\nresult, [{&#x27;practitioner_id&#x27;: &#x27;123&#x27;, &#x27;status&#x27;: &#x27;201 Created&#x27;}, {&#x27;practitioner_id&#x27;: 1, &#x27;status&#x27;: &#x27;400 Bad Request&#x27;}]\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 123 with status: 201 Created\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 1 with status: 400 Bad Request\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_invalid_bundle": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_invalid_bundle", "duration": "6 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_invalid_bundle</td>", "<td class=\"col-duration\">6 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\nresult, &lt;practitionerclient.EsmdPractitionerResponse.FhirBatchResponseProcessor object at 0x000001748943BA80&gt;\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - ERROR - [logger.py:87] - Invalid bundle response: Missing &#x27;resourceType&#x27; or &#x27;entry&#x27;.\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\nERROR FhirBatchResponseProcessor:logger.py:87 Invalid bundle response: Missing &#x27;resourceType&#x27; or &#x27;entry&#x27;.\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_no_entries": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_no_entries", "duration": "5 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_process_response_no_entries</td>", "<td class=\"col-duration\">5 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - ERROR - [logger.py:87] - Invalid bundle response: Missing &#x27;resourceType&#x27; or &#x27;entry&#x27;.\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\nERROR FhirBatchResponseProcessor:logger.py:87 Invalid bundle response: Missing &#x27;resourceType&#x27; or &#x27;entry&#x27;.\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_extract_successful_practitioners": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_extract_successful_practitioners", "duration": "6 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_extract_successful_practitioners</td>", "<td class=\"col-duration\">6 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 123 with status: 201 Created\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 456 with status: 201 Created\npractitioners, [{&#x27;practitioner_id&#x27;: &#x27;123&#x27;, &#x27;status&#x27;: &#x27;201 Created&#x27;}, {&#x27;practitioner_id&#x27;: &#x27;456&#x27;, &#x27;status&#x27;: &#x27;201 Created&#x27;}]\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 123 with status: 201 Created\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 456 with status: 201 Created\n\n"}], "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_extract_failed_operations": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_extract_failed_operations", "duration": "6 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestFhirBatchResponseProcessor::test_extract_failed_operations</td>", "<td class=\"col-duration\">6 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 123 with status: 201 Created\n2025-11-13 14:07:33 - FhirBatchResponseProcessor - INFO - [logger.py:79] - Extracted Practitioner ID: 1 with status: 400 Bad Request\nfailures, [{&#x27;practitioner_id&#x27;: &#x27;123&#x27;, &#x27;status&#x27;: &#x27;201 Created&#x27;}, {&#x27;practitioner_id&#x27;: 1, &#x27;status&#x27;: &#x27;400 Bad Request&#x27;}]\n\n------------------------------ Captured log call -------------------------------\nINFO FhirBatchResponseProcessor:logger.py:175 Console logging enabled\nINFO FhirBatchResponseProcessor:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 123 with status: 201 Created\nINFO FhirBatchResponseProcessor:logger.py:79 Extracted Practitioner ID: 1 with status: 400 Bad Request\n\n"}], "tests/test_practitioner_modules.py::TestPractitionerMetadata::test_init": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerMetadata::test_init", "duration": "2 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerMetadata::test_init</td>", "<td class=\"col-duration\">2 ms</td>", "<td class=\"col-links\"></td>"], "log": "No log output captured."}], "tests/test_practitioner_modules.py::TestPractitionerMetadata::test_missing_npi": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerMetadata::test_missing_npi", "duration": "4 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerMetadata::test_missing_npi</td>", "<td class=\"col-duration\">4 ms</td>", "<td class=\"col-links\"></td>"], "log": "No log output captured."}], "tests/test_practitioner_modules.py::TestPractitionerMetadata::test_validate_required_fields_missing": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerMetadata::test_validate_required_fields_missing", "duration": "3 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerMetadata::test_validate_required_fields_missing</td>", "<td class=\"col-duration\">3 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\nmsg, practitionermetadata.__init__() got an unexpected keyword argument &#x27;resourcetype&#x27;\n"}], "tests/test_practitioner_modules.py::test_integration_create_and_submit_practitioners": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::test_integration_create_and_submit_practitioners", "duration": "14 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::test_integration_create_and_submit_practitioners</td>", "<td class=\"col-duration\">14 ms</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:79] - Practitioner created with ID: d6e4faa6-adff-43ea-a50c-f8fb549c79da and PractitionerResource is {&#x27;resourceType&#x27;: &#x27;Practitioner&#x27;, &#x27;id&#x27;: &#x27;d6e4faa6-adff-43ea-a50c-f8fb549c79da&#x27;, &#x27;meta&#x27;: {&#x27;profile&#x27;: [&#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Practitioner&#x27;], &#x27;security&#x27;: [{&#x27;system&#x27;: &#x27;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&#x27;, &#x27;code&#x27;: &#x27;V&#x27;, &#x27;display&#x27;: &#x27;very restricted&#x27;}]}, &#x27;telecom&#x27;: [{&#x27;system&#x27;: &#x27;phone&#x27;, &#x27;value&#x27;: &#x27;555-123-4567&#x27;, &#x27;use&#x27;: &#x27;work&#x27;}], &#x27;name&#x27;: [{&#x27;family&#x27;: &#x27;Doe&#x27;, &#x27;given&#x27;: [&#x27;John&#x27;], &#x27;prefix&#x27;: [&#x27;Dr&#x27;]}], &#x27;extension&#x27;: [{&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ActionRequestedCode&#x27;, &#x27;valueCode&#x27;: &#x27;A&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceCode&#x27;, &#x27;valueCode&#x27;: &#x27;EEP&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceStartDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-01&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceEndDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-31&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-NPI&#x27;, &#x27;valueString&#x27;: &#x27;1234567890&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderTaxId&#x27;, &#x27;valueString&#x27;: &#x27;TAXID123&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderNumber&#x27;, &#x27;valueString&#x27;: &#x27;5432112345&#x27;}], &#x27;active&#x27;: True, &#x27;created&#x27;: &#x27;2025-11-13T14:07:33.526138&#x27;, &#x27;gender&#x27;: &#x27;male&#x27;}\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:79] - Practitioner created with ID: 0ab76b61-5d34-420e-892d-57eea8c9ffdf and PractitionerResource is {&#x27;resourceType&#x27;: &#x27;Practitioner&#x27;, &#x27;id&#x27;: &#x27;0ab76b61-5d34-420e-892d-57eea8c9ffdf&#x27;, &#x27;meta&#x27;: {&#x27;profile&#x27;: [&#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Practitioner&#x27;], &#x27;security&#x27;: [{&#x27;system&#x27;: &#x27;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&#x27;, &#x27;code&#x27;: &#x27;V&#x27;, &#x27;display&#x27;: &#x27;very restricted&#x27;}]}, &#x27;telecom&#x27;: [{&#x27;system&#x27;: &#x27;phone&#x27;, &#x27;value&#x27;: &#x27;555-987-6543&#x27;, &#x27;use&#x27;: &#x27;work&#x27;}], &#x27;name&#x27;: [{&#x27;family&#x27;: &#x27;Smith&#x27;, &#x27;given&#x27;: [&#x27;Jane&#x27;], &#x27;prefix&#x27;: [&#x27;Dr&#x27;]}], &#x27;extension&#x27;: [{&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ActionRequestedCode&#x27;, &#x27;valueCode&#x27;: &#x27;A&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceCode&#x27;, &#x27;valueCode&#x27;: &#x27;EEP&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceStartDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-02-01&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceEndDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-02-28&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-NPI&#x27;, &#x27;valueString&#x27;: &#x27;9876543210&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderTaxId&#x27;, &#x27;valueString&#x27;: &#x27;TAXID987&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderNumber&#x27;, &#x27;valueString&#x27;: &#x27;5432112345&#x27;}], &#x27;active&#x27;: True, &#x27;created&#x27;: &#x27;2025-11-13T14:07:33.526436&#x27;, &#x27;gender&#x27;: &#x27;female&#x27;}\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Submitting Practitioner resource to http://test-server:9012/fhir/Practitioner/d6e4faa6-adff-43ea-a50c-f8fb549c79da\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Practitioner resource submitted successfully.\n\n------------------------------ Captured log call -------------------------------\nINFO PreparePractitionerAndBundlePractitioner:logger.py:175 Console logging enabled\nINFO PreparePractitionerAndBundlePractitioner:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO PreparePractitionerAndBundlePractitioner:logger.py:175 Console logging enabled\nINFO PreparePractitionerAndBundlePractitioner:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO PreparePractitionerAndBundlePractitioner:logger.py:79 Practitioner created with ID: d6e4faa6-adff-43ea-a50c-f8fb549c79da and PractitionerResource is {&#x27;resourceType&#x27;: &#x27;Practitioner&#x27;, &#x27;id&#x27;: &#x27;d6e4faa6-adff-43ea-a50c-f8fb549c79da&#x27;, &#x27;meta&#x27;: {&#x27;profile&#x27;: [&#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Practitioner&#x27;], &#x27;security&#x27;: [{&#x27;system&#x27;: &#x27;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&#x27;, &#x27;code&#x27;: &#x27;V&#x27;, &#x27;display&#x27;: &#x27;very restricted&#x27;}]}, &#x27;telecom&#x27;: [{&#x27;system&#x27;: &#x27;phone&#x27;, &#x27;value&#x27;: &#x27;555-123-4567&#x27;, &#x27;use&#x27;: &#x27;work&#x27;}], &#x27;name&#x27;: [{&#x27;family&#x27;: &#x27;Doe&#x27;, &#x27;given&#x27;: [&#x27;John&#x27;], &#x27;prefix&#x27;: [&#x27;Dr&#x27;]}], &#x27;extension&#x27;: [{&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ActionRequestedCode&#x27;, &#x27;valueCode&#x27;: &#x27;A&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceCode&#x27;, &#x27;valueCode&#x27;: &#x27;EEP&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceStartDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-01&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceEndDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-31&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-NPI&#x27;, &#x27;valueString&#x27;: &#x27;1234567890&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderTaxId&#x27;, &#x27;valueString&#x27;: &#x27;TAXID123&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderNumber&#x27;, &#x27;valueString&#x27;: &#x27;5432112345&#x27;}], &#x27;active&#x27;: True, &#x27;created&#x27;: &#x27;2025-11-13T14:07:33.526138&#x27;, &#x27;gender&#x27;: &#x27;male&#x27;}\nINFO PreparePractitionerAndBundlePractitioner:logger.py:79 Practitioner created with ID: 0ab76b61-5d34-420e-892d-57eea8c9ffdf and PractitionerResource is {&#x27;resourceType&#x27;: &#x27;Practitioner&#x27;, &#x27;id&#x27;: &#x27;0ab76b61-5d34-420e-892d-57eea8c9ffdf&#x27;, &#x27;meta&#x27;: {&#x27;profile&#x27;: [&#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Practitioner&#x27;], &#x27;security&#x27;: [{&#x27;system&#x27;: &#x27;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&#x27;, &#x27;code&#x27;: &#x27;V&#x27;, &#x27;display&#x27;: &#x27;very restricted&#x27;}]}, &#x27;telecom&#x27;: [{&#x27;system&#x27;: &#x27;phone&#x27;, &#x27;value&#x27;: &#x27;555-987-6543&#x27;, &#x27;use&#x27;: &#x27;work&#x27;}], &#x27;name&#x27;: [{&#x27;family&#x27;: &#x27;Smith&#x27;, &#x27;given&#x27;: [&#x27;Jane&#x27;], &#x27;prefix&#x27;: [&#x27;Dr&#x27;]}], &#x27;extension&#x27;: [{&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ActionRequestedCode&#x27;, &#x27;valueCode&#x27;: &#x27;A&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceCode&#x27;, &#x27;valueCode&#x27;: &#x27;EEP&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceStartDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-02-01&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceEndDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-02-28&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-NPI&#x27;, &#x27;valueString&#x27;: &#x27;9876543210&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderTaxId&#x27;, &#x27;valueString&#x27;: &#x27;TAXID987&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderNumber&#x27;, &#x27;valueString&#x27;: &#x27;5432112345&#x27;}], &#x27;active&#x27;: True, &#x27;created&#x27;: &#x27;2025-11-13T14:07:33.526436&#x27;, &#x27;gender&#x27;: &#x27;female&#x27;}\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO PractitionerRequestSubmitter:logger.py:79 Submitting Practitioner resource to http://test-server:9012/fhir/Practitioner/d6e4faa6-adff-43ea-a50c-f8fb549c79da\nINFO PractitionerRequestSubmitter:logger.py:79 Practitioner resource submitted successfully.\n\n"}], "tests/test_practitioner_modules.py::TestPractitionerModulesIntegration::test_end_to_end_practitioner_workflow": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerModulesIntegration::test_end_to_end_practitioner_workflow", "duration": "00:00:02", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerModulesIntegration::test_end_to_end_practitioner_workflow</td>", "<td class=\"col-duration\">00:00:02</td>", "<td class=\"col-links\"></td>"], "log": "----------------------------- Captured stdout call -----------------------------\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\n2025-11-13 14:07:33 - PreparePractitionerAndBundlePractitioner - INFO - [logger.py:79] - Practitioner created with ID: 85bb7e54-1efb-4724-add0-9e72f0b63a16 and PractitionerResource is {&#x27;resourceType&#x27;: &#x27;Practitioner&#x27;, &#x27;id&#x27;: &#x27;85bb7e54-1efb-4724-add0-9e72f0b63a16&#x27;, &#x27;meta&#x27;: {&#x27;profile&#x27;: [&#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Practitioner&#x27;], &#x27;security&#x27;: [{&#x27;system&#x27;: &#x27;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&#x27;, &#x27;code&#x27;: &#x27;V&#x27;, &#x27;display&#x27;: &#x27;very restricted&#x27;}]}, &#x27;telecom&#x27;: [{&#x27;system&#x27;: &#x27;phone&#x27;, &#x27;value&#x27;: &#x27;555-123-4567&#x27;, &#x27;use&#x27;: &#x27;work&#x27;}], &#x27;name&#x27;: [{&#x27;family&#x27;: &#x27;Doe&#x27;, &#x27;given&#x27;: [&#x27;John&#x27;], &#x27;prefix&#x27;: [&#x27;Dr&#x27;]}], &#x27;extension&#x27;: [{&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ActionRequestedCode&#x27;, &#x27;valueCode&#x27;: &#x27;A&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceCode&#x27;, &#x27;valueCode&#x27;: &#x27;EEP&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceStartDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-01&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceEndDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-31&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-NPI&#x27;, &#x27;valueString&#x27;: &#x27;1234567890&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderTaxId&#x27;, &#x27;valueString&#x27;: &#x27;TAXID123&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderNumber&#x27;, &#x27;valueString&#x27;: &#x27;5432112345&#x27;}], &#x27;active&#x27;: True, &#x27;created&#x27;: &#x27;2025-11-13T14:07:33.540914&#x27;, &#x27;gender&#x27;: &#x27;male&#x27;}\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:175] - Console logging enabled\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:187] - Logging to file: /var/log/esmd-client.log\nSubmitting Practitioner Request...\n2025-11-13 14:07:33 - PractitionerRequestSubmitter - INFO - [logger.py:79] - Submitting Practitioner resource to https://dev.cpiapigateway.cms.gov/api/esmdf/v1/fhir/Practitioner/85bb7e54-1efb-4724-add0-9e72f0b63a16\n2025-11-13 14:07:35 - PractitionerRequestSubmitter - ERROR - [logger.py:87] - HTTP Error occurred: 422 Client Error: Unprocessable Entity for url: https://dev.cpiapigateway.cms.gov/api/esmdf/v1/fhir/Practitioner/85bb7e54-1efb-4724-add0-9e72f0b63a16, Status Code: 422, Response: {\n &quot;resourceType&quot;: &quot;OperationOutcome&quot;,\n &quot;meta&quot;: {\n &quot;profile&quot;: [\n &quot;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-OperationOutcome&quot;\n ]\n },\n &quot;extension&quot;: [\n {\n &quot;url&quot;: &quot;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-TransactionId&quot;,\n &quot;valueString&quot;: &quot;KFC0007283384EC&quot;\n }\n ],\n &quot;issue&quot;: [\n {\n &quot;severity&quot;: &quot;error&quot;,\n &quot;code&quot;: &quot;processing&quot;,\n &quot;details&quot;: {\n &quot;coding&quot;: [\n {\n &quot;system&quot;: &quot;https://terminology.esmddev.cms.gov:8099/fhir/CodeSystem/Esmd-CS-ErrorOrWarningCodes&quot;,\n &quot;code&quot;: &quot;NPI_NPPES_CHECK&quot;,\n &quot;display&quot;: &quot;The NPI 1234567890 received in the Registration Request for Action Code A is inactive or missing consent in the NPPES. &quot;\n }\n ]\n }\n }\n ]\n}\npractitioner_response: None\nFailed to submit the practitioner.\n\n------------------------------ Captured log call -------------------------------\nINFO PreparePractitionerAndBundlePractitioner:logger.py:175 Console logging enabled\nINFO PreparePractitionerAndBundlePractitioner:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO PreparePractitionerAndBundlePractitioner:logger.py:79 Practitioner created with ID: 85bb7e54-1efb-4724-add0-9e72f0b63a16 and PractitionerResource is {&#x27;resourceType&#x27;: &#x27;Practitioner&#x27;, &#x27;id&#x27;: &#x27;85bb7e54-1efb-4724-add0-9e72f0b63a16&#x27;, &#x27;meta&#x27;: {&#x27;profile&#x27;: [&#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Practitioner&#x27;], &#x27;security&#x27;: [{&#x27;system&#x27;: &#x27;http://terminology.hl7.org/CodeSystem/v3-Confidentiality&#x27;, &#x27;code&#x27;: &#x27;V&#x27;, &#x27;display&#x27;: &#x27;very restricted&#x27;}]}, &#x27;telecom&#x27;: [{&#x27;system&#x27;: &#x27;phone&#x27;, &#x27;value&#x27;: &#x27;555-123-4567&#x27;, &#x27;use&#x27;: &#x27;work&#x27;}], &#x27;name&#x27;: [{&#x27;family&#x27;: &#x27;Doe&#x27;, &#x27;given&#x27;: [&#x27;John&#x27;], &#x27;prefix&#x27;: [&#x27;Dr&#x27;]}], &#x27;extension&#x27;: [{&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ActionRequestedCode&#x27;, &#x27;valueCode&#x27;: &#x27;A&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceCode&#x27;, &#x27;valueCode&#x27;: &#x27;EEP&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceStartDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-01&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ServiceEndDate&#x27;, &#x27;valueDate&#x27;: &#x27;2024-01-31&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-NPI&#x27;, &#x27;valueString&#x27;: &#x27;1234567890&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderTaxId&#x27;, &#x27;valueString&#x27;: &#x27;TAXID123&#x27;}, {&#x27;url&#x27;: &#x27;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-ProviderNumber&#x27;, &#x27;valueString&#x27;: &#x27;5432112345&#x27;}], &#x27;active&#x27;: True, &#x27;created&#x27;: &#x27;2025-11-13T14:07:33.540914&#x27;, &#x27;gender&#x27;: &#x27;male&#x27;}\nINFO PractitionerRequestSubmitter:logger.py:175 Console logging enabled\nINFO PractitionerRequestSubmitter:logger.py:187 Logging to file: /var/log/esmd-client.log\nINFO PractitionerRequestSubmitter:logger.py:79 Submitting Practitioner resource to https://dev.cpiapigateway.cms.gov/api/esmdf/v1/fhir/Practitioner/85bb7e54-1efb-4724-add0-9e72f0b63a16\nERROR PractitionerRequestSubmitter:logger.py:87 HTTP Error occurred: 422 Client Error: Unprocessable Entity for url: https://dev.cpiapigateway.cms.gov/api/esmdf/v1/fhir/Practitioner/85bb7e54-1efb-4724-add0-9e72f0b63a16, Status Code: 422, Response: {\n &quot;resourceType&quot;: &quot;OperationOutcome&quot;,\n &quot;meta&quot;: {\n &quot;profile&quot;: [\n &quot;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-OperationOutcome&quot;\n ]\n },\n &quot;extension&quot;: [\n {\n &quot;url&quot;: &quot;https://terminology.esmddev.cms.gov:8099/fhir/StructureDefinition/Esmd-Ext-TransactionId&quot;,\n &quot;valueString&quot;: &quot;KFC0007283384EC&quot;\n }\n ],\n &quot;issue&quot;: [\n {\n &quot;severity&quot;: &quot;error&quot;,\n &quot;code&quot;: &quot;processing&quot;,\n &quot;details&quot;: {\n &quot;coding&quot;: [\n {\n &quot;system&quot;: &quot;https://terminology.esmddev.cms.gov:8099/fhir/CodeSystem/Esmd-CS-ErrorOrWarningCodes&quot;,\n &quot;code&quot;: &quot;NPI_NPPES_CHECK&quot;,\n &quot;display&quot;: &quot;The NPI 1234567890 received in the Registration Request for Action Code A is inactive or missing consent in the NPPES. &quot;\n }\n ]\n }\n }\n ]\n}\n\n"}], "tests/test_practitioner_modules.py::TestPractitionerModulesIntegration::test_batch_processing_end_to_end_workflow": [{"extras": [], "result": "Passed", "testId": "tests/test_practitioner_modules.py::TestPractitionerModulesIntegration::test_batch_processing_end_to_end_workflow", "duration": "2 ms", "resultsTableRow": ["<td class=\"col-result\">Passed</td>", "<td class=\"col-testId\">tests/test_practitioner_modules.py::TestPractitionerModulesIntegration::test_batch_processing_end_to_end_workflow</td>", "<td class=\"col-duration\">2 ms</td>", "<td class=\"col-links\"></td>"], "log": "No log output captured."}]}, "renderCollapsed": ["passed"], "initialSort": "result", "title": "report_practitioner_modules.html"}"></div>
<script>
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const { getCollapsedCategory, setCollapsedIds } = require('./storage.js')
class DataManager {
setManager(data) {
const collapsedCategories = [...getCollapsedCategory(data.renderCollapsed)]
const collapsedIds = []
const tests = Object.values(data.tests).flat().map((test, index) => {
const collapsed = collapsedCategories.includes(test.result.toLowerCase())
const id = `test_${index}`
if (collapsed) {
collapsedIds.push(id)
}
return {
...test,
id,
collapsed,
}
})
const dataBlob = { ...data, tests }
this.data = { ...dataBlob }
this.renderData = { ...dataBlob }
setCollapsedIds(collapsedIds)
}
get allData() {
return { ...this.data }
}
resetRender() {
this.renderData = { ...this.data }
}
setRender(data) {
this.renderData.tests = [...data]
}
toggleCollapsedItem(id) {
this.renderData.tests = this.renderData.tests.map((test) =>
test.id === id ? { ...test, collapsed: !test.collapsed } : test,
)
}
set allCollapsed(collapsed) {
this.renderData = { ...this.renderData, tests: [...this.renderData.tests.map((test) => (
{ ...test, collapsed }
))] }
}
get testSubset() {
return [...this.renderData.tests]
}
get environment() {
return this.renderData.environment
}
get initialSort() {
return this.data.initialSort
}
}
module.exports = {
manager: new DataManager(),
}
},{"./storage.js":8}],2:[function(require,module,exports){
const mediaViewer = require('./mediaviewer.js')
const templateEnvRow = document.getElementById('template_environment_row')
const templateResult = document.getElementById('template_results-table__tbody')
function htmlToElements(html) {
const temp = document.createElement('template')
temp.innerHTML = html
return temp.content.childNodes
}
const find = (selector, elem) => {
if (!elem) {
elem = document
}
return elem.querySelector(selector)
}
const findAll = (selector, elem) => {
if (!elem) {
elem = document
}
return [...elem.querySelectorAll(selector)]
}
const dom = {
getStaticRow: (key, value) => {
const envRow = templateEnvRow.content.cloneNode(true)
const isObj = typeof value === 'object' && value !== null
const values = isObj ? Object.keys(value).map((k) => `${k}: ${value[k]}`) : null
const valuesElement = htmlToElements(
values ? `<ul>${values.map((val) => `<li>${val}</li>`).join('')}<ul>` : `<div>${value}</div>`)[0]
const td = findAll('td', envRow)
td[0].textContent = key
td[1].appendChild(valuesElement)
return envRow
},
getResultTBody: ({ testId, id, log, extras, resultsTableRow, tableHtml, result, collapsed }) => {
const resultBody = templateResult.content.cloneNode(true)
resultBody.querySelector('tbody').classList.add(result.toLowerCase())
resultBody.querySelector('tbody').id = testId
resultBody.querySelector('.collapsible').dataset.id = id
resultsTableRow.forEach((html) => {
const t = document.createElement('template')
t.innerHTML = html
resultBody.querySelector('.collapsible').appendChild(t.content)
})
if (log) {
// Wrap lines starting with "E" with span.error to color those lines red
const wrappedLog = log.replace(/^E.*$/gm, (match) => `<span class="error">${match}</span>`)
resultBody.querySelector('.log').innerHTML = wrappedLog
} else {
resultBody.querySelector('.log').remove()
}
if (collapsed) {
resultBody.querySelector('.collapsible > td')?.classList.add('collapsed')
resultBody.querySelector('.extras-row').classList.add('hidden')
} else {
resultBody.querySelector('.collapsible > td')?.classList.remove('collapsed')
}
const media = []
extras?.forEach(({ name, format_type, content }) => {
if (['image', 'video'].includes(format_type)) {
media.push({ path: content, name, format_type })
}
if (format_type === 'html') {
resultBody.querySelector('.extraHTML').insertAdjacentHTML('beforeend', `<div>${content}</div>`)
}
})
mediaViewer.setup(resultBody, media)
// Add custom html from the pytest_html_results_table_html hook
tableHtml?.forEach((item) => {
resultBody.querySelector('td[class="extra"]').insertAdjacentHTML('beforeend', item)
})
return resultBody
},
}
module.exports = {
dom,
htmlToElements,
find,
findAll,
}
},{"./mediaviewer.js":6}],3:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const storageModule = require('./storage.js')
const getFilteredSubSet = (filter) =>
manager.allData.tests.filter(({ result }) => filter.includes(result.toLowerCase()))
const doInitFilter = () => {
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
}
const doFilter = (type, show) => {
if (show) {
storageModule.showCategory(type)
} else {
storageModule.hideCategory(type)
}
const currentFilter = storageModule.getVisible()
const filteredSubset = getFilteredSubSet(currentFilter)
manager.setRender(filteredSubset)
const sortColumn = storageModule.getSort()
doSort(sortColumn, true)
}
module.exports = {
doFilter,
doInitFilter,
}
},{"./datamanager.js":1,"./sort.js":7,"./storage.js":8}],4:[function(require,module,exports){
const { redraw, bindEvents, renderStatic } = require('./main.js')
const { doInitFilter } = require('./filter.js')
const { doInitSort } = require('./sort.js')
const { manager } = require('./datamanager.js')
const data = JSON.parse(document.getElementById('data-container').dataset.jsonblob)
function init() {
manager.setManager(data)
doInitFilter()
doInitSort()
renderStatic()
redraw()
bindEvents()
}
init()
},{"./datamanager.js":1,"./filter.js":3,"./main.js":5,"./sort.js":7}],5:[function(require,module,exports){
const { dom, find, findAll } = require('./dom.js')
const { manager } = require('./datamanager.js')
const { doSort } = require('./sort.js')
const { doFilter } = require('./filter.js')
const {
getVisible,
getCollapsedIds,
setCollapsedIds,
getSort,
getSortDirection,
possibleFilters,
} = require('./storage.js')
const removeChildren = (node) => {
while (node.firstChild) {
node.removeChild(node.firstChild)
}
}
const renderStatic = () => {
const renderEnvironmentTable = () => {
const environment = manager.environment
const rows = Object.keys(environment).map((key) => dom.getStaticRow(key, environment[key]))
const table = document.getElementById('environment')
removeChildren(table)
rows.forEach((row) => table.appendChild(row))
}
renderEnvironmentTable()
}
const addItemToggleListener = (elem) => {
elem.addEventListener('click', ({ target }) => {
const id = target.parentElement.dataset.id
manager.toggleCollapsedItem(id)
const collapsedIds = getCollapsedIds()
if (collapsedIds.includes(id)) {
const updated = collapsedIds.filter((item) => item !== id)
setCollapsedIds(updated)
} else {
collapsedIds.push(id)
setCollapsedIds(collapsedIds)
}
redraw()
})
}
const renderContent = (tests) => {
const sortAttr = getSort(manager.initialSort)
const sortAsc = JSON.parse(getSortDirection())
const rows = tests.map(dom.getResultTBody)
const table = document.getElementById('results-table')
const tableHeader = document.getElementById('results-table-head')
const newTable = document.createElement('table')
newTable.id = 'results-table'
// remove all sorting classes and set the relevant
findAll('.sortable', tableHeader).forEach((elem) => elem.classList.remove('asc', 'desc'))
tableHeader.querySelector(`.sortable[data-column-type="${sortAttr}"]`)?.classList.add(sortAsc ? 'desc' : 'asc')
newTable.appendChild(tableHeader)
if (!rows.length) {
const emptyTable = document.getElementById('template_results-table__body--empty').content.cloneNode(true)
newTable.appendChild(emptyTable)
} else {
rows.forEach((row) => {
if (!!row) {
findAll('.collapsible td:not(.col-links', row).forEach(addItemToggleListener)
find('.logexpander', row).addEventListener('click',
(evt) => evt.target.parentNode.classList.toggle('expanded'),
)
newTable.appendChild(row)
}
})
}
table.replaceWith(newTable)
}
const renderDerived = () => {
const currentFilter = getVisible()
possibleFilters.forEach((result) => {
const input = document.querySelector(`input[data-test-result="${result}"]`)
input.checked = currentFilter.includes(result)
})
}
const bindEvents = () => {
const filterColumn = (evt) => {
const { target: element } = evt
const { testResult } = element.dataset
doFilter(testResult, element.checked)
const collapsedIds = getCollapsedIds()
const updated = manager.renderData.tests.map((test) => {
return {
...test,
collapsed: collapsedIds.includes(test.id),
}
})
manager.setRender(updated)
redraw()
}
const header = document.getElementById('environment-header')
header.addEventListener('click', () => {
const table = document.getElementById('environment')
table.classList.toggle('hidden')
header.classList.toggle('collapsed')
})
findAll('input[name="filter_checkbox"]').forEach((elem) => {
elem.addEventListener('click', filterColumn)
})
findAll('.sortable').forEach((elem) => {
elem.addEventListener('click', (evt) => {
const { target: element } = evt
const { columnType } = element.dataset
doSort(columnType)
redraw()
})
})
document.getElementById('show_all_details').addEventListener('click', () => {
manager.allCollapsed = false
setCollapsedIds([])
redraw()
})
document.getElementById('hide_all_details').addEventListener('click', () => {
manager.allCollapsed = true
const allIds = manager.renderData.tests.map((test) => test.id)
setCollapsedIds(allIds)
redraw()
})
}
const redraw = () => {
const { testSubset } = manager
renderContent(testSubset)
renderDerived()
}
module.exports = {
redraw,
bindEvents,
renderStatic,
}
},{"./datamanager.js":1,"./dom.js":2,"./filter.js":3,"./sort.js":7,"./storage.js":8}],6:[function(require,module,exports){
class MediaViewer {
constructor(assets) {
this.assets = assets
this.index = 0
}
nextActive() {
this.index = this.index === this.assets.length - 1 ? 0 : this.index + 1
return [this.activeFile, this.index]
}
prevActive() {
this.index = this.index === 0 ? this.assets.length - 1 : this.index -1
return [this.activeFile, this.index]
}
get currentIndex() {
return this.index
}
get activeFile() {
return this.assets[this.index]
}
}
const setup = (resultBody, assets) => {
if (!assets.length) {
resultBody.querySelector('.media').classList.add('hidden')
return
}
const mediaViewer = new MediaViewer(assets)
const container = resultBody.querySelector('.media-container')
const leftArrow = resultBody.querySelector('.media-container__nav--left')
const rightArrow = resultBody.querySelector('.media-container__nav--right')
const mediaName = resultBody.querySelector('.media__name')
const counter = resultBody.querySelector('.media__counter')
const imageEl = resultBody.querySelector('img')
const sourceEl = resultBody.querySelector('source')
const videoEl = resultBody.querySelector('video')
const setImg = (media, index) => {
if (media?.format_type === 'image') {
imageEl.src = media.path
imageEl.classList.remove('hidden')
videoEl.classList.add('hidden')
} else if (media?.format_type === 'video') {
sourceEl.src = media.path
videoEl.classList.remove('hidden')
imageEl.classList.add('hidden')
}
mediaName.innerText = media?.name
counter.innerText = `${index + 1} / ${assets.length}`
}
setImg(mediaViewer.activeFile, mediaViewer.currentIndex)
const moveLeft = () => {
const [media, index] = mediaViewer.prevActive()
setImg(media, index)
}
const doRight = () => {
const [media, index] = mediaViewer.nextActive()
setImg(media, index)
}
const openImg = () => {
window.open(mediaViewer.activeFile.path, '_blank')
}
if (assets.length === 1) {
container.classList.add('media-container--fullscreen')
} else {
leftArrow.addEventListener('click', moveLeft)
rightArrow.addEventListener('click', doRight)
}
imageEl.addEventListener('click', openImg)
}
module.exports = {
setup,
}
},{}],7:[function(require,module,exports){
const { manager } = require('./datamanager.js')
const storageModule = require('./storage.js')
const genericSort = (list, key, ascending, customOrder) => {
let sorted
if (customOrder) {
sorted = list.sort((a, b) => {
const aValue = a.result.toLowerCase()
const bValue = b.result.toLowerCase()
const aIndex = customOrder.findIndex((item) => item.toLowerCase() === aValue)
const bIndex = customOrder.findIndex((item) => item.toLowerCase() === bValue)
// Compare the indices to determine the sort order
return aIndex - bIndex
})
} else {
sorted = list.sort((a, b) => a[key] === b[key] ? 0 : a[key] > b[key] ? 1 : -1)
}
if (ascending) {
sorted.reverse()
}
return sorted
}
const durationSort = (list, ascending) => {
const parseDuration = (duration) => {
if (duration.includes(':')) {
// If it's in the format "HH:mm:ss"
const [hours, minutes, seconds] = duration.split(':').map(Number)
return (hours * 3600 + minutes * 60 + seconds) * 1000
} else {
// If it's in the format "nnn ms"
return parseInt(duration)
}
}
const sorted = list.sort((a, b) => parseDuration(a['duration']) - parseDuration(b['duration']))
if (ascending) {
sorted.reverse()
}
return sorted
}
const doInitSort = () => {
const type = storageModule.getSort(manager.initialSort)
const ascending = storageModule.getSortDirection()
const list = manager.testSubset
const initialOrder = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed', 'Skipped', 'Passed']
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
if (type?.toLowerCase() === 'original') {
manager.setRender(list)
} else {
let sortedList
switch (type) {
case 'duration':
sortedList = durationSort(list, ascending)
break
case 'result':
sortedList = genericSort(list, type, ascending, initialOrder)
break
default:
sortedList = genericSort(list, type, ascending)
break
}
manager.setRender(sortedList)
}
}
const doSort = (type, skipDirection) => {
const newSortType = storageModule.getSort(manager.initialSort) !== type
const currentAsc = storageModule.getSortDirection()
let ascending
if (skipDirection) {
ascending = currentAsc
} else {
ascending = newSortType ? false : !currentAsc
}
storageModule.setSort(type)
storageModule.setSortDirection(ascending)
const list = manager.testSubset
const sortedList = type === 'duration' ? durationSort(list, ascending) : genericSort(list, type, ascending)
manager.setRender(sortedList)
}
module.exports = {
doInitSort,
doSort,
}
},{"./datamanager.js":1,"./storage.js":8}],8:[function(require,module,exports){
const possibleFilters = [
'passed',
'skipped',
'failed',
'error',
'xfailed',
'xpassed',
'rerun',
]
const getVisible = () => {
const url = new URL(window.location.href)
const settings = new URLSearchParams(url.search).get('visible')
const lower = (item) => {
const lowerItem = item.toLowerCase()
if (possibleFilters.includes(lowerItem)) {
return lowerItem
}
return null
}
return settings === null ?
possibleFilters :
[...new Set(settings?.split(',').map(lower).filter((item) => item))]
}
const hideCategory = (categoryToHide) => {
const url = new URL(window.location.href)
const visibleParams = new URLSearchParams(url.search).get('visible')
const currentVisible = visibleParams ? visibleParams.split(',') : [...possibleFilters]
const settings = [...new Set(currentVisible)].filter((f) => f !== categoryToHide).join(',')
url.searchParams.set('visible', settings)
window.history.pushState({}, null, unescape(url.href))
}
const showCategory = (categoryToShow) => {
if (typeof window === 'undefined') {
return
}
const url = new URL(window.location.href)
const currentVisible = new URLSearchParams(url.search).get('visible')?.split(',').filter(Boolean) ||
[...possibleFilters]
const settings = [...new Set([categoryToShow, ...currentVisible])]
const noFilter = possibleFilters.length === settings.length || !settings.length
noFilter ? url.searchParams.delete('visible') : url.searchParams.set('visible', settings.join(','))
window.history.pushState({}, null, unescape(url.href))
}
const getSort = (initialSort) => {
const url = new URL(window.location.href)
let sort = new URLSearchParams(url.search).get('sort')
if (!sort) {
sort = initialSort || 'result'
}
return sort
}
const setSort = (type) => {
const url = new URL(window.location.href)
url.searchParams.set('sort', type)
window.history.pushState({}, null, unescape(url.href))
}
const getCollapsedCategory = (renderCollapsed) => {
let categories
if (typeof window !== 'undefined') {
const url = new URL(window.location.href)
const collapsedItems = new URLSearchParams(url.search).get('collapsed')
switch (true) {
case !renderCollapsed && collapsedItems === null:
categories = ['passed']
break
case collapsedItems?.length === 0 || /^["']{2}$/.test(collapsedItems):
categories = []
break
case /^all$/.test(collapsedItems) || collapsedItems === null && /^all$/.test(renderCollapsed):
categories = [...possibleFilters]
break
default:
categories = collapsedItems?.split(',').map((item) => item.toLowerCase()) || renderCollapsed
break
}
} else {
categories = []
}
return categories
}
const getSortDirection = () => JSON.parse(sessionStorage.getItem('sortAsc')) || false
const setSortDirection = (ascending) => sessionStorage.setItem('sortAsc', ascending)
const getCollapsedIds = () => JSON.parse(sessionStorage.getItem('collapsedIds')) || []
const setCollapsedIds = (list) => sessionStorage.setItem('collapsedIds', JSON.stringify(list))
module.exports = {
getVisible,
hideCategory,
showCategory,
getCollapsedIds,
setCollapsedIds,
getSort,
setSort,
getSortDirection,
setSortDirection,
getCollapsedCategory,
possibleFilters,
}
},{}]},{},[4]);
</script>
</footer>
</html>