davinci_pas_test_kit 0.9.0 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) 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/must_support/pas_client_must_support_requirement_test.rb +1 -1
  5. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb +4 -1
  6. data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb +40 -0
  7. data/lib/davinci_pas_test_kit/docs/client_suite_description_v201.md +167 -0
  8. data/lib/davinci_pas_test_kit/docs/server_suite_description_v201.md +150 -0
  9. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/client_inquiry_request_beneficiary_must_support_test.rb +5 -1
  10. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/client_submit_request_beneficiary_must_support_test.rb +5 -1
  11. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_inquiry_request_beneficiary_must_support_test.rb +7 -1
  12. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_inquiry_response_beneficiary_must_support_test.rb +5 -1
  13. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_submit_request_beneficiary_must_support_test.rb +7 -1
  14. data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_submit_response_beneficiary_must_support_test.rb +5 -1
  15. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim/claim_operation_test.rb +1 -1
  16. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/claim_inquiry_operation_test.rb +1 -1
  17. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/client_inquiry_request_claim_inquiry_must_support_test.rb +5 -1
  18. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/server_inquiry_request_claim_inquiry_must_support_test.rb +7 -1
  19. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/client_submit_request_claim_update_must_support_test.rb +5 -1
  20. data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/server_submit_request_claim_update_must_support_test.rb +7 -1
  21. data/lib/davinci_pas_test_kit/generated/v2.0.1/claiminquiryresponse/server_inquiry_response_claiminquiryresponse_must_support_test.rb +5 -1
  22. data/lib/davinci_pas_test_kit/generated/v2.0.1/claimresponse/server_submit_response_claimresponse_must_support_test.rb +5 -1
  23. data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_denial_pas_response_bundle_validation_test.rb +3 -0
  24. data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_pended_pas_response_bundle_validation_test.rb +3 -0
  25. data/lib/davinci_pas_test_kit/generated/v2.0.1/communication_request/server_submit_response_communication_request_must_support_test.rb +5 -1
  26. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/client_inquiry_request_coverage_must_support_test.rb +5 -1
  27. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/client_submit_request_coverage_must_support_test.rb +5 -1
  28. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/server_inquiry_request_coverage_must_support_test.rb +7 -1
  29. data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/server_submit_request_coverage_must_support_test.rb +7 -1
  30. data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/client_submit_request_device_request_must_support_test.rb +5 -1
  31. data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/server_submit_request_device_request_must_support_test.rb +7 -1
  32. data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/client_submit_request_encounter_must_support_test.rb +5 -1
  33. data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/server_submit_request_encounter_must_support_test.rb +7 -1
  34. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/client_inquiry_request_insurer_must_support_test.rb +5 -1
  35. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/client_submit_request_insurer_must_support_test.rb +5 -1
  36. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_inquiry_request_insurer_must_support_test.rb +7 -1
  37. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_inquiry_response_insurer_must_support_test.rb +5 -1
  38. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_submit_request_insurer_must_support_test.rb +7 -1
  39. data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_submit_response_insurer_must_support_test.rb +5 -1
  40. data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/client_submit_request_medication_request_must_support_test.rb +5 -1
  41. data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/server_submit_request_medication_request_must_support_test.rb +7 -1
  42. data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/client_submit_request_nutrition_order_must_support_test.rb +5 -1
  43. data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/server_submit_request_nutrition_order_must_support_test.rb +7 -1
  44. 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
  45. 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
  46. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_request_bundle/server_pas_inquiry_request_bundle_validation_test.rb +4 -0
  47. 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
  48. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_response_bundle/server_pas_inquiry_response_bundle_validation_test.rb +1 -0
  49. 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
  50. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/server_pas_request_bundle_validation_test.rb +4 -0
  51. 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
  52. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_response_bundle/server_pas_response_bundle_validation_test.rb +1 -0
  53. 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
  54. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_approval_use_case_group.rb +3 -7
  55. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_denial_use_case_group.rb +3 -7
  56. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_must_support_use_case_group.rb +2 -2
  57. data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_pended_use_case_group.rb +6 -8
  58. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/client_inquiry_request_practitioner_must_support_test.rb +5 -1
  59. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/client_submit_request_practitioner_must_support_test.rb +5 -1
  60. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_inquiry_request_practitioner_must_support_test.rb +7 -1
  61. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_inquiry_response_practitioner_must_support_test.rb +5 -1
  62. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_submit_request_practitioner_must_support_test.rb +7 -1
  63. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_submit_response_practitioner_must_support_test.rb +5 -1
  64. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/client_inquiry_request_practitioner_role_must_support_test.rb +5 -1
  65. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/client_submit_request_practitioner_role_must_support_test.rb +5 -1
  66. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_inquiry_request_practitioner_role_must_support_test.rb +7 -1
  67. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_inquiry_response_practitioner_role_must_support_test.rb +5 -1
  68. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_submit_request_practitioner_role_must_support_test.rb +7 -1
  69. data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_submit_response_practitioner_role_must_support_test.rb +5 -1
  70. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/client_inquiry_request_requestor_must_support_test.rb +5 -1
  71. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/client_submit_request_requestor_must_support_test.rb +5 -1
  72. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_inquiry_request_requestor_must_support_test.rb +7 -1
  73. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_inquiry_response_requestor_must_support_test.rb +5 -1
  74. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_submit_request_requestor_must_support_test.rb +7 -1
  75. data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_submit_response_requestor_must_support_test.rb +5 -1
  76. data/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb +2 -153
  77. data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/client_submit_request_service_request_must_support_test.rb +5 -1
  78. data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/server_submit_request_service_request_must_support_test.rb +7 -1
  79. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/client_inquiry_request_subscriber_must_support_test.rb +5 -1
  80. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/client_submit_request_subscriber_must_support_test.rb +5 -1
  81. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/server_inquiry_request_subscriber_must_support_test.rb +7 -1
  82. data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/server_submit_request_subscriber_must_support_test.rb +7 -1
  83. data/lib/davinci_pas_test_kit/generated/v2.0.1/task/server_inquiry_response_task_must_support_test.rb +5 -1
  84. data/lib/davinci_pas_test_kit/generated/v2.0.1/task/server_submit_response_task_must_support_test.rb +5 -1
  85. data/lib/davinci_pas_test_kit/generator/group_generator.rb +26 -13
  86. data/lib/davinci_pas_test_kit/generator/operation_test_generator.rb +1 -1
  87. data/lib/davinci_pas_test_kit/generator/validation_test_generator.rb +9 -0
  88. data/lib/davinci_pas_test_kit/must_support_test.rb +6 -2
  89. data/lib/davinci_pas_test_kit/version.rb +1 -1
  90. metadata +6 -3
