Skip to content

Commit

Permalink
Merge pull request #12 from inferno-framework/FI-2970-fix-inquiry-res…
Browse files Browse the repository at this point in the history
…ponse-ms

FI-2970: Fix inquiry Response Must Support Test
  • Loading branch information
vanessuniq authored Aug 1, 2024
2 parents a18c292 + ebc33d1 commit 1c21710
Show file tree
Hide file tree
Showing 81 changed files with 404 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module DaVinciPASTestKit
module DaVinciPASV201
class ClientInquiryRequestBeneficiaryMustSupportTest < Inferno::Test
class ClientInquireRequestBeneficiaryMustSupportTest < Inferno::Test
include DaVinciPASTestKit::MustSupportTest

title 'All must support elements for Profile PAS Beneficiary Patient are observed across all instances submitted'
Expand All @@ -14,7 +14,7 @@ class ClientInquiryRequestBeneficiaryMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
requests, including instances of the PAS Beneficiary Patient Profile.
This test checks all identified instances of the PAS Beneficiary Patient
Profile on requests sent by the client to ensure that the following
Profile on requests sent by the client to ensure that the following
must support elements are observed:
* Patient.address
Expand Down Expand Up @@ -47,7 +47,7 @@ class ClientInquiryRequestBeneficiaryMustSupportTest < Inferno::Test
* Patient.telecom.value
)

id :pas_client_inquiry_request_v201_beneficiary_must_support_test
id :pas_client_inquire_request_v201_beneficiary_must_support_test

def resource_type
'Patient'
Expand All @@ -62,7 +62,8 @@ def self.metadata
end

def scratch_resources
scratch[:inquiry_request_resources] ||= {}
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:inquire_request_resources] ||= {}
end

def resources_of_interest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClientSubmitRequestBeneficiaryMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
requests, including instances of the PAS Beneficiary Patient Profile.
This test checks all identified instances of the PAS Beneficiary Patient
Profile on requests sent by the client to ensure that the following
Profile on requests sent by the client to ensure that the following
must support elements are observed:
* Patient.address
Expand Down Expand Up @@ -62,6 +62,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:submit_request_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
:file_name: client_submit_request_beneficiary_must_support_test.rb
- :id: pas_server_submit_response_v201_beneficiary_must_support_test
:file_name: server_submit_response_beneficiary_must_support_test.rb
- :id: pas_server_inquiry_request_v201_beneficiary_must_support_test
:file_name: server_inquiry_request_beneficiary_must_support_test.rb
- :id: pas_client_inquiry_request_v201_beneficiary_must_support_test
:file_name: client_inquiry_request_beneficiary_must_support_test.rb
- :id: pas_server_inquiry_response_v201_beneficiary_must_support_test
:file_name: server_inquiry_response_beneficiary_must_support_test.rb
- :id: pas_server_inquire_request_v201_beneficiary_must_support_test
:file_name: server_inquire_request_beneficiary_must_support_test.rb
- :id: pas_client_inquire_request_v201_beneficiary_must_support_test
:file_name: client_inquire_request_beneficiary_must_support_test.rb
- :id: pas_server_inquire_response_v201_beneficiary_must_support_test
:file_name: server_inquire_response_beneficiary_must_support_test.rb
:delayed_references: []
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

module DaVinciPASTestKit
module DaVinciPASV201
class ServerInquiryRequestBeneficiaryMustSupportTest < Inferno::Test
class ServerInquireRequestBeneficiaryMustSupportTest < Inferno::Test
include DaVinciPASTestKit::MustSupportTest

title 'All must support elements for Profile PAS Beneficiary Patient are observed across all instances submitted'
description %(
**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.
PAS server systems are required to be able to receive all
must support elements on instances of all profiles included in
requests, including instances of the PAS Beneficiary Patient Profile.
This test checks all identified instances of the PAS Beneficiary Patient
Profile on requests sent to the server to ensure that the following
Profile on requests sent to the server to ensure that the following
must support elements are observed:
* Patient.address
Expand Down Expand Up @@ -49,7 +49,7 @@ class ServerInquiryRequestBeneficiaryMustSupportTest < Inferno::Test
* Patient.telecom.value
)

id :pas_server_inquiry_request_v201_beneficiary_must_support_test
id :pas_server_inquire_request_v201_beneficiary_must_support_test

