fhirpath-rb 0.1.1

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 (69) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +25 -0
  4. data/CLAUDE.md +59 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +43 -0
  7. data/Rakefile +12 -0
  8. data/ext/fhir_path_parser/extconf.rb +40 -0
  9. data/lib/fhirpath/engine/evaluators/expressions.rb +59 -0
  10. data/lib/fhirpath/engine/evaluators/literals.rb +70 -0
  11. data/lib/fhirpath/engine/evaluators/member_invocation.rb +109 -0
  12. data/lib/fhirpath/engine/evaluators.rb +130 -0
  13. data/lib/fhirpath/engine/invocations/aggregate.rb +48 -0
  14. data/lib/fhirpath/engine/invocations/collections.rb +32 -0
  15. data/lib/fhirpath/engine/invocations/combining.rb +30 -0
  16. data/lib/fhirpath/engine/invocations/datetime.rb +34 -0
  17. data/lib/fhirpath/engine/invocations/equality.rb +95 -0
  18. data/lib/fhirpath/engine/invocations/equivalence.rb +138 -0
  19. data/lib/fhirpath/engine/invocations/existence.rb +117 -0
  20. data/lib/fhirpath/engine/invocations/filtering.rb +107 -0
  21. data/lib/fhirpath/engine/invocations/inequality.rb +92 -0
  22. data/lib/fhirpath/engine/invocations/logic.rb +74 -0
  23. data/lib/fhirpath/engine/invocations/math.rb +109 -0
  24. data/lib/fhirpath/engine/invocations/math_functions.rb +121 -0
  25. data/lib/fhirpath/engine/invocations/misc.rb +144 -0
  26. data/lib/fhirpath/engine/invocations/misc_converts_to.rb +91 -0
  27. data/lib/fhirpath/engine/invocations/navigation.rb +102 -0
  28. data/lib/fhirpath/engine/invocations/registry_strings_and_math.rb +48 -0
  29. data/lib/fhirpath/engine/invocations/strings.rb +139 -0
  30. data/lib/fhirpath/engine/invocations/strings_encoding.rb +68 -0
  31. data/lib/fhirpath/engine/invocations/subsetting.rb +15 -0
  32. data/lib/fhirpath/engine/invocations/types.rb +36 -0
  33. data/lib/fhirpath/engine/invocations.rb +118 -0
  34. data/lib/fhirpath/engine/nodes/fp_date_time.rb +140 -0
  35. data/lib/fhirpath/engine/nodes/fp_date_time_arithmetic.rb +112 -0
  36. data/lib/fhirpath/engine/nodes/fp_quantity.rb +142 -0
  37. data/lib/fhirpath/engine/nodes/fp_quantity_deep_equal.rb +67 -0
  38. data/lib/fhirpath/engine/nodes/fp_time.rb +139 -0
  39. data/lib/fhirpath/engine/nodes/fp_time_arithmetic.rb +111 -0
  40. data/lib/fhirpath/engine/nodes/resource_node.rb +66 -0
  41. data/lib/fhirpath/engine/nodes/type_info.rb +92 -0
  42. data/lib/fhirpath/engine/param_resolution.rb +74 -0
  43. data/lib/fhirpath/engine/util.rb +117 -0
  44. data/lib/fhirpath/engine.rb +100 -0
  45. data/lib/fhirpath/models/dstu2/choiceTypePaths.json +1041 -0
  46. data/lib/fhirpath/models/dstu2/path2Type.json +4728 -0
  47. data/lib/fhirpath/models/dstu2/pathsDefinedElsewhere.json +21 -0
  48. data/lib/fhirpath/models/dstu2/type2Parent.json +141 -0
  49. data/lib/fhirpath/models/r4/choiceTypePaths.json +1365 -0
  50. data/lib/fhirpath/models/r4/path2Type.json +7707 -0
  51. data/lib/fhirpath/models/r4/pathsDefinedElsewhere.json +57 -0
  52. data/lib/fhirpath/models/r4/type2Parent.json +211 -0
  53. data/lib/fhirpath/models/r5/choiceTypePaths.json +1883 -0
  54. data/lib/fhirpath/models/r5/path2Type.json +9653 -0
  55. data/lib/fhirpath/models/r5/pathsDefinedElsewhere.json +80 -0
  56. data/lib/fhirpath/models/r5/type2Parent.json +234 -0
  57. data/lib/fhirpath/models/stu3/choiceTypePaths.json +991 -0
  58. data/lib/fhirpath/models/stu3/path2Type.json +5729 -0
  59. data/lib/fhirpath/models/stu3/pathsDefinedElsewhere.json +37 -0
  60. data/lib/fhirpath/models/stu3/type2Parent.json +173 -0
  61. data/lib/fhirpath/models.rb +25 -0
  62. data/lib/fhirpath/parser/FHIRPath.g4 +172 -0
  63. data/lib/fhirpath/parser/ast_builder.rb +51 -0
  64. data/lib/fhirpath/parser.rb +21 -0
  65. data/lib/fhirpath/version.rb +5 -0
  66. data/lib/fhirpath.rb +117 -0
  67. data/rakelib/parser.rake +146 -0
  68. data/sig/fhirpath.rbs +14 -0
  69. metadata +168 -0
