us_core_test_kit 0.6.3 → 0.6.4

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 (144) 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/generated/v3.1.1/metadata.yml +10 -0
  4. data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +10 -0
  5. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +10 -0
  6. data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +10 -0
  7. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +21 -2
  8. data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +6 -2
  9. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/metadata.yml +155 -0
  10. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  11. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  12. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_read_test.rb +26 -0
  13. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  14. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  15. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_validation_test.rb +40 -0
  16. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role_group.rb +89 -0
  17. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +2 -0
  18. data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +17 -2
  19. data/lib/us_core_test_kit/generated/v6.1.0/patient/metadata.yml +2 -2
  20. data/lib/us_core_test_kit/generated/v6.1.0/patient/patient_must_support_test.rb +0 -2
  21. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/metadata.yml +155 -0
  22. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  23. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  24. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_read_test.rb +26 -0
  25. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  26. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  27. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_validation_test.rb +40 -0
  28. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role_group.rb +89 -0
  29. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +2 -0
  30. 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
  31. 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
  32. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_search_test.rb +52 -0
  33. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_state_search_test.rb +43 -0
  34. 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
  35. 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
  36. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_read_test.rb +26 -0
  37. 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
  38. 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
  39. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/metadata.yml +194 -0
  40. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location_group.rb +93 -0
  41. data/lib/us_core_test_kit/generated/v7.0.0-ballot/metadata.yml +38 -273
  42. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/metadata.yml +2 -2
  43. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/patient_must_support_test.rb +0 -2
  44. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/metadata.yml +160 -0
  45. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  46. 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
  47. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_read_test.rb +26 -0
  48. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  49. 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
  50. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_validation_test.rb +40 -0
  51. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role_group.rb +89 -0
  52. data/lib/us_core_test_kit/generated/v7.0.0-ballot/us_core_test_suite.rb +4 -2
  53. data/lib/us_core_test_kit/generator/group_generator.rb +2 -2
  54. data/lib/us_core_test_kit/generator/group_metadata.rb +3 -1
  55. data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +8 -1
  56. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_3.rb +64 -18
  57. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +1 -18
  58. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +0 -15
  59. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +5 -2
  60. data/lib/us_core_test_kit/generator/special_cases.rb +17 -7
  61. data/lib/us_core_test_kit/granular_scope_checker.rb +1 -1
  62. data/lib/us_core_test_kit/version.rb +1 -1
  63. metadata +37 -91
  64. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  65. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  66. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
  67. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  68. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  69. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  70. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  71. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  72. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  73. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  74. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope1_group.rb +0 -38
  75. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope2_group.rb +0 -38
  76. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
  77. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  78. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
  79. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  80. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  81. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  82. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  83. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  84. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  85. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  86. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  87. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  88. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  89. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope1_group.rb +0 -39
  90. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope2_group.rb +0 -39
  91. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  92. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  93. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  94. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  95. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  96. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_id_granular_scope_test.rb +0 -41
  97. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  98. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  99. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  100. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  101. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_granular_scope_test.rb +0 -45
  102. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  103. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope1_group.rb +0 -39
  104. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope2_group.rb +0 -40
  105. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  106. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  107. 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
  108. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  109. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  110. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_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_code_granular_scope_test.rb +0 -45
  112. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  113. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  114. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  115. 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
  116. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  117. 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
  118. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  119. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  120. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  121. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  122. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  123. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  124. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  125. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  126. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  127. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  128. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference_granular_scope2_group.rb +0 -39
  129. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  130. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  131. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  132. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  133. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  134. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_id_granular_scope_test.rb +0 -41
  135. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  136. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  137. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  138. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  139. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_granular_scope_test.rb +0 -45
  140. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  141. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/metadata.yml +0 -273
  142. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_provenance_revinclude_search_test.rb +0 -53
  143. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_read_test.rb +0 -26
  144. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs_group.rb +0 -96
