davinci_pas_test_kit 0.9.0 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/davinci_pas_test_kit/client_suite.rb +1 -169
  3. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/{claim_status/pas_claim_status_test.rb → claim_response_decision/pas_claim_response_decision_test.rb} +10 -27
  4. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_approval_submit_response_attest.rb +1 -0
  5. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_client_must_support_requirement_test.rb +1 -1
  6. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb +4 -1
  7. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb +40 -0
  8. data/lib/davinci_pas_test_kit/docs/client_suite_description_v201.md +172 -0
  9. data/lib/davinci_pas_test_kit/docs/server_suite_description_v201.md +150 -0
  10. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/client_inquiry_request_beneficiary_must_support_test.rb +5 -1
  11. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/client_submit_request_beneficiary_must_support_test.rb +5 -1
  12. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_inquiry_request_beneficiary_must_support_test.rb +7 -1
  13. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_inquiry_response_beneficiary_must_support_test.rb +5 -1
  14. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_submit_request_beneficiary_must_support_test.rb +7 -1
  15. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_submit_response_beneficiary_must_support_test.rb +5 -1
  16. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim/claim_operation_test.rb +1 -1
  17. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/claim_inquiry_operation_test.rb +1 -1
  18. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/client_inquiry_request_claim_inquiry_must_support_test.rb +5 -1
  19. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/server_inquiry_request_claim_inquiry_must_support_test.rb +7 -1
  20. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/client_submit_request_claim_update_must_support_test.rb +5 -1
  21. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/server_submit_request_claim_update_must_support_test.rb +7 -1
  22. data/lib/davinci_pas_test_kit/generated/v2.0.1/claiminquiryresponse/server_inquiry_response_claiminquiryresponse_must_support_test.rb +5 -1
  23. data/lib/davinci_pas_test_kit/generated/v2.0.1/claimresponse/server_submit_response_claimresponse_must_support_test.rb +5 -1
  24. data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_denial_pas_response_bundle_validation_test.rb +3 -0
  25. data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_pended_pas_response_bundle_validation_test.rb +3 -0
  26. data/lib/davinci_pas_test_kit/generated/v2.0.1/communication_request/server_submit_response_communication_request_must_support_test.rb +5 -1
  27. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/client_inquiry_request_coverage_must_support_test.rb +5 -1
  28. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/client_submit_request_coverage_must_support_test.rb +5 -1
  29. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/server_inquiry_request_coverage_must_support_test.rb +7 -1
  30. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/server_submit_request_coverage_must_support_test.rb +7 -1
  31. data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/client_submit_request_device_request_must_support_test.rb +5 -1
  32. data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/server_submit_request_device_request_must_support_test.rb +7 -1
  33. data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/client_submit_request_encounter_must_support_test.rb +5 -1
  34. data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/server_submit_request_encounter_must_support_test.rb +7 -1
  35. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/client_inquiry_request_insurer_must_support_test.rb +5 -1
  36. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/client_submit_request_insurer_must_support_test.rb +5 -1
  37. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_inquiry_request_insurer_must_support_test.rb +7 -1
  38. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_inquiry_response_insurer_must_support_test.rb +5 -1
  39. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_submit_request_insurer_must_support_test.rb +7 -1
  40. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_submit_response_insurer_must_support_test.rb +5 -1
  41. data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/client_submit_request_medication_request_must_support_test.rb +5 -1
  42. data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/server_submit_request_medication_request_must_support_test.rb +7 -1
  43. data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/client_submit_request_nutrition_order_must_support_test.rb +5 -1
  44. data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/server_submit_request_nutrition_order_must_support_test.rb +7 -1
  45. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_request_bundle/client_inquiry_request_pas_inquiry_request_bundle_must_support_test.rb +5 -1
  46. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_request_bundle/server_inquiry_request_pas_inquiry_request_bundle_must_support_test.rb +7 -1
  47. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_request_bundle/server_pas_inquiry_request_bundle_validation_test.rb +4 -0
  48. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_response_bundle/server_inquiry_response_pas_inquiry_response_bundle_must_support_test.rb +5 -1
  49. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_response_bundle/server_pas_inquiry_response_bundle_validation_test.rb +1 -0
  50. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/client_submit_request_pas_request_bundle_must_support_test.rb +5 -1
  51. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/server_pas_request_bundle_validation_test.rb +4 -0
  52. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/server_submit_request_pas_request_bundle_must_support_test.rb +7 -1
  53. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_response_bundle/server_pas_response_bundle_validation_test.rb +1 -0
  54. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_response_bundle/server_submit_response_pas_response_bundle_must_support_test.rb +5 -1
  55. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_approval_use_case_group.rb +3 -7
  56. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_denial_use_case_group.rb +3 -7
  57. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_must_support_use_case_group.rb +2 -2
  58. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_pended_use_case_group.rb +6 -8
  59. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/client_inquiry_request_practitioner_must_support_test.rb +5 -1
  60. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/client_submit_request_practitioner_must_support_test.rb +5 -1
  61. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_inquiry_request_practitioner_must_support_test.rb +7 -1
  62. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_inquiry_response_practitioner_must_support_test.rb +5 -1
  63. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_submit_request_practitioner_must_support_test.rb +7 -1
  64. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_submit_response_practitioner_must_support_test.rb +5 -1
  65. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/client_inquiry_request_practitioner_role_must_support_test.rb +5 -1
  66. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/client_submit_request_practitioner_role_must_support_test.rb +5 -1
  67. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_inquiry_request_practitioner_role_must_support_test.rb +7 -1
  68. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_inquiry_response_practitioner_role_must_support_test.rb +5 -1
  69. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_submit_request_practitioner_role_must_support_test.rb +7 -1
  70. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_submit_response_practitioner_role_must_support_test.rb +5 -1
  71. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/client_inquiry_request_requestor_must_support_test.rb +5 -1
  72. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/client_submit_request_requestor_must_support_test.rb +5 -1
  73. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_inquiry_request_requestor_must_support_test.rb +7 -1
  74. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_inquiry_response_requestor_must_support_test.rb +5 -1
  75. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_submit_request_requestor_must_support_test.rb +7 -1
  76. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_submit_response_requestor_must_support_test.rb +5 -1
  77. data/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb +2 -153
  78. data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/client_submit_request_service_request_must_support_test.rb +5 -1
  79. data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/server_submit_request_service_request_must_support_test.rb +7 -1
  80. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/client_inquiry_request_subscriber_must_support_test.rb +5 -1
  81. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/client_submit_request_subscriber_must_support_test.rb +5 -1
  82. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/server_inquiry_request_subscriber_must_support_test.rb +7 -1
  83. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/server_submit_request_subscriber_must_support_test.rb +7 -1
  84. data/lib/davinci_pas_test_kit/generated/v2.0.1/task/server_inquiry_response_task_must_support_test.rb +5 -1
  85. data/lib/davinci_pas_test_kit/generated/v2.0.1/task/server_submit_response_task_must_support_test.rb +5 -1
  86. data/lib/davinci_pas_test_kit/generator/group_generator.rb +26 -13
  87. data/lib/davinci_pas_test_kit/generator/operation_test_generator.rb +1 -1
  88. data/lib/davinci_pas_test_kit/generator/validation_test_generator.rb +9 -0
  89. data/lib/davinci_pas_test_kit/mock_server.rb +21 -3
  90. data/lib/davinci_pas_test_kit/must_support_test.rb +6 -2
  91. data/lib/davinci_pas_test_kit/pas_bundle_validation.rb +1 -1
  92. data/lib/davinci_pas_test_kit/version.rb +1 -1
  93. metadata +6 -3
