Module: AUCoreTestKit::SearchTest

Extended by:
Forwardable
Includes:
AssertHelpers, DateSearchValidation, FHIRResourceNavigation, ReadTest
Included in:
AUCoreV100::AllergyIntoleranceClinicalStatusSearchTest, AUCoreV100::AllergyIntolerancePatientClinicalStatusSearchTest, AUCoreV100::AllergyIntolerancePatientSearchTest, AUCoreV100::BloodpressureCategorySearchTest, AUCoreV100::BloodpressureCodeMultipleOrSearchTest, AUCoreV100::BloodpressureCodeSearchTest, AUCoreV100::BloodpressureDateMultipleAndSearchTest, AUCoreV100::BloodpressureDateSearchTest, AUCoreV100::BloodpressurePatientCategoryDateSearchTest, AUCoreV100::BloodpressurePatientCategorySearchTest, AUCoreV100::BloodpressurePatientCategoryStatusSearchTest, AUCoreV100::BloodpressurePatientCodeDateSearchTest, AUCoreV100::BloodpressurePatientCodeSearchTest, AUCoreV100::BloodpressurePatientSearchTest, AUCoreV100::BloodpressureStatusMultipleOrSearchTest, AUCoreV100::BloodpressureStatusSearchTest, AUCoreV100::BodyheightCategorySearchTest, AUCoreV100::BodyheightCodeMultipleOrSearchTest, AUCoreV100::BodyheightCodeSearchTest, AUCoreV100::BodyheightDateMultipleAndSearchTest, AUCoreV100::BodyheightDateSearchTest, AUCoreV100::BodyheightPatientCategoryDateSearchTest, AUCoreV100::BodyheightPatientCategorySearchTest, AUCoreV100::BodyheightPatientCategoryStatusSearchTest, AUCoreV100::BodyheightPatientCodeDateSearchTest, AUCoreV100::BodyheightPatientCodeSearchTest, AUCoreV100::BodyheightPatientSearchTest, AUCoreV100::BodyheightStatusMultipleOrSearchTest, AUCoreV100::BodyheightStatusSearchTest, AUCoreV100::BodytempCategorySearchTest, AUCoreV100::BodytempCodeMultipleOrSearchTest, AUCoreV100::BodytempCodeSearchTest, AUCoreV100::BodytempDateMultipleAndSearchTest, AUCoreV100::BodytempDateSearchTest, AUCoreV100::BodytempPatientCategoryDateSearchTest, AUCoreV100::BodytempPatientCategorySearchTest, AUCoreV100::BodytempPatientCategoryStatusSearchTest, AUCoreV100::BodytempPatientCodeDateSearchTest, AUCoreV100::BodytempPatientCodeSearchTest, AUCoreV100::BodytempPatientSearchTest, AUCoreV100::BodytempStatusMultipleOrSearchTest, AUCoreV100::BodytempStatusSearchTest, AUCoreV100::BodyweightCategorySearchTest, AUCoreV100::BodyweightCodeMultipleOrSearchTest, AUCoreV100::BodyweightCodeSearchTest, AUCoreV100::BodyweightDateMultipleAndSearchTest, AUCoreV100::BodyweightDateSearchTest, AUCoreV100::BodyweightPatientCategoryDateSearchTest, AUCoreV100::BodyweightPatientCategorySearchTest, AUCoreV100::BodyweightPatientCategoryStatusSearchTest, AUCoreV100::BodyweightPatientCodeDateSearchTest, AUCoreV100::BodyweightPatientCodeSearchTest, AUCoreV100::BodyweightPatientSearchTest, AUCoreV100::BodyweightStatusMultipleOrSearchTest, AUCoreV100::BodyweightStatusSearchTest, AUCoreV100::ConditionCategorySearchTest, AUCoreV100::ConditionClinicalStatusSearchTest, AUCoreV100::ConditionCodeMultipleOrSearchTest, AUCoreV100::ConditionCodeSearchTest, AUCoreV100::ConditionOnsetDateSearchTest, AUCoreV100::ConditionOnset_dateMultipleAndSearchTest, AUCoreV100::ConditionPatientCategoryClinicalStatusSearchTest, AUCoreV100::ConditionPatientCategorySearchTest, AUCoreV100::ConditionPatientClinicalStatusSearchTest, AUCoreV100::ConditionPatientCodeSearchTest, AUCoreV100::ConditionPatientOnsetDateSearchTest, AUCoreV100::ConditionPatientSearchTest, AUCoreV100::DiagnosticresultCategorySearchTest, AUCoreV100::DiagnosticresultCodeMultipleOrSearchTest, AUCoreV100::DiagnosticresultCodeSearchTest, AUCoreV100::DiagnosticresultDateMultipleAndSearchTest, AUCoreV100::DiagnosticresultDateSearchTest, AUCoreV100::DiagnosticresultPathCategorySearchTest, AUCoreV100::DiagnosticresultPathCodeMultipleOrSearchTest, AUCoreV100::DiagnosticresultPathCodeSearchTest, AUCoreV100::DiagnosticresultPathDateMultipleAndSearchTest, AUCoreV100::DiagnosticresultPathDateSearchTest, AUCoreV100::DiagnosticresultPathPatientCategoryDateSearchTest, AUCoreV100::DiagnosticresultPathPatientCategorySearchTest, AUCoreV100::DiagnosticresultPathPatientCategoryStatusSearchTest, AUCoreV100::DiagnosticresultPathPatientCodeDateSearchTest, AUCoreV100::DiagnosticresultPathPatientCodeSearchTest, AUCoreV100::DiagnosticresultPathPatientSearchTest, AUCoreV100::DiagnosticresultPathStatusMultipleOrSearchTest, AUCoreV100::DiagnosticresultPathStatusSearchTest, AUCoreV100::DiagnosticresultPatientCategoryDateSearchTest, AUCoreV100::DiagnosticresultPatientCategorySearchTest, AUCoreV100::DiagnosticresultPatientCategoryStatusSearchTest, AUCoreV100::DiagnosticresultPatientCodeDateSearchTest, AUCoreV100::DiagnosticresultPatientCodeSearchTest, AUCoreV100::DiagnosticresultPatientSearchTest, AUCoreV100::DiagnosticresultStatusMultipleOrSearchTest, AUCoreV100::DiagnosticresultStatusSearchTest, AUCoreV100::EncounterClassPatientSearchTest, AUCoreV100::EncounterClassSearchTest, AUCoreV100::EncounterDateMultipleAndSearchTest, AUCoreV100::EncounterDatePatientSearchTest, AUCoreV100::EncounterDateSearchTest, AUCoreV100::EncounterLocationSearchTest, AUCoreV100::EncounterPatientLocationSearchTest, AUCoreV100::EncounterPatientSearchTest, AUCoreV100::EncounterPatientStatusSearchTest, AUCoreV100::EncounterStatusMultipleOrSearchTest, AUCoreV100::EncounterStatusSearchTest, AUCoreV100::HeartrateCategorySearchTest, AUCoreV100::HeartrateCodeMultipleOrSearchTest, AUCoreV100::HeartrateCodeSearchTest, AUCoreV100::HeartrateDateMultipleAndSearchTest, AUCoreV100::HeartrateDateSearchTest, AUCoreV100::HeartratePatientCategoryDateSearchTest, AUCoreV100::HeartratePatientCategorySearchTest, AUCoreV100::HeartratePatientCategoryStatusSearchTest, AUCoreV100::HeartratePatientCodeDateSearchTest, AUCoreV100::HeartratePatientCodeSearchTest, AUCoreV100::HeartratePatientSearchTest, AUCoreV100::HeartrateStatusMultipleOrSearchTest, AUCoreV100::HeartrateStatusSearchTest, AUCoreV100::ImmunizationDateMultipleAndSearchTest, AUCoreV100::ImmunizationDateSearchTest, AUCoreV100::ImmunizationPatientDateSearchTest, AUCoreV100::ImmunizationPatientSearchTest, AUCoreV100::ImmunizationPatientStatusSearchTest, AUCoreV100::ImmunizationPatientVaccineCodeSearchTest, AUCoreV100::ImmunizationStatusSearchTest, AUCoreV100::ImmunizationVaccineCodeSearchTest, AUCoreV100::ImmunizationVaccine_codeMultipleOrSearchTest, AUCoreV100::LocationAddressCitySearchTest, AUCoreV100::LocationAddressPostalcodeSearchTest, AUCoreV100::LocationAddressSearchTest, AUCoreV100::LocationAddressStateSearchTest, AUCoreV100::LocationNameSearchTest, AUCoreV100::MedicationRequestAuthoredonMultipleAndSearchTest, AUCoreV100::MedicationRequestAuthoredonSearchTest, AUCoreV100::MedicationRequestIdIncludeMedicationTest, AUCoreV100::MedicationRequestIdSearchTest, AUCoreV100::MedicationRequestIntentMultipleOrSearchTest, AUCoreV100::MedicationRequestIntentSearchTest, AUCoreV100::MedicationRequestPatientIncludeMedicationTest, AUCoreV100::MedicationRequestPatientIntentAuthoredonIncludeMedicationTest, AUCoreV100::MedicationRequestPatientIntentAuthoredonSearchTest, AUCoreV100::MedicationRequestPatientIntentIncludeMedicationTest, AUCoreV100::MedicationRequestPatientIntentSearchTest, AUCoreV100::MedicationRequestPatientIntentStatusIncludeMedicationTest, AUCoreV100::MedicationRequestPatientIntentStatusSearchTest, AUCoreV100::MedicationRequestPatientSearchTest, AUCoreV100::MedicationRequestPatientStatusSearchTest, AUCoreV100::MedicationRequestStatusMultipleOrSearchTest, AUCoreV100::MedicationRequestStatusSearchTest, AUCoreV100::OrganizationAddressSearchTest, AUCoreV100::OrganizationIdSearchTest, AUCoreV100::OrganizationIdentifierSearchTest, AUCoreV100::OrganizationNameSearchTest, AUCoreV100::PatientBirthdateFamilySearchTest, AUCoreV100::PatientBirthdateMultipleAndSearchTest, AUCoreV100::PatientBirthdateNameSearchTest, AUCoreV100::PatientBirthdateSearchTest, AUCoreV100::PatientFamilyGenderSearchTest, AUCoreV100::PatientFamilySearchTest, AUCoreV100::PatientGenderIdentitySearchTest, AUCoreV100::PatientGenderNameSearchTest, AUCoreV100::PatientGenderSearchTest, AUCoreV100::PatientGender_identityMultipleAndSearchTest, AUCoreV100::PatientGender_identityMultipleOrSearchTest, AUCoreV100::PatientIdSearchTest, AUCoreV100::PatientIdentifierSearchTest, AUCoreV100::PatientIndigenousStatusSearchTest, AUCoreV100::PatientIndigenous_statusMultipleAndSearchTest, AUCoreV100::PatientIndigenous_statusMultipleOrSearchTest, AUCoreV100::PatientNameSearchTest, AUCoreV100::PractitionerIdSearchTest, AUCoreV100::PractitionerIdentifierSearchTest, AUCoreV100::PractitionerNameSearchTest, AUCoreV100::PractitionerRoleIdIncludePractitionerTest, AUCoreV100::PractitionerRoleIdSearchTest, AUCoreV100::PractitionerRoleIdentifierIncludePractitionerTest, AUCoreV100::PractitionerRoleIdentifierSearchTest, AUCoreV100::PractitionerRoleOrganizationSearchTest, AUCoreV100::PractitionerRolePractitionerIncludePractitionerTest, AUCoreV100::PractitionerRolePractitionerMultipleAndSearchTest, AUCoreV100::PractitionerRolePractitionerMultipleOrSearchTest, AUCoreV100::PractitionerRolePractitionerSearchTest, AUCoreV100::PractitionerRoleRoleSearchTest, AUCoreV100::PractitionerRoleSpecialtyIncludePractitionerTest, AUCoreV100::PractitionerRoleSpecialtySearchTest, AUCoreV100::ProcedureCodeMultipleOrSearchTest, AUCoreV100::ProcedureCodeSearchTest, AUCoreV100::ProcedureDateMultipleAndSearchTest, AUCoreV100::ProcedureDateSearchTest, AUCoreV100::ProcedurePatientCodeDateSearchTest, AUCoreV100::ProcedurePatientDateSearchTest, AUCoreV100::ProcedurePatientSearchTest, AUCoreV100::ProcedurePatientStatusSearchTest, AUCoreV100::ProcedureStatusMultipleOrSearchTest, AUCoreV100::ProcedureStatusSearchTest, AUCoreV100::ResprateCategorySearchTest, AUCoreV100::ResprateCodeMultipleOrSearchTest, AUCoreV100::ResprateCodeSearchTest, AUCoreV100::ResprateDateMultipleAndSearchTest, AUCoreV100::ResprateDateSearchTest, AUCoreV100::RespratePatientCategoryDateSearchTest, AUCoreV100::RespratePatientCategorySearchTest, AUCoreV100::RespratePatientCategoryStatusSearchTest, AUCoreV100::RespratePatientCodeDateSearchTest, AUCoreV100::RespratePatientCodeSearchTest, AUCoreV100::RespratePatientSearchTest, AUCoreV100::ResprateStatusMultipleOrSearchTest, AUCoreV100::ResprateStatusSearchTest, AUCoreV100::SmokingstatusCategorySearchTest, AUCoreV100::SmokingstatusCodeMultipleOrSearchTest, AUCoreV100::SmokingstatusCodeSearchTest, AUCoreV100::SmokingstatusDateMultipleAndSearchTest, AUCoreV100::SmokingstatusDateSearchTest, AUCoreV100::SmokingstatusPatientCategoryDateSearchTest, AUCoreV100::SmokingstatusPatientCategorySearchTest, AUCoreV100::SmokingstatusPatientCategoryStatusSearchTest, AUCoreV100::SmokingstatusPatientCodeDateSearchTest, AUCoreV100::SmokingstatusPatientCodeSearchTest, AUCoreV100::SmokingstatusPatientSearchTest, AUCoreV100::SmokingstatusStatusMultipleOrSearchTest, AUCoreV100::SmokingstatusStatusSearchTest, AUCoreV100::WaistcircumCategorySearchTest, AUCoreV100::WaistcircumCodeMultipleOrSearchTest, AUCoreV100::WaistcircumCodeSearchTest, AUCoreV100::WaistcircumDateMultipleAndSearchTest, AUCoreV100::WaistcircumDateSearchTest, AUCoreV100::WaistcircumPatientCategoryDateSearchTest, AUCoreV100::WaistcircumPatientCategorySearchTest, AUCoreV100::WaistcircumPatientCategoryStatusSearchTest, AUCoreV100::WaistcircumPatientCodeDateSearchTest, AUCoreV100::WaistcircumPatientCodeSearchTest, AUCoreV100::WaistcircumPatientSearchTest, AUCoreV100::WaistcircumStatusMultipleOrSearchTest, AUCoreV100::WaistcircumStatusSearchTest, AUCoreV110_PREVIEW::AllergyIntoleranceClinicalStatusSearchTest, AUCoreV110_PREVIEW::AllergyIntolerancePatientClinicalStatusSearchTest, AUCoreV110_PREVIEW::AllergyIntolerancePatientSearchTest, AUCoreV110_PREVIEW::BloodpressureCategorySearchTest, AUCoreV110_PREVIEW::BloodpressureCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::BloodpressureCodeSearchTest, AUCoreV110_PREVIEW::BloodpressureDateMultipleAndSearchTest, AUCoreV110_PREVIEW::BloodpressureDateSearchTest, AUCoreV110_PREVIEW::BloodpressurePatientCategoryDateSearchTest, AUCoreV110_PREVIEW::BloodpressurePatientCategorySearchTest, AUCoreV110_PREVIEW::BloodpressurePatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::BloodpressurePatientCodeDateSearchTest, AUCoreV110_PREVIEW::BloodpressurePatientCodeSearchTest, AUCoreV110_PREVIEW::BloodpressurePatientSearchTest, AUCoreV110_PREVIEW::BloodpressureStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::BloodpressureStatusSearchTest, AUCoreV110_PREVIEW::BodyheightCategorySearchTest, AUCoreV110_PREVIEW::BodyheightCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::BodyheightCodeSearchTest, AUCoreV110_PREVIEW::BodyheightDateMultipleAndSearchTest, AUCoreV110_PREVIEW::BodyheightDateSearchTest, AUCoreV110_PREVIEW::BodyheightPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::BodyheightPatientCategorySearchTest, AUCoreV110_PREVIEW::BodyheightPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::BodyheightPatientCodeDateSearchTest, AUCoreV110_PREVIEW::BodyheightPatientCodeSearchTest, AUCoreV110_PREVIEW::BodyheightPatientSearchTest, AUCoreV110_PREVIEW::BodyheightStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::BodyheightStatusSearchTest, AUCoreV110_PREVIEW::BodytempCategorySearchTest, AUCoreV110_PREVIEW::BodytempCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::BodytempCodeSearchTest, AUCoreV110_PREVIEW::BodytempDateMultipleAndSearchTest, AUCoreV110_PREVIEW::BodytempDateSearchTest, AUCoreV110_PREVIEW::BodytempPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::BodytempPatientCategorySearchTest, AUCoreV110_PREVIEW::BodytempPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::BodytempPatientCodeDateSearchTest, AUCoreV110_PREVIEW::BodytempPatientCodeSearchTest, AUCoreV110_PREVIEW::BodytempPatientSearchTest, AUCoreV110_PREVIEW::BodytempStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::BodytempStatusSearchTest, AUCoreV110_PREVIEW::BodyweightCategorySearchTest, AUCoreV110_PREVIEW::BodyweightCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::BodyweightCodeSearchTest, AUCoreV110_PREVIEW::BodyweightDateMultipleAndSearchTest, AUCoreV110_PREVIEW::BodyweightDateSearchTest, AUCoreV110_PREVIEW::BodyweightPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::BodyweightPatientCategorySearchTest, AUCoreV110_PREVIEW::BodyweightPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::BodyweightPatientCodeDateSearchTest, AUCoreV110_PREVIEW::BodyweightPatientCodeSearchTest, AUCoreV110_PREVIEW::BodyweightPatientSearchTest, AUCoreV110_PREVIEW::BodyweightStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::BodyweightStatusSearchTest, AUCoreV110_PREVIEW::ConditionCategorySearchTest, AUCoreV110_PREVIEW::ConditionClinicalStatusSearchTest, AUCoreV110_PREVIEW::ConditionCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::ConditionCodeSearchTest, AUCoreV110_PREVIEW::ConditionOnsetDateSearchTest, AUCoreV110_PREVIEW::ConditionOnset_dateMultipleAndSearchTest, AUCoreV110_PREVIEW::ConditionPatientCategoryClinicalStatusSearchTest, AUCoreV110_PREVIEW::ConditionPatientCategorySearchTest, AUCoreV110_PREVIEW::ConditionPatientClinicalStatusSearchTest, AUCoreV110_PREVIEW::ConditionPatientCodeSearchTest, AUCoreV110_PREVIEW::ConditionPatientOnsetDateSearchTest, AUCoreV110_PREVIEW::ConditionPatientSearchTest, AUCoreV110_PREVIEW::DiagnosticresultCategorySearchTest, AUCoreV110_PREVIEW::DiagnosticresultCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::DiagnosticresultCodeSearchTest, AUCoreV110_PREVIEW::DiagnosticresultDateMultipleAndSearchTest, AUCoreV110_PREVIEW::DiagnosticresultDateSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathCategorySearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathCodeSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathDateMultipleAndSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathDateSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathPatientCategorySearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathPatientCodeDateSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathPatientCodeSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathPatientSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPathStatusSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPatientCategorySearchTest, AUCoreV110_PREVIEW::DiagnosticresultPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPatientCodeDateSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPatientCodeSearchTest, AUCoreV110_PREVIEW::DiagnosticresultPatientSearchTest, AUCoreV110_PREVIEW::DiagnosticresultStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::DiagnosticresultStatusSearchTest, AUCoreV110_PREVIEW::EncounterClassPatientSearchTest, AUCoreV110_PREVIEW::EncounterClassSearchTest, AUCoreV110_PREVIEW::EncounterDateMultipleAndSearchTest, AUCoreV110_PREVIEW::EncounterDatePatientSearchTest, AUCoreV110_PREVIEW::EncounterDateSearchTest, AUCoreV110_PREVIEW::EncounterLocationSearchTest, AUCoreV110_PREVIEW::EncounterPatientLocationSearchTest, AUCoreV110_PREVIEW::EncounterPatientSearchTest, AUCoreV110_PREVIEW::EncounterPatientStatusSearchTest, AUCoreV110_PREVIEW::EncounterStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::EncounterStatusSearchTest, AUCoreV110_PREVIEW::HeartrateCategorySearchTest, AUCoreV110_PREVIEW::HeartrateCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::HeartrateCodeSearchTest, AUCoreV110_PREVIEW::HeartrateDateMultipleAndSearchTest, AUCoreV110_PREVIEW::HeartrateDateSearchTest, AUCoreV110_PREVIEW::HeartratePatientCategoryDateSearchTest, AUCoreV110_PREVIEW::HeartratePatientCategorySearchTest, AUCoreV110_PREVIEW::HeartratePatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::HeartratePatientCodeDateSearchTest, AUCoreV110_PREVIEW::HeartratePatientCodeSearchTest, AUCoreV110_PREVIEW::HeartratePatientSearchTest, AUCoreV110_PREVIEW::HeartrateStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::HeartrateStatusSearchTest, AUCoreV110_PREVIEW::ImmunizationDateMultipleAndSearchTest, AUCoreV110_PREVIEW::ImmunizationDateSearchTest, AUCoreV110_PREVIEW::ImmunizationPatientDateSearchTest, AUCoreV110_PREVIEW::ImmunizationPatientSearchTest, AUCoreV110_PREVIEW::ImmunizationPatientStatusSearchTest, AUCoreV110_PREVIEW::ImmunizationPatientVaccineCodeSearchTest, AUCoreV110_PREVIEW::ImmunizationStatusSearchTest, AUCoreV110_PREVIEW::ImmunizationVaccineCodeSearchTest, AUCoreV110_PREVIEW::ImmunizationVaccine_codeMultipleOrSearchTest, AUCoreV110_PREVIEW::LocationAddressCitySearchTest, AUCoreV110_PREVIEW::LocationAddressPostalcodeSearchTest, AUCoreV110_PREVIEW::LocationAddressSearchTest, AUCoreV110_PREVIEW::LocationAddressStateSearchTest, AUCoreV110_PREVIEW::LocationNameSearchTest, AUCoreV110_PREVIEW::MedicationRequestAuthoredonMultipleAndSearchTest, AUCoreV110_PREVIEW::MedicationRequestAuthoredonSearchTest, AUCoreV110_PREVIEW::MedicationRequestIdIncludeMedicationTest, AUCoreV110_PREVIEW::MedicationRequestIdSearchTest, AUCoreV110_PREVIEW::MedicationRequestIntentMultipleOrSearchTest, AUCoreV110_PREVIEW::MedicationRequestIntentSearchTest, AUCoreV110_PREVIEW::MedicationRequestPatientIncludeMedicationTest, AUCoreV110_PREVIEW::MedicationRequestPatientIntentAuthoredonIncludeMedicationTest, AUCoreV110_PREVIEW::MedicationRequestPatientIntentAuthoredonSearchTest, AUCoreV110_PREVIEW::MedicationRequestPatientIntentIncludeMedicationTest, AUCoreV110_PREVIEW::MedicationRequestPatientIntentSearchTest, AUCoreV110_PREVIEW::MedicationRequestPatientIntentStatusIncludeMedicationTest, AUCoreV110_PREVIEW::MedicationRequestPatientIntentStatusSearchTest, AUCoreV110_PREVIEW::MedicationRequestPatientSearchTest, AUCoreV110_PREVIEW::MedicationRequestPatientStatusSearchTest, AUCoreV110_PREVIEW::MedicationRequestStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::MedicationRequestStatusSearchTest, AUCoreV110_PREVIEW::MedicationStatementEffectiveSearchTest, AUCoreV110_PREVIEW::MedicationStatementIdSearchTest, AUCoreV110_PREVIEW::MedicationStatementPatientEffectiveSearchTest, AUCoreV110_PREVIEW::MedicationStatementPatientSearchTest, AUCoreV110_PREVIEW::MedicationStatementPatientStatusSearchTest, AUCoreV110_PREVIEW::MedicationStatementStatusSearchTest, AUCoreV110_PREVIEW::OrganizationAddressSearchTest, AUCoreV110_PREVIEW::OrganizationIdSearchTest, AUCoreV110_PREVIEW::OrganizationIdentifierSearchTest, AUCoreV110_PREVIEW::OrganizationNameSearchTest, AUCoreV110_PREVIEW::PatientBirthdateFamilySearchTest, AUCoreV110_PREVIEW::PatientBirthdateMultipleAndSearchTest, AUCoreV110_PREVIEW::PatientBirthdateNameSearchTest, AUCoreV110_PREVIEW::PatientBirthdateSearchTest, AUCoreV110_PREVIEW::PatientFamilyGenderSearchTest, AUCoreV110_PREVIEW::PatientFamilySearchTest, AUCoreV110_PREVIEW::PatientGenderIdentitySearchTest, AUCoreV110_PREVIEW::PatientGenderNameSearchTest, AUCoreV110_PREVIEW::PatientGenderSearchTest, AUCoreV110_PREVIEW::PatientGender_identityMultipleAndSearchTest, AUCoreV110_PREVIEW::PatientGender_identityMultipleOrSearchTest, AUCoreV110_PREVIEW::PatientIdSearchTest, AUCoreV110_PREVIEW::PatientIdentifierSearchTest, AUCoreV110_PREVIEW::PatientIndigenousStatusSearchTest, AUCoreV110_PREVIEW::PatientIndigenous_statusMultipleAndSearchTest, AUCoreV110_PREVIEW::PatientIndigenous_statusMultipleOrSearchTest, AUCoreV110_PREVIEW::PatientNameSearchTest, AUCoreV110_PREVIEW::PractitionerIdSearchTest, AUCoreV110_PREVIEW::PractitionerIdentifierSearchTest, AUCoreV110_PREVIEW::PractitionerNameSearchTest, AUCoreV110_PREVIEW::PractitionerRoleIdIncludePractitionerTest, AUCoreV110_PREVIEW::PractitionerRoleIdSearchTest, AUCoreV110_PREVIEW::PractitionerRoleIdentifierIncludePractitionerTest, AUCoreV110_PREVIEW::PractitionerRoleIdentifierSearchTest, AUCoreV110_PREVIEW::PractitionerRoleOrganizationSearchTest, AUCoreV110_PREVIEW::PractitionerRolePractitionerIncludePractitionerTest, AUCoreV110_PREVIEW::PractitionerRolePractitionerMultipleAndSearchTest, AUCoreV110_PREVIEW::PractitionerRolePractitionerMultipleOrSearchTest, AUCoreV110_PREVIEW::PractitionerRolePractitionerSearchTest, AUCoreV110_PREVIEW::PractitionerRoleRoleSearchTest, AUCoreV110_PREVIEW::PractitionerRoleSpecialtyIncludePractitionerTest, AUCoreV110_PREVIEW::PractitionerRoleSpecialtySearchTest, AUCoreV110_PREVIEW::ProcedureCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::ProcedureCodeSearchTest, AUCoreV110_PREVIEW::ProcedureDateMultipleAndSearchTest, AUCoreV110_PREVIEW::ProcedureDateSearchTest, AUCoreV110_PREVIEW::ProcedurePatientCodeDateSearchTest, AUCoreV110_PREVIEW::ProcedurePatientDateSearchTest, AUCoreV110_PREVIEW::ProcedurePatientSearchTest, AUCoreV110_PREVIEW::ProcedurePatientStatusSearchTest, AUCoreV110_PREVIEW::ProcedureStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::ProcedureStatusSearchTest, AUCoreV110_PREVIEW::RelatedPersonIdSearchTest, AUCoreV110_PREVIEW::RelatedPersonNameSearchTest, AUCoreV110_PREVIEW::RelatedPersonPatientNameSearchTest, AUCoreV110_PREVIEW::RelatedPersonPatientRelationshipSearchTest, AUCoreV110_PREVIEW::RelatedPersonPatientSearchTest, AUCoreV110_PREVIEW::RelatedPersonRelationshipSearchTest, AUCoreV110_PREVIEW::ResprateCategorySearchTest, AUCoreV110_PREVIEW::ResprateCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::ResprateCodeSearchTest, AUCoreV110_PREVIEW::ResprateDateMultipleAndSearchTest, AUCoreV110_PREVIEW::ResprateDateSearchTest, AUCoreV110_PREVIEW::RespratePatientCategoryDateSearchTest, AUCoreV110_PREVIEW::RespratePatientCategorySearchTest, AUCoreV110_PREVIEW::RespratePatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::RespratePatientCodeDateSearchTest, AUCoreV110_PREVIEW::RespratePatientCodeSearchTest, AUCoreV110_PREVIEW::RespratePatientSearchTest, AUCoreV110_PREVIEW::ResprateStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::ResprateStatusSearchTest, AUCoreV110_PREVIEW::SmokingstatusCategorySearchTest, AUCoreV110_PREVIEW::SmokingstatusCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::SmokingstatusCodeSearchTest, AUCoreV110_PREVIEW::SmokingstatusDateMultipleAndSearchTest, AUCoreV110_PREVIEW::SmokingstatusDateSearchTest, AUCoreV110_PREVIEW::SmokingstatusPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::SmokingstatusPatientCategorySearchTest, AUCoreV110_PREVIEW::SmokingstatusPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::SmokingstatusPatientCodeDateSearchTest, AUCoreV110_PREVIEW::SmokingstatusPatientCodeSearchTest, AUCoreV110_PREVIEW::SmokingstatusPatientSearchTest, AUCoreV110_PREVIEW::SmokingstatusStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::SmokingstatusStatusSearchTest, AUCoreV110_PREVIEW::WaistcircumCategorySearchTest, AUCoreV110_PREVIEW::WaistcircumCodeMultipleOrSearchTest, AUCoreV110_PREVIEW::WaistcircumCodeSearchTest, AUCoreV110_PREVIEW::WaistcircumDateMultipleAndSearchTest, AUCoreV110_PREVIEW::WaistcircumDateSearchTest, AUCoreV110_PREVIEW::WaistcircumPatientCategoryDateSearchTest, AUCoreV110_PREVIEW::WaistcircumPatientCategorySearchTest, AUCoreV110_PREVIEW::WaistcircumPatientCategoryStatusSearchTest, AUCoreV110_PREVIEW::WaistcircumPatientCodeDateSearchTest, AUCoreV110_PREVIEW::WaistcircumPatientCodeSearchTest, AUCoreV110_PREVIEW::WaistcircumPatientSearchTest, AUCoreV110_PREVIEW::WaistcircumStatusMultipleOrSearchTest, AUCoreV110_PREVIEW::WaistcircumStatusSearchTest, AUCoreV200_BALLOT::AllergyIntoleranceClinicalStatusSearchTest, AUCoreV200_BALLOT::AllergyIntolerancePatientClinicalStatusSearchTest, AUCoreV200_BALLOT::AllergyIntolerancePatientSearchTest, AUCoreV200_BALLOT::BloodpressureCategorySearchTest, AUCoreV200_BALLOT::BloodpressureCodeMultipleOrSearchTest, AUCoreV200_BALLOT::BloodpressureCodeSearchTest, AUCoreV200_BALLOT::BloodpressureDateMultipleAndSearchTest, AUCoreV200_BALLOT::BloodpressureDateSearchTest, AUCoreV200_BALLOT::BloodpressurePatientCategoryDateSearchTest, AUCoreV200_BALLOT::BloodpressurePatientCategorySearchTest, AUCoreV200_BALLOT::BloodpressurePatientCategoryStatusSearchTest, AUCoreV200_BALLOT::BloodpressurePatientCodeDateSearchTest, AUCoreV200_BALLOT::BloodpressurePatientCodeSearchTest, AUCoreV200_BALLOT::BloodpressurePatientSearchTest, AUCoreV200_BALLOT::BloodpressureStatusMultipleOrSearchTest, AUCoreV200_BALLOT::BloodpressureStatusSearchTest, AUCoreV200_BALLOT::BodyheightCategorySearchTest, AUCoreV200_BALLOT::BodyheightCodeMultipleOrSearchTest, AUCoreV200_BALLOT::BodyheightCodeSearchTest, AUCoreV200_BALLOT::BodyheightDateMultipleAndSearchTest, AUCoreV200_BALLOT::BodyheightDateSearchTest, AUCoreV200_BALLOT::BodyheightPatientCategoryDateSearchTest, AUCoreV200_BALLOT::BodyheightPatientCategorySearchTest, AUCoreV200_BALLOT::BodyheightPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::BodyheightPatientCodeDateSearchTest, AUCoreV200_BALLOT::BodyheightPatientCodeSearchTest, AUCoreV200_BALLOT::BodyheightPatientSearchTest, AUCoreV200_BALLOT::BodyheightStatusMultipleOrSearchTest, AUCoreV200_BALLOT::BodyheightStatusSearchTest, AUCoreV200_BALLOT::BodytempCategorySearchTest, AUCoreV200_BALLOT::BodytempCodeMultipleOrSearchTest, AUCoreV200_BALLOT::BodytempCodeSearchTest, AUCoreV200_BALLOT::BodytempDateMultipleAndSearchTest, AUCoreV200_BALLOT::BodytempDateSearchTest, AUCoreV200_BALLOT::BodytempPatientCategoryDateSearchTest, AUCoreV200_BALLOT::BodytempPatientCategorySearchTest, AUCoreV200_BALLOT::BodytempPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::BodytempPatientCodeDateSearchTest, AUCoreV200_BALLOT::BodytempPatientCodeSearchTest, AUCoreV200_BALLOT::BodytempPatientSearchTest, AUCoreV200_BALLOT::BodytempStatusMultipleOrSearchTest, AUCoreV200_BALLOT::BodytempStatusSearchTest, AUCoreV200_BALLOT::BodyweightCategorySearchTest, AUCoreV200_BALLOT::BodyweightCodeMultipleOrSearchTest, AUCoreV200_BALLOT::BodyweightCodeSearchTest, AUCoreV200_BALLOT::BodyweightDateMultipleAndSearchTest, AUCoreV200_BALLOT::BodyweightDateSearchTest, AUCoreV200_BALLOT::BodyweightPatientCategoryDateSearchTest, AUCoreV200_BALLOT::BodyweightPatientCategorySearchTest, AUCoreV200_BALLOT::BodyweightPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::BodyweightPatientCodeDateSearchTest, AUCoreV200_BALLOT::BodyweightPatientCodeSearchTest, AUCoreV200_BALLOT::BodyweightPatientSearchTest, AUCoreV200_BALLOT::BodyweightStatusMultipleOrSearchTest, AUCoreV200_BALLOT::BodyweightStatusSearchTest, AUCoreV200_BALLOT::ConditionCategorySearchTest, AUCoreV200_BALLOT::ConditionClinicalStatusSearchTest, AUCoreV200_BALLOT::ConditionCodeMultipleOrSearchTest, AUCoreV200_BALLOT::ConditionCodeSearchTest, AUCoreV200_BALLOT::ConditionOnsetDateSearchTest, AUCoreV200_BALLOT::ConditionOnset_dateMultipleAndSearchTest, AUCoreV200_BALLOT::ConditionPatientCategoryClinicalStatusSearchTest, AUCoreV200_BALLOT::ConditionPatientCategorySearchTest, AUCoreV200_BALLOT::ConditionPatientClinicalStatusSearchTest, AUCoreV200_BALLOT::ConditionPatientCodeSearchTest, AUCoreV200_BALLOT::ConditionPatientOnsetDateSearchTest, AUCoreV200_BALLOT::ConditionPatientSearchTest, AUCoreV200_BALLOT::DiagnosticresultCategorySearchTest, AUCoreV200_BALLOT::DiagnosticresultCodeMultipleOrSearchTest, AUCoreV200_BALLOT::DiagnosticresultCodeSearchTest, AUCoreV200_BALLOT::DiagnosticresultDateMultipleAndSearchTest, AUCoreV200_BALLOT::DiagnosticresultDateSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathCategorySearchTest, AUCoreV200_BALLOT::DiagnosticresultPathCodeMultipleOrSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathCodeSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathDateMultipleAndSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathDateSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathPatientCategoryDateSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathPatientCategorySearchTest, AUCoreV200_BALLOT::DiagnosticresultPathPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathPatientCodeDateSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathPatientCodeSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathPatientSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathStatusMultipleOrSearchTest, AUCoreV200_BALLOT::DiagnosticresultPathStatusSearchTest, AUCoreV200_BALLOT::DiagnosticresultPatientCategoryDateSearchTest, AUCoreV200_BALLOT::DiagnosticresultPatientCategorySearchTest, AUCoreV200_BALLOT::DiagnosticresultPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::DiagnosticresultPatientCodeDateSearchTest, AUCoreV200_BALLOT::DiagnosticresultPatientCodeSearchTest, AUCoreV200_BALLOT::DiagnosticresultPatientSearchTest, AUCoreV200_BALLOT::DiagnosticresultStatusMultipleOrSearchTest, AUCoreV200_BALLOT::DiagnosticresultStatusSearchTest, AUCoreV200_BALLOT::EncounterClassPatientSearchTest, AUCoreV200_BALLOT::EncounterClassSearchTest, AUCoreV200_BALLOT::EncounterDateMultipleAndSearchTest, AUCoreV200_BALLOT::EncounterDatePatientSearchTest, AUCoreV200_BALLOT::EncounterDateSearchTest, AUCoreV200_BALLOT::EncounterLocationSearchTest, AUCoreV200_BALLOT::EncounterPatientLocationSearchTest, AUCoreV200_BALLOT::EncounterPatientSearchTest, AUCoreV200_BALLOT::EncounterPatientStatusSearchTest, AUCoreV200_BALLOT::EncounterStatusMultipleOrSearchTest, AUCoreV200_BALLOT::EncounterStatusSearchTest, AUCoreV200_BALLOT::HealthcareServiceIdSearchTest, AUCoreV200_BALLOT::HealthcareServiceIdentifierSearchTest, AUCoreV200_BALLOT::HealthcareServiceNameSearchTest, AUCoreV200_BALLOT::HealthcareServiceServiceTypeSearchTest, AUCoreV200_BALLOT::HeartrateCategorySearchTest, AUCoreV200_BALLOT::HeartrateCodeMultipleOrSearchTest, AUCoreV200_BALLOT::HeartrateCodeSearchTest, AUCoreV200_BALLOT::HeartrateDateMultipleAndSearchTest, AUCoreV200_BALLOT::HeartrateDateSearchTest, AUCoreV200_BALLOT::HeartratePatientCategoryDateSearchTest, AUCoreV200_BALLOT::HeartratePatientCategorySearchTest, AUCoreV200_BALLOT::HeartratePatientCategoryStatusSearchTest, AUCoreV200_BALLOT::HeartratePatientCodeDateSearchTest, AUCoreV200_BALLOT::HeartratePatientCodeSearchTest, AUCoreV200_BALLOT::HeartratePatientSearchTest, AUCoreV200_BALLOT::HeartrateStatusMultipleOrSearchTest, AUCoreV200_BALLOT::HeartrateStatusSearchTest, AUCoreV200_BALLOT::ImmunizationDateMultipleAndSearchTest, AUCoreV200_BALLOT::ImmunizationDateSearchTest, AUCoreV200_BALLOT::ImmunizationPatientDateSearchTest, AUCoreV200_BALLOT::ImmunizationPatientSearchTest, AUCoreV200_BALLOT::ImmunizationPatientStatusSearchTest, AUCoreV200_BALLOT::ImmunizationPatientVaccineCodeSearchTest, AUCoreV200_BALLOT::ImmunizationStatusSearchTest, AUCoreV200_BALLOT::ImmunizationVaccineCodeSearchTest, AUCoreV200_BALLOT::ImmunizationVaccine_codeMultipleOrSearchTest, AUCoreV200_BALLOT::LocationAddressCitySearchTest, AUCoreV200_BALLOT::LocationAddressPostalcodeSearchTest, AUCoreV200_BALLOT::LocationAddressSearchTest, AUCoreV200_BALLOT::LocationAddressStateSearchTest, AUCoreV200_BALLOT::LocationNameSearchTest, AUCoreV200_BALLOT::MedicationRequestAuthoredonMultipleAndSearchTest, AUCoreV200_BALLOT::MedicationRequestAuthoredonSearchTest, AUCoreV200_BALLOT::MedicationRequestIdIncludeMedicationTest, AUCoreV200_BALLOT::MedicationRequestIdSearchTest, AUCoreV200_BALLOT::MedicationRequestIntentMultipleOrSearchTest, AUCoreV200_BALLOT::MedicationRequestIntentSearchTest, AUCoreV200_BALLOT::MedicationRequestPatientIncludeMedicationTest, AUCoreV200_BALLOT::MedicationRequestPatientIntentAuthoredonIncludeMedicationTest, AUCoreV200_BALLOT::MedicationRequestPatientIntentAuthoredonSearchTest, AUCoreV200_BALLOT::MedicationRequestPatientIntentIncludeMedicationTest, AUCoreV200_BALLOT::MedicationRequestPatientIntentSearchTest, AUCoreV200_BALLOT::MedicationRequestPatientIntentStatusIncludeMedicationTest, AUCoreV200_BALLOT::MedicationRequestPatientIntentStatusSearchTest, AUCoreV200_BALLOT::MedicationRequestPatientSearchTest, AUCoreV200_BALLOT::MedicationRequestPatientStatusSearchTest, AUCoreV200_BALLOT::MedicationRequestStatusMultipleOrSearchTest, AUCoreV200_BALLOT::MedicationRequestStatusSearchTest, AUCoreV200_BALLOT::MedicationStatementEffectiveSearchTest, AUCoreV200_BALLOT::MedicationStatementIdSearchTest, AUCoreV200_BALLOT::MedicationStatementPatientEffectiveSearchTest, AUCoreV200_BALLOT::MedicationStatementPatientSearchTest, AUCoreV200_BALLOT::MedicationStatementPatientStatusSearchTest, AUCoreV200_BALLOT::MedicationStatementStatusSearchTest, AUCoreV200_BALLOT::OrganizationAddressSearchTest, AUCoreV200_BALLOT::OrganizationIdSearchTest, AUCoreV200_BALLOT::OrganizationIdentifierSearchTest, AUCoreV200_BALLOT::OrganizationNameSearchTest, AUCoreV200_BALLOT::PatientBirthdateFamilySearchTest, AUCoreV200_BALLOT::PatientBirthdateMultipleAndSearchTest, AUCoreV200_BALLOT::PatientBirthdateNameSearchTest, AUCoreV200_BALLOT::PatientBirthdateSearchTest, AUCoreV200_BALLOT::PatientFamilyGenderSearchTest, AUCoreV200_BALLOT::PatientFamilySearchTest, AUCoreV200_BALLOT::PatientGenderIdentitySearchTest, AUCoreV200_BALLOT::PatientGenderNameSearchTest, AUCoreV200_BALLOT::PatientGenderSearchTest, AUCoreV200_BALLOT::PatientGender_identityMultipleAndSearchTest, AUCoreV200_BALLOT::PatientGender_identityMultipleOrSearchTest, AUCoreV200_BALLOT::PatientIdSearchTest, AUCoreV200_BALLOT::PatientIdentifierSearchTest, AUCoreV200_BALLOT::PatientIndigenousStatusSearchTest, AUCoreV200_BALLOT::PatientIndigenous_statusMultipleAndSearchTest, AUCoreV200_BALLOT::PatientIndigenous_statusMultipleOrSearchTest, AUCoreV200_BALLOT::PatientNameSearchTest, AUCoreV200_BALLOT::PractitionerIdSearchTest, AUCoreV200_BALLOT::PractitionerIdentifierSearchTest, AUCoreV200_BALLOT::PractitionerNameSearchTest, AUCoreV200_BALLOT::PractitionerRoleIdIncludePractitionerTest, AUCoreV200_BALLOT::PractitionerRoleIdSearchTest, AUCoreV200_BALLOT::PractitionerRoleIdentifierIncludePractitionerTest, AUCoreV200_BALLOT::PractitionerRoleIdentifierSearchTest, AUCoreV200_BALLOT::PractitionerRoleOrganizationSearchTest, AUCoreV200_BALLOT::PractitionerRolePractitionerIncludePractitionerTest, AUCoreV200_BALLOT::PractitionerRolePractitionerMultipleAndSearchTest, AUCoreV200_BALLOT::PractitionerRolePractitionerMultipleOrSearchTest, AUCoreV200_BALLOT::PractitionerRolePractitionerSearchTest, AUCoreV200_BALLOT::PractitionerRoleRoleSearchTest, AUCoreV200_BALLOT::PractitionerRoleSpecialtyIncludePractitionerTest, AUCoreV200_BALLOT::PractitionerRoleSpecialtySearchTest, AUCoreV200_BALLOT::ProcedureCodeMultipleOrSearchTest, AUCoreV200_BALLOT::ProcedureCodeSearchTest, AUCoreV200_BALLOT::ProcedureDateMultipleAndSearchTest, AUCoreV200_BALLOT::ProcedureDateSearchTest, AUCoreV200_BALLOT::ProcedurePatientCodeDateSearchTest, AUCoreV200_BALLOT::ProcedurePatientDateSearchTest, AUCoreV200_BALLOT::ProcedurePatientSearchTest, AUCoreV200_BALLOT::ProcedurePatientStatusSearchTest, AUCoreV200_BALLOT::ProcedureStatusMultipleOrSearchTest, AUCoreV200_BALLOT::ProcedureStatusSearchTest, AUCoreV200_BALLOT::RelatedPersonIdSearchTest, AUCoreV200_BALLOT::RelatedPersonNameSearchTest, AUCoreV200_BALLOT::RelatedPersonPatientNameSearchTest, AUCoreV200_BALLOT::RelatedPersonPatientRelationshipSearchTest, AUCoreV200_BALLOT::RelatedPersonPatientSearchTest, AUCoreV200_BALLOT::RelatedPersonRelationshipSearchTest, AUCoreV200_BALLOT::ResprateCategorySearchTest, AUCoreV200_BALLOT::ResprateCodeMultipleOrSearchTest, AUCoreV200_BALLOT::ResprateCodeSearchTest, AUCoreV200_BALLOT::ResprateDateMultipleAndSearchTest, AUCoreV200_BALLOT::ResprateDateSearchTest, AUCoreV200_BALLOT::RespratePatientCategoryDateSearchTest, AUCoreV200_BALLOT::RespratePatientCategorySearchTest, AUCoreV200_BALLOT::RespratePatientCategoryStatusSearchTest, AUCoreV200_BALLOT::RespratePatientCodeDateSearchTest, AUCoreV200_BALLOT::RespratePatientCodeSearchTest, AUCoreV200_BALLOT::RespratePatientSearchTest, AUCoreV200_BALLOT::ResprateStatusMultipleOrSearchTest, AUCoreV200_BALLOT::ResprateStatusSearchTest, AUCoreV200_BALLOT::SmokingstatusCategorySearchTest, AUCoreV200_BALLOT::SmokingstatusCodeMultipleOrSearchTest, AUCoreV200_BALLOT::SmokingstatusCodeSearchTest, AUCoreV200_BALLOT::SmokingstatusDateMultipleAndSearchTest, AUCoreV200_BALLOT::SmokingstatusDateSearchTest, AUCoreV200_BALLOT::SmokingstatusPatientCategoryDateSearchTest, AUCoreV200_BALLOT::SmokingstatusPatientCategorySearchTest, AUCoreV200_BALLOT::SmokingstatusPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::SmokingstatusPatientCodeDateSearchTest, AUCoreV200_BALLOT::SmokingstatusPatientCodeSearchTest, AUCoreV200_BALLOT::SmokingstatusPatientSearchTest, AUCoreV200_BALLOT::SmokingstatusStatusMultipleOrSearchTest, AUCoreV200_BALLOT::SmokingstatusStatusSearchTest, AUCoreV200_BALLOT::WaistcircumCategorySearchTest, AUCoreV200_BALLOT::WaistcircumCodeMultipleOrSearchTest, AUCoreV200_BALLOT::WaistcircumCodeSearchTest, AUCoreV200_BALLOT::WaistcircumDateMultipleAndSearchTest, AUCoreV200_BALLOT::WaistcircumDateSearchTest, AUCoreV200_BALLOT::WaistcircumPatientCategoryDateSearchTest, AUCoreV200_BALLOT::WaistcircumPatientCategorySearchTest, AUCoreV200_BALLOT::WaistcircumPatientCategoryStatusSearchTest, AUCoreV200_BALLOT::WaistcircumPatientCodeDateSearchTest, AUCoreV200_BALLOT::WaistcircumPatientCodeSearchTest, AUCoreV200_BALLOT::WaistcircumPatientSearchTest, AUCoreV200_BALLOT::WaistcircumStatusMultipleOrSearchTest, AUCoreV200_BALLOT::WaistcircumStatusSearchTest, AUCoreV200_DRAFT::AllergyIntoleranceClinicalStatusSearchTest, AUCoreV200_DRAFT::AllergyIntolerancePatientClinicalStatusSearchTest, AUCoreV200_DRAFT::AllergyIntolerancePatientSearchTest, AUCoreV200_DRAFT::BloodpressureCategorySearchTest, AUCoreV200_DRAFT::BloodpressureCodeMultipleOrSearchTest, AUCoreV200_DRAFT::BloodpressureCodeSearchTest, AUCoreV200_DRAFT::BloodpressureDateMultipleAndSearchTest, AUCoreV200_DRAFT::BloodpressureDateSearchTest, AUCoreV200_DRAFT::BloodpressurePatientCategoryDateSearchTest, AUCoreV200_DRAFT::BloodpressurePatientCategorySearchTest, AUCoreV200_DRAFT::BloodpressurePatientCategoryStatusSearchTest, AUCoreV200_DRAFT::BloodpressurePatientCodeDateSearchTest, AUCoreV200_DRAFT::BloodpressurePatientCodeSearchTest, AUCoreV200_DRAFT::BloodpressurePatientSearchTest, AUCoreV200_DRAFT::BloodpressureStatusMultipleOrSearchTest, AUCoreV200_DRAFT::BloodpressureStatusSearchTest, AUCoreV200_DRAFT::BodyheightCategorySearchTest, AUCoreV200_DRAFT::BodyheightCodeMultipleOrSearchTest, AUCoreV200_DRAFT::BodyheightCodeSearchTest, AUCoreV200_DRAFT::BodyheightDateMultipleAndSearchTest, AUCoreV200_DRAFT::BodyheightDateSearchTest, AUCoreV200_DRAFT::BodyheightPatientCategoryDateSearchTest, AUCoreV200_DRAFT::BodyheightPatientCategorySearchTest, AUCoreV200_DRAFT::BodyheightPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::BodyheightPatientCodeDateSearchTest, AUCoreV200_DRAFT::BodyheightPatientCodeSearchTest, AUCoreV200_DRAFT::BodyheightPatientSearchTest, AUCoreV200_DRAFT::BodyheightStatusMultipleOrSearchTest, AUCoreV200_DRAFT::BodyheightStatusSearchTest, AUCoreV200_DRAFT::BodytempCategorySearchTest, AUCoreV200_DRAFT::BodytempCodeMultipleOrSearchTest, AUCoreV200_DRAFT::BodytempCodeSearchTest, AUCoreV200_DRAFT::BodytempDateMultipleAndSearchTest, AUCoreV200_DRAFT::BodytempDateSearchTest, AUCoreV200_DRAFT::BodytempPatientCategoryDateSearchTest, AUCoreV200_DRAFT::BodytempPatientCategorySearchTest, AUCoreV200_DRAFT::BodytempPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::BodytempPatientCodeDateSearchTest, AUCoreV200_DRAFT::BodytempPatientCodeSearchTest, AUCoreV200_DRAFT::BodytempPatientSearchTest, AUCoreV200_DRAFT::BodytempStatusMultipleOrSearchTest, AUCoreV200_DRAFT::BodytempStatusSearchTest, AUCoreV200_DRAFT::BodyweightCategorySearchTest, AUCoreV200_DRAFT::BodyweightCodeMultipleOrSearchTest, AUCoreV200_DRAFT::BodyweightCodeSearchTest, AUCoreV200_DRAFT::BodyweightDateMultipleAndSearchTest, AUCoreV200_DRAFT::BodyweightDateSearchTest, AUCoreV200_DRAFT::BodyweightPatientCategoryDateSearchTest, AUCoreV200_DRAFT::BodyweightPatientCategorySearchTest, AUCoreV200_DRAFT::BodyweightPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::BodyweightPatientCodeDateSearchTest, AUCoreV200_DRAFT::BodyweightPatientCodeSearchTest, AUCoreV200_DRAFT::BodyweightPatientSearchTest, AUCoreV200_DRAFT::BodyweightStatusMultipleOrSearchTest, AUCoreV200_DRAFT::BodyweightStatusSearchTest, AUCoreV200_DRAFT::ConditionCategorySearchTest, AUCoreV200_DRAFT::ConditionClinicalStatusSearchTest, AUCoreV200_DRAFT::ConditionCodeMultipleOrSearchTest, AUCoreV200_DRAFT::ConditionCodeSearchTest, AUCoreV200_DRAFT::ConditionOnsetDateSearchTest, AUCoreV200_DRAFT::ConditionOnset_dateMultipleAndSearchTest, AUCoreV200_DRAFT::ConditionPatientCategoryClinicalStatusSearchTest, AUCoreV200_DRAFT::ConditionPatientCategorySearchTest, AUCoreV200_DRAFT::ConditionPatientClinicalStatusSearchTest, AUCoreV200_DRAFT::ConditionPatientCodeSearchTest, AUCoreV200_DRAFT::ConditionPatientOnsetDateSearchTest, AUCoreV200_DRAFT::ConditionPatientSearchTest, AUCoreV200_DRAFT::DiagnosticresultCategorySearchTest, AUCoreV200_DRAFT::DiagnosticresultCodeMultipleOrSearchTest, AUCoreV200_DRAFT::DiagnosticresultCodeSearchTest, AUCoreV200_DRAFT::DiagnosticresultDateMultipleAndSearchTest, AUCoreV200_DRAFT::DiagnosticresultDateSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathCategorySearchTest, AUCoreV200_DRAFT::DiagnosticresultPathCodeMultipleOrSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathCodeSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathDateMultipleAndSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathDateSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathPatientCategoryDateSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathPatientCategorySearchTest, AUCoreV200_DRAFT::DiagnosticresultPathPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathPatientCodeDateSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathPatientCodeSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathPatientSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathStatusMultipleOrSearchTest, AUCoreV200_DRAFT::DiagnosticresultPathStatusSearchTest, AUCoreV200_DRAFT::DiagnosticresultPatientCategoryDateSearchTest, AUCoreV200_DRAFT::DiagnosticresultPatientCategorySearchTest, AUCoreV200_DRAFT::DiagnosticresultPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::DiagnosticresultPatientCodeDateSearchTest, AUCoreV200_DRAFT::DiagnosticresultPatientCodeSearchTest, AUCoreV200_DRAFT::DiagnosticresultPatientSearchTest, AUCoreV200_DRAFT::DiagnosticresultStatusMultipleOrSearchTest, AUCoreV200_DRAFT::DiagnosticresultStatusSearchTest, AUCoreV200_DRAFT::EncounterClassPatientSearchTest, AUCoreV200_DRAFT::EncounterClassSearchTest, AUCoreV200_DRAFT::EncounterDateMultipleAndSearchTest, AUCoreV200_DRAFT::EncounterDatePatientSearchTest, AUCoreV200_DRAFT::EncounterDateSearchTest, AUCoreV200_DRAFT::EncounterLocationSearchTest, AUCoreV200_DRAFT::EncounterPatientLocationSearchTest, AUCoreV200_DRAFT::EncounterPatientSearchTest, AUCoreV200_DRAFT::EncounterPatientStatusSearchTest, AUCoreV200_DRAFT::EncounterStatusMultipleOrSearchTest, AUCoreV200_DRAFT::EncounterStatusSearchTest, AUCoreV200_DRAFT::HealthcareServiceIdSearchTest, AUCoreV200_DRAFT::HealthcareServiceIdentifierSearchTest, AUCoreV200_DRAFT::HealthcareServiceNameSearchTest, AUCoreV200_DRAFT::HealthcareServiceServiceTypeSearchTest, AUCoreV200_DRAFT::HeartrateCategorySearchTest, AUCoreV200_DRAFT::HeartrateCodeMultipleOrSearchTest, AUCoreV200_DRAFT::HeartrateCodeSearchTest, AUCoreV200_DRAFT::HeartrateDateMultipleAndSearchTest, AUCoreV200_DRAFT::HeartrateDateSearchTest, AUCoreV200_DRAFT::HeartratePatientCategoryDateSearchTest, AUCoreV200_DRAFT::HeartratePatientCategorySearchTest, AUCoreV200_DRAFT::HeartratePatientCategoryStatusSearchTest, AUCoreV200_DRAFT::HeartratePatientCodeDateSearchTest, AUCoreV200_DRAFT::HeartratePatientCodeSearchTest, AUCoreV200_DRAFT::HeartratePatientSearchTest, AUCoreV200_DRAFT::HeartrateStatusMultipleOrSearchTest, AUCoreV200_DRAFT::HeartrateStatusSearchTest, AUCoreV200_DRAFT::ImmunizationDateMultipleAndSearchTest, AUCoreV200_DRAFT::ImmunizationDateSearchTest, AUCoreV200_DRAFT::ImmunizationPatientDateSearchTest, AUCoreV200_DRAFT::ImmunizationPatientSearchTest, AUCoreV200_DRAFT::ImmunizationPatientStatusSearchTest, AUCoreV200_DRAFT::ImmunizationPatientVaccineCodeSearchTest, AUCoreV200_DRAFT::ImmunizationStatusSearchTest, AUCoreV200_DRAFT::ImmunizationVaccineCodeSearchTest, AUCoreV200_DRAFT::ImmunizationVaccine_codeMultipleOrSearchTest, AUCoreV200_DRAFT::LocationAddressCitySearchTest, AUCoreV200_DRAFT::LocationAddressPostalcodeSearchTest, AUCoreV200_DRAFT::LocationAddressSearchTest, AUCoreV200_DRAFT::LocationAddressStateSearchTest, AUCoreV200_DRAFT::LocationNameSearchTest, AUCoreV200_DRAFT::MedicationRequestAuthoredonMultipleAndSearchTest, AUCoreV200_DRAFT::MedicationRequestAuthoredonSearchTest, AUCoreV200_DRAFT::MedicationRequestIdIncludeMedicationTest, AUCoreV200_DRAFT::MedicationRequestIdSearchTest, AUCoreV200_DRAFT::MedicationRequestIntentMultipleOrSearchTest, AUCoreV200_DRAFT::MedicationRequestIntentSearchTest, AUCoreV200_DRAFT::MedicationRequestPatientIncludeMedicationTest, AUCoreV200_DRAFT::MedicationRequestPatientIntentAuthoredonIncludeMedicationTest, AUCoreV200_DRAFT::MedicationRequestPatientIntentAuthoredonSearchTest, AUCoreV200_DRAFT::MedicationRequestPatientIntentIncludeMedicationTest, AUCoreV200_DRAFT::MedicationRequestPatientIntentSearchTest, AUCoreV200_DRAFT::MedicationRequestPatientIntentStatusIncludeMedicationTest, AUCoreV200_DRAFT::MedicationRequestPatientIntentStatusSearchTest, AUCoreV200_DRAFT::MedicationRequestPatientSearchTest, AUCoreV200_DRAFT::MedicationRequestPatientStatusSearchTest, AUCoreV200_DRAFT::MedicationRequestStatusMultipleOrSearchTest, AUCoreV200_DRAFT::MedicationRequestStatusSearchTest, AUCoreV200_DRAFT::MedicationStatementEffectiveSearchTest, AUCoreV200_DRAFT::MedicationStatementIdSearchTest, AUCoreV200_DRAFT::MedicationStatementPatientEffectiveSearchTest, AUCoreV200_DRAFT::MedicationStatementPatientSearchTest, AUCoreV200_DRAFT::MedicationStatementPatientStatusSearchTest, AUCoreV200_DRAFT::MedicationStatementStatusSearchTest, AUCoreV200_DRAFT::OrganizationAddressSearchTest, AUCoreV200_DRAFT::OrganizationIdSearchTest, AUCoreV200_DRAFT::OrganizationIdentifierSearchTest, AUCoreV200_DRAFT::OrganizationNameSearchTest, AUCoreV200_DRAFT::PatientBirthdateFamilySearchTest, AUCoreV200_DRAFT::PatientBirthdateMultipleAndSearchTest, AUCoreV200_DRAFT::PatientBirthdateNameSearchTest, AUCoreV200_DRAFT::PatientBirthdateSearchTest, AUCoreV200_DRAFT::PatientFamilyGenderSearchTest, AUCoreV200_DRAFT::PatientFamilySearchTest, AUCoreV200_DRAFT::PatientGenderIdentitySearchTest, AUCoreV200_DRAFT::PatientGenderNameSearchTest, AUCoreV200_DRAFT::PatientGenderSearchTest, AUCoreV200_DRAFT::PatientGender_identityMultipleAndSearchTest, AUCoreV200_DRAFT::PatientGender_identityMultipleOrSearchTest, AUCoreV200_DRAFT::PatientIdSearchTest, AUCoreV200_DRAFT::PatientIdentifierSearchTest, AUCoreV200_DRAFT::PatientIndigenousStatusSearchTest, AUCoreV200_DRAFT::PatientIndigenous_statusMultipleAndSearchTest, AUCoreV200_DRAFT::PatientIndigenous_statusMultipleOrSearchTest, AUCoreV200_DRAFT::PatientNameSearchTest, AUCoreV200_DRAFT::PractitionerIdSearchTest, AUCoreV200_DRAFT::PractitionerIdentifierSearchTest, AUCoreV200_DRAFT::PractitionerNameSearchTest, AUCoreV200_DRAFT::PractitionerRoleIdIncludePractitionerTest, AUCoreV200_DRAFT::PractitionerRoleIdSearchTest, AUCoreV200_DRAFT::PractitionerRoleIdentifierIncludePractitionerTest, AUCoreV200_DRAFT::PractitionerRoleIdentifierSearchTest, AUCoreV200_DRAFT::PractitionerRoleOrganizationSearchTest, AUCoreV200_DRAFT::PractitionerRolePractitionerIncludePractitionerTest, AUCoreV200_DRAFT::PractitionerRolePractitionerMultipleAndSearchTest, AUCoreV200_DRAFT::PractitionerRolePractitionerMultipleOrSearchTest, AUCoreV200_DRAFT::PractitionerRolePractitionerSearchTest, AUCoreV200_DRAFT::PractitionerRoleRoleSearchTest, AUCoreV200_DRAFT::PractitionerRoleSpecialtyIncludePractitionerTest, AUCoreV200_DRAFT::PractitionerRoleSpecialtySearchTest, AUCoreV200_DRAFT::ProcedureCodeMultipleOrSearchTest, AUCoreV200_DRAFT::ProcedureCodeSearchTest, AUCoreV200_DRAFT::ProcedureDateMultipleAndSearchTest, AUCoreV200_DRAFT::ProcedureDateSearchTest, AUCoreV200_DRAFT::ProcedurePatientCodeDateSearchTest, AUCoreV200_DRAFT::ProcedurePatientDateSearchTest, AUCoreV200_DRAFT::ProcedurePatientSearchTest, AUCoreV200_DRAFT::ProcedurePatientStatusSearchTest, AUCoreV200_DRAFT::ProcedureStatusMultipleOrSearchTest, AUCoreV200_DRAFT::ProcedureStatusSearchTest, AUCoreV200_DRAFT::RelatedPersonIdSearchTest, AUCoreV200_DRAFT::RelatedPersonNameSearchTest, AUCoreV200_DRAFT::RelatedPersonPatientNameSearchTest, AUCoreV200_DRAFT::RelatedPersonPatientRelationshipSearchTest, AUCoreV200_DRAFT::RelatedPersonPatientSearchTest, AUCoreV200_DRAFT::RelatedPersonRelationshipSearchTest, AUCoreV200_DRAFT::ResprateCategorySearchTest, AUCoreV200_DRAFT::ResprateCodeMultipleOrSearchTest, AUCoreV200_DRAFT::ResprateCodeSearchTest, AUCoreV200_DRAFT::ResprateDateMultipleAndSearchTest, AUCoreV200_DRAFT::ResprateDateSearchTest, AUCoreV200_DRAFT::RespratePatientCategoryDateSearchTest, AUCoreV200_DRAFT::RespratePatientCategorySearchTest, AUCoreV200_DRAFT::RespratePatientCategoryStatusSearchTest, AUCoreV200_DRAFT::RespratePatientCodeDateSearchTest, AUCoreV200_DRAFT::RespratePatientCodeSearchTest, AUCoreV200_DRAFT::RespratePatientSearchTest, AUCoreV200_DRAFT::ResprateStatusMultipleOrSearchTest, AUCoreV200_DRAFT::ResprateStatusSearchTest, AUCoreV200_DRAFT::SmokingstatusCategorySearchTest, AUCoreV200_DRAFT::SmokingstatusCodeMultipleOrSearchTest, AUCoreV200_DRAFT::SmokingstatusCodeSearchTest, AUCoreV200_DRAFT::SmokingstatusDateMultipleAndSearchTest, AUCoreV200_DRAFT::SmokingstatusDateSearchTest, AUCoreV200_DRAFT::SmokingstatusPatientCategoryDateSearchTest, AUCoreV200_DRAFT::SmokingstatusPatientCategorySearchTest, AUCoreV200_DRAFT::SmokingstatusPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::SmokingstatusPatientCodeDateSearchTest, AUCoreV200_DRAFT::SmokingstatusPatientCodeSearchTest, AUCoreV200_DRAFT::SmokingstatusPatientSearchTest, AUCoreV200_DRAFT::SmokingstatusStatusMultipleOrSearchTest, AUCoreV200_DRAFT::SmokingstatusStatusSearchTest, AUCoreV200_DRAFT::WaistcircumCategorySearchTest, AUCoreV200_DRAFT::WaistcircumCodeMultipleOrSearchTest, AUCoreV200_DRAFT::WaistcircumCodeSearchTest, AUCoreV200_DRAFT::WaistcircumDateMultipleAndSearchTest, AUCoreV200_DRAFT::WaistcircumDateSearchTest, AUCoreV200_DRAFT::WaistcircumPatientCategoryDateSearchTest, AUCoreV200_DRAFT::WaistcircumPatientCategorySearchTest, AUCoreV200_DRAFT::WaistcircumPatientCategoryStatusSearchTest, AUCoreV200_DRAFT::WaistcircumPatientCodeDateSearchTest, AUCoreV200_DRAFT::WaistcircumPatientCodeSearchTest, AUCoreV200_DRAFT::WaistcircumPatientSearchTest, AUCoreV200_DRAFT::WaistcircumStatusMultipleOrSearchTest, AUCoreV200_DRAFT::WaistcircumStatusSearchTest, AUCoreV200_PREVIEW::AllergyIntoleranceClinicalStatusSearchTest, AUCoreV200_PREVIEW::AllergyIntolerancePatientClinicalStatusSearchTest, AUCoreV200_PREVIEW::AllergyIntolerancePatientSearchTest, AUCoreV200_PREVIEW::BloodpressureCategorySearchTest, AUCoreV200_PREVIEW::BloodpressureCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::BloodpressureCodeSearchTest, AUCoreV200_PREVIEW::BloodpressureDateMultipleAndSearchTest, AUCoreV200_PREVIEW::BloodpressureDateSearchTest, AUCoreV200_PREVIEW::BloodpressurePatientCategoryDateSearchTest, AUCoreV200_PREVIEW::BloodpressurePatientCategorySearchTest, AUCoreV200_PREVIEW::BloodpressurePatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::BloodpressurePatientCodeDateSearchTest, AUCoreV200_PREVIEW::BloodpressurePatientCodeSearchTest, AUCoreV200_PREVIEW::BloodpressurePatientSearchTest, AUCoreV200_PREVIEW::BloodpressureStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::BloodpressureStatusSearchTest, AUCoreV200_PREVIEW::BodyheightCategorySearchTest, AUCoreV200_PREVIEW::BodyheightCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::BodyheightCodeSearchTest, AUCoreV200_PREVIEW::BodyheightDateMultipleAndSearchTest, AUCoreV200_PREVIEW::BodyheightDateSearchTest, AUCoreV200_PREVIEW::BodyheightPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::BodyheightPatientCategorySearchTest, AUCoreV200_PREVIEW::BodyheightPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::BodyheightPatientCodeDateSearchTest, AUCoreV200_PREVIEW::BodyheightPatientCodeSearchTest, AUCoreV200_PREVIEW::BodyheightPatientSearchTest, AUCoreV200_PREVIEW::BodyheightStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::BodyheightStatusSearchTest, AUCoreV200_PREVIEW::BodytempCategorySearchTest, AUCoreV200_PREVIEW::BodytempCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::BodytempCodeSearchTest, AUCoreV200_PREVIEW::BodytempDateMultipleAndSearchTest, AUCoreV200_PREVIEW::BodytempDateSearchTest, AUCoreV200_PREVIEW::BodytempPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::BodytempPatientCategorySearchTest, AUCoreV200_PREVIEW::BodytempPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::BodytempPatientCodeDateSearchTest, AUCoreV200_PREVIEW::BodytempPatientCodeSearchTest, AUCoreV200_PREVIEW::BodytempPatientSearchTest, AUCoreV200_PREVIEW::BodytempStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::BodytempStatusSearchTest, AUCoreV200_PREVIEW::BodyweightCategorySearchTest, AUCoreV200_PREVIEW::BodyweightCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::BodyweightCodeSearchTest, AUCoreV200_PREVIEW::BodyweightDateMultipleAndSearchTest, AUCoreV200_PREVIEW::BodyweightDateSearchTest, AUCoreV200_PREVIEW::BodyweightPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::BodyweightPatientCategorySearchTest, AUCoreV200_PREVIEW::BodyweightPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::BodyweightPatientCodeDateSearchTest, AUCoreV200_PREVIEW::BodyweightPatientCodeSearchTest, AUCoreV200_PREVIEW::BodyweightPatientSearchTest, AUCoreV200_PREVIEW::BodyweightStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::BodyweightStatusSearchTest, AUCoreV200_PREVIEW::ConditionCategorySearchTest, AUCoreV200_PREVIEW::ConditionClinicalStatusSearchTest, AUCoreV200_PREVIEW::ConditionCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::ConditionCodeSearchTest, AUCoreV200_PREVIEW::ConditionOnsetDateSearchTest, AUCoreV200_PREVIEW::ConditionOnset_dateMultipleAndSearchTest, AUCoreV200_PREVIEW::ConditionPatientCategoryClinicalStatusSearchTest, AUCoreV200_PREVIEW::ConditionPatientCategorySearchTest, AUCoreV200_PREVIEW::ConditionPatientClinicalStatusSearchTest, AUCoreV200_PREVIEW::ConditionPatientCodeSearchTest, AUCoreV200_PREVIEW::ConditionPatientOnsetDateSearchTest, AUCoreV200_PREVIEW::ConditionPatientSearchTest, AUCoreV200_PREVIEW::DiagnosticresultCategorySearchTest, AUCoreV200_PREVIEW::DiagnosticresultCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::DiagnosticresultCodeSearchTest, AUCoreV200_PREVIEW::DiagnosticresultDateMultipleAndSearchTest, AUCoreV200_PREVIEW::DiagnosticresultDateSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathCategorySearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathCodeSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathDateMultipleAndSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathDateSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathPatientCategorySearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathPatientCodeDateSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathPatientCodeSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathPatientSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPathStatusSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPatientCategorySearchTest, AUCoreV200_PREVIEW::DiagnosticresultPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPatientCodeDateSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPatientCodeSearchTest, AUCoreV200_PREVIEW::DiagnosticresultPatientSearchTest, AUCoreV200_PREVIEW::DiagnosticresultStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::DiagnosticresultStatusSearchTest, AUCoreV200_PREVIEW::EncounterClassPatientSearchTest, AUCoreV200_PREVIEW::EncounterClassSearchTest, AUCoreV200_PREVIEW::EncounterDateMultipleAndSearchTest, AUCoreV200_PREVIEW::EncounterDatePatientSearchTest, AUCoreV200_PREVIEW::EncounterDateSearchTest, AUCoreV200_PREVIEW::EncounterLocationSearchTest, AUCoreV200_PREVIEW::EncounterPatientLocationSearchTest, AUCoreV200_PREVIEW::EncounterPatientSearchTest, AUCoreV200_PREVIEW::EncounterPatientStatusSearchTest, AUCoreV200_PREVIEW::EncounterStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::EncounterStatusSearchTest, AUCoreV200_PREVIEW::HealthcareServiceIdSearchTest, AUCoreV200_PREVIEW::HealthcareServiceIdentifierSearchTest, AUCoreV200_PREVIEW::HealthcareServiceNameSearchTest, AUCoreV200_PREVIEW::HealthcareServiceServiceTypeSearchTest, AUCoreV200_PREVIEW::HeartrateCategorySearchTest, AUCoreV200_PREVIEW::HeartrateCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::HeartrateCodeSearchTest, AUCoreV200_PREVIEW::HeartrateDateMultipleAndSearchTest, AUCoreV200_PREVIEW::HeartrateDateSearchTest, AUCoreV200_PREVIEW::HeartratePatientCategoryDateSearchTest, AUCoreV200_PREVIEW::HeartratePatientCategorySearchTest, AUCoreV200_PREVIEW::HeartratePatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::HeartratePatientCodeDateSearchTest, AUCoreV200_PREVIEW::HeartratePatientCodeSearchTest, AUCoreV200_PREVIEW::HeartratePatientSearchTest, AUCoreV200_PREVIEW::HeartrateStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::HeartrateStatusSearchTest, AUCoreV200_PREVIEW::ImmunizationDateMultipleAndSearchTest, AUCoreV200_PREVIEW::ImmunizationDateSearchTest, AUCoreV200_PREVIEW::ImmunizationPatientDateSearchTest, AUCoreV200_PREVIEW::ImmunizationPatientSearchTest, AUCoreV200_PREVIEW::ImmunizationPatientStatusSearchTest, AUCoreV200_PREVIEW::ImmunizationPatientVaccineCodeSearchTest, AUCoreV200_PREVIEW::ImmunizationStatusSearchTest, AUCoreV200_PREVIEW::ImmunizationVaccineCodeSearchTest, AUCoreV200_PREVIEW::ImmunizationVaccine_codeMultipleOrSearchTest, AUCoreV200_PREVIEW::LocationAddressCitySearchTest, AUCoreV200_PREVIEW::LocationAddressPostalcodeSearchTest, AUCoreV200_PREVIEW::LocationAddressSearchTest, AUCoreV200_PREVIEW::LocationAddressStateSearchTest, AUCoreV200_PREVIEW::LocationNameSearchTest, AUCoreV200_PREVIEW::MedicationRequestAuthoredonMultipleAndSearchTest, AUCoreV200_PREVIEW::MedicationRequestAuthoredonSearchTest, AUCoreV200_PREVIEW::MedicationRequestIdIncludeMedicationTest, AUCoreV200_PREVIEW::MedicationRequestIdSearchTest, AUCoreV200_PREVIEW::MedicationRequestIntentMultipleOrSearchTest, AUCoreV200_PREVIEW::MedicationRequestIntentSearchTest, AUCoreV200_PREVIEW::MedicationRequestPatientIncludeMedicationTest, AUCoreV200_PREVIEW::MedicationRequestPatientIntentAuthoredonIncludeMedicationTest, AUCoreV200_PREVIEW::MedicationRequestPatientIntentAuthoredonSearchTest, AUCoreV200_PREVIEW::MedicationRequestPatientIntentIncludeMedicationTest, AUCoreV200_PREVIEW::MedicationRequestPatientIntentSearchTest, AUCoreV200_PREVIEW::MedicationRequestPatientIntentStatusIncludeMedicationTest, AUCoreV200_PREVIEW::MedicationRequestPatientIntentStatusSearchTest, AUCoreV200_PREVIEW::MedicationRequestPatientSearchTest, AUCoreV200_PREVIEW::MedicationRequestPatientStatusSearchTest, AUCoreV200_PREVIEW::MedicationRequestStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::MedicationRequestStatusSearchTest, AUCoreV200_PREVIEW::MedicationStatementEffectiveSearchTest, AUCoreV200_PREVIEW::MedicationStatementIdSearchTest, AUCoreV200_PREVIEW::MedicationStatementPatientEffectiveSearchTest, AUCoreV200_PREVIEW::MedicationStatementPatientSearchTest, AUCoreV200_PREVIEW::MedicationStatementPatientStatusSearchTest, AUCoreV200_PREVIEW::MedicationStatementStatusSearchTest, AUCoreV200_PREVIEW::OrganizationAddressSearchTest, AUCoreV200_PREVIEW::OrganizationIdSearchTest, AUCoreV200_PREVIEW::OrganizationIdentifierSearchTest, AUCoreV200_PREVIEW::OrganizationNameSearchTest, AUCoreV200_PREVIEW::PatientBirthdateFamilySearchTest, AUCoreV200_PREVIEW::PatientBirthdateMultipleAndSearchTest, AUCoreV200_PREVIEW::PatientBirthdateNameSearchTest, AUCoreV200_PREVIEW::PatientBirthdateSearchTest, AUCoreV200_PREVIEW::PatientFamilyGenderSearchTest, AUCoreV200_PREVIEW::PatientFamilySearchTest, AUCoreV200_PREVIEW::PatientGenderIdentitySearchTest, AUCoreV200_PREVIEW::PatientGenderNameSearchTest, AUCoreV200_PREVIEW::PatientGenderSearchTest, AUCoreV200_PREVIEW::PatientGender_identityMultipleAndSearchTest, AUCoreV200_PREVIEW::PatientGender_identityMultipleOrSearchTest, AUCoreV200_PREVIEW::PatientIdSearchTest, AUCoreV200_PREVIEW::PatientIdentifierSearchTest, AUCoreV200_PREVIEW::PatientIndigenousStatusSearchTest, AUCoreV200_PREVIEW::PatientIndigenous_statusMultipleAndSearchTest, AUCoreV200_PREVIEW::PatientIndigenous_statusMultipleOrSearchTest, AUCoreV200_PREVIEW::PatientNameSearchTest, AUCoreV200_PREVIEW::PractitionerIdSearchTest, AUCoreV200_PREVIEW::PractitionerIdentifierSearchTest, AUCoreV200_PREVIEW::PractitionerNameSearchTest, AUCoreV200_PREVIEW::PractitionerRoleIdIncludePractitionerTest, AUCoreV200_PREVIEW::PractitionerRoleIdSearchTest, AUCoreV200_PREVIEW::PractitionerRoleIdentifierIncludePractitionerTest, AUCoreV200_PREVIEW::PractitionerRoleIdentifierSearchTest, AUCoreV200_PREVIEW::PractitionerRoleOrganizationSearchTest, AUCoreV200_PREVIEW::PractitionerRolePractitionerIncludePractitionerTest, AUCoreV200_PREVIEW::PractitionerRolePractitionerMultipleAndSearchTest, AUCoreV200_PREVIEW::PractitionerRolePractitionerMultipleOrSearchTest, AUCoreV200_PREVIEW::PractitionerRolePractitionerSearchTest, AUCoreV200_PREVIEW::PractitionerRoleRoleSearchTest, AUCoreV200_PREVIEW::PractitionerRoleSpecialtyIncludePractitionerTest, AUCoreV200_PREVIEW::PractitionerRoleSpecialtySearchTest, AUCoreV200_PREVIEW::ProcedureCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::ProcedureCodeSearchTest, AUCoreV200_PREVIEW::ProcedureDateMultipleAndSearchTest, AUCoreV200_PREVIEW::ProcedureDateSearchTest, AUCoreV200_PREVIEW::ProcedurePatientCodeDateSearchTest, AUCoreV200_PREVIEW::ProcedurePatientDateSearchTest, AUCoreV200_PREVIEW::ProcedurePatientSearchTest, AUCoreV200_PREVIEW::ProcedurePatientStatusSearchTest, AUCoreV200_PREVIEW::ProcedureStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::ProcedureStatusSearchTest, AUCoreV200_PREVIEW::RelatedPersonIdSearchTest, AUCoreV200_PREVIEW::RelatedPersonNameSearchTest, AUCoreV200_PREVIEW::RelatedPersonPatientNameSearchTest, AUCoreV200_PREVIEW::RelatedPersonPatientRelationshipSearchTest, AUCoreV200_PREVIEW::RelatedPersonPatientSearchTest, AUCoreV200_PREVIEW::RelatedPersonRelationshipSearchTest, AUCoreV200_PREVIEW::ResprateCategorySearchTest, AUCoreV200_PREVIEW::ResprateCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::ResprateCodeSearchTest, AUCoreV200_PREVIEW::ResprateDateMultipleAndSearchTest, AUCoreV200_PREVIEW::ResprateDateSearchTest, AUCoreV200_PREVIEW::RespratePatientCategoryDateSearchTest, AUCoreV200_PREVIEW::RespratePatientCategorySearchTest, AUCoreV200_PREVIEW::RespratePatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::RespratePatientCodeDateSearchTest, AUCoreV200_PREVIEW::RespratePatientCodeSearchTest, AUCoreV200_PREVIEW::RespratePatientSearchTest, AUCoreV200_PREVIEW::ResprateStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::ResprateStatusSearchTest, AUCoreV200_PREVIEW::SmokingstatusCategorySearchTest, AUCoreV200_PREVIEW::SmokingstatusCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::SmokingstatusCodeSearchTest, AUCoreV200_PREVIEW::SmokingstatusDateMultipleAndSearchTest, AUCoreV200_PREVIEW::SmokingstatusDateSearchTest, AUCoreV200_PREVIEW::SmokingstatusPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::SmokingstatusPatientCategorySearchTest, AUCoreV200_PREVIEW::SmokingstatusPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::SmokingstatusPatientCodeDateSearchTest, AUCoreV200_PREVIEW::SmokingstatusPatientCodeSearchTest, AUCoreV200_PREVIEW::SmokingstatusPatientSearchTest, AUCoreV200_PREVIEW::SmokingstatusStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::SmokingstatusStatusSearchTest, AUCoreV200_PREVIEW::WaistcircumCategorySearchTest, AUCoreV200_PREVIEW::WaistcircumCodeMultipleOrSearchTest, AUCoreV200_PREVIEW::WaistcircumCodeSearchTest, AUCoreV200_PREVIEW::WaistcircumDateMultipleAndSearchTest, AUCoreV200_PREVIEW::WaistcircumDateSearchTest, AUCoreV200_PREVIEW::WaistcircumPatientCategoryDateSearchTest, AUCoreV200_PREVIEW::WaistcircumPatientCategorySearchTest, AUCoreV200_PREVIEW::WaistcircumPatientCategoryStatusSearchTest, AUCoreV200_PREVIEW::WaistcircumPatientCodeDateSearchTest, AUCoreV200_PREVIEW::WaistcircumPatientCodeSearchTest, AUCoreV200_PREVIEW::WaistcircumPatientSearchTest, AUCoreV200_PREVIEW::WaistcircumStatusMultipleOrSearchTest, AUCoreV200_PREVIEW::WaistcircumStatusSearchTest, ChainedSearchTest, ClinicalNoteTypeTest, SpecialIdentifierSearchTest
Defined in:
lib/au_core_test_kit/search_test.rb

