fhirsmith 0.14.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +3 -2
  3. package/config-template.json +9 -0
  4. package/library/changelog.js +57 -0
  5. package/library/fhir-openapi-schema.js +441 -0
  6. package/library/html-server.js +9 -3
  7. package/library/npm-audit.js +265 -0
  8. package/library/openapi-doc.js +557 -0
  9. package/library/utilities.js +21 -0
  10. package/package.json +10 -4
  11. package/packages/openapi.js +13 -0
  12. package/packages/openapi.yaml +603 -0
  13. package/packages/packages-template.html +4 -2
  14. package/packages/packages.js +286 -81
  15. package/packages/readme.md +120 -0
  16. package/registry/api.js +117 -41
  17. package/registry/crawler.js +41 -0
  18. package/registry/fhirsmith-releases.js +167 -0
  19. package/registry/model.js +13 -0
  20. package/registry/openapi.js +13 -0
  21. package/registry/openapi.yaml +311 -0
  22. package/registry/readme.md +107 -208
  23. package/registry/registry-template.html +4 -1
  24. package/registry/registry.js +198 -19
  25. package/server.js +19 -5
  26. package/testing/openapi-schemas.config.js +58 -0
  27. package/testing/openapi-schemas.json +1920 -0
  28. package/testing/openapi.js +15 -0
  29. package/testing/openapi.yaml +273 -0
  30. package/testing/readme.md +43 -1
  31. package/testing/search.js +1 -1
  32. package/testing/testing-template.html +2 -0
  33. package/testing/testing.js +24 -0
  34. package/translations/Messages.properties +1 -0
  35. package/tx/README.md +78 -4
  36. package/tx/cm/cm-api.js +25 -10
  37. package/tx/cm/cm-database.js +10 -5
  38. package/tx/cm/cm-package.js +61 -15
  39. package/tx/cs/cs-provider-api.js +22 -7
  40. package/tx/cs/cs-provider-list.js +10 -9
  41. package/tx/cs/cs-rxnorm.js +23 -6
  42. package/tx/html/tx-template.html +2 -0
  43. package/tx/library/canonical-resource.js +50 -1
  44. package/tx/library/codesystem.js +1 -0
  45. package/tx/library/conceptmap.js +1 -0
  46. package/tx/library/resource-ids.js +107 -0
  47. package/tx/library/valueset.js +16 -0
  48. package/tx/library.js +113 -26
  49. package/tx/ocl/cm-ocl.cjs +23 -15
  50. package/tx/ocl/cs-ocl.cjs +9 -10
  51. package/tx/ocl/vs-ocl.cjs +17 -17
  52. package/tx/openapi-operations.js +363 -0
  53. package/tx/openapi-schemas.config.js +118 -0
  54. package/tx/openapi-schemas.json +7903 -0
  55. package/tx/openapi.js +289 -0
  56. package/tx/openapi.yaml +151 -0
  57. package/tx/operation-context.js +15 -0
  58. package/tx/params.js +3 -12
  59. package/tx/provider.js +90 -14
  60. package/tx/tx-html.js +6 -0
  61. package/tx/tx.fhir.org.yml +16 -8
  62. package/tx/tx.js +62 -1
  63. package/tx/vs/vs-api.js +25 -10
  64. package/tx/vs/vs-database.js +14 -9
  65. package/tx/vs/vs-package.js +58 -31
  66. package/tx/vs/vs-vsac.js +20 -5
  67. package/tx/workers/expand.js +35 -16
  68. package/tx/workers/metadata.js +2 -14
  69. package/tx/workers/read.js +3 -18
  70. package/tx/workers/validate.js +65 -19
  71. package/tx/workers/worker.js +29 -8
  72. package/utilities/extract-schema-json.js +167 -0
  73. package/utilities/generate-openapi-schemas.js +49 -0
  74. package/xig/xig.js +2 -4
