carin_for_blue_button_test_kit 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/lib/carin_for_blue_button_test_kit/capability_statement/capability_statement_group.rb +45 -0
- data/lib/carin_for_blue_button_test_kit/capability_statement/tests/conformance_support_test.rb +41 -0
- data/lib/carin_for_blue_button_test_kit/capability_statement/tests/fhir_version_test.rb +15 -0
- data/lib/carin_for_blue_button_test_kit/capability_statement/tests/instantiates_test.rb +32 -0
- data/lib/carin_for_blue_button_test_kit/capability_statement/tests/json_support_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/capability_statement/tests/profile_support_test.rb +32 -0
- data/lib/carin_for_blue_button_test_kit/carin_search_test.rb +227 -0
- data/lib/carin_for_blue_button_test_kit/date_search_validator.rb +109 -0
- data/lib/carin_for_blue_button_test_kit/fhir_resource_navigation.rb +73 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/c4bb_test_suite.rb +106 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/coverage_must_support_test.rb +53 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/coverage_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage/coverage_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/coverage_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_must_support_test.rb +72 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit/explanation_of_benefit_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_group.rb +110 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_must_support_test.rb +120 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_inpatient_institutional_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_must_support_test.rb +112 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_outpatient_institutional_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_must_support_test.rb +103 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_pharmacy_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_must_support_test.rb +97 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/explanation_of_benefit_professional_non_clinician_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/organization_must_support_test.rb +55 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/organization_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization/organization_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/organization_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/patient_must_support_test.rb +69 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/patient_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient/patient_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/patient_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/practitioner_must_support_test.rb +46 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/practitioner_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner/practitioner_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/practitioner_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v1.1.0/resource_list.rb +17 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/c4bb_test_suite.rb +110 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/coverage_coverage_payor_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/coverage_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/coverage_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/coverage_must_support_test.rb +53 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/coverage_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage/coverage_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/coverage_group.rb +87 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_billable_period_start_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_payee_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_must_support_test.rb +73 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_service_start_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit/explanation_of_benefit_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_group.rb +118 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_billable_period_start_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_payee_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_must_support_test.rb +121 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_service_start_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional/explanation_of_benefit_inpatient_institutional_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_inpatient_institutional_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_billable_period_start_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_payee_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_must_support_test.rb +112 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_service_start_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral/explanation_of_benefit_oral_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_oral_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_billable_period_start_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_payee_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_must_support_test.rb +114 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_service_start_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional/explanation_of_benefit_outpatient_institutional_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_outpatient_institutional_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_billable_period_start_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_payee_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_must_support_test.rb +109 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_service_start_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy/explanation_of_benefit_pharmacy_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_pharmacy_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_billable_period_start_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_all_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_careteam_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_coverage_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_insurer_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_patient_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_payee_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_explanation_of_benefit_provider_search_test.rb +38 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_id_search_test.rb +59 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_identifier_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_lastupdated_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_must_support_test.rb +108 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_patient_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_service_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_service_start_date_search_test.rb +48 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_type_search_test.rb +49 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/explanation_of_benefit_professional_non_clinician_group.rb +58 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/organization_must_support_test.rb +55 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/organization_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/organization_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization_group.rb +81 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/patient_must_support_test.rb +68 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/patient_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient/patient_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/patient_group.rb +81 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/practitioner_must_support_test.rb +46 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/practitioner_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/practitioner_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner_group.rb +81 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/related_person_must_support_test.rb +47 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/related_person_read_test.rb +39 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/related_person_validation_test.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person_group.rb +81 -0
- data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/resource_list.rb +19 -0
- data/lib/carin_for_blue_button_test_kit/generator/group_generator.rb +210 -0
- data/lib/carin_for_blue_button_test_kit/generator/group_metadata.rb +87 -0
- data/lib/carin_for_blue_button_test_kit/generator/group_metadata_extractor.rb +240 -0
- data/lib/carin_for_blue_button_test_kit/generator/ig_loader.rb +76 -0
- data/lib/carin_for_blue_button_test_kit/generator/ig_metadata.rb +50 -0
- data/lib/carin_for_blue_button_test_kit/generator/ig_metadata_extractor.rb +40 -0
- data/lib/carin_for_blue_button_test_kit/generator/ig_resources.rb +50 -0
- data/lib/carin_for_blue_button_test_kit/generator/include_search_test_generator.rb +105 -0
- data/lib/carin_for_blue_button_test_kit/generator/must_support_metadata_extractor.rb +326 -0
- data/lib/carin_for_blue_button_test_kit/generator/must_support_test_generator.rb +131 -0
- data/lib/carin_for_blue_button_test_kit/generator/naming.rb +36 -0
- data/lib/carin_for_blue_button_test_kit/generator/read_test_generator.rb +109 -0
- data/lib/carin_for_blue_button_test_kit/generator/resource_list_generator.rb +43 -0
- data/lib/carin_for_blue_button_test_kit/generator/search_definition_metadata_extractor.rb +207 -0
- data/lib/carin_for_blue_button_test_kit/generator/search_metadata_extractor.rb +74 -0
- data/lib/carin_for_blue_button_test_kit/generator/search_test_generator.rb +299 -0
- data/lib/carin_for_blue_button_test_kit/generator/special_cases.rb +21 -0
- data/lib/carin_for_blue_button_test_kit/generator/suite_generator.rb +94 -0
- data/lib/carin_for_blue_button_test_kit/generator/terminology_binding_metadata_extractor.rb +109 -0
- data/lib/carin_for_blue_button_test_kit/generator/validation_test_generator.rb +137 -0
- data/lib/carin_for_blue_button_test_kit/generator/value_extractor.rb +50 -0
- data/lib/carin_for_blue_button_test_kit/generator.rb +90 -0
- data/lib/carin_for_blue_button_test_kit/must_support_test.rb +211 -0
- data/lib/carin_for_blue_button_test_kit/read_test.rb +51 -0
- data/lib/carin_for_blue_button_test_kit/search_test.rb +781 -0
- data/lib/carin_for_blue_button_test_kit/search_test_properties.rb +57 -0
- data/lib/carin_for_blue_button_test_kit/validation_test.rb +57 -0
- data/lib/carin_for_blue_button_test_kit/version.rb +5 -0
- data/lib/carin_for_blue_button_test_kit.rb +2 -0
- metadata +405 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
require_relative 'explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_read_test'
|
2
|
+
require_relative 'explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_validation_test'
|
3
|
+
require_relative 'explanation_of_benefit_professional_non_clinician/explanation_of_benefit_professional_non_clinician_must_support_test'
|
4
|
+
|
5
|
+
module CarinForBlueButtonTestKit
|
6
|
+
module CARIN4BBV200
|
7
|
+
class ExplanationOfBenefitProfessionalNonClinicianGroup < Inferno::TestGroup
|
8
|
+
title 'ExplanationOfBenefit Professional NonClinician Tests'
|
9
|
+
short_description 'Verify support for the server capabilities required by the C4BB ExplanationOfBenefit Professional NonClinician.'
|
10
|
+
description %(
|
11
|
+
# Background
|
12
|
+
|
13
|
+
The CARIN for Blue Button ExplanationOfBenefit Professional NonClinician sequence verifies that the system under test is
|
14
|
+
able to provide correct responses for ExplanationOfBenefit queries. These queries
|
15
|
+
must contain resources conforming to the C4BB ExplanationOfBenefit Professional NonClinician as
|
16
|
+
specified in the CARIN for Blue Button v2.0.0 Implementation Guide.
|
17
|
+
|
18
|
+
# Testing Methodology
|
19
|
+
|
20
|
+
|
21
|
+
## Must Support
|
22
|
+
Each profile contains elements marked as "must support". This test
|
23
|
+
sequence expects to see each of these elements at least once. If at
|
24
|
+
least one cannot be found, the test will fail. The test will look
|
25
|
+
through the ExplanationOfBenefit resources found in the first test for these
|
26
|
+
elements.
|
27
|
+
|
28
|
+
## Profile Validation
|
29
|
+
Each resource returned from the first search is expected to conform to
|
30
|
+
the [C4BB ExplanationOfBenefit Professional NonClinician](http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit-Professional-NonClinician). Each element is checked against
|
31
|
+
terminology binding and cardinality requirements.
|
32
|
+
|
33
|
+
Elements with a required binding are validated against their bound
|
34
|
+
ValueSet. If the code/system in the element is not part of the ValueSet,
|
35
|
+
then the test will fail.
|
36
|
+
|
37
|
+
## Reference Validation
|
38
|
+
At least one instance of each external reference in elements marked as
|
39
|
+
"must support" within the resources provided by the system must resolve.
|
40
|
+
The test will attempt to read each reference found and will fail if no
|
41
|
+
read succeeds.
|
42
|
+
|
43
|
+
)
|
44
|
+
|
45
|
+
id :c4bb_v200_explanation_of_benefit_professional_non_clinician
|
46
|
+
run_as_group
|
47
|
+
|
48
|
+
def self.metadata
|
49
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'explanation_of_benefit_professional_non_clinician', 'metadata.yml'), aliases: true))
|
50
|
+
end
|
51
|
+
|
52
|
+
test from: :c4bb_v200_explanation_of_benefit_professional_non_clinician_read_test
|
53
|
+
test from: :c4bb_v200_explanation_of_benefit_professional_non_clinician_validation_test
|
54
|
+
test from: :c4bb_v200_explanation_of_benefit_professional_non_clinician_must_support_test
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require_relative '../../../must_support_test'
|
2
|
+
require_relative './organization_read_test'
|
3
|
+
require_relative '../../../generator/group_metadata'
|
4
|
+
|
5
|
+
module CarinForBlueButtonTestKit
|
6
|
+
module CARIN4BBV200
|
7
|
+
class OrganizationMustSupportTest < Inferno::Test
|
8
|
+
include CarinForBlueButtonTestKit::MustSupportTest
|
9
|
+
include CarinForBlueButtonTestKit::CARIN4BBV200
|
10
|
+
|
11
|
+
title 'All must support elements are provided in the Organization resources returned'
|
12
|
+
description %(
|
13
|
+
CARIN for Blue Button Responders SHALL be capable of populating all data elements as
|
14
|
+
part of the query results as specified by the CARIN for Blue Button Capability
|
15
|
+
Statement. This test will look through the Organization resources
|
16
|
+
found previously for the following must support elements:
|
17
|
+
|
18
|
+
* Organization.active
|
19
|
+
* Organization.address
|
20
|
+
* Organization.address.city
|
21
|
+
* Organization.address.country
|
22
|
+
* Organization.address.line
|
23
|
+
* Organization.address.postalCode
|
24
|
+
* Organization.address.state
|
25
|
+
* Organization.identifier
|
26
|
+
* Organization.identifier:NPI
|
27
|
+
* Organization.identifier:naiccode
|
28
|
+
* Organization.identifier:payerid
|
29
|
+
* Organization.identifier:tax
|
30
|
+
* Organization.meta
|
31
|
+
* Organization.meta.lastUpdated
|
32
|
+
* Organization.name
|
33
|
+
* Organization.telecom
|
34
|
+
)
|
35
|
+
|
36
|
+
id :c4bb_v200_organization_must_support_test
|
37
|
+
|
38
|
+
def resource_type
|
39
|
+
'Organization'
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.metadata
|
43
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
44
|
+
end
|
45
|
+
|
46
|
+
def scratch_resources
|
47
|
+
scratch[:organization_resources] ||= {}
|
48
|
+
end
|
49
|
+
|
50
|
+
run do
|
51
|
+
perform_must_support_test(all_scratch_resources)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/organization/organization_read_test.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative '../../../read_test'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module CarinForBlueButtonTestKit
|
5
|
+
module CARIN4BBV200
|
6
|
+
class OrganizationReadTest < Inferno::Test
|
7
|
+
include CarinForBlueButtonTestKit::ReadTest
|
8
|
+
|
9
|
+
title 'Server returns correct Organization resource from Organization read interaction'
|
10
|
+
description 'A server SHALL support the Organization read interaction.'
|
11
|
+
|
12
|
+
id :c4bb_v200_organization_read_test
|
13
|
+
|
14
|
+
input :organization_ids,
|
15
|
+
title: "organization IDs",
|
16
|
+
type: 'text',
|
17
|
+
description: "organization Resource ID"
|
18
|
+
|
19
|
+
input_order :url, :smart_credentials, :organization_ids
|
20
|
+
|
21
|
+
def resource_type
|
22
|
+
'Organization'
|
23
|
+
end
|
24
|
+
|
25
|
+
def scratch_resources
|
26
|
+
scratch[:organization_resources] ||= {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def organization_id_list
|
30
|
+
return [nil] unless respond_to? :organization_ids
|
31
|
+
organization_ids.split(',').map(&:strip)
|
32
|
+
end
|
33
|
+
|
34
|
+
run do
|
35
|
+
perform_read_test(organization_id_list)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative '../../../validation_test'
|
2
|
+
require_relative './organization_read_test'
|
3
|
+
|
4
|
+
module CarinForBlueButtonTestKit
|
5
|
+
module CARIN4BBV200
|
6
|
+
class OrganizationValidationTest < Inferno::Test
|
7
|
+
include CarinForBlueButtonTestKit::ValidationTest
|
8
|
+
include CarinForBlueButtonTestKit::CARIN4BBV200
|
9
|
+
|
10
|
+
id :c4bb_v200_organization_validation_test
|
11
|
+
title 'Organization resources returned during previous tests conform to the C4BB Organization'
|
12
|
+
description %(
|
13
|
+
This test verifies resources returned from the first search conform to
|
14
|
+
the [C4BB Organization](http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization).
|
15
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
16
|
+
|
17
|
+
It verifies the presence of mandatory elements and that elements with
|
18
|
+
required bindings contain appropriate values. CodeableConcept element
|
19
|
+
bindings will fail if none of their codings have a code/system belonging
|
20
|
+
to the bound ValueSet. Quantity, Coding, and code element bindings will
|
21
|
+
fail if their code/system are not found in the valueset.
|
22
|
+
|
23
|
+
)
|
24
|
+
|
25
|
+
output :dar_code_found, :dar_extension_found
|
26
|
+
|
27
|
+
def resource_type
|
28
|
+
'Organization'
|
29
|
+
end
|
30
|
+
|
31
|
+
def scratch_resources
|
32
|
+
scratch[:organization_resources] ||= {}
|
33
|
+
end
|
34
|
+
|
35
|
+
run do
|
36
|
+
perform_validation_test(scratch_resources[:all] || [],
|
37
|
+
'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization',
|
38
|
+
'2.0.0',
|
39
|
+
skip_if_empty: true)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require_relative 'organization/organization_read_test'
|
2
|
+
require_relative 'organization/organization_validation_test'
|
3
|
+
require_relative 'organization/organization_must_support_test'
|
4
|
+
|
5
|
+
module CarinForBlueButtonTestKit
|
6
|
+
module CARIN4BBV200
|
7
|
+
class OrganizationGroup < Inferno::TestGroup
|
8
|
+
title 'Organization Tests'
|
9
|
+
short_description 'Verify support for the server capabilities required by the C4BB Organization.'
|
10
|
+
description %(
|
11
|
+
# Background
|
12
|
+
|
13
|
+
The CARIN for Blue Button Organization sequence verifies that the system under test is
|
14
|
+
able to provide correct responses for Organization queries. These queries
|
15
|
+
must contain resources conforming to the C4BB Organization as
|
16
|
+
specified in the CARIN for Blue Button v2.0.0 Implementation Guide.
|
17
|
+
|
18
|
+
# Testing Methodology
|
19
|
+
## Searching
|
20
|
+
This test sequence will first perform each required search associated
|
21
|
+
with this resource. This sequence will perform searches with the
|
22
|
+
following parameters:
|
23
|
+
|
24
|
+
* _id
|
25
|
+
|
26
|
+
### Search Parameters
|
27
|
+
The first search uses the selected patient(s) from the prior launch
|
28
|
+
sequence. Any subsequent searches will look for its parameter values
|
29
|
+
from the results of the first search. For example, the `identifier`
|
30
|
+
search in the patient sequence is performed by looking for an existing
|
31
|
+
`Patient.identifier` from any of the resources returned in the `_id`
|
32
|
+
search. If a value cannot be found this way, the search is skipped.
|
33
|
+
|
34
|
+
### Search Validation
|
35
|
+
Inferno will retrieve up to the first 20 bundle pages of the reply for
|
36
|
+
Organization resources and save them for subsequent tests.
|
37
|
+
Each resource is then checked to see if it matches the searched
|
38
|
+
parameters in accordance with [FHIR search
|
39
|
+
guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
|
40
|
+
for example, if a Patient search for `gender=male` returns a `female`
|
41
|
+
patient.
|
42
|
+
|
43
|
+
|
44
|
+
## Must Support
|
45
|
+
Each profile contains elements marked as "must support". This test
|
46
|
+
sequence expects to see each of these elements at least once. If at
|
47
|
+
least one cannot be found, the test will fail. The test will look
|
48
|
+
through the Organization resources found in the first test for these
|
49
|
+
elements.
|
50
|
+
|
51
|
+
## Profile Validation
|
52
|
+
Each resource returned from the first search is expected to conform to
|
53
|
+
the [C4BB Organization](http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization). Each element is checked against
|
54
|
+
terminology binding and cardinality requirements.
|
55
|
+
|
56
|
+
Elements with a required binding are validated against their bound
|
57
|
+
ValueSet. If the code/system in the element is not part of the ValueSet,
|
58
|
+
then the test will fail.
|
59
|
+
|
60
|
+
## Reference Validation
|
61
|
+
At least one instance of each external reference in elements marked as
|
62
|
+
"must support" within the resources provided by the system must resolve.
|
63
|
+
The test will attempt to read each reference found and will fail if no
|
64
|
+
read succeeds.
|
65
|
+
|
66
|
+
)
|
67
|
+
|
68
|
+
id :c4bb_v200_organization
|
69
|
+
run_as_group
|
70
|
+
|
71
|
+
def self.metadata
|
72
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'organization', 'metadata.yml'), aliases: true))
|
73
|
+
end
|
74
|
+
|
75
|
+
test from: :c4bb_v200_organization_read_test
|
76
|
+
test from: :c4bb_v200_organization_validation_test
|
77
|
+
test from: :c4bb_v200_organization_must_support_test
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require_relative '../../../must_support_test'
|
2
|
+
require_relative './patient_read_test'
|
3
|
+
require_relative '../../../generator/group_metadata'
|
4
|
+
|
5
|
+
module CarinForBlueButtonTestKit
|
6
|
+
module CARIN4BBV200
|
7
|
+
class PatientMustSupportTest < Inferno::Test
|
8
|
+
include CarinForBlueButtonTestKit::MustSupportTest
|
9
|
+
include CarinForBlueButtonTestKit::CARIN4BBV200
|
10
|
+
|
11
|
+
title 'All must support elements are provided in the Patient resources returned'
|
12
|
+
description %(
|
13
|
+
CARIN for Blue Button Responders SHALL be capable of populating all data elements as
|
14
|
+
part of the query results as specified by the CARIN for Blue Button Capability
|
15
|
+
Statement. This test will look through the Patient resources
|
16
|
+
found previously for the following must support elements:
|
17
|
+
|
18
|
+
* Patient.address
|
19
|
+
* Patient.address.city
|
20
|
+
* Patient.address.country
|
21
|
+
* Patient.address.line
|
22
|
+
* Patient.address.period
|
23
|
+
* Patient.address.postalCode
|
24
|
+
* Patient.address.state
|
25
|
+
* Patient.birthDate
|
26
|
+
* Patient.communication
|
27
|
+
* Patient.communication.language
|
28
|
+
* Patient.deceased[x]
|
29
|
+
* Patient.extension:birthsex
|
30
|
+
* Patient.extension:ethnicity
|
31
|
+
* Patient.extension:race
|
32
|
+
* Patient.gender
|
33
|
+
* Patient.identifier
|
34
|
+
* Patient.identifier.system
|
35
|
+
* Patient.identifier.value
|
36
|
+
* Patient.identifier:memberid
|
37
|
+
* Patient.identifier:uniquememberid
|
38
|
+
* Patient.meta
|
39
|
+
* Patient.meta.lastUpdated
|
40
|
+
* Patient.name
|
41
|
+
* Patient.name.family
|
42
|
+
* Patient.name.given
|
43
|
+
* Patient.telecom
|
44
|
+
* Patient.telecom.system
|
45
|
+
* Patient.telecom.use
|
46
|
+
* Patient.telecom.value
|
47
|
+
)
|
48
|
+
|
49
|
+
id :c4bb_v200_patient_must_support_test
|
50
|
+
|
51
|
+
def resource_type
|
52
|
+
'Patient'
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.metadata
|
56
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
57
|
+
end
|
58
|
+
|
59
|
+
def scratch_resources
|
60
|
+
scratch[:patient_resources] ||= {}
|
61
|
+
end
|
62
|
+
|
63
|
+
run do
|
64
|
+
perform_must_support_test(all_scratch_resources)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative '../../../read_test'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module CarinForBlueButtonTestKit
|
5
|
+
module CARIN4BBV200
|
6
|
+
class PatientReadTest < Inferno::Test
|
7
|
+
include CarinForBlueButtonTestKit::ReadTest
|
8
|
+
|
9
|
+
title 'Server returns correct Patient resource from Patient read interaction'
|
10
|
+
description 'A server SHALL support the Patient read interaction.'
|
11
|
+
|
12
|
+
id :c4bb_v200_patient_read_test
|
13
|
+
|
14
|
+
input :patient_ids,
|
15
|
+
title: "patient IDs",
|
16
|
+
type: 'text',
|
17
|
+
description: "patient Resource ID"
|
18
|
+
|
19
|
+
input_order :url, :smart_credentials, :patient_ids
|
20
|
+
|
21
|
+
def resource_type
|
22
|
+
'Patient'
|
23
|
+
end
|
24
|
+
|
25
|
+
def scratch_resources
|
26
|
+
scratch[:patient_resources] ||= {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def patient_id_list
|
30
|
+
return [nil] unless respond_to? :patient_ids
|
31
|
+
patient_ids.split(',').map(&:strip)
|
32
|
+
end
|
33
|
+
|
34
|
+
run do
|
35
|
+
perform_read_test(patient_id_list)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative '../../../validation_test'
|
2
|
+
require_relative './patient_read_test'
|
3
|
+
|
4
|
+
module CarinForBlueButtonTestKit
|
5
|
+
module CARIN4BBV200
|
6
|
+
class PatientValidationTest < Inferno::Test
|
7
|
+
include CarinForBlueButtonTestKit::ValidationTest
|
8
|
+
include CarinForBlueButtonTestKit::CARIN4BBV200
|
9
|
+
|
10
|
+
id :c4bb_v200_patient_validation_test
|
11
|
+
title 'Patient resources returned during previous tests conform to the C4BB Patient'
|
12
|
+
description %(
|
13
|
+
This test verifies resources returned from the first search conform to
|
14
|
+
the [C4BB Patient](http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient).
|
15
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
16
|
+
|
17
|
+
It verifies the presence of mandatory elements and that elements with
|
18
|
+
required bindings contain appropriate values. CodeableConcept element
|
19
|
+
bindings will fail if none of their codings have a code/system belonging
|
20
|
+
to the bound ValueSet. Quantity, Coding, and code element bindings will
|
21
|
+
fail if their code/system are not found in the valueset.
|
22
|
+
|
23
|
+
)
|
24
|
+
|
25
|
+
output :dar_code_found, :dar_extension_found
|
26
|
+
|
27
|
+
def resource_type
|
28
|
+
'Patient'
|
29
|
+
end
|
30
|
+
|
31
|
+
def scratch_resources
|
32
|
+
scratch[:patient_resources] ||= {}
|
33
|
+
end
|
34
|
+
|
35
|
+
run do
|
36
|
+
perform_validation_test(scratch_resources[:all] || [],
|
37
|
+
'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient',
|
38
|
+
'2.0.0',
|
39
|
+
skip_if_empty: true)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require_relative 'patient/patient_read_test'
|
2
|
+
require_relative 'patient/patient_validation_test'
|
3
|
+
require_relative 'patient/patient_must_support_test'
|
4
|
+
|
5
|
+
module CarinForBlueButtonTestKit
|
6
|
+
module CARIN4BBV200
|
7
|
+
class PatientGroup < Inferno::TestGroup
|
8
|
+
title 'Patient Tests'
|
9
|
+
short_description 'Verify support for the server capabilities required by the C4BB Patient.'
|
10
|
+
description %(
|
11
|
+
# Background
|
12
|
+
|
13
|
+
The CARIN for Blue Button Patient sequence verifies that the system under test is
|
14
|
+
able to provide correct responses for Patient queries. These queries
|
15
|
+
must contain resources conforming to the C4BB Patient as
|
16
|
+
specified in the CARIN for Blue Button v2.0.0 Implementation Guide.
|
17
|
+
|
18
|
+
# Testing Methodology
|
19
|
+
## Searching
|
20
|
+
This test sequence will first perform each required search associated
|
21
|
+
with this resource. This sequence will perform searches with the
|
22
|
+
following parameters:
|
23
|
+
|
24
|
+
* _id
|
25
|
+
|
26
|
+
### Search Parameters
|
27
|
+
The first search uses the selected patient(s) from the prior launch
|
28
|
+
sequence. Any subsequent searches will look for its parameter values
|
29
|
+
from the results of the first search. For example, the `identifier`
|
30
|
+
search in the patient sequence is performed by looking for an existing
|
31
|
+
`Patient.identifier` from any of the resources returned in the `_id`
|
32
|
+
search. If a value cannot be found this way, the search is skipped.
|
33
|
+
|
34
|
+
### Search Validation
|
35
|
+
Inferno will retrieve up to the first 20 bundle pages of the reply for
|
36
|
+
Patient resources and save them for subsequent tests.
|
37
|
+
Each resource is then checked to see if it matches the searched
|
38
|
+
parameters in accordance with [FHIR search
|
39
|
+
guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
|
40
|
+
for example, if a Patient search for `gender=male` returns a `female`
|
41
|
+
patient.
|
42
|
+
|
43
|
+
|
44
|
+
## Must Support
|
45
|
+
Each profile contains elements marked as "must support". This test
|
46
|
+
sequence expects to see each of these elements at least once. If at
|
47
|
+
least one cannot be found, the test will fail. The test will look
|
48
|
+
through the Patient resources found in the first test for these
|
49
|
+
elements.
|
50
|
+
|
51
|
+
## Profile Validation
|
52
|
+
Each resource returned from the first search is expected to conform to
|
53
|
+
the [C4BB Patient](http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient). Each element is checked against
|
54
|
+
terminology binding and cardinality requirements.
|
55
|
+
|
56
|
+
Elements with a required binding are validated against their bound
|
57
|
+
ValueSet. If the code/system in the element is not part of the ValueSet,
|
58
|
+
then the test will fail.
|
59
|
+
|
60
|
+
## Reference Validation
|
61
|
+
At least one instance of each external reference in elements marked as
|
62
|
+
"must support" within the resources provided by the system must resolve.
|
63
|
+
The test will attempt to read each reference found and will fail if no
|
64
|
+
read succeeds.
|
65
|
+
|
66
|
+
)
|
67
|
+
|
68
|
+
id :c4bb_v200_patient
|
69
|
+
run_as_group
|
70
|
+
|
71
|
+
def self.metadata
|
72
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'patient', 'metadata.yml'), aliases: true))
|
73
|
+
end
|
74
|
+
|
75
|
+
test from: :c4bb_v200_patient_read_test
|
76
|
+
test from: :c4bb_v200_patient_validation_test
|
77
|
+
test from: :c4bb_v200_patient_must_support_test
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative '../../../must_support_test'
|
2
|
+
require_relative './practitioner_read_test'
|
3
|
+
require_relative '../../../generator/group_metadata'
|
4
|
+
|
5
|
+
module CarinForBlueButtonTestKit
|
6
|
+
module CARIN4BBV200
|
7
|
+
class PractitionerMustSupportTest < Inferno::Test
|
8
|
+
include CarinForBlueButtonTestKit::MustSupportTest
|
9
|
+
include CarinForBlueButtonTestKit::CARIN4BBV200
|
10
|
+
|
11
|
+
title 'All must support elements are provided in the Practitioner resources returned'
|
12
|
+
description %(
|
13
|
+
CARIN for Blue Button Responders SHALL be capable of populating all data elements as
|
14
|
+
part of the query results as specified by the CARIN for Blue Button Capability
|
15
|
+
Statement. This test will look through the Practitioner resources
|
16
|
+
found previously for the following must support elements:
|
17
|
+
|
18
|
+
* Practitioner.identifier
|
19
|
+
* Practitioner.identifier:NPI
|
20
|
+
* Practitioner.identifier:tax
|
21
|
+
* Practitioner.meta
|
22
|
+
* Practitioner.meta.lastUpdated
|
23
|
+
* Practitioner.name
|
24
|
+
* Practitioner.name.family
|
25
|
+
)
|
26
|
+
|
27
|
+
id :c4bb_v200_practitioner_must_support_test
|
28
|
+
|
29
|
+
def resource_type
|
30
|
+
'Practitioner'
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.metadata
|
34
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
35
|
+
end
|
36
|
+
|
37
|
+
def scratch_resources
|
38
|
+
scratch[:practitioner_resources] ||= {}
|
39
|
+
end
|
40
|
+
|
41
|
+
run do
|
42
|
+
perform_must_support_test(all_scratch_resources)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/carin_for_blue_button_test_kit/generated/v2.0.0/practitioner/practitioner_read_test.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative '../../../read_test'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module CarinForBlueButtonTestKit
|
5
|
+
module CARIN4BBV200
|
6
|
+
class PractitionerReadTest < Inferno::Test
|
7
|
+
include CarinForBlueButtonTestKit::ReadTest
|
8
|
+
|
9
|
+
title 'Server returns correct Practitioner resource from Practitioner read interaction'
|
10
|
+
description 'A server SHALL support the Practitioner read interaction.'
|
11
|
+
|
12
|
+
id :c4bb_v200_practitioner_read_test
|
13
|
+
|
14
|
+
input :practitioner_ids,
|
15
|
+
title: "practitioner IDs",
|
16
|
+
type: 'text',
|
17
|
+
description: "practitioner Resource ID"
|
18
|
+
|
19
|
+
input_order :url, :smart_credentials, :practitioner_ids
|
20
|
+
|
21
|
+
def resource_type
|
22
|
+
'Practitioner'
|
23
|
+
end
|
24
|
+
|
25
|
+
def scratch_resources
|
26
|
+
scratch[:practitioner_resources] ||= {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def practitioner_id_list
|
30
|
+
return [nil] unless respond_to? :practitioner_ids
|
31
|
+
practitioner_ids.split(',').map(&:strip)
|
32
|
+
end
|
33
|
+
|
34
|
+
run do
|
35
|
+
perform_read_test(practitioner_id_list)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative '../../../validation_test'
|
2
|
+
require_relative './practitioner_read_test'
|
3
|
+
|
4
|
+
module CarinForBlueButtonTestKit
|
5
|
+
module CARIN4BBV200
|
6
|
+
class PractitionerValidationTest < Inferno::Test
|
7
|
+
include CarinForBlueButtonTestKit::ValidationTest
|
8
|
+
include CarinForBlueButtonTestKit::CARIN4BBV200
|
9
|
+
|
10
|
+
id :c4bb_v200_practitioner_validation_test
|
11
|
+
title 'Practitioner resources returned during previous tests conform to the C4BB Practitioner'
|
12
|
+
description %(
|
13
|
+
This test verifies resources returned from the first search conform to
|
14
|
+
the [C4BB Practitioner](http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Practitioner).
|
15
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
16
|
+
|
17
|
+
It verifies the presence of mandatory elements and that elements with
|
18
|
+
required bindings contain appropriate values. CodeableConcept element
|
19
|
+
bindings will fail if none of their codings have a code/system belonging
|
20
|
+
to the bound ValueSet. Quantity, Coding, and code element bindings will
|
21
|
+
fail if their code/system are not found in the valueset.
|
22
|
+
|
23
|
+
)
|
24
|
+
|
25
|
+
output :dar_code_found, :dar_extension_found
|
26
|
+
|
27
|
+
def resource_type
|
28
|
+
'Practitioner'
|
29
|
+
end
|
30
|
+
|
31
|
+
def scratch_resources
|
32
|
+
scratch[:practitioner_resources] ||= {}
|
33
|
+
end
|
34
|
+
|
35
|
+
run do
|
36
|
+
perform_validation_test(scratch_resources[:all] || [],
|
37
|
+
'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Practitioner',
|
38
|
+
'2.0.0',
|
39
|
+
skip_if_empty: true)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|