us_core_test_kit 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/allergy_intolerance_validation_test.rb +1 -0
  3. data/lib/us_core_test_kit/generated/v3.1.1/allergy_intolerance/metadata.yml +1 -0
  4. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/bodyheight_validation_test.rb +1 -0
  5. data/lib/us_core_test_kit/generated/v3.1.1/bodyheight/metadata.yml +1 -0
  6. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/bodytemp_validation_test.rb +1 -0
  7. data/lib/us_core_test_kit/generated/v3.1.1/bodytemp/metadata.yml +1 -0
  8. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/bodyweight_validation_test.rb +1 -0
  9. data/lib/us_core_test_kit/generated/v3.1.1/bodyweight/metadata.yml +1 -0
  10. data/lib/us_core_test_kit/generated/v3.1.1/bp/bp_validation_test.rb +1 -0
  11. data/lib/us_core_test_kit/generated/v3.1.1/bp/metadata.yml +1 -0
  12. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/care_plan_validation_test.rb +1 -0
  13. data/lib/us_core_test_kit/generated/v3.1.1/care_plan/metadata.yml +1 -0
  14. data/lib/us_core_test_kit/generated/v3.1.1/care_team/care_team_validation_test.rb +1 -0
  15. data/lib/us_core_test_kit/generated/v3.1.1/care_team/metadata.yml +1 -0
  16. data/lib/us_core_test_kit/generated/v3.1.1/condition/condition_validation_test.rb +1 -0
  17. data/lib/us_core_test_kit/generated/v3.1.1/condition/metadata.yml +1 -0
  18. data/lib/us_core_test_kit/generated/v3.1.1/device/device_validation_test.rb +1 -0
  19. data/lib/us_core_test_kit/generated/v3.1.1/device/metadata.yml +1 -0
  20. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +1 -0
  21. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_lab/metadata.yml +1 -0
  22. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/diagnostic_report_note_validation_test.rb +1 -0
  23. data/lib/us_core_test_kit/generated/v3.1.1/diagnostic_report_note/metadata.yml +1 -0
  24. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/document_reference_validation_test.rb +1 -0
  25. data/lib/us_core_test_kit/generated/v3.1.1/document_reference/metadata.yml +1 -0
  26. data/lib/us_core_test_kit/generated/v3.1.1/encounter/encounter_validation_test.rb +1 -0
  27. data/lib/us_core_test_kit/generated/v3.1.1/encounter/metadata.yml +1 -0
  28. data/lib/us_core_test_kit/generated/v3.1.1/goal/goal_validation_test.rb +1 -0
  29. data/lib/us_core_test_kit/generated/v3.1.1/goal/metadata.yml +2 -1
  30. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/head_circumference_validation_test.rb +1 -0
  31. data/lib/us_core_test_kit/generated/v3.1.1/head_circumference/metadata.yml +1 -0
  32. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/heartrate_validation_test.rb +1 -0
  33. data/lib/us_core_test_kit/generated/v3.1.1/heartrate/metadata.yml +1 -0
  34. data/lib/us_core_test_kit/generated/v3.1.1/immunization/immunization_validation_test.rb +1 -0
  35. data/lib/us_core_test_kit/generated/v3.1.1/immunization/metadata.yml +1 -0
  36. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_request_validation_test.rb +1 -0
  37. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/medication_validation_test.rb +1 -0
  38. data/lib/us_core_test_kit/generated/v3.1.1/medication_request/metadata.yml +1 -0
  39. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +33 -1
  40. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/metadata.yml +1 -0
  41. data/lib/us_core_test_kit/generated/v3.1.1/observation_lab/observation_lab_validation_test.rb +1 -0
  42. data/lib/us_core_test_kit/generated/v3.1.1/organization/metadata.yml +1 -0
  43. data/lib/us_core_test_kit/generated/v3.1.1/organization/organization_validation_test.rb +1 -0
  44. data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +1 -0
  45. data/lib/us_core_test_kit/generated/v3.1.1/patient/patient_validation_test.rb +1 -0
  46. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/metadata.yml +1 -0
  47. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +1 -0
  48. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/metadata.yml +1 -0
  49. data/lib/us_core_test_kit/generated/v3.1.1/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +1 -0
  50. data/lib/us_core_test_kit/generated/v3.1.1/practitioner/metadata.yml +1 -0
  51. data/lib/us_core_test_kit/generated/v3.1.1/practitioner/practitioner_validation_test.rb +1 -0
  52. data/lib/us_core_test_kit/generated/v3.1.1/procedure/metadata.yml +1 -0
  53. data/lib/us_core_test_kit/generated/v3.1.1/procedure/procedure_validation_test.rb +1 -0
  54. data/lib/us_core_test_kit/generated/v3.1.1/provenance/metadata.yml +1 -0
  55. data/lib/us_core_test_kit/generated/v3.1.1/provenance/provenance_validation_test.rb +1 -0
  56. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/metadata.yml +1 -0
  57. data/lib/us_core_test_kit/generated/v3.1.1/pulse_oximetry/pulse_oximetry_validation_test.rb +1 -0
  58. data/lib/us_core_test_kit/generated/v3.1.1/resprate/metadata.yml +1 -0
  59. data/lib/us_core_test_kit/generated/v3.1.1/resprate/resprate_validation_test.rb +1 -0
  60. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/metadata.yml +1 -0
  61. data/lib/us_core_test_kit/generated/v3.1.1/smokingstatus/smokingstatus_validation_test.rb +1 -0
  62. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/allergy_intolerance_validation_test.rb +1 -0
  63. data/lib/us_core_test_kit/generated/v4.0.0/allergy_intolerance/metadata.yml +1 -0
  64. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/blood_pressure_validation_test.rb +1 -0
  65. data/lib/us_core_test_kit/generated/v4.0.0/blood_pressure/metadata.yml +1 -0
  66. data/lib/us_core_test_kit/generated/v4.0.0/bmi/bmi_validation_test.rb +1 -0
  67. data/lib/us_core_test_kit/generated/v4.0.0/bmi/metadata.yml +1 -0
  68. data/lib/us_core_test_kit/generated/v4.0.0/body_height/body_height_validation_test.rb +1 -0
  69. data/lib/us_core_test_kit/generated/v4.0.0/body_height/metadata.yml +1 -0
  70. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/body_temperature_validation_test.rb +1 -0
  71. data/lib/us_core_test_kit/generated/v4.0.0/body_temperature/metadata.yml +1 -0
  72. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/body_weight_validation_test.rb +1 -0
  73. data/lib/us_core_test_kit/generated/v4.0.0/body_weight/metadata.yml +1 -0
  74. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/care_plan_validation_test.rb +1 -0
  75. data/lib/us_core_test_kit/generated/v4.0.0/care_plan/metadata.yml +1 -0
  76. data/lib/us_core_test_kit/generated/v4.0.0/care_team/care_team_validation_test.rb +1 -0
  77. data/lib/us_core_test_kit/generated/v4.0.0/care_team/metadata.yml +1 -0
  78. data/lib/us_core_test_kit/generated/v4.0.0/condition/condition_validation_test.rb +1 -0
  79. data/lib/us_core_test_kit/generated/v4.0.0/condition/metadata.yml +1 -0
  80. data/lib/us_core_test_kit/generated/v4.0.0/device/device_validation_test.rb +1 -0
  81. data/lib/us_core_test_kit/generated/v4.0.0/device/metadata.yml +1 -0
  82. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +1 -0
  83. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_lab/metadata.yml +1 -0
  84. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/diagnostic_report_note_validation_test.rb +1 -0
  85. data/lib/us_core_test_kit/generated/v4.0.0/diagnostic_report_note/metadata.yml +1 -0
  86. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/document_reference_validation_test.rb +1 -0
  87. data/lib/us_core_test_kit/generated/v4.0.0/document_reference/metadata.yml +1 -0
  88. data/lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_validation_test.rb +1 -0
  89. data/lib/us_core_test_kit/generated/v4.0.0/encounter/metadata.yml +1 -0
  90. data/lib/us_core_test_kit/generated/v4.0.0/goal/goal_validation_test.rb +1 -0
  91. data/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml +2 -1
  92. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/head_circumference_validation_test.rb +1 -0
  93. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference/metadata.yml +1 -0
  94. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/head_circumference_percentile_validation_test.rb +1 -0
  95. data/lib/us_core_test_kit/generated/v4.0.0/head_circumference_percentile/metadata.yml +1 -0
  96. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/heart_rate_validation_test.rb +1 -0
  97. data/lib/us_core_test_kit/generated/v4.0.0/heart_rate/metadata.yml +1 -0
  98. data/lib/us_core_test_kit/generated/v4.0.0/immunization/immunization_validation_test.rb +1 -0
  99. data/lib/us_core_test_kit/generated/v4.0.0/immunization/metadata.yml +1 -0
  100. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_request_validation_test.rb +1 -0
  101. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/medication_validation_test.rb +1 -0
  102. data/lib/us_core_test_kit/generated/v4.0.0/medication_request/metadata.yml +1 -0
  103. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +36 -9
  104. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/metadata.yml +1 -0
  105. data/lib/us_core_test_kit/generated/v4.0.0/observation_lab/observation_lab_validation_test.rb +1 -0
  106. data/lib/us_core_test_kit/generated/v4.0.0/organization/metadata.yml +1 -0
  107. data/lib/us_core_test_kit/generated/v4.0.0/organization/organization_validation_test.rb +1 -0
  108. data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +1 -8
  109. data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_must_support_test.rb +4 -6
  110. data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_validation_test.rb +1 -0
  111. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/metadata.yml +1 -0
  112. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +1 -0
  113. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/metadata.yml +1 -0
  114. data/lib/us_core_test_kit/generated/v4.0.0/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +1 -0
  115. data/lib/us_core_test_kit/generated/v4.0.0/practitioner/metadata.yml +1 -0
  116. data/lib/us_core_test_kit/generated/v4.0.0/practitioner/practitioner_validation_test.rb +1 -0
  117. data/lib/us_core_test_kit/generated/v4.0.0/procedure/metadata.yml +1 -0
  118. data/lib/us_core_test_kit/generated/v4.0.0/procedure/procedure_validation_test.rb +1 -0
  119. data/lib/us_core_test_kit/generated/v4.0.0/provenance/metadata.yml +1 -0
  120. data/lib/us_core_test_kit/generated/v4.0.0/provenance/provenance_validation_test.rb +1 -0
  121. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/metadata.yml +1 -0
  122. data/lib/us_core_test_kit/generated/v4.0.0/pulse_oximetry/pulse_oximetry_validation_test.rb +1 -0
  123. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/metadata.yml +1 -0
  124. data/lib/us_core_test_kit/generated/v4.0.0/respiratory_rate/respiratory_rate_validation_test.rb +1 -0
  125. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml +1 -0
  126. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_validation_test.rb +1 -0
  127. data/lib/us_core_test_kit/generator/group_metadata.rb +1 -0
  128. data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +5 -0
  129. data/lib/us_core_test_kit/generator/ig_loader.rb +12 -5
  130. data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +0 -12
  131. data/lib/us_core_test_kit/generator/validation_test_generator.rb +4 -0
  132. data/lib/us_core_test_kit/generator.rb +9 -14
  133. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bodyheight.json +0 -0
  134. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bodytemp.json +0 -0
  135. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bodyweight.json +0 -0
  136. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-bp.json +0 -0
  137. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-heartrate.json +0 -0
  138. data/lib/us_core_test_kit/igs/{v311 → us_core_311}/StructureDefinition-resprate.json +0 -0
  139. data/lib/us_core_test_kit/igs/{v311/package.tgz → us_core_311.tgz} +0 -0
  140. data/lib/us_core_test_kit/igs/{v400/package.tgz → us_core_400.tgz} +0 -0
  141. data/lib/us_core_test_kit/must_support_test.rb +6 -0
  142. data/lib/us_core_test_kit/search_test.rb +3 -2
  143. data/lib/us_core_test_kit/validation_test.rb +4 -2
  144. data/lib/us_core_test_kit/version.rb +1 -1
  145. metadata +13 -13
