fhirpath-ts 0.2.0 → 0.2.2

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 (83) hide show
  1. package/README.md +12 -5
  2. package/dist/analyzer/analyze-dto.d.ts.map +1 -1
  3. package/dist/analyzer/analyze-dto.js +14 -8
  4. package/dist/analyzer/analyze-dto.js.map +1 -1
  5. package/dist/analyzer/analyze.d.ts +23 -12
  6. package/dist/analyzer/analyze.d.ts.map +1 -1
  7. package/dist/analyzer/analyze.js +138 -46
  8. package/dist/analyzer/analyze.js.map +1 -1
  9. package/dist/analyzer/declarations.d.ts +6 -0
  10. package/dist/analyzer/declarations.d.ts.map +1 -1
  11. package/dist/analyzer/declarations.js +7 -0
  12. package/dist/analyzer/declarations.js.map +1 -1
  13. package/dist/analyzer/expression-policy.d.ts +88 -14
  14. package/dist/analyzer/expression-policy.d.ts.map +1 -1
  15. package/dist/analyzer/expression-policy.js +296 -41
  16. package/dist/analyzer/expression-policy.js.map +1 -1
  17. package/dist/analyzer/operator-rules.d.ts.map +1 -1
  18. package/dist/analyzer/operator-rules.js +7 -6
  19. package/dist/analyzer/operator-rules.js.map +1 -1
  20. package/dist/analyzer/signatures.d.ts +49 -0
  21. package/dist/analyzer/signatures.d.ts.map +1 -1
  22. package/dist/analyzer/signatures.js +76 -31
  23. package/dist/analyzer/signatures.js.map +1 -1
  24. package/dist/analyzer/source-options.d.ts +17 -0
  25. package/dist/analyzer/source-options.d.ts.map +1 -0
  26. package/dist/analyzer/source-options.js +3 -0
  27. package/dist/analyzer/source-options.js.map +1 -0
  28. package/dist/api/dto.d.ts +9 -4
  29. package/dist/api/dto.d.ts.map +1 -1
  30. package/dist/api/dto.js +14 -3
  31. package/dist/api/dto.js.map +1 -1
  32. package/dist/api/strict.d.ts.map +1 -1
  33. package/dist/api/strict.js +8 -3
  34. package/dist/api/strict.js.map +1 -1
  35. package/dist/cli/dto-check.d.ts +9 -0
  36. package/dist/cli/dto-check.d.ts.map +1 -1
  37. package/dist/cli/dto-check.js +49 -6
  38. package/dist/cli/dto-check.js.map +1 -1
  39. package/dist/cli/fhirpath-check.js +161 -31
  40. package/dist/cli/fhirpath-check.js.map +1 -1
  41. package/dist/eslint/index.d.ts.map +1 -1
  42. package/dist/eslint/index.js +13 -8
  43. package/dist/eslint/index.js.map +1 -1
  44. package/dist/r4/generated/resources-data.d.ts +6 -2
  45. package/dist/r4/generated/resources-data.d.ts.map +1 -1
  46. package/dist/r4/generated/resources-data.js +626 -28627
  47. package/dist/r4/generated/resources-data.js.map +1 -1
  48. package/dist/r4/generated/types-data.d.ts +6 -2
  49. package/dist/r4/generated/types-data.d.ts.map +1 -1
  50. package/dist/r4/generated/types-data.js +84 -2204
  51. package/dist/r4/generated/types-data.js.map +1 -1
  52. package/dist/r4/index.d.ts.map +1 -1
  53. package/dist/r4/index.js +10 -4
  54. package/dist/r4/index.js.map +1 -1
  55. package/dist/r4/model-data.d.ts +17 -0
  56. package/dist/r4/model-data.d.ts.map +1 -1
  57. package/dist/r4/model-data.js +118 -1
  58. package/dist/r4/model-data.js.map +1 -1
  59. package/dist/sites/index.d.ts +31 -2
  60. package/dist/sites/index.d.ts.map +1 -1
  61. package/dist/sites/index.js +351 -30
  62. package/dist/sites/index.js.map +1 -1
  63. package/dist/typed/infer.d.ts +2 -0
  64. package/dist/typed/infer.d.ts.map +1 -1
  65. package/package.json +1 -1
  66. package/src/analyzer/analyze-dto.ts +19 -9
  67. package/src/analyzer/analyze.ts +186 -54
  68. package/src/analyzer/declarations.ts +12 -0
  69. package/src/analyzer/expression-policy.ts +423 -47
  70. package/src/analyzer/operator-rules.ts +7 -6
  71. package/src/analyzer/signatures.ts +100 -36
  72. package/src/analyzer/source-options.ts +19 -0
  73. package/src/api/dto.ts +35 -9
  74. package/src/api/strict.ts +8 -3
  75. package/src/cli/dto-check.ts +56 -6
  76. package/src/cli/fhirpath-check.ts +180 -34
  77. package/src/eslint/index.ts +15 -12
  78. package/src/r4/generated/resources-data.ts +624 -28628
  79. package/src/r4/generated/types-data.ts +82 -2205
  80. package/src/r4/index.ts +11 -5
  81. package/src/r4/model-data.ts +127 -0
  82. package/src/sites/index.ts +428 -40
  83. package/src/typed/infer.ts +2 -2