Constant Summary

Constants included from FHIRResourceNavigation

FHIRResourceNavigation::DAR_EXTENSION_URL

Instance Method Summary collapse

Methods included from AssertHelpers

#act_if_with_message, #act_with_message, #conditional_skip_with_msg, #skip_with_msg

Methods included from ReadTest

#bad_resource_id_message, #basic_read_and_validate, #create_reference, #fetch_resource_ids, #get_resources_to_read_from_arr_ids, #no_resources_custom_skip_message, #perform_read_test, #read_and_validate, #read_and_validate_as_first, #read_and_validate_resourses_arr, #readable_resources, #resource_class, #resource_id, #resource_ids_str_to_arr

Methods included from FHIRResourceNavigation

#find_a_value_at, #find_slice_via_discriminator, #get_extension_url, #get_next_value, #get_value_from_extension, #is_extension?, #resolve_path, #verify_slice_by_values

Methods included from DateSearchValidation

#fhir_date_comparer, #get_fhir_datetime_range, #get_fhir_period_range, #is_date?, #validate_date_search, #validate_datetime_search, #validate_period_search

Instance Method Details

#all_comparator_searches_tested?Boolean

Returns:

  • (Boolean)


288
289
290
291
292
# File 'lib/au_core_test_kit/search_test.rb', line 288