@@ -8,6 +8,7 @@
8
8
  :resource: AllergyIntolerance
9
9
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
10
10
  :profile_name: US Core AllergyIntolerance Profile
11
+ :profile_version: 4.0.0
11
12
  :title: AllergyIntolerance
12
13
  :short_description: Verify support for the server capabilities required by the US
13
14
  Core AllergyIntolerance Profile.
@@ -161,6 +162,7 @@
161
162
  :resource: CarePlan
162
163
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan
163
164
  :profile_name: US Core CarePlan Profile
165
+ :profile_version: 4.0.0
164
166
  :title: CarePlan
165
167
  :short_description: Verify support for the server capabilities required by the US
166
168
  Core CarePlan Profile.
@@ -445,6 +447,7 @@
445
447
  :resource: CareTeam
446
448
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam
447
449
  :profile_name: US Core CareTeam Profile
450
+ :profile_version: 4.0.0
448
451
  :title: CareTeam
449
452
  :short_description: Verify support for the server capabilities required by the US
450
453
  Core CareTeam Profile.
@@ -583,6 +586,7 @@
583
586
  :resource: Condition
584
587
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition
585
588
  :profile_name: US Core Condition Profile
589
+ :profile_version: 4.0.0
586
590
  :title: Condition
587
591
  :short_description: Verify support for the server capabilities required by the US
