Module: USCoreTestKit::SearchTest

Extended by:
Forwardable
Includes:
DateSearchValidation, FHIRResourceNavigation, ResourceSearchParamChecker
Included in:
ClinicalNoteTypeTest, PractitionerAddressTest, ScreeningAssessmentCategoryTest, USCoreV311::AllergyIntolerancePatientClinicalStatusSearchTest, USCoreV311::AllergyIntolerancePatientSearchTest, USCoreV311::AllergyIntoleranceProvenanceRevincludeSearchTest, USCoreV311::BodyheightPatientCategoryDateSearchTest, USCoreV311::BodyheightPatientCategorySearchTest, USCoreV311::BodyheightPatientCategoryStatusSearchTest, USCoreV311::BodyheightPatientCodeDateSearchTest, USCoreV311::BodyheightPatientCodeSearchTest, USCoreV311::BodyheightProvenanceRevincludeSearchTest, USCoreV311::BodytempPatientCategoryDateSearchTest, USCoreV311::BodytempPatientCategorySearchTest, USCoreV311::BodytempPatientCategoryStatusSearchTest, USCoreV311::BodytempPatientCodeDateSearchTest, USCoreV311::BodytempPatientCodeSearchTest, USCoreV311::BodytempProvenanceRevincludeSearchTest, USCoreV311::BodyweightPatientCategoryDateSearchTest, USCoreV311::BodyweightPatientCategorySearchTest, USCoreV311::BodyweightPatientCategoryStatusSearchTest, USCoreV311::BodyweightPatientCodeDateSearchTest, USCoreV311::BodyweightPatientCodeSearchTest, USCoreV311::BodyweightProvenanceRevincludeSearchTest, USCoreV311::BpPatientCategoryDateSearchTest, USCoreV311::BpPatientCategorySearchTest, USCoreV311::BpPatientCategoryStatusSearchTest, USCoreV311::BpPatientCodeDateSearchTest, USCoreV311::BpPatientCodeSearchTest, USCoreV311::BpProvenanceRevincludeSearchTest, USCoreV311::CarePlanPatientCategoryDateSearchTest, USCoreV311::CarePlanPatientCategorySearchTest, USCoreV311::CarePlanPatientCategoryStatusDateSearchTest, USCoreV311::CarePlanPatientCategoryStatusSearchTest, USCoreV311::CarePlanProvenanceRevincludeSearchTest, USCoreV311::CareTeamPatientStatusSearchTest, USCoreV311::CareTeamProvenanceRevincludeSearchTest, USCoreV311::ConditionPatientCategorySearchTest, USCoreV311::ConditionPatientClinicalStatusSearchTest, USCoreV311::ConditionPatientCodeSearchTest, USCoreV311::ConditionPatientOnsetDateSearchTest, USCoreV311::ConditionPatientSearchTest, USCoreV311::ConditionProvenanceRevincludeSearchTest, USCoreV311::DevicePatientSearchTest, USCoreV311::DevicePatientTypeSearchTest, USCoreV311::DeviceProvenanceRevincludeSearchTest, USCoreV311::DiagnosticReportLabPatientCategoryDateSearchTest, USCoreV311::DiagnosticReportLabPatientCategorySearchTest, USCoreV311::DiagnosticReportLabPatientCodeDateSearchTest, USCoreV311::DiagnosticReportLabPatientCodeSearchTest, USCoreV311::DiagnosticReportLabPatientSearchTest, USCoreV311::DiagnosticReportLabPatientStatusSearchTest, USCoreV311::DiagnosticReportLabProvenanceRevincludeSearchTest, USCoreV311::DiagnosticReportNotePatientCategoryDateSearchTest, USCoreV311::DiagnosticReportNotePatientCategorySearchTest, USCoreV311::DiagnosticReportNotePatientCodeDateSearchTest, USCoreV311::DiagnosticReportNotePatientCodeSearchTest, USCoreV311::DiagnosticReportNotePatientSearchTest, USCoreV311::DiagnosticReportNotePatientStatusSearchTest, USCoreV311::DiagnosticReportNoteProvenanceRevincludeSearchTest, USCoreV311::DocumentReferenceIdSearchTest, USCoreV311::DocumentReferencePatientCategoryDateSearchTest, USCoreV311::DocumentReferencePatientCategorySearchTest, USCoreV311::DocumentReferencePatientSearchTest, USCoreV311::DocumentReferencePatientStatusSearchTest, USCoreV311::DocumentReferencePatientTypePeriodSearchTest, USCoreV311::DocumentReferencePatientTypeSearchTest, USCoreV311::DocumentReferenceProvenanceRevincludeSearchTest, USCoreV311::EncounterClassPatientSearchTest, USCoreV311::EncounterDatePatientSearchTest, USCoreV311::EncounterIdSearchTest, USCoreV311::EncounterIdentifierSearchTest, USCoreV311::EncounterPatientSearchTest, USCoreV311::EncounterPatientStatusSearchTest, USCoreV311::EncounterPatientTypeSearchTest, USCoreV311::EncounterProvenanceRevincludeSearchTest, USCoreV311::GoalPatientLifecycleStatusSearchTest, USCoreV311::GoalPatientSearchTest, USCoreV311::GoalPatientTargetDateSearchTest, USCoreV311::GoalProvenanceRevincludeSearchTest, USCoreV311::HeadCircumferencePatientCategoryDateSearchTest, USCoreV311::HeadCircumferencePatientCategorySearchTest, USCoreV311::HeadCircumferencePatientCategoryStatusSearchTest, USCoreV311::HeadCircumferencePatientCodeDateSearchTest, USCoreV311::HeadCircumferencePatientCodeSearchTest, USCoreV311::HeadCircumferenceProvenanceRevincludeSearchTest, USCoreV311::HeartratePatientCategoryDateSearchTest, USCoreV311::HeartratePatientCategorySearchTest, USCoreV311::HeartratePatientCategoryStatusSearchTest, USCoreV311::HeartratePatientCodeDateSearchTest, USCoreV311::HeartratePatientCodeSearchTest, USCoreV311::HeartrateProvenanceRevincludeSearchTest, USCoreV311::ImmunizationPatientDateSearchTest, USCoreV311::ImmunizationPatientSearchTest, USCoreV311::ImmunizationPatientStatusSearchTest, USCoreV311::ImmunizationProvenanceRevincludeSearchTest, USCoreV311::MedicationRequestPatientIntentAuthoredonSearchTest, USCoreV311::MedicationRequestPatientIntentEncounterSearchTest, USCoreV311::MedicationRequestPatientIntentSearchTest, USCoreV311::MedicationRequestPatientIntentStatusSearchTest, USCoreV311::MedicationRequestProvenanceRevincludeSearchTest, USCoreV311::ObservationLabPatientCategoryDateSearchTest, USCoreV311::ObservationLabPatientCategorySearchTest, USCoreV311::ObservationLabPatientCategoryStatusSearchTest, USCoreV311::ObservationLabPatientCodeDateSearchTest, USCoreV311::ObservationLabPatientCodeSearchTest, USCoreV311::ObservationLabProvenanceRevincludeSearchTest, USCoreV311::OrganizationAddressSearchTest, USCoreV311::OrganizationNameSearchTest, USCoreV311::PatientBirthdateFamilySearchTest, USCoreV311::PatientBirthdateNameSearchTest, USCoreV311::PatientFamilyGenderSearchTest, USCoreV311::PatientGenderNameSearchTest, USCoreV311::PatientIdSearchTest, USCoreV311::PatientIdentifierSearchTest, USCoreV311::PatientNameSearchTest, USCoreV311::PatientProvenanceRevincludeSearchTest, USCoreV311::PediatricBmiForAgePatientCategoryDateSearchTest, USCoreV311::PediatricBmiForAgePatientCategorySearchTest, USCoreV311::PediatricBmiForAgePatientCategoryStatusSearchTest, USCoreV311::PediatricBmiForAgePatientCodeDateSearchTest, USCoreV311::PediatricBmiForAgePatientCodeSearchTest, USCoreV311::PediatricBmiForAgeProvenanceRevincludeSearchTest, USCoreV311::PediatricWeightForHeightPatientCategoryDateSearchTest, USCoreV311::PediatricWeightForHeightPatientCategorySearchTest, USCoreV311::PediatricWeightForHeightPatientCategoryStatusSearchTest, USCoreV311::PediatricWeightForHeightPatientCodeDateSearchTest, USCoreV311::PediatricWeightForHeightPatientCodeSearchTest, USCoreV311::PediatricWeightForHeightProvenanceRevincludeSearchTest, USCoreV311::PractitionerIdentifierSearchTest, USCoreV311::PractitionerNameSearchTest, USCoreV311::ProcedurePatientCodeDateSearchTest, USCoreV311::ProcedurePatientDateSearchTest, USCoreV311::ProcedurePatientSearchTest, USCoreV311::ProcedurePatientStatusSearchTest, USCoreV311::ProcedureProvenanceRevincludeSearchTest, USCoreV311::PulseOximetryPatientCategoryDateSearchTest, USCoreV311::PulseOximetryPatientCategorySearchTest, USCoreV311::PulseOximetryPatientCategoryStatusSearchTest, USCoreV311::PulseOximetryPatientCodeDateSearchTest, USCoreV311::PulseOximetryPatientCodeSearchTest, USCoreV311::PulseOximetryProvenanceRevincludeSearchTest, USCoreV311::RespratePatientCategoryDateSearchTest, USCoreV311::RespratePatientCategorySearchTest, USCoreV311::RespratePatientCategoryStatusSearchTest, USCoreV311::RespratePatientCodeDateSearchTest, USCoreV311::RespratePatientCodeSearchTest, USCoreV311::ResprateProvenanceRevincludeSearchTest, USCoreV311::SmokingstatusPatientCategoryDateSearchTest, USCoreV311::SmokingstatusPatientCategorySearchTest, USCoreV311::SmokingstatusPatientCategoryStatusSearchTest, USCoreV311::SmokingstatusPatientCodeDateSearchTest, USCoreV311::SmokingstatusPatientCodeSearchTest, USCoreV311::SmokingstatusProvenanceRevincludeSearchTest, USCoreV400::AllergyIntolerancePatientClinicalStatusSearchTest, USCoreV400::AllergyIntolerancePatientSearchTest, USCoreV400::AllergyIntoleranceProvenanceRevincludeSearchTest, USCoreV400::BloodPressurePatientCategoryDateSearchTest, USCoreV400::BloodPressurePatientCategorySearchTest, USCoreV400::BloodPressurePatientCategoryStatusSearchTest, USCoreV400::BloodPressurePatientCodeDateSearchTest, USCoreV400::BloodPressurePatientCodeSearchTest, USCoreV400::BloodPressureProvenanceRevincludeSearchTest, USCoreV400::BmiPatientCategoryDateSearchTest, USCoreV400::BmiPatientCategorySearchTest, USCoreV400::BmiPatientCategoryStatusSearchTest, USCoreV400::BmiPatientCodeDateSearchTest, USCoreV400::BmiPatientCodeSearchTest, USCoreV400::BmiProvenanceRevincludeSearchTest, USCoreV400::BodyHeightPatientCategoryDateSearchTest, USCoreV400::BodyHeightPatientCategorySearchTest, USCoreV400::BodyHeightPatientCategoryStatusSearchTest, USCoreV400::BodyHeightPatientCodeDateSearchTest, USCoreV400::BodyHeightPatientCodeSearchTest, USCoreV400::BodyHeightProvenanceRevincludeSearchTest, USCoreV400::BodyTemperaturePatientCategoryDateSearchTest, USCoreV400::BodyTemperaturePatientCategorySearchTest, USCoreV400::BodyTemperaturePatientCategoryStatusSearchTest, USCoreV400::BodyTemperaturePatientCodeDateSearchTest, USCoreV400::BodyTemperaturePatientCodeSearchTest, USCoreV400::BodyTemperatureProvenanceRevincludeSearchTest, USCoreV400::BodyWeightPatientCategoryDateSearchTest, USCoreV400::BodyWeightPatientCategorySearchTest, USCoreV400::BodyWeightPatientCategoryStatusSearchTest, USCoreV400::BodyWeightPatientCodeDateSearchTest, USCoreV400::BodyWeightPatientCodeSearchTest, USCoreV400::BodyWeightProvenanceRevincludeSearchTest, USCoreV400::CarePlanPatientCategoryDateSearchTest, USCoreV400::CarePlanPatientCategorySearchTest, USCoreV400::CarePlanPatientCategoryStatusDateSearchTest, USCoreV400::CarePlanPatientCategoryStatusSearchTest, USCoreV400::CarePlanProvenanceRevincludeSearchTest, USCoreV400::CareTeamPatientStatusSearchTest, USCoreV400::CareTeamProvenanceRevincludeSearchTest, USCoreV400::ConditionPatientCategorySearchTest, USCoreV400::ConditionPatientClinicalStatusSearchTest, USCoreV400::ConditionPatientCodeSearchTest, USCoreV400::ConditionPatientOnsetDateSearchTest, USCoreV400::ConditionPatientSearchTest, USCoreV400::ConditionProvenanceRevincludeSearchTest, USCoreV400::DevicePatientSearchTest, USCoreV400::DevicePatientTypeSearchTest, USCoreV400::DeviceProvenanceRevincludeSearchTest, USCoreV400::DiagnosticReportLabPatientCategoryDateSearchTest, USCoreV400::DiagnosticReportLabPatientCategorySearchTest, USCoreV400::DiagnosticReportLabPatientCodeDateSearchTest, USCoreV400::DiagnosticReportLabPatientCodeSearchTest, USCoreV400::DiagnosticReportLabPatientSearchTest, USCoreV400::DiagnosticReportLabPatientStatusSearchTest, USCoreV400::DiagnosticReportLabProvenanceRevincludeSearchTest, USCoreV400::DiagnosticReportNotePatientCategoryDateSearchTest, USCoreV400::DiagnosticReportNotePatientCategorySearchTest, USCoreV400::DiagnosticReportNotePatientCodeDateSearchTest, USCoreV400::DiagnosticReportNotePatientCodeSearchTest, USCoreV400::DiagnosticReportNotePatientSearchTest, USCoreV400::DiagnosticReportNotePatientStatusSearchTest, USCoreV400::DiagnosticReportNoteProvenanceRevincludeSearchTest, USCoreV400::DocumentReferenceIdSearchTest, USCoreV400::DocumentReferencePatientCategoryDateSearchTest, USCoreV400::DocumentReferencePatientCategorySearchTest, USCoreV400::DocumentReferencePatientSearchTest, USCoreV400::DocumentReferencePatientStatusSearchTest, USCoreV400::DocumentReferencePatientTypePeriodSearchTest, USCoreV400::DocumentReferencePatientTypeSearchTest, USCoreV400::DocumentReferenceProvenanceRevincludeSearchTest, USCoreV400::EncounterClassPatientSearchTest, USCoreV400::EncounterDatePatientSearchTest, USCoreV400::EncounterIdSearchTest, USCoreV400::EncounterIdentifierSearchTest, USCoreV400::EncounterPatientSearchTest, USCoreV400::EncounterPatientStatusSearchTest, USCoreV400::EncounterPatientTypeSearchTest, USCoreV400::EncounterProvenanceRevincludeSearchTest, USCoreV400::GoalPatientLifecycleStatusSearchTest, USCoreV400::GoalPatientSearchTest, USCoreV400::GoalPatientTargetDateSearchTest, USCoreV400::GoalProvenanceRevincludeSearchTest, USCoreV400::HeadCircumferencePatientCategoryDateSearchTest, USCoreV400::HeadCircumferencePatientCategorySearchTest, USCoreV400::HeadCircumferencePatientCategoryStatusSearchTest, USCoreV400::HeadCircumferencePatientCodeDateSearchTest, USCoreV400::HeadCircumferencePatientCodeSearchTest, USCoreV400::HeadCircumferencePercentilePatientCategoryDateSearchTest, USCoreV400::HeadCircumferencePercentilePatientCategorySearchTest, USCoreV400::HeadCircumferencePercentilePatientCategoryStatusSearchTest, USCoreV400::HeadCircumferencePercentilePatientCodeDateSearchTest, USCoreV400::HeadCircumferencePercentilePatientCodeSearchTest, USCoreV400::HeadCircumferencePercentileProvenanceRevincludeSearchTest, USCoreV400::HeadCircumferenceProvenanceRevincludeSearchTest, USCoreV400::HeartRatePatientCategoryDateSearchTest, USCoreV400::HeartRatePatientCategorySearchTest, USCoreV400::HeartRatePatientCategoryStatusSearchTest, USCoreV400::HeartRatePatientCodeDateSearchTest, USCoreV400::HeartRatePatientCodeSearchTest, USCoreV400::HeartRateProvenanceRevincludeSearchTest, USCoreV400::ImmunizationPatientDateSearchTest, USCoreV400::ImmunizationPatientSearchTest, USCoreV400::ImmunizationPatientStatusSearchTest, USCoreV400::ImmunizationProvenanceRevincludeSearchTest, USCoreV400::MedicationRequestPatientIntentAuthoredonSearchTest, USCoreV400::MedicationRequestPatientIntentEncounterSearchTest, USCoreV400::MedicationRequestPatientIntentSearchTest, USCoreV400::MedicationRequestPatientIntentStatusSearchTest, USCoreV400::MedicationRequestProvenanceRevincludeSearchTest, USCoreV400::ObservationLabPatientCategoryDateSearchTest, USCoreV400::ObservationLabPatientCategorySearchTest, USCoreV400::ObservationLabPatientCategoryStatusSearchTest, USCoreV400::ObservationLabPatientCodeDateSearchTest, USCoreV400::ObservationLabPatientCodeSearchTest, USCoreV400::ObservationLabProvenanceRevincludeSearchTest, USCoreV400::OrganizationAddressSearchTest, USCoreV400::OrganizationNameSearchTest, USCoreV400::PatientBirthdateFamilySearchTest, USCoreV400::PatientBirthdateNameSearchTest, USCoreV400::PatientFamilyGenderSearchTest, USCoreV400::PatientGenderNameSearchTest, USCoreV400::PatientIdSearchTest, USCoreV400::PatientIdentifierSearchTest, USCoreV400::PatientNameSearchTest, USCoreV400::PatientProvenanceRevincludeSearchTest, USCoreV400::PediatricBmiForAgePatientCategoryDateSearchTest, USCoreV400::PediatricBmiForAgePatientCategorySearchTest, USCoreV400::PediatricBmiForAgePatientCategoryStatusSearchTest, USCoreV400::PediatricBmiForAgePatientCodeDateSearchTest, USCoreV400::PediatricBmiForAgePatientCodeSearchTest, USCoreV400::PediatricBmiForAgeProvenanceRevincludeSearchTest, USCoreV400::PediatricWeightForHeightPatientCategoryDateSearchTest, USCoreV400::PediatricWeightForHeightPatientCategorySearchTest, USCoreV400::PediatricWeightForHeightPatientCategoryStatusSearchTest, USCoreV400::PediatricWeightForHeightPatientCodeDateSearchTest, USCoreV400::PediatricWeightForHeightPatientCodeSearchTest, USCoreV400::PediatricWeightForHeightProvenanceRevincludeSearchTest, USCoreV400::PractitionerIdentifierSearchTest, USCoreV400::PractitionerNameSearchTest, USCoreV400::ProcedurePatientCodeDateSearchTest, USCoreV400::ProcedurePatientDateSearchTest, USCoreV400::ProcedurePatientSearchTest, USCoreV400::ProcedurePatientStatusSearchTest, USCoreV400::ProcedureProvenanceRevincludeSearchTest, USCoreV400::PulseOximetryPatientCategoryDateSearchTest, USCoreV400::PulseOximetryPatientCategorySearchTest, USCoreV400::PulseOximetryPatientCategoryStatusSearchTest, USCoreV400::PulseOximetryPatientCodeDateSearchTest, USCoreV400::PulseOximetryPatientCodeSearchTest, USCoreV400::PulseOximetryProvenanceRevincludeSearchTest, USCoreV400::RespiratoryRatePatientCategoryDateSearchTest, USCoreV400::RespiratoryRatePatientCategorySearchTest, USCoreV400::RespiratoryRatePatientCategoryStatusSearchTest, USCoreV400::RespiratoryRatePatientCodeDateSearchTest, USCoreV400::RespiratoryRatePatientCodeSearchTest, USCoreV400::RespiratoryRateProvenanceRevincludeSearchTest, USCoreV400::SmokingstatusPatientCategoryDateSearchTest, USCoreV400::SmokingstatusPatientCategorySearchTest, USCoreV400::SmokingstatusPatientCategoryStatusSearchTest, USCoreV400::SmokingstatusPatientCodeDateSearchTest, USCoreV400::SmokingstatusPatientCodeSearchTest, USCoreV400::SmokingstatusProvenanceRevincludeSearchTest, USCoreV501::AllergyIntolerancePatientClinicalStatusSearchTest, USCoreV501::AllergyIntolerancePatientSearchTest, USCoreV501::AllergyIntoleranceProvenanceRevincludeSearchTest, USCoreV501::BloodPressurePatientCategoryDateSearchTest, USCoreV501::BloodPressurePatientCategorySearchTest, USCoreV501::BloodPressurePatientCategoryStatusSearchTest, USCoreV501::BloodPressurePatientCodeDateSearchTest, USCoreV501::BloodPressurePatientCodeSearchTest, USCoreV501::BloodPressureProvenanceRevincludeSearchTest, USCoreV501::BmiPatientCategoryDateSearchTest, USCoreV501::BmiPatientCategorySearchTest, USCoreV501::BmiPatientCategoryStatusSearchTest, USCoreV501::BmiPatientCodeDateSearchTest, USCoreV501::BmiPatientCodeSearchTest, USCoreV501::BmiProvenanceRevincludeSearchTest, USCoreV501::BodyHeightPatientCategoryDateSearchTest, USCoreV501::BodyHeightPatientCategorySearchTest, USCoreV501::BodyHeightPatientCategoryStatusSearchTest, USCoreV501::BodyHeightPatientCodeDateSearchTest, USCoreV501::BodyHeightPatientCodeSearchTest, USCoreV501::BodyHeightProvenanceRevincludeSearchTest, USCoreV501::BodyTemperaturePatientCategoryDateSearchTest, USCoreV501::BodyTemperaturePatientCategorySearchTest, USCoreV501::BodyTemperaturePatientCategoryStatusSearchTest, USCoreV501::BodyTemperaturePatientCodeDateSearchTest, USCoreV501::BodyTemperaturePatientCodeSearchTest, USCoreV501::BodyTemperatureProvenanceRevincludeSearchTest, USCoreV501::BodyWeightPatientCategoryDateSearchTest, USCoreV501::BodyWeightPatientCategorySearchTest, USCoreV501::BodyWeightPatientCategoryStatusSearchTest, USCoreV501::BodyWeightPatientCodeDateSearchTest, USCoreV501::BodyWeightPatientCodeSearchTest, USCoreV501::BodyWeightProvenanceRevincludeSearchTest, USCoreV501::CarePlanPatientCategoryDateSearchTest, USCoreV501::CarePlanPatientCategorySearchTest, USCoreV501::CarePlanPatientCategoryStatusDateSearchTest, USCoreV501::CarePlanPatientCategoryStatusSearchTest, USCoreV501::CarePlanProvenanceRevincludeSearchTest, USCoreV501::CareTeamPatientRoleSearchTest, USCoreV501::CareTeamPatientStatusSearchTest, USCoreV501::CareTeamProvenanceRevincludeSearchTest, USCoreV501::CareTeamRoleSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientAbatementDateSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientAssertedDateSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientCategoryEncounterSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientCategorySearchTest, USCoreV501::ConditionEncounterDiagnosisPatientClinicalStatusSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientCodeSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientOnsetDateSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientRecordedDateSearchTest, USCoreV501::ConditionEncounterDiagnosisPatientSearchTest, USCoreV501::ConditionEncounterDiagnosisProvenanceRevincludeSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientAbatementDateSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientAssertedDateSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientCategoryEncounterSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientCategorySearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientClinicalStatusSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientCodeSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientOnsetDateSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientRecordedDateSearchTest, USCoreV501::ConditionProblemsHealthConcernsPatientSearchTest, USCoreV501::ConditionProblemsHealthConcernsProvenanceRevincludeSearchTest, USCoreV501::DevicePatientSearchTest, USCoreV501::DevicePatientTypeSearchTest, USCoreV501::DeviceProvenanceRevincludeSearchTest, USCoreV501::DiagnosticReportLabPatientCategoryDateSearchTest, USCoreV501::DiagnosticReportLabPatientCategorySearchTest, USCoreV501::DiagnosticReportLabPatientCodeDateSearchTest, USCoreV501::DiagnosticReportLabPatientCodeSearchTest, USCoreV501::DiagnosticReportLabPatientSearchTest, USCoreV501::DiagnosticReportLabPatientStatusSearchTest, USCoreV501::DiagnosticReportLabProvenanceRevincludeSearchTest, USCoreV501::DiagnosticReportNotePatientCategoryDateSearchTest, USCoreV501::DiagnosticReportNotePatientCategorySearchTest, USCoreV501::DiagnosticReportNotePatientCodeDateSearchTest, USCoreV501::DiagnosticReportNotePatientCodeSearchTest, USCoreV501::DiagnosticReportNotePatientSearchTest, USCoreV501::DiagnosticReportNotePatientStatusSearchTest, USCoreV501::DiagnosticReportNoteProvenanceRevincludeSearchTest, USCoreV501::DocumentReferenceIdSearchTest, USCoreV501::DocumentReferencePatientCategoryDateSearchTest, USCoreV501::DocumentReferencePatientCategorySearchTest, USCoreV501::DocumentReferencePatientSearchTest, USCoreV501::DocumentReferencePatientStatusSearchTest, USCoreV501::DocumentReferencePatientTypePeriodSearchTest, USCoreV501::DocumentReferencePatientTypeSearchTest, USCoreV501::DocumentReferenceProvenanceRevincludeSearchTest, USCoreV501::EncounterClassPatientSearchTest, USCoreV501::EncounterDatePatientSearchTest, USCoreV501::EncounterIdSearchTest, USCoreV501::EncounterIdentifierSearchTest, USCoreV501::EncounterPatientDischargeDispositionSearchTest, USCoreV501::EncounterPatientLocationSearchTest, USCoreV501::EncounterPatientSearchTest, USCoreV501::EncounterPatientStatusSearchTest, USCoreV501::EncounterPatientTypeSearchTest, USCoreV501::EncounterProvenanceRevincludeSearchTest, USCoreV501::GoalPatientDescriptionSearchTest, USCoreV501::GoalPatientLifecycleStatusSearchTest, USCoreV501::GoalPatientSearchTest, USCoreV501::GoalPatientTargetDateSearchTest, USCoreV501::GoalProvenanceRevincludeSearchTest, USCoreV501::HeadCircumferencePatientCategoryDateSearchTest, USCoreV501::HeadCircumferencePatientCategorySearchTest, USCoreV501::HeadCircumferencePatientCategoryStatusSearchTest, USCoreV501::HeadCircumferencePatientCodeDateSearchTest, USCoreV501::HeadCircumferencePatientCodeSearchTest, USCoreV501::HeadCircumferencePercentilePatientCategoryDateSearchTest, USCoreV501::HeadCircumferencePercentilePatientCategorySearchTest, USCoreV501::HeadCircumferencePercentilePatientCategoryStatusSearchTest, USCoreV501::HeadCircumferencePercentilePatientCodeDateSearchTest, USCoreV501::HeadCircumferencePercentilePatientCodeSearchTest, USCoreV501::HeadCircumferencePercentileProvenanceRevincludeSearchTest, USCoreV501::HeadCircumferenceProvenanceRevincludeSearchTest, USCoreV501::HeartRatePatientCategoryDateSearchTest, USCoreV501::HeartRatePatientCategorySearchTest, USCoreV501::HeartRatePatientCategoryStatusSearchTest, USCoreV501::HeartRatePatientCodeDateSearchTest, USCoreV501::HeartRatePatientCodeSearchTest, USCoreV501::HeartRateProvenanceRevincludeSearchTest, USCoreV501::ImmunizationPatientDateSearchTest, USCoreV501::ImmunizationPatientSearchTest, USCoreV501::ImmunizationPatientStatusSearchTest, USCoreV501::ImmunizationProvenanceRevincludeSearchTest, USCoreV501::MedicationRequestPatientIntentAuthoredonSearchTest, USCoreV501::MedicationRequestPatientIntentEncounterSearchTest, USCoreV501::MedicationRequestPatientIntentSearchTest, USCoreV501::MedicationRequestPatientIntentStatusSearchTest, USCoreV501::MedicationRequestProvenanceRevincludeSearchTest, USCoreV501::ObservationClinicalTestPatientCategoryDateSearchTest, USCoreV501::ObservationClinicalTestPatientCategorySearchTest, USCoreV501::ObservationClinicalTestPatientCategoryStatusSearchTest, USCoreV501::ObservationClinicalTestPatientCodeDateSearchTest, USCoreV501::ObservationClinicalTestPatientCodeSearchTest, USCoreV501::ObservationClinicalTestProvenanceRevincludeSearchTest, USCoreV501::ObservationImagingPatientCategoryDateSearchTest, USCoreV501::ObservationImagingPatientCategorySearchTest, USCoreV501::ObservationImagingPatientCategoryStatusSearchTest, USCoreV501::ObservationImagingPatientCodeDateSearchTest, USCoreV501::ObservationImagingPatientCodeSearchTest, USCoreV501::ObservationImagingProvenanceRevincludeSearchTest, USCoreV501::ObservationLabPatientCategoryDateSearchTest, USCoreV501::ObservationLabPatientCategorySearchTest, USCoreV501::ObservationLabPatientCategoryStatusSearchTest, USCoreV501::ObservationLabPatientCodeDateSearchTest, USCoreV501::ObservationLabPatientCodeSearchTest, USCoreV501::ObservationLabProvenanceRevincludeSearchTest, USCoreV501::ObservationSdohAssessmentPatientCategoryDateSearchTest, USCoreV501::ObservationSdohAssessmentPatientCategorySearchTest, USCoreV501::ObservationSdohAssessmentPatientCategoryStatusSearchTest, USCoreV501::ObservationSdohAssessmentPatientCodeDateSearchTest, USCoreV501::ObservationSdohAssessmentPatientCodeSearchTest, USCoreV501::ObservationSdohAssessmentProvenanceRevincludeSearchTest, USCoreV501::ObservationSexualOrientationPatientCategoryDateSearchTest, USCoreV501::ObservationSexualOrientationPatientCategorySearchTest, USCoreV501::ObservationSexualOrientationPatientCategoryStatusSearchTest, USCoreV501::ObservationSexualOrientationPatientCodeDateSearchTest, USCoreV501::ObservationSexualOrientationPatientCodeSearchTest, USCoreV501::ObservationSexualOrientationProvenanceRevincludeSearchTest, USCoreV501::ObservationSocialHistoryPatientCategoryDateSearchTest, USCoreV501::ObservationSocialHistoryPatientCategorySearchTest, USCoreV501::ObservationSocialHistoryPatientCategoryStatusSearchTest, USCoreV501::ObservationSocialHistoryPatientCodeDateSearchTest, USCoreV501::ObservationSocialHistoryPatientCodeSearchTest, USCoreV501::ObservationSocialHistoryProvenanceRevincludeSearchTest, USCoreV501::OrganizationAddressSearchTest, USCoreV501::OrganizationNameSearchTest, USCoreV501::PatientBirthdateFamilySearchTest, USCoreV501::PatientBirthdateNameSearchTest, USCoreV501::PatientFamilyGenderSearchTest, USCoreV501::PatientGenderNameSearchTest, USCoreV501::PatientIdSearchTest, USCoreV501::PatientIdentifierSearchTest, USCoreV501::PatientNameSearchTest, USCoreV501::PatientProvenanceRevincludeSearchTest, USCoreV501::PediatricBmiForAgePatientCategoryDateSearchTest, USCoreV501::PediatricBmiForAgePatientCategorySearchTest, USCoreV501::PediatricBmiForAgePatientCategoryStatusSearchTest, USCoreV501::PediatricBmiForAgePatientCodeDateSearchTest, USCoreV501::PediatricBmiForAgePatientCodeSearchTest, USCoreV501::PediatricBmiForAgeProvenanceRevincludeSearchTest, USCoreV501::PediatricWeightForHeightPatientCategoryDateSearchTest, USCoreV501::PediatricWeightForHeightPatientCategorySearchTest, USCoreV501::PediatricWeightForHeightPatientCategoryStatusSearchTest, USCoreV501::PediatricWeightForHeightPatientCodeDateSearchTest, USCoreV501::PediatricWeightForHeightPatientCodeSearchTest, USCoreV501::PediatricWeightForHeightProvenanceRevincludeSearchTest, USCoreV501::PractitionerIdSearchTest, USCoreV501::PractitionerIdentifierSearchTest, USCoreV501::PractitionerNameSearchTest, USCoreV501::PractitionerRolePractitionerSearchTest, USCoreV501::PractitionerRoleSpecialtySearchTest, USCoreV501::ProcedurePatientCodeDateSearchTest, USCoreV501::ProcedurePatientDateSearchTest, USCoreV501::ProcedurePatientSearchTest, USCoreV501::ProcedurePatientStatusSearchTest, USCoreV501::ProcedureProvenanceRevincludeSearchTest, USCoreV501::PulseOximetryPatientCategoryDateSearchTest, USCoreV501::PulseOximetryPatientCategorySearchTest, USCoreV501::PulseOximetryPatientCategoryStatusSearchTest, USCoreV501::PulseOximetryPatientCodeDateSearchTest, USCoreV501::PulseOximetryPatientCodeSearchTest, USCoreV501::PulseOximetryProvenanceRevincludeSearchTest, USCoreV501::QuestionnaireResponseIdSearchTest, USCoreV501::QuestionnaireResponsePatientAuthoredSearchTest, USCoreV501::QuestionnaireResponsePatientQuestionnaireSearchTest, USCoreV501::QuestionnaireResponsePatientSearchTest, USCoreV501::QuestionnaireResponsePatientStatusSearchTest, USCoreV501::QuestionnaireResponsePatientTagAuthoredSearchTest, USCoreV501::QuestionnaireResponsePatientTagSearchTest, USCoreV501::QuestionnaireResponseProvenanceRevincludeSearchTest, USCoreV501::RelatedPersonIdSearchTest, USCoreV501::RelatedPersonPatientSearchTest, USCoreV501::RelatedPersonProvenanceRevincludeSearchTest, USCoreV501::RespiratoryRatePatientCategoryDateSearchTest, USCoreV501::RespiratoryRatePatientCategorySearchTest, USCoreV501::RespiratoryRatePatientCategoryStatusSearchTest, USCoreV501::RespiratoryRatePatientCodeDateSearchTest, USCoreV501::RespiratoryRatePatientCodeSearchTest, USCoreV501::RespiratoryRateProvenanceRevincludeSearchTest, USCoreV501::ServiceRequestIdSearchTest, USCoreV501::ServiceRequestPatientCategoryAuthoredSearchTest, USCoreV501::ServiceRequestPatientCategorySearchTest, USCoreV501::ServiceRequestPatientCodeAuthoredSearchTest, USCoreV501::ServiceRequestPatientCodeSearchTest, USCoreV501::ServiceRequestPatientSearchTest, USCoreV501::ServiceRequestPatientStatusSearchTest, USCoreV501::ServiceRequestProvenanceRevincludeSearchTest, USCoreV501::SmokingstatusPatientCategoryDateSearchTest, USCoreV501::SmokingstatusPatientCategorySearchTest, USCoreV501::SmokingstatusPatientCategoryStatusSearchTest, USCoreV501::SmokingstatusPatientCodeDateSearchTest, USCoreV501::SmokingstatusPatientCodeSearchTest, USCoreV501::SmokingstatusProvenanceRevincludeSearchTest, USCoreV610::AllergyIntolerancePatientClinicalStatusSearchTest, USCoreV610::AllergyIntolerancePatientSearchTest, USCoreV610::AllergyIntoleranceProvenanceRevincludeSearchTest, USCoreV610::BloodPressurePatientCategoryDateSearchTest, USCoreV610::BloodPressurePatientCategorySearchTest, USCoreV610::BloodPressurePatientCategoryStatusSearchTest, USCoreV610::BloodPressurePatientCodeDateSearchTest, USCoreV610::BloodPressurePatientCodeSearchTest, USCoreV610::BloodPressureProvenanceRevincludeSearchTest, USCoreV610::BmiPatientCategoryDateSearchTest, USCoreV610::BmiPatientCategorySearchTest, USCoreV610::BmiPatientCategoryStatusSearchTest, USCoreV610::BmiPatientCodeDateSearchTest, USCoreV610::BmiPatientCodeSearchTest, USCoreV610::BmiProvenanceRevincludeSearchTest, USCoreV610::BodyHeightPatientCategoryDateSearchTest, USCoreV610::BodyHeightPatientCategorySearchTest, USCoreV610::BodyHeightPatientCategoryStatusSearchTest, USCoreV610::BodyHeightPatientCodeDateSearchTest, USCoreV610::BodyHeightPatientCodeSearchTest, USCoreV610::BodyHeightProvenanceRevincludeSearchTest, USCoreV610::BodyTemperaturePatientCategoryDateSearchTest, USCoreV610::BodyTemperaturePatientCategorySearchTest, USCoreV610::BodyTemperaturePatientCategoryStatusSearchTest, USCoreV610::BodyTemperaturePatientCodeDateSearchTest, USCoreV610::BodyTemperaturePatientCodeSearchTest, USCoreV610::BodyTemperatureProvenanceRevincludeSearchTest, USCoreV610::BodyWeightPatientCategoryDateSearchTest, USCoreV610::BodyWeightPatientCategorySearchTest, USCoreV610::BodyWeightPatientCategoryStatusSearchTest, USCoreV610::BodyWeightPatientCodeDateSearchTest, USCoreV610::BodyWeightPatientCodeSearchTest, USCoreV610::BodyWeightProvenanceRevincludeSearchTest, USCoreV610::CarePlanPatientCategoryDateSearchTest, USCoreV610::CarePlanPatientCategorySearchTest, USCoreV610::CarePlanPatientCategoryStatusDateSearchTest, USCoreV610::CarePlanPatientCategoryStatusSearchTest, USCoreV610::CarePlanProvenanceRevincludeSearchTest, USCoreV610::CareTeamPatientRoleSearchTest, USCoreV610::CareTeamPatientStatusSearchTest, USCoreV610::CareTeamProvenanceRevincludeSearchTest, USCoreV610::CareTeamRoleSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientAbatementDateSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientAssertedDateSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientCategoryClinicalStatusSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientCategoryEncounterSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientCategorySearchTest, USCoreV610::ConditionEncounterDiagnosisPatientClinicalStatusSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientCodeSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientOnsetDateSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientRecordedDateSearchTest, USCoreV610::ConditionEncounterDiagnosisPatientSearchTest, USCoreV610::ConditionEncounterDiagnosisProvenanceRevincludeSearchTest, USCoreV610::ConditionPatientAbatementDateGranularScopeSearchTest, USCoreV610::ConditionPatientAssertedDateGranularScopeSearchTest, USCoreV610::ConditionPatientCategoryClinicalStatusGranularScopeSearchTest, USCoreV610::ConditionPatientCategoryEncounterGranularScopeSearchTest, USCoreV610::ConditionPatientCategoryGranularScopeSearchTest, USCoreV610::ConditionPatientClinicalStatusGranularScopeSearchTest, USCoreV610::ConditionPatientCodeGranularScopeSearchTest, USCoreV610::ConditionPatientGranularScopeSearchTest, USCoreV610::ConditionPatientOnsetDateGranularScopeSearchTest, USCoreV610::ConditionPatientRecordedDateGranularScopeSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientAbatementDateSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientAssertedDateSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientCategoryClinicalStatusSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientCategoryEncounterSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientCategorySearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientClinicalStatusSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientCodeSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientOnsetDateSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientRecordedDateSearchTest, USCoreV610::ConditionProblemsHealthConcernsPatientSearchTest, USCoreV610::ConditionProblemsHealthConcernsProvenanceRevincludeSearchTest, USCoreV610::CoveragePatientSearchTest, USCoreV610::CoverageProvenanceRevincludeSearchTest, USCoreV610::DevicePatientSearchTest, USCoreV610::DevicePatientStatusSearchTest, USCoreV610::DevicePatientTypeSearchTest, USCoreV610::DeviceProvenanceRevincludeSearchTest, USCoreV610::DiagnosticReportLabPatientCategoryDateSearchTest, USCoreV610::DiagnosticReportLabPatientCategorySearchTest, USCoreV610::DiagnosticReportLabPatientCodeDateSearchTest, USCoreV610::DiagnosticReportLabPatientCodeSearchTest, USCoreV610::DiagnosticReportLabPatientSearchTest, USCoreV610::DiagnosticReportLabPatientStatusSearchTest, USCoreV610::DiagnosticReportLabProvenanceRevincludeSearchTest, USCoreV610::DiagnosticReportNotePatientCategoryDateSearchTest, USCoreV610::DiagnosticReportNotePatientCategorySearchTest, USCoreV610::DiagnosticReportNotePatientCodeDateSearchTest, USCoreV610::DiagnosticReportNotePatientCodeSearchTest, USCoreV610::DiagnosticReportNotePatientSearchTest, USCoreV610::DiagnosticReportNotePatientStatusSearchTest, USCoreV610::DiagnosticReportNoteProvenanceRevincludeSearchTest, USCoreV610::DocumentReferenceIdSearchTest, USCoreV610::DocumentReferencePatientCategoryDateSearchTest, USCoreV610::DocumentReferencePatientCategorySearchTest, USCoreV610::DocumentReferencePatientSearchTest, USCoreV610::DocumentReferencePatientStatusSearchTest, USCoreV610::DocumentReferencePatientTypePeriodSearchTest, USCoreV610::DocumentReferencePatientTypeSearchTest, USCoreV610::DocumentReferenceProvenanceRevincludeSearchTest, USCoreV610::EncounterClassPatientSearchTest, USCoreV610::EncounterDatePatientSearchTest, USCoreV610::EncounterIdSearchTest, USCoreV610::EncounterIdentifierSearchTest, USCoreV610::EncounterPatientDischargeDispositionSearchTest, USCoreV610::EncounterPatientLocationSearchTest, USCoreV610::EncounterPatientSearchTest, USCoreV610::EncounterPatientStatusSearchTest, USCoreV610::EncounterPatientTypeSearchTest, USCoreV610::EncounterProvenanceRevincludeSearchTest, USCoreV610::GoalPatientDescriptionSearchTest, USCoreV610::GoalPatientLifecycleStatusSearchTest, USCoreV610::GoalPatientSearchTest, USCoreV610::GoalPatientTargetDateSearchTest, USCoreV610::GoalProvenanceRevincludeSearchTest, USCoreV610::HeadCircumferencePatientCategoryDateSearchTest, USCoreV610::HeadCircumferencePatientCategorySearchTest, USCoreV610::HeadCircumferencePatientCategoryStatusSearchTest, USCoreV610::HeadCircumferencePatientCodeDateSearchTest, USCoreV610::HeadCircumferencePatientCodeSearchTest, USCoreV610::HeadCircumferencePercentilePatientCategoryDateSearchTest, USCoreV610::HeadCircumferencePercentilePatientCategorySearchTest, USCoreV610::HeadCircumferencePercentilePatientCategoryStatusSearchTest, USCoreV610::HeadCircumferencePercentilePatientCodeDateSearchTest, USCoreV610::HeadCircumferencePercentilePatientCodeSearchTest, USCoreV610::HeadCircumferencePercentileProvenanceRevincludeSearchTest, USCoreV610::HeadCircumferenceProvenanceRevincludeSearchTest, USCoreV610::HeartRatePatientCategoryDateSearchTest, USCoreV610::HeartRatePatientCategorySearchTest, USCoreV610::HeartRatePatientCategoryStatusSearchTest, USCoreV610::HeartRatePatientCodeDateSearchTest, USCoreV610::HeartRatePatientCodeSearchTest, USCoreV610::HeartRateProvenanceRevincludeSearchTest, USCoreV610::ImmunizationPatientDateSearchTest, USCoreV610::ImmunizationPatientSearchTest, USCoreV610::ImmunizationPatientStatusSearchTest, USCoreV610::ImmunizationProvenanceRevincludeSearchTest, USCoreV610::MedicationDispensePatientSearchTest, USCoreV610::MedicationDispensePatientStatusSearchTest, USCoreV610::MedicationDispensePatientStatusTypeSearchTest, USCoreV610::MedicationDispenseProvenanceRevincludeSearchTest, USCoreV610::MedicationRequestPatientIntentAuthoredonSearchTest, USCoreV610::MedicationRequestPatientIntentEncounterSearchTest, USCoreV610::MedicationRequestPatientIntentSearchTest, USCoreV610::MedicationRequestPatientIntentStatusSearchTest, USCoreV610::MedicationRequestProvenanceRevincludeSearchTest, USCoreV610::ObservationClinicalResultPatientCategoryDateSearchTest, USCoreV610::ObservationClinicalResultPatientCategorySearchTest, USCoreV610::ObservationClinicalResultPatientCategoryStatusSearchTest, USCoreV610::ObservationClinicalResultPatientCodeDateSearchTest, USCoreV610::ObservationClinicalResultPatientCodeSearchTest, USCoreV610::ObservationClinicalResultProvenanceRevincludeSearchTest, USCoreV610::ObservationLabPatientCategoryDateSearchTest, USCoreV610::ObservationLabPatientCategorySearchTest, USCoreV610::ObservationLabPatientCategoryStatusSearchTest, USCoreV610::ObservationLabPatientCodeDateSearchTest, USCoreV610::ObservationLabPatientCodeSearchTest, USCoreV610::ObservationLabProvenanceRevincludeSearchTest, USCoreV610::ObservationOccupationPatientCategoryDateSearchTest, USCoreV610::ObservationOccupationPatientCategorySearchTest, USCoreV610::ObservationOccupationPatientCategoryStatusSearchTest, USCoreV610::ObservationOccupationPatientCodeDateSearchTest, USCoreV610::ObservationOccupationPatientCodeSearchTest, USCoreV610::ObservationOccupationProvenanceRevincludeSearchTest, USCoreV610::ObservationPatientCategoryDateGranularScopeSearchTest, USCoreV610::ObservationPatientCategoryGranularScopeSearchTest, USCoreV610::ObservationPatientCategoryStatusGranularScopeSearchTest, USCoreV610::ObservationPatientCodeDateGranularScopeSearchTest, USCoreV610::ObservationPatientCodeGranularScopeSearchTest, USCoreV610::ObservationPregnancyintentPatientCategoryDateSearchTest, USCoreV610::ObservationPregnancyintentPatientCategorySearchTest, USCoreV610::ObservationPregnancyintentPatientCategoryStatusSearchTest, USCoreV610::ObservationPregnancyintentPatientCodeDateSearchTest, USCoreV610::ObservationPregnancyintentPatientCodeSearchTest, USCoreV610::ObservationPregnancyintentProvenanceRevincludeSearchTest, USCoreV610::ObservationPregnancystatusPatientCategoryDateSearchTest, USCoreV610::ObservationPregnancystatusPatientCategorySearchTest, USCoreV610::ObservationPregnancystatusPatientCategoryStatusSearchTest, USCoreV610::ObservationPregnancystatusPatientCodeDateSearchTest, USCoreV610::ObservationPregnancystatusPatientCodeSearchTest, USCoreV610::ObservationPregnancystatusProvenanceRevincludeSearchTest, USCoreV610::ObservationScreeningAssessmentPatientCategoryDateSearchTest, USCoreV610::ObservationScreeningAssessmentPatientCategorySearchTest, USCoreV610::ObservationScreeningAssessmentPatientCategoryStatusSearchTest, USCoreV610::ObservationScreeningAssessmentPatientCodeDateSearchTest, USCoreV610::ObservationScreeningAssessmentPatientCodeSearchTest, USCoreV610::ObservationScreeningAssessmentProvenanceRevincludeSearchTest, USCoreV610::ObservationSexualOrientationPatientCategoryDateSearchTest, USCoreV610::ObservationSexualOrientationPatientCategorySearchTest, USCoreV610::ObservationSexualOrientationPatientCategoryStatusSearchTest, USCoreV610::ObservationSexualOrientationPatientCodeDateSearchTest, USCoreV610::ObservationSexualOrientationPatientCodeSearchTest, USCoreV610::ObservationSexualOrientationProvenanceRevincludeSearchTest, USCoreV610::OrganizationAddressSearchTest, USCoreV610::OrganizationNameSearchTest, USCoreV610::PatientBirthdateFamilySearchTest, USCoreV610::PatientBirthdateNameSearchTest, USCoreV610::PatientDeathDateFamilySearchTest, USCoreV610::PatientFamilyGenderSearchTest, USCoreV610::PatientGenderNameSearchTest, USCoreV610::PatientIdSearchTest, USCoreV610::PatientIdentifierSearchTest, USCoreV610::PatientNameSearchTest, USCoreV610::PatientProvenanceRevincludeSearchTest, USCoreV610::PediatricBmiForAgePatientCategoryDateSearchTest, USCoreV610::PediatricBmiForAgePatientCategorySearchTest, USCoreV610::PediatricBmiForAgePatientCategoryStatusSearchTest, USCoreV610::PediatricBmiForAgePatientCodeDateSearchTest, USCoreV610::PediatricBmiForAgePatientCodeSearchTest, USCoreV610::PediatricBmiForAgeProvenanceRevincludeSearchTest, USCoreV610::PediatricWeightForHeightPatientCategoryDateSearchTest, USCoreV610::PediatricWeightForHeightPatientCategorySearchTest, USCoreV610::PediatricWeightForHeightPatientCategoryStatusSearchTest, USCoreV610::PediatricWeightForHeightPatientCodeDateSearchTest, USCoreV610::PediatricWeightForHeightPatientCodeSearchTest, USCoreV610::PediatricWeightForHeightProvenanceRevincludeSearchTest, USCoreV610::PractitionerIdSearchTest, USCoreV610::PractitionerIdentifierSearchTest, USCoreV610::PractitionerNameSearchTest, USCoreV610::PractitionerRolePractitionerSearchTest, USCoreV610::PractitionerRoleSpecialtySearchTest, USCoreV610::ProcedurePatientCodeDateSearchTest, USCoreV610::ProcedurePatientDateSearchTest, USCoreV610::ProcedurePatientSearchTest, USCoreV610::ProcedurePatientStatusSearchTest, USCoreV610::ProcedureProvenanceRevincludeSearchTest, USCoreV610::PulseOximetryPatientCategoryDateSearchTest, USCoreV610::PulseOximetryPatientCategorySearchTest, USCoreV610::PulseOximetryPatientCategoryStatusSearchTest, USCoreV610::PulseOximetryPatientCodeDateSearchTest, USCoreV610::PulseOximetryPatientCodeSearchTest, USCoreV610::PulseOximetryProvenanceRevincludeSearchTest, USCoreV610::QuestionnaireResponseIdSearchTest, USCoreV610::QuestionnaireResponsePatientAuthoredSearchTest, USCoreV610::QuestionnaireResponsePatientQuestionnaireSearchTest, USCoreV610::QuestionnaireResponsePatientSearchTest, USCoreV610::QuestionnaireResponsePatientStatusSearchTest, USCoreV610::QuestionnaireResponseProvenanceRevincludeSearchTest, USCoreV610::RelatedPersonIdSearchTest, USCoreV610::RelatedPersonNameSearchTest, USCoreV610::RelatedPersonPatientNameSearchTest, USCoreV610::RelatedPersonPatientSearchTest, USCoreV610::RelatedPersonProvenanceRevincludeSearchTest, USCoreV610::RespiratoryRatePatientCategoryDateSearchTest, USCoreV610::RespiratoryRatePatientCategorySearchTest, USCoreV610::RespiratoryRatePatientCategoryStatusSearchTest, USCoreV610::RespiratoryRatePatientCodeDateSearchTest, USCoreV610::RespiratoryRatePatientCodeSearchTest, USCoreV610::RespiratoryRateProvenanceRevincludeSearchTest, USCoreV610::ServiceRequestIdSearchTest, USCoreV610::ServiceRequestPatientCategoryAuthoredSearchTest, USCoreV610::ServiceRequestPatientCategorySearchTest, USCoreV610::ServiceRequestPatientCodeAuthoredSearchTest, USCoreV610::ServiceRequestPatientCodeSearchTest, USCoreV610::ServiceRequestPatientSearchTest, USCoreV610::ServiceRequestPatientStatusSearchTest, USCoreV610::ServiceRequestProvenanceRevincludeSearchTest, USCoreV610::SimpleObservationPatientCategoryDateSearchTest, USCoreV610::SimpleObservationPatientCategorySearchTest, USCoreV610::SimpleObservationPatientCategoryStatusSearchTest, USCoreV610::SimpleObservationPatientCodeDateSearchTest, USCoreV610::SimpleObservationPatientCodeSearchTest, USCoreV610::SimpleObservationProvenanceRevincludeSearchTest, USCoreV610::SmokingstatusPatientCategoryDateSearchTest, USCoreV610::SmokingstatusPatientCategorySearchTest, USCoreV610::SmokingstatusPatientCategoryStatusSearchTest, USCoreV610::SmokingstatusPatientCodeDateSearchTest, USCoreV610::SmokingstatusPatientCodeSearchTest, USCoreV610::SmokingstatusProvenanceRevincludeSearchTest, USCoreV610::SpecimenIdSearchTest, USCoreV610::SpecimenPatientSearchTest, USCoreV700::AllergyIntolerancePatientClinicalStatusSearchTest, USCoreV700::AllergyIntolerancePatientSearchTest, USCoreV700::AllergyIntoleranceProvenanceRevincludeSearchTest, USCoreV700::AverageBloodPressurePatientCategoryDateSearchTest, USCoreV700::AverageBloodPressurePatientCategoryLastupdatedSearchTest, USCoreV700::AverageBloodPressurePatientCategorySearchTest, USCoreV700::AverageBloodPressurePatientCategoryStatusSearchTest, USCoreV700::AverageBloodPressurePatientCodeDateSearchTest, USCoreV700::AverageBloodPressurePatientCodeSearchTest, USCoreV700::AverageBloodPressureProvenanceRevincludeSearchTest, USCoreV700::BloodPressurePatientCategoryDateSearchTest, USCoreV700::BloodPressurePatientCategoryLastupdatedSearchTest, USCoreV700::BloodPressurePatientCategorySearchTest, USCoreV700::BloodPressurePatientCategoryStatusSearchTest, USCoreV700::BloodPressurePatientCodeDateSearchTest, USCoreV700::BloodPressurePatientCodeSearchTest, USCoreV700::BloodPressureProvenanceRevincludeSearchTest, USCoreV700::BmiPatientCategoryDateSearchTest, USCoreV700::BmiPatientCategoryLastupdatedSearchTest, USCoreV700::BmiPatientCategorySearchTest, USCoreV700::BmiPatientCategoryStatusSearchTest, USCoreV700::BmiPatientCodeDateSearchTest, USCoreV700::BmiPatientCodeSearchTest, USCoreV700::BmiProvenanceRevincludeSearchTest, USCoreV700::BodyHeightPatientCategoryDateSearchTest, USCoreV700::BodyHeightPatientCategoryLastupdatedSearchTest, USCoreV700::BodyHeightPatientCategorySearchTest, USCoreV700::BodyHeightPatientCategoryStatusSearchTest, USCoreV700::BodyHeightPatientCodeDateSearchTest, USCoreV700::BodyHeightPatientCodeSearchTest, USCoreV700::BodyHeightProvenanceRevincludeSearchTest, USCoreV700::BodyTemperaturePatientCategoryDateSearchTest, USCoreV700::BodyTemperaturePatientCategoryLastupdatedSearchTest, USCoreV700::BodyTemperaturePatientCategorySearchTest, USCoreV700::BodyTemperaturePatientCategoryStatusSearchTest, USCoreV700::BodyTemperaturePatientCodeDateSearchTest, USCoreV700::BodyTemperaturePatientCodeSearchTest, USCoreV700::BodyTemperatureProvenanceRevincludeSearchTest, USCoreV700::BodyWeightPatientCategoryDateSearchTest, USCoreV700::BodyWeightPatientCategoryLastupdatedSearchTest, USCoreV700::BodyWeightPatientCategorySearchTest, USCoreV700::BodyWeightPatientCategoryStatusSearchTest, USCoreV700::BodyWeightPatientCodeDateSearchTest, USCoreV700::BodyWeightPatientCodeSearchTest, USCoreV700::BodyWeightProvenanceRevincludeSearchTest, USCoreV700::CareExperiencePreferencePatientCategoryDateSearchTest, USCoreV700::CareExperiencePreferencePatientCategoryLastupdatedSearchTest, USCoreV700::CareExperiencePreferencePatientCategorySearchTest, USCoreV700::CareExperiencePreferencePatientCategoryStatusSearchTest, USCoreV700::CareExperiencePreferencePatientCodeDateSearchTest, USCoreV700::CareExperiencePreferencePatientCodeSearchTest, USCoreV700::CareExperiencePreferenceProvenanceRevincludeSearchTest, USCoreV700::CarePlanPatientCategoryDateSearchTest, USCoreV700::CarePlanPatientCategorySearchTest, USCoreV700::CarePlanPatientCategoryStatusDateSearchTest, USCoreV700::CarePlanPatientCategoryStatusSearchTest, USCoreV700::CarePlanProvenanceRevincludeSearchTest, USCoreV700::CareTeamPatientRoleSearchTest, USCoreV700::CareTeamPatientStatusSearchTest, USCoreV700::CareTeamProvenanceRevincludeSearchTest, USCoreV700::CareTeamRoleSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientAbatementDateSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientAssertedDateSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientCategoryClinicalStatusSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientCategoryEncounterSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientCategorySearchTest, USCoreV700::ConditionEncounterDiagnosisPatientClinicalStatusSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientCodeSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientLastupdatedSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientOnsetDateSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientRecordedDateSearchTest, USCoreV700::ConditionEncounterDiagnosisPatientSearchTest, USCoreV700::ConditionEncounterDiagnosisProvenanceRevincludeSearchTest, USCoreV700::ConditionPatientAbatementDateGranularScopeSearchTest, USCoreV700::ConditionPatientAssertedDateGranularScopeSearchTest, USCoreV700::ConditionPatientCategoryClinicalStatusGranularScopeSearchTest, USCoreV700::ConditionPatientCategoryEncounterGranularScopeSearchTest, USCoreV700::ConditionPatientCategoryGranularScopeSearchTest, USCoreV700::ConditionPatientClinicalStatusGranularScopeSearchTest, USCoreV700::ConditionPatientCodeGranularScopeSearchTest, USCoreV700::ConditionPatientGranularScopeSearchTest, USCoreV700::ConditionPatientLastupdatedGranularScopeSearchTest, USCoreV700::ConditionPatientOnsetDateGranularScopeSearchTest, USCoreV700::ConditionPatientRecordedDateGranularScopeSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientAbatementDateSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientAssertedDateSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientCategoryClinicalStatusSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientCategoryEncounterSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientCategorySearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientClinicalStatusSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientCodeSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientLastupdatedSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientOnsetDateSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientRecordedDateSearchTest, USCoreV700::ConditionProblemsHealthConcernsPatientSearchTest, USCoreV700::ConditionProblemsHealthConcernsProvenanceRevincludeSearchTest, USCoreV700::CoveragePatientSearchTest, USCoreV700::CoverageProvenanceRevincludeSearchTest, USCoreV700::DevicePatientSearchTest, USCoreV700::DevicePatientStatusSearchTest, USCoreV700::DevicePatientTypeSearchTest, USCoreV700::DeviceProvenanceRevincludeSearchTest, USCoreV700::DiagnosticReportLabPatientCategoryDateSearchTest, USCoreV700::DiagnosticReportLabPatientCategoryLastupdatedSearchTest, USCoreV700::DiagnosticReportLabPatientCategorySearchTest, USCoreV700::DiagnosticReportLabPatientCodeDateSearchTest, USCoreV700::DiagnosticReportLabPatientCodeSearchTest, USCoreV700::DiagnosticReportLabPatientSearchTest, USCoreV700::DiagnosticReportLabPatientStatusSearchTest, USCoreV700::DiagnosticReportLabProvenanceRevincludeSearchTest, USCoreV700::DiagnosticReportNotePatientCategoryDateSearchTest, USCoreV700::DiagnosticReportNotePatientCategoryLastupdatedSearchTest, USCoreV700::DiagnosticReportNotePatientCategorySearchTest, USCoreV700::DiagnosticReportNotePatientCodeDateSearchTest, USCoreV700::DiagnosticReportNotePatientCodeSearchTest, USCoreV700::DiagnosticReportNotePatientSearchTest, USCoreV700::DiagnosticReportNotePatientStatusSearchTest, USCoreV700::DiagnosticReportNoteProvenanceRevincludeSearchTest, USCoreV700::DocumentReferenceIdSearchTest, USCoreV700::DocumentReferencePatientCategoryDateSearchTest, USCoreV700::DocumentReferencePatientCategorySearchTest, USCoreV700::DocumentReferencePatientSearchTest, USCoreV700::DocumentReferencePatientStatusSearchTest, USCoreV700::DocumentReferencePatientTypePeriodSearchTest, USCoreV700::DocumentReferencePatientTypeSearchTest, USCoreV700::DocumentReferenceProvenanceRevincludeSearchTest, USCoreV700::EncounterClassPatientSearchTest, USCoreV700::EncounterDatePatientSearchTest, USCoreV700::EncounterIdSearchTest, USCoreV700::EncounterIdentifierSearchTest, USCoreV700::EncounterPatientDischargeDispositionSearchTest, USCoreV700::EncounterPatientLastupdatedSearchTest, USCoreV700::EncounterPatientLocationSearchTest, USCoreV700::EncounterPatientSearchTest, USCoreV700::EncounterPatientStatusSearchTest, USCoreV700::EncounterPatientTypeSearchTest, USCoreV700::EncounterProvenanceRevincludeSearchTest, USCoreV700::GoalPatientDescriptionSearchTest, USCoreV700::GoalPatientLifecycleStatusSearchTest, USCoreV700::GoalPatientSearchTest, USCoreV700::GoalPatientTargetDateSearchTest, USCoreV700::GoalProvenanceRevincludeSearchTest, USCoreV700::HeadCircumferencePatientCategoryDateSearchTest, USCoreV700::HeadCircumferencePatientCategoryLastupdatedSearchTest, USCoreV700::HeadCircumferencePatientCategorySearchTest, USCoreV700::HeadCircumferencePatientCategoryStatusSearchTest, USCoreV700::HeadCircumferencePatientCodeDateSearchTest, USCoreV700::HeadCircumferencePatientCodeSearchTest, USCoreV700::HeadCircumferencePercentilePatientCategoryDateSearchTest, USCoreV700::HeadCircumferencePercentilePatientCategoryLastupdatedSearchTest, USCoreV700::HeadCircumferencePercentilePatientCategorySearchTest, USCoreV700::HeadCircumferencePercentilePatientCategoryStatusSearchTest, USCoreV700::HeadCircumferencePercentilePatientCodeDateSearchTest, USCoreV700::HeadCircumferencePercentilePatientCodeSearchTest, USCoreV700::HeadCircumferencePercentileProvenanceRevincludeSearchTest, USCoreV700::HeadCircumferenceProvenanceRevincludeSearchTest, USCoreV700::HeartRatePatientCategoryDateSearchTest, USCoreV700::HeartRatePatientCategoryLastupdatedSearchTest, USCoreV700::HeartRatePatientCategorySearchTest, USCoreV700::HeartRatePatientCategoryStatusSearchTest, USCoreV700::HeartRatePatientCodeDateSearchTest, USCoreV700::HeartRatePatientCodeSearchTest, USCoreV700::HeartRateProvenanceRevincludeSearchTest, USCoreV700::ImmunizationPatientDateSearchTest, USCoreV700::ImmunizationPatientSearchTest, USCoreV700::ImmunizationPatientStatusSearchTest, USCoreV700::ImmunizationProvenanceRevincludeSearchTest, USCoreV700::LocationAddressCitySearchTest, USCoreV700::LocationAddressPostalcodeSearchTest, USCoreV700::LocationAddressSearchTest, USCoreV700::LocationAddressStateSearchTest, USCoreV700::LocationNameSearchTest, USCoreV700::MedicationDispensePatientSearchTest, USCoreV700::MedicationDispensePatientStatusSearchTest, USCoreV700::MedicationDispensePatientStatusTypeSearchTest, USCoreV700::MedicationDispenseProvenanceRevincludeSearchTest, USCoreV700::MedicationRequestPatientIntentAuthoredonSearchTest, USCoreV700::MedicationRequestPatientIntentEncounterSearchTest, USCoreV700::MedicationRequestPatientIntentSearchTest, USCoreV700::MedicationRequestPatientIntentStatusSearchTest, USCoreV700::MedicationRequestProvenanceRevincludeSearchTest, USCoreV700::ObservationClinicalResultPatientCategoryDateSearchTest, USCoreV700::ObservationClinicalResultPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationClinicalResultPatientCategorySearchTest, USCoreV700::ObservationClinicalResultPatientCategoryStatusSearchTest, USCoreV700::ObservationClinicalResultPatientCodeDateSearchTest, USCoreV700::ObservationClinicalResultPatientCodeSearchTest, USCoreV700::ObservationClinicalResultProvenanceRevincludeSearchTest, USCoreV700::ObservationLabPatientCategoryDateSearchTest, USCoreV700::ObservationLabPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationLabPatientCategorySearchTest, USCoreV700::ObservationLabPatientCategoryStatusSearchTest, USCoreV700::ObservationLabPatientCodeDateSearchTest, USCoreV700::ObservationLabPatientCodeSearchTest, USCoreV700::ObservationLabProvenanceRevincludeSearchTest, USCoreV700::ObservationOccupationPatientCategoryDateSearchTest, USCoreV700::ObservationOccupationPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationOccupationPatientCategorySearchTest, USCoreV700::ObservationOccupationPatientCategoryStatusSearchTest, USCoreV700::ObservationOccupationPatientCodeDateSearchTest, USCoreV700::ObservationOccupationPatientCodeSearchTest, USCoreV700::ObservationOccupationProvenanceRevincludeSearchTest, USCoreV700::ObservationPatientCategoryDateGranularScopeSearchTest, USCoreV700::ObservationPatientCategoryGranularScopeSearchTest, USCoreV700::ObservationPatientCategoryLastupdatedGranularScopeSearchTest, USCoreV700::ObservationPatientCategoryStatusGranularScopeSearchTest, USCoreV700::ObservationPatientCodeDateGranularScopeSearchTest, USCoreV700::ObservationPatientCodeGranularScopeSearchTest, USCoreV700::ObservationPregnancyintentPatientCategoryDateSearchTest, USCoreV700::ObservationPregnancyintentPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationPregnancyintentPatientCategorySearchTest, USCoreV700::ObservationPregnancyintentPatientCategoryStatusSearchTest, USCoreV700::ObservationPregnancyintentPatientCodeDateSearchTest, USCoreV700::ObservationPregnancyintentPatientCodeSearchTest, USCoreV700::ObservationPregnancyintentProvenanceRevincludeSearchTest, USCoreV700::ObservationPregnancystatusPatientCategoryDateSearchTest, USCoreV700::ObservationPregnancystatusPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationPregnancystatusPatientCategorySearchTest, USCoreV700::ObservationPregnancystatusPatientCategoryStatusSearchTest, USCoreV700::ObservationPregnancystatusPatientCodeDateSearchTest, USCoreV700::ObservationPregnancystatusPatientCodeSearchTest, USCoreV700::ObservationPregnancystatusProvenanceRevincludeSearchTest, USCoreV700::ObservationScreeningAssessmentPatientCategoryDateSearchTest, USCoreV700::ObservationScreeningAssessmentPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationScreeningAssessmentPatientCategorySearchTest, USCoreV700::ObservationScreeningAssessmentPatientCategoryStatusSearchTest, USCoreV700::ObservationScreeningAssessmentPatientCodeDateSearchTest, USCoreV700::ObservationScreeningAssessmentPatientCodeSearchTest, USCoreV700::ObservationScreeningAssessmentProvenanceRevincludeSearchTest, USCoreV700::ObservationSexualOrientationPatientCategoryDateSearchTest, USCoreV700::ObservationSexualOrientationPatientCategoryLastupdatedSearchTest, USCoreV700::ObservationSexualOrientationPatientCategorySearchTest, USCoreV700::ObservationSexualOrientationPatientCategoryStatusSearchTest, USCoreV700::ObservationSexualOrientationPatientCodeDateSearchTest, USCoreV700::ObservationSexualOrientationPatientCodeSearchTest, USCoreV700::ObservationSexualOrientationProvenanceRevincludeSearchTest, USCoreV700::OrganizationAddressSearchTest, USCoreV700::OrganizationNameSearchTest, USCoreV700::PatientBirthdateFamilySearchTest, USCoreV700::PatientBirthdateNameSearchTest, USCoreV700::PatientDeathDateFamilySearchTest, USCoreV700::PatientFamilyGenderSearchTest, USCoreV700::PatientGenderNameSearchTest, USCoreV700::PatientIdSearchTest, USCoreV700::PatientIdentifierSearchTest, USCoreV700::PatientNameSearchTest, USCoreV700::PatientProvenanceRevincludeSearchTest, USCoreV700::PediatricBmiForAgePatientCategoryDateSearchTest, USCoreV700::PediatricBmiForAgePatientCategoryLastupdatedSearchTest, USCoreV700::PediatricBmiForAgePatientCategorySearchTest, USCoreV700::PediatricBmiForAgePatientCategoryStatusSearchTest, USCoreV700::PediatricBmiForAgePatientCodeDateSearchTest, USCoreV700::PediatricBmiForAgePatientCodeSearchTest, USCoreV700::PediatricBmiForAgeProvenanceRevincludeSearchTest, USCoreV700::PediatricWeightForHeightPatientCategoryDateSearchTest, USCoreV700::PediatricWeightForHeightPatientCategoryLastupdatedSearchTest, USCoreV700::PediatricWeightForHeightPatientCategorySearchTest, USCoreV700::PediatricWeightForHeightPatientCategoryStatusSearchTest, USCoreV700::PediatricWeightForHeightPatientCodeDateSearchTest, USCoreV700::PediatricWeightForHeightPatientCodeSearchTest, USCoreV700::PediatricWeightForHeightProvenanceRevincludeSearchTest, USCoreV700::PractitionerIdSearchTest, USCoreV700::PractitionerIdentifierSearchTest, USCoreV700::PractitionerNameSearchTest, USCoreV700::PractitionerRolePractitionerSearchTest, USCoreV700::PractitionerRoleSpecialtySearchTest, USCoreV700::ProcedurePatientCodeDateSearchTest, USCoreV700::ProcedurePatientDateSearchTest, USCoreV700::ProcedurePatientSearchTest, USCoreV700::ProcedurePatientStatusSearchTest, USCoreV700::ProcedureProvenanceRevincludeSearchTest, USCoreV700::PulseOximetryPatientCategoryDateSearchTest, USCoreV700::PulseOximetryPatientCategoryLastupdatedSearchTest, USCoreV700::PulseOximetryPatientCategorySearchTest, USCoreV700::PulseOximetryPatientCategoryStatusSearchTest, USCoreV700::PulseOximetryPatientCodeDateSearchTest, USCoreV700::PulseOximetryPatientCodeSearchTest, USCoreV700::PulseOximetryProvenanceRevincludeSearchTest, USCoreV700::QuestionnaireResponseIdSearchTest, USCoreV700::QuestionnaireResponsePatientAuthoredSearchTest, USCoreV700::QuestionnaireResponsePatientQuestionnaireSearchTest, USCoreV700::QuestionnaireResponsePatientSearchTest, USCoreV700::QuestionnaireResponsePatientStatusSearchTest, USCoreV700::QuestionnaireResponseProvenanceRevincludeSearchTest, USCoreV700::RelatedPersonIdSearchTest, USCoreV700::RelatedPersonNameSearchTest, USCoreV700::RelatedPersonPatientNameSearchTest, USCoreV700::RelatedPersonPatientSearchTest, USCoreV700::RelatedPersonProvenanceRevincludeSearchTest, USCoreV700::RespiratoryRatePatientCategoryDateSearchTest, USCoreV700::RespiratoryRatePatientCategoryLastupdatedSearchTest, USCoreV700::RespiratoryRatePatientCategorySearchTest, USCoreV700::RespiratoryRatePatientCategoryStatusSearchTest, USCoreV700::RespiratoryRatePatientCodeDateSearchTest, USCoreV700::RespiratoryRatePatientCodeSearchTest, USCoreV700::RespiratoryRateProvenanceRevincludeSearchTest, USCoreV700::ServiceRequestIdSearchTest, USCoreV700::ServiceRequestPatientCategoryAuthoredSearchTest, USCoreV700::ServiceRequestPatientCategorySearchTest, USCoreV700::ServiceRequestPatientCodeAuthoredSearchTest, USCoreV700::ServiceRequestPatientCodeSearchTest, USCoreV700::ServiceRequestPatientSearchTest, USCoreV700::ServiceRequestPatientStatusSearchTest, USCoreV700::ServiceRequestProvenanceRevincludeSearchTest, USCoreV700::SimpleObservationPatientCategoryDateSearchTest, USCoreV700::SimpleObservationPatientCategoryLastupdatedSearchTest, USCoreV700::SimpleObservationPatientCategorySearchTest, USCoreV700::SimpleObservationPatientCategoryStatusSearchTest, USCoreV700::SimpleObservationPatientCodeDateSearchTest, USCoreV700::SimpleObservationPatientCodeSearchTest, USCoreV700::SimpleObservationProvenanceRevincludeSearchTest, USCoreV700::SmokingstatusPatientCategoryDateSearchTest, USCoreV700::SmokingstatusPatientCategoryLastupdatedSearchTest, USCoreV700::SmokingstatusPatientCategorySearchTest, USCoreV700::SmokingstatusPatientCategoryStatusSearchTest, USCoreV700::SmokingstatusPatientCodeDateSearchTest, USCoreV700::SmokingstatusPatientCodeSearchTest, USCoreV700::SmokingstatusProvenanceRevincludeSearchTest, USCoreV700::SpecimenIdSearchTest, USCoreV700::SpecimenPatientSearchTest, USCoreV700::TreatmentInterventionPreferencePatientCategoryDateSearchTest, USCoreV700::TreatmentInterventionPreferencePatientCategoryLastupdatedSearchTest, USCoreV700::TreatmentInterventionPreferencePatientCategorySearchTest, USCoreV700::TreatmentInterventionPreferencePatientCategoryStatusSearchTest, USCoreV700::TreatmentInterventionPreferencePatientCodeDateSearchTest, USCoreV700::TreatmentInterventionPreferencePatientCodeSearchTest, USCoreV700::TreatmentInterventionPreferenceProvenanceRevincludeSearchTest
Defined in:
lib/us_core_test_kit/search_test.rb