def all_comparator_searches_tested?
  return true if params_with_comparators.blank?

  Set.new(params_with_comparators) == search_variant_test_records[:comparator_searches]
end

#all_provenance_revinclude_search_paramsObject



59
60
61
62
63
64
# File 'lib/au_core_test_kit/search_test.rb', line 59

def all_provenance_revinclude_search_params
  @all_provenance_revinclude_search_params ||=
    all_search_params.transform_values! do |params_list|
      params_list.map { |params| params.merge(_revinclude: 'Provenance:target') }
    end
end

#all_scratch_resourcesObject



597
598
599
# File 'lib/au_core_test_kit/search_test.rb', line 597

def all_scratch_resources
  scratch_resources[:all] ||= []
end

#all_search_paramsObject



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/au_core_test_kit/search_test.rb', line 41

def all_search_params
  @all_search_params ||=
    patient_id_list.each_with_object({}) do |patient_id, params|
      params[patient_id] ||= []
      new_params =
        if fixed_value_search?
          fixed_value_search_param_values.map { |value| fixed_value_search_params(value, patient_id) }
        else
          [search_params_with_values(search_param_names, patient_id)]
        end
      new_params.reject! do |params|
        params.any? { |_key, value| value.blank? }
      end

      params[patient_id].concat(new_params)
    end