588
592
  Core Condition Profile.
@@ -805,6 +809,7 @@
805
809
  :resource: Device
806
810
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device
807
811
  :profile_name: US Core Implantable Device Profile
812
+ :profile_version: 4.0.0
808
813
  :title: Implantable Device
809
814
  :short_description: Verify support for the server capabilities required by the US
810
815
  Core Implantable Device Profile.
@@ -1939,6 +1944,7 @@
1939
1944
  :resource: DiagnosticReport
1940
1945
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab
1941
1946
  :profile_name: US Core DiagnosticReport Profile for Laboratory Results Reporting
1947
+ :profile_version: 4.0.0
1942
1948
  :title: DiagnosticReport for Laboratory Results Reporting
1943
1949
  :short_description: Verify support for the server capabilities required by the US
1944
1950
  Core DiagnosticReport Profile for Laboratory Results Reporting.
@@ -3187,6 +3193,7 @@
3187
3193
  :resource: DiagnosticReport
3188
3194
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note
3189
3195
  :profile_name: US Core DiagnosticReport Profile for Report and Note exchange
3196
+ :profile_version: 4.0.0
3190
3197
  :title: DiagnosticReport for Report and Note exchange
3191
3198
  :short_description: Verify support for the server capabilities required by the US
3192
3199
  Core DiagnosticReport Profile for Report and Note exchange.