Constant Summary

Constants included from FHIRResourceNavigation

FHIRResourceNavigation::DAR_EXTENSION_URL, FHIRResourceNavigation::PRIMITIVE_DATA_TYPES

Instance Method Summary collapse

Methods included from FHIRResourceNavigation

#find_a_value_at, #find_slice_via_discriminator, #get_next_value, #get_primitive_type_value, #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)


211
212
213
214
215
# File 'lib/us_core_test_kit/search_test.rb', line 211

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



46
47
48
49
50
51
# File 'lib/us_core_test_kit/search_test.rb', line 46

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



446
447
448
# File 'lib/us_core_test_kit/search_test.rb', line 446

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

#all_search_paramsObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/us_core_test_kit/search_test.rb', line 28

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)


523
524
525
# File 'lib/us_core_test_kit/search_test.rb', line 523

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

#all_search_variants_tested?Boolean

Returns:

  • (Boolean)


206
207
208
209
# File 'lib/us_core_test_kit/search_test.rb', line 206

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)


53
54
55
# File 'lib/us_core_test_kit/search_test.rb', line 53

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

#array_of_codes(array) ⇒ Object



527
528
529
# File 'lib/us_core_test_kit/search_test.rb', line 527

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

#cant_resolve_next_bundle_message(link) ⇒ Object



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

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

