us_core_test_kit 0.6.3 → 0.6.5

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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/custom_groups/smart_app_launch_group.rb +2 -2
  3. data/lib/us_core_test_kit/fhir_resource_navigation.rb +3 -3
  4. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +10 -0
  5. data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +10 -0
  6. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +2 -1
  7. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +10 -0
  8. data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +10 -0
  9. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +2 -1
  10. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +21 -2
  11. data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +6 -2
  12. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/metadata.yml +155 -0
  13. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  14. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  15. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_read_test.rb +26 -0
  16. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  17. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  18. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_validation_test.rb +40 -0
  19. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role_group.rb +89 -0
  20. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +4 -1
  21. data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +17 -2
  22. data/lib/us_core_test_kit/generated/v6.1.0/patient/metadata.yml +2 -2
  23. data/lib/us_core_test_kit/generated/v6.1.0/patient/patient_must_support_test.rb +0 -2
  24. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/metadata.yml +155 -0
  25. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  26. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  27. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_read_test.rb +26 -0
  28. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  29. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  30. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_validation_test.rb +40 -0
  31. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role_group.rb +89 -0
  32. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +4 -1
  33. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_category_status_search_test.rb → location/location_address_city_search_test.rb} +7 -13
  34. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_code_date_search_test.rb → location/location_address_postalcode_search_test.rb} +7 -14
  35. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_search_test.rb +52 -0
  36. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_state_search_test.rb +43 -0
  37. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_must_support_test.rb → location/location_must_support_test.rb} +17 -16
  38. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_category_search_test.rb → location/location_name_search_test.rb} +7 -13
  39. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_read_test.rb +26 -0
  40. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_reference_resolution_test.rb → location/location_reference_resolution_test.rb} +6 -6
  41. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_validation_test.rb → location/location_validation_test.rb} +7 -7
  42. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/metadata.yml +194 -0
  43. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location_group.rb +93 -0
  44. data/lib/us_core_test_kit/generated/v7.0.0-ballot/metadata.yml +38 -273
  45. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/metadata.yml +2 -2
  46. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/patient_must_support_test.rb +0 -2
  47. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/metadata.yml +160 -0
  48. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  49. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_code_search_test.rb → practitioner_role/practitioner_role_practitioner_search_test.rb} +8 -20
  50. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_read_test.rb +26 -0
  51. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  52. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_category_date_search_test.rb → practitioner_role/practitioner_role_specialty_search_test.rb} +8 -14
  53. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_validation_test.rb +40 -0
  54. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role_group.rb +89 -0
  55. data/lib/us_core_test_kit/generated/v7.0.0-ballot/us_core_test_suite.rb +6 -3
  56. data/lib/us_core_test_kit/generator/group_generator.rb +2 -2
  57. data/lib/us_core_test_kit/generator/group_metadata.rb +3 -1
  58. data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +8 -1
  59. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_3.rb +64 -18
  60. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +1 -18
  61. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +0 -15
  62. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +5 -2
  63. data/lib/us_core_test_kit/generator/special_cases.rb +17 -7
  64. data/lib/us_core_test_kit/granular_scope_checker.rb +1 -1
  65. data/lib/us_core_test_kit/version.rb +1 -1
  66. metadata +40 -94
  67. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  68. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  69. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
  70. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  71. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  72. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  73. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  74. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  75. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  76. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  77. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope1_group.rb +0 -38
  78. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope2_group.rb +0 -38
  79. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
  80. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  81. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
  82. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  83. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  84. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  85. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  86. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  87. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  88. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  89. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  90. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  91. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  92. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope1_group.rb +0 -39
  93. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope2_group.rb +0 -39
  94. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  95. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  96. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  97. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  98. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  99. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_id_granular_scope_test.rb +0 -41
  100. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  101. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  102. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  103. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  104. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_granular_scope_test.rb +0 -45
  105. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  106. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope1_group.rb +0 -39
  107. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope2_group.rb +0 -40
  108. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  109. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  110. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
  111. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  112. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  113. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  114. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  115. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  116. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  117. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  118. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
  119. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  120. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
  121. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  122. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  123. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  124. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  125. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  126. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  127. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  128. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  129. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  130. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  131. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference_granular_scope2_group.rb +0 -39
  132. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  133. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  134. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  135. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  136. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  137. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_id_granular_scope_test.rb +0 -41
  138. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  139. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  140. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  141. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  142. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_granular_scope_test.rb +0 -45
  143. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  144. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/metadata.yml +0 -273
  145. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_provenance_revinclude_search_test.rb +0 -53
  146. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_read_test.rb +0 -26
  147. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs_group.rb +0 -96
