Module: DaVinciPDexTestKit

Defined in:
lib/davinci_pdex_test_kit.rb,
lib/davinci_pdex_test_kit/tags.rb,
lib/davinci_pdex_test_kit/urls.rb,
lib/davinci_pdex_test_kit/version.rb,
lib/davinci_pdex_test_kit/mock_server.rb,
lib/davinci_pdex_test_kit/group_metadata.rb,
lib/davinci_pdex_test_kit/must_support_test.rb,
lib/davinci_pdex_test_kit/user_input_response.rb,
lib/davinci_pdex_test_kit/pdex_payer_client_suite.rb,
lib/davinci_pdex_test_kit/pdex_payer_server_suite.rb,
lib/davinci_pdex_test_kit/fhir_resource_navigation.rb,
lib/davinci_pdex_test_kit/pdex_provider_client_suite.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/collection.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/export_patient_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/client_validation_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/export_validation_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/no_member_matches_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/workflow_everything_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/workflow_member_match_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/workflow_clinical_data_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/multiple_member_matches_group.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/member_match_request_profile_validation.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/coverage_to_link_minimal_data_validation.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/coverage_to_link_must_support_validation.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/initial_wait_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/member_match_request_local_references_validation.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/initial_scratch_storing.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/patient_operation_in_capability_statement_validation.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_read_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/client_member_match_tests/client_member_match_submit_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/goal_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_id_search_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/client_member_match_tests/client_member_match_validation_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/device_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_validation_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/patient_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/careplan_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/careteam_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/location_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_must_support_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/condition_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/encounter_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/procedure_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/observation_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/immunization_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/organization_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/practitioner_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_identifier_search_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_use_search_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/client_must_support_tests/client_member_match_must_support_submit_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_type_search_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/diagnosticreport_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/practitionerrole_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_reference_resolution_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/documentreference_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/medicationrequest_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/allergyintolerance_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/medicationdispense_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/client_must_support_tests/client_member_match_must_support_validation_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_client/clinical_data_request_tests/explanationofbenefit_clinical_data_request_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_last_updated_search_test.rb,
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_service_date_search_test.rb

Overview

require_relative ‘davinci_pdex_test_kit/pdex_provider_client_suite’

Defined Under Namespace

Modules: ClientValidationTest, FHIRResourceNavigation, MockServer, MustSupportTest, PDexPayerServer, URLs, UserInputResponse Classes: GroupMetadata, PDexClientAllergyIntoleranceSubmitClinicalDataRequestTest, PDexClientCarePlanSubmitClinicalDataRequestTest, PDexClientCareTeamSubmitClinicalDataRequestTest, PDexClientConditionSubmitClinicalDataRequestTest, PDexClientDeviceSubmitClinicalDataRequestTest, PDexClientDiagnosticReportSubmitClinicalDataRequestTest, PDexClientDocumentReferenceSubmitClinicalDataRequestTest, PDexClientEncounterSubmitClinicalDataRequestTest, PDexClientExplanationOfBenefitSubmitClinicalDataRequestTest, PDexClientGoalSubmitClinicalDataRequestTest, PDexClientImmunizationSubmitClinicalDataRequestTest, PDexClientLocationSubmitClinicalDataRequestTest, PDexClientMedicationDispenseSubmitClinicalDataRequestTest, PDexClientMedicationRequestSubmitClinicalDataRequestTest, PDexClientMemberMatchMustSupportSubmitTest, PDexClientMemberMatchSubmitTest, PDexClientObservationSubmitClinicalDataRequestTest, PDexClientOrganizationSubmitClinicalDataRequestTest, PDexClientPatientSubmitClinicalDataRequestTest, PDexClientPractitionerRoleSubmitClinicalDataRequestTest, PDexClientPractitionerSubmitClinicalDataRequestTest, PDexClientProcedureSubmitClinicalDataRequestTest, PDexClientScratchStorage, PDexClientSubmitMustSupportTest, PDexInitialMemberMatchMustSupportValidationTest, PDexInitialMemberMatchValidationTest, PDexPayerClientSuite, PDexPayerServerSuite, PDexProviderClientSuite