#check_resource_against_params(resource, params) ⇒ Object

RESULT CHECKING ####



715
716
717
718
719
720
721
722
723
724
725
726
727
# File 'lib/us_core_test_kit/search_test.rb', line 715

def check_resource_against_params(resource, params)
  params.each do |name, escaped_search_value|
    values_found = []
    search_value = unescape_search_value(escaped_search_value)

    match_found = resource_matches_param?(resource, name, escaped_search_value, values_found)

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

#check_search_responseObject



186
187
188
189
190
# File 'lib/us_core_test_kit/search_test.rb', line 186

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



217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/us_core_test_kit/search_test.rb', line 217

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



332
333
334
335
336
337
# File 'lib/us_core_test_kit/search_test.rb', line 332

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

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

#element_has_valid_value?(element, include_system) ⇒ Boolean

Returns:

  • (Boolean)


663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# File 'lib/us_core_test_kit/search_test.rb', line 663

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?
  when USCoreTestKit::PrimitiveType
    element.value.present?
  else
    true
  end
end

#empty_search_params_message(empty_search_params) ⇒ Object



535
536
537
# File 'lib/us_core_test_kit/search_test.rb', line 535

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

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



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
591
592
593
594
595
# File 'lib/us_core_test_kit/search_test.rb', line 549