@@ -4429,6 +4436,7 @@
4429
4436
  :resource: DocumentReference
4430
4437
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference
4431
4438
  :profile_name: US Core DocumentReference Profile
4439
+ :profile_version: 4.0.0
4432
4440
  :title: DocumentReference
4433
4441
  :short_description: Verify support for the server capabilities required by the US
4434
4442
  Core DocumentReference Profile.
@@ -4783,6 +4791,7 @@
4783
4791
  :resource: Encounter
4784
4792
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter
4785
4793
  :profile_name: US Core Encounter Profile
4794
+ :profile_version: 4.0.0
4786
4795
  :title: Encounter
4787
4796
  :short_description: Verify support for the server capabilities required by the US
4788
4797
  Core Encounter Profile.
@@ -5162,6 +5171,7 @@
5162
5171
  :resource: Goal
5163
5172
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal
5164
5173
  :profile_name: US Core Goal Profile
5174
+ :profile_version: 4.0.0
5165
5175
  :title: Goal
5166
5176
  :short_description: Verify support for the server capabilities required by the US
5167
5177
  Core Goal Profile.
@@ -5307,7 +5317,7 @@
5307
5317
  :path: target.measure
5308
5318
  - :type: Quantity
5309
5319
  :strength: example
5310
- :system:
5320
+ :system:
5311
5321
  :path: target.detail
5312
5322
  - :type: CodeableConcept
5313
5323
  :strength: example
@@ -5342,6 +5352,7 @@
5342
5352
  :resource: Immunization
5343
5353
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization
5344
5354
  :profile_name: US Core Immunization Profile
5355
+ :profile_version: 4.0.0
5345
5356
  :title: Immunization
5346
5357
  :short_description: Verify support for the server capabilities required by the US
5347
5358
  Core Immunization Profile.
@@ -5541,6 +5552,7 @@
5541
5552
  :resource: Location
5542
5553
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-location
5543
5554
  :profile_name: US Core Location Profile
5555
+ :profile_version: 4.0.0
5544
5556
  :title: Location
5545
5557
  :short_description: Verify support for the server capabilities required by the US
5546
5558
  Core Location Profile.
@@ -5727,6 +5739,7 @@
5727
5739
  :resource: Medication
5728
5740
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication
5729
5741
  :profile_name: US Core Medication Profile
5742
+ :profile_version: 4.0.0
5730
5743
  :title: Medication
5731
5744
  :short_description: Verify support for the server capabilities required by the US