Constant Summary collapse

AUTH_TAG =
'pdex_auth'
SUBMIT_TAG =
'pdex_submit'
BINARY_TAG =
'pdex_binary'
EXPORT_TAG =
'pdex_export'
EXPORT_STATUS_TAG =
'pdex_export_status'
EVERYTHING_TAG =
'pdex_everything'
MEMBER_MATCH_TAG =
'pdex_member_match'
TOKEN_PATH =
'/mock_auth/token'
PATIENT_PATH =
'/fhir/Patient'
SUBMIT_PATH =
'/fhir/:endpoint'
BINARY_PATH =
'/fhir/Binary/:id'
METADATA_PATH =
'/fhir/metadata'
EVERYTHING_PATH =
'/fhir/Patient/:patient/$everything'
MEMBER_MATCH_PATH =
'/fhir/Patient/$member-match'
EXPORT_PATH =
'/fhir/Patient/$export'
EXPORT_STATUS_PATH =
'/fhir/$export-poll-status'
BASE_FHIR_PATH =
'/fhir'
RESUME_PASS_PATH =
'/resume_pass'
RESUME_CLINICAL_DATA_PATH =
'/resume_clinical_data'
RESUME_FAIL_PATH =
'/resume_fail'
VERSION =
'0.10.6'
SET_TO_BE_GATHERED =
{AllergyIntolerance: ['pdex-AllergyIntolerance'],
  CarePlan: ['pdex-CarePlan'],
  CareTeam: ['pdex-CareTeam'],
  Condition: ['pdex-Condition'],
  Device: ['pdex-Device'],
  DiagnosticReport: ['pdex-DiagnosticReport'],
  DocumentReference: ['pdex-DocumentReference'],
  Encounter: ['pdex-Encounter'],
  ExplanationOfBenefit: ['pdex-ExplanationOfBenefit'],
  Goal: ['pdex-Goal'],
  Immunization: ['pdex-Immunization'],
  Location: ['pdex-Location'],
  MedicationDispense: ['pdex-MedicationDispense'],
  MedicationRequest: ['pdex-MedicationRequest'],
  Observation: ['pdex-Observation'],
  Organization: ['pdex-Organization'],
  Patient: ['999'],
  Practitioner: ['pdex-Practitioner'],
  PractitionerRole: ['pdex-PractitionerRole'],
  Procedure: ['pdex-Procedure']
  #TODO: What about Provenance?
}
SEARCHES_BY_PRIORITY =
{AllergyIntolerance: [['patient']],
  CarePlan: [['category', 'patient']],
  CareTeam: [['patient', 'status']],
  Condition: [['category', 'patient'], ['patient']],
  Device: [['patient', 'type'], ['patient']],
  DiagnosticReport: [['category', 'date', 'patient'], ['code', 'patient'], ['category', 'patient'], ['patient']],
  DocumentReference: [['_id'], ['category', 'date', 'patient'], ['patient', 'type'], ['category', 'patient'], ['patient']],
  Encounter: [['_id'], ['date', 'patient'], ['patient']],
  ExplanationOfBenefit: [['_id'], ['patient'], ['identifier'], ['_lastUpdated'], ['service-date'], ['type']],
  Goal: [['patient']],
  Immunization: [['patient']],
  Location: [['name'], ['address']],
  MedicationDispense: [['patient']],
  MedicationRequest: [['intent', 'patient']],
  Observation: [['category', 'date', 'patient'], ['code', 'patient'], ['category', 'patient']],
  Organization: [['name'], ['address']],
  Patient: [['_id'], ['identifier'], ['birthdate', 'name'], ['gender', 'name'], ['name']],
  Practitioner: [['identifier'], ['name']],
  PractitionerRole: [['practitioner'], ['specialty']],
  Procedure: [['date', 'patient'], ['patient']],
}