def fetch_all_bundled_resources(
      reply_handler: nil,
      max_pages: 20,
      additional_resource_types: [],
      resource_type: self.resource_type,
      params: nil
    )
  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', tags: tags(params)) { 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 ['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



167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/us_core_test_kit/search_test.rb', line 167

def filter_conditions(resources)
  # HL7 JIRA FHIR-37917. US 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



158
159
160
161
162
163
164
165
# File 'lib/us_core_test_kit/search_test.rb', line 158

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

#fixed_value_search_param_nameObject



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

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

#fixed_value_search_param_valuesObject



465
466
467
# File 'lib/us_core_test_kit/search_test.rb', line 465

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



469
470
471
472
473
# File 'lib/us_core_test_kit/search_test.rb', line 469

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

#initial_search_variant_test_recordsObject



196
197
198
199
200
201
202
203
204
# File 'lib/us_core_test_kit/search_test.rb', line 196

def initial_search_variant_test_records
  {}.tap do |records|
    records[:post_variant] = false if test_post_search?
    records[:medication_inclusion] = false if test_medication_inclusion?
    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

#is_reference_match?(reference, local_reference) ⇒ Boolean

Returns:

  • (Boolean)


441
442
443
444
# File 'lib/us_core_test_kit/search_test.rb', line 441

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

