us_core_test_kit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/lib/us_core_test_kit/custom_groups/capability_statement/conformance_support_test.rb +41 -0
- data/lib/us_core_test_kit/custom_groups/capability_statement/fhir_version_test.rb +15 -0
- data/lib/us_core_test_kit/custom_groups/capability_statement/json_support_test.rb +40 -0
- data/lib/us_core_test_kit/custom_groups/capability_statement/profile_support_test.rb +90 -0
- data/lib/us_core_test_kit/custom_groups/capability_statement_group.rb +64 -0
- data/lib/us_core_test_kit/custom_groups/clinical_notes_guidance_group.rb +208 -0
- data/lib/us_core_test_kit/custom_groups/data_absent_reason_group.rb +59 -0
- data/lib/us_core_test_kit/date_search_validation.rb +101 -0
- data/lib/us_core_test_kit/ext/fhir_models.rb +59 -0
- data/lib/us_core_test_kit/fhir_resource_navigation.rb +63 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_must_support_test.rb +40 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_patient_clinical_status_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_patient_search_test.rb +60 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_provenance_revinclude_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance/allergy_intolerance_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/allergy_intolerance_group.rb +85 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/bodyheight/bodyheight_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/bodyheight_group.rb +93 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/bodytemp/bodytemp_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/bodytemp_group.rb +93 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/bodyweight/bodyweight_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/bodyweight_group.rb +93 -0
- data/lib/us_core_test_kit/generated/bp/bp_must_support_test.rb +52 -0
- data/lib/us_core_test_kit/generated/bp/bp_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/bp/bp_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/bp/bp_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/bp/bp_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/bp/bp_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/bp/bp_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/bp/bp_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/bp/bp_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/bp/bp_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/bp_group.rb +93 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_must_support_test.rb +41 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_patient_category_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_patient_category_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_patient_category_status_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/care_plan/care_plan_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/care_plan_group.rb +89 -0
- data/lib/us_core_test_kit/generated/care_team/care_team_must_support_test.rb +39 -0
- data/lib/us_core_test_kit/generated/care_team/care_team_patient_status_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/care_team/care_team_provenance_revinclude_search_test.rb +50 -0
- data/lib/us_core_test_kit/generated/care_team/care_team_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/care_team/care_team_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/care_team/care_team_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/care_team_group.rb +83 -0
- data/lib/us_core_test_kit/generated/condition/condition_must_support_test.rb +39 -0
- data/lib/us_core_test_kit/generated/condition/condition_patient_category_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/condition/condition_patient_clinical_status_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/condition/condition_patient_code_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/condition/condition_patient_onset_date_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/condition/condition_patient_search_test.rb +60 -0
- data/lib/us_core_test_kit/generated/condition/condition_provenance_revinclude_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/condition/condition_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/condition/condition_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/condition/condition_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/condition_group.rb +91 -0
- data/lib/us_core_test_kit/generated/device/device_must_support_test.rb +43 -0
- data/lib/us_core_test_kit/generated/device/device_patient_search_test.rb +65 -0
- data/lib/us_core_test_kit/generated/device/device_patient_type_search_test.rb +52 -0
- data/lib/us_core_test_kit/generated/device/device_provenance_revinclude_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/device/device_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/device/device_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/device/device_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/device_group.rb +85 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_must_support_test.rb +43 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_patient_category_search_test.rb +63 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_patient_code_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_patient_search_test.rb +44 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_patient_status_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_lab_group.rb +96 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_must_support_test.rb +43 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_patient_category_search_test.rb +63 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_patient_code_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_patient_search_test.rb +44 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_patient_status_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note/diagnostic_report_note_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/diagnostic_report_note_group.rb +96 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_id_search_test.rb +40 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_patient_search_test.rb +61 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_patient_status_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_patient_type_period_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_patient_type_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_provenance_revinclude_search_test.rb +50 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/document_reference/document_reference_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/document_reference_group.rb +99 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_class_patient_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_date_patient_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_id_search_test.rb +40 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_identifier_search_test.rb +43 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_must_support_test.rb +51 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_patient_search_test.rb +61 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_patient_status_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_patient_type_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_provenance_revinclude_search_test.rb +50 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/encounter/encounter_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/encounter_group.rb +97 -0
- data/lib/us_core_test_kit/generated/goal/goal_must_support_test.rb +39 -0
- data/lib/us_core_test_kit/generated/goal/goal_patient_lifecycle_status_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/goal/goal_patient_search_test.rb +60 -0
- data/lib/us_core_test_kit/generated/goal/goal_patient_target_date_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/goal/goal_provenance_revinclude_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/goal/goal_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/goal/goal_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/goal/goal_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/goal_group.rb +87 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/head_circumference/head_circumference_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/head_circumference_group.rb +93 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/heartrate/heartrate_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/heartrate_group.rb +93 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_must_support_test.rb +40 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_patient_date_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_patient_search_test.rb +60 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_patient_status_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_provenance_revinclude_search_test.rb +50 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/immunization/immunization_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/immunization_group.rb +87 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_must_support_test.rb +44 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_patient_intent_authoredon_search_test.rb +53 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_patient_intent_encounter_search_test.rb +52 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_patient_intent_search_test.rb +68 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_patient_intent_status_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_request_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/medication_request/medication_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/medication_request_group.rb +92 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_must_support_test.rb +41 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_patient_category_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_patient_code_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/observation_lab/observation_lab_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/observation_lab_group.rb +93 -0
- data/lib/us_core_test_kit/generated/organization/organization_address_search_test.rb +39 -0
- data/lib/us_core_test_kit/generated/organization/organization_must_support_test.rb +47 -0
- data/lib/us_core_test_kit/generated/organization/organization_name_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/organization/organization_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/organization/organization_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/organization/organization_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/organization_group.rb +84 -0
- data/lib/us_core_test_kit/generated/patient/patient_birthdate_family_search_test.rb +41 -0
- data/lib/us_core_test_kit/generated/patient/patient_birthdate_name_search_test.rb +39 -0
- data/lib/us_core_test_kit/generated/patient/patient_family_gender_search_test.rb +41 -0
- data/lib/us_core_test_kit/generated/patient/patient_gender_name_search_test.rb +39 -0
- data/lib/us_core_test_kit/generated/patient/patient_id_search_test.rb +53 -0
- data/lib/us_core_test_kit/generated/patient/patient_identifier_search_test.rb +40 -0
- data/lib/us_core_test_kit/generated/patient/patient_must_support_test.rb +57 -0
- data/lib/us_core_test_kit/generated/patient/patient_name_search_test.rb +39 -0
- data/lib/us_core_test_kit/generated/patient/patient_provenance_revinclude_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/patient/patient_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/patient/patient_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/patient/patient_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/patient_group.rb +99 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age/pediatric_bmi_for_age_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/pediatric_bmi_for_age_group.rb +93 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height/pediatric_weight_for_height_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/pediatric_weight_for_height_group.rb +93 -0
- data/lib/us_core_test_kit/generated/practitioner/practitioner_identifier_search_test.rb +40 -0
- data/lib/us_core_test_kit/generated/practitioner/practitioner_must_support_test.rb +40 -0
- data/lib/us_core_test_kit/generated/practitioner/practitioner_name_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/practitioner/practitioner_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/practitioner/practitioner_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/practitioner/practitioner_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/practitioner_group.rb +84 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_must_support_test.rb +38 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_patient_date_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_patient_search_test.rb +60 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_patient_status_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_provenance_revinclude_search_test.rb +50 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/procedure/procedure_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/procedure_group.rb +90 -0
- data/lib/us_core_test_kit/generated/provenance/provenance_must_support_test.rb +44 -0
- data/lib/us_core_test_kit/generated/provenance/provenance_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/provenance/provenance_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/provenance/provenance_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/provenance_group.rb +56 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_must_support_test.rb +65 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry/pulse_oximetry_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/pulse_oximetry_group.rb +93 -0
- data/lib/us_core_test_kit/generated/resource_list.rb +26 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_must_support_test.rb +49 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_patient_category_date_search_test.rb +46 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_patient_category_search_test.rb +45 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/resprate/resprate_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/resprate_group.rb +93 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_must_support_test.rb +39 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_patient_category_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_patient_category_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_patient_category_status_search_test.rb +47 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_patient_code_date_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_patient_code_search_test.rb +62 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_provenance_revinclude_search_test.rb +51 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_read_test.rb +24 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_reference_resolution_test.rb +28 -0
- data/lib/us_core_test_kit/generated/smokingstatus/smokingstatus_validation_test.rb +34 -0
- data/lib/us_core_test_kit/generated/smokingstatus_group.rb +93 -0
- data/lib/us_core_test_kit/generated/us_core_test_suite.rb +110 -0
- data/lib/us_core_test_kit/generator/group_generator.rb +171 -0
- data/lib/us_core_test_kit/generator/group_metadata.rb +98 -0
- data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +281 -0
- data/lib/us_core_test_kit/generator/ig_loader.rb +63 -0
- data/lib/us_core_test_kit/generator/ig_metadata.rb +49 -0
- data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +56 -0
- data/lib/us_core_test_kit/generator/ig_resources.rb +48 -0
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +221 -0
- data/lib/us_core_test_kit/generator/must_support_test_generator.rb +86 -0
- data/lib/us_core_test_kit/generator/naming.rb +58 -0
- data/lib/us_core_test_kit/generator/provenance_revinclude_search_test_generator.rb +186 -0
- data/lib/us_core_test_kit/generator/read_test_generator.rb +89 -0
- data/lib/us_core_test_kit/generator/reference_resolution_test_generator.rb +72 -0
- data/lib/us_core_test_kit/generator/resource_list_generator.rb +46 -0
- data/lib/us_core_test_kit/generator/search_definition_metadata_extractor.rb +181 -0
- data/lib/us_core_test_kit/generator/search_metadata_extractor.rb +74 -0
- data/lib/us_core_test_kit/generator/search_test_generator.rb +280 -0
- data/lib/us_core_test_kit/generator/special_cases.rb +17 -0
- data/lib/us_core_test_kit/generator/suite_generator.rb +67 -0
- data/lib/us_core_test_kit/generator/terminology_binding_metadata_extractor.rb +105 -0
- data/lib/us_core_test_kit/generator/validation_test_generator.rb +124 -0
- data/lib/us_core_test_kit/generator.rb +86 -0
- data/lib/us_core_test_kit/igs/StructureDefinition-bodyheight.json +3772 -0
- data/lib/us_core_test_kit/igs/StructureDefinition-bodytemp.json +3772 -0
- data/lib/us_core_test_kit/igs/StructureDefinition-bodyweight.json +3772 -0
- data/lib/us_core_test_kit/igs/StructureDefinition-bp.json +6034 -0
- data/lib/us_core_test_kit/igs/StructureDefinition-heartrate.json +3756 -0
- data/lib/us_core_test_kit/igs/StructureDefinition-resprate.json +3756 -0
- data/lib/us_core_test_kit/igs/package.tgz +0 -0
- data/lib/us_core_test_kit/must_support_test.rb +146 -0
- data/lib/us_core_test_kit/read_test.rb +62 -0
- data/lib/us_core_test_kit/reference_resolution_test.rb +111 -0
- data/lib/us_core_test_kit/request_logger.rb +46 -0
- data/lib/us_core_test_kit/search_test.rb +686 -0
- data/lib/us_core_test_kit/search_test_properties.rb +56 -0
- data/lib/us_core_test_kit/validation_test.rb +48 -0
- data/lib/us_core_test_kit/version.rb +3 -0
- data/lib/us_core_test_kit.rb +2 -0
- metadata +477 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportLabPatientCodeDateSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + code + date'
|
9
|
+
description %(
|
10
|
+
A server SHOULD support searching by
|
11
|
+
patient + code + date on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_lab_patient_code_date_search_test
|
20
|
+
optional
|
21
|
+
|
22
|
+
input :patient_ids,
|
23
|
+
title: 'Patient IDs',
|
24
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
25
|
+
|
26
|
+
def self.properties
|
27
|
+
@properties ||= SearchTestProperties.new(
|
28
|
+
resource_type: 'DiagnosticReport',
|
29
|
+
search_param_names: ['patient', 'code', 'date'],
|
30
|
+
possible_status_search: true,
|
31
|
+
token_search_params: ['code'],
|
32
|
+
params_with_comparators: ['date']
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.metadata
|
37
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
38
|
+
end
|
39
|
+
|
40
|
+
def scratch_resources
|
41
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
42
|
+
end
|
43
|
+
|
44
|
+
run do
|
45
|
+
run_search_test
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportLabPatientCodeSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + code'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient + code on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_lab_patient_code_search_test
|
20
|
+
input :patient_ids,
|
21
|
+
title: 'Patient IDs',
|
22
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
23
|
+
|
24
|
+
def self.properties
|
25
|
+
@properties ||= SearchTestProperties.new(
|
26
|
+
resource_type: 'DiagnosticReport',
|
27
|
+
search_param_names: ['patient', 'code'],
|
28
|
+
possible_status_search: true,
|
29
|
+
token_search_params: ['code']
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.metadata
|
34
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
35
|
+
end
|
36
|
+
|
37
|
+
def scratch_resources
|
38
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
39
|
+
end
|
40
|
+
|
41
|
+
run do
|
42
|
+
run_search_test
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportLabPatientSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_lab_patient_search_test
|
20
|
+
input :patient_ids,
|
21
|
+
title: 'Patient IDs',
|
22
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
23
|
+
|
24
|
+
def self.properties
|
25
|
+
@properties ||= SearchTestProperties.new(
|
26
|
+
resource_type: 'DiagnosticReport',
|
27
|
+
search_param_names: ['patient'],
|
28
|
+
possible_status_search: true
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.metadata
|
33
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
34
|
+
end
|
35
|
+
|
36
|
+
def scratch_resources
|
37
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
38
|
+
end
|
39
|
+
|
40
|
+
run do
|
41
|
+
run_search_test
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportLabPatientStatusSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + status'
|
9
|
+
description %(
|
10
|
+
A server SHOULD support searching by
|
11
|
+
patient + status on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_lab_patient_status_search_test
|
20
|
+
optional
|
21
|
+
|
22
|
+
input :patient_ids,
|
23
|
+
title: 'Patient IDs',
|
24
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
25
|
+
|
26
|
+
def self.properties
|
27
|
+
@properties ||= SearchTestProperties.new(
|
28
|
+
resource_type: 'DiagnosticReport',
|
29
|
+
search_param_names: ['patient', 'status'],
|
30
|
+
multiple_or_search_params: ['status']
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.metadata
|
35
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
36
|
+
end
|
37
|
+
|
38
|
+
def scratch_resources
|
39
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
40
|
+
end
|
41
|
+
|
42
|
+
run do
|
43
|
+
run_search_test
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportLabProvenanceRevincludeSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns Provenance resources from DiagnosticReport search by patient + category + revInclude:Provenance:target'
|
9
|
+
description %(
|
10
|
+
A server SHALL be capable of supporting _revIncludes:Provenance:target.
|
11
|
+
|
12
|
+
This test will perform a search by patient + category + revInclude:Provenance:target and
|
13
|
+
will pass if a Provenance resource is found in the response.
|
14
|
+
%)
|
15
|
+
|
16
|
+
id :us_core_311_diagnostic_report_lab_provenance_revinclude_search_test
|
17
|
+
|
18
|
+
input :patient_ids,
|
19
|
+
title: 'Patient IDs',
|
20
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
21
|
+
|
22
|
+
def properties
|
23
|
+
@properties ||= SearchTestProperties.new(
|
24
|
+
fixed_value_search: true,
|
25
|
+
resource_type: 'DiagnosticReport',
|
26
|
+
search_param_names: ['patient', 'category'],
|
27
|
+
possible_status_search: true
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.metadata
|
32
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.provenance_metadata
|
36
|
+
@provenance_metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, '..', 'provenance', 'metadata.yml')))
|
37
|
+
end
|
38
|
+
|
39
|
+
def scratch_resources
|
40
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
41
|
+
end
|
42
|
+
|
43
|
+
def scratch_provenance_resources
|
44
|
+
scratch[:provenance_resources] ||= {}
|
45
|
+
end
|
46
|
+
|
47
|
+
run do
|
48
|
+
run_provenance_revinclude_search_test
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative '../../read_test'
|
2
|
+
|
3
|
+
module USCoreTestKit
|
4
|
+
class DiagnosticReportLabReadTest < Inferno::Test
|
5
|
+
include USCoreTestKit::ReadTest
|
6
|
+
|
7
|
+
title 'Server returns correct DiagnosticReport resource from DiagnosticReport read interaction'
|
8
|
+
description 'A server SHALL support the DiagnosticReport read interaction.'
|
9
|
+
|
10
|
+
id :us_core_311_diagnostic_report_lab_read_test
|
11
|
+
|
12
|
+
def resource_type
|
13
|
+
'DiagnosticReport'
|
14
|
+
end
|
15
|
+
|
16
|
+
def scratch_resources
|
17
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
18
|
+
end
|
19
|
+
|
20
|
+
run do
|
21
|
+
perform_read_test(all_scratch_resources)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require_relative '../../reference_resolution_test'
|
2
|
+
|
3
|
+
module USCoreTestKit
|
4
|
+
class DiagnosticReportLabReferenceResolutionTest < Inferno::Test
|
5
|
+
include USCoreTestKit::ReferenceResolutionTest
|
6
|
+
|
7
|
+
title 'Every reference within DiagnosticReport resources can be read'
|
8
|
+
description %(
|
9
|
+
This test will attempt to read the first 50 references found in the
|
10
|
+
resources from the first search. The test will fail if Inferno fails to
|
11
|
+
read any of those references.
|
12
|
+
)
|
13
|
+
|
14
|
+
id :us_core_311_diagnostic_report_lab_reference_resolution_test
|
15
|
+
|
16
|
+
def resource_type
|
17
|
+
'DiagnosticReport'
|
18
|
+
end
|
19
|
+
|
20
|
+
def scratch_resources
|
21
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
22
|
+
end
|
23
|
+
|
24
|
+
run do
|
25
|
+
perform_reference_resolution_test(scratch_resources[:all])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/us_core_test_kit/generated/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require_relative '../../validation_test'
|
2
|
+
|
3
|
+
module USCoreTestKit
|
4
|
+
class DiagnosticReportLabValidationTest < Inferno::Test
|
5
|
+
include USCoreTestKit::ValidationTest
|
6
|
+
|
7
|
+
id :us_core_311_diagnostic_report_lab_validation_test
|
8
|
+
title 'DiagnosticReport resources returned during previous tests conform to the US Core DiagnosticReport Profile for Laboratory Results Reporting'
|
9
|
+
description %(
|
10
|
+
This test verifies resources returned from the first search conform to
|
11
|
+
the [US Core DiagnosticReport Profile for Laboratory Results Reporting](http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab).
|
12
|
+
|
13
|
+
It verifies the presence of mandatory elements and that elements with
|
14
|
+
required bindings contain appropriate values. CodeableConcept element
|
15
|
+
bindings will fail if none of their codings have a code/system belonging
|
16
|
+
to the bound ValueSet. Quantity, Coding, and code element bindings will
|
17
|
+
fail if their code/system are not found in the valueset.
|
18
|
+
|
19
|
+
)
|
20
|
+
output :dar_code_found, :dar_extension_found
|
21
|
+
|
22
|
+
def resource_type
|
23
|
+
'DiagnosticReport'
|
24
|
+
end
|
25
|
+
|
26
|
+
def scratch_resources
|
27
|
+
scratch[:diagnostic_report_lab_resources] ||= {}
|
28
|
+
end
|
29
|
+
|
30
|
+
run do
|
31
|
+
perform_validation_test(scratch_resources[:all] || [], 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_patient_category_search_test'
|
2
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_patient_search_test'
|
3
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_patient_category_date_search_test'
|
4
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_patient_status_search_test'
|
5
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_patient_code_date_search_test'
|
6
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_patient_code_search_test'
|
7
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_read_test'
|
8
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_provenance_revinclude_search_test'
|
9
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_validation_test'
|
10
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_must_support_test'
|
11
|
+
require_relative 'diagnostic_report_lab/diagnostic_report_lab_reference_resolution_test'
|
12
|
+
|
13
|
+
module USCoreTestKit
|
14
|
+
class DiagnosticReportLabGroup < Inferno::TestGroup
|
15
|
+
title 'DiagnosticReport for Laboratory Results Reporting Tests'
|
16
|
+
short_description 'Verify support for the server capabilities required by the US Core DiagnosticReport Profile for Laboratory Results Reporting.'
|
17
|
+
description %(
|
18
|
+
# Background
|
19
|
+
|
20
|
+
The US Core DiagnosticReport for Laboratory Results Reporting sequence verifies that the system under test is
|
21
|
+
able to provide correct responses for DiagnosticReport queries. These queries
|
22
|
+
must contain resources conforming to the US Core DiagnosticReport Profile for Laboratory Results Reporting as
|
23
|
+
specified in the US Core v3.1.1 Implementation Guide.
|
24
|
+
|
25
|
+
# Testing Methodology
|
26
|
+
## Searching
|
27
|
+
This test sequence will first perform each required search associated
|
28
|
+
with this resource. This sequence will perform searches with the
|
29
|
+
following parameters:
|
30
|
+
|
31
|
+
* patient + category
|
32
|
+
* patient
|
33
|
+
* patient + category + date
|
34
|
+
* patient + code
|
35
|
+
|
36
|
+
### Search Parameters
|
37
|
+
The first search uses the selected patient(s) from the prior launch
|
38
|
+
sequence. Any subsequent searches will look for its parameter values
|
39
|
+
from the results of the first search. For example, the `identifier`
|
40
|
+
search in the patient sequence is performed by looking for an existing
|
41
|
+
`Patient.identifier` from any of the resources returned in the `_id`
|
42
|
+
search. If a value cannot be found this way, the search is skipped.
|
43
|
+
|
44
|
+
### Search Validation
|
45
|
+
Inferno will retrieve up to the first 20 bundle pages of the reply for
|
46
|
+
DiagnosticReport resources and save them for subsequent tests. Each of
|
47
|
+
these resources is then checked to see if it matches the searched
|
48
|
+
parameters in accordance with [FHIR search
|
49
|
+
guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
|
50
|
+
for example, if a Patient search for `gender=male` returns a `female`
|
51
|
+
patient.
|
52
|
+
|
53
|
+
|
54
|
+
## Must Support
|
55
|
+
Each profile contains elements marked as "must support". This test
|
56
|
+
sequence expects to see each of these elements at least once. If at
|
57
|
+
least one cannot be found, the test will fail. The test will look
|
58
|
+
through the DiagnosticReport resources found in the first test for these
|
59
|
+
elements.
|
60
|
+
|
61
|
+
## Profile Validation
|
62
|
+
Each resource returned from the first search is expected to conform to
|
63
|
+
the [US Core DiagnosticReport Profile for Laboratory Results Reporting](http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab). Each element is checked against
|
64
|
+
teminology binding and cardinality requirements.
|
65
|
+
|
66
|
+
Elements with a required binding are validated against their bound
|
67
|
+
ValueSet. If the code/system in the element is not part of the ValueSet,
|
68
|
+
then the test will fail.
|
69
|
+
|
70
|
+
## Reference Validation
|
71
|
+
Each reference within the resources found from the previous tests must
|
72
|
+
resolve. The test will attempt to read each reference found and will
|
73
|
+
fail if any attempted read fails.
|
74
|
+
|
75
|
+
)
|
76
|
+
|
77
|
+
id :us_core_311_diagnostic_report_lab
|
78
|
+
run_as_group
|
79
|
+
|
80
|
+
def self.metadata
|
81
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'diagnostic_report_lab', 'metadata.yml')))
|
82
|
+
end
|
83
|
+
|
84
|
+
test from: :us_core_311_diagnostic_report_lab_patient_category_search_test
|
85
|
+
test from: :us_core_311_diagnostic_report_lab_patient_search_test
|
86
|
+
test from: :us_core_311_diagnostic_report_lab_patient_category_date_search_test
|
87
|
+
test from: :us_core_311_diagnostic_report_lab_patient_status_search_test
|
88
|
+
test from: :us_core_311_diagnostic_report_lab_patient_code_date_search_test
|
89
|
+
test from: :us_core_311_diagnostic_report_lab_patient_code_search_test
|
90
|
+
test from: :us_core_311_diagnostic_report_lab_read_test
|
91
|
+
test from: :us_core_311_diagnostic_report_lab_provenance_revinclude_search_test
|
92
|
+
test from: :us_core_311_diagnostic_report_lab_validation_test
|
93
|
+
test from: :us_core_311_diagnostic_report_lab_must_support_test
|
94
|
+
test from: :us_core_311_diagnostic_report_lab_reference_resolution_test
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require_relative '../../must_support_test'
|
2
|
+
|
3
|
+
module USCoreTestKit
|
4
|
+
class DiagnosticReportNoteMustSupportTest < Inferno::Test
|
5
|
+
include USCoreTestKit::MustSupportTest
|
6
|
+
|
7
|
+
title 'All must support elements are provided in the DiagnosticReport resources returned'
|
8
|
+
description %(
|
9
|
+
US Core Responders SHALL be capable of populating all data elements as
|
10
|
+
part of the query results as specified by the US Core Server Capability
|
11
|
+
Statement. This test will look through the DiagnosticReport resources
|
12
|
+
found previously for the following must support elements:
|
13
|
+
|
14
|
+
* DiagnosticReport.category
|
15
|
+
* DiagnosticReport.code
|
16
|
+
* DiagnosticReport.effective[x]
|
17
|
+
* DiagnosticReport.encounter
|
18
|
+
* DiagnosticReport.issued
|
19
|
+
* DiagnosticReport.performer
|
20
|
+
* DiagnosticReport.presentedForm
|
21
|
+
* DiagnosticReport.status
|
22
|
+
* DiagnosticReport.subject
|
23
|
+
)
|
24
|
+
|
25
|
+
id :us_core_311_diagnostic_report_note_must_support_test
|
26
|
+
|
27
|
+
def resource_type
|
28
|
+
'DiagnosticReport'
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.metadata
|
32
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
33
|
+
end
|
34
|
+
|
35
|
+
def scratch_resources
|
36
|
+
scratch[:diagnostic_report_note_resources] ||= {}
|
37
|
+
end
|
38
|
+
|
39
|
+
run do
|
40
|
+
perform_must_support_test(all_scratch_resources)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportNotePatientCategoryDateSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + category + date'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient + category + date on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_note_patient_category_date_search_test
|
20
|
+
input :patient_ids,
|
21
|
+
title: 'Patient IDs',
|
22
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
23
|
+
|
24
|
+
def self.properties
|
25
|
+
@properties ||= SearchTestProperties.new(
|
26
|
+
resource_type: 'DiagnosticReport',
|
27
|
+
search_param_names: ['patient', 'category', 'date'],
|
28
|
+
possible_status_search: true,
|
29
|
+
token_search_params: ['category'],
|
30
|
+
params_with_comparators: ['date']
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.metadata
|
35
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
36
|
+
end
|
37
|
+
|
38
|
+
def scratch_resources
|
39
|
+
scratch[:diagnostic_report_note_resources] ||= {}
|
40
|
+
end
|
41
|
+
|
42
|
+
run do
|
43
|
+
run_search_test
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportNotePatientCategorySearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + category'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient + category on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
This test verifies that the server supports searching by reference using
|
16
|
+
the form `patient=[id]` as well as `patient=Patient/[id]`. The two
|
17
|
+
different forms are expected to return the same number of results. US
|
18
|
+
Core requires that both forms are supported by US Core responders.
|
19
|
+
|
20
|
+
Because this is the first search of the sequence, resources in the
|
21
|
+
response will be used for subsequent tests.
|
22
|
+
|
23
|
+
Additionally, this test will check that GET and POST search methods
|
24
|
+
return the same number of results. Search by POST is required by the
|
25
|
+
FHIR R4 specification, and these tests interpret search by GET as a
|
26
|
+
requirement of US Core v3.1.1.
|
27
|
+
|
28
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
29
|
+
|
30
|
+
)
|
31
|
+
|
32
|
+
id :us_core_311_diagnostic_report_note_patient_category_search_test
|
33
|
+
input :patient_ids,
|
34
|
+
title: 'Patient IDs',
|
35
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
36
|
+
|
37
|
+
def self.properties
|
38
|
+
@properties ||= SearchTestProperties.new(
|
39
|
+
first_search: true,
|
40
|
+
fixed_value_search: true,
|
41
|
+
resource_type: 'DiagnosticReport',
|
42
|
+
search_param_names: ['patient', 'category'],
|
43
|
+
saves_delayed_references: true,
|
44
|
+
possible_status_search: true,
|
45
|
+
token_search_params: ['category'],
|
46
|
+
test_reference_variants: true,
|
47
|
+
test_post_search: true
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.metadata
|
52
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
53
|
+
end
|
54
|
+
|
55
|
+
def scratch_resources
|
56
|
+
scratch[:diagnostic_report_note_resources] ||= {}
|
57
|
+
end
|
58
|
+
|
59
|
+
run do
|
60
|
+
run_search_test
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportNotePatientCodeDateSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + code + date'
|
9
|
+
description %(
|
10
|
+
A server SHOULD support searching by
|
11
|
+
patient + code + date on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_note_patient_code_date_search_test
|
20
|
+
optional
|
21
|
+
|
22
|
+
input :patient_ids,
|
23
|
+
title: 'Patient IDs',
|
24
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
25
|
+
|
26
|
+
def self.properties
|
27
|
+
@properties ||= SearchTestProperties.new(
|
28
|
+
resource_type: 'DiagnosticReport',
|
29
|
+
search_param_names: ['patient', 'code', 'date'],
|
30
|
+
possible_status_search: true,
|
31
|
+
token_search_params: ['code'],
|
32
|
+
params_with_comparators: ['date']
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.metadata
|
37
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
38
|
+
end
|
39
|
+
|
40
|
+
def scratch_resources
|
41
|
+
scratch[:diagnostic_report_note_resources] ||= {}
|
42
|
+
end
|
43
|
+
|
44
|
+
run do
|
45
|
+
run_search_test
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class DiagnosticReportNotePatientCodeSearchTest < Inferno::Test
|
6
|
+
include USCoreTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for DiagnosticReport search by patient + code'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient + code on the DiagnosticReport resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[US Core Server CapabilityStatement](http://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :us_core_311_diagnostic_report_note_patient_code_search_test
|
20
|
+
input :patient_ids,
|
21
|
+
title: 'Patient IDs',
|
22
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
23
|
+
|
24
|
+
def self.properties
|
25
|
+
@properties ||= SearchTestProperties.new(
|
26
|
+
resource_type: 'DiagnosticReport',
|
27
|
+
search_param_names: ['patient', 'code'],
|
28
|
+
possible_status_search: true,
|
29
|
+
token_search_params: ['code']
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.metadata
|
34
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
35
|
+
end
|
36
|
+
|
37
|
+
def scratch_resources
|
38
|
+
scratch[:diagnostic_report_note_resources] ||= {}
|
39
|
+
end
|
40
|
+
|
41
|
+
run do
|
42
|
+
run_search_test
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|