5732
5745
  Core Medication Profile.
@@ -5792,6 +5805,7 @@
5792
5805
  :resource: MedicationRequest
5793
5806
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
5794
5807
  :profile_name: US Core MedicationRequest Profile
5808
+ :profile_version: 4.0.0
5795
5809
  :title: MedicationRequest
5796
5810
  :short_description: Verify support for the server capabilities required by the US
5797
5811
  Core MedicationRequest Profile.
@@ -6113,6 +6127,7 @@
6113
6127
  :resource: Observation
6114
6128
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab
6115
6129
  :profile_name: US Core Laboratory Result Observation Profile
6130
+ :profile_version: 4.0.0
6116
6131
  :title: Laboratory Result Observation
6117
6132
  :short_description: Verify support for the server capabilities required by the US
6118
6133
  Core Laboratory Result Observation Profile.
@@ -7393,6 +7408,7 @@
7393
7408
  :resource: Observation
7394
7409
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs
7395
7410
  :profile_name: US Core Vital Signs Profile
7411
+ :profile_version: 4.0.0
7396
7412
  :title: Vital Signs
7397
7413
  :short_description: Verify support for the server capabilities required by the US
7398
7414
  Core Vital Signs Profile.
@@ -7693,6 +7709,7 @@
7693
7709
  :resource: Observation
7694
7710
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-blood-pressure
7695
7711
  :profile_name: US Core Blood Pressure Profile
7712
+ :profile_version: 4.0.0
7696
7713
  :title: Blood Pressure
7697
7714
  :short_description: Verify support for the server capabilities required by the US
7698
7715
  Core Blood Pressure Profile.
@@ -8052,6 +8069,7 @@
8052
8069
  :resource: Observation
8053
8070
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-bmi
8054
8071
  :profile_name: US Core BMI Profile
8072
+ :profile_version: 4.0.0
8055
8073
  :title: BMI
8056
8074
  :short_description: Verify support for the server capabilities required by the US
8057
8075
  Core BMI Profile.
@@ -8362,6 +8380,7 @@
8362
8380
  :resource: Observation
8363
8381
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-head-circumference
8364
8382
  :profile_name: US Core Head Circumference Profile
8383
+ :profile_version: 4.0.0
8365
8384
  :title: Head Circumference
8366
8385
  :short_description: Verify support for the server capabilities required by the US
8367
8386
  Core Head Circumference Profile.
@@ -8675,6 +8694,7 @@
8675
8694
  :resource: Observation
8676
8695
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-height
8677
8696
  :profile_name: US Core Body Height Profile
8697
+ :profile_version: 4.0.0
8678
8698
  :title: Body Height
8679
8699
  :short_description: Verify support for the server capabilities required by the US
8680
8700
  Core Body Height Profile.
@@ -8988,6 +9008,7 @@
8988
9008
  :resource: Observation
8989
9009
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-weight
8990
9010
  :profile_name: US Core Body Weight Profile
9011
+ :profile_version: 4.0.0
8991
9012
  :title: Body Weight
8992
9013
  :short_description: Verify support for the server capabilities required by the US
8993
9014
  Core Body Weight Profile.
@@ -9301,6 +9322,7 @@
9301
9322
  :resource: Observation
9302
9323
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-body-temperature
9303
9324
  :profile_name: US Core Body Temperature Profile
9325
+ :profile_version: 4.0.0
9304
9326
  :title: Body Temperature
9305
9327
  :short_description: Verify support for the server capabilities required by the US
9306
9328
  Core Body Temperature Profile.
@@ -9614,6 +9636,7 @@
9614
9636
  :resource: Observation
9615
9637
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-heart-rate
9616
9638
  :profile_name: US Core Heart Rate Profile
9639
+ :profile_version: 4.0.0
9617
9640
  :title: Heart Rate
9618
9641
  :short_description: Verify support for the server capabilities required by the US
9619
9642
  Core Heart Rate Profile.
@@ -9924,6 +9947,7 @@
9924
9947
  :resource: Observation
9925
9948
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age
9926
9949
  :profile_name: US Core Pediatric BMI for Age Observation Profile
9950
+ :profile_version: 4.0.0
9927
9951
  :title: Pediatric BMI for Age Observation
9928
9952
  :short_description: Verify support for the server capabilities required by the US
9929
9953
  Core Pediatric BMI for Age Observation Profile.