end

#all_search_params_present?(params) ⇒ Boolean

Returns:

  • (Boolean)


681
682
683
# File 'lib/au_core_test_kit/search_test.rb', line 681

def all_search_params_present?(params)
  params.all? { |_name, value| value.present? }
end

#all_search_variants_tested?Boolean

Returns:

  • (Boolean)


283
284
285
286
# File 'lib/au_core_test_kit/search_test.rb', line 283

def all_search_variants_tested?
  search_variant_test_records.all? { |_variant, tested| tested.present? } &&
    all_comparator_searches_tested?
end

#any_valid_search_params?(search_params) ⇒ Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/au_core_test_kit/search_test.rb', line 66

def any_valid_search_params?(search_params)
  search_params.any? { |_patient_id, params| params.present? }
end

#array_of_codes(array) ⇒ Object



685
686
687
# File 'lib/au_core_test_kit/search_test.rb', line 685

def array_of_codes(array)
  array.map { |name| "`#{name}`" }.join(', ')
end

#birthdate_comparator_value(comparator, date) ⇒ Object



316
317
318
319
320
321
322
323
324
325
# File 'lib/au_core_test_kit/search_test.rb', line 316

def birthdate_comparator_value(comparator, date)
  case comparator
  when 'lt', 'le'
    comparator + (DateTime.xmlschema(date) + 1).strftime('%F')
  when 'gt', 'ge'
    comparator + (DateTime.xmlschema(date) - 1).strftime('%F')
  else
    raise "Unsupported comparator '#{comparator}'"
  end