@@ -0,0 +1,1920 @@
1
+ {
2
+ "generatedFrom": "hl7.fhir.r5.core#5.0.0",
3
+ "schemas": {
4
+ "AnyResource": {
5
+ "type": "object",
6
+ "description": "A FHIR resource of any type. Not described further here.",
7
+ "properties": {
8
+ "resourceType": {
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": [
13
+ "resourceType"
14
+ ],
15
+ "additionalProperties": true
16
+ },
17
+ "Bundle": {
18
+ "type": "object",
19
+ "description": "A container for a collection of resources.",
20
+ "properties": {
21
+ "resourceType": {
22
+ "const": "Bundle"
23
+ },
24
+ "id": {
25
+ "type": "string",
26
+ "description": "Logical id of this artifact"
27
+ },
28
+ "meta": {
29
+ "$ref": "#/components/schemas/Meta",
30
+ "description": "Metadata about the resource"
31
+ },
32
+ "implicitRules": {
33
+ "x-fhir-type": "uri",
34
+ "type": "string",
35
+ "pattern": "^(\\S*)$",
36
+ "description": "A set of rules under which this content was created"
37
+ },
38
+ "_implicitRules": {
39
+ "$ref": "#/components/schemas/Element"
40
+ },
41
+ "language": {
42
+ "x-fhir-type": "code",
43
+ "type": "string",
44
+ "pattern": "^([^\\s]+( [^\\s]+)*)$",
45
+ "description": "Language of the resource content"
46
+ },
47
+ "_language": {
48
+ "$ref": "#/components/schemas/Element"
49
+ },
50
+ "identifier": {
51
+ "$ref": "#/components/schemas/Identifier",
52
+ "description": "Persistent identifier for the bundle"
53
+ },
54
+ "type": {
55
+ "x-fhir-type": "code",
56
+ "type": "string",
57
+ "enum": [
58
+ "document",
59
+ "message",
60
+ "transaction",
61
+ "transaction-response",
62
+ "batch",
63
+ "batch-response",
64
+ "history",
65
+ "searchset",
66
+ "collection",
67
+ "subscription-notification"
68
+ ],
69
+ "description": "document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection | subscription-notification"
70
+ },
71
+ "_type": {
72
+ "$ref": "#/components/schemas/Element"
73
+ },
74
+ "timestamp": {
75
+ "x-fhir-type": "instant",
76
+ "type": "string",
77
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))$",
78
+ "description": "When the bundle was assembled"
79
+ },
80
+ "_timestamp": {
81
+ "$ref": "#/components/schemas/Element"
82
+ },
83
+ "total": {
84
+ "x-fhir-type": "unsignedInt",
85
+ "type": "integer",
86
+ "minimum": 0,
87
+ "description": "If search, the total number of matches"
88
+ },
89
+ "_total": {
90
+ "$ref": "#/components/schemas/Element"
91
+ },
92
+ "link": {
93
+ "type": "array",
94
+ "description": "Links related to this Bundle",
95
+ "items": {
96
+ "$ref": "#/components/schemas/Bundle_Link"
97
+ }
98
+ },
99
+ "entry": {
100
+ "type": "array",
101
+ "description": "Entry in the bundle - will have a resource or information",
102
+ "items": {
103
+ "$ref": "#/components/schemas/Bundle_Entry"
104
+ }
105
+ },
106
+ "signature": {
107
+ "$ref": "#/components/schemas/Signature",
108
+ "description": "Digital Signature"
109
+ },
110
+ "issues": {
111
+ "$ref": "#/components/schemas/AnyResource",
112
+ "description": "Issues with the Bundle"
113
+ }
114
+ },
115
+ "required": [
116
+ "resourceType",
117
+ "type"
118
+ ],
119
+ "additionalProperties": false
120
+ },
121
+ "Bundle_Entry": {
122
+ "type": "object",
123
+ "description": "An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).",
124
+ "properties": {
125
+ "id": {
126
+ "type": "string",
127
+ "description": "Unique id for inter-element referencing"
128
+ },
129
+ "extension": {
130
+ "type": "array",
131
+ "description": "Additional content defined by implementations",
132
+ "items": {
133
+ "$ref": "#/components/schemas/Extension"
134
+ }
135
+ },
136
+ "modifierExtension": {
137
+ "type": "array",
138
+ "description": "Extensions that cannot be ignored even if unrecognized",
139
+ "items": {
140
+ "$ref": "#/components/schemas/Extension"
141
+ }
142
+ },
143
+ "link": {
144
+ "type": "array",
145
+ "description": "Links related to this entry",
146
+ "items": {
147
+ "$ref": "#/components/schemas/Bundle_Link"
148
+ }
149
+ },
150
+ "fullUrl": {
151
+ "x-fhir-type": "uri",
152
+ "type": "string",
153
+ "pattern": "^(\\S*)$",
154
+ "description": "URI for resource (e.g. the absolute URL server address, URI for UUID/OID, etc.)"
155
+ },
156
+ "_fullUrl": {
157
+ "$ref": "#/components/schemas/Element"
158
+ },
159
+ "resource": {
160
+ "$ref": "#/components/schemas/AnyResource",
161
+ "description": "A resource in the bundle"
162
+ },
163
+ "search": {
164
+ "$ref": "#/components/schemas/Bundle_Entry_Search",
165
+ "description": "Search related information"
166
+ },
167
+ "request": {
168
+ "$ref": "#/components/schemas/Bundle_Entry_Request",
169
+ "description": "Additional execution information (transaction/batch/history)"
170
+ },
171
+ "response": {
172
+ "$ref": "#/components/schemas/Bundle_Entry_Response",
173
+ "description": "Results of execution (transaction/batch/history)"
174
+ }
175
+ },
176
+ "additionalProperties": false
177
+ },
178
+ "Bundle_Entry_Request": {
179
+ "type": "object",
180
+ "description": "Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.",
181
+ "properties": {
182
+ "id": {
183
+ "type": "string",
184
+ "description": "Unique id for inter-element referencing"
185
+ },
186
+ "extension": {
187
+ "type": "array",
188
+ "description": "Additional content defined by implementations",
189
+ "items": {
190
+ "$ref": "#/components/schemas/Extension"
191
+ }
192
+ },
193
+ "modifierExtension": {
194
+ "type": "array",
195
+ "description": "Extensions that cannot be ignored even if unrecognized",
196
+ "items": {
197
+ "$ref": "#/components/schemas/Extension"
198
+ }
199
+ },
200
+ "method": {
201
+ "x-fhir-type": "code",
202
+ "type": "string",
203
+ "enum": [
204
+ "GET",
205
+ "HEAD",
206
+ "POST",
207
+ "PUT",
208
+ "DELETE",
209
+ "PATCH"
210
+ ],
211
+ "description": "GET | HEAD | POST | PUT | DELETE | PATCH"
212
+ },
213
+ "_method": {
214
+ "$ref": "#/components/schemas/Element"
215
+ },
216
+ "url": {
217
+ "x-fhir-type": "uri",
218
+ "type": "string",
219
+ "pattern": "^(\\S*)$",
220
+ "description": "URL for HTTP equivalent of this entry"
221
+ },
222
+ "_url": {
223
+ "$ref": "#/components/schemas/Element"
224
+ },
225
+ "ifNoneMatch": {
226
+ "x-fhir-type": "string",
227
+ "type": "string",
228
+ "pattern": "^[\\s\\S]+$",
229
+ "description": "For managing cache validation"
230
+ },
231
+ "_ifNoneMatch": {
232
+ "$ref": "#/components/schemas/Element"
233
+ },
234
+ "ifModifiedSince": {
235
+ "x-fhir-type": "instant",
236
+ "type": "string",
237
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))$",
238
+ "description": "For managing cache currency"
239
+ },
240
+ "_ifModifiedSince": {
241
+ "$ref": "#/components/schemas/Element"
242
+ },
243
+ "ifMatch": {
244
+ "x-fhir-type": "string",
245
+ "type": "string",
246
+ "pattern": "^[\\s\\S]+$",
247
+ "description": "For managing update contention"
248
+ },
249
+ "_ifMatch": {
250
+ "$ref": "#/components/schemas/Element"
251
+ },
252
+ "ifNoneExist": {
253
+ "x-fhir-type": "string",
254
+ "type": "string",
255
+ "pattern": "^[\\s\\S]+$",
256
+ "description": "For conditional creates"
257
+ },
258
+ "_ifNoneExist": {
259
+ "$ref": "#/components/schemas/Element"
260
+ }
261
+ },
262
+ "required": [
263
+ "method",
264
+ "url"
265
+ ],
266
+ "additionalProperties": false
267
+ },
268
+ "Bundle_Entry_Response": {
269
+ "type": "object",
270
+ "description": "Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.",
271
+ "properties": {
272
+ "id": {
273
+ "type": "string",
274
+ "description": "Unique id for inter-element referencing"
275
+ },
276
+ "extension": {
277
+ "type": "array",
278
+ "description": "Additional content defined by implementations",
279
+ "items": {
280
+ "$ref": "#/components/schemas/Extension"
281
+ }
282
+ },
283
+ "modifierExtension": {
284
+ "type": "array",
285
+ "description": "Extensions that cannot be ignored even if unrecognized",
286
+ "items": {
287
+ "$ref": "#/components/schemas/Extension"
288
+ }
289
+ },
290
+ "status": {
291
+ "x-fhir-type": "string",
292
+ "type": "string",
293
+ "pattern": "^[\\s\\S]+$",
294
+ "description": "Status response code (text optional)"
295
+ },
296
+ "_status": {
297
+ "$ref": "#/components/schemas/Element"
298
+ },
299
+ "location": {
300
+ "x-fhir-type": "uri",
301
+ "type": "string",
302
+ "pattern": "^(\\S*)$",
303
+ "description": "The location (if the operation returns a location)"
304
+ },
305
+ "_location": {
306
+ "$ref": "#/components/schemas/Element"
307
+ },
308
+ "etag": {
309
+ "x-fhir-type": "string",
310
+ "type": "string",
311
+ "pattern": "^[\\s\\S]+$",
312
+ "description": "The Etag for the resource (if relevant)"
313
+ },
314
+ "_etag": {
315
+ "$ref": "#/components/schemas/Element"
316
+ },
317
+ "lastModified": {
318
+ "x-fhir-type": "instant",
319
+ "type": "string",
320
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))$",
321
+ "description": "Server's date time modified"
322
+ },
323
+ "_lastModified": {
324
+ "$ref": "#/components/schemas/Element"
325
+ },
326
+ "outcome": {
327
+ "$ref": "#/components/schemas/AnyResource",
328
+ "description": "OperationOutcome with hints and warnings (for batch/transaction)"
329
+ }
330
+ },
331
+ "required": [
332
+ "status"
333
+ ],
334
+ "additionalProperties": false
335
+ },
336
+ "Bundle_Entry_Search": {
337
+ "type": "object",
338
+ "description": "Information about the search process that lead to the creation of this entry.",
339
+ "properties": {
340
+ "id": {
341
+ "type": "string",
342
+ "description": "Unique id for inter-element referencing"
343
+ },
344
+ "extension": {
345
+ "type": "array",
346
+ "description": "Additional content defined by implementations",
347
+ "items": {
348
+ "$ref": "#/components/schemas/Extension"
349
+ }
350
+ },
351
+ "modifierExtension": {
352
+ "type": "array",
353
+ "description": "Extensions that cannot be ignored even if unrecognized",
354
+ "items": {
355
+ "$ref": "#/components/schemas/Extension"
356
+ }
357
+ },
358
+ "mode": {
359
+ "x-fhir-type": "code",
360
+ "type": "string",
361
+ "enum": [
362
+ "match",
363
+ "include",
364
+ "outcome"
365
+ ],
366
+ "description": "match | include - why this is in the result set"
367
+ },
368
+ "_mode": {
369
+ "$ref": "#/components/schemas/Element"
370
+ },
371
+ "score": {
372
+ "x-fhir-type": "decimal",
373
+ "type": "number",
374
+ "description": "Search ranking (between 0 and 1)"
375
+ },
376
+ "_score": {
377
+ "$ref": "#/components/schemas/Element"
378
+ }
379
+ },
380
+ "additionalProperties": false
381
+ },
382
+ "Bundle_Link": {
383
+ "type": "object",
384
+ "description": "A series of links that provide context to this bundle.",
385
+ "properties": {
386
+ "id": {
387
+ "type": "string",
388
+ "description": "Unique id for inter-element referencing"
389
+ },
390
+ "extension": {
391
+ "type": "array",
392
+ "description": "Additional content defined by implementations",
393
+ "items": {
394
+ "$ref": "#/components/schemas/Extension"
395
+ }
396
+ },
397
+ "modifierExtension": {
398
+ "type": "array",
399
+ "description": "Extensions that cannot be ignored even if unrecognized",
400
+ "items": {
401
+ "$ref": "#/components/schemas/Extension"
402
+ }
403
+ },
404
+ "relation": {
405
+ "x-fhir-type": "code",
406
+ "type": "string",
407
+ "enum": [
408
+ "about",
409
+ "acl",
410
+ "alternate",
411
+ "amphtml",
412
+ "appendix",
413
+ "apple-touch-icon",
414
+ "apple-touch-startup-image",
415
+ "archives",
416
+ "author",
417
+ "blocked-by",
418
+ "bookmark",
419
+ "canonical",
420
+ "chapter",
421
+ "cite-as",
422
+ "collection",
423
+ "contents",
424
+ "convertedFrom",
425
+ "copyright",
426
+ "create-form",
427
+ "current",
428
+ "describedby",
429
+ "describes",
430
+ "disclosure",
431
+ "dns-prefetch",
432
+ "duplicate",
433
+ "edit",
434
+ "edit-form",
435
+ "edit-media",
436
+ "enclosure",
437
+ "external",
438
+ "first",
439
+ "glossary",
440
+ "help",
441
+ "hosts",
442
+ "hub",
443
+ "icon",
444
+ "index",
445
+ "intervalAfter",
446
+ "intervalBefore",
447
+ "intervalContains",
448
+ "intervalDisjoint",
449
+ "intervalDuring",
450
+ "intervalEquals",
451
+ "intervalFinishedBy",
452
+ "intervalFinishes",
453
+ "intervalIn",
454
+ "intervalMeets",
455
+ "intervalMetBy",
456
+ "intervalOverlappedBy",
457
+ "intervalOverlaps",
458
+ "intervalStartedBy",
459
+ "intervalStarts",
460
+ "item",
461
+ "last",
462
+ "latest-version",
463
+ "license",
464
+ "linkset",
465
+ "lrdd",
466
+ "manifest",
467
+ "mask-icon",
468
+ "media-feed",
469
+ "memento",
470
+ "micropub",
471
+ "modulepreload",
472
+ "monitor",
473
+ "monitor-group",
474
+ "next",
475
+ "next-archive",
476
+ "nofollow",
477
+ "noopener",
478
+ "noreferrer",
479
+ "opener",
480
+ "openid2.local_id",
481
+ "openid2.provider",
482
+ "original",
483
+ "P3Pv1",
484
+ "payment",
485
+ "pingback",
486
+ "preconnect",
487
+ "predecessor-version",
488
+ "prefetch",
489
+ "preload",
490
+ "prerender",
491
+ "prev",
492
+ "preview",
493
+ "previous",
494
+ "prev-archive",
495
+ "privacy-policy",
496
+ "profile",
497
+ "publication",
498
+ "related",
499
+ "restconf",
500
+ "replies",
501
+ "ruleinput",
502
+ "search",
503
+ "section",
504
+ "self",
505
+ "service",
506
+ "service-desc",
507
+ "service-doc",
508
+ "service-meta",
509
+ "sponsored",
510
+ "start",
511
+ "status",
512
+ "stylesheet",
513
+ "subsection",
514
+ "successor-version",
515
+ "sunset",
516
+ "tag",
517
+ "terms-of-service",
518
+ "timegate",
519
+ "timemap",
520
+ "type",
521
+ "ugc",
522
+ "up",
523
+ "version-history",
524
+ "via",
525
+ "webmention",
526
+ "working-copy",
527
+ "working-copy-of"
528
+ ],
529
+ "description": "See http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1"
530
+ },
531
+ "_relation": {
532
+ "$ref": "#/components/schemas/Element"
533
+ },
534
+ "url": {
535
+ "x-fhir-type": "uri",
536
+ "type": "string",
537
+ "pattern": "^(\\S*)$",
538
+ "description": "Reference details for the link"
539
+ },
540
+ "_url": {
541
+ "$ref": "#/components/schemas/Element"
542
+ }
543
+ },
544
+ "required": [
545
+ "relation",
546
+ "url"
547
+ ],
548
+ "additionalProperties": false
549
+ },
550
+ "CodeableConcept": {
551
+ "type": "object",
552
+ "description": "CodeableConcept Type: A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.",
553
+ "properties": {
554
+ "id": {
555
+ "type": "string",
556
+ "description": "Unique id for inter-element referencing"
557
+ },
558
+ "extension": {
559
+ "type": "array",
560
+ "description": "Additional content defined by implementations",
561
+ "items": {
562
+ "$ref": "#/components/schemas/Extension"
563
+ }
564
+ },
565
+ "coding": {
566
+ "type": "array",
567
+ "description": "Code defined by a terminology system",
568
+ "items": {
569
+ "$ref": "#/components/schemas/Coding"
570
+ }
571
+ },
572
+ "text": {
573
+ "x-fhir-type": "string",
574
+ "type": "string",
575
+ "pattern": "^[\\s\\S]+$",
576
+ "description": "Plain text representation of the concept"
577
+ },
578
+ "_text": {
579
+ "$ref": "#/components/schemas/Element"
580
+ }
581
+ },
582
+ "additionalProperties": false
583
+ },
584
+ "Coding": {
585
+ "type": "object",
586
+ "description": "Coding Type: A reference to a code defined by a terminology system.",
587
+ "properties": {
588
+ "id": {
589
+ "type": "string",
590
+ "description": "Unique id for inter-element referencing"
591
+ },
592
+ "extension": {
593
+ "type": "array",
594
+ "description": "Additional content defined by implementations",
595
+ "items": {
596
+ "$ref": "#/components/schemas/Extension"
597
+ }
598
+ },
599
+ "system": {
600
+ "x-fhir-type": "uri",
601
+ "type": "string",
602
+ "pattern": "^(\\S*)$",
603
+ "description": "Identity of the terminology system"
604
+ },
605
+ "_system": {
606
+ "$ref": "#/components/schemas/Element"
607
+ },
608
+ "version": {
609
+ "x-fhir-type": "string",
610
+ "type": "string",
611
+ "pattern": "^[\\s\\S]+$",
612
+ "description": "Version of the system - if relevant"
613
+ },
614
+ "_version": {
615
+ "$ref": "#/components/schemas/Element"
616
+ },
617
+ "code": {
618
+ "x-fhir-type": "code",
619
+ "type": "string",
620
+ "pattern": "^([^\\s]+( [^\\s]+)*)$",
621
+ "description": "Symbol in syntax defined by the system"
622
+ },
623
+ "_code": {
624
+ "$ref": "#/components/schemas/Element"
625
+ },
626
+ "display": {
627
+ "x-fhir-type": "string",
628
+ "type": "string",
629
+ "pattern": "^[\\s\\S]+$",
630
+ "description": "Representation defined by the system"
631
+ },
632
+ "_display": {
633
+ "$ref": "#/components/schemas/Element"
634
+ },
635
+ "userSelected": {
636
+ "x-fhir-type": "boolean",
637
+ "type": "boolean",
638
+ "description": "If this coding was chosen directly by the user"
639
+ },
640
+ "_userSelected": {
641
+ "$ref": "#/components/schemas/Element"
642
+ }
643
+ },
644
+ "additionalProperties": false
645
+ },
646
+ "Element": {
647
+ "type": "object",
648
+ "description": "Element Type: Base definition for all elements in a resource.",
649
+ "properties": {
650
+ "id": {
651
+ "type": "string",
652
+ "description": "Unique id for inter-element referencing"
653
+ },
654
+ "extension": {
655
+ "type": "array",
656
+ "description": "Additional content defined by implementations",
657
+ "items": {
658
+ "$ref": "#/components/schemas/Extension"
659
+ }
660
+ }
661
+ },
662
+ "additionalProperties": false
663
+ },
664
+ "Extension": {
665
+ "type": "object",
666
+ "description": "An extension. The value (value[x]) can be any FHIR datatype, and is not described further here.",
667
+ "properties": {
668
+ "id": {
669
+ "type": "string"
670
+ },
671
+ "url": {
672
+ "type": "string",
673
+ "description": "The extension's definition"
674
+ },
675
+ "extension": {
676
+ "type": "array",
677
+ "items": {
678
+ "$ref": "#/components/schemas/Extension"
679
+ }
680
+ }
681
+ },
682
+ "patternProperties": {
683
+ "^_?value[A-Z][A-Za-z0-9]*$": {
684
+ "description": "The value (value[x]), and its _value[x] sibling for a primitive"
685
+ }
686
+ },
687
+ "required": [
688
+ "url"
689
+ ],
690
+ "additionalProperties": false
691
+ },
692
+ "Identifier": {
693
+ "type": "object",
694
+ "description": "Identifier Type: An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.",
695
+ "properties": {
696
+ "id": {
697
+ "type": "string",
698
+ "description": "Unique id for inter-element referencing"
699
+ },
700
+ "extension": {
701
+ "type": "array",
702
+ "description": "Additional content defined by implementations",
703
+ "items": {
704
+ "$ref": "#/components/schemas/Extension"
705
+ }
706
+ },
707
+ "use": {
708
+ "x-fhir-type": "code",
709
+ "type": "string",
710
+ "enum": [
711
+ "usual",
712
+ "official",
713
+ "temp",
714
+ "secondary",
715
+ "old"
716
+ ],
717
+ "description": "usual | official | temp | secondary | old (If known)"
718
+ },
719
+ "_use": {
720
+ "$ref": "#/components/schemas/Element"
721
+ },
722
+ "type": {
723
+ "$ref": "#/components/schemas/CodeableConcept",
724
+ "description": "Description of identifier"
725
+ },
726
+ "system": {
727
+ "x-fhir-type": "uri",
728
+ "type": "string",
729
+ "pattern": "^(\\S*)$",
730
+ "description": "The namespace for the identifier value"
731
+ },
732
+ "_system": {
733
+ "$ref": "#/components/schemas/Element"
734
+ },
735
+ "value": {
736
+ "x-fhir-type": "string",
737
+ "type": "string",
738
+ "pattern": "^[\\s\\S]+$",
739
+ "description": "The value that is unique"
740
+ },
741
+ "_value": {
742
+ "$ref": "#/components/schemas/Element"
743
+ },
744
+ "period": {
745
+ "$ref": "#/components/schemas/Period",
746
+ "description": "Time period when id is/was valid for use"
747
+ },
748
+ "assigner": {
749
+ "$ref": "#/components/schemas/Reference",
750
+ "description": "Organization that issued id (may be just text)"
751
+ }
752
+ },
753
+ "additionalProperties": false
754
+ },
755
+ "Meta": {
756
+ "type": "object",
757
+ "description": "Meta Type: The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
758
+ "properties": {
759
+ "id": {
760
+ "type": "string",
761
+ "description": "Unique id for inter-element referencing"
762
+ },
763
+ "extension": {
764
+ "type": "array",
765
+ "description": "Additional content defined by implementations",
766
+ "items": {
767
+ "$ref": "#/components/schemas/Extension"
768
+ }
769
+ },
770
+ "versionId": {
771
+ "x-fhir-type": "id",
772
+ "type": "string",
773
+ "pattern": "^([A-Za-z0-9\\-\\.]{1,64})$",
774
+ "description": "Version specific identifier"
775
+ },
776
+ "_versionId": {
777
+ "$ref": "#/components/schemas/Element"
778
+ },
779
+ "lastUpdated": {
780
+ "x-fhir-type": "instant",
781
+ "type": "string",
782
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))$",
783
+ "description": "When the resource version last changed"
784
+ },
785
+ "_lastUpdated": {
786
+ "$ref": "#/components/schemas/Element"
787
+ },
788
+ "source": {
789
+ "x-fhir-type": "uri",
790
+ "type": "string",
791
+ "pattern": "^(\\S*)$",
792
+ "description": "Identifies where the resource comes from"
793
+ },
794
+ "_source": {
795
+ "$ref": "#/components/schemas/Element"
796
+ },
797
+ "profile": {
798
+ "type": "array",
799
+ "description": "Profiles this resource claims to conform to",
800
+ "items": {
801
+ "anyOf": [
802
+ {
803
+ "x-fhir-type": "canonical",
804
+ "type": "string",
805
+ "pattern": "^(\\S*)$"
806
+ },
807
+ {
808
+ "type": "null"
809
+ }
810
+ ]
811
+ }
812
+ },
813
+ "_profile": {
814
+ "type": "array",
815
+ "items": {
816
+ "anyOf": [
817
+ {
818
+ "$ref": "#/components/schemas/Element"
819
+ },
820
+ {
821
+ "type": "null"
822
+ }
823
+ ]
824
+ }
825
+ },
826
+ "security": {
827
+ "type": "array",
828
+ "description": "Security Labels applied to this resource",
829
+ "items": {
830
+ "$ref": "#/components/schemas/Coding"
831
+ }
832
+ },
833
+ "tag": {
834
+ "type": "array",
835
+ "description": "Tags applied to this resource",
836
+ "items": {
837
+ "$ref": "#/components/schemas/Coding"
838
+ }
839
+ }
840
+ },
841
+ "additionalProperties": false
842
+ },
843
+ "Narrative": {
844
+ "type": "object",
845
+ "description": "Narrative Type: A human-readable summary of the resource conveying the essential clinical and business information for the resource.",
846
+ "properties": {
847
+ "id": {
848
+ "type": "string",
849
+ "description": "Unique id for inter-element referencing"
850
+ },
851
+ "extension": {
852
+ "type": "array",
853
+ "description": "Additional content defined by implementations",
854
+ "items": {
855
+ "$ref": "#/components/schemas/Extension"
856
+ }
857
+ },
858
+ "status": {
859
+ "x-fhir-type": "code",
860
+ "type": "string",
861
+ "enum": [
862
+ "generated",
863
+ "extensions",
864
+ "additional",
865
+ "empty"
866
+ ],
867
+ "description": "generated | extensions | additional | empty"
868
+ },
869
+ "_status": {
870
+ "$ref": "#/components/schemas/Element"
871
+ },
872
+ "div": {
873
+ "x-fhir-type": "xhtml",
874
+ "type": "string",
875
+ "description": "Limited xhtml content"
876
+ },
877
+ "_div": {
878
+ "$ref": "#/components/schemas/Element"
879
+ }
880
+ },
881
+ "required": [
882
+ "status",
883
+ "div"
884
+ ],
885
+ "additionalProperties": false
886
+ },
887
+ "OperationOutcome": {
888
+ "type": "object",
889
+ "description": "A collection of error, warning, or information messages that result from a system action.",
890
+ "properties": {
891
+ "resourceType": {
892
+ "const": "OperationOutcome"
893
+ },
894
+ "id": {
895
+ "type": "string",
896
+ "description": "Logical id of this artifact"
897
+ },
898
+ "meta": {
899
+ "$ref": "#/components/schemas/Meta",
900
+ "description": "Metadata about the resource"
901
+ },
902
+ "implicitRules": {
903
+ "x-fhir-type": "uri",
904
+ "type": "string",
905
+ "pattern": "^(\\S*)$",
906
+ "description": "A set of rules under which this content was created"
907
+ },
908
+ "_implicitRules": {
909
+ "$ref": "#/components/schemas/Element"
910
+ },
911
+ "language": {
912
+ "x-fhir-type": "code",
913
+ "type": "string",
914
+ "pattern": "^([^\\s]+( [^\\s]+)*)$",
915
+ "description": "Language of the resource content"
916
+ },
917
+ "_language": {
918
+ "$ref": "#/components/schemas/Element"
919
+ },
920
+ "text": {
921
+ "$ref": "#/components/schemas/Narrative",
922
+ "description": "Text summary of the resource, for human interpretation"
923
+ },
924
+ "extension": {
925
+ "type": "array",
926
+ "description": "Additional content defined by implementations",
927
+ "items": {
928
+ "$ref": "#/components/schemas/Extension"
929
+ }
930
+ },
931
+ "modifierExtension": {
932
+ "type": "array",
933
+ "description": "Extensions that cannot be ignored",
934
+ "items": {
935
+ "$ref": "#/components/schemas/Extension"
936
+ }
937
+ },
938
+ "issue": {
939
+ "type": "array",
940
+ "description": "A single issue associated with the action",
941
+ "items": {
942
+ "$ref": "#/components/schemas/OperationOutcome_Issue"
943
+ }
944
+ }
945
+ },
946
+ "required": [
947
+ "resourceType",
948
+ "issue"
949
+ ],
950
+ "additionalProperties": false
951
+ },
952
+ "OperationOutcome_Issue": {
953
+ "type": "object",
954
+ "description": "An error, warning, or information message that results from a system action.",
955
+ "properties": {
956
+ "id": {
957
+ "type": "string",
958
+ "description": "Unique id for inter-element referencing"
959
+ },
960
+ "extension": {
961
+ "type": "array",
962
+ "description": "Additional content defined by implementations",
963
+ "items": {
964
+ "$ref": "#/components/schemas/Extension"
965
+ }
966
+ },
967
+ "modifierExtension": {
968
+ "type": "array",
969
+ "description": "Extensions that cannot be ignored even if unrecognized",
970
+ "items": {
971
+ "$ref": "#/components/schemas/Extension"
972
+ }
973
+ },
974
+ "severity": {
975
+ "x-fhir-type": "code",
976
+ "type": "string",
977
+ "enum": [
978
+ "fatal",
979
+ "error",
980
+ "warning",
981
+ "information",
982
+ "success"
983
+ ],
984
+ "description": "fatal | error | warning | information | success"
985
+ },
986
+ "_severity": {
987
+ "$ref": "#/components/schemas/Element"
988
+ },
989
+ "code": {
990
+ "x-fhir-type": "code",
991
+ "type": "string",
992
+ "enum": [
993
+ "invalid",
994
+ "structure",
995
+ "required",
996
+ "value",
997
+ "invariant",
998
+ "security",
999
+ "login",
1000
+ "unknown",
1001
+ "expired",
1002
+ "forbidden",
1003
+ "suppressed",
1004
+ "processing",
1005
+ "not-supported",
1006
+ "duplicate",
1007
+ "multiple-matches",
1008
+ "not-found",
1009
+ "deleted",
1010
+ "too-long",
1011
+ "code-invalid",
1012
+ "extension",
1013
+ "too-costly",
1014
+ "business-rule",
1015
+ "conflict",
1016
+ "limited-filter",
1017
+ "transient",
1018
+ "lock-error",
1019
+ "no-store",
1020
+ "exception",
1021
+ "timeout",
1022
+ "incomplete",
1023
+ "throttled",
1024
+ "informational",
1025
+ "success"
1026
+ ],
1027
+ "description": "Error or warning code"
1028
+ },
1029
+ "_code": {
1030
+ "$ref": "#/components/schemas/Element"
1031
+ },
1032
+ "details": {
1033
+ "$ref": "#/components/schemas/CodeableConcept",
1034
+ "description": "Additional details about the error"
1035
+ },
1036
+ "diagnostics": {
1037
+ "x-fhir-type": "string",
1038
+ "type": "string",
1039
+ "pattern": "^[\\s\\S]+$",
1040
+ "description": "Additional diagnostic information about the issue"
1041
+ },
1042
+ "_diagnostics": {
1043
+ "$ref": "#/components/schemas/Element"
1044
+ },
1045
+ "location": {
1046
+ "type": "array",
1047
+ "description": "Deprecated: Path of element(s) related to issue",
1048
+ "items": {
1049
+ "anyOf": [
1050
+ {
1051
+ "x-fhir-type": "string",
1052
+ "type": "string",
1053
+ "pattern": "^[\\s\\S]+$"
1054
+ },
1055
+ {
1056
+ "type": "null"
1057
+ }
1058
+ ]
1059
+ }
1060
+ },
1061
+ "_location": {
1062
+ "type": "array",
1063
+ "items": {
1064
+ "anyOf": [
1065
+ {
1066
+ "$ref": "#/components/schemas/Element"
1067
+ },
1068
+ {
1069
+ "type": "null"
1070
+ }
1071
+ ]
1072
+ }
1073
+ },
1074
+ "expression": {
1075
+ "type": "array",
1076
+ "description": "FHIRPath of element(s) related to issue",
1077
+ "items": {
1078
+ "anyOf": [
1079
+ {
1080
+ "x-fhir-type": "string",
1081
+ "type": "string",
1082
+ "pattern": "^[\\s\\S]+$"
1083
+ },
1084
+ {
1085
+ "type": "null"
1086
+ }
1087
+ ]
1088
+ }
1089
+ },
1090
+ "_expression": {
1091
+ "type": "array",
1092
+ "items": {
1093
+ "anyOf": [
1094
+ {
1095
+ "$ref": "#/components/schemas/Element"
1096
+ },
1097
+ {
1098
+ "type": "null"
1099
+ }
1100
+ ]
1101
+ }
1102
+ }
1103
+ },
1104
+ "required": [
1105
+ "severity",
1106
+ "code"
1107
+ ],
1108
+ "additionalProperties": false
1109
+ },
1110
+ "Period": {
1111
+ "type": "object",
1112
+ "description": "Period Type: A time period defined by a start and end date and optionally time.",
1113
+ "properties": {
1114
+ "id": {
1115
+ "type": "string",
1116
+ "description": "Unique id for inter-element referencing"
1117
+ },
1118
+ "extension": {
1119
+ "type": "array",
1120
+ "description": "Additional content defined by implementations",
1121
+ "items": {
1122
+ "$ref": "#/components/schemas/Extension"
1123
+ }
1124
+ },
1125
+ "start": {
1126
+ "x-fhir-type": "dateTime",
1127
+ "type": "string",
1128
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?)?)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)?)?)?)$",
1129
+ "description": "Starting time with inclusive boundary"
1130
+ },
1131
+ "_start": {
1132
+ "$ref": "#/components/schemas/Element"
1133
+ },
1134
+ "end": {
1135
+ "x-fhir-type": "dateTime",
1136
+ "type": "string",
1137
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?)?)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)?)?)?)$",
1138
+ "description": "End time with inclusive boundary, if not ongoing"
1139
+ },
1140
+ "_end": {
1141
+ "$ref": "#/components/schemas/Element"
1142
+ }
1143
+ },
1144
+ "additionalProperties": false
1145
+ },
1146
+ "Reference": {
1147
+ "type": "object",
1148
+ "description": "Reference Type: A reference from one resource to another.",
1149
+ "properties": {
1150
+ "id": {
1151
+ "type": "string",
1152
+ "description": "Unique id for inter-element referencing"
1153
+ },
1154
+ "extension": {
1155
+ "type": "array",
1156
+ "description": "Additional content defined by implementations",
1157
+ "items": {
1158
+ "$ref": "#/components/schemas/Extension"
1159
+ }
1160
+ },
1161
+ "reference": {
1162
+ "x-fhir-type": "string",
1163
+ "type": "string",
1164
+ "pattern": "^[\\s\\S]+$",
1165
+ "description": "Literal reference, Relative, internal or absolute URL"
1166
+ },
1167
+ "_reference": {
1168
+ "$ref": "#/components/schemas/Element"
1169
+ },
1170
+ "type": {
1171
+ "x-fhir-type": "uri",
1172
+ "type": "string",
1173
+ "pattern": "^(\\S*)$",
1174
+ "description": "Type the reference refers to (e.g. \"Patient\") - must be a resource in resources"
1175
+ },
1176
+ "_type": {
1177
+ "$ref": "#/components/schemas/Element"
1178
+ },
1179
+ "identifier": {
1180
+ "$ref": "#/components/schemas/Identifier",
1181
+ "description": "Logical reference, when literal reference is not known"
1182
+ },
1183
+ "display": {
1184
+ "x-fhir-type": "string",
1185
+ "type": "string",
1186
+ "pattern": "^[\\s\\S]+$",
1187
+ "description": "Text alternative for the resource"
1188
+ },
1189
+ "_display": {
1190
+ "$ref": "#/components/schemas/Element"
1191
+ }
1192
+ },
1193
+ "additionalProperties": false
1194
+ },
1195
+ "Signature": {
1196
+ "type": "object",
1197
+ "description": "Signature Type: A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.",
1198
+ "properties": {
1199
+ "id": {
1200
+ "type": "string",
1201
+ "description": "Unique id for inter-element referencing"
1202
+ },
1203
+ "extension": {
1204
+ "type": "array",
1205
+ "description": "Additional content defined by implementations",
1206
+ "items": {
1207
+ "$ref": "#/components/schemas/Extension"
1208
+ }
1209
+ },
1210
+ "type": {
1211
+ "type": "array",
1212
+ "description": "Indication of the reason the entity signed the object(s)",
1213
+ "items": {
1214
+ "$ref": "#/components/schemas/Coding"
1215
+ }
1216
+ },
1217
+ "when": {
1218
+ "x-fhir-type": "instant",
1219
+ "type": "string",
1220
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))$",
1221
+ "description": "When the signature was created"
1222
+ },
1223
+ "_when": {
1224
+ "$ref": "#/components/schemas/Element"
1225
+ },
1226
+ "who": {
1227
+ "$ref": "#/components/schemas/Reference",
1228
+ "description": "Who signed"
1229
+ },
1230
+ "onBehalfOf": {
1231
+ "$ref": "#/components/schemas/Reference",
1232
+ "description": "The party represented"
1233
+ },
1234
+ "targetFormat": {
1235
+ "x-fhir-type": "code",
1236
+ "type": "string",
1237
+ "pattern": "^([^\\s]+( [^\\s]+)*)$",
1238
+ "description": "The technical format of the signed resources"
1239
+ },
1240
+ "_targetFormat": {
1241
+ "$ref": "#/components/schemas/Element"
1242
+ },
1243
+ "sigFormat": {
1244
+ "x-fhir-type": "code",
1245
+ "type": "string",
1246
+ "pattern": "^([^\\s]+( [^\\s]+)*)$",
1247
+ "description": "The technical format of the signature"
1248
+ },
1249
+ "_sigFormat": {
1250
+ "$ref": "#/components/schemas/Element"
1251
+ },
1252
+ "data": {
1253
+ "x-fhir-type": "base64Binary",
1254
+ "type": "string",
1255
+ "pattern": "^((?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)$",
1256
+ "description": "The actual signature content (XML DigSig. JWS, picture, etc.)"
1257
+ },
1258
+ "_data": {
1259
+ "$ref": "#/components/schemas/Element"
1260
+ }
1261
+ },
1262
+ "additionalProperties": false
1263
+ },
1264
+ "TestReport": {
1265
+ "type": "object",
1266
+ "description": "A TestReport, as this server accepts it: an R5 TestReport (or an R4 one - see testScript), with name, tester, issued and at least one participant, and no contained resources.",
1267
+ "properties": {
1268
+ "resourceType": {
1269
+ "const": "TestReport"
1270
+ },
1271
+ "id": {
1272
+ "type": "string",
1273
+ "description": "Logical id of this artifact"
1274
+ },
1275
+ "meta": {
1276
+ "$ref": "#/components/schemas/Meta",
1277
+ "description": "Metadata about the resource"
1278
+ },
1279
+ "implicitRules": {
1280
+ "x-fhir-type": "uri",
1281
+ "type": "string",
1282
+ "pattern": "^(\\S*)$",
1283
+ "description": "A set of rules under which this content was created"
1284
+ },
1285
+ "_implicitRules": {
1286
+ "$ref": "#/components/schemas/Element"
1287
+ },
1288
+ "language": {
1289
+ "x-fhir-type": "code",
1290
+ "type": "string",
1291
+ "pattern": "^([^\\s]+( [^\\s]+)*)$",
1292
+ "description": "Language of the resource content"
1293
+ },
1294
+ "_language": {
1295
+ "$ref": "#/components/schemas/Element"
1296
+ },
1297
+ "text": {
1298
+ "$ref": "#/components/schemas/Narrative",
1299
+ "description": "Text summary of the resource, for human interpretation"
1300
+ },
1301
+ "extension": {
1302
+ "type": "array",
1303
+ "description": "Additional content defined by implementations",
1304
+ "items": {
1305
+ "$ref": "#/components/schemas/Extension"
1306
+ }
1307
+ },
1308
+ "modifierExtension": {
1309
+ "type": "array",
1310
+ "description": "Extensions that cannot be ignored",
1311
+ "items": {
1312
+ "$ref": "#/components/schemas/Extension"
1313
+ }
1314
+ },
1315
+ "identifier": {
1316
+ "$ref": "#/components/schemas/Identifier",
1317
+ "description": "External identifier"
1318
+ },
1319
+ "name": {
1320
+ "x-fhir-type": "string",
1321
+ "type": "string",
1322
+ "pattern": "^[\\s\\S]+$",
1323
+ "description": "Informal name of the executed TestReport"
1324
+ },
1325
+ "_name": {
1326
+ "$ref": "#/components/schemas/Element"
1327
+ },
1328
+ "status": {
1329
+ "x-fhir-type": "code",
1330
+ "type": "string",
1331
+ "enum": [
1332
+ "completed",
1333
+ "in-progress",
1334
+ "waiting",
1335
+ "stopped",
1336
+ "entered-in-error"
1337
+ ],
1338
+ "description": "completed | in-progress | waiting | stopped | entered-in-error"
1339
+ },
1340
+ "_status": {
1341
+ "$ref": "#/components/schemas/Element"
1342
+ },
1343
+ "testScript": {
1344
+ "description": "The TestScript that was run: a canonical (R5), or a Reference (R4)",
1345
+ "anyOf": [
1346
+ {
1347
+ "type": "string"
1348
+ },
1349
+ {
1350
+ "$ref": "#/components/schemas/Reference"
1351
+ }
1352
+ ]
1353
+ },
1354
+ "_testScript": {
1355
+ "$ref": "#/components/schemas/Element"
1356
+ },
1357
+ "result": {
1358
+ "x-fhir-type": "code",
1359
+ "type": "string",
1360
+ "enum": [
1361
+ "pass",
1362
+ "fail",
1363
+ "pending"
1364
+ ],
1365
+ "description": "pass | fail | pending"
1366
+ },
1367
+ "_result": {
1368
+ "$ref": "#/components/schemas/Element"
1369
+ },
1370
+ "score": {
1371
+ "x-fhir-type": "decimal",
1372
+ "type": "number",
1373
+ "description": "The final score (percentage of tests passed) resulting from the execution of the TestScript"
1374
+ },
1375
+ "_score": {
1376
+ "$ref": "#/components/schemas/Element"
1377
+ },
1378
+ "tester": {
1379
+ "x-fhir-type": "string",
1380
+ "type": "string",
1381
+ "pattern": "^[\\s\\S]+$",
1382
+ "description": "Name of the tester producing this report (Organization or individual)"
1383
+ },
1384
+ "_tester": {
1385
+ "$ref": "#/components/schemas/Element"
1386
+ },
1387
+ "issued": {
1388
+ "x-fhir-type": "dateTime",
1389
+ "type": "string",
1390
+ "pattern": "^(([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?)?)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)?)?)?)$",
1391
+ "description": "When the TestScript was executed and this TestReport was generated"
1392
+ },
1393
+ "_issued": {
1394
+ "$ref": "#/components/schemas/Element"
1395
+ },
1396
+ "participant": {
1397
+ "type": "array",
1398
+ "description": "A participant in the test execution, either the execution engine, a client, or a server",
1399
+ "items": {
1400
+ "$ref": "#/components/schemas/TestReport_Participant"
1401
+ },
1402
+ "minItems": 1
1403
+ },
1404
+ "setup": {
1405
+ "$ref": "#/components/schemas/TestReport_Setup",
1406
+ "description": "The results of the series of required setup operations before the tests were executed"
1407
+ },
1408
+ "test": {
1409
+ "type": "array",
1410
+ "description": "A test executed from the test script",
1411
+ "items": {
1412
+ "$ref": "#/components/schemas/TestReport_Test"
1413
+ }
1414
+ },
1415
+ "teardown": {
1416
+ "$ref": "#/components/schemas/TestReport_Teardown",
1417
+ "description": "The results of running the series of required clean up steps"
1418
+ }
1419
+ },
1420
+ "required": [
1421
+ "resourceType",
1422
+ "status",
1423
+ "testScript",
1424
+ "result",
1425
+ "name",
1426
+ "tester",
1427
+ "issued",
1428
+ "participant"
1429
+ ],
1430
+ "additionalProperties": false
1431
+ },
1432
+ "TestReport_Participant": {
1433
+ "type": "object",
1434
+ "description": "A participant in the test execution, either the execution engine, a client, or a server.",
1435
+ "properties": {
1436
+ "id": {
1437
+ "type": "string",
1438
+ "description": "Unique id for inter-element referencing"
1439
+ },
1440
+ "extension": {
1441
+ "type": "array",
1442
+ "description": "Additional content defined by implementations",
1443
+ "items": {
1444
+ "$ref": "#/components/schemas/Extension"
1445
+ }
1446
+ },
1447
+ "modifierExtension": {
1448
+ "type": "array",
1449
+ "description": "Extensions that cannot be ignored even if unrecognized",
1450
+ "items": {
1451
+ "$ref": "#/components/schemas/Extension"
1452
+ }
1453
+ },
1454
+ "type": {
1455
+ "x-fhir-type": "code",
1456
+ "type": "string",
1457
+ "enum": [
1458
+ "test-engine",
1459
+ "client",
1460
+ "server"
1461
+ ],
1462
+ "description": "test-engine | client | server"
1463
+ },
1464
+ "_type": {
1465
+ "$ref": "#/components/schemas/Element"
1466
+ },
1467
+ "uri": {
1468
+ "x-fhir-type": "uri",
1469
+ "type": "string",
1470
+ "pattern": "^(\\S*)$",
1471
+ "description": "The uri of the participant. An absolute URL is preferred"
1472
+ },
1473
+ "_uri": {
1474
+ "$ref": "#/components/schemas/Element"
1475
+ },
1476
+ "display": {
1477
+ "x-fhir-type": "string",
1478
+ "type": "string",
1479
+ "pattern": "^[\\s\\S]+$",
1480
+ "description": "The display name of the participant"
1481
+ },
1482
+ "_display": {
1483
+ "$ref": "#/components/schemas/Element"
1484
+ }
1485
+ },
1486
+ "required": [
1487
+ "type",
1488
+ "uri"
1489
+ ],
1490
+ "additionalProperties": false
1491
+ },
1492
+ "TestReport_Setup": {
1493
+ "type": "object",
1494
+ "description": "The results of the series of required setup operations before the tests were executed.",
1495
+ "properties": {
1496
+ "id": {
1497
+ "type": "string",
1498
+ "description": "Unique id for inter-element referencing"
1499
+ },
1500
+ "extension": {
1501
+ "type": "array",
1502
+ "description": "Additional content defined by implementations",
1503
+ "items": {
1504
+ "$ref": "#/components/schemas/Extension"
1505
+ }
1506
+ },
1507
+ "modifierExtension": {
1508
+ "type": "array",
1509
+ "description": "Extensions that cannot be ignored even if unrecognized",
1510
+ "items": {
1511
+ "$ref": "#/components/schemas/Extension"
1512
+ }
1513
+ },
1514
+ "action": {
1515
+ "type": "array",
1516
+ "description": "A setup operation or assert that was executed",
1517
+ "items": {
1518
+ "$ref": "#/components/schemas/TestReport_Setup_Action"
1519
+ }
1520
+ }
1521
+ },
1522
+ "required": [
1523
+ "action"
1524
+ ],
1525
+ "additionalProperties": false
1526
+ },
1527
+ "TestReport_Setup_Action": {
1528
+ "type": "object",
1529
+ "description": "Action would contain either an operation or an assertion.",
1530
+ "properties": {
1531
+ "id": {
1532
+ "type": "string",
1533
+ "description": "Unique id for inter-element referencing"
1534
+ },
1535
+ "extension": {
1536
+ "type": "array",
1537
+ "description": "Additional content defined by implementations",
1538
+ "items": {
1539
+ "$ref": "#/components/schemas/Extension"
1540
+ }
1541
+ },
1542
+ "modifierExtension": {
1543
+ "type": "array",
1544
+ "description": "Extensions that cannot be ignored even if unrecognized",
1545
+ "items": {
1546
+ "$ref": "#/components/schemas/Extension"
1547
+ }
1548
+ },
1549
+ "operation": {
1550
+ "$ref": "#/components/schemas/TestReport_Setup_Action_Operation",
1551
+ "description": "The operation to perform"
1552
+ },
1553
+ "assert": {
1554
+ "$ref": "#/components/schemas/TestReport_Setup_Action_Assert",
1555
+ "description": "The assertion to perform"
1556
+ }
1557
+ },
1558
+ "additionalProperties": false
1559
+ },
1560
+ "TestReport_Setup_Action_Assert": {
1561
+ "type": "object",
1562
+ "description": "The results of the assertion performed on the previous operations.",
1563
+ "properties": {
1564
+ "id": {
1565
+ "type": "string",
1566
+ "description": "Unique id for inter-element referencing"
1567
+ },
1568
+ "extension": {
1569
+ "type": "array",
1570
+ "description": "Additional content defined by implementations",
1571
+ "items": {
1572
+ "$ref": "#/components/schemas/Extension"
1573
+ }
1574
+ },
1575
+ "modifierExtension": {
1576
+ "type": "array",
1577
+ "description": "Extensions that cannot be ignored even if unrecognized",
1578
+ "items": {
1579
+ "$ref": "#/components/schemas/Extension"
1580
+ }
1581
+ },
1582
+ "result": {
1583
+ "x-fhir-type": "code",
1584
+ "type": "string",
1585
+ "enum": [
1586
+ "pass",
1587
+ "skip",
1588
+ "fail",
1589
+ "warning",
1590
+ "error"
1591
+ ],
1592
+ "description": "pass | skip | fail | warning | error"
1593
+ },
1594
+ "_result": {
1595
+ "$ref": "#/components/schemas/Element"
1596
+ },
1597
+ "message": {
1598
+ "x-fhir-type": "markdown",
1599
+ "type": "string",
1600
+ "pattern": "^[\\s\\S]+$",
1601
+ "description": "A message associated with the result"
1602
+ },
1603
+ "_message": {
1604
+ "$ref": "#/components/schemas/Element"
1605
+ },
1606
+ "detail": {
1607
+ "x-fhir-type": "string",
1608
+ "type": "string",
1609
+ "pattern": "^[\\s\\S]+$",
1610
+ "description": "A link to further details on the result"
1611
+ },
1612
+ "_detail": {
1613
+ "$ref": "#/components/schemas/Element"
1614
+ },
1615
+ "requirement": {
1616
+ "type": "array",
1617
+ "description": "Links or references to the testing requirements",
1618
+ "items": {
1619
+ "$ref": "#/components/schemas/TestReport_Setup_Action_Assert_Requirement"
1620
+ }
1621
+ }
1622
+ },
1623
+ "required": [
1624
+ "result"
1625
+ ],
1626
+ "additionalProperties": false
1627
+ },
1628
+ "TestReport_Setup_Action_Assert_Requirement": {
1629
+ "type": "object",
1630
+ "description": "Links or references providing traceability to the testing requirements for this assert.",
1631
+ "properties": {
1632
+ "id": {
1633
+ "type": "string",
1634
+ "description": "Unique id for inter-element referencing"
1635
+ },
1636
+ "extension": {
1637
+ "type": "array",
1638
+ "description": "Additional content defined by implementations",
1639
+ "items": {
1640
+ "$ref": "#/components/schemas/Extension"
1641
+ }
1642
+ },
1643
+ "modifierExtension": {
1644
+ "type": "array",
1645
+ "description": "Extensions that cannot be ignored even if unrecognized",
1646
+ "items": {
1647
+ "$ref": "#/components/schemas/Extension"
1648
+ }
1649
+ },
1650
+ "linkUri": {
1651
+ "x-fhir-type": "uri",
1652
+ "type": "string",
1653
+ "pattern": "^(\\S*)$",
1654
+ "description": "Link or reference to the testing requirement"
1655
+ },
1656
+ "_linkUri": {
1657
+ "$ref": "#/components/schemas/Element"
1658
+ },
1659
+ "linkCanonical": {
1660
+ "x-fhir-type": "canonical",
1661
+ "type": "string",
1662
+ "pattern": "^(\\S*)$",
1663
+ "description": "Link or reference to the testing requirement"
1664
+ },
1665
+ "_linkCanonical": {
1666
+ "$ref": "#/components/schemas/Element"
1667
+ }
1668
+ },
1669
+ "additionalProperties": false
1670
+ },
1671
+ "TestReport_Setup_Action_Operation": {
1672
+ "type": "object",
1673
+ "description": "The operation performed.",
1674
+ "properties": {
1675
+ "id": {
1676
+ "type": "string",
1677
+ "description": "Unique id for inter-element referencing"
1678
+ },
1679
+ "extension": {
1680
+ "type": "array",
1681
+ "description": "Additional content defined by implementations",
1682
+ "items": {
1683
+ "$ref": "#/components/schemas/Extension"
1684
+ }
1685
+ },
1686
+ "modifierExtension": {
1687
+ "type": "array",
1688
+ "description": "Extensions that cannot be ignored even if unrecognized",
1689
+ "items": {
1690
+ "$ref": "#/components/schemas/Extension"
1691
+ }
1692
+ },
1693
+ "result": {
1694
+ "x-fhir-type": "code",
1695
+ "type": "string",
1696
+ "enum": [
1697
+ "pass",
1698
+ "skip",
1699
+ "fail",
1700
+ "warning",
1701
+ "error"
1702
+ ],
1703
+ "description": "pass | skip | fail | warning | error"
1704
+ },
1705
+ "_result": {
1706
+ "$ref": "#/components/schemas/Element"
1707
+ },
1708
+ "message": {
1709
+ "x-fhir-type": "markdown",
1710
+ "type": "string",
1711
+ "pattern": "^[\\s\\S]+$",
1712
+ "description": "A message associated with the result"
1713
+ },
1714
+ "_message": {
1715
+ "$ref": "#/components/schemas/Element"
1716
+ },
1717
+ "detail": {
1718
+ "x-fhir-type": "uri",
1719
+ "type": "string",
1720
+ "pattern": "^(\\S*)$",
1721
+ "description": "A link to further details on the result"
1722
+ },
1723
+ "_detail": {
1724
+ "$ref": "#/components/schemas/Element"
1725
+ }
1726
+ },
1727
+ "required": [
1728
+ "result"
1729
+ ],
1730
+ "additionalProperties": false
1731
+ },
1732
+ "TestReport_Teardown": {
1733
+ "type": "object",
1734
+ "description": "The results of the series of operations required to clean up after all the tests were executed (successfully or otherwise).",
1735
+ "properties": {
1736
+ "id": {
1737
+ "type": "string",
1738
+ "description": "Unique id for inter-element referencing"
1739
+ },
1740
+ "extension": {
1741
+ "type": "array",
1742
+ "description": "Additional content defined by implementations",
1743
+ "items": {
1744
+ "$ref": "#/components/schemas/Extension"
1745
+ }
1746
+ },
1747
+ "modifierExtension": {
1748
+ "type": "array",
1749
+ "description": "Extensions that cannot be ignored even if unrecognized",
1750
+ "items": {
1751
+ "$ref": "#/components/schemas/Extension"
1752
+ }
1753
+ },
1754
+ "action": {
1755
+ "type": "array",
1756
+ "description": "One or more teardown operations performed",
1757
+ "items": {
1758
+ "$ref": "#/components/schemas/TestReport_Teardown_Action"
1759
+ }
1760
+ }
1761
+ },
1762
+ "required": [
1763
+ "action"
1764
+ ],
1765
+ "additionalProperties": false
1766
+ },
1767
+ "TestReport_Teardown_Action": {
1768
+ "type": "object",
1769
+ "description": "The teardown action will only contain an operation.",
1770
+ "properties": {
1771
+ "id": {
1772
+ "type": "string",
1773
+ "description": "Unique id for inter-element referencing"
1774
+ },
1775
+ "extension": {
1776
+ "type": "array",
1777
+ "description": "Additional content defined by implementations",
1778
+ "items": {
1779
+ "$ref": "#/components/schemas/Extension"
1780
+ }
1781
+ },
1782
+ "modifierExtension": {
1783
+ "type": "array",
1784
+ "description": "Extensions that cannot be ignored even if unrecognized",
1785
+ "items": {
1786
+ "$ref": "#/components/schemas/Extension"
1787
+ }
1788
+ },
1789
+ "operation": {
1790
+ "$ref": "#/components/schemas/TestReport_Setup_Action_Operation",
1791
+ "description": "The teardown operation performed"
1792
+ }
1793
+ },
1794
+ "required": [
1795
+ "operation"
1796
+ ],
1797
+ "additionalProperties": false
1798
+ },
1799
+ "TestReport_Test": {
1800
+ "type": "object",
1801
+ "description": "A test executed from the test script.",
1802
+ "properties": {
1803
+ "id": {
1804
+ "type": "string",
1805
+ "description": "Unique id for inter-element referencing"
1806
+ },
1807
+ "extension": {
1808
+ "type": "array",
1809
+ "description": "Additional content defined by implementations",
1810
+ "items": {
1811
+ "$ref": "#/components/schemas/Extension"
1812
+ }
1813
+ },
1814
+ "modifierExtension": {
1815
+ "type": "array",
1816
+ "description": "Extensions that cannot be ignored even if unrecognized",
1817
+ "items": {
1818
+ "$ref": "#/components/schemas/Extension"
1819
+ }
1820
+ },
1821
+ "name": {
1822
+ "x-fhir-type": "string",
1823
+ "type": "string",
1824
+ "pattern": "^[\\s\\S]+$",
1825
+ "description": "Tracking/logging name of this test"
1826
+ },
1827
+ "_name": {
1828
+ "$ref": "#/components/schemas/Element"
1829
+ },
1830
+ "description": {
1831
+ "x-fhir-type": "string",
1832
+ "type": "string",
1833
+ "pattern": "^[\\s\\S]+$",
1834
+ "description": "Tracking/reporting short description of the test"
1835
+ },
1836
+ "_description": {
1837
+ "$ref": "#/components/schemas/Element"
1838
+ },
1839
+ "action": {
1840
+ "type": "array",
1841
+ "description": "A test operation or assert that was performed",
1842
+ "items": {
1843
+ "$ref": "#/components/schemas/TestReport_Test_Action"
1844
+ }
1845
+ }
1846
+ },
1847
+ "required": [
1848
+ "action"
1849
+ ],
1850
+ "additionalProperties": false
1851
+ },
1852
+ "TestReport_Test_Action": {
1853
+ "type": "object",
1854
+ "description": "Action would contain either an operation or an assertion.",
1855
+ "properties": {
1856
+ "id": {
1857
+ "type": "string",
1858
+ "description": "Unique id for inter-element referencing"
1859
+ },
1860
+ "extension": {
1861
+ "type": "array",
1862
+ "description": "Additional content defined by implementations",
1863
+ "items": {
1864
+ "$ref": "#/components/schemas/Extension"
1865
+ }
1866
+ },
1867
+ "modifierExtension": {
1868
+ "type": "array",
1869
+ "description": "Extensions that cannot be ignored even if unrecognized",
1870
+ "items": {
1871
+ "$ref": "#/components/schemas/Extension"
1872
+ }
1873
+ },
1874
+ "operation": {
1875
+ "$ref": "#/components/schemas/TestReport_Setup_Action_Operation",
1876
+ "description": "The operation performed"
1877
+ },
1878
+ "assert": {
1879
+ "$ref": "#/components/schemas/TestReport_Setup_Action_Assert",
1880
+ "description": "The assertion performed"
1881
+ }
1882
+ },
1883
+ "additionalProperties": false
1884
+ },
1885
+ "TestReportSearchBundle": {
1886
+ "description": "A searchset Bundle of TestReports",
1887
+ "allOf": [
1888
+ {
1889
+ "$ref": "#/components/schemas/Bundle"
1890
+ },
1891
+ {
1892
+ "type": "object",
1893
+ "properties": {
1894
+ "type": {
1895
+ "const": "searchset"
1896
+ },
1897
+ "entry": {
1898
+ "type": "array",
1899
+ "items": {
1900
+ "type": "object",
1901
+ "properties": {
1902
+ "resource": {
1903
+ "anyOf": [
1904
+ {
1905
+ "$ref": "#/components/schemas/TestReport"
1906
+ },
1907
+ {
1908
+ "$ref": "#/components/schemas/OperationOutcome"
1909
+ }
1910
+ ]
1911
+ }
1912
+ }
1913
+ }
1914
+ }
1915
+ }
1916
+ }
1917
+ ]
1918
+ }
1919
+ }
1920
+ }