@@ -10235,6 +10259,7 @@
10235
10259
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile
10236
10260
  :profile_name: US Core Pediatric Head Occipital-frontal Circumference Percentile
10237
10261
  Profile
10262
+ :profile_version: 4.0.0
10238
10263
  :title: Pediatric Head Occipital-frontal Circumference Percentile
10239
10264
  :short_description: Verify support for the server capabilities required by the US
10240
10265
  Core Pediatric Head Occipital-frontal Circumference Percentile Profile.
@@ -10545,6 +10570,7 @@
10545
10570
  :resource: Observation
10546
10571
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height
10547
10572
  :profile_name: US Core Pediatric Weight for Height Observation Profile
10573
+ :profile_version: 4.0.0
10548
10574
  :title: Pediatric Weight for Height Observation
10549
10575
  :short_description: Verify support for the server capabilities required by the US
10550
10576
  Core Pediatric Weight for Height Observation Profile.
@@ -10855,6 +10881,7 @@
10855
10881
  :resource: Observation
10856
10882
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry
10857
10883
  :profile_name: US Core Pulse Oximetry Profile
10884
+ :profile_version: 4.0.0
10858
10885
  :title: Pulse Oximetry
10859
10886
  :short_description: Verify support for the server capabilities required by the US
10860
10887
  Core Pulse Oximetry Profile.
@@ -11234,6 +11261,7 @@
11234
11261
  :resource: Observation
11235
11262
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate
11236
11263
  :profile_name: US Core Respiratory Rate Profile
11264
+ :profile_version: 4.0.0
11237
11265
  :title: Respiratory Rate
11238
11266
  :short_description: Verify support for the server capabilities required by the US
11239
11267
  Core Respiratory Rate Profile.
@@ -11544,6 +11572,7 @@
11544
11572
  :resource: Observation
11545
11573
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus
11546
11574
  :profile_name: US Core Smoking Status Observation Profile
11575
+ :profile_version: 4.0.0
11547
11576
  :title: Smoking Status Observation
11548
11577
  :short_description: Verify support for the server capabilities required by the US
11549
11578
  Core Smoking Status Observation Profile.
@@ -11828,6 +11857,7 @@
11828
11857
  :resource: Organization
11829
11858
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
11830
11859
  :profile_name: US Core Organization Profile
11860
+ :profile_version: 4.0.0
11831
11861
  :title: Organization
11832
11862
  :short_description: Verify support for the server capabilities required by the US
11833
11863
  Core Organization Profile.
@@ -11974,6 +12004,7 @@
11974
12004
  :resource: Patient
11975
12005
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
11976
12006
  :profile_name: US Core Patient Profile
12007
+ :profile_version: 4.0.0
11977
12008
  :title: Patient
11978
12009
  :short_description: Verify support for the server capabilities required by the US
11979
12010
  Core Patient Profile.
@@ -12135,11 +12166,8 @@
12135
12166
  - :path: name.family
12136
12167
  - :path: name.given
12137
12168
  - :path: telecom.system
12138
- :uscdi_only: true
12139
12169
  - :path: telecom.value
12140
- :uscdi_only: true
12141
12170
  - :path: telecom.use
12142
- :uscdi_only: true
12143
12171
  - :path: gender
12144
12172
  - :path: birthDate
12145
12173
  - :path: address
@@ -12149,7 +12177,6 @@
12149
12177
  - :path: address.postalCode
12150
12178
  - :path: address.period
12151
12179
  - :path: communication.language
12152
- :uscdi_only: true
12153
12180
  - :path: name.suffix
12154
12181
  :uscdi_only: true
12155
12182
  - :path: name.use
@@ -12157,10 +12184,6 @@
12157
12184
  :uscdi_only: true
12158
12185
  - :path: name.period.end
12159
12186
  :uscdi_only: true
12160
- - :path: telecom
12161
- :uscdi_only: true
12162
- - :path: communication
12163
- :uscdi_only: true
12164
12187
  :choices:
12165
12188
  - :paths:
12166
12189
  - name.period.end
@@ -12299,6 +12322,7 @@
12299
12322
  :resource: Practitioner
12300
12323
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
12301
12324
  :profile_name: US Core Practitioner Profile
12325
+ :profile_version: 4.0.0
12302
12326
  :title: Practitioner
12303
12327
  :short_description: Verify support for the server capabilities required by the US