end

#cant_resolve_next_bundle_message(link) ⇒ Object



763
764
765
# File 'lib/au_core_test_kit/search_test.rb', line 763

def cant_resolve_next_bundle_message(link)
  "Could not resolve next bundle: #{link}"
end

#chain_search_restriction(search_parameter) ⇒ Object



712
713
714
# File 'lib/au_core_test_kit/search_test.rb', line 712

def chain_search_restriction(search_parameter)
  "I don't know how to run a chain search with this search parameter: #{search_parameter} (generator restrictions)."
end

#check_availability_of_count_search_parameter(resource_type, params) ⇒ Object



139
140
141
142
143
144
145
# File 'lib/au_core_test_kit/search_test.rb', line 139

def check_availability_of_count_search_parameter(resource_type, params)
  search_params = params.merge({ _count: 1 })

  fhir_search(resource_type, params: search_params)

  response[:status] == 200
end

#check_resource_against_params(resource, params) ⇒ Object



887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
# File 'lib/au_core_test_kit/search_test.rb', line 887

def check_resource_against_params(resource, params)
  params.each do |name, escaped_search_value|
    # unescape search value
    search_value = escaped_search_value&.gsub('\\,', ',')
    paths = search_param_paths(name)

    match_found = false
    values_found = []
    if %w[indigenous-status gender-identity].include?(name)
      search_param_extension_map = {
        'indigenous-status' => 'http://hl7.org.au/fhir/StructureDefinition/indigenous-status',
        'gender-identity' => 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity'
      }
      values_found = [extension_check(resource, search_param_extension_map[name])]
      match_found = search_value.to_s == values_found.first if values_found.length.positive?
    else
      paths.each do |path|
        type = .search_definitions[name.to_sym][:type]
        values_found =
          resolve_path(resource, path)
          .map do |value|
            if value.is_a? FHIR::Reference
              value.reference
            else
              value
            end
          end

        match_found =
          case type
          when 'Period', 'date', 'instant', 'dateTime'
            values_found.any? { |date| validate_date_search(search_value, date) }
          when 'HumanName'
            # When a string search parameter refers to the types HumanName and Address,
            # the search covers the elements of type string, and does not cover elements such as use and period
            # https://www.hl7.org/fhir/search.html#string
            search_value_downcase = search_value.downcase
            values_found.any? do |name|
              name&.text&.downcase&.start_with?(search_value_downcase) ||
                name&.family&.downcase&.start_with?(search_value_downcase) ||
                name&.given&.any? { |given| given.downcase.start_with?(search_value_downcase) } ||
                name&.prefix&.any? { |prefix| prefix.downcase.start_with?(search_value_downcase) } ||
                name&.suffix&.any? { |suffix| suffix.downcase.start_with?(search_value_downcase) }
            end
          when 'Address'
            search_value_downcase = search_value.downcase
            values_found.any? do |address|
              address&.text&.downcase&.start_with?(search_value_downcase) ||
                address&.city&.downcase&.start_with?(search_value_downcase) ||
                address&.state&.downcase&.start_with?(search_value_downcase) ||
                address&.postalCode&.downcase&.start_with?(search_value_downcase) ||
                address&.country&.downcase&.start_with?(search_value_downcase)
            end
          when 'CodeableConcept'
            # FHIR token search (https://www.hl7.org/fhir/search.html#token): "When in doubt, servers SHOULD
            # treat tokens in a case-insensitive manner, on the grounds that including undesired data has
            # less safety implications than excluding desired behavior".
            codings = values_found.flat_map(&:coding)
            if search_value.include? '|'
              system = search_value.split('|').first
              code = search_value.split('|').last
              codings&.any? { |coding| coding.system == system && coding.code&.casecmp?(code) }
            else
              codings&.any? { |coding| coding.code&.casecmp?(search_value) }
            end
          when 'Coding'
            if search_value.include? '|'
              system = search_value.split('|').first
              code = search_value.split('|').last
              values_found.any? { |coding| coding.system == system && coding.code&.casecmp?(code) }
            else
              values_found.any? { |coding| coding.code&.casecmp?(search_value) }
            end
          when 'Identifier'
            if search_value.include? '|'
              values_found.any? { |identifier| "#{identifier.system}|#{identifier.value}" == search_value }
            else
              values_found.any? { |identifier| identifier.value == search_value }
            end
          when 'string'
            searched_values = search_value.downcase.split(/(?<!\\\\),/).map { |string| string.gsub('\\,', ',') }
            values_found.any? do |value_found|
              searched_values.any? { |searched_value| value_found.downcase.starts_with? searched_value }
            end
          else
            # searching by patient requires special case because we are searching by a resource identifier
            # references can also be URLs, so we may need to resolve those URLs
            if %w[subject patient].include? name.to_s
              id = search_value.split('Patient/').last
              possible_values = [id, "Patient/#{id}", "#{url}/Patient/#{id}"]
              values_found.any? do |reference|
                possible_values.include? reference
              end
            else
              search_values = search_value.split(/(?<!\\\\),/).map { |string| string.gsub('\\,', ',') }
              values_found.any? { |value_found| search_values.include? value_found }
            end
          end

        break if match_found
      end
    end

    assert match_found,
           "#{resource_type}/#{resource.id} did not match the search parameters:\n" \
           "* Expected: #{search_value}\n" \
           "* Found: #{values_found.map(&:inspect).join(', ')}"
  end