@@ -0,0 +1,194 @@
1
+ ---
2
+ :name: us_core_location
3
+ :class_name: USCorev700_ballotLocationSequence
4
+ :version: v7.0.0-ballot
5
+ :reformatted_version: v700_ballot
6
+ :resource: Location
7
+ :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-location
8
+ :profile_name: US Core Location Profile
9
+ :profile_version: 7.0.0-ballot
10
+ :title: Location
11
+ :short_description: Verify support for the server capabilities required by the US
12
+ Core Location Profile.
13
+ :is_delayed: true
14
+ :interactions:
15
+ - :code: create
16
+ :expectation: MAY
17
+ - :code: search-type
18
+ :expectation: SHALL
19
+ - :code: read
20
+ :expectation: SHALL
21
+ - :code: vread
22
+ :expectation: SHOULD
23
+ - :code: update
24
+ :expectation: MAY
25
+ - :code: patch
26
+ :expectation: MAY
27
+ - :code: delete
28
+ :expectation: MAY
29
+ - :code: history-instance
30
+ :expectation: SHOULD
31
+ - :code: history-type
32
+ :expectation: MAY
33
+ :operations: []
34
+ :searches:
35
+ - :names:
36
+ - address
37
+ :expectation: SHALL
38
+ :names_not_must_support_or_mandatory: []
39
+ :must_support_or_mandatory: true
40
+ - :names:
41
+ - address-city
42
+ :expectation: SHOULD
43
+ :names_not_must_support_or_mandatory: []
44
+ :must_support_or_mandatory: true
45
+ - :names:
46
+ - address-postalcode
47
+ :expectation: SHOULD
48
+ :names_not_must_support_or_mandatory: []
49
+ :must_support_or_mandatory: true
50
+ - :names:
51
+ - address-state
52
+ :expectation: SHOULD
53
+ :names_not_must_support_or_mandatory: []
54
+ :must_support_or_mandatory: true
55
+ - :names:
56
+ - name
57
+ :expectation: SHALL
58
+ :names_not_must_support_or_mandatory: []
59
+ :must_support_or_mandatory: true
60
+ :search_definitions:
61
+ :address:
62
+ :paths:
63
+ - address
64
+ :full_paths:
65
+ - Location.address
66
+ :comparators: {}
67
+ :values: []
68
+ :type: Address
69
+ :contains_multiple: false
70
+ :multiple_or: MAY
71
+ :address-city:
72
+ :paths:
73
+ - address.city
74
+ :full_paths:
75
+ - Location.address.city
76
+ :comparators: {}
77
+ :values: []
78
+ :type: string
79
+ :contains_multiple: false
80
+ :multiple_or: MAY
81
+ :address-postalcode:
82
+ :paths:
83
+ - address.postalCode
84
+ :full_paths:
85
+ - Location.address.postalCode
86
+ :comparators: {}
87
+ :values: []
88
+ :type: string
89
+ :contains_multiple: false
90
+ :multiple_or: MAY
91
+ :address-state:
92
+ :paths:
93
+ - address.state
94
+ :full_paths:
95
+ - Location.address.state
96
+ :comparators: {}
97
+ :values: []
98
+ :type: string
99
+ :contains_multiple: false
100
+ :multiple_or: MAY
101
+ :name:
102
+ :paths:
103
+ - name
104
+ - alias
105
+ :full_paths:
106
+ - Location.name
107
+ - Location.alias
108
+ :comparators: {}
109
+ :values: []
110
+ :type: string
111
+ :contains_multiple: false
112
+ :multiple_or: MAY
113
+ :include_params: []
114
+ :revincludes: []
115
+ :required_concepts: []
116
+ :must_supports:
117
+ :extensions: []
118
+ :slices: []
119
+ :elements:
120
+ - :path: identifier
121
+ - :path: status
122
+ - :path: name
123
+ - :path: type
124
+ - :path: telecom
125
+ - :path: address
126
+ - :path: address.line
127
+ - :path: address.city
128
+ - :path: address.state
129
+ - :path: address.postalCode
130
+ - :path: managingOrganization
131
+ :types:
132
+ - Reference
133
+ :target_profiles:
134
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
135
+ :mandatory_elements:
136
+ - Location.name
137
+ - Location.position.longitude
138
+ - Location.position.latitude
139
+ :bindings:
140
+ - :type: code
141
+ :strength: required
142
+ :system: http://hl7.org/fhir/ValueSet/location-status
143
+ :path: status
144
+ - :type: code
145
+ :strength: required
146
+ :system: http://hl7.org/fhir/ValueSet/location-mode
147
+ :path: mode
148
+ - :type: code
149
+ :strength: required
150
+ :system: http://hl7.org/fhir/ValueSet/address-use
151
+ :path: address.use
152
+ - :type: code
153
+ :strength: required
154
+ :system: http://hl7.org/fhir/ValueSet/address-type
155
+ :path: address.type
156
+ - :type: code
157
+ :strength: required
158
+ :system: http://hl7.org/fhir/ValueSet/days-of-week
159
+ :path: hoursOfOperation.daysOfWeek
160
+ :references:
161
+ - :path: Location.managingOrganization
162
+ :profiles:
163
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
164
+ - :path: Location.partOf
165
+ :profiles:
166
+ - http://hl7.org/fhir/StructureDefinition/Location
167
+ - :path: Location.endpoint
168
+ :profiles:
169
+ - http://hl7.org/fhir/StructureDefinition/Endpoint
170
+ :tests:
171
+ - :id: us_core_v700_ballot_location_read_test
172
+ :file_name: location_read_test.rb
173
+ - :id: us_core_v700_ballot_location_address_search_test
174
+ :file_name: location_address_search_test.rb
175
+ - :id: us_core_v700_ballot_location_address_city_search_test
176
+ :file_name: location_address_city_search_test.rb
177
+ - :id: us_core_v700_ballot_location_address_postalcode_search_test
178
+ :file_name: location_address_postalcode_search_test.rb
179
+ - :id: us_core_v700_ballot_location_address_state_search_test
180
+ :file_name: location_address_state_search_test.rb
181
+ - :id: us_core_v700_ballot_location_name_search_test
182
+ :file_name: location_name_search_test.rb
183
+ - :id: us_core_v700_ballot_location_validation_test
184
+ :file_name: location_validation_test.rb
185
+ - :id: us_core_v700_ballot_location_must_support_test
186
+ :file_name: location_must_support_test.rb
187
+ - :id: us_core_v700_ballot_location_reference_resolution_test
188
+ :file_name: location_reference_resolution_test.rb
189
+ :id: us_core_v700_ballot_location
190
+ :file_name: location_group.rb
191
+ :delayed_references:
192
+ - :path: managingOrganization
193
+ :resources:
194
+ - Organization
@@ -0,0 +1,93 @@
1
+ require_relative 'location/location_read_test'
2
+ require_relative 'location/location_address_search_test'
3
+ require_relative 'location/location_address_city_search_test'
4
+ require_relative 'location/location_address_postalcode_search_test'
5
+ require_relative 'location/location_address_state_search_test'
6
+ require_relative 'location/location_name_search_test'
7
+ require_relative 'location/location_validation_test'
8
+ require_relative 'location/location_must_support_test'
9
+ require_relative 'location/location_reference_resolution_test'
10
+
11
+ module USCoreTestKit
12
+ module USCoreV700_BALLOT
13
+ class LocationGroup < Inferno::TestGroup
14
+ title 'Location Tests'
15
+ short_description 'Verify support for the server capabilities required by the US Core Location Profile.'
16
+ description %(
17
+ # Background
18
+
19
+ The US Core Location sequence verifies that the system under test is
20
+ able to provide correct responses for Location queries. These queries
21
+ must contain resources conforming to the US Core Location Profile as
22
+ specified in the US Core v7.0.0-ballot Implementation Guide.
23
+
24
+ # Testing Methodology
25
+ ## Searching
26
+ This test sequence will first perform each required search associated
27
+ with this resource. This sequence will perform searches with the
28
+ following parameters:
29
+
30
+ * address
31
+ * name
32
+
33
+ ### Search Parameters
34
+ The first search uses the selected patient(s) from the prior launch
35
+ sequence. Any subsequent searches will look for its parameter values
36
+ from the results of the first search. For example, the `identifier`
37
+ search in the patient sequence is performed by looking for an existing
38
+ `Patient.identifier` from any of the resources returned in the `_id`
39
+ search. If a value cannot be found this way, the search is skipped.
40
+
41
+ ### Search Validation
42
+ Inferno will retrieve up to the first 20 bundle pages of the reply for
43
+ Location resources and save them for subsequent tests. Each of
44
+ these resources is then checked to see if it matches the searched
45
+ parameters in accordance with [FHIR search
46
+ guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
47
+ for example, if a Patient search for `gender=male` returns a `female`
48
+ patient.
49
+
50
+
51
+ ## Must Support
52
+ Each profile contains elements marked as "must support". This test
53
+ sequence expects to see each of these elements at least once. If at
54
+ least one cannot be found, the test will fail. The test will look
55
+ through the Location resources found in the first test for these
56
+ elements.
57
+
58
+ ## Profile Validation
59
+ Each resource returned from the first search is expected to conform to
60
+ the [US Core Location Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-location). Each element is checked against
61
+ teminology binding and cardinality requirements.
62
+
63
+ Elements with a required binding are validated against their bound
64
+ ValueSet. If the code/system in the element is not part of the ValueSet,
65
+ then the test will fail.
66
+
67
+ ## Reference Validation
68
+ At least one instance of each external reference in elements marked as
69
+ "must support" within the resources provided by the system must resolve.
70
+ The test will attempt to read each reference found and will fail if no
71
+ read succeeds.
72
+
73
+ )
74
+
75
+ id :us_core_v700_ballot_location
76
+ run_as_group
77
+
78
+ def self.metadata
79
+ @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'location', 'metadata.yml'), aliases: true))
80
+ end
81
+
82
+ test from: :us_core_v700_ballot_location_read_test
83
+ test from: :us_core_v700_ballot_location_address_search_test
84
+ test from: :us_core_v700_ballot_location_address_city_search_test
85
+ test from: :us_core_v700_ballot_location_address_postalcode_search_test
86
+ test from: :us_core_v700_ballot_location_address_state_search_test
87
+ test from: :us_core_v700_ballot_location_name_search_test
88
+ test from: :us_core_v700_ballot_location_validation_test
89
+ test from: :us_core_v700_ballot_location_must_support_test
90
+ test from: :us_core_v700_ballot_location_reference_resolution_test
91
+ end
92
+ end
93
+ end
@@ -3513,6 +3513,27 @@
3513
3513
  - :path: Location.endpoint