@@ -53,6 +53,10 @@ module DaVinciPASTestKit
53
53
  'Patient'
54
54
  end
55
55
 
56
+ def user_input_validation
57
+ false
58
+ end
59
+
56
60
  def self.metadata
57
61
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
62
  end
@@ -68,7 +72,7 @@ module DaVinciPASTestKit
68
72
 
69
73
  run do
70
74
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
75
+ validate_must_support(user_input_validation)
72
76
  end
73
77
  end
74
78
  end
@@ -53,6 +53,10 @@ module DaVinciPASTestKit
53
53
  'Patient'
54
54
  end
55
55
 
56
+ def user_input_validation
57
+ false
58
+ end
59
+
56
60
  def self.metadata
57
61
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
62
  end
@@ -68,7 +72,7 @@ module DaVinciPASTestKit
68
72
 
69
73
  run do
70
74
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
75
+ validate_must_support(user_input_validation)
72
76
  end
73
77
  end
74
78
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Beneficiary Patient are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Beneficiary Patient Profile.
@@ -53,6 +55,10 @@ module DaVinciPASTestKit
53
55
  'Patient'
54
56
  end
55
57
 
58
+ def user_input_validation
59
+ true
60
+ end
61
+
56
62
  def self.metadata
57
63
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
64
  end