@@ -1,2205 +1,85 @@
1
- export const R4_DATA_TYPES = {
2
- Address: {
3
- b: 'Element',
4
- e: {
5
- city: {
6
- t: ['string'],
7
- },
8
- country: {
9
- t: ['string'],
10
- },
11
- district: {
12
- t: ['string'],
13
- },
14
- extension: {
15
- t: ['Extension'],
16
- a: 1,
17
- },
18
- id: {
19
- t: ['System.String'],
20
- },
21
- line: {
22
- t: ['string'],
23
- a: 1,
24
- },
25
- period: {
26
- t: ['Period'],
27
- },
28
- postalCode: {
29
- t: ['string'],
30
- },
31
- state: {
32
- t: ['string'],
33
- },
34
- text: {
35
- t: ['string'],
36
- },
37
- type: {
38
- t: ['code'],
39
- },
40
- use: {
41
- t: ['code'],
42
- },
43
- },
44
- },
45
- Age: {
46
- b: 'Quantity',
47
- e: {
48
- code: {
49
- t: ['code'],
50
- },
51
- comparator: {
52
- t: ['code'],
53
- },
54
- extension: {
55
- t: ['Extension'],
56
- a: 1,
57
- },
58
- id: {
59
- t: ['System.String'],
60
- },
61
- system: {
62
- t: ['uri'],
63
- },
64
- unit: {
65
- t: ['string'],
66
- },
67
- value: {
68
- t: ['decimal'],
69
- },
70
- },
71
- },
72
- Annotation: {
73
- b: 'Element',
74
- e: {
75
- author: {
76
- t: ['Reference', 'string'],
77
- c: 1,
78
- r: ['Practitioner', 'Patient', 'RelatedPerson', 'Organization'],
79
- },
80
- extension: {
81
- t: ['Extension'],
82
- a: 1,
83
- },
84
- id: {
85
- t: ['System.String'],
86
- },
87
- text: {
88
- t: ['markdown'],
89
- },
90
- time: {
91
- t: ['dateTime'],
92
- },
93
- },
94
- },
95
- Attachment: {
96
- b: 'Element',
97
- e: {
98
- contentType: {
99
- t: ['code'],
100
- },
101
- creation: {
102
- t: ['dateTime'],
103
- },
104
- data: {
105
- t: ['base64Binary'],
106
- },
107
- extension: {
108
- t: ['Extension'],
109
- a: 1,
110
- },
111
- hash: {
112
- t: ['base64Binary'],
113
- },
114
- id: {
115
- t: ['System.String'],
116
- },
117
- language: {
118
- t: ['code'],
119
- },
120
- size: {
121
- t: ['unsignedInt'],
122
- },
123
- title: {
124
- t: ['string'],
125
- },
126
- url: {
127
- t: ['url'],
128
- },
129
- },
130
- },
131
- BackboneElement: {
132
- b: 'Element',
133
- e: {
134
- extension: {
135
- t: ['Extension'],
136
- a: 1,
137
- },
138
- id: {
139
- t: ['System.String'],
140
- },
141
- modifierExtension: {
142
- t: ['Extension'],
143
- a: 1,
144
- },
145
- },
146
- },
147
- CodeableConcept: {
148
- b: 'Element',
149
- e: {
150
- coding: {
151
- t: ['Coding'],
152
- a: 1,
153
- },
154
- extension: {
155
- t: ['Extension'],
156
- a: 1,
157
- },
158
- id: {
159
- t: ['System.String'],
160
- },
161
- text: {
162
- t: ['string'],
163
- },
164
- },
165
- },
166
- Coding: {
167
- b: 'Element',
168
- e: {
169
- code: {
170
- t: ['code'],
171
- },
172
- display: {
173
- t: ['string'],
174
- },
175
- extension: {
176
- t: ['Extension'],
177
- a: 1,
178
- },
179
- id: {
180
- t: ['System.String'],
181
- },
182
- system: {
183
- t: ['uri'],
184
- },
185
- userSelected: {
186
- t: ['boolean'],
187
- },
188
- version: {
189
- t: ['string'],
190
- },
191
- },
192
- },
193
- ContactDetail: {
194
- b: 'Element',
195
- e: {
196
- extension: {
197
- t: ['Extension'],
198
- a: 1,
199
- },
200
- id: {
201
- t: ['System.String'],
202
- },
203
- name: {
204
- t: ['string'],
205
- },
206
- telecom: {
207
- t: ['ContactPoint'],
208
- a: 1,
209
- },
210
- },
211
- },
212
- ContactPoint: {
213
- b: 'Element',
214
- e: {
215
- extension: {
216
- t: ['Extension'],
217
- a: 1,
218
- },
219
- id: {
220
- t: ['System.String'],
221
- },
222
- period: {
223
- t: ['Period'],
224
- },
225
- rank: {
226
- t: ['positiveInt'],
227
- },
228
- system: {
229
- t: ['code'],
230
- },
231
- use: {
232
- t: ['code'],
233
- },
234
- value: {
235
- t: ['string'],
236
- },
237
- },
238
- },
239
- Contributor: {
240
- b: 'Element',
241
- e: {
242
- contact: {
243
- t: ['ContactDetail'],
244
- a: 1,
245
- },
246
- extension: {
247
- t: ['Extension'],
248
- a: 1,
249
- },
250
- id: {
251
- t: ['System.String'],
252
- },
253
- name: {
254
- t: ['string'],
255
- },
256
- type: {
257
- t: ['code'],
258
- },
259
- },
260
- },
261
- Count: {
262
- b: 'Quantity',
263
- e: {
264
- code: {
265
- t: ['code'],
266
- },
267
- comparator: {
268
- t: ['code'],
269
- },
270
- extension: {
271
- t: ['Extension'],
272
- a: 1,
273
- },
274
- id: {
275
- t: ['System.String'],
276
- },
277
- system: {
278
- t: ['uri'],
279
- },
280
- unit: {
281
- t: ['string'],
282
- },
283
- value: {
284
- t: ['decimal'],
285
- },
286
- },
287
- },
288
- DataRequirement: {
289
- b: 'Element',
290
- e: {
291
- codeFilter: {
292
- t: ['DataRequirement.codeFilter'],
293
- a: 1,
294
- },
295
- dateFilter: {
296
- t: ['DataRequirement.dateFilter'],
297
- a: 1,
298
- },
299
- extension: {
300
- t: ['Extension'],
301
- a: 1,
302
- },
303
- id: {
304
- t: ['System.String'],
305
- },
306
- limit: {
307
- t: ['positiveInt'],
308
- },
309
- mustSupport: {
310
- t: ['string'],
311
- a: 1,
312
- },
313
- profile: {
314
- t: ['canonical'],
315
- a: 1,
316
- },
317
- sort: {
318
- t: ['DataRequirement.sort'],
319
- a: 1,
320
- },
321
- subject: {
322
- t: ['CodeableConcept', 'Reference'],
323
- c: 1,
324
- r: ['Group'],
325
- },
326
- type: {
327
- t: ['code'],
328
- },
329
- },
330
- },
331
- 'DataRequirement.codeFilter': {
332
- b: 'Element',
333
- e: {
334
- code: {
335
- t: ['Coding'],
336
- a: 1,
337
- },
338
- extension: {
339
- t: ['Extension'],
340
- a: 1,
341
- },
342
- id: {
343
- t: ['System.String'],
344
- },
345
- path: {
346
- t: ['string'],
347
- },
348
- searchParam: {
349
- t: ['string'],
350
- },
351
- valueSet: {
352
- t: ['canonical'],
353
- },
354
- },
355
- },
356
- 'DataRequirement.dateFilter': {
357
- b: 'Element',
358
- e: {
359
- extension: {
360
- t: ['Extension'],
361
- a: 1,
362
- },
363
- id: {
364
- t: ['System.String'],
365
- },
366
- path: {
367
- t: ['string'],
368
- },
369
- searchParam: {
370
- t: ['string'],
371
- },
372
- value: {
373
- t: ['dateTime', 'Period', 'Duration'],
374
- c: 1,
375
- },
376
- },
377
- },
378
- 'DataRequirement.sort': {
379
- b: 'Element',
380
- e: {
381
- direction: {
382
- t: ['code'],
383
- },
384
- extension: {
385
- t: ['Extension'],
386
- a: 1,
387
- },
388
- id: {
389
- t: ['System.String'],
390
- },
391
- path: {
392
- t: ['string'],
393
- },
394
- },
395
- },
396
- Distance: {
397
- b: 'Quantity',
398
- e: {
399
- code: {
400
- t: ['code'],
401
- },
402
- comparator: {
403
- t: ['code'],
404
- },
405
- extension: {
406
- t: ['Extension'],
407
- a: 1,
408
- },
409
- id: {
410
- t: ['System.String'],
411
- },
412
- system: {
413
- t: ['uri'],
414
- },
415
- unit: {
416
- t: ['string'],
417
- },
418
- value: {
419
- t: ['decimal'],
420
- },
421
- },
422
- },
423
- Dosage: {
424
- b: 'BackboneElement',
425
- e: {
426
- additionalInstruction: {
427
- t: ['CodeableConcept'],
428
- a: 1,
429
- },
430
- asNeeded: {
431
- t: ['boolean', 'CodeableConcept'],
432
- c: 1,
433
- },
434
- doseAndRate: {
435
- t: ['Dosage.doseAndRate'],
436
- a: 1,
437
- },
438
- extension: {
439
- t: ['Extension'],
440
- a: 1,
441
- },
442
- id: {
443
- t: ['System.String'],
444
- },
445
- maxDosePerAdministration: {
446
- t: ['Quantity'],
447
- },
448
- maxDosePerLifetime: {
449
- t: ['Quantity'],
450
- },
451
- maxDosePerPeriod: {
452
- t: ['Ratio'],
453
- },
454
- method: {
455
- t: ['CodeableConcept'],
456
- },
457
- modifierExtension: {
458
- t: ['Extension'],
459
- a: 1,
460
- },
461
- patientInstruction: {
462
- t: ['string'],
463
- },
464
- route: {
465
- t: ['CodeableConcept'],
466
- },
467
- sequence: {
468
- t: ['integer'],
469
- },
470
- site: {
471
- t: ['CodeableConcept'],
472
- },
473
- text: {
474
- t: ['string'],
475
- },
476
- timing: {
477
- t: ['Timing'],
478
- },
479
- },
480
- },
481
- 'Dosage.doseAndRate': {
482
- b: 'Element',
483
- e: {
484
- dose: {
485
- t: ['Range', 'Quantity'],
486
- c: 1,
487
- },
488
- extension: {
489
- t: ['Extension'],
490
- a: 1,
491
- },
492
- id: {
493
- t: ['System.String'],
494
- },
495
- rate: {
496
- t: ['Ratio', 'Range', 'Quantity'],
497
- c: 1,
498
- },
499
- type: {
500
- t: ['CodeableConcept'],
501
- },
502
- },
503
- },
504
- Duration: {
505
- b: 'Quantity',
506
- e: {
507
- code: {
508
- t: ['code'],
509
- },
510
- comparator: {
511
- t: ['code'],
512
- },
513
- extension: {
514
- t: ['Extension'],
515
- a: 1,
516
- },
517
- id: {
518
- t: ['System.String'],
519
- },
520
- system: {
521
- t: ['uri'],
522
- },
523
- unit: {
524
- t: ['string'],
525
- },
526
- value: {
527
- t: ['decimal'],
528
- },
529
- },
530
- },
531
- Element: {
532
- e: {
533
- extension: {
534
- t: ['Extension'],
535
- a: 1,
536
- },
537
- id: {
538
- t: ['System.String'],
539
- },
540
- },
541
- },
542
- ElementDefinition: {
543
- b: 'BackboneElement',
544
- e: {
545
- alias: {
546
- t: ['string'],
547
- a: 1,
548
- },
549
- base: {
550
- t: ['ElementDefinition.base'],
551
- },
552
- binding: {
553
- t: ['ElementDefinition.binding'],
554
- },
555
- code: {
556
- t: ['Coding'],
557
- a: 1,
558
- },
559
- comment: {
560
- t: ['markdown'],
561
- },
562
- condition: {
563
- t: ['id'],
564
- a: 1,
565
- },
566
- constraint: {
567
- t: ['ElementDefinition.constraint'],
568
- a: 1,
569
- },
570
- contentReference: {
571
- t: ['uri'],
572
- },
573
- defaultValue: {
574
- t: [
575
- 'base64Binary',
576
- 'boolean',
577
- 'canonical',
578
- 'code',
579
- 'date',
580
- 'dateTime',
581
- 'decimal',
582
- 'id',
583
- 'instant',
584
- 'integer',
585
- 'markdown',
586
- 'oid',
587
- 'positiveInt',
588
- 'string',
589
- 'time',
590
- 'unsignedInt',
591
- 'uri',
592
- 'url',
593
- 'uuid',
594
- 'Address',
595
- 'Age',
596
- 'Annotation',
597
- 'Attachment',
598
- 'CodeableConcept',
599
- 'Coding',
600
- 'ContactPoint',
601
- 'Count',
602
- 'Distance',
603
- 'Duration',
604
- 'HumanName',
605
- 'Identifier',
606
- 'Money',
607
- 'Period',
608
- 'Quantity',
609
- 'Range',
610
- 'Ratio',
611
- 'Reference',
612
- 'SampledData',
613
- 'Signature',
614
- 'Timing',
615
- 'ContactDetail',
616
- 'Contributor',
617
- 'DataRequirement',
618
- 'Expression',
619
- 'ParameterDefinition',
620
- 'RelatedArtifact',
621
- 'TriggerDefinition',
622
- 'UsageContext',
623
- 'Dosage',
624
- 'Meta',
625
- ],
626
- c: 1,
627
- },
628
- definition: {
629
- t: ['markdown'],
630
- },
631
- example: {
632
- t: ['ElementDefinition.example'],
633
- a: 1,
634
- },
635
- extension: {
636
- t: ['Extension'],
637
- a: 1,
638
- },
639
- fixed: {
640
- t: [
641
- 'base64Binary',
642
- 'boolean',
643
- 'canonical',
644
- 'code',
645
- 'date',
646
- 'dateTime',
647
- 'decimal',
648
- 'id',
649
- 'instant',
650
- 'integer',
651
- 'markdown',
652
- 'oid',
653
- 'positiveInt',
654
- 'string',
655
- 'time',
656
- 'unsignedInt',
657
- 'uri',
658
- 'url',
659
- 'uuid',
660
- 'Address',
661
- 'Age',
662
- 'Annotation',
663
- 'Attachment',
664
- 'CodeableConcept',
665
- 'Coding',
666
- 'ContactPoint',
667
- 'Count',
668
- 'Distance',
669
- 'Duration',
670
- 'HumanName',
671
- 'Identifier',
672
- 'Money',
673
- 'Period',
674
- 'Quantity',
675
- 'Range',
676
- 'Ratio',
677
- 'Reference',
678
- 'SampledData',
679
- 'Signature',
680
- 'Timing',
681
- 'ContactDetail',
682
- 'Contributor',
683
- 'DataRequirement',
684
- 'Expression',
685
- 'ParameterDefinition',
686
- 'RelatedArtifact',
687
- 'TriggerDefinition',
688
- 'UsageContext',
689
- 'Dosage',
690
- 'Meta',
691
- ],
692
- c: 1,
693
- },
694
- id: {
695
- t: ['System.String'],
696
- },
697
- isModifier: {
698
- t: ['boolean'],
699
- },
700
- isModifierReason: {
701
- t: ['string'],
702
- },
703
- isSummary: {
704
- t: ['boolean'],
705
- },
706
- label: {
707
- t: ['string'],
708
- },
709
- mapping: {
710
- t: ['ElementDefinition.mapping'],
711
- a: 1,
712
- },
713
- max: {
714
- t: ['string'],
715
- },
716
- maxLength: {
717
- t: ['integer'],
718
- },
719
- maxValue: {
720
- t: ['date', 'dateTime', 'instant', 'time', 'decimal', 'integer', 'positiveInt', 'unsignedInt', 'Quantity'],
721
- c: 1,
722
- },
723
- meaningWhenMissing: {
724
- t: ['markdown'],
725
- },
726
- min: {
727
- t: ['unsignedInt'],
728
- },
729
- minValue: {
730
- t: ['date', 'dateTime', 'instant', 'time', 'decimal', 'integer', 'positiveInt', 'unsignedInt', 'Quantity'],
731
- c: 1,
732
- },
733
- modifierExtension: {
734
- t: ['Extension'],
735
- a: 1,
736
- },
737
- mustSupport: {
738
- t: ['boolean'],
739
- },
740
- orderMeaning: {
741
- t: ['string'],
742
- },
743
- path: {
744
- t: ['string'],
745
- },
746
- pattern: {
747
- t: [
748
- 'base64Binary',
749
- 'boolean',
750
- 'canonical',
751
- 'code',
752
- 'date',
753
- 'dateTime',
754
- 'decimal',
755
- 'id',
756
- 'instant',
757
- 'integer',
758
- 'markdown',
759
- 'oid',
760
- 'positiveInt',
761
- 'string',
762
- 'time',
763
- 'unsignedInt',
764
- 'uri',
765
- 'url',
766
- 'uuid',
767
- 'Address',
768
- 'Age',
769
- 'Annotation',
770
- 'Attachment',
771
- 'CodeableConcept',
772
- 'Coding',
773
- 'ContactPoint',
774
- 'Count',
775
- 'Distance',
776
- 'Duration',
777
- 'HumanName',
778
- 'Identifier',
779
- 'Money',
780
- 'Period',
781
- 'Quantity',
782
- 'Range',
783
- 'Ratio',
784
- 'Reference',
785
- 'SampledData',
786
- 'Signature',
787
- 'Timing',
788
- 'ContactDetail',
789
- 'Contributor',
790
- 'DataRequirement',
791
- 'Expression',
792
- 'ParameterDefinition',
793
- 'RelatedArtifact',
794
- 'TriggerDefinition',
795
- 'UsageContext',
796
- 'Dosage',
797
- 'Meta',
798
- ],
799
- c: 1,
800
- },
801
- representation: {
802
- t: ['code'],
803
- a: 1,
804
- },
805
- requirements: {
806
- t: ['markdown'],
807
- },
808
- short: {
809
- t: ['string'],
810
- },
811
- sliceIsConstraining: {
812
- t: ['boolean'],
813
- },
814
- sliceName: {
815
- t: ['string'],
816
- },
817
- slicing: {
818
- t: ['ElementDefinition.slicing'],
819
- },
820
- type: {
821
- t: ['ElementDefinition.type'],
822
- a: 1,
823
- },
824
- },
825
- },
826
- 'ElementDefinition.base': {
827
- b: 'Element',
828
- e: {
829
- extension: {
830
- t: ['Extension'],
831
- a: 1,
832
- },
833
- id: {
834
- t: ['System.String'],
835
- },
836
- max: {
837
- t: ['string'],
838
- },
839
- min: {
840
- t: ['unsignedInt'],
841
- },
842
- path: {
843
- t: ['string'],
844
- },
845
- },
846
- },
847
- 'ElementDefinition.binding': {
848
- b: 'Element',
849
- e: {
850
- description: {
851
- t: ['string'],
852
- },
853
- extension: {
854
- t: ['Extension'],
855
- a: 1,
856
- },
857
- id: {
858
- t: ['System.String'],
859
- },
860
- strength: {
861
- t: ['code'],
862
- },
863
- valueSet: {
864
- t: ['canonical'],
865
- },
866
- },
867
- },
868
- 'ElementDefinition.constraint': {
869
- b: 'Element',
870
- e: {
871
- expression: {
872
- t: ['string'],
873
- },
874
- extension: {
875
- t: ['Extension'],
876
- a: 1,
877
- },
878
- human: {
879
- t: ['string'],
880
- },
881
- id: {
882
- t: ['System.String'],
883
- },
884
- key: {
885
- t: ['id'],
886
- },
887
- requirements: {
888
- t: ['string'],
889
- },
890
- severity: {
891
- t: ['code'],
892
- },
893
- source: {
894
- t: ['canonical'],
895
- },
896
- xpath: {
897
- t: ['string'],
898
- },
899
- },
900
- },
901
- 'ElementDefinition.example': {
902
- b: 'Element',
903
- e: {
904
- extension: {
905
- t: ['Extension'],
906
- a: 1,
907
- },
908
- id: {
909
- t: ['System.String'],
910
- },
911
- label: {
912
- t: ['string'],
913
- },
914
- value: {
915
- t: [
916
- 'base64Binary',
917
- 'boolean',
918
- 'canonical',
919
- 'code',
920
- 'date',
921
- 'dateTime',
922
- 'decimal',
923
- 'id',
924
- 'instant',
925
- 'integer',
926
- 'markdown',
927
- 'oid',
928
- 'positiveInt',
929
- 'string',
930
- 'time',
931
- 'unsignedInt',
932
- 'uri',
933
- 'url',
934
- 'uuid',
935
- 'Address',
936
- 'Age',
937
- 'Annotation',
938
- 'Attachment',
939
- 'CodeableConcept',
940
- 'Coding',
941
- 'ContactPoint',
942
- 'Count',
943
- 'Distance',
944
- 'Duration',
945
- 'HumanName',
946
- 'Identifier',
947
- 'Money',
948
- 'Period',
949
- 'Quantity',
950
- 'Range',
951
- 'Ratio',
952
- 'Reference',
953
- 'SampledData',
954
- 'Signature',
955
- 'Timing',
956
- 'ContactDetail',
957
- 'Contributor',
958
- 'DataRequirement',
959
- 'Expression',
960
- 'ParameterDefinition',
961
- 'RelatedArtifact',
962
- 'TriggerDefinition',
963
- 'UsageContext',
964
- 'Dosage',
965
- 'Meta',
966
- ],
967
- c: 1,
968
- },
969
- },
970
- },
971
- 'ElementDefinition.mapping': {
972
- b: 'Element',
973
- e: {
974
- comment: {
975
- t: ['string'],
976
- },
977
- extension: {
978
- t: ['Extension'],
979
- a: 1,
980
- },
981
- id: {
982
- t: ['System.String'],
983
- },
984
- identity: {
985
- t: ['id'],
986
- },
987
- language: {
988
- t: ['code'],
989
- },
990
- map: {
991
- t: ['string'],
992
- },
993
- },
994
- },
995
- 'ElementDefinition.slicing': {
996
- b: 'Element',
997
- e: {
998
- description: {
999
- t: ['string'],
1000
- },
1001
- discriminator: {
1002
- t: ['ElementDefinition.slicing.discriminator'],
1003
- a: 1,
1004
- },
1005
- extension: {
1006
- t: ['Extension'],
1007
- a: 1,
1008
- },
1009
- id: {
1010
- t: ['System.String'],
1011
- },
1012
- ordered: {
1013
- t: ['boolean'],
1014
- },
1015
- rules: {
1016
- t: ['code'],
1017
- },
1018
- },
1019
- },
1020
- 'ElementDefinition.slicing.discriminator': {
1021
- b: 'Element',
1022
- e: {
1023
- extension: {
1024
- t: ['Extension'],
1025
- a: 1,
1026
- },
1027
- id: {
1028
- t: ['System.String'],
1029
- },
1030
- path: {
1031
- t: ['string'],
1032
- },
1033
- type: {
1034
- t: ['code'],
1035
- },
1036
- },
1037
- },
1038
- 'ElementDefinition.type': {
1039
- b: 'Element',
1040
- e: {
1041
- aggregation: {
1042
- t: ['code'],
1043
- a: 1,
1044
- },
1045
- code: {
1046
- t: ['uri'],
1047
- },
1048
- extension: {
1049
- t: ['Extension'],
1050
- a: 1,
1051
- },
1052
- id: {
1053
- t: ['System.String'],
1054
- },
1055
- profile: {
1056
- t: ['canonical'],
1057
- a: 1,
1058
- },
1059
- targetProfile: {
1060
- t: ['canonical'],
1061
- a: 1,
1062
- },
1063
- versioning: {
1064
- t: ['code'],
1065
- },
1066
- },
1067
- },
1068
- Expression: {
1069
- b: 'Element',
1070
- e: {
1071
- description: {
1072
- t: ['string'],
1073
- },
1074
- expression: {
1075
- t: ['string'],
1076
- },
1077
- extension: {
1078
- t: ['Extension'],
1079
- a: 1,
1080
- },
1081
- id: {
1082
- t: ['System.String'],
1083
- },
1084
- language: {
1085
- t: ['code'],
1086
- },
1087
- name: {
1088
- t: ['id'],
1089
- },
1090
- reference: {
1091
- t: ['uri'],
1092
- },
1093
- },
1094
- },
1095
- Extension: {
1096
- b: 'Element',
1097
- e: {
1098
- extension: {
1099
- t: ['Extension'],
1100
- a: 1,
1101
- },
1102
- id: {
1103
- t: ['System.String'],
1104
- },
1105
- url: {
1106
- t: ['System.String'],
1107
- },
1108
- value: {
1109
- t: [
1110
- 'base64Binary',
1111
- 'boolean',
1112
- 'canonical',
1113
- 'code',
1114
- 'date',
1115
- 'dateTime',
1116
- 'decimal',
1117
- 'id',
1118
- 'instant',
1119
- 'integer',
1120
- 'markdown',
1121
- 'oid',
1122
- 'positiveInt',
1123
- 'string',
1124
- 'time',
1125
- 'unsignedInt',
1126
- 'uri',
1127
- 'url',
1128
- 'uuid',
1129
- 'Address',
1130
- 'Age',
1131
- 'Annotation',
1132
- 'Attachment',
1133
- 'CodeableConcept',
1134
- 'Coding',
1135
- 'ContactPoint',
1136
- 'Count',
1137
- 'Distance',
1138
- 'Duration',
1139
- 'HumanName',
1140
- 'Identifier',
1141
- 'Money',
1142
- 'Period',
1143
- 'Quantity',
1144
- 'Range',
1145
- 'Ratio',
1146
- 'Reference',
1147
- 'SampledData',
1148
- 'Signature',
1149
- 'Timing',
1150
- 'ContactDetail',
1151
- 'Contributor',
1152
- 'DataRequirement',
1153
- 'Expression',
1154
- 'ParameterDefinition',
1155
- 'RelatedArtifact',
1156
- 'TriggerDefinition',
1157
- 'UsageContext',
1158
- 'Dosage',
1159
- 'Meta',
1160
- ],
1161
- c: 1,
1162
- },
1163
- },
1164
- },
1165
- HumanName: {
1166
- b: 'Element',
1167
- e: {
1168
- extension: {
1169
- t: ['Extension'],
1170
- a: 1,
1171
- },
1172
- family: {
1173
- t: ['string'],
1174
- },
1175
- given: {
1176
- t: ['string'],
1177
- a: 1,
1178
- },
1179
- id: {
1180
- t: ['System.String'],
1181
- },
1182
- period: {
1183
- t: ['Period'],
1184
- },
1185
- prefix: {
1186
- t: ['string'],
1187
- a: 1,
1188
- },
1189
- suffix: {
1190
- t: ['string'],
1191
- a: 1,
1192
- },
1193
- text: {
1194
- t: ['string'],
1195
- },
1196
- use: {
1197
- t: ['code'],
1198
- },
1199
- },
1200
- },
1201
- Identifier: {
1202
- b: 'Element',
1203
- e: {
1204
- assigner: {
1205
- t: ['Reference'],
1206
- r: ['Organization'],
1207
- },
1208
- extension: {
1209
- t: ['Extension'],
1210
- a: 1,
1211
- },
1212
- id: {
1213
- t: ['System.String'],
1214
- },
1215
- period: {
1216
- t: ['Period'],
1217
- },
1218
- system: {
1219
- t: ['uri'],
1220
- },
1221
- type: {
1222
- t: ['CodeableConcept'],
1223
- },
1224
- use: {
1225
- t: ['code'],
1226
- },
1227
- value: {
1228
- t: ['string'],
1229
- },
1230
- },
1231
- },
1232
- MarketingStatus: {
1233
- b: 'BackboneElement',
1234
- e: {
1235
- country: {
1236
- t: ['CodeableConcept'],
1237
- },
1238
- dateRange: {
1239
- t: ['Period'],
1240
- },
1241
- extension: {
1242
- t: ['Extension'],
1243
- a: 1,
1244
- },
1245
- id: {
1246
- t: ['System.String'],
1247
- },
1248
- jurisdiction: {
1249
- t: ['CodeableConcept'],
1250
- },
1251
- modifierExtension: {
1252
- t: ['Extension'],
1253
- a: 1,
1254
- },
1255
- restoreDate: {
1256
- t: ['dateTime'],
1257
- },
1258
- status: {
1259
- t: ['CodeableConcept'],
1260
- },
1261
- },
1262
- },
1263
- Meta: {
1264
- b: 'Element',
1265
- e: {
1266
- account: {
1267
- t: ['Reference'],
1268
- },
1269
- accounts: {
1270
- t: ['Reference'],
1271
- a: 1,
1272
- },
1273
- author: {
1274
- t: ['Reference'],
1275
- },
1276
- compartment: {
1277
- t: ['Reference'],
1278
- a: 1,
1279
- },
1280
- deleted: {
1281
- t: ['boolean'],
1282
- },
1283
- extension: {
1284
- t: ['Extension'],
1285
- a: 1,
1286
- },
1287
- id: {
1288
- t: ['System.String'],
1289
- },
1290
- lastUpdated: {
1291
- t: ['instant'],
1292
- },
1293
- onBehalfOf: {
1294
- t: ['Reference'],
1295
- },
1296
- profile: {
1297
- t: ['canonical'],
1298
- a: 1,
1299
- },
1300
- project: {
1301
- t: ['uri'],
1302
- },
1303
- security: {
1304
- t: ['Coding'],
1305
- a: 1,
1306
- },
1307
- source: {
1308
- t: ['uri'],
1309
- },
1310
- tag: {
1311
- t: ['Coding'],
1312
- a: 1,
1313
- },
1314
- versionId: {
1315
- t: ['id'],
1316
- },
1317
- },
1318
- },
1319
- Money: {
1320
- b: 'Element',
1321
- e: {
1322
- currency: {
1323
- t: ['code'],
1324
- },
1325
- extension: {
1326
- t: ['Extension'],
1327
- a: 1,
1328
- },
1329
- id: {
1330
- t: ['System.String'],
1331
- },
1332
- value: {
1333
- t: ['decimal'],
1334
- },
1335
- },
1336
- },
1337
- MoneyQuantity: {
1338
- b: 'Quantity',
1339
- e: {},
1340
- },
1341
- Narrative: {
1342
- b: 'Element',
1343
- e: {
1344
- div: {
1345
- t: ['xhtml'],
1346
- },
1347
- extension: {
1348
- t: ['Extension'],
1349
- a: 1,
1350
- },
1351
- id: {
1352
- t: ['System.String'],
1353
- },
1354
- status: {
1355
- t: ['code'],
1356
- },
1357
- },
1358
- },
1359
- ParameterDefinition: {
1360
- b: 'Element',
1361
- e: {
1362
- documentation: {
1363
- t: ['string'],
1364
- },
1365
- extension: {
1366
- t: ['Extension'],
1367
- a: 1,
1368
- },
1369
- id: {
1370
- t: ['System.String'],
1371
- },
1372
- max: {
1373
- t: ['string'],
1374
- },
1375
- min: {
1376
- t: ['integer'],
1377
- },
1378
- name: {
1379
- t: ['code'],
1380
- },
1381
- profile: {
1382
- t: ['canonical'],
1383
- },
1384
- type: {
1385
- t: ['code'],
1386
- },
1387
- use: {
1388
- t: ['code'],
1389
- },
1390
- },
1391
- },
1392
- Period: {
1393
- b: 'Element',
1394
- e: {
1395
- end: {
1396
- t: ['dateTime'],
1397
- },
1398
- extension: {
1399
- t: ['Extension'],
1400
- a: 1,
1401
- },
1402
- id: {
1403
- t: ['System.String'],
1404
- },
1405
- start: {
1406
- t: ['dateTime'],
1407
- },
1408
- },
1409
- },
1410
- Population: {
1411
- b: 'BackboneElement',
1412
- e: {
1413
- age: {
1414
- t: ['Range', 'CodeableConcept'],
1415
- c: 1,
1416
- },
1417
- extension: {
1418
- t: ['Extension'],
1419
- a: 1,
1420
- },
1421
- gender: {
1422
- t: ['CodeableConcept'],
1423
- },
1424
- id: {
1425
- t: ['System.String'],
1426
- },
1427
- modifierExtension: {
1428
- t: ['Extension'],
1429
- a: 1,
1430
- },
1431
- physiologicalCondition: {
1432
- t: ['CodeableConcept'],
1433
- },
1434
- race: {
1435
- t: ['CodeableConcept'],
1436
- },
1437
- },
1438
- },
1439
- ProdCharacteristic: {
1440
- b: 'BackboneElement',
1441
- e: {
1442
- color: {
1443
- t: ['string'],
1444
- a: 1,
1445
- },
1446
- depth: {
1447
- t: ['Quantity'],
1448
- },
1449
- extension: {
1450
- t: ['Extension'],
1451
- a: 1,
1452
- },
1453
- externalDiameter: {
1454
- t: ['Quantity'],
1455
- },
1456
- height: {
1457
- t: ['Quantity'],
1458
- },
1459
- id: {
1460
- t: ['System.String'],
1461
- },
1462
- image: {
1463
- t: ['Attachment'],
1464
- a: 1,
1465
- },
1466
- imprint: {
1467
- t: ['string'],
1468
- a: 1,
1469
- },
1470
- modifierExtension: {
1471
- t: ['Extension'],
1472
- a: 1,
1473
- },
1474
- nominalVolume: {
1475
- t: ['Quantity'],
1476
- },
1477
- scoring: {
1478
- t: ['CodeableConcept'],
1479
- },
1480
- shape: {
1481
- t: ['string'],
1482
- },
1483
- weight: {
1484
- t: ['Quantity'],
1485
- },
1486
- width: {
1487
- t: ['Quantity'],
1488
- },
1489
- },
1490
- },
1491
- ProductShelfLife: {
1492
- b: 'BackboneElement',
1493
- e: {
1494
- extension: {
1495
- t: ['Extension'],
1496
- a: 1,
1497
- },
1498
- id: {
1499
- t: ['System.String'],
1500
- },
1501
- identifier: {
1502
- t: ['Identifier'],
1503
- },
1504
- modifierExtension: {
1505
- t: ['Extension'],
1506
- a: 1,
1507
- },
1508
- period: {
1509
- t: ['Quantity'],
1510
- },
1511
- specialPrecautionsForStorage: {
1512
- t: ['CodeableConcept'],
1513
- a: 1,
1514
- },
1515
- type: {
1516
- t: ['CodeableConcept'],
1517
- },
1518
- },
1519
- },
1520
- Quantity: {
1521
- b: 'Element',
1522
- e: {
1523
- code: {
1524
- t: ['code'],
1525
- },
1526
- comparator: {
1527
- t: ['code'],
1528
- },
1529
- extension: {
1530
- t: ['Extension'],
1531
- a: 1,
1532
- },
1533
- id: {
1534
- t: ['System.String'],
1535
- },
1536
- system: {
1537
- t: ['uri'],
1538
- },
1539
- unit: {
1540
- t: ['string'],
1541
- },
1542
- value: {
1543
- t: ['decimal'],
1544
- },
1545
- },
1546
- },
1547
- Range: {
1548
- b: 'Element',
1549
- e: {
1550
- extension: {
1551
- t: ['Extension'],
1552
- a: 1,
1553
- },
1554
- high: {
1555
- t: ['Quantity'],
1556
- },
1557
- id: {
1558
- t: ['System.String'],
1559
- },
1560
- low: {
1561
- t: ['Quantity'],
1562
- },
1563
- },
1564
- },
1565
- Ratio: {
1566
- b: 'Element',
1567
- e: {
1568
- denominator: {
1569
- t: ['Quantity'],
1570
- },
1571
- extension: {
1572
- t: ['Extension'],
1573
- a: 1,
1574
- },
1575
- id: {
1576
- t: ['System.String'],
1577
- },
1578
- numerator: {
1579
- t: ['Quantity'],
1580
- },
1581
- },
1582
- },
1583
- Reference: {
1584
- b: 'Element',
1585
- e: {
1586
- display: {
1587
- t: ['string'],
1588
- },
1589
- extension: {
1590
- t: ['Extension'],
1591
- a: 1,
1592
- },
1593
- id: {
1594
- t: ['System.String'],
1595
- },
1596
- identifier: {
1597
- t: ['Identifier'],
1598
- },
1599
- reference: {
1600
- t: ['string'],
1601
- },
1602
- type: {
1603
- t: ['uri'],
1604
- },
1605
- },
1606
- },
1607
- RelatedArtifact: {
1608
- b: 'Element',
1609
- e: {
1610
- citation: {
1611
- t: ['markdown'],
1612
- },
1613
- display: {
1614
- t: ['string'],
1615
- },
1616
- document: {
1617
- t: ['Attachment'],
1618
- },
1619
- extension: {
1620
- t: ['Extension'],
1621
- a: 1,
1622
- },
1623
- id: {
1624
- t: ['System.String'],
1625
- },
1626
- label: {
1627
- t: ['string'],
1628
- },
1629
- resource: {
1630
- t: ['canonical'],
1631
- },
1632
- type: {
1633
- t: ['code'],
1634
- },
1635
- url: {
1636
- t: ['url'],
1637
- },
1638
- },
1639
- },
1640
- SampledData: {
1641
- b: 'Element',
1642
- e: {
1643
- data: {
1644
- t: ['string'],
1645
- },
1646
- dimensions: {
1647
- t: ['positiveInt'],
1648
- },
1649
- extension: {
1650
- t: ['Extension'],
1651
- a: 1,
1652
- },
1653
- factor: {
1654
- t: ['decimal'],
1655
- },
1656
- id: {
1657
- t: ['System.String'],
1658
- },
1659
- lowerLimit: {
1660
- t: ['decimal'],
1661
- },
1662
- origin: {
1663
- t: ['Quantity'],
1664
- },
1665
- period: {
1666
- t: ['decimal'],
1667
- },
1668
- upperLimit: {
1669
- t: ['decimal'],
1670
- },
1671
- },
1672
- },
1673
- Signature: {
1674
- b: 'Element',
1675
- e: {
1676
- data: {
1677
- t: ['base64Binary'],
1678
- },
1679
- extension: {
1680
- t: ['Extension'],
1681
- a: 1,
1682
- },
1683
- id: {
1684
- t: ['System.String'],
1685
- },
1686
- onBehalfOf: {
1687
- t: ['Reference'],
1688
- r: ['Practitioner', 'PractitionerRole', 'RelatedPerson', 'Patient', 'Device', 'Organization'],
1689
- },
1690
- sigFormat: {
1691
- t: ['code'],
1692
- },
1693
- targetFormat: {
1694
- t: ['code'],
1695
- },
1696
- type: {
1697
- t: ['Coding'],
1698
- a: 1,
1699
- },
1700
- when: {
1701
- t: ['instant'],
1702
- },
1703
- who: {
1704
- t: ['Reference'],
1705
- r: ['Practitioner', 'PractitionerRole', 'RelatedPerson', 'Patient', 'Device', 'Organization'],
1706
- },
1707
- },
1708
- },
1709
- SimpleQuantity: {
1710
- b: 'Quantity',
1711
- e: {},
1712
- },
1713
- SubstanceAmount: {
1714
- b: 'BackboneElement',
1715
- e: {
1716
- amount: {
1717
- t: ['Quantity', 'Range', 'string'],
1718
- c: 1,
1719
- },
1720
- amountText: {
1721
- t: ['string'],
1722
- },
1723
- amountType: {
1724
- t: ['CodeableConcept'],
1725
- },
1726
- extension: {
1727
- t: ['Extension'],
1728
- a: 1,
1729
- },
1730
- id: {
1731
- t: ['System.String'],
1732
- },
1733
- modifierExtension: {
1734
- t: ['Extension'],
1735
- a: 1,
1736
- },
1737
- referenceRange: {
1738
- t: ['SubstanceAmount.referenceRange'],
1739
- },
1740
- },
1741
- },
1742
- 'SubstanceAmount.referenceRange': {
1743
- b: 'Element',
1744
- e: {
1745
- extension: {
1746
- t: ['Extension'],
1747
- a: 1,
1748
- },
1749
- highLimit: {
1750
- t: ['Quantity'],
1751
- },
1752
- id: {
1753
- t: ['System.String'],
1754
- },
1755
- lowLimit: {
1756
- t: ['Quantity'],
1757
- },
1758
- },
1759
- },
1760
- Timing: {
1761
- b: 'BackboneElement',
1762
- e: {
1763
- code: {
1764
- t: ['CodeableConcept'],
1765
- },
1766
- event: {
1767
- t: ['dateTime'],
1768
- a: 1,
1769
- },
1770
- extension: {
1771
- t: ['Extension'],
1772
- a: 1,
1773
- },
1774
- id: {
1775
- t: ['System.String'],
1776
- },
1777
- modifierExtension: {
1778
- t: ['Extension'],
1779
- a: 1,
1780
- },
1781
- repeat: {
1782
- t: ['Timing.repeat'],
1783
- },
1784
- },
1785
- },
1786
- 'Timing.repeat': {
1787
- b: 'Element',
1788
- e: {
1789
- bounds: {
1790
- t: ['Duration', 'Range', 'Period'],
1791
- c: 1,
1792
- },
1793
- count: {
1794
- t: ['positiveInt'],
1795
- },
1796
- countMax: {
1797
- t: ['positiveInt'],
1798
- },
1799
- dayOfWeek: {
1800
- t: ['code'],
1801
- a: 1,
1802
- },
1803
- duration: {
1804
- t: ['decimal'],
1805
- },
1806
- durationMax: {
1807
- t: ['decimal'],
1808
- },
1809
- durationUnit: {
1810
- t: ['code'],
1811
- },
1812
- extension: {
1813
- t: ['Extension'],
1814
- a: 1,
1815
- },
1816
- frequency: {
1817
- t: ['positiveInt'],
1818
- },
1819
- frequencyMax: {
1820
- t: ['positiveInt'],
1821
- },
1822
- id: {
1823
- t: ['System.String'],
1824
- },
1825
- offset: {
1826
- t: ['unsignedInt'],
1827
- },
1828
- period: {
1829
- t: ['decimal'],
1830
- },
1831
- periodMax: {
1832
- t: ['decimal'],
1833
- },
1834
- periodUnit: {
1835
- t: ['code'],
1836
- },
1837
- timeOfDay: {
1838
- t: ['time'],
1839
- a: 1,
1840
- },
1841
- when: {
1842
- t: ['code'],
1843
- a: 1,
1844
- },
1845
- },
1846
- },
1847
- TriggerDefinition: {
1848
- b: 'Element',
1849
- e: {
1850
- condition: {
1851
- t: ['Expression'],
1852
- },
1853
- data: {
1854
- t: ['DataRequirement'],
1855
- a: 1,
1856
- },
1857
- extension: {
1858
- t: ['Extension'],
1859
- a: 1,
1860
- },
1861
- id: {
1862
- t: ['System.String'],
1863
- },
1864
- name: {
1865
- t: ['string'],
1866
- },
1867
- timing: {
1868
- t: ['Timing', 'Reference', 'date', 'dateTime'],
1869
- c: 1,
1870
- r: ['Schedule'],
1871
- },
1872
- type: {
1873
- t: ['code'],
1874
- },
1875
- },
1876
- },
1877
- UsageContext: {
1878
- b: 'Element',
1879
- e: {
1880
- code: {
1881
- t: ['Coding'],
1882
- },
1883
- extension: {
1884
- t: ['Extension'],
1885
- a: 1,
1886
- },
1887
- id: {
1888
- t: ['System.String'],
1889
- },
1890
- value: {
1891
- t: ['CodeableConcept', 'Quantity', 'Range', 'Reference'],
1892
- c: 1,
1893
- r: [
1894
- 'PlanDefinition',
1895
- 'ResearchStudy',
1896
- 'InsurancePlan',
1897
- 'HealthcareService',
1898
- 'Group',
1899
- 'Location',
1900
- 'Organization',
1901
- ],
1902
- },
1903
- },
1904
- },
1905
- base64Binary: {
1906
- b: 'Element',
1907
- e: {
1908
- extension: {
1909
- t: ['Extension'],
1910
- a: 1,
1911
- },
1912
- id: {
1913
- t: ['System.String'],
1914
- },
1915
- value: {
1916
- t: ['System.String'],
1917
- },
1918
- },
1919
- },
1920
- boolean: {
1921
- b: 'Element',
1922
- e: {
1923
- extension: {
1924
- t: ['Extension'],
1925
- a: 1,
1926
- },
1927
- id: {
1928
- t: ['System.String'],
1929
- },
1930
- value: {
1931
- t: ['System.Boolean'],
1932
- },
1933
- },
1934
- },
1935
- canonical: {
1936
- b: 'uri',
1937
- e: {
1938
- extension: {
1939
- t: ['Extension'],
1940
- a: 1,
1941
- },
1942
- id: {
1943
- t: ['System.String'],
1944
- },
1945
- value: {
1946
- t: ['System.String'],
1947
- },
1948
- },
1949
- },
1950
- code: {
1951
- b: 'string',
1952
- e: {
1953
- extension: {
1954
- t: ['Extension'],
1955
- a: 1,
1956
- },
1957
- id: {
1958
- t: ['System.String'],
1959
- },
1960
- value: {
1961
- t: ['System.String'],
1962
- },
1963
- },
1964
- },
1965
- date: {
1966
- b: 'Element',
1967
- e: {
1968
- extension: {
1969
- t: ['Extension'],
1970
- a: 1,
1971
- },
1972
- id: {
1973
- t: ['System.String'],
1974
- },
1975
- value: {
1976
- t: ['System.Date'],
1977
- },
1978
- },
1979
- },
1980
- dateTime: {
1981
- b: 'Element',
1982
- e: {
1983
- extension: {
1984
- t: ['Extension'],
1985
- a: 1,
1986
- },
1987
- id: {
1988
- t: ['System.String'],
1989
- },
1990
- value: {
1991
- t: ['System.DateTime'],
1992
- },
1993
- },
1994
- },
1995
- decimal: {
1996
- b: 'Element',
1997
- e: {
1998
- extension: {
1999
- t: ['Extension'],
2000
- a: 1,
2001
- },
2002
- id: {
2003
- t: ['System.String'],
2004
- },
2005
- value: {
2006
- t: ['System.Decimal'],
2007
- },
2008
- },
2009
- },
2010
- id: {
2011
- b: 'string',
2012
- e: {
2013
- extension: {
2014
- t: ['Extension'],
2015
- a: 1,
2016
- },
2017
- id: {
2018
- t: ['System.String'],
2019
- },
2020
- value: {
2021
- t: ['System.String'],
2022
- },
2023
- },
2024
- },
2025
- instant: {
2026
- b: 'Element',
2027
- e: {
2028
- extension: {
2029
- t: ['Extension'],
2030
- a: 1,
2031
- },
2032
- id: {
2033
- t: ['System.String'],
2034
- },
2035
- value: {
2036
- t: ['System.DateTime'],
2037
- },
2038
- },
2039
- },
2040
- integer: {
2041
- b: 'Element',
2042
- e: {
2043
- extension: {
2044
- t: ['Extension'],
2045
- a: 1,
2046
- },
2047
- id: {
2048
- t: ['System.String'],
2049
- },
2050
- value: {
2051
- t: ['System.Integer'],
2052
- },
2053
- },
2054
- },
2055
- markdown: {
2056
- b: 'string',
2057
- e: {
2058
- extension: {
2059
- t: ['Extension'],
2060
- a: 1,
2061
- },
2062
- id: {
2063
- t: ['System.String'],
2064
- },
2065
- value: {
2066
- t: ['System.String'],
2067
- },
2068
- },
2069
- },
2070
- oid: {
2071
- b: 'uri',
2072
- e: {
2073
- extension: {
2074
- t: ['Extension'],
2075
- a: 1,
2076
- },
2077
- id: {
2078
- t: ['System.String'],
2079
- },
2080
- value: {
2081
- t: ['System.String'],
2082
- },
2083
- },
2084
- },
2085
- positiveInt: {
2086
- b: 'integer',
2087
- e: {
2088
- extension: {
2089
- t: ['Extension'],
2090
- a: 1,
2091
- },
2092
- id: {
2093
- t: ['System.String'],
2094
- },
2095
- value: {
2096
- t: ['System.String'],
2097
- },
2098
- },
2099
- },
2100
- string: {
2101
- b: 'Element',
2102
- e: {
2103
- extension: {
2104
- t: ['Extension'],
2105
- a: 1,
2106
- },
2107
- id: {
2108
- t: ['System.String'],
2109
- },
2110
- value: {
2111
- t: ['System.String'],
2112
- },
2113
- },
2114
- },
2115
- time: {
2116
- b: 'Element',
2117
- e: {
2118
- extension: {
2119
- t: ['Extension'],
2120
- a: 1,
2121
- },
2122
- id: {
2123
- t: ['System.String'],
2124
- },
2125
- value: {
2126
- t: ['System.Time'],
2127
- },
2128
- },
2129
- },
2130
- unsignedInt: {
2131
- b: 'integer',
2132
- e: {
2133
- extension: {
2134
- t: ['Extension'],
2135
- a: 1,
2136
- },
2137
- id: {
2138
- t: ['System.String'],
2139
- },
2140
- value: {
2141
- t: ['System.String'],
2142
- },
2143
- },
2144
- },
2145
- uri: {
2146
- b: 'Element',
2147
- e: {
2148
- extension: {
2149
- t: ['Extension'],
2150
- a: 1,
2151
- },
2152
- id: {
2153
- t: ['System.String'],
2154
- },
2155
- value: {
2156
- t: ['System.String'],
2157
- },
2158
- },
2159
- },
2160
- url: {
2161
- b: 'uri',
2162
- e: {
2163
- extension: {
2164
- t: ['Extension'],
2165
- a: 1,
2166
- },
2167
- id: {
2168
- t: ['System.String'],
2169
- },
2170
- value: {
2171
- t: ['System.String'],
2172
- },
2173
- },
2174
- },
2175
- uuid: {
2176
- b: 'uri',
2177
- e: {
2178
- extension: {
2179
- t: ['Extension'],
2180
- a: 1,
2181
- },
2182
- id: {
2183
- t: ['System.String'],
2184
- },
2185
- value: {
2186
- t: ['System.String'],
2187
- },
2188
- },
2189
- },
2190
- xhtml: {
2191
- b: 'Element',
2192
- e: {
2193
- extension: {
2194
- t: ['Extension'],
2195
- },
2196
- id: {
2197
- t: ['System.String'],
2198
- },
2199
- value: {
2200
- t: ['System.String'],
2201
- },
2202
- },
2203
- },
2204
- };
1
+ // Generated by scripts/generate-r4-model.ts from profiles-types.json (@medplum/definitions).
2
+ // Do not edit by hand; re-run the script instead.
3
+ /**
4
+ * Compact-encoded model table, one line per type; the format and decoder live
5
+ * in src/r4/model-data.ts. Elements identical to the nearest ancestor's entry
6
+ * are omitted — lookups walk the base chain.
7
+ */
8
+ export const R4_DATA_TYPES_COMPACT = `Address|Element|city:string;country:string;district:string;line:string*;period:Period;postalCode:string;state:string;text:string;type:code;use:code
9
+ Age|Quantity|
10
+ Annotation|Element|author:Reference,string^<Practitioner,Patient,RelatedPerson,Organization;text:markdown;time:dateTime
11
+ Attachment|Element|contentType:code;creation:dateTime;data:base64Binary;hash:base64Binary;language:code;size:unsignedInt;title:string;url:url
12
+ BackboneElement|Element|modifierExtension:Extension*
13
+ CodeableConcept|Element|coding:Coding*;text:string
14
+ Coding|Element|code:code;display:string;system:uri;userSelected:boolean;version:string
15
+ ContactDetail|Element|name:string;telecom:ContactPoint*
16
+ ContactPoint|Element|period:Period;rank:positiveInt;system:code;use:code;value:string
17
+ Contributor|Element|contact:ContactDetail*;name:string;type:code
18
+ Count|Quantity|
19
+ DataRequirement|Element|codeFilter:DataRequirement.codeFilter*;dateFilter:DataRequirement.dateFilter*;limit:positiveInt;mustSupport:string*;profile:canonical*;sort:DataRequirement.sort*;subject:CodeableConcept,Reference^<Group;type:code
20
+ DataRequirement.codeFilter|Element|code:Coding*;path:string;searchParam:string;valueSet:canonical
21
+ DataRequirement.dateFilter|Element|path:string;searchParam:string;value:dateTime,Period,Duration^
22
+ DataRequirement.sort|Element|direction:code;path:string
23
+ Distance|Quantity|
24
+ Dosage|BackboneElement|additionalInstruction:CodeableConcept*;asNeeded:boolean,CodeableConcept^;doseAndRate:Dosage.doseAndRate*;maxDosePerAdministration:Quantity;maxDosePerLifetime:Quantity;maxDosePerPeriod:Ratio;method:CodeableConcept;patientInstruction:string;route:CodeableConcept;sequence:integer;site:CodeableConcept;text:string;timing:Timing
25
+ Dosage.doseAndRate|Element|dose:Range,Quantity^;rate:Ratio,Range,Quantity^;type:CodeableConcept
26
+ Duration|Quantity|
27
+ Element||extension:Extension*;id:System.String
28
+ ElementDefinition|BackboneElement|alias:string*;base:ElementDefinition.base;binding:ElementDefinition.binding;code:Coding*;comment:markdown;condition:id*;constraint:ElementDefinition.constraint*;contentReference:uri;defaultValue:base64Binary,boolean,canonical,code,date,dateTime,decimal,id,instant,integer,markdown,oid,positiveInt,string,time,unsignedInt,uri,url,uuid,Address,Age,Annotation,Attachment,CodeableConcept,Coding,ContactPoint,Count,Distance,Duration,HumanName,Identifier,Money,Period,Quantity,Range,Ratio,Reference,SampledData,Signature,Timing,ContactDetail,Contributor,DataRequirement,Expression,ParameterDefinition,RelatedArtifact,TriggerDefinition,UsageContext,Dosage,Meta^;definition:markdown;example:ElementDefinition.example*;fixed:base64Binary,boolean,canonical,code,date,dateTime,decimal,id,instant,integer,markdown,oid,positiveInt,string,time,unsignedInt,uri,url,uuid,Address,Age,Annotation,Attachment,CodeableConcept,Coding,ContactPoint,Count,Distance,Duration,HumanName,Identifier,Money,Period,Quantity,Range,Ratio,Reference,SampledData,Signature,Timing,ContactDetail,Contributor,DataRequirement,Expression,ParameterDefinition,RelatedArtifact,TriggerDefinition,UsageContext,Dosage,Meta^;isModifier:boolean;isModifierReason:string;isSummary:boolean;label:string;mapping:ElementDefinition.mapping*;max:string;maxLength:integer;maxValue:date,dateTime,instant,time,decimal,integer,positiveInt,unsignedInt,Quantity^;meaningWhenMissing:markdown;min:unsignedInt;minValue:date,dateTime,instant,time,decimal,integer,positiveInt,unsignedInt,Quantity^;mustSupport:boolean;orderMeaning:string;path:string;pattern:base64Binary,boolean,canonical,code,date,dateTime,decimal,id,instant,integer,markdown,oid,positiveInt,string,time,unsignedInt,uri,url,uuid,Address,Age,Annotation,Attachment,CodeableConcept,Coding,ContactPoint,Count,Distance,Duration,HumanName,Identifier,Money,Period,Quantity,Range,Ratio,Reference,SampledData,Signature,Timing,ContactDetail,Contributor,DataRequirement,Expression,ParameterDefinition,RelatedArtifact,TriggerDefinition,UsageContext,Dosage,Meta^;representation:code*;requirements:markdown;short:string;sliceIsConstraining:boolean;sliceName:string;slicing:ElementDefinition.slicing;type:ElementDefinition.type*
29
+ ElementDefinition.base|Element|max:string;min:unsignedInt;path:string
30
+ ElementDefinition.binding|Element|description:string;strength:code;valueSet:canonical
31
+ ElementDefinition.constraint|Element|expression:string;human:string;key:id;requirements:string;severity:code;source:canonical;xpath:string
32
+ ElementDefinition.example|Element|label:string;value:base64Binary,boolean,canonical,code,date,dateTime,decimal,id,instant,integer,markdown,oid,positiveInt,string,time,unsignedInt,uri,url,uuid,Address,Age,Annotation,Attachment,CodeableConcept,Coding,ContactPoint,Count,Distance,Duration,HumanName,Identifier,Money,Period,Quantity,Range,Ratio,Reference,SampledData,Signature,Timing,ContactDetail,Contributor,DataRequirement,Expression,ParameterDefinition,RelatedArtifact,TriggerDefinition,UsageContext,Dosage,Meta^
33
+ ElementDefinition.mapping|Element|comment:string;identity:id;language:code;map:string
34
+ ElementDefinition.slicing|Element|description:string;discriminator:ElementDefinition.slicing.discriminator*;ordered:boolean;rules:code
35
+ ElementDefinition.slicing.discriminator|Element|path:string;type:code
36
+ ElementDefinition.type|Element|aggregation:code*;code:uri;profile:canonical*;targetProfile:canonical*;versioning:code
37
+ Expression|Element|description:string;expression:string;language:code;name:id;reference:uri
38
+ Extension|Element|url:System.String;value:base64Binary,boolean,canonical,code,date,dateTime,decimal,id,instant,integer,markdown,oid,positiveInt,string,time,unsignedInt,uri,url,uuid,Address,Age,Annotation,Attachment,CodeableConcept,Coding,ContactPoint,Count,Distance,Duration,HumanName,Identifier,Money,Period,Quantity,Range,Ratio,Reference,SampledData,Signature,Timing,ContactDetail,Contributor,DataRequirement,Expression,ParameterDefinition,RelatedArtifact,TriggerDefinition,UsageContext,Dosage,Meta^
39
+ HumanName|Element|family:string;given:string*;period:Period;prefix:string*;suffix:string*;text:string;use:code
40
+ Identifier|Element|assigner:Reference<Organization;period:Period;system:uri;type:CodeableConcept;use:code;value:string
41
+ MarketingStatus|BackboneElement|country:CodeableConcept;dateRange:Period;jurisdiction:CodeableConcept;restoreDate:dateTime;status:CodeableConcept
42
+ Meta|Element|account:Reference;accounts:Reference*;author:Reference;compartment:Reference*;deleted:boolean;lastUpdated:instant;onBehalfOf:Reference;profile:canonical*;project:uri;security:Coding*;source:uri;tag:Coding*;versionId:id
43
+ Money|Element|currency:code;value:decimal
44
+ MoneyQuantity|Quantity|
45
+ Narrative|Element|div:xhtml;status:code
46
+ ParameterDefinition|Element|documentation:string;max:string;min:integer;name:code;profile:canonical;type:code;use:code
47
+ Period|Element|end:dateTime;start:dateTime
48
+ Population|BackboneElement|age:Range,CodeableConcept^;gender:CodeableConcept;physiologicalCondition:CodeableConcept;race:CodeableConcept
49
+ ProdCharacteristic|BackboneElement|color:string*;depth:Quantity;externalDiameter:Quantity;height:Quantity;image:Attachment*;imprint:string*;nominalVolume:Quantity;scoring:CodeableConcept;shape:string;weight:Quantity;width:Quantity
50
+ ProductShelfLife|BackboneElement|identifier:Identifier;period:Quantity;specialPrecautionsForStorage:CodeableConcept*;type:CodeableConcept
51
+ Quantity|Element|code:code;comparator:code;system:uri;unit:string;value:decimal
52
+ Range|Element|high:Quantity;low:Quantity
53
+ Ratio|Element|denominator:Quantity;numerator:Quantity
54
+ Reference|Element|display:string;identifier:Identifier;reference:string;type:uri
55
+ RelatedArtifact|Element|citation:markdown;display:string;document:Attachment;label:string;resource:canonical;type:code;url:url
56
+ SampledData|Element|data:string;dimensions:positiveInt;factor:decimal;lowerLimit:decimal;origin:Quantity;period:decimal;upperLimit:decimal
57
+ Signature|Element|data:base64Binary;onBehalfOf:Reference<Practitioner,PractitionerRole,RelatedPerson,Patient,Device,Organization;sigFormat:code;targetFormat:code;type:Coding*;when:instant;who:Reference<Practitioner,PractitionerRole,RelatedPerson,Patient,Device,Organization
58
+ SimpleQuantity|Quantity|
59
+ SubstanceAmount|BackboneElement|amount:Quantity,Range,string^;amountText:string;amountType:CodeableConcept;referenceRange:SubstanceAmount.referenceRange
60
+ SubstanceAmount.referenceRange|Element|highLimit:Quantity;lowLimit:Quantity
61
+ Timing|BackboneElement|code:CodeableConcept;event:dateTime*;repeat:Timing.repeat
62
+ Timing.repeat|Element|bounds:Duration,Range,Period^;count:positiveInt;countMax:positiveInt;dayOfWeek:code*;duration:decimal;durationMax:decimal;durationUnit:code;frequency:positiveInt;frequencyMax:positiveInt;offset:unsignedInt;period:decimal;periodMax:decimal;periodUnit:code;timeOfDay:time*;when:code*
63
+ TriggerDefinition|Element|condition:Expression;data:DataRequirement*;name:string;timing:Timing,Reference,date,dateTime^<Schedule;type:code
64
+ UsageContext|Element|code:Coding;value:CodeableConcept,Quantity,Range,Reference^<PlanDefinition,ResearchStudy,InsurancePlan,HealthcareService,Group,Location,Organization
65
+ base64Binary|Element|value:System.String
66
+ boolean|Element|value:System.Boolean
67
+ canonical|uri|
68
+ code|string|
69
+ date|Element|value:System.Date
70
+ dateTime|Element|value:System.DateTime
71
+ decimal|Element|value:System.Decimal
72
+ id|string|
73
+ instant|Element|value:System.DateTime
74
+ integer|Element|value:System.Integer
75
+ markdown|string|
76
+ oid|uri|
77
+ positiveInt|integer|value:System.String
78
+ string|Element|value:System.String
79
+ time|Element|value:System.Time
80
+ unsignedInt|integer|value:System.String
81
+ uri|Element|value:System.String
82
+ url|uri|
83
+ uuid|uri|
84
+ xhtml|Element|extension:Extension;value:System.String`;
2205
85
  //# sourceMappingURL=types-data.js.map