@@ -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
@@ -39,6 +39,10 @@ module DaVinciPASTestKit
39
39
  'MedicationRequest'
40
40
  end
41
41
 
42
+ def user_input_validation
43
+ false
44
+ end
45
+
42
46
  def self.metadata
43
47
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
44
48
  end
@@ -54,7 +58,7 @@ module DaVinciPASTestKit
54
58
 
55
59
  run do
56
60
  perform_must_support_test(resources_of_interest)
57
- validate_must_support
61
+ validate_must_support(user_input_validation)
58
62
  end
59
63
  end
60
64
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Medication 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 Medication Request Profile.
@@ -39,6 +41,10 @@ module DaVinciPASTestKit
39
41
  'MedicationRequest'
40
42
  end
41
43
 
44
+ def user_input_validation
45
+ true
46
+ end
47
+
42
48
  def self.metadata
43
49
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
44
50
  end
@@ -54,7 +60,7 @@ module DaVinciPASTestKit
54
60
 
55
61
  run do
56
62
  perform_must_support_test(resources_of_interest)
57
- validate_must_support
63
+ validate_must_support(user_input_validation)
58
64
  end
59
65
  end
60
66
  end
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'NutritionOrder'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Nutrition Order 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 Nutrition Order Profile.
@@ -31,6 +33,10 @@ module DaVinciPASTestKit
31
33
  'NutritionOrder'
