davinci_pas_test_kit 0.15.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/presets/g33_br_provider.json +13 -0
- data/config/presets/pas_client_example.json +2 -2
- data/config/presets/pas_client_v201_run_against_pas_server.json +2 -2
- data/config/presets/pas_client_v221_run_against_pas_server.json +3 -3
- data/config/presets/pas_ri.json +6 -6
- data/config/presets/pas_server_v201_run_against_pas_client.json.erb +6 -6
- data/config/presets/pas_server_v221_run_against_pas_client.json.erb +10 -10
- data/lib/davinci_pas_test_kit/client/abstract_approval_submit_test.rb +28 -17
- data/lib/davinci_pas_test_kit/client/abstract_denial_submit_test.rb +26 -16
- data/lib/davinci_pas_test_kit/client/abstract_gather_must_support_test.rb +45 -74
- data/lib/davinci_pas_test_kit/client/abstract_modification_submit_test.rb +29 -19
- data/lib/davinci_pas_test_kit/client/abstract_response_attest.rb +75 -6
- data/lib/davinci_pas_test_kit/client/abstract_subscription_create_test.rb +26 -9
- data/lib/davinci_pas_test_kit/client/abstract_subscription_update_delete_test.rb +91 -0
- data/lib/davinci_pas_test_kit/client/client_bundle_validation_helper.rb +245 -0
- data/lib/davinci_pas_test_kit/client/client_input_descriptions.rb +96 -1
- data/lib/davinci_pas_test_kit/client/endpoints/claim_endpoint.rb +128 -72
- data/lib/davinci_pas_test_kit/client/endpoints/endpoint_session_identification.rb +24 -0
- data/lib/davinci_pas_test_kit/client/endpoints/expired_token.rb +40 -0
- data/lib/davinci_pas_test_kit/client/endpoints/subscription_create_endpoint.rb +7 -12
- data/lib/davinci_pas_test_kit/client/endpoints/subscription_delete_endpoint.rb +13 -0
- data/lib/davinci_pas_test_kit/client/endpoints/subscription_read_endpoint.rb +13 -0
- data/lib/davinci_pas_test_kit/client/endpoints/subscription_status_endpoint.rb +15 -20
- data/lib/davinci_pas_test_kit/client/endpoints/subscription_update_endpoint.rb +13 -0
- data/lib/davinci_pas_test_kit/client/endpoints/token_endpoint.rb +16 -0
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/beneficiary/client_inquire_request_must_support_beneficiary_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/beneficiary/client_inquire_response_must_support_beneficiary_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/beneficiary/client_submit_request_must_support_beneficiary_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/beneficiary/client_submit_response_must_support_beneficiary_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/claim_inquiry/client_inquire_request_must_support_claim_inquiry_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/claim_update/client_submit_request_must_support_claim_update_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/claiminquiryresponse/client_inquire_response_must_support_claiminquiryresponse_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/claimresponse/client_submit_response_must_support_claimresponse_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/communication_request/client_submit_response_must_support_communication_request_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/coverage/client_inquire_request_must_support_coverage_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/coverage/client_submit_request_must_support_coverage_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/encounter/client_submit_request_must_support_encounter_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/insurer/client_inquire_request_must_support_insurer_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/insurer/client_inquire_response_must_support_insurer_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/insurer/client_submit_request_must_support_insurer_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/insurer/client_submit_response_must_support_insurer_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_client_inquire_must_support_group.rb +1 -1
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_client_inquire_response_must_support_group.rb +9 -31
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_client_submit_must_support_group.rb +1 -1
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_client_submit_response_must_support_group.rb +10 -32
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_inquiry_request_bundle/client_inquire_request_must_support_pas_inquiry_request_bundle_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_inquiry_response_bundle/client_inquire_response_must_support_pas_inquiry_response_bundle_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_request_bundle/client_submit_request_must_support_pas_request_bundle_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/pas_response_bundle/client_submit_response_must_support_pas_response_bundle_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner/client_inquire_request_must_support_practitioner_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner/client_inquire_response_must_support_practitioner_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner/client_submit_request_must_support_practitioner_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner/client_submit_response_must_support_practitioner_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner_role/client_inquire_request_must_support_practitioner_role_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner_role/client_inquire_response_must_support_practitioner_role_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner_role/client_submit_request_must_support_practitioner_role_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/practitioner_role/client_submit_response_must_support_practitioner_role_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/requestor/client_inquire_request_must_support_requestor_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/requestor/client_inquire_response_must_support_requestor_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/requestor/client_submit_request_must_support_requestor_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/requestor/client_submit_response_must_support_requestor_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/subscriber/client_inquire_request_must_support_subscriber_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/subscriber/client_submit_request_must_support_subscriber_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/beneficiary/client_inquire_response_must_support_beneficiary_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/beneficiary/client_submit_response_must_support_beneficiary_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/claim_inquiry/client_inquire_request_must_support_claim_inquiry_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/claim_update/client_submit_request_must_support_claim_update_test.rb +3 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/claiminquiryresponse/client_inquire_response_must_support_claiminquiryresponse_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/claimresponse/client_submit_response_must_support_claimresponse_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/communication_request/client_submit_response_must_support_communication_request_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/insurer/client_inquire_response_must_support_insurer_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/insurer/client_submit_response_must_support_insurer_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/pas_client_inquire_must_support_group.rb +8 -6
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/pas_client_inquire_response_must_support_group.rb +9 -31
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/pas_client_submit_must_support_group.rb +13 -9
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/pas_client_submit_response_must_support_group.rb +10 -32
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/pas_inquiry_response_bundle/client_inquire_response_must_support_pas_inquiry_response_bundle_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/pas_response_bundle/client_submit_response_must_support_pas_response_bundle_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/practitioner/client_inquire_response_must_support_practitioner_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/practitioner/client_submit_response_must_support_practitioner_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/practitioner_role/client_inquire_response_must_support_practitioner_role_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/practitioner_role/client_submit_response_must_support_practitioner_role_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/requestor/client_inquire_response_must_support_requestor_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/requestor/client_submit_response_must_support_requestor_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/jobs/send_pas_subscription_notification.rb +64 -3
- data/lib/davinci_pas_test_kit/client/pas_client_subscription_pas_conformance_test.rb +4 -3
- data/lib/davinci_pas_test_kit/client/registration/abstract_configuration_other_display_test.rb +6 -4
- data/lib/davinci_pas_test_kit/client/registration/abstract_configuration_smart_display_test.rb +8 -4
- data/lib/davinci_pas_test_kit/client/registration/abstract_configuration_udap_display_test.rb +9 -4
- data/lib/davinci_pas_test_kit/client/registration/abstract_other_auth_attest_test.rb +5 -4
- data/lib/davinci_pas_test_kit/client/request_count_gating.rb +14 -0
- data/lib/davinci_pas_test_kit/client/response_generator.rb +50 -9
- data/lib/davinci_pas_test_kit/client/session_identification.rb +26 -7
- data/lib/davinci_pas_test_kit/client/subscription_notification_trigger.rb +80 -0
- data/lib/davinci_pas_test_kit/client/subscription_setup_requirement.rb +59 -0
- data/lib/davinci_pas_test_kit/client/user_input_response.rb +50 -10
- data/lib/davinci_pas_test_kit/client/v2.0.1/client_suite.rb +30 -15
- data/lib/davinci_pas_test_kit/client/v2.0.1/must_support/pas_client_must_support_request_profiles_test.rb +2 -2
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_approval_group.rb +8 -7
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_auth_smart_group.rb +4 -4
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_auth_udap_group.rb +4 -4
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_denial_group.rb +8 -7
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_must_support_group.rb +38 -52
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_pended_group.rb +28 -22
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_registration_group.rb +2 -2
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_subscription_setup_group.rb +2 -2
- data/lib/davinci_pas_test_kit/client/v2.0.1/pas_client_workflows_group.rb +2 -2
- data/lib/davinci_pas_test_kit/client/v2.0.1/workflows/pas_client_inquire_request_bundle_validation_test.rb +15 -21
- data/lib/davinci_pas_test_kit/client/v2.0.1/workflows/pas_client_inquire_response_bundle_validation_test.rb +29 -29
- data/lib/davinci_pas_test_kit/client/v2.0.1/workflows/pas_client_pended_submit_test.rb +49 -40
- data/lib/davinci_pas_test_kit/client/v2.0.1/workflows/pas_client_request_bundle_validation_test.rb +15 -21
- data/lib/davinci_pas_test_kit/client/v2.0.1/workflows/pas_client_response_bundle_validation_test.rb +29 -29
- data/lib/davinci_pas_test_kit/client/v2.2.1/attestations/attestation_instructions.rb +10 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/attestations/client_data_element_expectations_attestation_test.rb +44 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/attestations/client_provider_review_attestation_test.rb +45 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/attestations/client_security_attestation_test.rb +42 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/attestations/client_subscription_error_recovery_attestation_test.rb +42 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/client_suite.rb +64 -12
- data/lib/davinci_pas_test_kit/client/v2.2.1/error_handling/pas_client_operation_failure_submit_test.rb +20 -10
- data/lib/davinci_pas_test_kit/client/v2.2.1/error_handling/pas_client_operation_outcome_validation_test.rb +11 -5
- data/lib/davinci_pas_test_kit/client/v2.2.1/error_handling/pas_client_processing_error_response_validation_test.rb +21 -12
- data/lib/davinci_pas_test_kit/client/v2.2.1/error_handling/pas_client_processing_error_submit_test.rb +19 -8
- data/lib/davinci_pas_test_kit/client/v2.2.1/must_support/must_support_with_attestation_option.rb +90 -40
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_approval_group.rb +12 -11
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_attestations_group.rb +32 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_auth_smart_group.rb +4 -4
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_auth_udap_group.rb +4 -4
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_claim_updates_group.rb +24 -6
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_denial_group.rb +12 -10
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_modification_group.rb +13 -14
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_must_support_group.rb +55 -59
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_operation_failure_group.rb +8 -5
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_pended_group.rb +53 -41
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_processing_error_group.rb +9 -7
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_registration_group.rb +2 -2
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_subscription_setup_group.rb +9 -4
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_subscription_update_delete_group.rb +57 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_workflows_group.rb +22 -2
- data/lib/davinci_pas_test_kit/client/v2.2.1/subscription/pas_client_subscription_create_test.rb +2 -1
- data/lib/davinci_pas_test_kit/client/v2.2.1/subscription/pas_client_subscription_put_update_pas_conformance_test.rb +49 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/subscription/pas_client_subscription_update_delete_test.rb +12 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_claim_update_referenced_resources_test.rb +5 -6
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_claim_update_submit_tests.rb +82 -56
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_inquire_request_bundle_validation_test.rb +17 -20
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_inquire_response_bundle_validation_test.rb +59 -27
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_modification_verification_test.rb +0 -3
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_pended_send_notification_test.rb +138 -0
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_pended_submit_test.rb +32 -85
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_request_bundle_validation_test.rb +16 -21
- data/lib/davinci_pas_test_kit/client/v2.2.1/workflows/pas_client_response_bundle_validation_test.rb +27 -27
- data/lib/davinci_pas_test_kit/cross_suite/fhirpath_utils.rb +13 -3
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/beneficiary/metadata.yml +4 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claim_inquiry/metadata.yml +15 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claim_update/metadata.yml +17 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claiminquiryresponse/metadata.yml +15 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/claimresponse/metadata.yml +15 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/communication_request/metadata.yml +4 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/coverage/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/device_request/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/encounter/metadata.yml +3 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/insurer/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/medication_request/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/metadata.yml +143 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/nutrition_order/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_inquiry_request_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_inquiry_response_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_request_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/pas_response_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/practitioner/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/practitioner_role/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/requestor/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/service_request/metadata.yml +3 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/subscriber/metadata.yml +4 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.0.1/task/metadata.yml +1 -4
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/beneficiary/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claim_inquiry/metadata.yml +23 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claim_update/metadata.yml +31 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claiminquiryresponse/metadata.yml +42 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/claimresponse/metadata.yml +42 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/communication_request/metadata.yml +4 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/coverage/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/device_request/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/encounter/metadata.yml +3 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/insurer/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/medication_request/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/metadata.yml +265 -1
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/nutrition_order/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_inquiry_request_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_inquiry_response_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_request_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/pas_response_bundle/metadata.yml +2 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/practitioner/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/practitioner_role/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/requestor/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/service_request/metadata.yml +3 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/subscriber/metadata.yml +1 -0
- data/lib/davinci_pas_test_kit/cross_suite/generated/v2.2.1/task/metadata.yml +4 -4
- data/lib/davinci_pas_test_kit/cross_suite/pas_bundle_validation.rb +570 -312
- data/lib/davinci_pas_test_kit/cross_suite/pas_constants.rb +13 -0
- data/lib/davinci_pas_test_kit/cross_suite/pas_datatype_constraints.rb +166 -0
- data/lib/davinci_pas_test_kit/cross_suite/pas_subscription_verification.rb +8 -4
- data/lib/davinci_pas_test_kit/cross_suite/referenced_resource_presence_validation.rb +141 -0
- data/lib/davinci_pas_test_kit/cross_suite/response_selection_utils.rb +39 -21
- data/lib/davinci_pas_test_kit/cross_suite/tags.rb +11 -6
- data/lib/davinci_pas_test_kit/cross_suite/validator_configuration.rb +16 -0
- data/lib/davinci_pas_test_kit/cross_suite/validator_suppressions.rb +210 -146
- data/lib/davinci_pas_test_kit/docs/demo/PAS Client Suite Demonstration.postman_collection.json +7 -7
- data/lib/davinci_pas_test_kit/ext/inferno_core/runnable.rb +1 -0
- data/lib/davinci_pas_test_kit/generator/client_must_support_group_generator.rb +47 -16
- data/lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb +17 -0
- data/lib/davinci_pas_test_kit/generator/must_support_test_generator.rb +14 -2
- data/lib/davinci_pas_test_kit/generator/pas_must_support_metadata_extractor.rb +1 -2
- data/lib/davinci_pas_test_kit/generator/profile_metadata.rb +1 -1
- data/lib/davinci_pas_test_kit/generator/server_must_support_group_generator.rb +23 -0
- data/lib/davinci_pas_test_kit/generator/server_suite_generator.rb +8 -7
- data/lib/davinci_pas_test_kit/generator/templates/client_must_support_group.rb.erb +22 -3
- data/lib/davinci_pas_test_kit/generator/templates/client_must_support_response_group.rb.erb +7 -16
- data/lib/davinci_pas_test_kit/generator/templates/must_support.rb.erb +11 -10
- data/lib/davinci_pas_test_kit/generator/templates/server_must_support_group.rb.erb +22 -0
- data/lib/davinci_pas_test_kit/generator/templates/server_suite.rb.erb +9 -11
- data/lib/davinci_pas_test_kit/generator/templates/use_case_group.rb.erb +3 -0
- data/lib/davinci_pas_test_kit/generator/use_case_group_generator.rb +19 -13
- data/lib/davinci_pas_test_kit/parameters_helper.rb +13 -5
- data/lib/davinci_pas_test_kit/pas_notification_conformance_test.rb +2 -2
- data/lib/davinci_pas_test_kit/requirements/davinci_pas_test_kit_requirements.csv +14 -7
- data/lib/davinci_pas_test_kit/requirements/generated/davinci_pas_client_suite_v201_requirements_coverage.csv +21 -21
- data/lib/davinci_pas_test_kit/requirements/generated/davinci_pas_client_suite_v221_requirements_coverage.csv +30 -26
- data/lib/davinci_pas_test_kit/requirements/generated/davinci_pas_server_suite_v221_requirements_coverage.csv +39 -33
- data/lib/davinci_pas_test_kit/requirements/hl7.fhir.us.davinci-pas_2.2.1_requirements.xlsx +0 -0
- data/lib/davinci_pas_test_kit/server/claim_operation_logic.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/beneficiary/server_inquire_request_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/beneficiary/server_inquire_response_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/beneficiary/server_submit_request_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/beneficiary/server_submit_response_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/claim_inquiry/server_inquire_request_must_support_claim_inquiry_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/claim_update/server_submit_request_must_support_claim_update_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/claiminquiryresponse/server_inquire_response_must_support_claiminquiryresponse_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/claimresponse/server_submit_response_must_support_claimresponse_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/communication_request/server_submit_response_must_support_communication_request_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/coverage/server_inquire_request_must_support_coverage_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/coverage/server_submit_request_must_support_coverage_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/encounter/server_submit_request_must_support_encounter_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/insurer/server_inquire_request_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/insurer/server_inquire_response_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/insurer/server_submit_request_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/insurer/server_submit_response_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_inquiry_request_bundle/server_inquire_request_must_support_pas_inquiry_request_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_inquiry_response_bundle/server_inquire_response_must_support_pas_inquiry_response_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_request_bundle/server_submit_request_must_support_pas_request_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_response_bundle/server_submit_response_must_support_pas_response_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_server_approval_use_case_group.rb +4 -3
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_server_denial_use_case_group.rb +4 -3
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/pas_server_pended_use_case_group.rb +7 -6
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner/server_inquire_request_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner/server_inquire_response_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner/server_submit_request_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner/server_submit_response_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner_role/server_inquire_request_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner_role/server_inquire_response_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner_role/server_submit_request_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/practitioner_role/server_submit_response_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/requestor/server_inquire_request_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/requestor/server_inquire_response_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/requestor/server_submit_request_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/requestor/server_submit_response_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/server_suite.rb +9 -11
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/subscriber/server_inquire_request_must_support_subscriber_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/subscriber/server_submit_request_must_support_subscriber_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/task/server_inquire_response_must_support_task_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.0.1/task/server_submit_response_must_support_task_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/beneficiary/server_inquire_request_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/beneficiary/server_inquire_response_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/beneficiary/server_submit_request_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/beneficiary/server_submit_response_must_support_beneficiary_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/claim_inquiry/server_inquire_request_must_support_claim_inquiry_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/claim_update/server_submit_request_must_support_claim_update_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/claiminquiryresponse/server_inquire_response_must_support_claiminquiryresponse_test.rb +3 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/claimresponse/server_submit_response_must_support_claimresponse_test.rb +3 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/communication_request/server_submit_response_must_support_communication_request_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/coverage/server_inquire_request_must_support_coverage_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/coverage/server_submit_request_must_support_coverage_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/encounter/server_submit_request_must_support_encounter_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/insurer/server_inquire_request_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/insurer/server_inquire_response_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/insurer/server_submit_request_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/insurer/server_submit_response_must_support_insurer_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_inquiry_request_bundle/server_inquire_request_must_support_pas_inquiry_request_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_inquiry_response_bundle/server_inquire_response_must_support_pas_inquiry_response_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_request_bundle/server_submit_request_must_support_pas_request_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_response_bundle/server_submit_response_must_support_pas_response_bundle_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_approval_use_case_group.rb +5 -3
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_denial_use_case_group.rb +5 -3
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_must_support_group.rb +12 -0
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/pas_server_pended_use_case_group.rb +9 -4
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner/server_inquire_request_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner/server_inquire_response_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner/server_submit_request_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner/server_submit_response_must_support_practitioner_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner_role/server_inquire_request_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner_role/server_inquire_response_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner_role/server_submit_request_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/practitioner_role/server_submit_response_must_support_practitioner_role_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/requestor/server_inquire_request_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/requestor/server_inquire_response_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/requestor/server_submit_request_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/requestor/server_submit_response_must_support_requestor_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/server_suite.rb +9 -11
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/subscriber/server_inquire_request_must_support_subscriber_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/subscriber/server_submit_request_must_support_subscriber_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/task/server_inquire_response_must_support_task_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/generated/v2.2.1/task/server_submit_response_must_support_task_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/pas_claim_response_decision_test.rb +2 -2
- data/lib/davinci_pas_test_kit/server/server_request_bundle_validation_test.rb +4 -6
- data/lib/davinci_pas_test_kit/server/server_response_bundle_validation_test.rb +17 -10
- data/lib/davinci_pas_test_kit/server/v2.0.1/must_support/pas_server_must_support_request_profiles_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/v2.0.1/pas_server_subscription_setup.rb +1 -1
- data/lib/davinci_pas_test_kit/server/v2.2.1/claim_inquiry/server_claim_inquiry_response_tests.rb +89 -0
- data/lib/davinci_pas_test_kit/server/v2.2.1/must_support/pas_server_must_support_request_profiles_test.rb +1 -1
- data/lib/davinci_pas_test_kit/server/v2.2.1/pas_error_group.rb +2 -0
- data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_claim_inquiry_responses_group.rb +17 -0
- data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_claim_updates_group.rb +1 -1
- data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_no_custom_extensions_test.rb +241 -0
- data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_subscription_capability_statement_test.rb +40 -0
- data/lib/davinci_pas_test_kit/server/v2.2.1/pas_server_subscription_setup.rb +15 -10
- data/lib/davinci_pas_test_kit/server/v2.2.1/server_replaced_pa_inquire_reference_input_test.rb +63 -0
- data/lib/davinci_pas_test_kit/server/v2.2.1/server_replaced_pa_inquire_reference_test.rb +109 -0
- data/lib/davinci_pas_test_kit/version.rb +2 -2
- metadata +38 -13
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/task/client_inquire_response_must_support_task_test.rb +0 -45
- data/lib/davinci_pas_test_kit/client/generated/v2.0.1/task/client_submit_response_must_support_task_test.rb +0 -45
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/task/client_inquire_response_must_support_task_test.rb +0 -55
- data/lib/davinci_pas_test_kit/client/generated/v2.2.1/task/client_submit_response_must_support_task_test.rb +0 -55
- data/lib/davinci_pas_test_kit/client/v2.2.1/pas_client_error_handling_group.rb +0 -20
data/lib/davinci_pas_test_kit/docs/demo/PAS Client Suite Demonstration.postman_collection.json
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"name": "Approval
|
|
44
|
+
"name": "Approval Scenario",
|
|
45
45
|
"item": [
|
|
46
46
|
{
|
|
47
47
|
"name": "Prior Auth Request For Approval",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
],
|
|
57
57
|
"body": {
|
|
58
58
|
"mode": "raw",
|
|
59
|
-
"raw": "{\n \"resourceType\": \"Bundle\",\n \"id\": \"ReferralAuthorizationBundleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"\n ]\n },\n \"identifier\": {\n \"system\": \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\": \"A12345\"\n },\n \"type\": \"collection\",\n \"timestamp\": \"2005-05-02T11:01:00+05:00\",\n \"entry\": [\n {\n \"fullUrl\": \"http://notreal.com/fhir/Claim/ReferralAuthorizationExample\",\n \"resource\": {\n \"resourceType\": \"Claim\",\n \"id\": \"ReferralAuthorizationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Claim</b><a name=\\\"ReferralAuthorizationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Claim "ReferralAuthorizationExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-claim.html\\\">PAS Claim</a></p></div><p><b>LevelOfServiceCode</b>: Urgent <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1338#U)</span></p><p><b>identifier</b>: id:\\u00a0111099</p><p><b>status</b>: active</p><p><b>type</b>: Professional <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-claim-type.html\\\">Claim Type Codes</a>#professional)</span></p><p><b>use</b>: preauthorization</p><p><b>patient</b>: Patient/SubscriberExample</p><p><b>created</b>: 2005-05-02 11:01:00+0500</p><p><b>insurer</b>: Organization/InsurerExample</p><p><b>provider</b>: Organization/UMOExample</p><p><b>priority</b>: Normal <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-processpriority.html\\\">Process Priority Codes</a>#normal)</span></p><h3>CareTeams</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Provider</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>PractitionerRole/ReferralPractitionerRoleExample</td></tr></table><h3>Diagnoses</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Diagnosis[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>G89.4 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-icd10CM.html\\\">International Classification of Diseases, 10th Revision, Clinical Modification (ICD-10-CM)</a>#G89.4)</span></td></tr></table><h3>Insurances</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Sequence</b></td><td><b>Focal</b></td><td><b>Coverage</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>1</td><td>true</td><td>Coverage/InsuranceExample</td></tr></table><h3>Items</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>CareTeamSequence</b></td><td><b>DiagnosisSequence</b></td><td><b>Category</b></td><td><b>ProductOrService</b></td><td><b>Location[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>, , , , , , , , , </td><td>1</td><td>1</td><td>1</td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>11 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-CMSPlaceofServiceCodes.html\\\">CMS Place of Service Codes (POS)</a>#11)</span></td></tr></table></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-levelOfServiceCode\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1338\",\n \"code\": \"U\",\n \"display\": \"Urgent\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierJurisdiction\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.usps.com/\",\n \"code\": \"MA\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierSubDepartment\",\n \"valueString\": \"223412\"\n }\n ],\n \"system\": \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\": \"111099\",\n \"assigner\": {\n \"identifier\": {\n \"system\": \"http://notreal.com/USER_ASSIGNED\",\n \"value\": \"9012345678\"\n }\n }\n }\n ],\n \"status\": \"active\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\": \"professional\"\n }\n ]\n },\n \"use\": \"preauthorization\",\n \"patient\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"created\": \"2005-05-02T11:01:00+05:00\",\n \"insurer\": {\n \"reference\": \"Organization/InsurerExample\"\n },\n \"provider\": {\n \"reference\": \"Organization/UMOExample\"\n },\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\": \"normal\"\n }\n ]\n },\n \"careTeam\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-careTeamClaimScope\",\n \"valueBoolean\": true\n }\n ],\n \"sequence\": 1,\n \"provider\": {\n \"reference\": \"PractitionerRole/ReferralPractitionerRoleExample\"\n }\n }\n ],\n \"diagnosis\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-diagnosisRecordedDate\",\n \"valueDate\": \"2021-05-10\"\n }\n ],\n \"sequence\": 1,\n \"diagnosisCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"G89.4\"\n }\n ]\n }\n }\n ],\n \"insurance\": [\n {\n \"sequence\": 1,\n \"focal\": true,\n \"coverage\": {\n \"reference\": \"Coverage/InsuranceExample\"\n }\n }\n ],\n \"item\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemTraceNumber\",\n \"valueIdentifier\": {\n \"system\": \"http://notreal.com/ITEM_TRACE_NUMBER\",\n \"value\": \"1122334\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\": \"1122445\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\": \"9988311\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1525\",\n \"code\": \"SC\",\n \"display\": \"Specialty Care Review\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1322\",\n \"code\": \"I\",\n \"display\": \"Initial\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-requestedService\",\n \"valueReference\": {\n \"reference\": \"ServiceRequest/ReferralRequestExample\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-epsdtIndicator\",\n \"valueBoolean\": false\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeResidentialStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1345\",\n \"code\": \"2\",\n \"display\": \"Newly Admitted\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeLevelOfCare\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1337\",\n \"code\": \"2\",\n \"display\": \"Intermediate Care Facility (ICF)\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-revenueUnitRateLimit\",\n \"valueDecimal\": 100\n }\n ],\n \"sequence\": 1,\n \"careTeamSequence\": [\n 1\n ],\n \"diagnosisSequence\": [\n 1\n ],\n \"category\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"productOrService\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"locationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\": \"11\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/UMOExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"UMOExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"UMOExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization "UMOExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-requestor.html\\\">PAS Requestor Organization</a></p></div><p><b>identifier</b>: id:\\u00a0<a href="http://terminology.hl7.org/5.0.0/NamingSystem-npi.html">NPI</a>#8189991234</p><p><b>active</b>: true</p><p><b>type</b>: X3 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#X3)</span></p><p><b>name</b>: DR. JOE SMITH CORPORATION</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"8189991234\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"X3\"\n }\n ]\n }\n ],\n \"name\": \"DR. JOE SMITH CORPORATION\",\n \"address\": [\n {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/InsurerExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"InsurerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"InsurerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization "InsurerExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-insurer.html\\\">PAS Insurer Organization</a></p></div><p><b>identifier</b>: id:\\u00a0<a href="http://terminology.hl7.org/5.0.0/NamingSystem-npi.html">NPI</a>#789312</p><p><b>active</b>: true</p><p><b>type</b>: PR <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#PR)</span></p><p><b>name</b>: MARYLAND CAPITAL INSURANCE COMPANY</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"789312\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"PR\"\n }\n ]\n }\n ],\n \"name\": \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Coverage/InsuranceExample\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"InsuranceExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Coverage</b><a name=\\\"InsuranceExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Coverage "InsuranceExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-coverage.html\\\">PAS Coverage</a></p></div><p><b>status</b>: active</p><p><b>beneficiary</b>: Patient/SubscriberExample</p><p><b>payor</b>: Organization/InsurerExample</p></div>\"\n },\n \"status\": \"active\",\n \"beneficiary\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/InsurerExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Patient/SubscriberExample\",\n \"resource\": {\n \"resourceType\": \"Patient\",\n \"id\": \"SubscriberExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Patient</b><a name=\\\"SubscriberExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Patient "SubscriberExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-subscriber.html\\\">PAS Subscriber Patient</a></p></div><p><b>MilitaryStatus</b>: RU <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (584#RU)</span></p><p><b>identifier</b>: id:\\u00a012345678901</p><p><b>name</b>: JOE SMITH </p><p><b>gender</b>: male</p></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/584\",\n \"code\": \"RU\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"system\": \"http://notreal.com/MIN\",\n \"value\": \"12345678901\"\n }\n ],\n \"name\": [\n {\n \"family\": \"SMITH\",\n \"given\": [\n \"JOE\"\n ]\n }\n ],\n \"gender\": \"male\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/ServiceRequest/ReferralRequestExample\",\n \"resource\": {\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"ReferralRequestExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-servicerequest\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: ServiceRequest</b><a name=\\\"ReferralRequestExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource ServiceRequest "ReferralRequestExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-servicerequest.html\\\">PAS Service Request</a></p></div><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>code</b>: Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></p><p><b>quantity</b>: 1 visit<span style=\\\"background: LightGoldenRodYellow\\\"> (Details: UCUM code 1 = '1')</span></p><p><b>subject</b>: Patient/SubscriberExample</p></div>\"\n },\n \"status\": \"active\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"quantityQuantity\": {\n \"value\": 1,\n \"unit\": \"visit\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"1\"\n },\n \"subject\": {\n \"reference\": \"Patient/SubscriberExample\"\n }\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/PractitionerRole/ReferralPractitionerRoleExample\",\n \"resource\": {\n \"resourceType\": \"PractitionerRole\",\n \"id\": \"ReferralPractitionerRoleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitionerrole\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: PractitionerRole</b><a name=\\\"ReferralPractitionerRoleExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource PractitionerRole "ReferralPractitionerRoleExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitionerrole.html\\\">PAS PractitionerRole</a></p></div><p><b>practitioner</b>: Practitioner/ReferralPractitionerExample</p><p><b>location</b>: Location/ReferralLocationExample</p></div>\"\n },\n \"practitioner\": {\n \"reference\": \"Practitioner/ReferralPractitionerExample\"\n },\n \"location\": [\n {\n \"reference\": \"Location/ReferralLocationExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Practitioner/ReferralPractitionerExample\",\n \"resource\": {\n \"resourceType\": \"Practitioner\",\n \"id\": \"ReferralPractitionerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitioner\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Practitioner</b><a name=\\\"ReferralPractitionerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Practitioner "ReferralPractitionerExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitioner.html\\\">PAS Practitioner</a></p></div><p><b>identifier</b>: id:\\u00a0<a href="http://terminology.hl7.org/5.0.0/NamingSystem-npi.html">NPI</a>#987654321</p><p><b>name</b>: SUSAN WATSON </p><p><b>telecom</b>: ph: 4029993456</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"987654321\"\n }\n ],\n \"name\": [\n {\n \"family\": \"WATSON\",\n \"given\": [\n \"SUSAN\"\n ]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"4029993456\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Location/ReferralLocationExample\",\n \"resource\": {\n \"resourceType\": \"Location\",\n \"id\": \"ReferralLocationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-location\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Location</b><a name=\\\"ReferralLocationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Location "ReferralLocationExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-location.html\\\">PAS Location Profile</a></p></div><p><b>name</b>: REFERRAL CLINIC</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"name\": \"REFERRAL CLINIC\",\n \"address\": {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n }\n }\n ]\n }",
|
|
59
|
+
"raw": "{\n \"resourceType\": \"Bundle\",\n \"id\": \"ReferralAuthorizationBundleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"\n ]\n },\n \"identifier\": {\n \"system\": \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\": \"A12345\"\n },\n \"type\": \"collection\",\n \"timestamp\": \"2005-05-02T11:01:00+05:00\",\n \"entry\": [\n {\n \"fullUrl\": \"http://notreal.com/fhir/Claim/ReferralAuthorizationExample\",\n \"resource\": {\n \"resourceType\": \"Claim\",\n \"id\": \"ReferralAuthorizationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Claim</b><a name=\\\"ReferralAuthorizationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Claim "ReferralAuthorizationExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-claim.html\\\">PAS Claim</a></p></div><p><b>LevelOfServiceCode</b>: Urgent <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1338#U)</span></p><p><b>identifier</b>: id:\\u00a0111099</p><p><b>status</b>: active</p><p><b>type</b>: Professional <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-claim-type.html\\\">Claim Type Codes</a>#professional)</span></p><p><b>use</b>: preauthorization</p><p><b>patient</b>: Patient/SubscriberExample</p><p><b>created</b>: 2005-05-02 11:01:00+0500</p><p><b>insurer</b>: Organization/InsurerExample</p><p><b>provider</b>: Organization/UMOExample</p><p><b>priority</b>: Normal <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-processpriority.html\\\">Process Priority Codes</a>#normal)</span></p><h3>CareTeams</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Provider</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>PractitionerRole/ReferralPractitionerRoleExample</td></tr></table><h3>Diagnoses</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>Diagnosis[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td/><td>1</td><td>G89.4 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-icd10CM.html\\\">International Classification of Diseases, 10th Revision, Clinical Modification (ICD-10-CM)</a>#G89.4)</span></td></tr></table><h3>Insurances</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Sequence</b></td><td><b>Focal</b></td><td><b>Coverage</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>1</td><td>true</td><td>Coverage/InsuranceExample</td></tr></table><h3>Items</h3><table class=\\\"grid\\\"><tr><td style=\\\"display: none\\\">-</td><td><b>Extension</b></td><td><b>Sequence</b></td><td><b>CareTeamSequence</b></td><td><b>DiagnosisSequence</b></td><td><b>Category</b></td><td><b>ProductOrService</b></td><td><b>Location[x]</b></td></tr><tr><td style=\\\"display: none\\\">*</td><td>, , , , , , , , , </td><td>1</td><td>1</td><td>1</td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></td><td>11 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (<a href=\\\"http://terminology.hl7.org/5.0.0/CodeSystem-CMSPlaceofServiceCodes.html\\\">CMS Place of Service Codes (POS)</a>#11)</span></td></tr></table></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-levelOfServiceCode\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1338\",\n \"code\": \"U\",\n \"display\": \"Urgent\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierJurisdiction\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.usps.com/\",\n \"code\": \"MA\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-identifierSubDepartment\",\n \"valueString\": \"223412\"\n }\n ],\n \"system\": \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\": \"111099\",\n \"assigner\": {\n \"identifier\": {\n \"system\": \"http://notreal.com/USER_ASSIGNED\",\n \"value\": \"9012345678\"\n }\n }\n }\n ],\n \"status\": \"active\",\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\": \"professional\"\n }\n ]\n },\n \"use\": \"preauthorization\",\n \"patient\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"created\": \"2005-05-02T11:01:00+05:00\",\n \"insurer\": {\n \"reference\": \"Organization/InsurerExample\"\n },\n \"provider\": {\n \"reference\": \"Organization/UMOExample\"\n },\n \"priority\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\": \"normal\"\n }\n ]\n },\n \"careTeam\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-careTeamClaimScope\",\n \"valueBoolean\": true\n }\n ],\n \"sequence\": 1,\n \"provider\": {\n \"reference\": \"PractitionerRole/ReferralPractitionerRoleExample\"\n }\n }\n ],\n \"diagnosis\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-diagnosisRecordedDate\",\n \"valueDate\": \"2021-05-10\"\n }\n ],\n \"sequence\": 1,\n \"diagnosisCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/icd-10-cm\",\n \"code\": \"G89.4\"\n }\n ]\n }\n }\n ],\n \"insurance\": [\n {\n \"sequence\": 1,\n \"focal\": true,\n \"coverage\": {\n \"reference\": \"Coverage/InsuranceExample\"\n }\n }\n ],\n \"item\": [\n {\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-itemTraceNumber\",\n \"valueIdentifier\": {\n \"system\": \"http://notreal.com/ITEM_TRACE_NUMBER\",\n \"value\": \"1122334\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\": \"1122445\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\": \"9988311\"\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1525\",\n \"code\": \"SC\",\n \"display\": \"Specialty Care Review\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1322\",\n \"code\": \"I\",\n \"display\": \"Initial\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-requestedService\",\n \"valueReference\": {\n \"reference\": \"ServiceRequest/ReferralRequestExample\"\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-epsdtIndicator\",\n \"valueBoolean\": false\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeResidentialStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1345\",\n \"code\": \"2\",\n \"display\": \"Newly Admitted\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-nursingHomeLevelOfCare\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1337\",\n \"code\": \"2\",\n \"display\": \"Intermediate Care Facility (ICF)\"\n }\n ]\n }\n },\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-revenueUnitRateLimit\",\n \"valueDecimal\": 100\n }\n ],\n \"sequence\": 1,\n \"careTeamSequence\": [\n 1\n ],\n \"diagnosisSequence\": [\n 1\n ],\n \"category\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"productOrService\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"locationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\": \"11\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/UMOExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"UMOExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"UMOExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization "UMOExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-requestor.html\\\">PAS Requestor Organization</a></p></div><p><b>identifier</b>: id:\\u00a0<a href="http://terminology.hl7.org/5.0.0/NamingSystem-npi.html">NPI</a>#8189991234</p><p><b>active</b>: true</p><p><b>type</b>: X3 <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#X3)</span></p><p><b>name</b>: DR. JOE SMITH CORPORATION</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"8189991234\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"X3\"\n }\n ]\n }\n ],\n \"name\": \"DR. JOE SMITH CORPORATION\",\n \"address\": [\n {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Organization/InsurerExample\",\n \"resource\": {\n \"resourceType\": \"Organization\",\n \"id\": \"InsurerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Organization</b><a name=\\\"InsurerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Organization "InsurerExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-insurer.html\\\">PAS Insurer Organization</a></p></div><p><b>identifier</b>: id:\\u00a0<a href="http://terminology.hl7.org/5.0.0/NamingSystem-npi.html">NPI</a>#789312</p><p><b>active</b>: true</p><p><b>type</b>: PR <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (98#PR)</span></p><p><b>name</b>: MARYLAND CAPITAL INSURANCE COMPANY</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"8383066098\"\n }\n ],\n \"active\": true,\n \"type\": [\n {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/98\",\n \"code\": \"PR\"\n }\n ]\n }\n ],\n \"name\": \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Coverage/InsuranceExample\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"InsuranceExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Coverage</b><a name=\\\"InsuranceExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Coverage "InsuranceExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-coverage.html\\\">PAS Coverage</a></p></div><p><b>status</b>: active</p><p><b>beneficiary</b>: Patient/SubscriberExample</p><p><b>payor</b>: Organization/InsurerExample</p></div>\"\n },\n \"status\": \"active\",\n \"beneficiary\": {\n \"reference\": \"Patient/SubscriberExample\"\n },\n \"payor\": [\n {\n \"reference\": \"Organization/InsurerExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Patient/SubscriberExample\",\n \"resource\": {\n \"resourceType\": \"Patient\",\n \"id\": \"SubscriberExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"\n ]\n },\n \"text\": {\n \"status\": \"extensions\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Patient</b><a name=\\\"SubscriberExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Patient "SubscriberExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-subscriber.html\\\">PAS Subscriber Patient</a></p></div><p><b>MilitaryStatus</b>: RU <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (584#RU)</span></p><p><b>identifier</b>: id:\\u00a012345678901</p><p><b>name</b>: JOE SMITH </p><p><b>gender</b>: male</p></div>\"\n },\n \"extension\": [\n {\n \"url\": \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/584\",\n \"code\": \"RU\"\n }\n ]\n }\n }\n ],\n \"identifier\": [\n {\n \"system\": \"http://notreal.com/MIN\",\n \"value\": \"12345678901\"\n }\n ],\n \"name\": [\n {\n \"family\": \"SMITH\",\n \"given\": [\n \"JOE\"\n ]\n }\n ],\n \"gender\": \"male\"\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/ServiceRequest/ReferralRequestExample\",\n \"resource\": {\n \"resourceType\": \"ServiceRequest\",\n \"id\": \"ReferralRequestExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-servicerequest\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: ServiceRequest</b><a name=\\\"ReferralRequestExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource ServiceRequest "ReferralRequestExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-servicerequest.html\\\">PAS Service Request</a></p></div><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>code</b>: Consultation <span style=\\\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\\\"> (1365#3)</span></p><p><b>quantity</b>: 1 visit<span style=\\\"background: LightGoldenRodYellow\\\"> (Details: UCUM code 1 = '1')</span></p><p><b>subject</b>: Patient/SubscriberExample</p></div>\"\n },\n \"status\": \"active\",\n \"intent\": \"order\",\n \"code\": {\n \"coding\": [\n {\n \"system\": \"https://codesystem.x12.org/005010/1365\",\n \"code\": \"3\",\n \"display\": \"Consultation\"\n }\n ]\n },\n \"quantityQuantity\": {\n \"value\": 1,\n \"unit\": \"visit\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"1\"\n },\n \"subject\": {\n \"reference\": \"Patient/SubscriberExample\"\n }\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/PractitionerRole/ReferralPractitionerRoleExample\",\n \"resource\": {\n \"resourceType\": \"PractitionerRole\",\n \"id\": \"ReferralPractitionerRoleExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitionerrole\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: PractitionerRole</b><a name=\\\"ReferralPractitionerRoleExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource PractitionerRole "ReferralPractitionerRoleExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitionerrole.html\\\">PAS PractitionerRole</a></p></div><p><b>practitioner</b>: Practitioner/ReferralPractitionerExample</p><p><b>location</b>: Location/ReferralLocationExample</p></div>\"\n },\n \"practitioner\": {\n \"reference\": \"Practitioner/ReferralPractitionerExample\"\n },\n \"location\": [\n {\n \"reference\": \"Location/ReferralLocationExample\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Practitioner/ReferralPractitionerExample\",\n \"resource\": {\n \"resourceType\": \"Practitioner\",\n \"id\": \"ReferralPractitionerExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-practitioner\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Practitioner</b><a name=\\\"ReferralPractitionerExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Practitioner "ReferralPractitionerExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-practitioner.html\\\">PAS Practitioner</a></p></div><p><b>identifier</b>: id:\\u00a0<a href="http://terminology.hl7.org/5.0.0/NamingSystem-npi.html">NPI</a>#987654321</p><p><b>name</b>: SUSAN WATSON </p><p><b>telecom</b>: ph: 4029993456</p></div>\"\n },\n \"identifier\": [\n {\n \"system\": \"http://hl7.org/fhir/sid/us-npi\",\n \"value\": \"987654321\"\n }\n ],\n \"name\": [\n {\n \"family\": \"WATSON\",\n \"given\": [\n \"SUSAN\"\n ]\n }\n ],\n \"telecom\": [\n {\n \"system\": \"phone\",\n \"value\": \"4029993456\"\n }\n ]\n }\n },\n {\n \"fullUrl\": \"http://notreal.com/fhir/Location/ReferralLocationExample\",\n \"resource\": {\n \"resourceType\": \"Location\",\n \"id\": \"ReferralLocationExample\",\n \"meta\": {\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-location\"\n ]\n },\n \"text\": {\n \"status\": \"generated\",\n \"div\": \"<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p><b>Generated Narrative: Location</b><a name=\\\"ReferralLocationExample\\\"> </a></p><div style=\\\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\\\"><p style=\\\"margin-bottom: 0px\\\">Resource Location "ReferralLocationExample" </p><p style=\\\"margin-bottom: 0px\\\">Profile: <a href=\\\"StructureDefinition-profile-location.html\\\">PAS Location Profile</a></p></div><p><b>name</b>: REFERRAL CLINIC</p><p><b>address</b>: 111 1ST STREET SAN DIEGO CA 92101 US </p></div>\"\n },\n \"name\": \"REFERRAL CLINIC\",\n \"address\": {\n \"line\": [\n \"111 1ST STREET\"\n ],\n \"city\": \"SAN DIEGO\",\n \"state\": \"CA\",\n \"postalCode\": \"92101\",\n \"country\": \"US\"\n }\n }\n }\n ]\n }",
|
|
60
60
|
"options": {
|
|
61
61
|
"raw": {
|
|
62
62
|
"language": "json"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
"name": "Denial
|
|
84
|
+
"name": "Denial Scenario",
|
|
85
85
|
"item": [
|
|
86
86
|
{
|
|
87
87
|
"name": "Prior Auth Request For Denial",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
],
|
|
97
97
|
"body": {
|
|
98
98
|
"mode": "raw",
|
|
99
|
-
"raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"0a927577-c304-4d24-9837-bd8e4d116672\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"B12345\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T14:30:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"extension\" : [{\n \"extension\" : [{\n \"url\" : \"prognosis\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/923\",\n \"code\" : \"1\"\n }]\n }\n },\n {\n \"url\" : \"date\",\n \"valueDate\" : \"2005-05-02\"\n }],\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-homeHealthCareInformation\"\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"111366\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"5556667771\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2019-07-20T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"G0154\"\n }]\n }\n },\n {\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 2,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"B4184\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"
|
|
99
|
+
"raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"0a927577-c304-4d24-9837-bd8e4d116672\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"B12345\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T14:30:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"58bf54f2-9a96-43b2-93df-64078dd752f4\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"extension\" : [{\n \"extension\" : [{\n \"url\" : \"prognosis\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/923\",\n \"code\" : \"1\"\n }]\n }\n },\n {\n \"url\" : \"date\",\n \"valueDate\" : \"2005-05-02\"\n }],\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-homeHealthCareInformation\"\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"111366\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"5556667771\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2019-07-20T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"G0154\"\n }]\n }\n },\n {\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"HS\",\n \"display\" : \"Health Services Review\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n }],\n \"sequence\" : 2,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"42\",\n \"display\" : \"Home Health Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"B4184\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8383066098\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
|
|
100
100
|
"options": {
|
|
101
101
|
"raw": {
|
|
102
102
|
"language": "json"
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "Pended
|
|
124
|
+
"name": "Pended Scenario",
|
|
125
125
|
"item": [
|
|
126
126
|
{
|
|
127
127
|
"name": "Prior Auth Request For Pended",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
],
|
|
137
137
|
"body": {
|
|
138
138
|
"mode": "raw",
|
|
139
|
-
"raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"
|
|
139
|
+
"raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8383066098\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
|
|
140
140
|
"options": {
|
|
141
141
|
"raw": {
|
|
142
142
|
"language": "json"
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
],
|
|
172
172
|
"body": {
|
|
173
173
|
"mode": "raw",
|
|
174
|
-
"raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"
|
|
174
|
+
"raw": "{\n \"resourceType\" : \"Bundle\",\n \"id\" : \"60815928-c69f-4503-b0ce-e24d3c2a0591\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-pas-request-bundle\"]\n },\n \"identifier\" : {\n \"system\" : \"http://notreal.com/SUBMITTER_TRANSACTION_IDENTIFIER\",\n \"value\" : \"902834\"\n },\n \"type\" : \"collection\",\n \"timestamp\" : \"2005-05-02T11:01:00+05:00\",\n \"entry\" : [{\n \"fullUrl\" : \"urn:uuid:2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"resource\" : {\n \"resourceType\" : \"Claim\",\n \"id\" : \"2d84327e-1baf-4f68-ac42-41e5c8ad8803\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/PATIENT_EVENT_TRACE_NUMBER\",\n \"value\" : \"1263291\",\n \"assigner\" : {\n \"identifier\" : {\n \"system\" : \"http://notreal.com/USER_ASSIGNED\",\n \"value\" : \"99102388213\"\n }\n }\n }],\n \"status\" : \"active\",\n \"type\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/claim-type\",\n \"code\" : \"professional\"\n }]\n },\n \"use\" : \"preauthorization\",\n \"patient\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"created\" : \"2005-05-02T11:01:00+05:00\",\n \"insurer\" : {\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n },\n \"provider\" : {\n \"reference\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\"\n },\n \"priority\" : {\n \"coding\" : [{\n \"system\" : \"http://terminology.hl7.org/CodeSystem/processpriority\",\n \"code\" : \"normal\"\n }]\n },\n \"insurance\" : [{\n \"sequence\" : 1,\n \"focal\" : true,\n \"coverage\" : {\n \"reference\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\"\n }\n }],\n \"item\" : [{\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-serviceItemRequestType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1525\",\n \"code\" : \"IN\",\n \"display\" : \"Initial Medical Services Reservation\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-certificationType\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1322\",\n \"code\" : \"I\",\n \"display\" : \"Initial\"\n }]\n }\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-authorizationNumber\",\n \"valueString\" : \"2389983\"\n },\n {\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-administrationReferenceNumber\",\n \"valueString\" : \"12385668734\"\n }],\n \"sequence\" : 1,\n \"category\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/1365\",\n \"code\" : \"1\",\n \"display\" : \"Medical Care\"\n }]\n },\n \"productOrService\" : {\n \"coding\" : [{\n \"system\" : \"http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets\",\n \"code\" : \"99212\",\n \"display\" : \"Established Office Visit\"\n }]\n },\n \"servicedDate\" : \"2005-05-10\",\n \"locationCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set\",\n \"code\" : \"11\"\n }]\n }\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"b0881003-0d22-499d-840b-91dc7f6f4479\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-requestor\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8189991234\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"X3\"\n }]\n }],\n \"name\" : \"DR. JOE SMITH CORPORATION\",\n \"address\" : [{\n \"line\" : [\"111 1ST STREET\"],\n \"city\" : \"SAN DIEGO\",\n \"state\" : \"CA\",\n \"postalCode\" : \"92101\",\n \"country\" : \"US\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"resource\" : {\n \"resourceType\" : \"Organization\",\n \"id\" : \"ff7adc9d-8854-4947-874a-8b61bca953c1\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-insurer\"]\n },\n \"identifier\" : [{\n \"system\" : \"http://hl7.org/fhir/sid/us-npi\",\n \"value\" : \"8383066098\"\n }],\n \"active\" : true,\n \"type\" : [{\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/98\",\n \"code\" : \"PR\"\n }]\n }],\n \"name\" : \"MARYLAND CAPITAL INSURANCE COMPANY\"\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"resource\" : {\n \"resourceType\" : \"Coverage\",\n \"id\" : \"39f01aed-5a64-4301-8449-82b3d60f330c\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-coverage\"]\n },\n \"status\" : \"active\",\n \"beneficiary\" : {\n \"reference\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\"\n },\n \"payor\" : [{\n \"reference\" : \"urn:uuid:ff7adc9d-8854-4947-874a-8b61bca953c1\"\n }]\n }\n },\n {\n \"fullUrl\" : \"urn:uuid:0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"resource\" : {\n \"resourceType\" : \"Patient\",\n \"id\" : \"0b321e9e-571b-4f83-8cea-fa23424383bb\",\n \"meta\" : {\n \"profile\" : [\"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-subscriber\"]\n },\n \"extension\" : [{\n \"url\" : \"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-militaryStatus\",\n \"valueCodeableConcept\" : {\n \"coding\" : [{\n \"system\" : \"https://codesystem.x12.org/005010/584\",\n \"code\" : \"RU\"\n }]\n }\n }],\n \"identifier\" : [{\n \"system\" : \"http://notreal.com/MIN\",\n \"value\" : \"12345678901\"\n }],\n \"name\" : [{\n \"family\" : \"SMITH\",\n \"given\" : [\"JOE\"]\n }],\n \"gender\" : \"male\"\n }\n }]\n}",
|
|
175
175
|
"options": {
|
|
176
176
|
"raw": {
|
|
177
177
|
"language": "json"
|
|
@@ -12,7 +12,7 @@ module DaVinciPASTestKit
|
|
|
12
12
|
new(ig_metadata, 'submit', submit_request_profiles, base_client_output_dir).generate
|
|
13
13
|
|
|
14
14
|
submit_response_profiles = ig_metadata.profiles.select do |profile|
|
|
15
|
-
MustSupportTargetProfiles.
|
|
15
|
+
MustSupportTargetProfiles.client_submit_response_profile?(profile)
|
|
16
16
|
end
|
|
17
17
|
new(ig_metadata, 'submit', submit_response_profiles, base_client_output_dir, 'response').generate
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ module DaVinciPASTestKit
|
|
|
22
22
|
new(ig_metadata, 'inquire', inquire_request_profiles, base_client_output_dir).generate
|
|
23
23
|
|
|
24
24
|
inquire_response_profiles = ig_metadata.profiles.select do |profile|
|
|
25
|
-
MustSupportTargetProfiles.
|
|
25
|
+
MustSupportTargetProfiles.client_inquire_response_profile?(profile)
|
|
26
26
|
end
|
|
27
27
|
new(ig_metadata, 'inquire', inquire_response_profiles, base_client_output_dir, 'response').generate
|
|
28
28
|
end
|
|
@@ -147,17 +147,25 @@ module DaVinciPASTestKit
|
|
|
147
147
|
ig_version == 'v2.2.1'
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
# for now, disabling the attestation option and optional response tests. they are expected to be
|
|
151
|
+
# re-enabled for some ig versions in some form in the future, so leaving the structure in place.
|
|
152
|
+
def enable_lax_checks?
|
|
153
|
+
false
|
|
154
|
+
end
|
|
155
|
+
|
|
150
156
|
# The Claim (request) / ClaimResponse (response) profiles remain mandatory standalone tests.
|
|
151
157
|
def mandatory_profile?(profile_metadata)
|
|
152
158
|
%w[Claim ClaimResponse].include?(profile_metadata.resource)
|
|
153
159
|
end
|
|
154
160
|
|
|
155
|
-
# Response groups: pairs each per-profile test id with whether it should be marked optional
|
|
161
|
+
# Response groups: pairs each per-profile test id with whether it should be marked optional and
|
|
162
|
+
# whether it verifies response_verifies_requirement (only the ClaimResponse profile does).
|
|
156
163
|
def profile_tests
|
|
157
164
|
profiles.map do |profile_metadata|
|
|
158
165
|
{
|
|
159
166
|
id: test_id_for_profile(profile_metadata),
|
|
160
|
-
optional: optional_must_support_enabled? && !mandatory_profile?(profile_metadata)
|
|
167
|
+
optional: optional_must_support_enabled? && !mandatory_profile?(profile_metadata) && enable_lax_checks?,
|
|
168
|
+
verifies_response_requirement: mandatory_profile?(profile_metadata)
|
|
161
169
|
}
|
|
162
170
|
end
|
|
163
171
|
end
|
|
@@ -191,24 +199,47 @@ module DaVinciPASTestKit
|
|
|
191
199
|
target_profiles.map { |profile_metadata| test_file_for_profile(profile_metadata) }
|
|
192
200
|
end
|
|
193
201
|
|
|
202
|
+
# Requirement verified by the ClaimResponse per-profile test in response groups
|
|
203
|
+
# (clients SHALL be capable of receiving must support elements).
|
|
204
|
+
def response_verifies_requirement
|
|
205
|
+
case ig_version
|
|
206
|
+
when 'v2.2.1' then 'hl7.fhir.us.davinci-pas_2.2.1@conf-7'
|
|
207
|
+
when 'v2.0.1' then "hl7.fhir.us.davinci-pas_2.0.1@#{operation == 'submit' ? '39' : '40'}"
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
194
211
|
def verifies_requirements
|
|
195
|
-
case "#{operation}_#{ig_version}"
|
|
196
|
-
when '
|
|
197
|
-
|
|
212
|
+
case "#{operation}_#{type}_#{ig_version}"
|
|
213
|
+
when 'submit_request_v2.2.1', 'inquire_request_v2.2.1'
|
|
214
|
+
['hl7.fhir.us.davinci-pas_2.2.1@hrex-conf-1']
|
|
215
|
+
end
|
|
216
|
+
end
|
|
198
217
|
|
|
199
|
-
|
|
200
|
-
|
|
218
|
+
# Names of the profiles that must always be demonstrated, e.g. "PAS Claim Inquiry".
|
|
219
|
+
def mandatory_profile_names
|
|
220
|
+
target_profiles = type == 'response' ? profiles : required_profiles
|
|
221
|
+
target_profiles.select { |profile_metadata| mandatory_profile?(profile_metadata) }
|
|
222
|
+
.map(&:profile_name).to_sentence
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Only v2.2.1 has optional response tests and the request attestation option.
|
|
226
|
+
def optional_profiles_description
|
|
227
|
+
return '' unless optional_must_support_enabled? && enable_lax_checks?
|
|
228
|
+
|
|
229
|
+
if type == 'response'
|
|
230
|
+
"\nDemonstration of the #{mandatory_profile_names} profile is strictly required\n" \
|
|
231
|
+
'while all others are optional.'
|
|
232
|
+
else
|
|
233
|
+
"\nFor all profiles other than #{mandatory_profile_names}, testers can attest\n" \
|
|
234
|
+
'that the missing elements are not supported by their PAS client to pass the tests.'
|
|
201
235
|
end
|
|
202
236
|
end
|
|
203
237
|
|
|
204
238
|
def description
|
|
205
239
|
if type == 'response'
|
|
206
240
|
<<~DESCRIPTION
|
|
207
|
-
Check that `$#{operation}` responses provided to the client contain
|
|
208
|
-
all PAS-defined profiles and their must support elements
|
|
209
|
-
|
|
210
|
-
**USER INPUT VALIDATION**: These tests validate responses provided by the tester,
|
|
211
|
-
not the system under test. Errors will be treated as skips instead of failures.
|
|
241
|
+
Check that `$#{operation}` responses provided to the PAS client contain
|
|
242
|
+
all PAS-defined profiles and their must support elements.#{optional_profiles_description}
|
|
212
243
|
|
|
213
244
|
For `$#{operation}` responses, this includes the following profiles:
|
|
214
245
|
|
|
@@ -216,8 +247,8 @@ module DaVinciPASTestKit
|
|
|
216
247
|
DESCRIPTION
|
|
217
248
|
else
|
|
218
249
|
<<~DESCRIPTION
|
|
219
|
-
Check that the client
|
|
220
|
-
all PAS-defined profiles and their must support elements
|
|
250
|
+
Check that the PAS client demonstrated `$#{operation}` requests that contain
|
|
251
|
+
all PAS-defined profiles and their must support elements.#{optional_profiles_description}
|
|
221
252
|
|
|
222
253
|
For `$#{operation}` requests, this includes the following profiles:
|
|
223
254
|
|
|
@@ -53,6 +53,11 @@ module DaVinciPASTestKit
|
|
|
53
53
|
'PAS Task'
|
|
54
54
|
].freeze
|
|
55
55
|
|
|
56
|
+
# Response profiles not included in the client must support tests (server tests still include them).
|
|
57
|
+
CLIENT_RESPONSE_EXCLUDED_PROFILES = [
|
|
58
|
+
'PAS Task'
|
|
59
|
+
].freeze
|
|
60
|
+
|
|
56
61
|
REQUEST_PROFILES = [
|
|
57
62
|
'PAS Medication Request',
|
|
58
63
|
'PAS Service Request',
|
|
@@ -77,6 +82,18 @@ module DaVinciPASTestKit
|
|
|
77
82
|
INQUIRY_RESPONSE_REQUIRED_PROFILES.include?(profile_metadata.profile_name)
|
|
78
83
|
end
|
|
79
84
|
|
|
85
|
+
def client_submit_response_profile?(profile_metadata)
|
|
86
|
+
submit_response_profile?(profile_metadata) && !client_response_excluded_profile?(profile_metadata)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def client_inquire_response_profile?(profile_metadata)
|
|
90
|
+
inquire_response_profile?(profile_metadata) && !client_response_excluded_profile?(profile_metadata)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def client_response_excluded_profile?(profile_metadata)
|
|
94
|
+
CLIENT_RESPONSE_EXCLUDED_PROFILES.include?(profile_metadata.profile_name)
|
|
95
|
+
end
|
|
96
|
+
|
|
80
97
|
def request_profile?(profile_metadata)
|
|
81
98
|
REQUEST_PROFILES.include?(profile_metadata.profile_name)
|
|
82
99
|
end
|
|
@@ -26,6 +26,8 @@ module DaVinciPASTestKit
|
|
|
26
26
|
end
|
|
27
27
|
submit_response_profiles.each do |profile|
|
|
28
28
|
new(ig_metadata, profile, base_server_output_dir, 'response', 'submit').generate
|
|
29
|
+
next if MustSupportTargetProfiles.client_response_excluded_profile?(profile)
|
|
30
|
+
|
|
29
31
|
new(ig_metadata, profile, base_client_output_dir, 'response', 'submit', 'client').generate
|
|
30
32
|
end
|
|
31
33
|
|
|
@@ -37,13 +39,15 @@ module DaVinciPASTestKit
|
|
|
37
39
|
end
|
|
38
40
|
inquiry_response_profiles.each do |profile|
|
|
39
41
|
new(ig_metadata, profile, base_server_output_dir, 'response', 'inquire').generate
|
|
42
|
+
next if MustSupportTargetProfiles.client_response_excluded_profile?(profile)
|
|
43
|
+
|
|
40
44
|
new(ig_metadata, profile, base_client_output_dir, 'response', 'inquire', 'client').generate
|
|
41
45
|
end
|
|
42
46
|
end
|
|
43
47
|
|
|
44
|
-
# For v2.2.1 the client request must support tests are collapsed into
|
|
48
|
+
# For v2.2.1 the client request must support tests are collapsed into shared tests
|
|
45
49
|
# (see ClientMustSupportGroupGenerator), so only the mandatory Claim profile keeps a
|
|
46
|
-
# standalone per-profile client request test. Other profiles are covered by the
|
|
50
|
+
# standalone per-profile client request test. Other profiles are covered by the shared
|
|
47
51
|
# tests and their per-profile client request tests are not generated. Server tests and
|
|
48
52
|
# earlier IG versions are unaffected.
|
|
49
53
|
def generate_client_request_test?(ig_metadata, profile)
|
|
@@ -127,9 +131,17 @@ module DaVinciPASTestKit
|
|
|
127
131
|
['hl7.fhir.us.davinci-pas_2.0.1@37', 'hl7.fhir.us.davinci-pas_2.0.1@110']
|
|
128
132
|
when 'server_inquire_response_v2.0.1'
|
|
129
133
|
['hl7.fhir.us.davinci-pas_2.0.1@38']
|
|
134
|
+
when 'client_inquire_response_v2.2.1', 'client_submit_response_v2.2.1'
|
|
135
|
+
['hl7.fhir.us.davinci-pas_2.2.1@hrex-conf-2']
|
|
130
136
|
end
|
|
131
137
|
end
|
|
132
138
|
|
|
139
|
+
def tests_conf_6?
|
|
140
|
+
ig_metadata.ig_version.starts_with?('v2.2') &&
|
|
141
|
+
system == 'server' &&
|
|
142
|
+
['ClaimResponse', 'ClaimInquiryResponse'].include?(resource_type)
|
|
143
|
+
end
|
|
144
|
+
|
|
133
145
|
def generate
|
|
134
146
|
FileUtils.mkdir_p(output_file_directory)
|
|
135
147
|
File.write(output_file_name, output)
|