@@ -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
@@ -0,0 +1,160 @@
1
+ ---
2
+ :name: us_core_practitionerrole
3
+ :class_name: USCorev700_ballotPractitionerroleSequence
4
+ :version: v7.0.0-ballot
5
+ :reformatted_version: v700_ballot
6
+ :resource: PractitionerRole
7
+ :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole
8
+ :profile_name: US Core PractitionerRole Profile
9
+ :profile_version: 7.0.0-ballot
10
+ :title: PractitionerRole
11
+ :short_description: Verify support for the server capabilities required by the US
12
+ Core PractitionerRole 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
+ - practitioner
37
+ :expectation: SHALL
38
+ :names_not_must_support_or_mandatory: []
39
+ :must_support_or_mandatory: true
40
+ - :names:
41
+ - specialty
42
+ :expectation: SHALL
43
+ :names_not_must_support_or_mandatory: []
44
+ :must_support_or_mandatory: true
45
+ :search_definitions:
46
+ :practitioner:
47
+ :paths:
48
+ - practitioner
49
+ :full_paths:
50
+ - PractitionerRole.practitioner
51
+ :comparators: {}
52
+ :values: []
53
+ :type: Reference
54
+ :contains_multiple: false
55
+ :multiple_or: MAY
56
+ :chain:
57
+ - :chain: identifier
58
+ :expectation: SHALL
59
+ - :chain: name
60
+ :expectation: SHALL
61
+ :specialty:
62
+ :paths:
63
+ - specialty
64
+ :full_paths:
65
+ - PractitionerRole.specialty
66
+ :comparators: {}
67
+ :values: []
68
+ :type: CodeableConcept
69
+ :contains_multiple: true
70
+ :multiple_or: MAY
71
+ :include_params:
72
+ - PractitionerRole:endpoint
73
+ - PractitionerRole:practitioner
74
+ :revincludes: []
75
+ :required_concepts: []
76
+ :must_supports:
77
+ :extensions: []
78
+ :slices: []
79
+ :elements:
80
+ - :path: practitioner
81
+ :types:
82
+ - Reference
83
+ :target_profiles:
84
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
85
+ - :path: organization
86
+ :types:
87
+ - Reference
88
+ :target_profiles:
89
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
90
+ - :path: code
91
+ - :path: specialty
92
+ - :path: location
93
+ :types:
94
+ - Reference
95
+ :target_profiles:
96
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-location
97
+ - :path: telecom
98
+ - :path: telecom.system
99
+ - :path: telecom.value
100
+ - :path: endpoint
101
+ :types:
102
+ - Reference
103
+ :mandatory_elements:
104
+ - PractitionerRole.telecom.system
105
+ - PractitionerRole.telecom.value
106
+ - PractitionerRole.notAvailable.description
107
+ :bindings:
108
+ - :type: code
109
+ :strength: required
110
+ :system: http://hl7.org/fhir/ValueSet/contact-point-system
111
+ :path: telecom.system
112
+ - :type: code
113
+ :strength: required
114
+ :system: http://hl7.org/fhir/ValueSet/contact-point-use
115
+ :path: telecom.use
116
+ - :type: code
117
+ :strength: required
118
+ :system: http://hl7.org/fhir/ValueSet/days-of-week
119
+ :path: availableTime.daysOfWeek
120
+ :references:
121
+ - :path: PractitionerRole.practitioner
122
+ :profiles:
123
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
124
+ - :path: PractitionerRole.organization
125
+ :profiles:
126
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization
127
+ - :path: PractitionerRole.location
128
+ :profiles:
129
+ - http://hl7.org/fhir/us/core/StructureDefinition/us-core-location
130
+ - :path: PractitionerRole.healthcareService
131
+ :profiles:
132
+ - http://hl7.org/fhir/StructureDefinition/HealthcareService
133
+ - :path: PractitionerRole.endpoint
134
+ :profiles:
135
+ - http://hl7.org/fhir/StructureDefinition/Endpoint
136
+ :tests:
137
+ - :id: us_core_v700_ballot_practitioner_role_read_test
138
+ :file_name: practitioner_role_read_test.rb
139
+ - :id: us_core_v700_ballot_practitioner_role_practitioner_search_test
140
+ :file_name: practitioner_role_practitioner_search_test.rb
141
+ - :id: us_core_v700_ballot_practitioner_role_specialty_search_test
142
+ :file_name: practitioner_role_specialty_search_test.rb
143
+ - :id: us_core_v700_ballot_practitioner_role_validation_test
144
+ :file_name: practitioner_role_validation_test.rb
145
+ - :id: us_core_v700_ballot_practitioner_role_must_support_test
146
+ :file_name: practitioner_role_must_support_test.rb
147
+ - :id: us_core_v700_ballot_practitioner_role_reference_resolution_test
148
+ :file_name: practitioner_role_reference_resolution_test.rb
149
+ :id: us_core_v700_ballot_practitioner_role
150
+ :file_name: practitioner_role_group.rb
151
+ :delayed_references:
152
+ - :path: practitioner
153
+ :resources:
154
+ - Practitioner
155
+ - :path: organization
156
+ :resources:
157
+ - Organization
158
+ - :path: location
159
+ :resources:
160
+ - Location
@@ -0,0 +1,45 @@
1
+ require_relative '../../../must_support_test'
2
+
3
+ module USCoreTestKit
4
+ module USCoreV700_BALLOT
5
+ class PractitionerRoleMustSupportTest < Inferno::Test
6
+ include USCoreTestKit::MustSupportTest
7
+
8
+ title 'All must support elements are provided in the PractitionerRole resources returned'
9
+ description %(
10
+ US Core Responders SHALL be capable of populating all data elements as
11
+ part of the query results as specified by the US Core Server Capability
12
+ Statement. This test will look through the PractitionerRole resources
13
+ found previously for the following must support elements:
14
+
15
+ * PractitionerRole.code
16
+ * PractitionerRole.endpoint
17
+ * PractitionerRole.location
18
+ * PractitionerRole.organization
19
+ * PractitionerRole.practitioner
20
+ * PractitionerRole.specialty
21
+ * PractitionerRole.telecom
22
+ * PractitionerRole.telecom.system
23
+ * PractitionerRole.telecom.value
24
+ )
25
+
26
+ id :us_core_v700_ballot_practitioner_role_must_support_test
27
+
28
+ def resource_type
29
+ 'PractitionerRole'
30
+ end
31
+
32
+ def self.metadata
33
+ @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
+ end
35
+
36
+ def scratch_resources
37
+ scratch[:practitioner_role_resources] ||= {}
38
+ end
39
+
40
+ run do
41
+ perform_must_support_test(all_scratch_resources)
42
+ end
43
+ end
44
+ end
45
+ end