3514
3514
  :profiles:
3515
3515
  - http://hl7.org/fhir/StructureDefinition/Endpoint
3516
+ :tests:
3517
+ - :id: us_core_v700_ballot_location_read_test
3518
+ :file_name: location_read_test.rb
3519
+ - :id: us_core_v700_ballot_location_address_search_test
3520
+ :file_name: location_address_search_test.rb
3521
+ - :id: us_core_v700_ballot_location_address_city_search_test
3522
+ :file_name: location_address_city_search_test.rb
3523
+ - :id: us_core_v700_ballot_location_address_postalcode_search_test
3524
+ :file_name: location_address_postalcode_search_test.rb
3525
+ - :id: us_core_v700_ballot_location_address_state_search_test
3526
+ :file_name: location_address_state_search_test.rb
3527
+ - :id: us_core_v700_ballot_location_name_search_test
3528
+ :file_name: location_name_search_test.rb
3529
+ - :id: us_core_v700_ballot_location_validation_test
3530
+ :file_name: location_validation_test.rb
3531
+ - :id: us_core_v700_ballot_location_must_support_test
3532
+ :file_name: location_must_support_test.rb
3533
+ - :id: us_core_v700_ballot_location_reference_resolution_test
3534
+ :file_name: location_reference_resolution_test.rb
3535
+ :id: us_core_v700_ballot_location
3536
+ :file_name: location_group.rb
3516
3537
  :delayed_references:
3517
3538
  - :path: managingOrganization
3518
3539
  :resources:
@@ -11052,277 +11073,6 @@
11052
11073
  :id: us_core_v700_ballot_body_weight
11053
11074
  :file_name: body_weight_group.rb
11054
11075
  :delayed_references: []
11055
- - :name: us_core_vital_signs
11056
- :class_name: USCorev700_ballotVitalSignsSequence
11057
- :version: v7.0.0-ballot
11058
- :reformatted_version: v700_ballot
11059
- :resource: Observation
11060
- :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs
11061
- :profile_name: US Core Vital Signs Profile
11062
- :profile_version: 7.0.0-ballot
11063
- :title: Observation Vital Signs
11064
- :short_description: Verify support for the server capabilities required by the US
11065
- Core Vital Signs Profile.
11066
- :is_delayed: false
11067
- :interactions:
11068
- - :code: create
11069
- :expectation: MAY
11070
- - :code: search-type
11071
- :expectation: SHALL
11072
- - :code: read
11073
- :expectation: SHALL
11074
- - :code: vread
11075
- :expectation: SHOULD
11076
- - :code: update
11077
- :expectation: MAY
11078
- - :code: patch
11079
- :expectation: MAY
11080
- - :code: delete
11081
- :expectation: MAY
11082
- - :code: history-instance
11083
- :expectation: SHOULD
11084
- - :code: history-type
11085
- :expectation: MAY
11086
- :operations: []
11087
- :searches:
11088
- - :expectation: SHALL
11089
- :names:
11090
- - patient
11091
- - code
11092
- :names_not_must_support_or_mandatory: []
11093
- :must_support_or_mandatory: true
11094
- - :expectation: SHALL
11095
- :names:
11096
- - patient
11097
- - category
11098
- :names_not_must_support_or_mandatory: []
11099
- :must_support_or_mandatory: true
11100
- - :expectation: SHALL
11101
- :names:
11102
- - patient
11103
- - category
11104
- - date
11105
- :names_not_must_support_or_mandatory: []
11106
- :must_support_or_mandatory: true
11107
- - :expectation: SHOULD
11108
- :names:
11109
- - patient
11110
- - category
11111
- - status
11112
- :names_not_must_support_or_mandatory: []
11113
- :must_support_or_mandatory: true
11114
- - :expectation: SHOULD
11115
- :names:
11116
- - patient
11117
- - code
11118
- - date
11119
- :names_not_must_support_or_mandatory: []
11120
- :must_support_or_mandatory: true
11121
- :search_definitions:
11122
- :patient:
11123
- :paths:
11124
- - subject
11125
- :full_paths:
11126
- - Observation.subject
11127
- :comparators: {}
11128
- :values: []
11129
- :type: Reference
11130
- :contains_multiple: false
11131
- :multiple_or: MAY
11132
- :category:
11133
- :paths:
11134
- - category
11135
- :full_paths:
11136
- - Observation.category
11137
- :comparators: {}
11138
- :values:
11139
- - vital-signs
11140
- :type: CodeableConcept
11141
- :contains_multiple: true
11142
- :multiple_or: MAY
11143
- :date:
11144
- :paths:
11145
- - effective
11146
- :full_paths:
11147
- - Observation.effective
11148
- :comparators:
11149
- :eq: MAY
11150
- :ne: MAY
11151
- :gt: SHALL
11152
- :ge: SHALL
11153
- :lt: SHALL
11154
- :le: SHALL
11155
- :sa: MAY
11156
- :eb: MAY
11157
- :ap: MAY
11158
- :values: []
11159
- :type: date
11160
- :contains_multiple: false
11161
- :multiple_or: MAY
11162
- :code:
11163
- :paths:
11164
- - code
11165
- :full_paths:
11166
- - Observation.code
11167
- :comparators: {}
11168
- :values:
11169
- - 59576-9
11170
- - 8289-1
11171
- - 77606-2
11172
- - 59408-5
11173
- - 3150-0
11174
- - 3151-8
11175
- - 96607-7
11176
- - 96608-5
11177
- - 96609-3
11178
- :type: CodeableConcept
11179
- :contains_multiple: false
11180
- :multiple_or: SHOULD
11181
- :status:
11182
- :paths:
11183
- - status
11184
- :full_paths:
11185
- - Observation.status
11186
- :comparators: {}
11187
- :values:
11188
- - registered
11189
- - preliminary
11190
- - final
11191
- - amended
11192
- - corrected
11193
- - cancelled
11194
- - entered-in-error
11195
- - unknown
11196
- :type: code
11197
- :contains_multiple: false
11198
- :multiple_or: SHALL
11199
- :include_params: *5
11200
- :revincludes: *6
11201
- :required_concepts: []
11202
- :must_supports:
11203
- :extensions: []
11204
- :slices:
11205
- - :slice_id: Observation.category:VSCat
11206
- :slice_name: VSCat
11207
- :path: category
11208
- :discriminator:
11209
- :type: value
11210
- :values:
11211
- - :path: coding.code
11212
- :value: vital-signs
11213
- - :path: coding.system
11214
- :value: http://terminology.hl7.org/CodeSystem/observation-category
11215
- :elements:
11216
- - :path: status
11217
- - :path: category
11218
- - :path: category:VSCat.coding
11219
- - :path: category:VSCat.coding.system
11220
- :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
11221
- - :path: category:VSCat.coding.code
11222
- :fixed_value: vital-signs
11223
- - :path: code
11224
- - :path: subject
11225
- :types:
11226
- - Reference
11227
- :target_profiles:
11228
- - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
11229
- - :path: effectiveDateTime
11230
- :original_path: effective[x]
11231
- - :path: valueQuantity
11232
- :original_path: value[x]
11233
- :mandatory_elements:
11234
- - Observation.status
11235
- - Observation.category
11236
- - Observation.category.coding
11237
- - Observation.category.coding.system
11238
- - Observation.category.coding.code
11239
- - Observation.code
11240
- - Observation.subject
11241
- - Observation.effective[x]
11242
- - Observation.component.code
11243
- :bindings:
11244
- - :type: code
11245
- :strength: required
11246
- :system: http://hl7.org/fhir/ValueSet/observation-status
11247
- :path: status
11248
- :references:
11249
- - :path: Observation.basedOn
11250
- :profiles:
11251
- - http://hl7.org/fhir/StructureDefinition/CarePlan
11252
- - http://hl7.org/fhir/StructureDefinition/DeviceRequest
11253
- - http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
11254
- - http://hl7.org/fhir/StructureDefinition/MedicationRequest
11255
- - http://hl7.org/fhir/StructureDefinition/NutritionOrder
11256
- - http://hl7.org/fhir/StructureDefinition/ServiceRequest
11257
- - :path: Observation.partOf
11258
- :profiles:
11259
- - http://hl7.org/fhir/StructureDefinition/MedicationAdministration
11260
- - http://hl7.org/fhir/StructureDefinition/MedicationDispense
11261
- - http://hl7.org/fhir/StructureDefinition/MedicationStatement
11262
- - http://hl7.org/fhir/StructureDefinition/Procedure
11263
- - http://hl7.org/fhir/StructureDefinition/Immunization
11264
- - http://hl7.org/fhir/StructureDefinition/ImagingStudy
11265
- - :path: Observation.subject
11266
- :profiles:
11267
- - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
11268
- - :path: Observation.focus
11269
- :profiles:
11270
- - http://hl7.org/fhir/StructureDefinition/Resource
11271
- - :path: Observation.encounter
11272
- :profiles:
11273
- - http://hl7.org/fhir/StructureDefinition/Encounter
11274
- - :path: Observation.performer
11275
- :profiles:
11276
- - http://hl7.org/fhir/StructureDefinition/Practitioner
11277
- - http://hl7.org/fhir/StructureDefinition/PractitionerRole
11278
- - http://hl7.org/fhir/StructureDefinition/Organization
11279
- - http://hl7.org/fhir/StructureDefinition/CareTeam
11280
- - http://hl7.org/fhir/StructureDefinition/Patient
11281
- - http://hl7.org/fhir/StructureDefinition/RelatedPerson
11282
- - :path: Observation.specimen
11283
- :profiles:
11284
- - http://hl7.org/fhir/StructureDefinition/Specimen
11285
- - :path: Observation.device
11286
- :profiles:
11287
- - http://hl7.org/fhir/StructureDefinition/Device
11288
- - http://hl7.org/fhir/StructureDefinition/DeviceMetric
11289
- - :path: Observation.hasMember
11290
- :profiles:
11291
- - http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
11292
- - http://hl7.org/fhir/StructureDefinition/MolecularSequence
11293
- - http://hl7.org/fhir/StructureDefinition/vitalsigns
11294
- - :path: Observation.derivedFrom
11295
- :profiles:
11296
- - http://hl7.org/fhir/StructureDefinition/DocumentReference
11297
- - http://hl7.org/fhir/StructureDefinition/ImagingStudy
11298
- - http://hl7.org/fhir/StructureDefinition/Media
11299
- - http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
11300
- - http://hl7.org/fhir/StructureDefinition/MolecularSequence
11301
- - http://hl7.org/fhir/StructureDefinition/vitalsigns
11302
- :tests:
11303
- - :id: us_core_v700_ballot_vital_signs_patient_code_search_test
11304
- :file_name: vital_signs_patient_code_search_test.rb
11305
- - :id: us_core_v700_ballot_vital_signs_patient_category_search_test
11306
- :file_name: vital_signs_patient_category_search_test.rb
11307
- - :id: us_core_v700_ballot_vital_signs_patient_category_date_search_test
11308
- :file_name: vital_signs_patient_category_date_search_test.rb
11309
- - :id: us_core_v700_ballot_vital_signs_patient_category_status_search_test
11310
- :file_name: vital_signs_patient_category_status_search_test.rb
11311
- - :id: us_core_v700_ballot_vital_signs_patient_code_date_search_test
11312
- :file_name: vital_signs_patient_code_date_search_test.rb
11313
- - :id: us_core_v700_ballot_vital_signs_read_test
11314
- :file_name: vital_signs_read_test.rb
11315
- - :id: us_core_v700_ballot_vital_signs_provenance_revinclude_search_test
11316
- :file_name: vital_signs_provenance_revinclude_search_test.rb
11317
- - :id: us_core_v700_ballot_vital_signs_validation_test
11318
- :file_name: vital_signs_validation_test.rb
11319
- - :id: us_core_v700_ballot_vital_signs_must_support_test
11320
- :file_name: vital_signs_must_support_test.rb
11321
- - :id: us_core_v700_ballot_vital_signs_reference_resolution_test
11322
- :file_name: vital_signs_reference_resolution_test.rb
11323
- :id: us_core_v700_ballot_vital_signs
11324
- :file_name: vital_signs_group.rb
11325
- :delayed_references: []
11326
11076
  - :name: us_core_organization