def resource_type
'Patient'
Expand All @@ -64,6 +64,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:inquire_request_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module DaVinciPASTestKit
module DaVinciPASV201
class ServerInquiryResponseBeneficiaryMustSupportTest < Inferno::Test
class ServerInquireResponseBeneficiaryMustSupportTest < Inferno::Test
include DaVinciPASTestKit::MustSupportTest

title 'All must support elements for Profile PAS Beneficiary Patient are observed across all instances returned'
Expand All @@ -14,7 +14,7 @@ class ServerInquiryResponseBeneficiaryMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
responses, including instances of the PAS Beneficiary Patient Profile.
This test checks all identified instances of the PAS Beneficiary Patient
Profile on responses returned by the server to ensure that the following
Profile on responses returned by the server to ensure that the following
must support elements are observed:
* Patient.address
Expand Down Expand Up @@ -47,7 +47,7 @@ class ServerInquiryResponseBeneficiaryMustSupportTest < Inferno::Test
* Patient.telecom.value
)

id :pas_server_inquiry_response_v201_beneficiary_must_support_test
id :pas_server_inquire_response_v201_beneficiary_must_support_test

def resource_type
'Patient'
Expand All @@ -62,7 +62,8 @@ def self.metadata
end

def scratch_resources
scratch[:inquiry_response_resources] ||= {}
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:inquire_response_resources] ||= {}
end

def resources_of_interest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class ServerSubmitRequestBeneficiaryMustSupportTest < Inferno::Test
description %(
**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.
PAS server systems are required to be able to receive all
must support elements on instances of all profiles included in
requests, including instances of the PAS Beneficiary Patient Profile.
This test checks all identified instances of the PAS Beneficiary Patient
Profile on requests sent to the server to ensure that the following
Profile on requests sent to the server to ensure that the following
must support elements are observed:
* Patient.address
Expand Down Expand Up @@ -64,6 +64,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:submit_request_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ServerSubmitResponseBeneficiaryMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
responses, including instances of the PAS Beneficiary Patient Profile.
This test checks all identified instances of the PAS Beneficiary Patient
Profile on responses returned by the server to ensure that the following
Profile on responses returned by the server to ensure that the following
must support elements are observed:
* Patient.address
Expand Down Expand Up @@ -62,6 +62,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:submit_response_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module DaVinciPASTestKit
module DaVinciPASV201
class ClientInquiryRequestClaimInquiryMustSupportTest < Inferno::Test
class ClientInquireRequestClaimInquiryMustSupportTest < Inferno::Test
include DaVinciPASTestKit::MustSupportTest

title 'All must support elements for Profile PAS Claim Inquiry are observed across all instances submitted'
Expand All @@ -14,7 +14,7 @@ class ClientInquiryRequestClaimInquiryMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
requests, including instances of the PAS Claim Inquiry Profile.
This test checks all identified instances of the PAS Claim Inquiry
Profile on requests sent by the client to ensure that the following
Profile on requests sent by the client to ensure that the following
must support elements are observed:
* Claim.accident
Expand Down Expand Up @@ -67,7 +67,7 @@ class ClientInquiryRequestClaimInquiryMustSupportTest < Inferno::Test
* Claim.supportingInfo.timing[x]
)

id :pas_client_inquiry_request_v201_claim_inquiry_must_support_test
id :pas_client_inquire_request_v201_claim_inquiry_must_support_test

def resource_type
'Claim'
Expand All @@ -82,7 +82,8 @@ def self.metadata
end

def scratch_resources
scratch[:inquiry_request_resources] ||= {}
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:inquire_request_resources] ||= {}
end

def resources_of_interest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@
:tests:
- :id: pas_v201_claim_inquiry_operation_test
:file_name: claim_inquiry_operation_test.rb
- :id: pas_server_inquiry_request_v201_claim_inquiry_must_support_test
:file_name: server_inquiry_request_claim_inquiry_must_support_test.rb
- :id: pas_client_inquiry_request_v201_claim_inquiry_must_support_test
:file_name: client_inquiry_request_claim_inquiry_must_support_test.rb
- :id: pas_server_inquire_request_v201_claim_inquiry_must_support_test
:file_name: server_inquire_request_claim_inquiry_must_support_test.rb
- :id: pas_client_inquire_request_v201_claim_inquiry_must_support_test
:file_name: client_inquire_request_claim_inquiry_must_support_test.rb
:delayed_references:
- :path: insurer
:resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

module DaVinciPASTestKit
module DaVinciPASV201
class ServerInquiryRequestClaimInquiryMustSupportTest < Inferno::Test
class ServerInquireRequestClaimInquiryMustSupportTest < Inferno::Test
include DaVinciPASTestKit::MustSupportTest