@@ -68,7 +74,7 @@ module DaVinciPASTestKit
68
74
 
69
75
  run do
70
76
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
77
+ validate_must_support(user_input_validation)
72
78
  end
73
79
  end
74
80
  end
@@ -53,6 +53,10 @@ module DaVinciPASTestKit
53
53
  'Patient'
54
54
  end
55
55
 
56
+ def user_input_validation
57
+ false
58
+ end
59
+
56
60
  def self.metadata
57
61
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
62
  end
@@ -68,7 +72,7 @@ module DaVinciPASTestKit
68
72
 
69
73
  run do
70
74
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
75
+ validate_must_support(user_input_validation)
72
76
  end
73
77
  end
74
78
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Beneficiary Patient are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Beneficiary Patient Profile.
@@ -53,6 +55,10 @@ module DaVinciPASTestKit
53
55
  'Patient'
54
56
  end
55
57
 
58
+ def user_input_validation
59
+ true
60
+ end
61
+
56
62
  def self.metadata
57
63
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
64
  end
@@ -68,7 +74,7 @@ module DaVinciPASTestKit
68
74
 
69
75
  run do
70
76
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
77
+ validate_must_support(user_input_validation)
72
78
  end
73
79
  end
74
80
  end
@@ -53,6 +53,10 @@ module DaVinciPASTestKit
53
53
  'Patient'
54
54
  end
55
55
 
56
+ def user_input_validation
57
+ false
58
+ end
59
+
56
60
  def self.metadata
57
61
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
62
  end
@@ -68,7 +72,7 @@ module DaVinciPASTestKit
68
72
 
69
73
  run do
70
74
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
75
+ validate_must_support(user_input_validation)
72
76
  end
73
77
  end
74
78
  end
@@ -3,7 +3,7 @@ module DaVinciPASTestKit
3
3
  class ClaimOperationTest < Inferno::Test
4
4
 
5
5
  id :pas_v201_claim_operation_test