#no_resources_skip_message(resource_type = self.resource_type) ⇒ Object



539
540
541
542
543
544
545
546
547
# File 'lib/us_core_test_kit/search_test.rb', line 539

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

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

  msg + ". Please use patients with more information"
end

#patient_id_listObject



500
501
502
503
504
# File 'lib/us_core_test_kit/search_test.rb', line 500

def patient_id_list
  return [nil] unless respond_to? :patient_ids

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

#patient_id_param?(name) ⇒ Boolean

Returns:

  • (Boolean)


510
511
512
# File 'lib/us_core_test_kit/search_test.rb', line 510

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

#patient_search?Boolean

Returns:

  • (Boolean)


506
507
508
# File 'lib/us_core_test_kit/search_test.rb', line 506

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

#perform_comparator_searches(params, patient_id) ⇒ Object



239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# File 'lib/us_core_test_kit/search_test.rb', line 239

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 => date_comparator_value(comparator, date_element))

      search_and_check_response(params_with_comparator)

      comparator_resources = fetch_all_bundled_resources(params: params_with_comparator).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_or_search_testObject



340
341
342
343
344
345
346
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
375
376
377
378
379
380
# File 'lib/us_core_test_kit/search_test.rb', line 340

def perform_multiple_or_search_test
  resolved_one = false

  all_search_params.each do |patient_id, params_list|
    next unless params_list.present?

    search_params = params_list.first
    existing_values = {}
    missing_values = {}

    multiple_or_search_params.each do |param_name|
      search_value = default_search_values(param_name.to_sym)
      search_params = search_params.merge("#{param_name}" => search_value)
      existing_values[param_name.to_sym] = scratch_resources_for_patient(patient_id).map(&param_name.to_sym).compact.uniq
    end

    # skip patient without multiple-or values
    next if existing_values.values.any?(&:empty?)

    resolved_one = true

    search_and_check_response(search_params)

    resources_returned =
      fetch_all_bundled_resources(params: search_params)
        .select { |resource| resource.resourceType == resource_type }

    multiple_or_search_params.each do |param_name|
      missing_values[param_name.to_sym] = existing_values[param_name.to_sym] - resources_returned.map(&param_name.to_sym)
    end

    missing_value_message = missing_values
      .reject { |_param_name, missing_value| missing_value.empty? }
      .map { |param_name, missing_value| "#{missing_value.join(',')} values from #{param_name}" }
      .join(' and ')

    assert missing_value_message.blank?, "Could not find #{missing_value_message} in any of the resources returned for Patient/#{patient_id}"

    break if resolved_one
  end