@@ -0,0 +1,1365 @@
1
+ {
2
+ "ActivityDefinition.product": [
3
+ "Reference",
4
+ "CodeableConcept"
5
+ ],
6
+ "ActivityDefinition.subject": [
7
+ "CodeableConcept",
8
+ "Reference"
9
+ ],
10
+ "ActivityDefinition.timing": [
11
+ "Timing",
12
+ "DateTime",
13
+ "Age",
14
+ "Period",
15
+ "Range",
16
+ "Duration"
17
+ ],
18
+ "AllergyIntolerance.onset": [
19
+ "DateTime",
20
+ "Age",
21
+ "Period",
22
+ "Range",
23
+ "String"
24
+ ],
25
+ "Annotation.author": [
26
+ "Reference",
27
+ "String"
28
+ ],
29
+ "AuditEvent.entity.detail.value": [
30
+ "String",
31
+ "Base64Binary"
32
+ ],
33
+ "BiologicallyDerivedProduct.collection.collected": [
34
+ "DateTime",
35
+ "Period"
36
+ ],
37
+ "BiologicallyDerivedProduct.manipulation.time": [
38
+ "DateTime",
39
+ "Period"
40
+ ],
41
+ "BiologicallyDerivedProduct.processing.time": [
42
+ "DateTime",
43
+ "Period"
44
+ ],
45
+ "CarePlan.activity.detail.product": [
46
+ "CodeableConcept",
47
+ "Reference"
48
+ ],
49
+ "CarePlan.activity.detail.scheduled": [
50
+ "Timing",
51
+ "Period",
52
+ "String"
53
+ ],
54
+ "ChargeItem.occurrence": [
55
+ "DateTime",
56
+ "Period",
57
+ "Timing"
58
+ ],
59
+ "ChargeItem.product": [
60
+ "Reference",
61
+ "CodeableConcept"
62
+ ],
63
+ "Claim.accident.location": [
64
+ "Address",
65
+ "Reference"
66
+ ],
67
+ "Claim.diagnosis.diagnosis": [
68
+ "CodeableConcept",
69
+ "Reference"
70
+ ],
71
+ "Claim.item.location": [
72
+ "CodeableConcept",
73
+ "Address",
74
+ "Reference"
75
+ ],
76
+ "Claim.item.serviced": [
77
+ "Date",
78
+ "Period"
79
+ ],
80
+ "Claim.procedure.procedure": [
81
+ "CodeableConcept",
82
+ "Reference"
83
+ ],
84
+ "Claim.supportingInfo.timing": [
85
+ "Date",
86
+ "Period"
87
+ ],
88
+ "Claim.supportingInfo.value": [
89
+ "Boolean",
90
+ "String",
91
+ "Quantity",
92
+ "Attachment",
93
+ "Reference"
94
+ ],
95
+ "ClaimResponse.addItem.location": [
96
+ "CodeableConcept",
97
+ "Address",
98
+ "Reference"
99
+ ],
100
+ "ClaimResponse.addItem.serviced": [
101
+ "Date",
102
+ "Period"
103
+ ],
104
+ "ClinicalImpression.effective": [
105
+ "DateTime",
106
+ "Period"
107
+ ],
108
+ "CodeSystem.concept.property.value": [
109
+ "Code",
110
+ "Coding",
111
+ "String",
112
+ "Integer",
113
+ "Boolean",
114
+ "DateTime",
115
+ "Decimal"
116
+ ],
117
+ "Communication.payload.content": [
118
+ "String",
119
+ "Attachment",
120
+ "Reference"
121
+ ],
122
+ "CommunicationRequest.occurrence": [
123
+ "DateTime",
124
+ "Period"
125
+ ],
126
+ "CommunicationRequest.payload.content": [
127
+ "String",
128
+ "Attachment",
129
+ "Reference"
130
+ ],
131
+ "Composition.relatesTo.target": [
132
+ "Identifier",
133
+ "Reference"
134
+ ],
135
+ "ConceptMap.source": [
136
+ "Uri",
137
+ "Canonical"
138
+ ],
139
+ "ConceptMap.target": [
140
+ "Uri",
141
+ "Canonical"
142
+ ],
143
+ "Condition.abatement": [
144
+ "DateTime",
145
+ "Age",
146
+ "Period",
147
+ "Range",
148
+ "String"
149
+ ],
150
+ "Condition.onset": [
151
+ "DateTime",
152
+ "Age",
153
+ "Period",
154
+ "Range",
155
+ "String"
156
+ ],
157
+ "Consent.source": [
158
+ "Attachment",
159
+ "Reference"
160
+ ],
161
+ "Contract.friendly.content": [
162
+ "Attachment",
163
+ "Reference"
164
+ ],
165
+ "Contract.legal.content": [
166
+ "Attachment",
167
+ "Reference"
168
+ ],
169
+ "Contract.legallyBinding": [
170
+ "Attachment",
171
+ "Reference"
172
+ ],
173
+ "Contract.rule.content": [
174
+ "Attachment",
175
+ "Reference"
176
+ ],
177
+ "Contract.term.action.occurrence": [
178
+ "DateTime",
179
+ "Period",
180
+ "Timing"
181
+ ],
182
+ "Contract.term.asset.valuedItem.entity": [
183
+ "CodeableConcept",
184
+ "Reference"
185
+ ],
186
+ "Contract.term.offer.answer.value": [
187
+ "Boolean",
188
+ "Decimal",
189
+ "Integer",
190
+ "Date",
191
+ "DateTime",
192
+ "Time",
193
+ "String",
194
+ "Uri",
195
+ "Attachment",
196
+ "Coding",
197
+ "Quantity",
198
+ "Reference"
199
+ ],
200
+ "Contract.term.topic": [
201
+ "CodeableConcept",
202
+ "Reference"
203
+ ],
204
+ "Contract.topic": [
205
+ "CodeableConcept",
206
+ "Reference"
207
+ ],
208
+ "Coverage.costToBeneficiary.value": [
209
+ "Quantity",
210
+ "Money"
211
+ ],
212
+ "CoverageEligibilityRequest.item.diagnosis.diagnosis": [
213
+ "CodeableConcept",
214
+ "Reference"
215
+ ],
216
+ "CoverageEligibilityRequest.serviced": [
217
+ "Date",
218
+ "Period"
219
+ ],
220
+ "CoverageEligibilityResponse.insurance.item.benefit.allowed": [
221
+ "UnsignedInt",
222
+ "String",
223
+ "Money"
224
+ ],
225
+ "CoverageEligibilityResponse.insurance.item.benefit.used": [
226
+ "UnsignedInt",
227
+ "String",
228
+ "Money"
229
+ ],
230
+ "CoverageEligibilityResponse.serviced": [
231
+ "Date",
232
+ "Period"
233
+ ],
234
+ "DataRequirement.dateFilter.value": [
235
+ "DateTime",
236
+ "Period",
237
+ "Duration"
238
+ ],
239
+ "DataRequirement.subject": [
240
+ "CodeableConcept",
241
+ "Reference"
242
+ ],
243
+ "DetectedIssue.identified": [
244
+ "DateTime",
245
+ "Period"
246
+ ],
247
+ "DeviceDefinition.manufacturer": [
248
+ "String",
249
+ "Reference"
250
+ ],
251
+ "DeviceRequest.code": [
252
+ "Reference",
253
+ "CodeableConcept"
254
+ ],
255
+ "DeviceRequest.occurrence": [
256
+ "DateTime",
257
+ "Period",
258
+ "Timing"
259
+ ],
260
+ "DeviceRequest.parameter.value": [
261
+ "CodeableConcept",
262
+ "Quantity",
263
+ "Range",
264
+ "Boolean"
265
+ ],
266
+ "DeviceUseStatement.timing": [
267
+ "Timing",
268
+ "Period",
269
+ "DateTime"
270
+ ],
271
+ "DiagnosticReport.effective": [
272
+ "DateTime",
273
+ "Period"
274
+ ],
275
+ "Dosage.asNeeded": [
276
+ "Boolean",
277
+ "CodeableConcept"
278
+ ],
279
+ "Dosage.doseAndRate.dose": [
280
+ "Range",
281
+ "Quantity"
282
+ ],
283
+ "Dosage.doseAndRate.rate": [
284
+ "Ratio",
285
+ "Range",
286
+ "Quantity"
287
+ ],
288
+ "ElementDefinition.defaultValue": [
289
+ "Base64Binary",
290
+ "Boolean",
291
+ "Canonical",
292
+ "Code",
293
+ "Date",
294
+ "DateTime",
295
+ "Decimal",
296
+ "Id",
297
+ "Instant",
298
+ "Integer",
299
+ "Markdown",
300
+ "Oid",
301
+ "PositiveInt",
302
+ "String",
303
+ "Time",
304
+ "UnsignedInt",
305
+ "Uri",
306
+ "Url",
307
+ "Uuid",
308
+ "Address",
309
+ "Age",
310
+ "Annotation",
311
+ "Attachment",
312
+ "CodeableConcept",
313
+ "Coding",
314
+ "ContactPoint",
315
+ "Count",
316
+ "Distance",
317
+ "Duration",
318
+ "HumanName",
319
+ "Identifier",
320
+ "Money",
321
+ "Period",
322
+ "Quantity",
323
+ "Range",
324
+ "Ratio",
325
+ "Reference",
326
+ "SampledData",
327
+ "Signature",
328
+ "Timing",
329
+ "ContactDetail",
330
+ "Contributor",
331
+ "DataRequirement",
332
+ "Expression",
333
+ "ParameterDefinition",
334
+ "RelatedArtifact",
335
+ "TriggerDefinition",
336
+ "UsageContext",
337
+ "Dosage",
338
+ "Meta"
339
+ ],
340
+ "ElementDefinition.example.value": [
341
+ "Base64Binary",
342
+ "Boolean",
343
+ "Canonical",
344
+ "Code",
345
+ "Date",
346
+ "DateTime",
347
+ "Decimal",
348
+ "Id",
349
+ "Instant",
350
+ "Integer",
351
+ "Markdown",
352
+ "Oid",
353
+ "PositiveInt",
354
+ "String",
355
+ "Time",
356
+ "UnsignedInt",
357
+ "Uri",
358
+ "Url",
359
+ "Uuid",
360
+ "Address",
361
+ "Age",
362
+ "Annotation",
363
+ "Attachment",
364
+ "CodeableConcept",
365
+ "Coding",
366
+ "ContactPoint",
367
+ "Count",
368
+ "Distance",
369
+ "Duration",
370
+ "HumanName",
371
+ "Identifier",
372
+ "Money",
373
+ "Period",
374
+ "Quantity",
375
+ "Range",
376
+ "Ratio",
377
+ "Reference",
378
+ "SampledData",
379
+ "Signature",
380
+ "Timing",
381
+ "ContactDetail",
382
+ "Contributor",
383
+ "DataRequirement",
384
+ "Expression",
385
+ "ParameterDefinition",
386
+ "RelatedArtifact",
387
+ "TriggerDefinition",
388
+ "UsageContext",
389
+ "Dosage",
390
+ "Meta"
391
+ ],
392
+ "ElementDefinition.extension.value": [
393
+ "CodeableConcept",
394
+ "Canonical"
395
+ ],
396
+ "ElementDefinition.fixed": [
397
+ "Base64Binary",
398
+ "Boolean",
399
+ "Canonical",
400
+ "Code",
401
+ "Date",
402
+ "DateTime",
403
+ "Decimal",
404
+ "Id",
405
+ "Instant",
406
+ "Integer",
407
+ "Markdown",
408
+ "Oid",
409
+ "PositiveInt",
410
+ "String",
411
+ "Time",
412
+ "UnsignedInt",
413
+ "Uri",
414
+ "Url",
415
+ "Uuid",
416
+ "Address",
417
+ "Age",
418
+ "Annotation",
419
+ "Attachment",
420
+ "CodeableConcept",
421
+ "Coding",
422
+ "ContactPoint",
423
+ "Count",
424
+ "Distance",
425
+ "Duration",
426
+ "HumanName",
427
+ "Identifier",
428
+ "Money",
429
+ "Period",
430
+ "Quantity",
431
+ "Range",
432
+ "Ratio",
433
+ "Reference",
434
+ "SampledData",
435
+ "Signature",
436
+ "Timing",
437
+ "ContactDetail",
438
+ "Contributor",
439
+ "DataRequirement",
440
+ "Expression",
441
+ "ParameterDefinition",
442
+ "RelatedArtifact",
443
+ "TriggerDefinition",
444
+ "UsageContext",
445
+ "Dosage",
446
+ "Meta"
447
+ ],
448
+ "ElementDefinition.maxValue": [
449
+ "Date",
450
+ "DateTime",
451
+ "Instant",
452
+ "Time",
453
+ "Decimal",
454
+ "Integer",
455
+ "PositiveInt",
456
+ "UnsignedInt",
457
+ "Quantity"
458
+ ],
459
+ "ElementDefinition.minValue": [
460
+ "Date",
461
+ "DateTime",
462
+ "Instant",
463
+ "Time",
464
+ "Decimal",
465
+ "Integer",
466
+ "PositiveInt",
467
+ "UnsignedInt",
468
+ "Quantity"
469
+ ],
470
+ "ElementDefinition.pattern": [
471
+ "Base64Binary",
472
+ "Boolean",
473
+ "Canonical",
474
+ "Code",
475
+ "Date",
476
+ "DateTime",
477
+ "Decimal",
478
+ "Id",
479
+ "Instant",
480
+ "Integer",
481
+ "Markdown",
482
+ "Oid",
483
+ "PositiveInt",
484
+ "String",
485
+ "Time",
486
+ "UnsignedInt",
487
+ "Uri",
488
+ "Url",
489
+ "Uuid",
490
+ "Address",
491
+ "Age",
492
+ "Annotation",
493
+ "Attachment",
494
+ "CodeableConcept",
495
+ "Coding",
496
+ "ContactPoint",
497
+ "Count",
498
+ "Distance",
499
+ "Duration",
500
+ "HumanName",
501
+ "Identifier",
502
+ "Money",
503
+ "Period",
504
+ "Quantity",
505
+ "Range",
506
+ "Ratio",
507
+ "Reference",
508
+ "SampledData",
509
+ "Signature",
510
+ "Timing",
511
+ "ContactDetail",
512
+ "Contributor",
513
+ "DataRequirement",
514
+ "Expression",
515
+ "ParameterDefinition",
516
+ "RelatedArtifact",
517
+ "TriggerDefinition",
518
+ "UsageContext",
519
+ "Dosage",
520
+ "Meta"
521
+ ],
522
+ "EventDefinition.subject": [
523
+ "CodeableConcept",
524
+ "Reference"
525
+ ],
526
+ "EvidenceVariable.characteristic.definition": [
527
+ "Reference",
528
+ "Canonical",
529
+ "CodeableConcept",
530
+ "Expression",
531
+ "DataRequirement",
532
+ "TriggerDefinition"
533
+ ],
534
+ "EvidenceVariable.characteristic.participantEffective": [
535
+ "DateTime",
536
+ "Period",
537
+ "Duration",
538
+ "Timing"
539
+ ],
540
+ "ExplanationOfBenefit.accident.location": [
541
+ "Address",
542
+ "Reference"
543
+ ],
544
+ "ExplanationOfBenefit.addItem.location": [
545
+ "CodeableConcept",
546
+ "Address",
547
+ "Reference"
548
+ ],
549
+ "ExplanationOfBenefit.addItem.serviced": [
550
+ "Date",
551
+ "Period"
552
+ ],
553
+ "ExplanationOfBenefit.benefitBalance.financial.allowed": [
554
+ "UnsignedInt",
555
+ "String",
556
+ "Money"
557
+ ],
558
+ "ExplanationOfBenefit.benefitBalance.financial.used": [
559
+ "UnsignedInt",
560
+ "Money"
561
+ ],
562
+ "ExplanationOfBenefit.diagnosis.diagnosis": [
563
+ "CodeableConcept",
564
+ "Reference"
565
+ ],
566
+ "ExplanationOfBenefit.item.location": [
567
+ "CodeableConcept",
568
+ "Address",
569
+ "Reference"
570
+ ],
571
+ "ExplanationOfBenefit.item.serviced": [
572
+ "Date",
573
+ "Period"
574
+ ],
575
+ "ExplanationOfBenefit.procedure.procedure": [
576
+ "CodeableConcept",
577
+ "Reference"
578
+ ],
579
+ "ExplanationOfBenefit.supportingInfo.timing": [
580
+ "Date",
581
+ "Period"
582
+ ],
583
+ "ExplanationOfBenefit.supportingInfo.value": [
584
+ "Boolean",
585
+ "String",
586
+ "Quantity",
587
+ "Attachment",
588
+ "Reference"
589
+ ],
590
+ "Extension.value": [
591
+ "Base64Binary",
592
+ "Boolean",
593
+ "Canonical",
594
+ "Code",
595
+ "Date",
596
+ "DateTime",
597
+ "Decimal",
598
+ "Id",
599
+ "Instant",
600
+ "Integer",
601
+ "Markdown",
602
+ "Oid",
603
+ "PositiveInt",
604
+ "String",
605
+ "Time",
606
+ "UnsignedInt",
607
+ "Uri",
608
+ "Url",
609
+ "Uuid",
610
+ "Address",
611
+ "Age",
612
+ "Annotation",
613
+ "Attachment",
614
+ "CodeableConcept",
615
+ "Coding",
616
+ "ContactPoint",
617
+ "Count",
618
+ "Distance",
619
+ "Duration",
620
+ "HumanName",
621
+ "Identifier",
622
+ "Money",
623
+ "Period",
624
+ "Quantity",
625
+ "Range",
626
+ "Ratio",
627
+ "Reference",
628
+ "SampledData",
629
+ "Signature",
630
+ "Timing",
631
+ "ContactDetail",
632
+ "Contributor",
633
+ "DataRequirement",
634
+ "Expression",
635
+ "ParameterDefinition",
636
+ "RelatedArtifact",
637
+ "TriggerDefinition",
638
+ "UsageContext",
639
+ "Dosage",
640
+ "Meta"
641
+ ],
642
+ "FamilyMemberHistory.age": [
643
+ "Age",
644
+ "Range",
645
+ "String"
646
+ ],
647
+ "FamilyMemberHistory.born": [
648
+ "Period",
649
+ "Date",
650
+ "String"
651
+ ],
652
+ "FamilyMemberHistory.condition.onset": [
653
+ "Age",
654
+ "Range",
655
+ "Period",
656
+ "String"
657
+ ],
658
+ "FamilyMemberHistory.deceased": [
659
+ "Boolean",
660
+ "Age",
661
+ "Range",
662
+ "Date",
663
+ "String"
664
+ ],
665
+ "Goal.start": [
666
+ "Date",
667
+ "CodeableConcept"
668
+ ],
669
+ "Goal.target.detail": [
670
+ "Quantity",
671
+ "Range",
672
+ "CodeableConcept",
673
+ "String",
674
+ "Boolean",
675
+ "Integer",
676
+ "Ratio"
677
+ ],
678
+ "Goal.target.due": [
679
+ "Date",
680
+ "Duration"
681
+ ],
682
+ "Group.characteristic.value": [
683
+ "CodeableConcept",
684
+ "Boolean",
685
+ "Quantity",
686
+ "Range",
687
+ "Reference"
688
+ ],
689
+ "GuidanceResponse.module": [
690
+ "Uri",
691
+ "Canonical",
692
+ "CodeableConcept"
693
+ ],
694
+ "Immunization.occurrence": [
695
+ "DateTime",
696
+ "String"
697
+ ],
698
+ "Immunization.protocolApplied.doseNumber": [
699
+ "PositiveInt",
700
+ "String"
701
+ ],
702
+ "Immunization.protocolApplied.seriesDoses": [
703
+ "PositiveInt",
704
+ "String"
705
+ ],
706
+ "ImmunizationEvaluation.doseNumber": [
707
+ "PositiveInt",
708
+ "String"
709
+ ],
710
+ "ImmunizationEvaluation.seriesDoses": [
711
+ "PositiveInt",
712
+ "String"
713
+ ],
714
+ "ImmunizationRecommendation.recommendation.doseNumber": [
715
+ "PositiveInt",
716
+ "String"
717
+ ],
718
+ "ImmunizationRecommendation.recommendation.seriesDoses": [
719
+ "PositiveInt",
720
+ "String"
721
+ ],
722
+ "ImplementationGuide.definition.page.name": [
723
+ "Url",
724
+ "Reference"
725
+ ],
726
+ "ImplementationGuide.definition.resource.example": [
727
+ "Boolean",
728
+ "Canonical"
729
+ ],
730
+ "ImplementationGuide.manifest.resource.example": [
731
+ "Boolean",
732
+ "Canonical"
733
+ ],
734
+ "Invoice.lineItem.chargeItem": [
735
+ "Reference",
736
+ "CodeableConcept"
737
+ ],
738
+ "Library.subject": [
739
+ "CodeableConcept",
740
+ "Reference"
741
+ ],
742
+ "Measure.subject": [
743
+ "CodeableConcept",
744
+ "Reference"
745
+ ],
746
+ "Media.created": [
747
+ "DateTime",
748
+ "Period"
749
+ ],
750
+ "Medication.ingredient.item": [
751
+ "CodeableConcept",
752
+ "Reference"
753
+ ],
754
+ "MedicationAdministration.dosage.rate": [
755
+ "Ratio",
756
+ "Quantity"
757
+ ],
758
+ "MedicationAdministration.effective": [
759
+ "DateTime",
760
+ "Period"
761
+ ],
762
+ "MedicationAdministration.medication": [
763
+ "CodeableConcept",
764
+ "Reference"
765
+ ],
766
+ "MedicationDispense.medication": [
767
+ "CodeableConcept",
768
+ "Reference"
769
+ ],
770
+ "MedicationDispense.statusReason": [
771
+ "CodeableConcept",
772
+ "Reference"
773
+ ],
774
+ "MedicationKnowledge.administrationGuidelines.indication": [
775
+ "CodeableConcept",
776
+ "Reference"
777
+ ],
778
+ "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic": [
779
+ "CodeableConcept",
780
+ "Quantity"
781
+ ],
782
+ "MedicationKnowledge.drugCharacteristic.value": [
783
+ "CodeableConcept",
784
+ "String",
785
+ "Quantity",
786
+ "Base64Binary"
787
+ ],
788
+ "MedicationKnowledge.ingredient.item": [
789
+ "CodeableConcept",
790
+ "Reference"
791
+ ],
792
+ "MedicationRequest.medication": [
793
+ "CodeableConcept",
794
+ "Reference"
795
+ ],
796
+ "MedicationRequest.reported": [
797
+ "Boolean",
798
+ "Reference"
799
+ ],
800
+ "MedicationRequest.substitution.allowed": [
801
+ "Boolean",
802
+ "CodeableConcept"
803
+ ],
804
+ "MedicationStatement.effective": [
805
+ "DateTime",
806
+ "Period"
807
+ ],
808
+ "MedicationStatement.medication": [
809
+ "CodeableConcept",
810
+ "Reference"
811
+ ],
812
+ "MedicinalProduct.specialDesignation.indication": [
813
+ "CodeableConcept",
814
+ "Reference"
815
+ ],
816
+ "MedicinalProductAuthorization.procedure.date": [
817
+ "Period",
818
+ "DateTime"
819
+ ],
820
+ "MedicinalProductContraindication.otherTherapy.medication": [
821
+ "CodeableConcept",
822
+ "Reference"
823
+ ],
824
+ "MedicinalProductIndication.otherTherapy.medication": [
825
+ "CodeableConcept",
826
+ "Reference"
827
+ ],
828
+ "MedicinalProductInteraction.interactant.item": [
829
+ "Reference",
830
+ "CodeableConcept"
831
+ ],
832
+ "MessageDefinition.event": [
833
+ "Coding",
834
+ "Uri"
835
+ ],
836
+ "MessageHeader.event": [
837
+ "Coding",
838
+ "Uri"
839
+ ],
840
+ "NutritionOrder.enteralFormula.administration.rate": [
841
+ "Quantity",
842
+ "Ratio"
843
+ ],
844
+ "Observation.component.value": [
845
+ "Quantity",
846
+ "CodeableConcept",
847
+ "String",
848
+ "Boolean",
849
+ "Integer",
850
+ "Range",
851
+ "Ratio",
852
+ "SampledData",
853
+ "Time",
854
+ "DateTime",
855
+ "Period"
856
+ ],
857
+ "Observation.effective": [
858
+ "DateTime",
859
+ "Period",
860
+ "Timing",
861
+ "Instant"
862
+ ],
863
+ "Observation.value": [
864
+ "Quantity",
865
+ "CodeableConcept",
866
+ "String",
867
+ "Boolean",
868
+ "Integer",
869
+ "Range",
870
+ "Ratio",
871
+ "SampledData",
872
+ "Time",
873
+ "DateTime",
874
+ "Period"
875
+ ],
876
+ "Parameters.parameter.value": [
877
+ "Base64Binary",
878
+ "Boolean",
879
+ "Canonical",
880
+ "Code",
881
+ "Date",
882
+ "DateTime",
883
+ "Decimal",
884
+ "Id",
885
+ "Instant",
886
+ "Integer",
887
+ "Markdown",
888
+ "Oid",
889
+ "PositiveInt",
890
+ "String",
891
+ "Time",
892
+ "UnsignedInt",
893
+ "Uri",
894
+ "Url",
895
+ "Uuid",
896
+ "Address",
897
+ "Age",
898
+ "Annotation",
899
+ "Attachment",
900
+ "CodeableConcept",
901
+ "Coding",
902
+ "ContactPoint",
903
+ "Count",
904
+ "Distance",
905
+ "Duration",
906
+ "HumanName",
907
+ "Identifier",
908
+ "Money",
909
+ "Period",
910
+ "Quantity",
911
+ "Range",
912
+ "Ratio",
913
+ "Reference",
914
+ "SampledData",
915
+ "Signature",
916
+ "Timing",
917
+ "ContactDetail",
918
+ "Contributor",
919
+ "DataRequirement",
920
+ "Expression",
921
+ "ParameterDefinition",
922
+ "RelatedArtifact",
923
+ "TriggerDefinition",
924
+ "UsageContext",
925
+ "Dosage",
926
+ "Meta"
927
+ ],
928
+ "Patient.deceased": [
929
+ "Boolean",
930
+ "DateTime"
931
+ ],
932
+ "Patient.multipleBirth": [
933
+ "Boolean",
934
+ "Integer"
935
+ ],
936
+ "PlanDefinition.action.definition": [
937
+ "Canonical",
938
+ "Uri"
939
+ ],
940
+ "PlanDefinition.action.relatedAction.offset": [
941
+ "Duration",
942
+ "Range"
943
+ ],
944
+ "PlanDefinition.action.subject": [
945
+ "CodeableConcept",
946
+ "Reference"
947
+ ],
948
+ "PlanDefinition.action.timing": [
949
+ "DateTime",
950
+ "Age",
951
+ "Period",
952
+ "Duration",
953
+ "Range",
954
+ "Timing"
955
+ ],
956
+ "PlanDefinition.goal.target.detail": [
957
+ "Quantity",
958
+ "Range",
959
+ "CodeableConcept"
960
+ ],
961
+ "PlanDefinition.subject": [
962
+ "CodeableConcept",
963
+ "Reference"
964
+ ],
965
+ "Population.age": [
966
+ "Range",
967
+ "CodeableConcept"
968
+ ],
969
+ "Procedure.performed": [
970
+ "DateTime",
971
+ "Period",
972
+ "String",
973
+ "Age",
974
+ "Range"
975
+ ],
976
+ "Provenance.occurred": [
977
+ "Period",
978
+ "DateTime"
979
+ ],
980
+ "Questionnaire.item.answerOption.value": [
981
+ "Integer",
982
+ "Date",
983
+ "Time",
984
+ "String",
985
+ "Coding",
986
+ "Reference"
987
+ ],
988
+ "Questionnaire.item.enableWhen.answer": [
989
+ "Boolean",
990
+ "Decimal",
991
+ "Integer",
992
+ "Date",
993
+ "DateTime",
994
+ "Time",
995
+ "String",
996
+ "Coding",
997
+ "Quantity",
998
+ "Reference"
999
+ ],
1000
+ "Questionnaire.item.initial.value": [
1001
+ "Boolean",
1002
+ "Decimal",
1003
+ "Integer",
1004
+ "Date",
1005
+ "DateTime",
1006
+ "Time",
1007
+ "String",
1008
+ "Uri",
1009
+ "Attachment",
1010
+ "Coding",
1011
+ "Quantity",
1012
+ "Reference"
1013
+ ],
1014
+ "QuestionnaireResponse.item.answer.value": [
1015
+ "Boolean",
1016
+ "Decimal",
1017
+ "Integer",
1018
+ "Date",
1019
+ "DateTime",
1020
+ "Time",
1021
+ "String",
1022
+ "Uri",
1023
+ "Attachment",
1024
+ "Coding",
1025
+ "Quantity",
1026
+ "Reference"
1027
+ ],
1028
+ "RequestGroup.action.relatedAction.offset": [
1029
+ "Duration",
1030
+ "Range"
1031
+ ],
1032
+ "RequestGroup.action.timing": [
1033
+ "DateTime",
1034
+ "Age",
1035
+ "Period",
1036
+ "Duration",
1037
+ "Range",
1038
+ "Timing"
1039
+ ],
1040
+ "ResearchDefinition.subject": [
1041
+ "CodeableConcept",
1042
+ "Reference"
1043
+ ],
1044
+ "ResearchElementDefinition.characteristic.definition": [
1045
+ "CodeableConcept",
1046
+ "Canonical",
1047
+ "Expression",
1048
+ "DataRequirement"
1049
+ ],
1050
+ "ResearchElementDefinition.characteristic.participantEffective": [
1051
+ "DateTime",
1052
+ "Period",
1053
+ "Duration",
1054
+ "Timing"
1055
+ ],
1056
+ "ResearchElementDefinition.characteristic.studyEffective": [
1057
+ "DateTime",
1058
+ "Period",
1059
+ "Duration",
1060
+ "Timing"
1061
+ ],
1062
+ "ResearchElementDefinition.subject": [
1063
+ "CodeableConcept",
1064
+ "Reference"
1065
+ ],
1066
+ "RiskAssessment.occurrence": [
1067
+ "DateTime",
1068
+ "Period"
1069
+ ],
1070
+ "RiskAssessment.prediction.probability": [
1071
+ "Decimal",
1072
+ "Range"
1073
+ ],
1074
+ "RiskAssessment.prediction.when": [
1075
+ "Period",
1076
+ "Range"
1077
+ ],
1078
+ "ServiceRequest.asNeeded": [
1079
+ "Boolean",
1080
+ "CodeableConcept"
1081
+ ],
1082
+ "ServiceRequest.occurrence": [
1083
+ "DateTime",
1084
+ "Period",
1085
+ "Timing"
1086
+ ],
1087
+ "ServiceRequest.quantity": [
1088
+ "Quantity",
1089
+ "Ratio",
1090
+ "Range"
1091
+ ],
1092
+ "Specimen.collection.collected": [
1093
+ "DateTime",
1094
+ "Period"
1095
+ ],
1096
+ "Specimen.collection.fastingStatus": [
1097
+ "CodeableConcept",
1098
+ "Duration"
1099
+ ],
1100
+ "Specimen.container.additive": [
1101
+ "CodeableConcept",
1102
+ "Reference"
1103
+ ],
1104
+ "Specimen.processing.time": [
1105
+ "DateTime",
1106
+ "Period"
1107
+ ],
1108
+ "SpecimenDefinition.typeTested.container.additive.additive": [
1109
+ "CodeableConcept",
1110
+ "Reference"
1111
+ ],
1112
+ "SpecimenDefinition.typeTested.container.minimumVolume": [
1113
+ "Quantity",
1114
+ "String"
1115
+ ],
1116
+ "StructureMap.group.rule.source.defaultValue": [
1117
+ "Base64Binary",
1118
+ "Boolean",
1119
+ "Canonical",
1120
+ "Code",
1121
+ "Date",
1122
+ "DateTime",
1123
+ "Decimal",
1124
+ "Id",
1125
+ "Instant",
1126
+ "Integer",
1127
+ "Markdown",
1128
+ "Oid",
1129
+ "PositiveInt",
1130
+ "String",
1131
+ "Time",
1132
+ "UnsignedInt",
1133
+ "Uri",
1134
+ "Url",
1135
+ "Uuid",
1136
+ "Address",
1137
+ "Age",
1138
+ "Annotation",
1139
+ "Attachment",
1140
+ "CodeableConcept",
1141
+ "Coding",
1142
+ "ContactPoint",
1143
+ "Count",
1144
+ "Distance",
1145
+ "Duration",
1146
+ "HumanName",
1147
+ "Identifier",
1148
+ "Money",
1149
+ "Period",
1150
+ "Quantity",
1151
+ "Range",
1152
+ "Ratio",
1153
+ "Reference",
1154
+ "SampledData",
1155
+ "Signature",
1156
+ "Timing",
1157
+ "ContactDetail",
1158
+ "Contributor",
1159
+ "DataRequirement",
1160
+ "Expression",
1161
+ "ParameterDefinition",
1162
+ "RelatedArtifact",
1163
+ "TriggerDefinition",
1164
+ "UsageContext",
1165
+ "Dosage",
1166
+ "Meta"
1167
+ ],
1168
+ "StructureMap.group.rule.target.parameter.value": [
1169
+ "Id",
1170
+ "String",
1171
+ "Boolean",
1172
+ "Integer",
1173
+ "Decimal"
1174
+ ],
1175
+ "Substance.ingredient.substance": [
1176
+ "CodeableConcept",
1177
+ "Reference"
1178
+ ],
1179
+ "SubstanceAmount.amount": [
1180
+ "Quantity",
1181
+ "Range",
1182
+ "String"
1183
+ ],
1184
+ "SubstanceReferenceInformation.target.amount": [
1185
+ "Quantity",
1186
+ "Range",
1187
+ "String"
1188
+ ],
1189
+ "SubstanceSpecification.moiety.amount": [
1190
+ "Quantity",
1191
+ "String"
1192
+ ],
1193
+ "SubstanceSpecification.property.amount": [
1194
+ "Quantity",
1195
+ "String"
1196
+ ],
1197
+ "SubstanceSpecification.property.definingSubstance": [
1198
+ "Reference",
1199
+ "CodeableConcept"
1200
+ ],
1201
+ "SubstanceSpecification.relationship.amount": [
1202
+ "Quantity",
1203
+ "Range",
1204
+ "Ratio",
1205
+ "String"
1206
+ ],
1207
+ "SubstanceSpecification.relationship.substance": [
1208
+ "Reference",
1209
+ "CodeableConcept"
1210
+ ],
1211
+ "SupplyDelivery.occurrence": [
1212
+ "DateTime",
1213
+ "Period",
1214
+ "Timing"
1215
+ ],
1216
+ "SupplyDelivery.suppliedItem.item": [
1217
+ "CodeableConcept",
1218
+ "Reference"
1219
+ ],
1220
+ "SupplyRequest.item": [
1221
+ "CodeableConcept",
1222
+ "Reference"
1223
+ ],
1224
+ "SupplyRequest.occurrence": [
1225
+ "DateTime",
1226
+ "Period",
1227
+ "Timing"
1228
+ ],
1229
+ "SupplyRequest.parameter.value": [
1230
+ "CodeableConcept",
1231
+ "Quantity",
1232
+ "Range",
1233
+ "Boolean"
1234
+ ],
1235
+ "Task.input.value": [
1236
+ "Base64Binary",
1237
+ "Boolean",
1238
+ "Canonical",
1239
+ "Code",
1240
+ "Date",
1241
+ "DateTime",
1242
+ "Decimal",
1243
+ "Id",
1244
+ "Instant",
1245
+ "Integer",
1246
+ "Markdown",
1247
+ "Oid",
1248
+ "PositiveInt",
1249
+ "String",
1250
+ "Time",
1251
+ "UnsignedInt",
1252
+ "Uri",
1253
+ "Url",
1254
+ "Uuid",
1255
+ "Address",
1256
+ "Age",
1257
+ "Annotation",
1258
+ "Attachment",
1259
+ "CodeableConcept",
1260
+ "Coding",
1261
+ "ContactPoint",
1262
+ "Count",
1263
+ "Distance",
1264
+ "Duration",
1265
+ "HumanName",
1266
+ "Identifier",
1267
+ "Money",
1268
+ "Period",
1269
+ "Quantity",
1270
+ "Range",
1271
+ "Ratio",
1272
+ "Reference",
1273
+ "SampledData",
1274
+ "Signature",
1275
+ "Timing",
1276
+ "ContactDetail",
1277
+ "Contributor",
1278
+ "DataRequirement",
1279
+ "Expression",
1280
+ "ParameterDefinition",
1281
+ "RelatedArtifact",
1282
+ "TriggerDefinition",
1283
+ "UsageContext",
1284
+ "Dosage",
1285
+ "Meta"
1286
+ ],
1287
+ "Task.output.value": [
1288
+ "Base64Binary",
1289
+ "Boolean",
1290
+ "Canonical",
1291
+ "Code",
1292
+ "Date",
1293
+ "DateTime",
1294
+ "Decimal",
1295
+ "Id",
1296
+ "Instant",
1297
+ "Integer",
1298
+ "Markdown",
1299
+ "Oid",
1300
+ "PositiveInt",
1301
+ "String",
1302
+ "Time",
1303
+ "UnsignedInt",
1304
+ "Uri",
1305
+ "Url",
1306
+ "Uuid",
1307
+ "Address",
1308
+ "Age",
1309
+ "Annotation",
1310
+ "Attachment",
1311
+ "CodeableConcept",
1312
+ "Coding",
1313
+ "ContactPoint",
1314
+ "Count",
1315
+ "Distance",
1316
+ "Duration",
1317
+ "HumanName",
1318
+ "Identifier",
1319
+ "Money",
1320
+ "Period",
1321
+ "Quantity",
1322
+ "Range",
1323
+ "Ratio",
1324
+ "Reference",
1325
+ "SampledData",
1326
+ "Signature",
1327
+ "Timing",
1328
+ "ContactDetail",
1329
+ "Contributor",
1330
+ "DataRequirement",
1331
+ "Expression",
1332
+ "ParameterDefinition",
1333
+ "RelatedArtifact",
1334
+ "TriggerDefinition",
1335
+ "UsageContext",
1336
+ "Dosage",
1337
+ "Meta"
1338
+ ],
1339
+ "Timing.repeat.bounds": [
1340
+ "Duration",
1341
+ "Range",
1342
+ "Period"
1343
+ ],
1344
+ "TriggerDefinition.timing": [
1345
+ "Timing",
1346
+ "Reference",
1347
+ "Date",
1348
+ "DateTime"
1349
+ ],
1350
+ "UsageContext.value": [
1351
+ "CodeableConcept",
1352
+ "Quantity",
1353
+ "Range",
1354
+ "Reference"
1355
+ ],
1356
+ "ValueSet.expansion.parameter.value": [
1357
+ "String",
1358
+ "Boolean",
1359
+ "Integer",
1360
+ "Decimal",
1361
+ "Uri",
1362
+ "Code",
1363
+ "DateTime"
1364
+ ]
1365
+ }