title 'All must support elements for Profile PAS Claim Inquiry are observed across all instances submitted'
description %(
**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.
PAS server systems are required to be able to receive all
must support elements on instances of all profiles included in
requests, including instances of the PAS Claim Inquiry Profile.
This test checks all identified instances of the PAS Claim Inquiry
Profile on requests sent to the server to ensure that the following
Profile on requests sent to the server to ensure that the following
must support elements are observed:
* Claim.accident
Expand Down Expand Up @@ -69,7 +69,7 @@ class ServerInquiryRequestClaimInquiryMustSupportTest < Inferno::Test
* Claim.supportingInfo.timing[x]
)

id :pas_server_inquiry_request_v201_claim_inquiry_must_support_test
id :pas_server_inquire_request_v201_claim_inquiry_must_support_test

def resource_type
'Claim'
Expand All @@ -84,6 +84,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:inquire_request_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClientSubmitRequestClaimUpdateMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
requests, including instances of the PAS Claim Update Profile.
This test checks all identified instances of the PAS Claim Update
Profile on requests sent by the client to ensure that the following
Profile on requests sent by the client to ensure that the following
must support elements are observed:
* Claim.accident
Expand Down Expand Up @@ -89,6 +89,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:submit_request_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class ServerSubmitRequestClaimUpdateMustSupportTest < Inferno::Test
description %(
**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.
PAS server systems are required to be able to receive all
must support elements on instances of all profiles included in
requests, including instances of the PAS Claim Update Profile.
This test checks all identified instances of the PAS Claim Update
Profile on requests sent to the server to ensure that the following
Profile on requests sent to the server to ensure that the following
must support elements are observed:
* Claim.accident
Expand Down Expand Up @@ -91,6 +91,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:submit_request_resources] ||= {}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@
:profiles:
- http://hl7.org/fhir/StructureDefinition/ClaimResponse
:tests:
- :id: pas_server_inquiry_response_v201_claiminquiryresponse_must_support_test
:file_name: server_inquiry_response_claiminquiryresponse_must_support_test.rb
- :id: pas_server_inquire_response_v201_claiminquiryresponse_must_support_test
:file_name: server_inquire_response_claiminquiryresponse_must_support_test.rb
:delayed_references:
- :path: insurer
:resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module DaVinciPASTestKit
module DaVinciPASV201
class ServerInquiryResponseClaiminquiryresponseMustSupportTest < Inferno::Test
class ServerInquireResponseClaiminquiryresponseMustSupportTest < Inferno::Test
include DaVinciPASTestKit::MustSupportTest

title 'All must support elements for Profile PAS Claim Inquiry Response are observed across all instances returned'
Expand All @@ -14,7 +14,7 @@ class ServerInquiryResponseClaiminquiryresponseMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
responses, including instances of the PAS Claim Inquiry Response Profile.
This test checks all identified instances of the PAS Claim Inquiry Response
Profile on responses returned by the server to ensure that the following
Profile on responses returned by the server to ensure that the following
must support elements are observed:
* ClaimResponse.created
Expand Down Expand Up @@ -45,7 +45,7 @@ class ServerInquiryResponseClaiminquiryresponseMustSupportTest < Inferno::Test
* ClaimResponse.status
)

id :pas_server_inquiry_response_v201_claiminquiryresponse_must_support_test
id :pas_server_inquire_response_v201_claiminquiryresponse_must_support_test

def resource_type
'ClaimResponse'
Expand All @@ -60,7 +60,8 @@ def self.metadata
end

def scratch_resources
scratch[:inquiry_response_resources] ||= {}
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:inquire_response_resources] ||= {}
end

def resources_of_interest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ServerSubmitResponseClaimresponseMustSupportTest < Inferno::Test
must support elements on instances of all profiles included in
responses, including instances of the PAS Claim Response Profile.
This test checks all identified instances of the PAS Claim Response
Profile on responses returned by the server to ensure that the following
Profile on responses returned by the server to ensure that the following
must support elements are observed:
* ClaimResponse.communicationRequest
Expand Down Expand Up @@ -62,6 +62,7 @@ def self.metadata
end

def scratch_resources
# The scratch key in MS test should be the same as the scratch key in the validation test for a given profile.
scratch[:submit_response_resources] ||= {}
end

Expand Down
Loading

0 comments on commit 1c21710

Please sign in to comment.