6
- title 'Claim/$submit Operation Test'
6
+ title 'Submission of a claim to the $submit operation succeeds'
7
7
  description %(
8
8
  Server SHALL support PAS Submit requests: a POST interaction to
9
9
  the /Claim/$submit endpoint.
@@ -3,7 +3,7 @@ module DaVinciPASTestKit
3
3
  class ClaimInquiryOperationTest < Inferno::Test
4
4
 
5
5
  id :pas_v201_claim_inquiry_operation_test
6
- title 'Claim/$inquire Operation Test'
6
+ title 'Submission of a claim to the $inquire operation succeeds'
7
7
  description %(
8
8
  Server SHALL support PAS Inquiry requests: a POST interaction to
9
9
  the /Claim/$inquire endpoint.
@@ -73,6 +73,10 @@ module DaVinciPASTestKit
73
73
  'Claim'
74
74
  end
75
75
 
76
+ def user_input_validation
77
+ false
78
+ end
79
+
76
80
  def self.metadata
77
81
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
78
82
  end
@@ -88,7 +92,7 @@ module DaVinciPASTestKit
88
92
 
89
93
  run do
90
94
  perform_must_support_test(resources_of_interest)
91
- validate_must_support
95
+ validate_must_support(user_input_validation)
92
96
  end
93
97
  end
94
98
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Claim Inquiry are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Claim Inquiry Profile.
@@ -73,6 +75,10 @@ module DaVinciPASTestKit
73
75
  'Claim'
74
76
  end
75
77
 
78
+ def user_input_validation
79
+ true
80
+ end
81
+
76
82
  def self.metadata
77
83
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
78
84
  end
@@ -88,7 +94,7 @@ module DaVinciPASTestKit
88
94
 
89
95
  run do
90
96
  perform_must_support_test(resources_of_interest)
91
- validate_must_support
97
+ validate_must_support(user_input_validation)
92
98
  end
93
99
  end
94
100
  end
@@ -80,6 +80,10 @@ module DaVinciPASTestKit
80
80
  'Claim'
81
81
  end
82
82
 
83
+ def user_input_validation
84
+ false
85
+ end
86
+
83
87
  def self.metadata
84
88
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
85
89
  end
@@ -95,7 +99,7 @@ module DaVinciPASTestKit
95
99
 
96
100
  run do
97
101
  perform_must_support_test(resources_of_interest)
98
- validate_must_support
102
+ validate_must_support(user_input_validation)
99
103
  end
100
104
  end
101
105
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Claim Update are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Claim Update Profile.
@@ -80,6 +82,10 @@ module DaVinciPASTestKit
80
82
  'Claim'
81
83
  end
82
84
 
85
+ def user_input_validation
86
+ true
87
+ end
88
+
83
89
  def self.metadata
84
90
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
85
91
  end
@@ -95,7 +101,7 @@ module DaVinciPASTestKit
95
101
 
96
102
  run do
97
103
  perform_must_support_test(resources_of_interest)
98
- validate_must_support
104
+ validate_must_support(user_input_validation)
99
105
  end
100
106
  end
101
107
  end
@@ -51,6 +51,10 @@ module DaVinciPASTestKit
51
51
  'ClaimResponse'
52
52
  end
53
53
 
54
+ def user_input_validation
55
+ false
56
+ end
57
+
54
58
  def self.metadata
55
59
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
56
60
  end
@@ -66,7 +70,7 @@ module DaVinciPASTestKit
66
70
 
67
71
  run do
68
72
  perform_must_support_test(resources_of_interest)
69
- validate_must_support
73
+ validate_must_support(user_input_validation)
70
74
  end
71
75
  end
72
76
  end
@@ -53,6 +53,10 @@ module DaVinciPASTestKit
53
53
  'ClaimResponse'
54
54
  end
55
55
 
56
+ def user_input_validation
57
+ false
58
+ end
59
+
56
60
  def self.metadata
57
61
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
58
62
  end
@@ -68,7 +72,7 @@ module DaVinciPASTestKit
68
72
 
69
73
  run do
70
74
  perform_must_support_test(resources_of_interest)
71
- validate_must_support
75
+ validate_must_support(user_input_validation)
72
76
  end
73
77
  end
74
78
  end
@@ -10,6 +10,9 @@ module DaVinciPASTestKit
10
10
  id :pas_client_v201_denial_pas_response_bundle_validation_test
11
11
  title '[USER INPUT VALIDATION] Response Bundle is valid'
12
12
  description %(
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test.
14
+ Errors encountered will be treated as a skip instead of a failure.
15
+
13
16
  This test validates the conformity of the
14
17
  user input to the
15
18
  [PAS Response Bundle](http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-response-bundle) structure.
@@ -10,6 +10,9 @@ module DaVinciPASTestKit
10
10
  id :pas_client_v201_pended_pas_response_bundle_validation_test
11
11
  title '[USER INPUT VALIDATION] Response Bundle is valid'
12
12
  description %(
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test.
14
+ Errors encountered will be treated as a skip instead of a failure.
15
+
13
16
  This test validates the conformity of the
14
17
  user input to the
15
18
  [PAS Response Bundle](http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-response-bundle) structure.
@@ -36,6 +36,10 @@ module DaVinciPASTestKit
36
36
  'CommunicationRequest'
37
37
  end
38
38
 
39
+ def user_input_validation
40
+ false
41
+ end
42
+
39
43
  def self.metadata
40
44
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
41
45
  end
@@ -51,7 +55,7 @@ module DaVinciPASTestKit
51
55
 
52
56
  run do
53
57
  perform_must_support_test(resources_of_interest)
54
- validate_must_support
58
+ validate_must_support(user_input_validation)
55
59
  end
56
60
  end
57
61
  end
@@ -33,6 +33,10 @@ module DaVinciPASTestKit
33
33
  'Coverage'
34
34
  end
35
35
 
36
+ def user_input_validation
37
+ false
38
+ end
39
+
36
40
  def self.metadata
37
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
38
42
  end
@@ -48,7 +52,7 @@ module DaVinciPASTestKit
48
52
 
49
53
  run do
50
54
  perform_must_support_test(resources_of_interest)
51
- validate_must_support
55
+ validate_must_support(user_input_validation)
52
56
  end
53
57
  end
54
58
  end
@@ -33,6 +33,10 @@ module DaVinciPASTestKit
33
33
  'Coverage'
34
34
  end
35
35
 
36
+ def user_input_validation
37
+ false
38
+ end
39
+
36
40
  def self.metadata
37
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
38
42
  end
@@ -48,7 +52,7 @@ module DaVinciPASTestKit
48
52
 
49
53
  run do
50
54
  perform_must_support_test(resources_of_interest)
51
- validate_must_support
55
+ validate_must_support(user_input_validation)
52
56
  end
53
57
  end
54
58
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Coverage are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Coverage Profile.
@@ -33,6 +35,10 @@ module DaVinciPASTestKit
33
35
  'Coverage'
34
36
  end
35
37
 
38
+ def user_input_validation
39
+ true
40
+ end
41
+
36
42
  def self.metadata
37
43
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
38
44
  end
@@ -48,7 +54,7 @@ module DaVinciPASTestKit
48
54
 
49
55
  run do
50
56
  perform_must_support_test(resources_of_interest)
51
- validate_must_support
57
+ validate_must_support(user_input_validation)
52
58
  end
53
59
  end
54
60
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Coverage are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Coverage Profile.
@@ -33,6 +35,10 @@ module DaVinciPASTestKit
33
35
  'Coverage'
34
36
  end
35
37
 
38
+ def user_input_validation
39
+ true
40
+ end
41
+
36
42
  def self.metadata
37
43
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
38
44
  end
@@ -48,7 +54,7 @@ module DaVinciPASTestKit
48
54
 
49
55
  run do
50
56
  perform_must_support_test(resources_of_interest)
51
- validate_must_support
57
+ validate_must_support(user_input_validation)
52
58
  end
53
59
  end
54
60
  end
@@ -29,6 +29,10 @@ module DaVinciPASTestKit
29
29
  'DeviceRequest'
30
30
  end
31
31
 
32
+ def user_input_validation
33
+ false
34
+ end
35
+
32
36
  def self.metadata
33
37
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
38
  end
@@ -44,7 +48,7 @@ module DaVinciPASTestKit
44
48
 
45
49
  run do
46
50
  perform_must_support_test(resources_of_interest)
47
- validate_must_support
51
+ validate_must_support(user_input_validation)
48
52
  end
49
53
  end
50
54
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Device Request are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Device Request Profile.
@@ -29,6 +31,10 @@ module DaVinciPASTestKit
29
31
  'DeviceRequest'
30
32
  end
31
33
 
34
+ def user_input_validation
35
+ true
36
+ end
37
+
32
38
  def self.metadata
33
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
40
  end
@@ -44,7 +50,7 @@ module DaVinciPASTestKit
44
50
 
45
51
  run do
46
52
  perform_must_support_test(resources_of_interest)
47
- validate_must_support
53
+ validate_must_support(user_input_validation)
48
54
  end
49
55
  end
50
56
  end
@@ -45,6 +45,10 @@ module DaVinciPASTestKit
45
45
  'Encounter'
46
46
  end
47
47
 
48
+ def user_input_validation
49
+ false
50
+ end
51
+
48
52
  def self.metadata
49
53
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
50
54
  end
@@ -60,7 +64,7 @@ module DaVinciPASTestKit
60
64
 
61
65
  run do
62
66
  perform_must_support_test(resources_of_interest)
63
- validate_must_support
67
+ validate_must_support(user_input_validation)
64
68
  end
65
69
  end
66
70
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Encounter are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Encounter Profile.
@@ -45,6 +47,10 @@ module DaVinciPASTestKit
45
47
  'Encounter'
46
48
  end
47
49
 
50
+ def user_input_validation
51
+ true
52
+ end
53
+
48
54
  def self.metadata
49
55
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
50
56
  end
@@ -60,7 +66,7 @@ module DaVinciPASTestKit
60
66
 
61
67
  run do
62
68
  perform_must_support_test(resources_of_interest)
63
- validate_must_support
69
+ validate_must_support(user_input_validation)
64
70
  end
65
71
  end
66
72
  end
@@ -38,6 +38,10 @@ module DaVinciPASTestKit
38
38
  'Organization'
39
39
  end
40
40
 
41
+ def user_input_validation
42
+ false
43
+ end
44
+
41
45
  def self.metadata
42
46
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
43
47
  end
@@ -53,7 +57,7 @@ module DaVinciPASTestKit
53
57
 
54
58
  run do
55
59
  perform_must_support_test(resources_of_interest)
56
- validate_must_support
60
+ validate_must_support(user_input_validation)
57
61
  end
58
62
  end
59
63
  end
@@ -38,6 +38,10 @@ module DaVinciPASTestKit
38
38
  'Organization'
39
39
  end
40
40
 
41
+ def user_input_validation
42
+ false
43
+ end
44
+
41
45
  def self.metadata
42
46
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
43
47
  end
@@ -53,7 +57,7 @@ module DaVinciPASTestKit
53
57
 
54
58
  run do
55
59
  perform_must_support_test(resources_of_interest)
56
- validate_must_support
60
+ validate_must_support(user_input_validation)
57
61
  end
58
62
  end
59
63
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Insurer Organization are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Insurer Organization Profile.
@@ -38,6 +40,10 @@ module DaVinciPASTestKit
38
40
  'Organization'
39
41
  end
40
42
 
43
+ def user_input_validation
44
+ true
45
+ end
46
+
41
47
  def self.metadata
42
48
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
43
49
  end
@@ -53,7 +59,7 @@ module DaVinciPASTestKit
53
59
 
54
60
  run do
55
61
  perform_must_support_test(resources_of_interest)
56
- validate_must_support
62
+ validate_must_support(user_input_validation)
57
63
  end
58
64
  end
59
65
  end
@@ -38,6 +38,10 @@ module DaVinciPASTestKit
38
38
  'Organization'
39
39
  end
40
40
 
41
+ def user_input_validation
42
+ false
43
+ end
44
+
41
45
  def self.metadata
42
46
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
43
47
  end
@@ -53,7 +57,7 @@ module DaVinciPASTestKit
53
57
 
54
58
  run do
55
59
  perform_must_support_test(resources_of_interest)
56
- validate_must_support
60
+ validate_must_support(user_input_validation)
57
61
  end
58
62
  end
59
63
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Insurer Organization are observed across all instances submitted'
11
11
  description %(
12
12
 
13
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test. Errors encountered will be treated as a skip instead of a failure.
14
+
13
15
  PAS server systems are required to be able to receive all
14
16
  must support elements on instances of all profiles included in
15
17
  requests, including instances of the PAS Insurer Organization Profile.
@@ -38,6 +40,10 @@ module DaVinciPASTestKit
38
40
  'Organization'
39
41
  end
40
42
 
43
+ def user_input_validation
44
+ true
45
+ end
46
+
41
47
  def self.metadata
42
48
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
43
49
  end
@@ -53,7 +59,7 @@ module DaVinciPASTestKit
53
59
 
54
60
  run do
55
61
  perform_must_support_test(resources_of_interest)
56
- validate_must_support
62
+ validate_must_support(user_input_validation)
57
63
  end
58
64
  end
59
65
  end