end

#perform_post_search(get_search_resources, params) ⇒ Object



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/us_core_test_kit/search_test.rb', line 137

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



259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# File 'lib/us_core_test_kit/search_test.rb', line 259

def perform_reference_with_type_search(params, resource_count)
  return if resource_count == 0
  return if search_variant_test_records[:reference_variants]

  new_search_params = params.merge('patient' => "Patient/#{params['patient']}")
  search_and_check_response(new_search_params)

  reference_with_type_resources =
    fetch_all_bundled_resources(params: new_search_params)
      .select { |resource| resource.resourceType == resource_type }

  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



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'lib/us_core_test_kit/search_test.rb', line 99

def perform_search(params, patient_id)
  fhir_search resource_type, params:, tags: tags(params)

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

  check_search_response

  resources_returned =
    fetch_all_bundled_resources(params:).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?
  test_medication_inclusion(resources_returned, params, patient_id) if test_medication_inclusion?
  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



301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
# File 'lib/us_core_test_kit/search_test.rb', line 301

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



283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'lib/us_core_test_kit/search_test.rb', line 283

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(params: search_params)
      .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



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

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

#required_comparators(name) ⇒ Object



230
231
232
233
234
235
236
237
# File 'lib/us_core_test_kit/search_test.rb', line 230

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