12304
12328
  Core Practitioner Profile.
@@ -12423,6 +12447,7 @@
12423
12447
  :resource: PractitionerRole
12424
12448
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole
12425
12449
  :profile_name: US Core PractitionerRole Profile
12450
+ :profile_version: 4.0.0
12426
12451
  :title: PractitionerRole
12427
12452
  :short_description: Verify support for the server capabilities required by the US
12428
12453
  Core PractitionerRole Profile.
@@ -12683,6 +12708,7 @@
12683
12708
  :resource: Procedure
12684
12709
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure
12685
12710
  :profile_name: US Core Procedure Profile
12711
+ :profile_version: 4.0.0
12686
12712
  :title: Procedure
12687
12713
  :short_description: Verify support for the server capabilities required by the US
12688
12714
  Core Procedure Profile.
@@ -13937,6 +13963,7 @@
13937
13963
  :resource: Provenance
13938
13964
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance
13939
13965
  :profile_name: US Core Provenance Profile
13966
+ :profile_version: 4.0.0
13940
13967
  :title: Provenance
13941
13968
  :short_description: Verify support for the server capabilities required by the US
13942
13969
  Core Provenance Profile.
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab
8
8
  :profile_name: US Core Laboratory Result Observation Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Laboratory Result Observation
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Laboratory Result Observation Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Organization
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
8
8
  :profile_name: US Core Organization Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Organization
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Organization Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Patient
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
8
8
  :profile_name: US Core Patient Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Patient
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Patient Profile.
@@ -167,11 +168,8 @@
167
168
  - :path: name.family
168
169
  - :path: name.given
169
170
  - :path: telecom.system
170
- :uscdi_only: true
171
171
  - :path: telecom.value
172
- :uscdi_only: true
173
172
  - :path: telecom.use
174
- :uscdi_only: true
175
173
  - :path: gender
176
174
  - :path: birthDate
177
175
  - :path: address
@@ -181,7 +179,6 @@
181
179
  - :path: address.postalCode
182
180
  - :path: address.period
183
181
  - :path: communication.language
184
- :uscdi_only: true
185
182
  - :path: name.suffix
186
183
  :uscdi_only: true
187
184
  - :path: name.use
@@ -189,10 +186,6 @@
189
186
  :uscdi_only: true
190
187
  - :path: name.period.end
191
188
  :uscdi_only: true
192
- - :path: telecom
193
- :uscdi_only: true
194
- - :path: communication
195
- :uscdi_only: true
196
189
  :choices:
197
190
  - :paths:
198
191
  - name.period.end
@@ -19,6 +19,7 @@ module USCoreTestKit
19
19
  * Patient.address.postalCode
20
20
  * Patient.address.state
21
21
  * Patient.birthDate
22
+ * Patient.communication.language
22
23
  * Patient.gender
23
24
  * Patient.identifier
24
25
  * Patient.identifier.system
@@ -26,20 +27,17 @@ module USCoreTestKit
26
27
  * Patient.name
27
28
  * Patient.name.family
28
29
  * Patient.name.given
30
+ * Patient.telecom.system
31
+ * Patient.telecom.use
32
+ * Patient.telecom.value
29
33
 
30
34
  For ONC USCDI requirements, each Patient must support the following additional elements:
31
35
 
32
- * Patient.communication
33
- * Patient.communication.language
34
36
  * Patient.extension:birthsex
35
37
  * Patient.extension:ethnicity
36
38
  * Patient.extension:race
37
39
  * Patient.name.period.end or Patient.name.use
38
40
  * Patient.name.suffix
39
- * Patient.telecom
40
- * Patient.telecom.system
41
- * Patient.telecom.use
42
- * Patient.telecom.value
43
41
  )
44
42
 
45
43
  id :us_core_v400_patient_must_support_test
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age
8
8
  :profile_name: US Core Pediatric BMI for Age Observation Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Pediatric BMI for Age Observation
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Pediatric BMI for Age Observation Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height
8
8
  :profile_name: US Core Pediatric Weight for Height Observation Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Pediatric Weight for Height Observation
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Pediatric Weight for Height Observation Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Practitioner
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
8
8
  :profile_name: US Core Practitioner Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Practitioner
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Practitioner Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Procedure
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure
8
8
  :profile_name: US Core Procedure Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Procedure
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Procedure Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Provenance
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance
8
8
  :profile_name: US Core Provenance Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Provenance
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Provenance Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry
8
8
  :profile_name: US Core Pulse Oximetry Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Pulse Oximetry
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Pulse Oximetry Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate
8
8
  :profile_name: US Core Respiratory Rate Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Respiratory Rate
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Respiratory Rate Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-respiratory-rate',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -6,6 +6,7 @@
6
6
  :resource: Observation
