davinci_plan_net_test_kit 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/capability_statement/conformance_support_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/capability_statement/fhir_version_test.rb +15 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/capability_statement/instantiate_test.rb +19 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/capability_statement/json_support_test.rb +39 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/capability_statement/profile_support_test.rb +38 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/combination_searches/examples.json +40 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/data_absent_reason_group.rb +59 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/reverse_chain_tests/examples.json +60 -0
- data/lib/davinci_plan_net_test_kit/custom_groups/v1.1.0/capability_statement_group.rb +75 -0
- data/lib/davinci_plan_net_test_kit/date_search_validation.rb +108 -0
- data/lib/davinci_plan_net_test_kit/fhir_resource_navigation.rb +75 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/davinci_plan_net_test_suite.rb +231 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_forward_chain_organization_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_forward_chain_organization_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_forward_chain_organization_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_forward_chain_organization_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_include_endpoint_organization_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_must_support_test.rb +47 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_organization_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_reference_resolution_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/metadata.yml +171 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint_group.rb +168 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_combination_list_specialty_covered_by_network_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_coverage_area_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_endpoint_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_endpoint_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_location_address_city_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_location_address_postalcode_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_location_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_location_address_state_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_location_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_location_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_organization_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_organization_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_organization_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_forward_chain_organization_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_include_healthcare_service_coverage_area_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_include_healthcare_service_endpoint_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_include_healthcare_service_location_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_include_healthcare_service_organization_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_location_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_must_support_test.rb +65 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_name_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_organization_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_reference_resolution_test.rb +45 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_revinclude_organization_affiliation_service_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_revinclude_practitioner_role_service_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_service_category_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_service_type_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_specialty_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/healthcare_service_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service/metadata.yml +1377 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/healthcare_service_group.rb +240 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_administered_by_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_coverage_area_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_forward_chain_administered_by_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_forward_chain_administered_by_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_forward_chain_owned_by_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_forward_chain_owned_by_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_identifier_search_test.rb +44 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_include_insurance_plan_administered_by_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_include_insurance_plan_coverage_area_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_include_insurance_plan_owned_by_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_must_support_test.rb +57 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_name_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_owned_by_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_plan_type_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_reference_resolution_test.rb +48 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_type_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/insurance_plan_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan/metadata.yml +368 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/insurance_plan_group.rb +193 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_address_city_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_address_postalcode_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_address_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_address_state_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_endpoint_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_endpoint_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_organization_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_organization_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_organization_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_organization_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_partof_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_partof_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_forward_chain_partof_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_include_location_endpoint_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_include_location_organization_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_include_location_partof_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_must_support_test.rb +66 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_organization_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_partof_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_reference_resolution_test.rb +44 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_reverse_chain_insurance_plan_coverage_area_owned_by_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_revinclude_healthcare_service_location_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_revinclude_insurance_plan_coverage_area_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_revinclude_organization_affiliation_location_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_revinclude_practitioner_role_location_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_type_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/location_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location/metadata.yml +395 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/location_group.rb +262 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/metadata.yml +5214 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/metadata.yml +304 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_address_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_coverage_area_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_endpoint_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_forward_chain_endpoint_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_forward_chain_partof_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_forward_chain_partof_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_forward_chain_partof_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_include_organization_coverage_area_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_include_organization_endpoint_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_include_organization_partof_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_must_support_test.rb +58 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_name_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_partof_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_reference_resolution_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_reverse_chain_practitioner_role_network_location_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_revinclude_practitioner_role_network_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_type_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network/network_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/network_group.rb +238 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/metadata.yml +1296 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_endpoint_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_endpoint_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_location_address_city_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_location_address_postalcode_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_location_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_location_address_state_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_location_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_location_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_network_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_network_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_participating_organization_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_participating_organization_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_participating_organization_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_participating_organization_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_primary_organization_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_primary_organization_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_primary_organization_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_primary_organization_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_service_location_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_service_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_forward_chain_service_service_category_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_include_organization_affiliation_endpoint_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_include_organization_affiliation_location_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_include_organization_affiliation_network_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_include_organization_affiliation_participating_organization_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_include_organization_affiliation_primary_organization_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_include_organization_affiliation_service_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_location_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_must_support_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_network_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_participating_organization_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_primary_organization_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_reference_resolution_test.rb +47 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_role_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_service_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_specialty_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil_group.rb +241 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/metadata.yml +384 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_address_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_coverage_area_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_endpoint_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_forward_chain_endpoint_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_forward_chain_partof_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_forward_chain_partof_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_forward_chain_partof_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_include_organization_coverage_area_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_include_organization_endpoint_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_include_organization_partof_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_must_support_test.rb +68 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_name_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_partof_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_reference_resolution_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_reverse_chain_insurance_plan_owned_by_coverage_area_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_reverse_chain_org_affil_participating_organization_location_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_reverse_chain_org_affil_participating_organization_network_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_reverse_chain_org_affil_participating_organization_specialty_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_endpoint_organization_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_healthcare_service_organization_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_insurance_plan_administered_by_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_insurance_plan_owned_by_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_organization_affiliation_participating_organization_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_organization_affiliation_primary_organization_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_revinclude_practitioner_role_organization_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_type_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization/organization_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/organization_group.rb +265 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/metadata.yml +253 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_family_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_given_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_must_support_test.rb +57 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_name_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_reference_resolution_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_reverse_chain_practitioner_role_practitioner_location_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_reverse_chain_practitioner_role_practitioner_network_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_reverse_chain_practitioner_role_practitioner_role_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_reverse_chain_practitioner_role_practitioner_specialty_search_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_revinclude_practitioner_role_practitioner_search_test.rb +60 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_group.rb +188 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/metadata.yml +1198 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_combination_list_practitioners_with_specialty_and_location_search_test.rb +50 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_endpoint_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_endpoint_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_location_address_city_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_location_address_postalcode_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_location_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_location_address_state_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_location_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_location_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_network_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_network_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_network_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_network_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_organization_address_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_organization_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_organization_partof_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_organization_type_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_practitioner_name_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_service_location_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_service_organization_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_forward_chain_service_service_category_search_test.rb +55 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_id_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_include_practitioner_role_endpoint_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_include_practitioner_role_location_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_include_practitioner_role_network_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_include_practitioner_role_organization_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_include_practitioner_role_practitioner_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_include_practitioner_role_service_search_test.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_lastupdated_search_test.rb +43 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_location_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_must_support_test.rb +70 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_network_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_no_params_search_test.rb +49 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_organization_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_read_test.rb +26 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_reference_resolution_test.rb +46 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_role_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_service_search_test.rb +41 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_specialty_search_test.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role/practitioner_role_validation_test.rb +40 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner_role_group.rb +241 -0
- data/lib/davinci_plan_net_test_kit/generated/v1.1.0/resource_list.rb +16 -0
- data/lib/davinci_plan_net_test_kit/generator/combination_search_test_generator.rb +215 -0
- data/lib/davinci_plan_net_test_kit/generator/forward_chain_test_generator.rb +198 -0
- data/lib/davinci_plan_net_test_kit/generator/group_generator.rb +377 -0
- data/lib/davinci_plan_net_test_kit/generator/group_metadata.rb +77 -0
- data/lib/davinci_plan_net_test_kit/generator/group_metadata_extractor.rb +268 -0
- data/lib/davinci_plan_net_test_kit/generator/ig_loader.rb +76 -0
- data/lib/davinci_plan_net_test_kit/generator/ig_metadata.rb +52 -0
- data/lib/davinci_plan_net_test_kit/generator/ig_metadata_extractor.rb +57 -0
- data/lib/davinci_plan_net_test_kit/generator/ig_resources.rb +64 -0
- data/lib/davinci_plan_net_test_kit/generator/include_search_test_generator.rb +205 -0
- data/lib/davinci_plan_net_test_kit/generator/must_support_metadata_extractor.rb +337 -0
- data/lib/davinci_plan_net_test_kit/generator/must_support_metadata_extractor_us_core_3.rb +25 -0
- data/lib/davinci_plan_net_test_kit/generator/must_support_test_generator.rb +116 -0
- data/lib/davinci_plan_net_test_kit/generator/naming.rb +34 -0
- data/lib/davinci_plan_net_test_kit/generator/read_test_generator.rb +86 -0
- data/lib/davinci_plan_net_test_kit/generator/reference_resolution_test_generator.rb +92 -0
- data/lib/davinci_plan_net_test_kit/generator/resource_list_generator.rb +42 -0
- data/lib/davinci_plan_net_test_kit/generator/reverse_chain_search_test_generator.rb +194 -0
- data/lib/davinci_plan_net_test_kit/generator/revinclude_search_test_generator.rb +204 -0
- data/lib/davinci_plan_net_test_kit/generator/search_definition_metadata_extractor.rb +193 -0
- data/lib/davinci_plan_net_test_kit/generator/search_metadata_extractor.rb +74 -0
- data/lib/davinci_plan_net_test_kit/generator/search_no_params_test_generator.rb +124 -0
- data/lib/davinci_plan_net_test_kit/generator/search_test_generator.rb +276 -0
- data/lib/davinci_plan_net_test_kit/generator/special_cases.rb +92 -0
- data/lib/davinci_plan_net_test_kit/generator/suite_generator.rb +93 -0
- data/lib/davinci_plan_net_test_kit/generator/terminology_binding_metadata_extractor.rb +120 -0
- data/lib/davinci_plan_net_test_kit/generator/validation_test_generator.rb +140 -0
- data/lib/davinci_plan_net_test_kit/generator/value_extractor.rb +117 -0
- data/lib/davinci_plan_net_test_kit/generator.rb +143 -0
- data/lib/davinci_plan_net_test_kit/igs/package/SearchParameter-Resource-id.json +1 -0
- data/lib/davinci_plan_net_test_kit/igs/package/SearchParameter-Resource-lastUpdated.json +1 -0
- data/lib/davinci_plan_net_test_kit/igs/package.tgz +0 -0
- data/lib/davinci_plan_net_test_kit/must_support_test.rb +211 -0
- data/lib/davinci_plan_net_test_kit/provenance_validator.rb +37 -0
- data/lib/davinci_plan_net_test_kit/read_test.rb +62 -0
- data/lib/davinci_plan_net_test_kit/reference_resolution_test.rb +179 -0
- data/lib/davinci_plan_net_test_kit/request_logger.rb +46 -0
- data/lib/davinci_plan_net_test_kit/search_test.rb +1252 -0
- data/lib/davinci_plan_net_test_kit/search_test_properties.rb +66 -0
- data/lib/davinci_plan_net_test_kit/validation_test.rb +56 -0
- data/lib/davinci_plan_net_test_kit/version.rb +5 -0
- data/lib/davinci_plan_net_test_kit.rb +1 -0
- metadata +452 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
require_relative '../../../search_test'
|
2
|
+
require_relative '../../../generator/group_metadata'
|
3
|
+
|
4
|
+
module DaVinciPlanNetTestKit
|
5
|
+
module DaVinciPlanNetV110
|
6
|
+
class EndpointIncludeEndpointOrganizationSearchTest < Inferno::Test
|
7
|
+
include DaVinciPlanNetTestKit::SearchTest
|
8
|
+
|
9
|
+
title 'Server returns Organization resources from Endpoint search with _include=Endpoint:organization'
|
10
|
+
description %(
|
11
|
+
A server SHALL be capable of supporting _includes on search parameter Endpoint:organization.
|
12
|
+
|
13
|
+
This test will perform a search on Endpoint with _include=Endpoint:organization
|
14
|
+
and the '_id' search parameter using an id with a reference to an Organization
|
15
|
+
identified during instance gathering. The test will pass if at least one Organization
|
16
|
+
resource is found in the response and each instance that does is referenced by a returned Endpoint instance.
|
17
|
+
)
|
18
|
+
|
19
|
+
id :davinci_plan_net_v110_include_endpoint_endpoint_organization_search_test
|
20
|
+
|
21
|
+
def properties
|
22
|
+
@properties ||= SearchTestProperties.new(
|
23
|
+
resource_type: 'Endpoint',
|
24
|
+
search_param_names: [],
|
25
|
+
include_param: 'Endpoint:organization',
|
26
|
+
inc_param_sp: 'organization',
|
27
|
+
additional_resource_type: 'Organization'
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.metadata
|
32
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.additional_metadata
|
36
|
+
@additional_metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, '..', 'organization', 'metadata.yml'), aliases: true))
|
37
|
+
end
|
38
|
+
|
39
|
+
def scratch_resources
|
40
|
+
scratch[:endpoint_resources] ||= {}
|
41
|
+
end
|
42
|
+
|
43
|
+
def scratch_additional_resources
|
44
|
+
scratch[:organization_resources] ||= {}
|
45
|
+
end
|
46
|
+
|
47
|
+
run do
|
48
|
+
run_include_search_test
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_lastupdated_search_test.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative '../../../search_test'
|
2
|
+
require_relative '../../../generator/group_metadata'
|
3
|
+
|
4
|
+
module DaVinciPlanNetTestKit
|
5
|
+
module DaVinciPlanNetV110
|
6
|
+
class EndpointLastupdatedSearchTest < Inferno::Test
|
7
|
+
include DaVinciPlanNetTestKit::SearchTest
|
8
|
+
|
9
|
+
title 'Server returns valid results for Endpoint search by _lastUpdated'
|
10
|
+
description %(
|
11
|
+
A server SHALL support searching by
|
12
|
+
_lastUpdated on the Endpoint resource. This test
|
13
|
+
will pass if resources are returned and match the search criteria. If
|
14
|
+
none are returned, the test is skipped.
|
15
|
+
|
16
|
+
[Plan Net Server CapabilityStatement](http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/CapabilityStatement/plan-net)
|
17
|
+
|
18
|
+
)
|
19
|
+
|
20
|
+
id :davinci_plan_net_v110_endpoint__lastUpdated_search_test
|
21
|
+
optional
|
22
|
+
|
23
|
+
def self.properties
|
24
|
+
@properties ||= SearchTestProperties.new(
|
25
|
+
resource_type: 'Endpoint',
|
26
|
+
search_param_names: ['_lastUpdated']
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.metadata
|
31
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
32
|
+
end
|
33
|
+
|
34
|
+
def scratch_resources
|
35
|
+
scratch[:endpoint_resources] ||= {}
|
36
|
+
end
|
37
|
+
|
38
|
+
run do
|
39
|
+
run_search_test
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require_relative '../../../must_support_test'
|
2
|
+
|
3
|
+
module DaVinciPlanNetTestKit
|
4
|
+
module DaVinciPlanNetV110
|
5
|
+
class EndpointMustSupportTest < Inferno::Test
|
6
|
+
include DaVinciPlanNetTestKit::MustSupportTest
|
7
|
+
|
8
|
+
title 'All must support elements are provided in the Endpoint resources returned'
|
9
|
+
description %(
|
10
|
+
Plan Net Responders SHALL be capable of populating all data elements as
|
11
|
+
part of the query results as specified by the Plan Net Server Capability
|
12
|
+
Statement. This test will look through the Endpoint resources
|
13
|
+
found previously for the following must support elements:
|
14
|
+
|
15
|
+
* Endpoint.address
|
16
|
+
* Endpoint.connectionType
|
17
|
+
* Endpoint.contact
|
18
|
+
* Endpoint.contact.system
|
19
|
+
* Endpoint.contact.value
|
20
|
+
* Endpoint.extension:endpoint-usecase
|
21
|
+
* Endpoint.managingOrganization
|
22
|
+
* Endpoint.name
|
23
|
+
* Endpoint.payloadMimeType
|
24
|
+
* Endpoint.payloadType
|
25
|
+
* Endpoint.status
|
26
|
+
)
|
27
|
+
|
28
|
+
id :davinci_plan_net_v110_endpoint_must_support_test
|
29
|
+
|
30
|
+
def resource_type
|
31
|
+
'Endpoint'
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.metadata
|
35
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
36
|
+
end
|
37
|
+
|
38
|
+
def scratch_resources
|
39
|
+
scratch[:endpoint_resources] ||= {}
|
40
|
+
end
|
41
|
+
|
42
|
+
run do
|
43
|
+
perform_must_support_test(all_scratch_resources)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_no_params_search_test.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
require_relative '../../../search_test'
|
2
|
+
require_relative '../../../generator/group_metadata'
|
3
|
+
|
4
|
+
module DaVinciPlanNetTestKit
|
5
|
+
module DaVinciPlanNetV110
|
6
|
+
class EndpointNoParamsSearchTest < Inferno::Test
|
7
|
+
include DaVinciPlanNetTestKit::SearchTest
|
8
|
+
|
9
|
+
title 'Client can identify instances of Plan-Net Endpoint on the server'
|
10
|
+
description %(
|
11
|
+
This test gathers instances expected to conform to the target profile
|
12
|
+
for use in the rest of the tests in this sequence. It will perform
|
13
|
+
an unparameterized search and/or read instance ids provided by the tester
|
14
|
+
as described in the "Instance Gathering" section of the group description above.
|
15
|
+
|
16
|
+
)
|
17
|
+
|
18
|
+
id :davinci_plan_net_v110_endpoint_no_params_search_test
|
19
|
+
|
20
|
+
input :davinci_plan_net_v110_endpoint_no_params_search_test_ids,
|
21
|
+
title: 'ids of Plan-Net Endpoint instances',
|
22
|
+
optional: true,
|
23
|
+
description: 'Required if parameterless searches are not being used for instance gathering.'
|
24
|
+
input :no_param_search
|
25
|
+
input :max_instances
|
26
|
+
input :max_pages
|
27
|
+
|
28
|
+
def self.properties
|
29
|
+
@properties ||= SearchTestProperties.new(
|
30
|
+
first_search: true,
|
31
|
+
resource_type: 'Endpoint',
|
32
|
+
test_post_search: false
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.metadata
|
37
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
38
|
+
end
|
39
|
+
|
40
|
+
def scratch_resources
|
41
|
+
scratch[:endpoint_resources] ||= {}
|
42
|
+
end
|
43
|
+
|
44
|
+
run do
|
45
|
+
run_search_no_params_test(davinci_plan_net_v110_endpoint_no_params_search_test_ids)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_organization_search_test.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require_relative '../../../search_test'
|
2
|
+
require_relative '../../../generator/group_metadata'
|
3
|
+
|
4
|
+
module DaVinciPlanNetTestKit
|
5
|
+
module DaVinciPlanNetV110
|
6
|
+
class EndpointOrganizationSearchTest < Inferno::Test
|
7
|
+
include DaVinciPlanNetTestKit::SearchTest
|
8
|
+
|
9
|
+
title 'Server returns valid results for Endpoint search by organization'
|
10
|
+
description %(
|
11
|
+
A server SHALL support searching by
|
12
|
+
organization on the Endpoint resource. This test
|
13
|
+
will pass if resources are returned and match the search criteria. If
|
14
|
+
none are returned, the test is skipped.
|
15
|
+
|
16
|
+
[Plan Net Server CapabilityStatement](http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/CapabilityStatement/plan-net)
|
17
|
+
|
18
|
+
)
|
19
|
+
|
20
|
+
id :davinci_plan_net_v110_endpoint_organization_search_test
|
21
|
+
def self.properties
|
22
|
+
@properties ||= SearchTestProperties.new(
|
23
|
+
resource_type: 'Endpoint',
|
24
|
+
search_param_names: ['organization']
|
25
|
+
)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.metadata
|
29
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
30
|
+
end
|
31
|
+
|
32
|
+
def scratch_resources
|
33
|
+
scratch[:endpoint_resources] ||= {}
|
34
|
+
end
|
35
|
+
|
36
|
+
run do
|
37
|
+
run_search_test
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require_relative '../../../read_test'
|
2
|
+
|
3
|
+
module DaVinciPlanNetTestKit
|
4
|
+
module DaVinciPlanNetV110
|
5
|
+
class EndpointReadTest < Inferno::Test
|
6
|
+
include DaVinciPlanNetTestKit::ReadTest
|
7
|
+
|
8
|
+
title 'Server returns correct Endpoint resource from Endpoint read interaction'
|
9
|
+
description 'A server SHALL support the Endpoint read interaction.'
|
10
|
+
|
11
|
+
id :davinci_plan_net_v110_endpoint_read_test
|
12
|
+
|
13
|
+
def resource_type
|
14
|
+
'Endpoint'
|
15
|
+
end
|
16
|
+
|
17
|
+
def scratch_resources
|
18
|
+
scratch[:endpoint_resources] ||= {}
|
19
|
+
end
|
20
|
+
|
21
|
+
run do
|
22
|
+
perform_read_test(all_scratch_resources)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/davinci_plan_net_test_kit/generated/v1.1.0/endpoint/endpoint_reference_resolution_test.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require_relative '../../../reference_resolution_test'
|
2
|
+
require_relative '../resource_list'
|
3
|
+
|
4
|
+
module DaVinciPlanNetTestKit
|
5
|
+
module DaVinciPlanNetV110
|
6
|
+
class EndpointReferenceResolutionTest < Inferno::Test
|
7
|
+
include DaVinciPlanNetTestKit::ReferenceResolutionTest
|
8
|
+
include ResourceList
|
9
|
+
|
10
|
+
title 'MustSupport references within Endpoint resources are valid'
|
11
|
+
description %(
|
12
|
+
This test will attempt to read external references provided within elements
|
13
|
+
marked as 'MustSupport', if any are available.
|
14
|
+
|
15
|
+
It verifies that at least one external reference for each MustSupport Reference element
|
16
|
+
can be accessed by the test client, and conforms to corresponding Plan Net profile.
|
17
|
+
|
18
|
+
Elements which may provide external references include:
|
19
|
+
|
20
|
+
* Endpoint.managingOrganization
|
21
|
+
)
|
22
|
+
|
23
|
+
id :davinci_plan_net_v110_endpoint_reference_resolution_test
|
24
|
+
|
25
|
+
def resource_type
|
26
|
+
'Endpoint'
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.metadata
|
30
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
31
|
+
end
|
32
|
+
|
33
|
+
def scratch_resources
|
34
|
+
scratch[:endpoint_resources] ||= {}
|
35
|
+
end
|
36
|
+
|
37
|
+
run do
|
38
|
+
perform_reference_resolution_test(scratch_resources[:all])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require_relative '../../../validation_test'
|
2
|
+
|
3
|
+
module DaVinciPlanNetTestKit
|
4
|
+
module DaVinciPlanNetV110
|
5
|
+
class EndpointValidationTest < Inferno::Test
|
6
|
+
include DaVinciPlanNetTestKit::ValidationTest
|
7
|
+
|
8
|
+
id :davinci_plan_net_v110_endpoint_validation_test
|
9
|
+
title 'Endpoint resources returned during previous tests conform to the Plan-Net Endpoint'
|
10
|
+
description %(
|
11
|
+
This test verifies resources returned from the first search conform to
|
12
|
+
the [Plan-Net Endpoint](http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/StructureDefinition/plannet-Endpoint).
|
13
|
+
Systems must demonstrate at least one valid example in order to pass this test.
|
14
|
+
|
15
|
+
It verifies the presence of mandatory elements and that elements with
|
16
|
+
required bindings contain appropriate values. CodeableConcept element
|
17
|
+
bindings will fail if none of their codings have a code/system belonging
|
18
|
+
to the bound ValueSet. Quantity, Coding, and code element bindings will
|
19
|
+
fail if their code/system are not found in the valueset.
|
20
|
+
|
21
|
+
)
|
22
|
+
output :dar_code_found, :dar_extension_found
|
23
|
+
|
24
|
+
def resource_type
|
25
|
+
'Endpoint'
|
26
|
+
end
|
27
|
+
|
28
|
+
def scratch_resources
|
29
|
+
scratch[:endpoint_resources] ||= {}
|
30
|
+
end
|
31
|
+
|
32
|
+
run do
|
33
|
+
perform_validation_test(scratch_resources[:all] || [],
|
34
|
+
'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Endpoint',
|
35
|
+
'1.1.0',
|
36
|
+
skip_if_empty: true)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,171 @@
|
|
1
|
+
---
|
2
|
+
:name: plannet_Endpoint
|
3
|
+
:class_name: PlannetEndpointSequence
|
4
|
+
:version: v1.1.0
|
5
|
+
:reformatted_version: v110
|
6
|
+
:resource: Endpoint
|
7
|
+
:profile_url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Endpoint
|
8
|
+
:versioned_profile_url: http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/StructureDefinition/plannet-Endpoint
|
9
|
+
:profile_name: Plan-Net Endpoint
|
10
|
+
:profile_version: 1.1.0
|
11
|
+
:title: Plan-Net Endpoint
|
12
|
+
:short_description: Verify support for the server capabilities required by the Plan-Net
|
13
|
+
Endpoint.
|
14
|
+
:interactions:
|
15
|
+
- :code: search-type
|
16
|
+
:expectation: SHALL
|
17
|
+
- :code: read
|
18
|
+
:expectation: SHALL
|
19
|
+
- :code: vread
|
20
|
+
:expectation: SHOULD
|
21
|
+
:operations: []
|
22
|
+
:searches:
|
23
|
+
- :names:
|
24
|
+
- organization
|
25
|
+
:expectation: SHALL
|
26
|
+
:names_not_must_support_or_mandatory: []
|
27
|
+
:must_support_or_mandatory: true
|
28
|
+
- :names:
|
29
|
+
- _id
|
30
|
+
:expectation: SHALL
|
31
|
+
:names_not_must_support_or_mandatory: []
|
32
|
+
:must_support_or_mandatory: true
|
33
|
+
- :names:
|
34
|
+
- _lastUpdated
|
35
|
+
:expectation: SHALL
|
36
|
+
:names_not_must_support_or_mandatory:
|
37
|
+
- _lastUpdated
|
38
|
+
:must_support_or_mandatory: false
|
39
|
+
:search_definitions:
|
40
|
+
:organization:
|
41
|
+
:paths:
|
42
|
+
- managingOrganization
|
43
|
+
:full_paths:
|
44
|
+
- Endpoint.managingOrganization
|
45
|
+
:comparators: {}
|
46
|
+
:values: []
|
47
|
+
:type: Reference
|
48
|
+
:target: Organization
|
49
|
+
:contains_multiple: false
|
50
|
+
:multiple_or: ''
|
51
|
+
:chain:
|
52
|
+
- :chain: name
|
53
|
+
:expectation: SHALL
|
54
|
+
- :chain: address
|
55
|
+
:expectation: SHALL
|
56
|
+
- :chain: partof
|
57
|
+
:expectation: SHALL
|
58
|
+
- :chain: type
|
59
|
+
:expectation: SHALL
|
60
|
+
:_id:
|
61
|
+
:paths:
|
62
|
+
- Resource.id
|
63
|
+
:full_paths:
|
64
|
+
- Resource.id
|
65
|
+
:comparators: {}
|
66
|
+
:values: []
|
67
|
+
:type: token
|
68
|
+
:contains_multiple: false
|
69
|
+
:multiple_or: ''
|
70
|
+
:_lastUpdated:
|
71
|
+
:paths:
|
72
|
+
- Resource.meta.lastUpdated
|
73
|
+
:full_paths:
|
74
|
+
- Resource.meta.lastUpdated
|
75
|
+
:comparators:
|
76
|
+
:eq: MAY
|
77
|
+
:ne: MAY
|
78
|
+
:gt: MAY
|
79
|
+
:ge: MAY
|
80
|
+
:lt: MAY
|
81
|
+
:le: MAY
|
82
|
+
:sa: MAY
|
83
|
+
:eb: MAY
|
84
|
+
:ap: MAY
|
85
|
+
:values: []
|
86
|
+
:type: date
|
87
|
+
:contains_multiple: false
|
88
|
+
:multiple_or: ''
|
89
|
+
:include_params:
|
90
|
+
- Endpoint:organization
|
91
|
+
:revincludes: []
|
92
|
+
:required_concepts: []
|
93
|
+
:must_supports:
|
94
|
+
:extensions:
|
95
|
+
- :id: Endpoint.extension:endpoint-usecase
|
96
|
+
:url: http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/endpoint-usecase
|
97
|
+
:slices: []
|
98
|
+
:elements:
|
99
|
+
- :path: status
|
100
|
+
:fixed_value: active
|
101
|
+
- :path: connectionType
|
102
|
+
- :path: name
|
103
|
+
- :path: managingOrganization
|
104
|
+
:types:
|
105
|
+
- Reference
|
106
|
+
- :path: contact
|
107
|
+
- :path: contact.system
|
108
|
+
- :path: contact.value
|
109
|
+
- :path: payloadType
|
110
|
+
- :path: payloadMimeType
|
111
|
+
- :path: address
|
112
|
+
:mandatory_elements:
|
113
|
+
- Endpoint.meta.lastUpdated
|
114
|
+
- Endpoint.status
|
115
|
+
- Endpoint.connectionType
|
116
|
+
- Endpoint.payloadType
|
117
|
+
- Endpoint.address
|
118
|
+
:bindings:
|
119
|
+
- :type: code
|
120
|
+
:strength: required
|
121
|
+
:system: http://hl7.org/fhir/ValueSet/contact-point-system
|
122
|
+
:path: contact.system
|
123
|
+
- :type: code
|
124
|
+
:strength: required
|
125
|
+
:system: http://hl7.org/fhir/ValueSet/contact-point-use
|
126
|
+
:path: contact.use
|
127
|
+
- :type: code
|
128
|
+
:strength: required
|
129
|
+
:system: http://hl7.org/fhir/ValueSet/mimetypes
|
130
|
+
:path: payloadMimeType
|
131
|
+
- :type: CodeableConcept
|
132
|
+
:strength: extensible
|
133
|
+
:system: http://hl7.org/fhir/us/davinci-pdex-plan-net/ValueSet/EndpointUsecaseVS
|
134
|
+
:path: value
|
135
|
+
:extensions:
|
136
|
+
- http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/endpoint-usecase
|
137
|
+
- type
|
138
|
+
:references:
|
139
|
+
- :path: Endpoint.managingOrganization
|
140
|
+
:profiles:
|
141
|
+
- http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Organization
|
142
|
+
:tests:
|
143
|
+
- :id: davinci_plan_net_v110_endpoint_no_params_search_test
|
144
|
+
:file_name: endpoint_no_params_search_test.rb
|
145
|
+
- :id: davinci_plan_net_v110_endpoint_read_test
|
146
|
+
:file_name: endpoint_read_test.rb
|
147
|
+
- :id: davinci_plan_net_v110_endpoint_organization_search_test
|
148
|
+
:file_name: endpoint_organization_search_test.rb
|
149
|
+
- :id: davinci_plan_net_v110_endpoint__id_search_test
|
150
|
+
:file_name: endpoint_id_search_test.rb
|
151
|
+
- :id: davinci_plan_net_v110_endpoint__lastUpdated_search_test
|
152
|
+
:file_name: endpoint_lastupdated_search_test.rb
|
153
|
+
- :id: davinci_plan_net_v110_include_endpoint_endpoint_organization_search_test
|
154
|
+
:file_name: endpoint_include_endpoint_organization_search_test.rb
|
155
|
+
- :id: davinci_plan_net_v110_forward_chain_organization_name_search_test
|
156
|
+
:file_name: endpoint_forward_chain_organization_name_search_test.rb
|
157
|
+
- :id: davinci_plan_net_v110_forward_chain_organization_address_search_test
|
158
|
+
:file_name: endpoint_forward_chain_organization_address_search_test.rb
|
159
|
+
- :id: davinci_plan_net_v110_forward_chain_organization_partof_search_test
|
160
|
+
:file_name: endpoint_forward_chain_organization_partof_search_test.rb
|
161
|
+
- :id: davinci_plan_net_v110_forward_chain_organization_type_search_test
|
162
|
+
:file_name: endpoint_forward_chain_organization_type_search_test.rb
|
163
|
+
- :id: davinci_plan_net_v110_endpoint_validation_test
|
164
|
+
:file_name: endpoint_validation_test.rb
|
165
|
+
- :id: davinci_plan_net_v110_endpoint_must_support_test
|
166
|
+
:file_name: endpoint_must_support_test.rb
|
167
|
+
- :id: davinci_plan_net_v110_endpoint_reference_resolution_test
|
168
|
+
:file_name: endpoint_reference_resolution_test.rb
|
169
|
+
:id: davinci_plan_net_v110_endpoint
|
170
|
+
:file_name: endpoint_group.rb
|
171
|
+
:delayed_references: []
|
@@ -0,0 +1,168 @@
|
|
1
|
+
require_relative 'endpoint/endpoint_no_params_search_test'
|
2
|
+
require_relative 'endpoint/endpoint_read_test'
|
3
|
+
require_relative 'endpoint/endpoint_organization_search_test'
|
4
|
+
require_relative 'endpoint/endpoint_id_search_test'
|
5
|
+
require_relative 'endpoint/endpoint_lastupdated_search_test'
|
6
|
+
require_relative 'endpoint/endpoint_include_endpoint_organization_search_test'
|
7
|
+
require_relative 'endpoint/endpoint_forward_chain_organization_name_search_test'
|
8
|
+
require_relative 'endpoint/endpoint_forward_chain_organization_address_search_test'
|
9
|
+
require_relative 'endpoint/endpoint_forward_chain_organization_partof_search_test'
|
10
|
+
require_relative 'endpoint/endpoint_forward_chain_organization_type_search_test'
|
11
|
+
require_relative 'endpoint/endpoint_validation_test'
|
12
|
+
require_relative 'endpoint/endpoint_must_support_test'
|
13
|
+
require_relative 'endpoint/endpoint_reference_resolution_test'
|
14
|
+
|
15
|
+
module DaVinciPlanNetTestKit
|
16
|
+
module DaVinciPlanNetV110
|
17
|
+
class EndpointGroup < Inferno::TestGroup
|
18
|
+
title 'Plan-Net Endpoint Tests'
|
19
|
+
short_description 'Verify support for the server capabilities required by the Plan-Net Endpoint.'
|
20
|
+
description %(
|
21
|
+
# Background
|
22
|
+
|
23
|
+
The Plan-Net Endpoint sequence verifies that the system under test is
|
24
|
+
able to provide correct responses for Endpoint queries. These queries
|
25
|
+
must return resources conforming to the Plan-Net Endpoint profile as
|
26
|
+
specified in the Plan Net v1.1.0 Implementation Guide.
|
27
|
+
|
28
|
+
# Testing Methodology
|
29
|
+
|
30
|
+
## Instance Gathering
|
31
|
+
|
32
|
+
Inferno will first identify and obtain a set of instances to use for the rest
|
33
|
+
of the tests, requiring at least one instance to be identified for the test to pass.
|
34
|
+
Instances to gather are indentified in two ways. One or both will be used,
|
35
|
+
depending on user input.
|
36
|
+
|
37
|
+
### Parameterless searches
|
38
|
+
Instances can be gathered using a query requesting all instances of Endpoint
|
39
|
+
(e.g., `GET [FHIR Endpoint]/Endpoint`).
|
40
|
+
Gathering through this method is controlled by the following inputs (used for all profiles):
|
41
|
+
- "Use parameterless searches to identify instances?":
|
42
|
+
parameterless searches can be disabled using this input if, for example,
|
43
|
+
the server under test does not support them, or not all instances on the server
|
44
|
+
should be expected to conform to Plan Net profiles. In this case the user **MUST**
|
45
|
+
provide specific instance ids to gather.
|
46
|
+
- "Maximum number of instances to gather using parameterless searches": sets an upper
|
47
|
+
bound on the number of instances Inferno will gather from parameterless searches.
|
48
|
+
- "Maximum pages of results to consider when using parameterless searches": sets an upper bound
|
49
|
+
on the number of pages of search results Inferno will load when gathering instances
|
50
|
+
using parameterless searches.
|
51
|
+
|
52
|
+
### User-provided instance ids
|
53
|
+
|
54
|
+
If ids are listed in the "ids of Plan-Net Endpoint instances" optional input,
|
55
|
+
they will be read and included at the start of the set of gathered instances.
|
56
|
+
|
57
|
+
|
58
|
+
## Searching
|
59
|
+
This test sequence will perform a search with each required search parameter
|
60
|
+
associated with this resource individually. Searches with the
|
61
|
+
following parameters will be performed:
|
62
|
+
|
63
|
+
* organization
|
64
|
+
* _id
|
65
|
+
* _lastUpdated
|
66
|
+
|
67
|
+
### Search Parameters
|
68
|
+
Each search will look for its parameter values
|
69
|
+
from the results of the instance gathering step. For example, for a search using
|
70
|
+
the `identifier` search parameter, the test searches the gathered instances
|
71
|
+
for one with the `identifier` element populated and then uses that value
|
72
|
+
as the queried `identifier` value. If a value cannot be found this way,
|
73
|
+
the search test is skipped for that search parameter.
|
74
|
+
|
75
|
+
### Search Validation
|
76
|
+
Inferno will retrieve all bundle pages of the reply for
|
77
|
+
Endpoint resources. Each of the returned instances
|
78
|
+
is then checked to see if it matches the searched
|
79
|
+
parameters in accordance with [FHIR search
|
80
|
+
guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
|
81
|
+
for example, if a Plan-Net Endpoint search for `organization=X`
|
82
|
+
returns a Plan-Net Endpoint instance where `organization!=X`
|
83
|
+
|
84
|
+
|
85
|
+
## _include Requirement Testing
|
86
|
+
This test sequence will perform a search with each required _include search
|
87
|
+
parameter associated with this profile. This sequence will perform searches with the
|
88
|
+
following includes:
|
89
|
+
|
90
|
+
* Endpoint:organization
|
91
|
+
|
92
|
+
Each _include search will look for a candidate id that has the target reference element
|
93
|
+
populated from the results of instance gathering. Each search will use the identified
|
94
|
+
Plan-Net Endpoint id and the include parameter.
|
95
|
+
The returned instances are checked to ensure that any instances of the included
|
96
|
+
type are referenced by returned instances of the searched resource type.
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
## Forward Chaining Requirement Testing
|
101
|
+
This test sequence will perform a search with each required combination of forward chaining
|
102
|
+
search parameters. This sequence will perform searches with the following chaining parameters:
|
103
|
+
|
104
|
+
| Search Parameters | Chain Requirements |
|
105
|
+
| :---: | :---: |
|
106
|
+
| organization | name, address, partof, type |
|
107
|
+
|
108
|
+
|
109
|
+
All forward chain searches will look for candidate instances of the resource being chained through
|
110
|
+
from the results of previously run _include tests. Candidates are chosen from previously returned
|
111
|
+
instances that have the chain parameter element filled. Each search test will use one of these values
|
112
|
+
to build the requests for the test. The test will be skipped if no candidates can be found.
|
113
|
+
|
114
|
+
The test will first create and execute the forward chaining request.
|
115
|
+
The test will then perform a basic search test on the resource being chained through,
|
116
|
+
using the same value in the previous request. Each resource returned in the first
|
117
|
+
request will then be checked, validating that the element being chained through is populated by
|
118
|
+
the id of _any_ of the resources returned by the second request.
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
## Profile Validation
|
124
|
+
Each resource identified during instance gathering and other queries run during this test sequence
|
125
|
+
is expected to conform to the [Plan-Net Endpoint](http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/StructureDefinition/plannet-Endpoint). Each element is checked
|
126
|
+
by the HL7 Validator against terminology binding and cardinality requirements. Elements with a
|
127
|
+
required binding are validated against their bound ValueSet. If the code/system in the element
|
128
|
+
is not part of the ValueSet, then the test will fail.
|
129
|
+
|
130
|
+
## Must Support
|
131
|
+
Each profile contains elements marked as "must support". This test
|
132
|
+
sequence expects to see each of these elements populated at least once.
|
133
|
+
The test will look through the Plan-Net Endpoint instances identified
|
134
|
+
during instance gathering and other queries run during this test sequence.
|
135
|
+
If no populated instance can be found for any must support element, the test
|
136
|
+
will fail.
|
137
|
+
|
138
|
+
## Reference Validation
|
139
|
+
At least one instance of each external reference in elements marked as
|
140
|
+
"must support" within the resources provided by the system must resolve.
|
141
|
+
The test will attempt to read each reference found and will fail if no
|
142
|
+
read succeeds.
|
143
|
+
|
144
|
+
)
|
145
|
+
|
146
|
+
id :davinci_plan_net_v110_endpoint
|
147
|
+
run_as_group
|
148
|
+
|
149
|
+
def self.metadata
|
150
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'endpoint', 'metadata.yml'), aliases: true))
|
151
|
+
end
|
152
|
+
|
153
|
+
test from: :davinci_plan_net_v110_endpoint_no_params_search_test
|
154
|
+
test from: :davinci_plan_net_v110_endpoint_read_test
|
155
|
+
test from: :davinci_plan_net_v110_endpoint_organization_search_test
|
156
|
+
test from: :davinci_plan_net_v110_endpoint__id_search_test
|
157
|
+
test from: :davinci_plan_net_v110_endpoint__lastUpdated_search_test
|
158
|
+
test from: :davinci_plan_net_v110_include_endpoint_endpoint_organization_search_test
|
159
|
+
test from: :davinci_plan_net_v110_forward_chain_organization_name_search_test
|
160
|
+
test from: :davinci_plan_net_v110_forward_chain_organization_address_search_test
|
161
|
+
test from: :davinci_plan_net_v110_forward_chain_organization_partof_search_test
|
162
|
+
test from: :davinci_plan_net_v110_forward_chain_organization_type_search_test
|
163
|
+
test from: :davinci_plan_net_v110_endpoint_validation_test
|
164
|
+
test from: :davinci_plan_net_v110_endpoint_must_support_test
|
165
|
+
test from: :davinci_plan_net_v110_endpoint_reference_resolution_test
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|