#resource_matches_param?(resource, search_param_name, escaped_search_value, values_found = []) ⇒ Boolean

Returns:

  • (Boolean)


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
762
763
764
765
766
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
828
829
# File 'lib/us_core_test_kit/search_test.rb', line 733

def resource_matches_param?(resource, search_param_name, escaped_search_value, values_found = [])
  search_value = unescape_search_value(escaped_search_value)
  paths = search_param_paths(search_param_name)

  match_found = false

  paths.each do |path|
    type = .search_definitions[search_param_name.to_sym][:type]

    resolve_path(resource, path).each do |value|
      values_found <<
        if value.is_a? FHIR::Reference
          value.reference
        elsif value.is_a? USCoreTestKit::PrimitiveType
          value.value
        else
          value
        end
    end

    values_found.compact!
    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 ['subject', 'patient'].include? search_param_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

  match_found
end

#run_provenance_revinclude_search_testObject



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/us_core_test_kit/search_test.rb', line 57

def run_provenance_revinclude_search_test
  # TODO: skip if not supported?
  skip_if !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:, tags: tags(params)

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

        check_search_response

        # TODO: check that only provenance resources for resources matching
        # granular scopes returned
        fetch_all_bundled_resources(additional_resource_types: ['Provenance'], params:)
          .select { |resource| resource.resourceType == 'Provenance' }
      end
    end

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

  save_delayed_references(provenance_resources, 'Provenance')

  skip_if provenance_resources.empty?, no_resources_skip_message('Provenance')