7
7
  :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus
8
8
  :profile_name: US Core Smoking Status Observation Profile
9
+ :profile_version: 4.0.0
9
10
  :title: Smoking Status Observation
10
11
  :short_description: Verify support for the server capabilities required by the US
11
12
  Core Smoking Status Observation Profile.
@@ -32,6 +32,7 @@ fail if their code/system are not found in the valueset.
32
32
  run do
33
33
  perform_validation_test(scratch_resources[:all] || [],
34
34
  'http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus',
35
+ '4.0.0',
35
36
  skip_if_empty: true)
36
37
  end
37
38
  end
@@ -9,6 +9,7 @@ module USCoreTestKit
9
9
  :resource,
10
10
  :profile_url,
11
11
  :profile_name,
12
+ :profile_version,
12
13
  :title,
13
14
  :short_description,
14
15
  :interactions,
@@ -32,6 +32,7 @@ module USCoreTestKit
32
32
  resource: resource,
33
33
  profile_url: profile_url,
34
34
  profile_name: profile_name,
35
+ profile_version: profile_version,
35
36
  title: title,
36
37
  short_description: short_description,
37
38
  interactions: interactions,
@@ -169,6 +170,10 @@ module USCoreTestKit
169
170
  profile.title.gsub(' ', ' ')
170
171
  end
171
172
 
173
+ def profile_version
174
+ profile.version
175
+ end
176
+
172
177
  def title
173
178
  profile.title.gsub(/US\s*Core\s*/, '').gsub(/\s*Profile/, '').strip
174
179
  end
@@ -1,5 +1,6 @@
1
1
  require 'active_support/all'
2
2
  require 'fhir_models'
3
+ require 'pathname'
3
4
  require 'rubygems/package'
4
5
  require 'zlib'
5
6
  require_relative 'ig_resources'
@@ -7,10 +8,10 @@ require_relative 'ig_resources'
7
8
  module USCoreTestKit
8
9
  class Generator
9
10
  class IGLoader
10
- attr_accessor :base_ig_directory
11
+ attr_accessor :ig_file_name
11
12
 
12
- def initialize(base_ig_directory)
13
- self.base_ig_directory = base_ig_directory
13
+ def initialize(ig_file_name)
14
+ self.ig_file_name = ig_file_name
14
15
  end
15
16
 
16
17
  def ig_resources
@@ -23,7 +24,9 @@ module USCoreTestKit
23
24
  end
24
25
 
25
26
  def load_ig
26
- tar = Gem::Package::TarReader.new(Zlib::GzipReader.open(File.join(base_ig_directory, 'package.tgz')))
27
+ tar = Gem::Package::TarReader.new(
28
+ Zlib::GzipReader.open(ig_file_name)
29
+ )
27
30
 
28
31
  tar.each do |entry|
29
32
  next if entry.directory?
@@ -49,7 +52,11 @@ module USCoreTestKit
49
52
  end
50
53
 
51
54
  def load_standalone_resources
52
- Dir.glob(File.join(base_ig_directory, '*.json')).each do |file_path|
55
+ ig_directory = ig_file_name.chomp('.tgz')
56
+
57
+ return ig_resources unless File.exist? ig_directory
58
+
59
+ Dir.glob(File.join(ig_directory, '*.json')).each do |file_path|
53
60
  begin
54
61
  resource = FHIR.from_contents(File.read(file_path))
55
62
  next if resource.nil?
@@ -407,18 +407,6 @@ module USCoreTestKit
407
407
  path: 'name.period.end',
408
408
  uscdi_only: true
409
409
  }
410
- @must_supports[:elements] << {
411
- path: 'telecom',
412
- uscdi_only: true
413
- }
414
- @must_supports[:elements] << {
415
- path: 'communication',
416
- uscdi_only: true
417
- }
418
- @must_supports[:elements].each do |element|
419
- path = element[:path]
420
- element[:uscdi_only] = true if path.include?('telecom.') || path.include?('communication.')
421
- end
422
410
  end
423
411
  end
424
412
  end