32
34
  end
33
35
 
36
+ def user_input_validation
37
+ true
38
+ end
39
+
34
40
  def self.metadata
35
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
42
  end
@@ -46,7 +52,7 @@ module DaVinciPASTestKit
46
52
 
47
53
  run do
48
54
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
55
+ validate_must_support(user_input_validation)
50
56
  end
51
57
  end
52
58
  end
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'Bundle'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Inquiry Request Bundle 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 Inquiry Request Bundle Profile.
@@ -31,6 +33,10 @@ module DaVinciPASTestKit
31
33
  'Bundle'
32
34
  end
33
35
 
36
+ def user_input_validation
37
+ true
38
+ end
39
+
34
40
  def self.metadata
35
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
42
  end
@@ -46,7 +52,7 @@ module DaVinciPASTestKit
46
52
 
47
53
  run do
48
54
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
55
+ validate_must_support(user_input_validation)
50
56
  end
51
57
  end
52
58
  end
@@ -8,9 +8,13 @@ module DaVinciPASTestKit
8
8
  id :pas_server_v201_pas_inquiry_request_bundle_validation_test
9
9
  title '[USER INPUT VALIDATION] Inquiry Request Bundle is valid'
10
10
  description %(
11
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test.
12
+ Errors encountered will be treated as a skip instead of a failure.
13
+
11
14
  This test validates the conformity of the
12
15
  user input to the
13
16
  [PAS Inquiry Request Bundle](http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-inquiry-request-bundle) structure, ensuring subsequent tests can accurately simulate content.
17
+
14
18
  It also checks that other conformance requirements defined in the [PAS Formal
15
19
  Specification](https://hl7.org/fhir/us/davinci-pas/STU2/specification.html),
16
20
  such as the presence of all referenced instances within the bundle and the
@@ -30,6 +30,10 @@ module DaVinciPASTestKit
30
30
  'Bundle'
31
31
  end
32
32
 
33
+ def user_input_validation
34
+ false
35
+ end
36
+
33
37
  def self.metadata
34
38
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
35
39
  end
@@ -45,7 +49,7 @@ module DaVinciPASTestKit
45
49
 
46
50
  run do
47
51
  perform_must_support_test(resources_of_interest)
48
- validate_must_support
52
+ validate_must_support(user_input_validation)
49
53
  end
50
54
  end
51
55
  end
@@ -11,6 +11,7 @@ module DaVinciPASTestKit
11
11
  This test validates the conformity of the
12
12
  server's response to the
13
13
  [PAS Inquiry Response Bundle](http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-inquiry-response-bundle) structure.
14
+
14
15
  It also checks that other conformance requirements defined in the [PAS Formal
15
16
  Specification](https://hl7.org/fhir/us/davinci-pas/STU2/specification.html),
16
17
  such as the presence of all referenced instances within the bundle and the
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'Bundle'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -8,9 +8,13 @@ module DaVinciPASTestKit
8
8
  id :pas_server_v201_pas_request_bundle_validation_test
9
9
  title '[USER INPUT VALIDATION] Request Bundle is valid'
10
10
  description %(
11
+ **USER INPUT VALIDATION**: This test validates input provided by the user instead of the system under test.
12
+ Errors encountered will be treated as a skip instead of a failure.
13
+
11
14
  This test validates the conformity of the
12
15
  user input to the
13
16
  [PAS Request Bundle](http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle) structure, ensuring subsequent tests can accurately simulate content.
17
+
14
18
  It also checks that other conformance requirements defined in the [PAS Formal
15
19
  Specification](https://hl7.org/fhir/us/davinci-pas/STU2/specification.html),
16
20
  such as the presence of all referenced instances within the bundle and the
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Request Bundle 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 Request Bundle Profile.
@@ -31,6 +33,10 @@ module DaVinciPASTestKit
31
33
  'Bundle'
32
34
  end
33
35
 
36
+ def user_input_validation
37
+ true
38
+ end
39
+
34
40
  def self.metadata
35
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
42
  end
@@ -46,7 +52,7 @@ module DaVinciPASTestKit
46
52
 
47
53
  run do
48
54
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
55
+ validate_must_support(user_input_validation)
50
56
  end
51
57
  end
52
58
  end
@@ -11,6 +11,7 @@ module DaVinciPASTestKit
11
11
  This test validates the conformity of the
12
12
  server's response to the
13
13
  [PAS Response Bundle](http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-response-bundle) structure.
14
+
14
15
  It also checks that other conformance requirements defined in the [PAS Formal
15
16
  Specification](https://hl7.org/fhir/us/davinci-pas/STU2/specification.html),
16
17
  such as the presence of all referenced instances within the bundle and the
@@ -30,6 +30,10 @@ module DaVinciPASTestKit
30
30
  'Bundle'
31
31
  end
32
32
 
33
+ def user_input_validation
34
+ false
35
+ end
36
+
33
37
  def self.metadata
34
38
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
35
39
  end
@@ -45,7 +49,7 @@ module DaVinciPASTestKit
45
49
 
46
50
  run do
47
51
  perform_must_support_test(resources_of_interest)
48
- validate_must_support
52
+ validate_must_support(user_input_validation)
49
53
  end
50
54
  end
51
55
  end
@@ -1,7 +1,7 @@
1
1
  require_relative 'pas_request_bundle/server_pas_request_bundle_validation_test'
2
2
  require_relative 'claim/claim_operation_test'
3
3
  require_relative 'pas_response_bundle/server_pas_response_bundle_validation_test'
4
- require_relative '../../custom_groups/v2.0.1/claim_status/pas_claim_status_test'
4
+ require_relative '../../custom_groups/v2.0.1/claim_response_decision/pas_claim_response_decision_test'
5
5
 
6
6
  module DaVinciPASTestKit
7
7
  module DaVinciPASV201
@@ -22,7 +22,7 @@ module DaVinciPASTestKit
22
22
 
23
23
 
24
24
  group do
25
- title 'PAS Submit Operation'
25
+ title 'Server can respond to claims submitted for prior authorization'
26
26
 
27
27
  test from: :pas_server_v201_pas_request_bundle_validation_test do
28
28
  id :pas_server_v201_pas_request_bundle_validation_test_approval
@@ -47,11 +47,7 @@ module DaVinciPASTestKit
47
47
  )
48
48
  end
49
49
  test from: :pas_server_v201_pas_response_bundle_validation_test
50
- end
51
- group do
52
- title 'PAS Status Check'
53
-
54
- test from: :prior_auth_claim_status
50
+ test from: :prior_auth_claim_response_decision_validation
55
51
  end
56
52
 
57
53
  end
@@ -1,7 +1,7 @@
1
1
  require_relative 'pas_request_bundle/server_pas_request_bundle_validation_test'
2
2
  require_relative 'claim/claim_operation_test'
3
3
  require_relative 'pas_response_bundle/server_pas_response_bundle_validation_test'
4
- require_relative '../../custom_groups/v2.0.1/claim_status/pas_claim_status_test'
4
+ require_relative '../../custom_groups/v2.0.1/claim_response_decision/pas_claim_response_decision_test'
5
5
 
6
6
  module DaVinciPASTestKit
7
7
  module DaVinciPASV201
@@ -22,7 +22,7 @@ module DaVinciPASTestKit
22
22
 
23
23
 
24
24
  group do
25
- title 'PAS Submit Operation'
25
+ title 'Server can respond to claims submitted for prior authorization'
26
26
 
27
27
  test from: :pas_server_v201_pas_request_bundle_validation_test do
28
28
  id :pas_server_v201_pas_request_bundle_validation_test_denial
@@ -47,11 +47,7 @@ module DaVinciPASTestKit
47
47
  )
48
48
  end
49
49
  test from: :pas_server_v201_pas_response_bundle_validation_test
50
- end
51
- group do
52
- title 'PAS Status Check'
53
-
54
- test from: :prior_auth_claim_status
50
+ test from: :prior_auth_claim_response_decision_validation
55
51
  end
56
52
 
57
53
  end
@@ -113,7 +113,7 @@ module DaVinciPASTestKit
113
113
  run_as_group
114
114
 
115
115
  group do
116
- title 'PAS Submit Operation'
116
+ title 'Submission of claims to the $submit operation for must support validation'
117
117
 
118
118
  test from: :pas_server_v201_pas_request_bundle_validation_test do
119
119
  id :pas_server_v201_pas_request_bundle_validation_test_must_support
@@ -205,7 +205,7 @@ module DaVinciPASTestKit
205
205
  run_as_group
206
206
 
207
207
  group do
208
- title 'PAS Inquiry Operation'
208
+ title 'Submission of claims to the $inquire operation for must support validation'
209
209
 
210
210
  test from: :pas_server_v201_pas_inquiry_request_bundle_validation_test do
211
211
  id :pas_server_v201_pas_inquiry_request_bundle_validation_test_must_support
@@ -4,7 +4,8 @@ require_relative 'pas_response_bundle/server_pas_response_bundle_validation_test
4
4
  require_relative 'pas_inquiry_request_bundle/server_pas_inquiry_request_bundle_validation_test'
5
5
  require_relative 'claim_inquiry/claim_inquiry_operation_test'
6
6
  require_relative 'pas_inquiry_response_bundle/server_pas_inquiry_response_bundle_validation_test'
7
- require_relative '../../custom_groups/v2.0.1/claim_status/pas_claim_status_test'
7
+ require_relative '../../custom_groups/v2.0.1/claim_response_decision/pas_claim_response_decision_test'
8
+ require_relative '../../custom_groups/v2.0.1/notification/pas_subscription_notification_test'
8
9
 
9
10
  module DaVinciPASTestKit
10
11
  module DaVinciPASV201
@@ -30,7 +31,7 @@ module DaVinciPASTestKit
30
31
 
31
32
 
32
33
  group do
33
- title 'PAS Submit Operation'
34
+ title 'Server can respond to claims submitted for prior authorization'
34
35
 
35
36
  test from: :pas_server_v201_pas_request_bundle_validation_test do
36
37
  id :pas_server_v201_pas_request_bundle_validation_test_pended
@@ -55,15 +56,12 @@ module DaVinciPASTestKit
55
56
  )
56
57
  end
57
58
  test from: :pas_server_v201_pas_response_bundle_validation_test
59
+ test from: :prior_auth_claim_response_decision_validation
58
60
  end
59
61
  group do
60
- title 'PAS Status Check'
61
-
62
- test from: :prior_auth_claim_status
63
- end
64
- group do
65
- title 'PAS Inquiry Operation'
62
+ title 'Server can respond to claims submitted for inquiry'
66
63
 
64
+ test from: :prior_auth_claim_response_update_notification_validation
67
65
  test from: :pas_server_v201_pas_inquiry_request_bundle_validation_test
68
66
  test from: :pas_v201_claim_inquiry_operation_test do
69
67
  id :pas_v201_claim_inquiry_operation_test_pended
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'Practitioner'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'Practitioner'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Practitioner 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 Practitioner Profile.
@@ -31,6 +33,10 @@ module DaVinciPASTestKit
31
33
  'Practitioner'
32
34
  end
33
35
 
36
+ def user_input_validation
37
+ true
38
+ end
39
+
34
40
  def self.metadata
35
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
42
  end
@@ -46,7 +52,7 @@ module DaVinciPASTestKit
46
52
 
47
53
  run do
48
54
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
55
+ validate_must_support(user_input_validation)
50
56
  end
51
57
  end
52
58
  end
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'Practitioner'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS Practitioner 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 Practitioner Profile.
@@ -31,6 +33,10 @@ module DaVinciPASTestKit
31
33
  'Practitioner'
32
34
  end
33
35
 
36
+ def user_input_validation
37
+ true
38
+ end
39
+
34
40
  def self.metadata
35
41
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
42
  end
@@ -46,7 +52,7 @@ module DaVinciPASTestKit
46
52
 
47
53
  run do
48
54
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
55
+ validate_must_support(user_input_validation)
50
56
  end
51
57
  end
52
58
  end
@@ -31,6 +31,10 @@ module DaVinciPASTestKit
31
31
  'Practitioner'
32
32
  end
33
33
 
34
+ def user_input_validation
35
+ false
36
+ end
37
+
34
38
  def self.metadata
35
39
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
36
40
  end
@@ -46,7 +50,7 @@ module DaVinciPASTestKit
46
50
 
47
51
  run do
48
52
  perform_must_support_test(resources_of_interest)
49
- validate_must_support
53
+ validate_must_support(user_input_validation)
50
54
  end
51
55
  end
52
56
  end
@@ -27,6 +27,10 @@ module DaVinciPASTestKit
27
27
  'PractitionerRole'
28
28
  end
29
29
 
30
+ def user_input_validation
31
+ false
32
+ end
33
+
30
34
  def self.metadata
31
35
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
32
36
  end
@@ -42,7 +46,7 @@ module DaVinciPASTestKit
42
46
 
43
47
  run do
44
48
  perform_must_support_test(resources_of_interest)
45
- validate_must_support
49
+ validate_must_support(user_input_validation)
46
50
  end
47
51
  end
48
52
  end
@@ -27,6 +27,10 @@ module DaVinciPASTestKit
27
27
  'PractitionerRole'
28
28
  end
29
29
 
30
+ def user_input_validation
31
+ false
32
+ end
33
+
30
34
  def self.metadata
31
35
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
32
36
  end
@@ -42,7 +46,7 @@ module DaVinciPASTestKit
42
46
 
43
47
  run do
44
48
  perform_must_support_test(resources_of_interest)
45
- validate_must_support
49
+ validate_must_support(user_input_validation)
46
50
  end
47
51
  end
48
52
  end
@@ -10,6 +10,8 @@ module DaVinciPASTestKit
10
10
  title 'All must support elements for Profile PAS PractitionerRole 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 PractitionerRole Profile.
@@ -27,6 +29,10 @@ module DaVinciPASTestKit
27
29
  'PractitionerRole'
28
30
  end
29
31
 
32
+ def user_input_validation
33
+ true
34
+ end
35
+
30
36
  def self.metadata
31
37
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
32
38
  end
@@ -42,7 +48,7 @@ module DaVinciPASTestKit
42
48
 
43
49
  run do
44
50
  perform_must_support_test(resources_of_interest)
45
- validate_must_support
51
+ validate_must_support(user_input_validation)
46
52
  end
47
53
  end
48
54
  end
@@ -27,6 +27,10 @@ module DaVinciPASTestKit
27
27
  'PractitionerRole'
28
28
  end
29
29
 
30
+ def user_input_validation
31
+ false
32
+ end
33
+
30
34
  def self.metadata
31
35
  @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
32
36
  end
@@ -42,7 +46,7 @@ module DaVinciPASTestKit
42
46
 
43
47
  run do
44
48
  perform_must_support_test(resources_of_interest)
45
- validate_must_support
49
+ validate_must_support(user_input_validation)
46
50
  end
47
51
  end
48
52
  end