end

#check_search_responseObject



263
264
265
266
267
# File 'lib/au_core_test_kit/search_test.rb', line 263

def check_search_response
  assert_response_status(200)
  assert_resource_type(:bundle)
  # NOTE: how do we want to handle validating Bundles?
end

#date_comparator_value(comparator, date) ⇒ Object



294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/au_core_test_kit/search_test.rb', line 294

def date_comparator_value(comparator, date)
  date = date.start || date.end if date.is_a? FHIR::Period
  case comparator
  when 'lt', 'le'
    comparator + (DateTime.xmlschema(date) + 1).xmlschema
  when 'gt', 'ge'
    comparator + (DateTime.xmlschema(date) - 1).xmlschema
  else
    # ''
    raise "Unsupported comparator '#{comparator}'"
  end
end

#default_search_values(param_name) ⇒ Object



432
433
434
435
436
437
# File 'lib/au_core_test_kit/search_test.rb', line 432

def default_search_values(param_name)
  definition = .search_definitions[param_name]
  return [] if definition.blank?

  definition[:multiple_or] == 'SHALL' || definition[:multiple_or] == 'SHOULD' ? [definition[:values].join(',')] : Array.wrap(definition[:values])
end

#default_search_values_clean(param_name) ⇒ Object



439
440
441
442
443
444
# File 'lib/au_core_test_kit/search_test.rb', line 439