end

#run_search_testObject



85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/us_core_test_kit/search_test.rb', line 85

def run_search_test
  # TODO: skip if not supported?
  skip_if !any_valid_search_params?(all_search_params), unable_to_resolve_params_message

  resources_returned =
    all_search_params.flat_map do |patient_id, params_list|
      params_list.flat_map { |params| perform_search(params, patient_id) }
    end

  skip_if resources_returned.empty?, no_resources_skip_message

  perform_multiple_or_search_test if multiple_or_search_params.present?
end

#save_delayed_references(resources, containing_resource_type = self.resource_type) ⇒ Object



696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
# File 'lib/us_core_test_kit/search_test.rb', line 696

def save_delayed_references(resources, containing_resource_type = self.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



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

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



450
451
452
453
454
# File 'lib/us_core_test_kit/search_test.rb', line 450

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



180
181
182
183
184
# File 'lib/us_core_test_kit/search_test.rb', line 180

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

  check_search_response
end

#search_param_paths(name) ⇒ Object



514
515
516
517
518
519
520
521
# File 'lib/us_core_test_kit/search_test.rb', line 514

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

  paths
end

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



601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
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
659
660
661
# File 'lib/us_core_test_kit/search_test.rb', line 601

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
      when USCoreTestKit::PrimitiveType
        element.value
      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
            "gt#{(DateTime.xmlschema(element)-1).xmlschema}"
          else
            element
          end
        else
          element
        end
      end

    break if search_value.present?
  end

  escaped_value = search_value&.gsub(',', '\\,')
  escaped_value
end

#search_params_tag(params) ⇒ Object



843
844
845
# File 'lib/us_core_test_kit/search_test.rb', line 843

def search_params_tag(params)
  "#{resource_type}?#{params.keys.join('&')}"
end

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



475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
# File 'lib/us_core_test_kit/search_test.rb', line 475

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
      params[name] = value
    end
  end

  params_with_partial_value = resources.each_with_object({}) do |resource, outer_params|
    results_from_one_resource = search_param_names.each_with_object({}) do |name, params|
      value = patient_id_param?(name) ? patient_id : search_param_value(name, resource, include_system: include_system)
      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

  params_with_partial_value
end

#search_variant_test_recordsObject



192
193
194
# File 'lib/us_core_test_kit/search_test.rb', line 192

def search_variant_test_records
  @search_variant_test_records ||= initial_search_variant_test_records
end

#status_search_param_nameObject



323
324
325
326
# File 'lib/us_core_test_kit/search_test.rb', line 323

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

#status_search_valuesObject



328
329
330
# File 'lib/us_core_test_kit/search_test.rb', line 328

def status_search_values
  default_search_values(status_search_param_name)
end

#tags(params) ⇒ Object



831
832
833
834
835
836
837
838
839
840
841
# File 'lib/us_core_test_kit/search_test.rb', line 831

def tags(params)
  return nil unless config.options[:tag_requests]

  return nil if params.blank?

  if ['Condition', 'DiagnosticReport', 'DocumentReference', 'Observation', 'ServiceRequest'].include? resource_type
    return [search_params_tag(params)]
  end

  nil
end

#test_medication_inclusion(base_resources, params, patient_id) ⇒ Object



382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
# File 'lib/us_core_test_kit/search_test.rb', line 382

def test_medication_inclusion(base_resources, params, patient_id)
  return if search_variant_test_records[:medication_inclusion]

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

  base_resources_with_external_reference =
    base_resources
      .select { |request| request&.medicationReference&.present? }
      .reject { |request| request&.medicationReference&.reference&.start_with? '#' }

  contained_medications =
    base_resources
      .select { |request| request&.medicationReference&.reference&.start_with? '#' }
      .flat_map(&:contained)
      .select { |resource| resource.resourceType == 'Medication' }

  scratch[:medication_resources][:all] += contained_medications
  scratch[:medication_resources][patient_id] += contained_medications
  scratch[:medication_resources][:contained] += contained_medications

  return if base_resources_with_external_reference.blank?

  search_params = params.merge(_include: "#{resource_type}:medication")

  search_and_check_response(search_params)

  medications =
    fetch_all_bundled_resources(params: search_params)
      .select { |resource| resource.resourceType == 'Medication' }
  assert medications.present?, 'No Medications were included in the search results'

  included_medications = medications.map { |medication| "#{medication.resourceType}/#{medication.id}" }

  matched_base_resources = base_resources_with_external_reference.select do |base_resource|
    included_medications.any? do |medication_reference|
      is_reference_match?(base_resource.medicationReference.reference, medication_reference)
    end
  end

  not_matched_included_medications = included_medications.select do |medication_reference|
    matched_base_resources.none? do |base_resource|
      is_reference_match?(base_resource.medicationReference.reference, medication_reference)
    end
  end

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

  medications.uniq!(&:id)

  scratch[:medication_resources][:all] += medications
  scratch[:medication_resources][patient_id] += medications

  search_variant_test_records[:medication_inclusion] = true
end

#unable_to_resolve_params_messageObject



531
532
533
# File 'lib/us_core_test_kit/search_test.rb', line 531

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

#unescape_search_value(value) ⇒ Object



729
730
731
# File 'lib/us_core_test_kit/search_test.rb', line 729

def unescape_search_value(value)
  value&.gsub('\\,', ',')
end