davinci_pas_test_kit 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/lib/davinci_pas_test_kit/client_suite.rb +289 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/claim_status/pas_claim_status_test.rb +109 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_approval_submit_response_attest.rb +39 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_approval_submit_test.rb +38 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_denial_submit_response_attest.rb +38 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_denial_submit_test.rb +43 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_inquire_must_support_test.rb +51 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_pended_inquire_response_attest.rb +39 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_pended_inquire_test.rb +35 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_pended_submit_response_attest.rb +39 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_pended_submit_test.rb +43 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_submit_must_support_test.rb +57 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_token_request_test.rb +31 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/client_tests/pas_client_token_validation_test.rb +18 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/error_tests/nonconformant_pas_bundle.json +16 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/error_tests/pas_inquiry_error_test.rb +38 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/error_tests/pas_submission_error_test.rb +56 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/device_request_metadata.yml +112 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/medication_request_metadata.yml +183 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/nutrition_order_metadata.yml +109 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_client_must_support_requirement_test.rb +117 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb +116 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/service_request_metadata.yml +148 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/pas_client_approval_group.rb +26 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/pas_client_authentication_group.rb +49 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/pas_client_denial_group.rb +41 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/pas_client_pended_group.rb +56 -0
- data/lib/davinci_pas_test_kit/custom_groups/v2.0.1/pas_error_group.rb +20 -0
- data/lib/davinci_pas_test_kit/ext/inferno_core/record_response_route.rb +98 -0
- data/lib/davinci_pas_test_kit/ext/inferno_core/request.rb +19 -0
- data/lib/davinci_pas_test_kit/ext/inferno_core/runnable.rb +18 -0
- data/lib/davinci_pas_test_kit/fhir_resource_navigation.rb +72 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/client_inquiry_request_beneficiary_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/client_submit_request_beneficiary_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/metadata.yml +162 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_inquiry_request_beneficiary_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_inquiry_response_beneficiary_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_submit_request_beneficiary_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/beneficiary/server_submit_response_beneficiary_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim/claim_operation_test.rb +67 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim/metadata.yml +577 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/claim_inquiry_operation_test.rb +57 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/client_inquiry_request_claim_inquiry_must_support_test.rb +95 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/metadata.yml +516 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_inquiry/server_inquiry_request_claim_inquiry_must_support_test.rb +95 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/client_submit_request_claim_update_must_support_test.rb +102 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/metadata.yml +591 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claim_update/server_submit_request_claim_update_must_support_test.rb +102 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claiminquiryresponse/metadata.yml +311 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claiminquiryresponse/server_inquiry_response_claiminquiryresponse_must_support_test.rb +73 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claimresponse/metadata.yml +318 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/claimresponse/server_submit_response_claimresponse_must_support_test.rb +75 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_denial_pas_response_bundle_validation_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_pas_request_bundle_validation_test.rb +55 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_pended_pas_inquiry_request_bundle_validation_test.rb +55 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/client_tests/client_pended_pas_response_bundle_validation_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/communication_request/metadata.yml +130 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/communication_request/server_submit_response_communication_request_must_support_test.rb +58 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/client_inquiry_request_coverage_must_support_test.rb +55 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/client_submit_request_coverage_must_support_test.rb +55 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/metadata.yml +111 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/server_inquiry_request_coverage_must_support_test.rb +55 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/coverage/server_submit_request_coverage_must_support_test.rb +55 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/client_submit_request_device_request_must_support_test.rb +51 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/metadata.yml +112 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/device_request/server_submit_request_device_request_must_support_test.rb +51 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/client_submit_request_encounter_must_support_test.rb +67 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/metadata.yml +213 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/encounter/server_submit_request_encounter_must_support_test.rb +67 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/client_inquiry_request_insurer_must_support_test.rb +60 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/client_submit_request_insurer_must_support_test.rb +60 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/metadata.yml +104 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_inquiry_request_insurer_must_support_test.rb +60 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_inquiry_response_insurer_must_support_test.rb +60 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_submit_request_insurer_must_support_test.rb +60 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/insurer/server_submit_response_insurer_must_support_test.rb +60 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/client_submit_request_medication_request_must_support_test.rb +61 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/metadata.yml +183 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/medication_request/server_submit_request_medication_request_must_support_test.rb +61 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/metadata.yml +5253 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/client_submit_request_nutrition_order_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/metadata.yml +109 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/nutrition_order/server_submit_request_nutrition_order_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_client_inquiry_must_support_use_case_group.rb +51 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_client_submit_must_support_use_case_group.rb +61 -0
- 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 +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_request_bundle/metadata.yml +77 -0
- 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 +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_request_bundle/server_pas_inquiry_request_bundle_validation_test.rb +83 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_response_bundle/metadata.yml +67 -0
- 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 +52 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_inquiry_response_bundle/server_pas_inquiry_response_bundle_validation_test.rb +80 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/client_submit_request_pas_request_bundle_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/metadata.yml +77 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/server_pas_request_bundle_validation_test.rb +83 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_request_bundle/server_submit_request_pas_request_bundle_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_response_bundle/metadata.yml +71 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_response_bundle/server_pas_response_bundle_validation_test.rb +80 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_response_bundle/server_submit_response_pas_response_bundle_must_support_test.rb +52 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_approval_use_case_group.rb +59 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_denial_use_case_group.rb +59 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_must_support_use_case_group.rb +265 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/pas_server_pended_use_case_group.rb +84 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/client_inquiry_request_practitioner_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/client_submit_request_practitioner_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/metadata.yml +74 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_inquiry_request_practitioner_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_inquiry_response_practitioner_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_submit_request_practitioner_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner/server_submit_response_practitioner_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/client_inquiry_request_practitioner_role_must_support_test.rb +49 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/client_submit_request_practitioner_role_must_support_test.rb +49 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/metadata.yml +81 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_inquiry_request_practitioner_role_must_support_test.rb +49 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_inquiry_response_practitioner_role_must_support_test.rb +49 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_submit_request_practitioner_role_must_support_test.rb +49 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/practitioner_role/server_submit_response_practitioner_role_must_support_test.rb +49 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/client_inquiry_request_requestor_must_support_test.rb +63 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/client_submit_request_requestor_must_support_test.rb +63 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/metadata.yml +107 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_inquiry_request_requestor_must_support_test.rb +63 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_inquiry_response_requestor_must_support_test.rb +63 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_submit_request_requestor_must_support_test.rb +63 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/requestor/server_submit_response_requestor_must_support_test.rb +63 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/resource_list.rb +54 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb +236 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/client_submit_request_service_request_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/metadata.yml +148 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/service_request/server_submit_request_service_request_must_support_test.rb +53 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/client_inquiry_request_subscriber_must_support_test.rb +74 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/client_submit_request_subscriber_must_support_test.rb +74 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/metadata.yml +159 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/server_inquiry_request_subscriber_must_support_test.rb +74 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/subscriber/server_submit_request_subscriber_must_support_test.rb +74 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/task/metadata.yml +192 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/task/server_inquiry_response_task_must_support_test.rb +61 -0
- data/lib/davinci_pas_test_kit/generated/v2.0.1/task/server_submit_response_task_must_support_test.rb +61 -0
- data/lib/davinci_pas_test_kit/generator/group_generator.rb +440 -0
- data/lib/davinci_pas_test_kit/generator/group_metadata.rb +73 -0
- data/lib/davinci_pas_test_kit/generator/group_metadata_extractor.rb +244 -0
- data/lib/davinci_pas_test_kit/generator/ig_loader.rb +78 -0
- data/lib/davinci_pas_test_kit/generator/ig_metadata.rb +66 -0
- data/lib/davinci_pas_test_kit/generator/ig_metadata_extractor.rb +54 -0
- data/lib/davinci_pas_test_kit/generator/ig_resources.rb +74 -0
- data/lib/davinci_pas_test_kit/generator/must_support_check_profiles.rb +86 -0
- data/lib/davinci_pas_test_kit/generator/must_support_metadata_extractor.rb +327 -0
- data/lib/davinci_pas_test_kit/generator/must_support_test_generator.rb +155 -0
- data/lib/davinci_pas_test_kit/generator/naming.rb +50 -0
- data/lib/davinci_pas_test_kit/generator/operation_test_generator.rb +136 -0
- data/lib/davinci_pas_test_kit/generator/resource_list_generator.rb +59 -0
- data/lib/davinci_pas_test_kit/generator/suite_generator.rb +94 -0
- data/lib/davinci_pas_test_kit/generator/terminology_binding_metadata_extractor.rb +108 -0
- data/lib/davinci_pas_test_kit/generator/validation_test_generator.rb +181 -0
- data/lib/davinci_pas_test_kit/generator/value_extractor.rb +48 -0
- data/lib/davinci_pas_test_kit/generator.rb +80 -0
- data/lib/davinci_pas_test_kit/mock_server.rb +189 -0
- data/lib/davinci_pas_test_kit/must_support_test.rb +267 -0
- data/lib/davinci_pas_test_kit/pas_bundle_validation.rb +568 -0
- data/lib/davinci_pas_test_kit/tags.rb +7 -0
- data/lib/davinci_pas_test_kit/urls.rb +39 -0
- data/lib/davinci_pas_test_kit/user_input_response.rb +32 -0
- data/lib/davinci_pas_test_kit/validation_test.rb +58 -0
- data/lib/davinci_pas_test_kit/validator_suppressions.rb +143 -0
- data/lib/davinci_pas_test_kit/version.rb +5 -0
- data/lib/davinci_pas_test_kit.rb +2 -0
- metadata +281 -0
@@ -0,0 +1,311 @@
|
|
1
|
+
---
|
2
|
+
:name: profile_claiminquiryresponse
|
3
|
+
:class_name: ProfileClaiminquiryresponseSequence
|
4
|
+
:version: v2.0.1
|
5
|
+
:reformatted_version: v201
|
6
|
+
:resource: ClaimResponse
|
7
|
+
:profile_url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claiminquiryresponse
|
8
|
+
:profile_name: PAS Claim Inquiry Response
|
9
|
+
:profile_version: 2.0.1
|
10
|
+
:title: Claim Inquiry Response
|
11
|
+
:short_description: Verify support for the server capabilities required by the PAS
|
12
|
+
Claim Inquiry Response.
|
13
|
+
:interactions: []
|
14
|
+
:operations: []
|
15
|
+
:required_concepts:
|
16
|
+
- error.code
|
17
|
+
:must_supports:
|
18
|
+
:extensions:
|
19
|
+
- :id: ClaimResponse.item.extension:itemTraceNumber
|
20
|
+
:path: item.extension
|
21
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemTraceNumber
|
22
|
+
- :id: ClaimResponse.item.extension:preAuthIssueDate
|
23
|
+
:path: item.extension
|
24
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemPreAuthIssueDate
|
25
|
+
- :id: ClaimResponse.item.extension:preAuthPeriod
|
26
|
+
:path: item.extension
|
27
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemPreAuthPeriod
|
28
|
+
- :id: ClaimResponse.item.extension:previousAuthorizationNumber
|
29
|
+
:path: item.extension
|
30
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber
|
31
|
+
- :id: ClaimResponse.item.extension:administrationReferenceNumber
|
32
|
+
:path: item.extension
|
33
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber
|
34
|
+
- :id: ClaimResponse.item.extension:requestedServiceDate
|
35
|
+
:path: item.extension
|
36
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemRequestedServiceDate
|
37
|
+
- :id: ClaimResponse.item.extension:authorizedItemDetail
|
38
|
+
:path: item.extension
|
39
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedDetail
|
40
|
+
- :id: ClaimResponse.item.extension:authorizedProvider
|
41
|
+
:path: item.extension
|
42
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedProvider
|
43
|
+
- :id: ClaimResponse.item.extension:communicatedDiagnosis
|
44
|
+
:path: item.extension
|
45
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-communicatedDiagnosis
|
46
|
+
- :id: ClaimResponse.item.adjudication.extension:reviewAction
|
47
|
+
:path: item.adjudication.extension
|
48
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-reviewAction
|
49
|
+
- :id: ClaimResponse.error.extension:followupAction
|
50
|
+
:path: error.extension
|
51
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-errorFollowupAction
|
52
|
+
- :id: ClaimResponse.error.extension:errorElement
|
53
|
+
:path: error.extension
|
54
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-errorElement
|
55
|
+
- :id: ClaimResponse.error.extension:errorPath
|
56
|
+
:path: error.extension
|
57
|
+
:url: http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-errorPath
|
58
|
+
:slices: []
|
59
|
+
:elements:
|
60
|
+
- :path: identifier
|
61
|
+
- :path: status
|
62
|
+
- :path: patient
|
63
|
+
:types:
|
64
|
+
- Reference
|
65
|
+
- :path: created
|
66
|
+
- :path: insurer
|
67
|
+
:types:
|
68
|
+
- Reference
|
69
|
+
- :path: requestor
|
70
|
+
:types:
|
71
|
+
- Reference
|
72
|
+
- :path: request
|
73
|
+
:types:
|
74
|
+
- Reference
|
75
|
+
- :path: outcome
|
76
|
+
- :path: preAuthPeriod
|
77
|
+
- :path: item
|
78
|
+
- :path: item.adjudication
|
79
|
+
- :path: error
|
80
|
+
- :path: error.code
|
81
|
+
:mandatory_elements:
|
82
|
+
- ClaimResponse.status
|
83
|
+
- ClaimResponse.type
|
84
|
+
- ClaimResponse.use
|
85
|
+
- ClaimResponse.patient
|
86
|
+
- ClaimResponse.created
|
87
|
+
- ClaimResponse.insurer
|
88
|
+
- ClaimResponse.outcome
|
89
|
+
- ClaimResponse.item.itemSequence
|
90
|
+
- ClaimResponse.item.adjudication
|
91
|
+
- ClaimResponse.item.adjudication.category
|
92
|
+
- ClaimResponse.item.detail.detailSequence
|
93
|
+
- ClaimResponse.item.detail.adjudication
|
94
|
+
- ClaimResponse.item.detail.subDetail.subDetailSequence
|
95
|
+
- ClaimResponse.addItem.productOrService
|
96
|
+
- ClaimResponse.addItem.adjudication
|
97
|
+
- ClaimResponse.addItem.detail.productOrService
|
98
|
+
- ClaimResponse.addItem.detail.adjudication
|
99
|
+
- ClaimResponse.addItem.detail.subDetail.productOrService
|
100
|
+
- ClaimResponse.addItem.detail.subDetail.adjudication
|
101
|
+
- ClaimResponse.total.category
|
102
|
+
- ClaimResponse.total.amount
|
103
|
+
- ClaimResponse.payment.type
|
104
|
+
- ClaimResponse.payment.amount
|
105
|
+
- ClaimResponse.processNote.text
|
106
|
+
- ClaimResponse.insurance.sequence
|
107
|
+
- ClaimResponse.insurance.focal
|
108
|
+
- ClaimResponse.insurance.coverage
|
109
|
+
- ClaimResponse.error.code
|
110
|
+
:bindings:
|
111
|
+
- :type: code
|
112
|
+
:strength: preferred
|
113
|
+
:system: http://hl7.org/fhir/ValueSet/languages
|
114
|
+
:path: language
|
115
|
+
- :type: code
|
116
|
+
:strength: required
|
117
|
+
:system: http://hl7.org/fhir/ValueSet/fm-status
|
118
|
+
:path: status
|
119
|
+
- :type: CodeableConcept
|
120
|
+
:strength: extensible
|
121
|
+
:system: http://hl7.org/fhir/ValueSet/claim-type
|
122
|
+
:path: type
|
123
|
+
- :type: CodeableConcept
|
124
|
+
:strength: example
|
125
|
+
:system: http://hl7.org/fhir/ValueSet/claim-subtype
|
126
|
+
:path: subType
|
127
|
+
- :type: code
|
128
|
+
:strength: required
|
129
|
+
:system: http://hl7.org/fhir/ValueSet/claim-use
|
130
|
+
:path: use
|
131
|
+
- :type: code
|
132
|
+
:strength: required
|
133
|
+
:system: http://hl7.org/fhir/ValueSet/remittance-outcome
|
134
|
+
:path: outcome
|
135
|
+
- :type: CodeableConcept
|
136
|
+
:strength: example
|
137
|
+
:system: http://hl7.org/fhir/ValueSet/payeetype
|
138
|
+
:path: payeeType
|
139
|
+
- :type: CodeableConcept
|
140
|
+
:strength: example
|
141
|
+
:system: http://hl7.org/fhir/ValueSet/adjudication
|
142
|
+
:path: item.adjudication.category
|
143
|
+
- :type: CodeableConcept
|
144
|
+
:strength: example
|
145
|
+
:system: http://hl7.org/fhir/ValueSet/adjudication-reason
|
146
|
+
:path: item.adjudication.reason
|
147
|
+
- :type: CodeableConcept
|
148
|
+
:strength: example
|
149
|
+
:system: http://hl7.org/fhir/ValueSet/service-uscls
|
150
|
+
:path: addItem.productOrService
|
151
|
+
- :type: CodeableConcept
|
152
|
+
:strength: example
|
153
|
+
:system: http://hl7.org/fhir/ValueSet/claim-modifiers
|
154
|
+
:path: addItem.modifier
|
155
|
+
- :type: CodeableConcept
|
156
|
+
:strength: example
|
157
|
+
:system: http://hl7.org/fhir/ValueSet/ex-program-code
|
158
|
+
:path: addItem.programCode
|
159
|
+
- :type: CodeableConcept
|
160
|
+
:strength: example
|
161
|
+
:system: http://hl7.org/fhir/ValueSet/service-place
|
162
|
+
:path: addItem.location
|
163
|
+
- :type: CodeableConcept
|
164
|
+
:strength: example
|
165
|
+
:system: http://hl7.org/fhir/ValueSet/tooth
|
166
|
+
:path: addItem.bodySite
|
167
|
+
- :type: CodeableConcept
|
168
|
+
:strength: example
|
169
|
+
:system: http://hl7.org/fhir/ValueSet/surface
|
170
|
+
:path: addItem.subSite
|
171
|
+
- :type: CodeableConcept
|
172
|
+
:strength: example
|
173
|
+
:system: http://hl7.org/fhir/ValueSet/service-uscls
|
174
|
+
:path: addItem.detail.productOrService
|
175
|
+
- :type: CodeableConcept
|
176
|
+
:strength: example
|
177
|
+
:system: http://hl7.org/fhir/ValueSet/claim-modifiers
|
178
|
+
:path: addItem.detail.modifier
|
179
|
+
- :type: CodeableConcept
|
180
|
+
:strength: example
|
181
|
+
:system: http://hl7.org/fhir/ValueSet/service-uscls
|
182
|
+
:path: addItem.detail.subDetail.productOrService
|
183
|
+
- :type: CodeableConcept
|
184
|
+
:strength: example
|
185
|
+
:system: http://hl7.org/fhir/ValueSet/claim-modifiers
|
186
|
+
:path: addItem.detail.subDetail.modifier
|
187
|
+
- :type: CodeableConcept
|
188
|
+
:strength: example
|
189
|
+
:system: http://hl7.org/fhir/ValueSet/adjudication
|
190
|
+
:path: total.category
|
191
|
+
- :type: CodeableConcept
|
192
|
+
:strength: example
|
193
|
+
:system: http://hl7.org/fhir/ValueSet/ex-paymenttype
|
194
|
+
:path: payment.type
|
195
|
+
- :type: CodeableConcept
|
196
|
+
:strength: example
|
197
|
+
:system: http://hl7.org/fhir/ValueSet/payment-adjustment-reason
|
198
|
+
:path: payment.adjustmentReason
|
199
|
+
- :type: CodeableConcept
|
200
|
+
:strength: example
|
201
|
+
:system: http://hl7.org/fhir/ValueSet/fundsreserve
|
202
|
+
:path: fundsReserve
|
203
|
+
- :type: CodeableConcept
|
204
|
+
:strength: example
|
205
|
+
:system: http://hl7.org/fhir/ValueSet/forms
|
206
|
+
:path: formCode
|
207
|
+
- :type: code
|
208
|
+
:strength: required
|
209
|
+
:system: http://hl7.org/fhir/ValueSet/note-type
|
210
|
+
:path: processNote.type
|
211
|
+
- :type: CodeableConcept
|
212
|
+
:strength: preferred
|
213
|
+
:system: http://hl7.org/fhir/ValueSet/languages
|
214
|
+
:path: processNote.language
|
215
|
+
- :type: CodeableConcept
|
216
|
+
:strength: required
|
217
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/X12278RejectReasonCodes
|
218
|
+
:path: error.code
|
219
|
+
- :type: CodeableConcept
|
220
|
+
:strength: required
|
221
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/X12278RequestedServiceType
|
222
|
+
:path: value
|
223
|
+
:extensions:
|
224
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedDetail
|
225
|
+
- productOrServiceCode
|
226
|
+
- :type: CodeableConcept
|
227
|
+
:strength: required
|
228
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/X12278RequestedServiceModifierType
|
229
|
+
:path: value
|
230
|
+
:extensions:
|
231
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedDetail
|
232
|
+
- modifier
|
233
|
+
- :type: CodeableConcept
|
234
|
+
:strength: required
|
235
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/AHANUBCRevenueCodes
|
236
|
+
:path: value
|
237
|
+
:extensions:
|
238
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedDetail
|
239
|
+
- revenue
|
240
|
+
- :type: CodeableConcept
|
241
|
+
:strength: required
|
242
|
+
:system: https://valueset.x12.org/x217/005010/response/2010EA/NM1/1/01/00/98
|
243
|
+
:path: value
|
244
|
+
:extensions:
|
245
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedProvider
|
246
|
+
- provider
|
247
|
+
- :type: CodeableConcept
|
248
|
+
:strength: required
|
249
|
+
:system: https://valueset.x12.org/x217/005010/response/2010EA/NM1/1/01/00/98
|
250
|
+
:path: value
|
251
|
+
:extensions:
|
252
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemAuthorizedProvider
|
253
|
+
- providerType
|
254
|
+
- :type: CodeableConcept
|
255
|
+
:strength: required
|
256
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/X12278DiagnosisCodes
|
257
|
+
:path: value
|
258
|
+
:extensions:
|
259
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-communicatedDiagnosis
|
260
|
+
- :type: CodeableConcept
|
261
|
+
:strength: required
|
262
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/X12278ReviewDecisionReasonCode
|
263
|
+
:path: value
|
264
|
+
:extensions:
|
265
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-reviewAction
|
266
|
+
- reasonCode
|
267
|
+
- :type: CodeableConcept
|
268
|
+
:strength: required
|
269
|
+
:system: http://hl7.org/fhir/us/davinci-pas/ValueSet/X12278FollowUpActionCodes
|
270
|
+
:path: value
|
271
|
+
:extensions:
|
272
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-errorFollowupAction
|
273
|
+
:references:
|
274
|
+
- :path: ClaimResponse.patient
|
275
|
+
:profiles:
|
276
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-beneficiary
|
277
|
+
- :path: ClaimResponse.insurer
|
278
|
+
:profiles:
|
279
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer
|
280
|
+
- :path: ClaimResponse.requestor
|
281
|
+
:profiles:
|
282
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor
|
283
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitionerrole
|
284
|
+
- :path: ClaimResponse.request
|
285
|
+
:profiles:
|
286
|
+
- http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim
|
287
|
+
- :path: ClaimResponse.addItem.provider
|
288
|
+
:profiles:
|
289
|
+
- http://hl7.org/fhir/StructureDefinition/Practitioner
|
290
|
+
- http://hl7.org/fhir/StructureDefinition/PractitionerRole
|
291
|
+
- http://hl7.org/fhir/StructureDefinition/Organization
|
292
|
+
- :path: ClaimResponse.communicationRequest
|
293
|
+
:profiles:
|
294
|
+
- http://hl7.org/fhir/StructureDefinition/CommunicationRequest
|
295
|
+
- :path: ClaimResponse.insurance.coverage
|
296
|
+
:profiles:
|
297
|
+
- http://hl7.org/fhir/StructureDefinition/Coverage
|
298
|
+
- :path: ClaimResponse.insurance.claimResponse
|
299
|
+
:profiles:
|
300
|
+
- http://hl7.org/fhir/StructureDefinition/ClaimResponse
|
301
|
+
:tests:
|
302
|
+
- :id: pas_server_inquiry_response_v201_claiminquiryresponse_must_support_test
|
303
|
+
:file_name: server_inquiry_response_claiminquiryresponse_must_support_test.rb
|
304
|
+
:delayed_references:
|
305
|
+
- :path: insurer
|
306
|
+
:resources:
|
307
|
+
- Organization
|
308
|
+
- :path: requestor
|
309
|
+
:resources:
|
310
|
+
- Organization
|
311
|
+
- PractitionerRole
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require_relative '../../../must_support_test'
|
2
|
+
require_relative '../../../generator/group_metadata'
|
3
|
+
require_relative '../../../tags'
|
4
|
+
|
5
|
+
module DaVinciPASTestKit
|
6
|
+
module DaVinciPASV201
|
7
|
+
class ServerInquiryResponseClaiminquiryresponseMustSupportTest < Inferno::Test
|
8
|
+
include DaVinciPASTestKit::MustSupportTest
|
9
|
+
|
10
|
+
title 'All must support elements for Profile PAS Claim Inquiry Response are observed across all instances returned'
|
11
|
+
description %(
|
12
|
+
|
13
|
+
PAS server systems are required to be able to populate all
|
14
|
+
must support elements on instances of all profiles included in
|
15
|
+
responses, including instances of the PAS Claim Inquiry Response Profile.
|
16
|
+
This test checks all identified instances of the PAS Claim Inquiry Response
|
17
|
+
Profile on responses returned by the server to ensure that the following
|
18
|
+
must support elements are observed:
|
19
|
+
|
20
|
+
* ClaimResponse.created
|
21
|
+
* ClaimResponse.error
|
22
|
+
* ClaimResponse.error.code
|
23
|
+
* ClaimResponse.error.extension:errorElement
|
24
|
+
* ClaimResponse.error.extension:errorPath
|
25
|
+
* ClaimResponse.error.extension:followupAction
|
26
|
+
* ClaimResponse.identifier
|
27
|
+
* ClaimResponse.insurer
|
28
|
+
* ClaimResponse.item
|
29
|
+
* ClaimResponse.item.adjudication
|
30
|
+
* ClaimResponse.item.adjudication.extension:reviewAction
|
31
|
+
* ClaimResponse.item.extension:administrationReferenceNumber
|
32
|
+
* ClaimResponse.item.extension:authorizedItemDetail
|
33
|
+
* ClaimResponse.item.extension:authorizedProvider
|
34
|
+
* ClaimResponse.item.extension:communicatedDiagnosis
|
35
|
+
* ClaimResponse.item.extension:itemTraceNumber
|
36
|
+
* ClaimResponse.item.extension:preAuthIssueDate
|
37
|
+
* ClaimResponse.item.extension:preAuthPeriod
|
38
|
+
* ClaimResponse.item.extension:previousAuthorizationNumber
|
39
|
+
* ClaimResponse.item.extension:requestedServiceDate
|
40
|
+
* ClaimResponse.outcome
|
41
|
+
* ClaimResponse.patient
|
42
|
+
* ClaimResponse.preAuthPeriod
|
43
|
+
* ClaimResponse.request
|
44
|
+
* ClaimResponse.requestor
|
45
|
+
* ClaimResponse.status
|
46
|
+
)
|
47
|
+
|
48
|
+
id :pas_server_inquiry_response_v201_claiminquiryresponse_must_support_test
|
49
|
+
|
50
|
+
def resource_type
|
51
|
+
'ClaimResponse'
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.metadata
|
55
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
56
|
+
end
|
57
|
+
|
58
|
+
def scratch_resources
|
59
|
+
scratch[:inquiry_response_resources] ||= {}
|
60
|
+
end
|
61
|
+
|
62
|
+
def resources_of_interest
|
63
|
+
collection = tagged_resources(INQUIRE_TAG).presence || all_scratch_resources
|
64
|
+
collection.select { |res| res.resourceType == resource_type }
|
65
|
+
end
|
66
|
+
|
67
|
+
run do
|
68
|
+
perform_must_support_test(resources_of_interest)
|
69
|
+
validate_must_support
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|