def default_search_values_clean(param_name)
  definition = .search_definitions[param_name]
  return [] if definition.blank?

  definition[:values]
end

#default_values_for_param(param_name) ⇒ Object



425
426
427
428
429
430
# File 'lib/au_core_test_kit/search_test.rb', line 425

def default_values_for_param(param_name)
  definition = .search_definitions[param_name]
  return [] if definition.blank?

  definition[:values]
end

#element_has_valid_value?(element, include_system) ⇒ Boolean

Returns:

  • (Boolean)


829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
# File 'lib/au_core_test_kit/search_test.rb', line 829

def element_has_valid_value?(element, include_system)
  case element
  when FHIR::Reference
    element.reference.present?
  when FHIR::CodeableConcept
    if include_system
      coding =
        find_a_value_at(element, 'coding') { |coding| coding.code.present? && coding.system.present? }
      coding.present?
    else
      find_a_value_at(element, 'coding.code').present?
    end
  when FHIR::Identifier
    include_system ? element.value.present? && element.system.present? : element.value.present?
  when FHIR::Coding
    include_system ? element.code.present? && element.system.present? : element.code.present?
  when FHIR::HumanName
    (element.family || element.given&.first || element.text).present?
  when FHIR::Address
    (element.text || element.city || element.state || element.postalCode || element.country).present?
  else
    true
  end
end

#empty_search_params_message(empty_search_params) ⇒ Object



700
701
702
# File 'lib/au_core_test_kit/search_test.rb', line 700

def empty_search_params_message(empty_search_params)
  "Could not find values for the search parameters #{array_of_codes(empty_search_params.keys)}"
end

#extension_check(resource, extension_url) ⇒ Object

RESULT CHECKING ####



878
879
880
881
882
883
884
885
# File 'lib/au_core_test_kit/search_test.rb', line 878

def extension_check(resource, extension_url)
  extension_elements = resource.extension.filter { |ext| ext.url == extension_url }
  extension_element = extension_elements.first

  return extension_element.extension.first.valueCodeableConcept.coding.first.code if extension_url == 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity'

  extension_element.valueCoding.code
end

#extract_existing_values_safety(resources_arr, param_name) ⇒ Object



446
447
448
449
450
451
452
453
454
455
# File 'lib/au_core_test_kit/search_test.rb', line 446

def extract_existing_values_safety(resources_arr, param_name)
  results = []

  resources_arr.each do |resource|
    temp = search_param_value(param_name, resource)
    results << temp
  end

  results.compact.uniq
end

#fetch_all_bundled_resources(reply_handler: nil, max_pages: 20, additional_resource_types: [], resource_type: self.resource_type) ⇒ Object



716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
# File 'lib/au_core_test_kit/search_test.rb', line 716

def fetch_all_bundled_resources(
  reply_handler: nil,
  max_pages: 20,
  additional_resource_types: [],
  resource_type: self.resource_type
)
  page_count = 1
  resources = []
  bundle = resource

  until bundle.nil? || page_count == max_pages
    resources += bundle&.entry&.map { |entry| entry&.resource }
    next_bundle_link = bundle&.link&.find { |link| link.relation == 'next' }&.url
    reply_handler&.call(response)

    break if next_bundle_link.blank?

    reply = fhir_client.raw_read_url(next_bundle_link)

    store_request('outgoing') { reply }
    error_message = cant_resolve_next_bundle_message(next_bundle_link)

    assert_response_status(200)
    assert_valid_json(reply.body, error_message)

    bundle = fhir_client.parse_reply(FHIR::Bundle, fhir_client.default_format, reply)

    page_count += 1
  end

  valid_resource_types = [resource_type, 'OperationOutcome'].concat(additional_resource_types)
  valid_resource_types << 'Medication' if %w[MedicationRequest MedicationDispense].include?(resource_type)

  invalid_resource_types =
    resources.reject { |entry| valid_resource_types.include? entry.resourceType }
             .map(&:resourceType)
             .uniq

  if invalid_resource_types.any?
    info "Received resource type(s) #{invalid_resource_types.join(', ')} in search bundle, " \
         "but only expected resource types #{valid_resource_types.join(', ')}. " \
         'This is unusual but allowed if the server believes additional resource types are relevant.'
  end

  resources
end

#filter_conditions(resources) ⇒ Object



241
242
243
244
245
246
247
248
249
250
251
252
# File 'lib/au_core_test_kit/search_test.rb', line 241

def filter_conditions(resources)
  # HL7 JIRA FHIR-37917. AU Core v5.0.1 does not required patient+category.
  # In order to distinguish which resources matches the current profile, Inferno has to manually filter
  # the result of first search, which is searching by patient.
  resources.select! do |resource|
    resource.category.any? do |category|
      category.coding.any? do |coding|
        .search_definitions[:category][:values].include? coding.code
      end
    end
  end
end

#filter_devices(resources) ⇒ Object



232
233
234
235
236
237
238
239
# File 'lib/au_core_test_kit/search_test.rb', line 232

def filter_devices(resources)
  codes_to_include = implantable_device_codes&.split(',')&.map(&:strip)
  return resources if codes_to_include.blank?

  resources.select! do |resource|
    resource&.type&.coding&.any? { |coding| codes_to_include.include?(coding.code) }
  end
end

#find_include_resources(params, patient_id, include_param, _keep_search_variant = true) ⇒ Object



508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
# File 'lib/au_core_test_kit/search_test.rb', line 508

def find_include_resources(params, patient_id, include_param, _keep_search_variant = true)
  resources_to_check = "#{include_param['target_resource'].downcase}_resources".to_sym
  target_resource_type = include_param['target_resource']
  scratch[resources_to_check] ||= {}
  scratch[resources_to_check][:all] ||= []
  scratch[resources_to_check][patient_id] ||= []
  scratch[resources_to_check][:contained] ||= []

  search_params = params.merge(_include: include_param['parameter'])
  search_and_check_response(search_params)

  resources = fetch_all_bundled_resources.select { |resource| resource.resourceType == target_resource_type }

  resources.uniq!(&:id)
  scratch[resources_to_check][:all] += resources
  scratch[resources_to_check][patient_id] += resources
  scratch[resources_to_check][:contained] += resources

  resources
end

#fixed_value_search_param_nameObject



612
613
614
# File 'lib/au_core_test_kit/search_test.rb', line 612

def fixed_value_search_param_name
  (search_param_names - ['patient']).first
end

#fixed_value_search_param_valuesObject



616
617
618
# File 'lib/au_core_test_kit/search_test.rb', line 616

def fixed_value_search_param_values
  .search_definitions[fixed_value_search_param_name.to_sym][:values]
end

#fixed_value_search_params(value, patient_id) ⇒ Object



620
621
622
623
624
# File 'lib/au_core_test_kit/search_test.rb', line 620

def fixed_value_search_params(value, patient_id)
  search_param_names.each_with_object({}) do |name, params|
    params[name] = patient_id_param?(name) ? patient_id : value
  end
end

#initial_search_variant_test_recordsObject



273
274
275
276
277
278
279
280
281
# File 'lib/au_core_test_kit/search_test.rb', line 273

def initial_search_variant_test_records
  {}.tap do |records|
    records[:post_variant] = false if test_post_search?
    records[:inclusion] = false if includes&.length&.positive?
    records[:reference_variants] = false if test_reference_variants?
    records[:token_variants] = false if token_search_params.present?
    records[:comparator_searches] = Set.new if params_with_comparators.present?
  end
end

#insufficient_number_of_values(values_to_search) ⇒ Object



689
690
691
692
693
694
# File 'lib/au_core_test_kit/search_test.rb', line 689

def insufficient_number_of_values(values_to_search)
  "Insufficient number of values for the search. The number of values should be more than 1. The current number of values is #{values_to_search.length}."
  # extra_message = "Current values: #{values_to_search.join(', ')}." if values_to_search.length.positive?

  # "#{main_message} #{extra_message}"
end

#is_count_available_for_resource_type?(resource_type, params) ⇒ Boolean

Returns:

  • (Boolean)


147
148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/au_core_test_kit/search_test.rb', line 147

def is_count_available_for_resource_type?(resource_type, params)
  resource_sym = resource_type.to_sym
  count = scratch&.dig(:info, resource_sym, :count)

  return count unless count.nil?

  result = check_availability_of_count_search_parameter(resource_type, params)

  scratch[:info] ||= {}
  scratch[:info][resource_sym] ||= {}
  scratch[:info][resource_sym][:count] ||= result

  result
end

#is_reference_match?(reference, local_reference) ⇒ Boolean

Returns:

  • (Boolean)


592
593
594
595
# File 'lib/au_core_test_kit/search_test.rb', line 592