11327
11077
  :class_name: USCorev700_ballotOrganizationSequence
11328
11078
  :version: v7.0.0-ballot
@@ -11666,7 +11416,7 @@
11666
11416
  - :path: name.given
11667
11417
  - :path: name.suffix
11668
11418
  :uscdi_only: true
11669
- - :path: name.period
11419
+ - :path: name.period.end
11670
11420
  :uscdi_only: true
11671
11421
  - :path: telecom
11672
11422
  :uscdi_only: true
@@ -11689,7 +11439,7 @@
11689
11439
  - :path: address.city
11690
11440
  - :path: address.state
11691
11441
  - :path: address.postalCode
11692
- - :path: address.period
11442
+ - :path: address.period.end
11693
11443
  :uscdi_only: true
11694
11444
  - :path: communication
11695
11445
  :uscdi_only: true
@@ -12152,6 +11902,21 @@
12152
11902
  - :path: PractitionerRole.endpoint
12153
11903
  :profiles:
12154
11904
  - http://hl7.org/fhir/StructureDefinition/Endpoint
11905
+ :tests:
11906
+ - :id: us_core_v700_ballot_practitioner_role_read_test
11907
+ :file_name: practitioner_role_read_test.rb
11908
+ - :id: us_core_v700_ballot_practitioner_role_practitioner_search_test
11909
+ :file_name: practitioner_role_practitioner_search_test.rb
11910
+ - :id: us_core_v700_ballot_practitioner_role_specialty_search_test
11911
+ :file_name: practitioner_role_specialty_search_test.rb
11912
+ - :id: us_core_v700_ballot_practitioner_role_validation_test
11913
+ :file_name: practitioner_role_validation_test.rb
11914
+ - :id: us_core_v700_ballot_practitioner_role_must_support_test
11915
+ :file_name: practitioner_role_must_support_test.rb
11916
+ - :id: us_core_v700_ballot_practitioner_role_reference_resolution_test
11917
+ :file_name: practitioner_role_reference_resolution_test.rb
11918
+ :id: us_core_v700_ballot_practitioner_role
11919
+ :file_name: practitioner_role_group.rb
12155
11920
  :delayed_references:
12156
11921
  - :path: practitioner
12157
11922
  :resources:
@@ -200,7 +200,7 @@
200
200
  - :path: name.given
201
201
  - :path: name.suffix
202
202
  :uscdi_only: true
203
- - :path: name.period
203
+ - :path: name.period.end
204
204
  :uscdi_only: true
205
205
  - :path: telecom
206
206
  :uscdi_only: true
@@ -223,7 +223,7 @@
223
223
  - :path: address.city
224
224
  - :path: address.state
225
225
  - :path: address.postalCode
226
- - :path: address.period
226
+ - :path: address.period.end
227
227
  :uscdi_only: true
228
228
  - :path: communication
229
229
  :uscdi_only: true
@@ -28,7 +28,6 @@ module USCoreTestKit
28
28
 
29
29
  For ONC USCDI requirements, each Patient must support the following additional elements:
30
30
 
31
- * Patient.address.period
32
31
  * Patient.address.period.end or Patient.address.use
33
32
  * Patient.communication
34
33
  * Patient.communication.language
@@ -38,7 +37,6 @@ module USCoreTestKit
38
37
  * Patient.extension:race
39
38
  * Patient.extension:sex
40
39
  * Patient.extension:tribalAffiliation
41
- * Patient.name.period
42
40
  * Patient.name.period.end or Patient.name.use
43
41
  * Patient.name.suffix
44
42
  * Patient.telecom