def is_reference_match?(reference, local_reference)
  regex_pattern = %r{^(#{Regexp.escape(local_reference)}|\S+/#{Regexp.escape(local_reference)}(?:[/|]\S+)*)$}
  reference.match?(regex_pattern)
end

#modify_value_by_multiple_type(values, multiple_type) ⇒ Object



465
466
467
468
469
# File 'lib/au_core_test_kit/search_test.rb', line 465

def modify_value_by_multiple_type(values, multiple_type)
  return [values.join(',')] if multiple_type == 'or'

  Array.wrap(values)
end

#no_resources_skip_message(resource_type = self.resource_type) ⇒ Object



704
705
706
707
708
709
710
# File 'lib/au_core_test_kit/search_test.rb', line 704

def no_resources_skip_message(resource_type = self.resource_type)
  msg = "No #{resource_type} resources appear to be available"

  msg.concat(" with the following Device Type Code filter: #{implantable_device_codes}") if resource_type == 'Device' && implantable_device_codes.present?

  "#{msg}. Please use patients with more information"
end

#optional_search_and_check_response(params, resource_type = self.resource_type) ⇒ Object



259
260
261
# File 'lib/au_core_test_kit/search_test.rb', line 259

def optional_search_and_check_response(params, resource_type = self.resource_type)
  fhir_search(resource_type, params:)
end

#patient_id_listObject



660
661
662
663
664
# File 'lib/au_core_test_kit/search_test.rb', line 660

def patient_id_list
  return [nil] unless respond_to? :patient_ids

  patient_ids.split(',').map(&:strip)
end

#patient_id_param?(name) ⇒ Boolean

Returns:

  • (Boolean)


670
671
672
# File 'lib/au_core_test_kit/search_test.rb', line 670

def patient_id_param?(name)
  name == 'patient' || (name == '_id' && resource_type == 'Patient')
end

#patient_search?Boolean

Returns:

  • (Boolean)


666
667
668
# File 'lib/au_core_test_kit/search_test.rb', line 666

def patient_search?
  search_param_names.any? { |name| patient_id_param? name }
end

#perform_comparator_searches(params, patient_id) ⇒ Object



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/au_core_test_kit/search_test.rb', line 327

def perform_comparator_searches(params, patient_id)
  params_with_comparators.each do |name|
    next if search_variant_test_records[:comparator_searches].include? name

    required_comparators(name).each do |comparator|
      paths = search_param_paths(name).first
      date_element = find_a_value_at(scratch_resources_for_patient(patient_id), paths)
      params_with_comparator = params.merge(name => name != 'birthdate' ? date_comparator_value(comparator, date_element) : birthdate_comparator_value(comparator, date_element))

      search_and_check_response(params_with_comparator)

      fetch_all_bundled_resources.each do |resource|
        check_resource_against_params(resource, params_with_comparator) if resource.resourceType == resource_type
      end
    end

    search_variant_test_records[:comparator_searches] << name
  end
end

#perform_multiple_and_search_testObject



461
462
463
# File 'lib/au_core_test_kit/search_test.rb', line 461

def perform_multiple_and_search_test
  perform_multiple_search_test('and')
end

#perform_multiple_or_search_testObject



457
458
459
# File 'lib/au_core_test_kit/search_test.rb', line 457

def perform_multiple_or_search_test
  perform_multiple_search_test('or')
end

#perform_multiple_search_test(multiple_type) ⇒ Object



471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
# File 'lib/au_core_test_kit/search_test.rb', line 471

def perform_multiple_search_test(multiple_type)
  if search_param_names.length > 2
    skip 'Inconsistent state of the test (params to search more than 2)'
  elsif search_param_names.empty?
    skip 'Inconsistent state of the test (number of params to search is 0)'
  else
    param_name = search_param_names[0]
    default_search_values = default_search_values_clean(param_name.to_sym)

    if default_search_values.length > 1
      if default_search_values.length == 2
        search_params = { param_name => modify_value_by_multiple_type(default_search_values, multiple_type) }
        search_and_check_response(search_params)
      else
        chunk_size = 2
        search_params_slices = default_search_values.each_slice(chunk_size).to_a
        search_params_slices.pop if search_params_slices.last.length < chunk_size
        search_params_slices.each do |values_slice|
          search_params = { param_name => modify_value_by_multiple_type(values_slice, multiple_type) }
          search_and_check_response(search_params)
        end
      end
    else
      resources_arr = all_search_params.map { |patient_id, _params_list| scratch_resources_for_patient(patient_id) }.flatten
      resources_arr = scratch_resources[:all].filter { |r| r.resourceType == resource_type } if resources_arr.empty? && search_by_target_resource_data
      existing_values = extract_existing_values_safety(resources_arr, param_name)

      if existing_values.length > 1
        search_params = { param_name => modify_value_by_multiple_type(existing_values, multiple_type) }
        search_and_check_response(search_params)
      else
        skip insufficient_number_of_values(existing_values)
      end
    end
  end
end

#perform_post_search(get_search_resources, params) ⇒ Object



211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/au_core_test_kit/search_test.rb', line 211

def perform_post_search(get_search_resources, params)
  fhir_search resource_type, params:, search_method: :post

  check_search_response

  post_search_resources = fetch_all_bundled_resources.select { |resource| resource.resourceType == resource_type }

  filter_conditions(post_search_resources) if resource_type == 'Condition' && .version == 'v5.0.1'
  filter_devices(post_search_resources) if resource_type == 'Device'

  get_resource_count = get_search_resources.length
  post_resource_count = post_search_resources.length

  search_variant_test_records[:post_variant] = true

  assert get_resource_count == post_resource_count,
         'Expected search by POST to return the same results as search by GET, ' \
         "but GET search returned #{get_resource_count} resources, and POST search " \
         "returned #{post_resource_count} resources."
end

#perform_reference_with_type_search(params, resource_count) ⇒ Object



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/au_core_test_kit/search_test.rb', line 347

def perform_reference_with_type_search(params, resource_count)
  return if resource_count.zero?
  return if search_variant_test_records[:reference_variants]

  if params.keys.include?('patient')
    new_search_params = params.merge('patient' => "Patient/#{params['patient']}")
  else
    param_key = params.keys.first
    new_search_params = params.merge(param_key => params[param_key].split('/').last)
  end
  search_and_check_response(new_search_params)

  reference_with_type_resources = fetch_all_bundled_resources.select do |resource|
    resource.resourceType == resource_type
  end

  filter_conditions(reference_with_type_resources) if resource_type == 'Condition' && .version == 'v5.0.1'
  filter_devices(reference_with_type_resources) if resource_type == 'Device'

  new_resource_count = reference_with_type_resources.count

  assert new_resource_count == resource_count,
         "Expected search by `#{params['patient']}` to to return the same results as searching " \
         "by `#{new_search_params['patient']}`, but found #{resource_count} resources with " \
         "`#{params['patient']}` and #{new_resource_count} with `#{new_search_params['patient']}`"

  search_variant_test_records[:reference_variants] = true
end

#perform_search(params, patient_id) ⇒ Object



162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/au_core_test_kit/search_test.rb', line 162

def perform_search(params, patient_id)
  search_params = is_count_available_for_resource_type?(resource_type, params) == false ? params : params.merge({ _count: 10 })
  fhir_search(resource_type, params: search_params)

  if SearchTestHelpers.search_by_reference?(search_params)
    search_params = SearchTestHelpers.replace_full_reference_search_param_to_id(search_params)
    fhir_search(resource_type, params: search_params)
  end

  perform_search_with_status(params, patient_id) if response[:status] == 400 && possible_status_search?

  check_search_response
  fetch_all_bundled_resources = is_count_available_for_resource_type?(resource_type, params) == false ? fetch_all_bundled_resources() : fetch_all_bundled_resources(max_pages: 2)
  resources_returned =
    fetch_all_bundled_resources.select { |resource| resource.resourceType == resource_type }

  return [] if resources_returned.blank?

  perform_comparator_searches(params, patient_id) if params_with_comparators.present?

  filter_conditions(resources_returned) if resource_type == 'Condition' && .version == 'v5.0.1'
  filter_devices(resources_returned) if resource_type == 'Device'

  if first_search?
    all_scratch_resources.concat(resources_returned).uniq!
    scratch_resources_for_patient(patient_id).concat(resources_returned).uniq!
  end

  resources_returned.each do |resource|
    check_resource_against_params(resource, params)
  end

  save_delayed_references(resources_returned) if saves_delayed_references?

  return resources_returned if all_search_variants_tested?

  perform_post_search(resources_returned, params) if test_post_search?
  if includes.present?
    includes.each do |include_param|
      test_include_param(resources_returned, params, patient_id, include_param)
    end
  end

  perform_reference_with_type_search(params, resources_returned.count) if test_reference_variants?
  perform_search_with_system(params, patient_id) if token_search_params.present?

  resources_returned
end

#perform_search_with_status(original_params, _patient_id, status_search_values: self.status_search_values, resource_type: self.resource_type) ⇒ Object



394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# File 'lib/au_core_test_kit/search_test.rb', line 394

def perform_search_with_status(
  original_params,
  _patient_id,
  status_search_values: self.status_search_values,
  resource_type: self.resource_type
)
  assert resource.is_a?(FHIR::OperationOutcome), 'Server returned a status of 400 without an OperationOutcome'
  # TODO: warn about documenting status requirements
  status_search_values.flat_map do |status_value|
    search_params = original_params.merge("#{status_search_param_name}": status_value)

    search_and_check_response(search_params)

    entries = resource.entry.select { |entry| entry.resource.resourceType == resource_type }

    if entries.present?
      original_params.merge!("#{status_search_param_name}": status_value)
      break
    end
  end
end

#perform_search_with_system(params, patient_id) ⇒ Object



376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
# File 'lib/au_core_test_kit/search_test.rb', line 376

def perform_search_with_system(params, patient_id)
  return if search_variant_test_records[:token_variants]

  new_search_params = search_params_with_values(token_search_params, patient_id, include_system: true)
  return if new_search_params.any? { |_name, value| value.blank? }

  search_params = params.merge(new_search_params)
  search_and_check_response(search_params)

  resources_returned =
    fetch_all_bundled_resources
    .select { |resource| resource.resourceType == resource_type }

  assert resources_returned.present?, 'No resources were returned when searching by `system|code`'

  search_variant_test_records[:token_variants] = true
end

#references_to_save(resource_type = nil) ⇒ Object



607
608
609
610
# File 'lib/au_core_test_kit/search_test.rb', line 607

def references_to_save(resource_type = nil)
   = resource_type == 'Provenance' ?  : 
  .delayed_references
end

#required_comparators(name) ⇒ Object



307
308
309
310
311
312
313
314
# File 'lib/au_core_test_kit/search_test.rb', line 307

def required_comparators(name)
  
    .search_definitions
    .dig(name.to_sym, :comparators)
    .select { |_comparator, expectation| expectation == 'SHALL' }
    .keys
    .map(&:to_s)
end

#run_include_testObject



110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/au_core_test_kit/search_test.rb', line 110

def run_include_test
  resources = []
  all_search_params.each do |patient_id, params_list|
    params_list.each do |params|
      includes.each do |include_param|
        patient_resources = find_include_resources(
          params,
          patient_id,
          include_param,
          false
        )
        if patient_resources.length.positive?
          resources.concat(patient_resources)
          break
        end
      end
    end
    break if resources.length.positive?
  end
  pass if resources.length.positive?

  skip_with_msg 'No resources were included in the search results'
end

#run_provenance_revinclude_search_testObject



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/au_core_test_kit/search_test.rb', line 70

def run_provenance_revinclude_search_test
  # TODO: skip if not supported?
  conditional_skip_with_msg !any_valid_search_params?(all_provenance_revinclude_search_params), unable_to_resolve_params_message

  provenance_resources =
    all_provenance_revinclude_search_params.flat_map do |_patient_id, params_list|
      params_list.flat_map do |params|
        fhir_search(resource_type, params:)

        perform_search_with_status(params, patient_id) if response[:status] == 400 && possible_status_search?

        check_search_response

        fetch_all_bundled_resources(additional_resource_types: ['Provenance'])
          .select { |resource| resource.resourceType == 'Provenance' }
      end
    end

  scratch_provenance_resources[:all] ||= []
  scratch_provenance_resources[:all].concat(provenance_resources)

  save_delayed_references(provenance_resources, 'Provenance')

  # NOTE: https://github.com/hl7au/au-fhir-core-inferno/issues/8
  # skip_if provenance_resources.empty?, no_resources_skip_message('Provenance')
end

#run_read_test_and_skip_first_search(patient_id) ⇒ Object



134
135
136
137
# File 'lib/au_core_test_kit/search_test.rb', line 134

def run_read_test_and_skip_first_search(patient_id)
  resource = create_reference('Patient', patient_id)
  read_and_validate_as_first(resource, patient_id)
end

#run_search_testObject



102
103
104
# File 'lib/au_core_test_kit/search_test.rb', line 102

def run_search_test
  run_search_test_common(method(:perform_search))
end

#run_search_test_with_systemObject



106
107
108
# File 'lib/au_core_test_kit/search_test.rb', line 106

def run_search_test_with_system
  run_search_test_common(method(:perform_search_with_system))
end

#save_delayed_references(resources, containing_resource_type = resource_type) ⇒ Object



860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
# File 'lib/au_core_test_kit/search_test.rb', line 860

def save_delayed_references(resources, containing_resource_type = resource_type)
  resources.each do |resource|
    references_to_save(containing_resource_type).each do |reference_to_save|
      resolve_path(resource, reference_to_save[:path])
        .select { |reference| reference.is_a?(FHIR::Reference) && !reference.contained? && reference.reference.present?}
        .each do |reference|
          resource_type = reference.resource_class.name.demodulize
          need_to_save = reference_to_save[:resources].include?(resource_type)
          next unless need_to_save

          save_resource_reference(resource_type, reference)
        end
    end
  end
end

#save_resource_reference(resource_type, reference) ⇒ Object



854
855
856
857
858
# File 'lib/au_core_test_kit/search_test.rb', line 854

def save_resource_reference(resource_type, reference)
  scratch[:references] ||= {}
  scratch[:references][resource_type] ||= Set.new
  scratch[:references][resource_type] << reference
end

#scratch_resources_for_patient(patient_id) ⇒ Object



601
602
603
604
605
# File 'lib/au_core_test_kit/search_test.rb', line 601

def scratch_resources_for_patient(patient_id)
  return all_scratch_resources if patient_id.nil?

  scratch_resources[patient_id] ||= []
end

#search_and_check_response(params, resource_type = self.resource_type) ⇒ Object



254
255
256
257
# File 'lib/au_core_test_kit/search_test.rb', line 254

def search_and_check_response(params, resource_type = self.resource_type)
  fhir_search(resource_type, params:)
  check_search_response
end

#search_by_patient_id_is_available(patient_id) ⇒ Object



97
98
99
100
# File 'lib/au_core_test_kit/search_test.rb', line 97

def search_by_patient_id_is_available(patient_id)
  fhir_search('Patient', params: { _id: patient_id })
  response[:status] == 200
end

#search_param_paths(name) ⇒ Object



674
675
676
677
678
679
# File 'lib/au_core_test_kit/search_test.rb', line 674

def search_param_paths(name)
  paths = .search_definitions[name.to_sym][:paths]
  paths[0] = 'local_class' if paths.first == 'class'

  paths
end

#search_param_value(name, resource, include_system: false) ⇒ Object



767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
# File 'lib/au_core_test_kit/search_test.rb', line 767

def search_param_value(name, resource, include_system: false)
  paths = search_param_paths(name)
  search_value = nil
  paths.each do |path|
    element = find_a_value_at(resource, path) { |element| element_has_valid_value?(element, include_system) }

    search_value =
      case element
      when FHIR::Period
        if element.start.present?
          "gt#{(DateTime.xmlschema(element.start) - 1).xmlschema}"
        else
          end_datetime = get_fhir_datetime_range(element.end)[:end]
          "lt#{(end_datetime + 1).xmlschema}"
        end
      when FHIR::Reference
        element.reference
      when FHIR::CodeableConcept
        if include_system
          coding =
            find_a_value_at(element, 'coding') { |coding| coding.code.present? && coding.system.present? }
          "#{coding.system}|#{coding.code}"
        else
          find_a_value_at(element, 'coding.code')
        end
      when FHIR::Identifier
        include_system ? "#{element.system}|#{element.value}" : element.value
      when FHIR::Coding
        include_system ? "#{element.system}|#{element.code}" : element.code
      when FHIR::HumanName
        element.family || element.given&.first || element.text
      when FHIR::Address
        element.text || element.city || element.state || element.postalCode || element.country
      else
        if .version != 'v3.1.1' &&
           .search_definitions[name.to_sym][:type] == 'date' &&
           params_with_comparators&.include?(name)
          # convert date search to greath-than comparator search with correct precision
          # For all date search parameters:
          #   Patient.birthDate does not mandate comparators so cannot be converted
          #   Goal.target-date has day precision
          #   All others have second + time offset precision
          if /^\d{4}(-\d{2})?$/.match?(element) || # YYYY or YYYY-MM
             (/^\d{4}-\d{2}-\d{2}$/.match?(element) && resource_type != 'Goal') # YYY-MM-DD AND Resource is NOT Goal
            if !(path == 'birthDate' && resource_type == 'Patient')
              "gt#{(DateTime.xmlschema(element) - 1).xmlschema}"
            else
              "gt#{(DateTime.xmlschema(element) - 1).strftime('%F')}"
            end
          else
            element
          end
        else
          element
        end
      end

    break if search_value.present?
  end
  search_value&.gsub(',', '\\,')
end

#search_params_with_values(search_param_names, patient_id, include_system: false) ⇒ Object



626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
# File 'lib/au_core_test_kit/search_test.rb', line 626

def search_params_with_values(search_param_names, patient_id, include_system: false)
  resources = scratch_resources_for_patient(patient_id)

  if resources.empty?
    return search_param_names.each_with_object({}) do |name, params|
      value = patient_id_param?(name) ? patient_id : nil
      if value.nil? && use_any_data_for_search
        scratch_resources[:all].each do |resource|
          value = search_param_value(name, resource, include_system:)
          break if value.present?
        end
      end
      params[name] = value
    end
  end

  resources.each_with_object({}) do |resource, outer_params|
    results_from_one_resource = search_param_names.each_with_object({}) do |name, params|
      value = if patient_id_param?(name)
                patient_id
              else
                search_param_value(name, resource,
                                   include_system:)
              end
      params[name] = value
    end

    outer_params.merge!(results_from_one_resource)

    # stop if all parameter values are found
    return outer_params if outer_params.all? { |_key, value| value.present? }
  end
end

#search_variant_test_recordsObject



269
270
271
# File 'lib/au_core_test_kit/search_test.rb', line 269

def search_variant_test_records
  @search_variant_test_records ||= initial_search_variant_test_records
end

#status_search_param_nameObject



416
417
418
419
# File 'lib/au_core_test_kit/search_test.rb', line 416

def status_search_param_name
  @status_search_param_name ||=
    .search_definitions.keys.find { |key| key.to_s.include? 'status' }
end

#status_search_valuesObject



421
422
423
# File 'lib/au_core_test_kit/search_test.rb', line 421

def status_search_values
  default_search_values(status_search_param_name)
end

#test_include_param(base_resources, params, patient_id, include_param, keep_search_variant = true) ⇒ Object



529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
# File 'lib/au_core_test_kit/search_test.rb', line 529

def test_include_param(base_resources, params, patient_id, include_param, keep_search_variant = true)
  return if keep_search_variant && search_variant_test_records[:inclusion]

  resources_to_check = "#{include_param['target_resource'].downcase}_resources".to_sym
  target_resource_type = include_param['target_resource']

  scratch[resources_to_check] ||= {}
  scratch[resources_to_check][:all] ||= []
  scratch[resources_to_check][patient_id] ||= []
  scratch[resources_to_check][:contained] ||= []

  base_resources_with_external_reference =
    base_resources
    .select { |resource| resource&.to_hash&.[](include_param['paths'].first)&.present? }
    .reject { |resource| resource&.to_hash&.[](include_param['paths'].first)&.fetch('reference', '')&.start_with?('#') }

  contained_resources =
    base_resources
    .select { |resource| resource&.to_hash&.[](include_param['paths'].first)&.fetch('reference', '')&.start_with?('#') }
    .flat_map(&:contained)
    .select { |resource| resource.resourceType == target_resource_type }

  scratch[resources_to_check][:all] += contained_resources
  scratch[resources_to_check][patient_id] += contained_resources
  scratch[resources_to_check][:contained] += contained_resources

  return if base_resources_with_external_reference.blank?

  search_params = params.merge(_include: include_param['parameter'])

  search_and_check_response(search_params)

  resources = fetch_all_bundled_resources.select { |resource| resource.resourceType == target_resource_type }
  assert resources.present?, "No #{resource_type} were included in the search results"

  included_resources = resources.map { |resource| "#{resource.resourceType}/#{resource.id}" }

  matched_base_resources = base_resources_with_external_reference.select do |base_resource|
    included_resources.any? do |resource_reference|
      is_reference_match?(base_resource&.to_hash&.[](include_param['paths'].first)&.fetch('reference', ''), resource_reference)
    end
  end

  not_matched_included_resources = included_resources.select do |resource_reference|
    matched_base_resources.none? do |base_resource|
      is_reference_match?(base_resource&.to_hash&.[](include_param['paths'].first)&.fetch('reference', ''), resource_reference)
    end
  end

  not_matched_included_medications_string = not_matched_included_resources.join(',')
  assert not_matched_included_resources.empty?,
         "No #{resource_type} references #{not_matched_included_medications_string} in the search result."

  resources.uniq!(&:id)

  scratch[resources_to_check][:all] += resources
  scratch[resources_to_check][patient_id] += resources

  return unless keep_search_variant

  search_variant_test_records[:inclusion] = true
end

#unable_to_resolve_params_messageObject



696
697
698
# File 'lib/au_core_test_kit/search_test.rb', line 696

def unable_to_resolve_params_message
  "Could not find values for all search params #{array_of_codes(search_param_names)}"
end