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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 644cf64081633bedeba02c71adaa6cb0debec2e0cca70ee40d5e276d217f07fc
|
4
|
+
data.tar.gz: bff7199b6260687374c27b93f6d7bb52acf0bfdbeaf529c0a3bb85f24096e437
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fabccf53360c88e97bb71a75f9b01e28617df437c7a7074eca324b2ccf1087aab8d5ffbdcac87d9e5436a6d1df7fcd58435511acb50766bd9a7bdef8cb666b9f
|
7
|
+
data.tar.gz: 88db4166c8bafe88d1fa54570a48227db10275ffe85c82d3c9cb4cce9d0a4d58d580d6fd2fb87cfcfb6bd34f1138aecf7096d5ad010a1540fc02e2c8fb6d83e6
|
data/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module USCoreTestKit
|
2
|
+
class ConformanceSupportTest < Inferno::Test
|
3
|
+
id :us_core_311_conformance_support
|
4
|
+
title 'FHIR Server supports the conformance interaction'
|
5
|
+
description %(
|
6
|
+
The conformance 'whole system' interaction provides a method to get the
|
7
|
+
CapabilityStatement for the FHIR server. This test checks that the
|
8
|
+
server responds to a `GET` request at the following endpoint:
|
9
|
+
|
10
|
+
```
|
11
|
+
GET [base]/metadata
|
12
|
+
```
|
13
|
+
|
14
|
+
This test checks the following SHALL requirement:
|
15
|
+
|
16
|
+
> Applications SHALL return a resource that describes the functionality
|
17
|
+
of the server end-point.
|
18
|
+
|
19
|
+
[http://hl7.org/fhir/R4/http.html#capabilities](http://hl7.org/fhir/R4/http.html#capabilities)
|
20
|
+
|
21
|
+
It does this by checking that the server responds with an HTTP OK 200
|
22
|
+
status code and that the body of the response contains a valid
|
23
|
+
[CapabilityStatement
|
24
|
+
resource](http://hl7.org/fhir/R4/capabilitystatement.html). This test
|
25
|
+
does not inspect the content of the CapabilityStatement to see if it
|
26
|
+
contains the required information. It only checks to see if the RESTful
|
27
|
+
interaction is supported and returns a valid CapabilityStatement
|
28
|
+
resource.
|
29
|
+
)
|
30
|
+
makes_request :capability_statement
|
31
|
+
|
32
|
+
run do
|
33
|
+
fhir_client.set_no_auth
|
34
|
+
fhir_get_capability_statement(name: :capability_statement)
|
35
|
+
|
36
|
+
assert_response_status(200)
|
37
|
+
assert_resource_type(:capability_statement)
|
38
|
+
assert_valid_resource
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module USCoreTestKit
|
2
|
+
class FHIRVersionTest < Inferno::Test
|
3
|
+
id :us_core_311_fhir_version
|
4
|
+
title 'Server is using FHIR R4'
|
5
|
+
description %(
|
6
|
+
This test inspects the CapabilityStatement returned by the server to
|
7
|
+
verify that the server is using FHIR R4.
|
8
|
+
)
|
9
|
+
|
10
|
+
run do
|
11
|
+
server_version = fhir_client.detect_version.to_s.upcase
|
12
|
+
assert server_version == 'R4', "Server is using FHIR version #{server_version} rather than R4"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module USCoreTestKit
|
2
|
+
class JSONSupportTest < Inferno::Test
|
3
|
+
id :us_core_311_json_support
|
4
|
+
title 'FHIR server capability states JSON support'
|
5
|
+
description %(
|
6
|
+
FHIR provides multiple [representation
|
7
|
+
formats](https://www.hl7.org/fhir/formats.html) for resources, including
|
8
|
+
JSON and XML. US Core profiles require servers to use the [JSON
|
9
|
+
representation](https://www.hl7.org/fhir/json.html):
|
10
|
+
|
11
|
+
[```The US Core Server **SHALL** Support json source formats for all US
|
12
|
+
Core
|
13
|
+
interactions.```](http://hl7.org/fhir/us/core/CapabilityStatement-us-core-server.html#behavior)
|
14
|
+
|
15
|
+
The FHIR conformance interaction require servers to describe which
|
16
|
+
formats are available for clients to use. The server must explicitly
|
17
|
+
state that JSON is supported. This is located in the [format
|
18
|
+
element](https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.format)
|
19
|
+
of the CapabilityStatement Resource.
|
20
|
+
|
21
|
+
This test checks that one of the following values are located in the
|
22
|
+
format field.
|
23
|
+
|
24
|
+
* json
|
25
|
+
* application/json
|
26
|
+
* application/fhir+json
|
27
|
+
)
|
28
|
+
uses_request :capability_statement
|
29
|
+
|
30
|
+
run do
|
31
|
+
assert_resource_type(:capability_statement)
|
32
|
+
|
33
|
+
json_formats = ['json', 'application/json', 'application/fhir+json']
|
34
|
+
server_formats = resource.format
|
35
|
+
|
36
|
+
assert server_formats.any? { |format| json_formats.include? format },
|
37
|
+
'CapabilityStatement does not state support for JSON'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
module USCoreTestKit
|
2
|
+
class ProfileSupportTest < Inferno::Test
|
3
|
+
id :us_core_311_profile_support
|
4
|
+
title 'Capability Statement lists support for required US Core Profiles'
|
5
|
+
description %(
|
6
|
+
The US Core Implementation Guide states:
|
7
|
+
|
8
|
+
```
|
9
|
+
The US Core Server SHALL:
|
10
|
+
1. Support the US Core Patient resource profile.
|
11
|
+
2. Support at least one additional resource profile from the list of US
|
12
|
+
Core Profiles.
|
13
|
+
```
|
14
|
+
)
|
15
|
+
uses_request :capability_statement
|
16
|
+
|
17
|
+
PROFILES = {
|
18
|
+
'AllergyIntolerance' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance'].freeze,
|
19
|
+
'CarePlan' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan'].freeze,
|
20
|
+
'CareTeam' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam'].freeze,
|
21
|
+
'Condition' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition'].freeze,
|
22
|
+
'Device' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-implantable-device'].freeze,
|
23
|
+
'DiagnosticReport' => [
|
24
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-lab',
|
25
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-diagnosticreport-note'
|
26
|
+
].freeze,
|
27
|
+
'DocumentReference' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference'].freeze,
|
28
|
+
'Encounter' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter'].freeze,
|
29
|
+
'Goal' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-goal'].freeze,
|
30
|
+
'Immunization' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization'].freeze,
|
31
|
+
'Location' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-location'].freeze,
|
32
|
+
'Medication' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication'].freeze,
|
33
|
+
'MedicationRequest' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest'].freeze,
|
34
|
+
'Observation' => [
|
35
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab',
|
36
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/pediatric-bmi-for-age',
|
37
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/pediatric-weight-for-height',
|
38
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-pulse-oximetry',
|
39
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus',
|
40
|
+
'http://hl7.org/fhir/StructureDefinition/bp',
|
41
|
+
'http://hl7.org/fhir/StructureDefinition/bodyheight',
|
42
|
+
'http://hl7.org/fhir/StructureDefinition/bodyweight',
|
43
|
+
'http://hl7.org/fhir/StructureDefinition/heartrate',
|
44
|
+
'http://hl7.org/fhir/StructureDefinition/resprate',
|
45
|
+
'http://hl7.org/fhir/StructureDefinition/bodytemp',
|
46
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/head-occipital-frontal-circumference-percentile'
|
47
|
+
].freeze,
|
48
|
+
'Organization' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization'].freeze,
|
49
|
+
'Patient' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient'].freeze,
|
50
|
+
'Practitioner' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner'].freeze,
|
51
|
+
'PractitionerRole' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole'].freeze,
|
52
|
+
'Procedure' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure'].freeze,
|
53
|
+
'Provenance' => ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance'].freeze
|
54
|
+
}.freeze
|
55
|
+
|
56
|
+
run do
|
57
|
+
assert_resource_type(:capability_statement)
|
58
|
+
capability_statement = resource
|
59
|
+
|
60
|
+
supported_resources =
|
61
|
+
capability_statement.rest
|
62
|
+
&.each_with_object([]) do |rest, resources|
|
63
|
+
rest.resource.each { |resource| resources << resource.type }
|
64
|
+
end.uniq
|
65
|
+
supported_profiles =
|
66
|
+
capability_statement.rest
|
67
|
+
&.flat_map(&:resource)
|
68
|
+
&.flat_map { |resource| resource.supportedProfile + [resource.profile] }
|
69
|
+
&.compact || []
|
70
|
+
supported_profiles.map! { |profile_url| profile_url.split('|').first }
|
71
|
+
|
72
|
+
assert supported_resources.include?('Patient'), 'US Core Patient profile not supported'
|
73
|
+
|
74
|
+
other_resources = PROFILES.keys.reject { |resource_type| resource_type == 'Patient' }
|
75
|
+
other_resources_supported = other_resources.any? { |resource| supported_resources.include? resource }
|
76
|
+
assert other_resources_supported, 'No US Core resources other than Patient are supported'
|
77
|
+
|
78
|
+
PROFILES.each do |resource_type, profiles|
|
79
|
+
next unless supported_resources.include? resource_type
|
80
|
+
|
81
|
+
profiles.each do |profile|
|
82
|
+
warning do
|
83
|
+
assert supported_profiles&.include?(profile),
|
84
|
+
"CapabilityStatement does not claim support for US Core #{resource_type} profile: #{profile}"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'tls_test_kit'
|
2
|
+
require_relative 'capability_statement/conformance_support_test'
|
3
|
+
require_relative 'capability_statement/fhir_version_test'
|
4
|
+
require_relative 'capability_statement/json_support_test'
|
5
|
+
require_relative 'capability_statement/profile_support_test'
|
6
|
+
|
7
|
+
module USCoreTestKit
|
8
|
+
class CapabilityStatementGroup < Inferno::TestGroup
|
9
|
+
id :us_core_311_capability_statement
|
10
|
+
title 'Capability Statement'
|
11
|
+
short_description 'Retrieve information about supported server functionality using the FHIR capabilties interaction.'
|
12
|
+
description %(
|
13
|
+
# Background
|
14
|
+
The #{title} Sequence tests a FHIR server's ability to formally describe
|
15
|
+
features supported by the API by using the [Capability
|
16
|
+
Statement](https://www.hl7.org/fhir/capabilitystatement.html) resource.
|
17
|
+
The features described in the Capability Statement must be consistent with
|
18
|
+
the required capabilities of a US Core server. The Capability Statement
|
19
|
+
must also advertise the location of the required SMART on FHIR endpoints
|
20
|
+
that enable authenticated access to the FHIR server resources.
|
21
|
+
|
22
|
+
The Capability Statement resource allows clients to determine which
|
23
|
+
resources are supported by a FHIR Server. Not all servers are expected to
|
24
|
+
implement all possible queries and data elements described in the US Core
|
25
|
+
API. For example, the US Core Implementation Guide requires that the
|
26
|
+
Patient resource and only one additional resource profile from the US Core
|
27
|
+
Profiles.
|
28
|
+
|
29
|
+
# Test Methodology
|
30
|
+
|
31
|
+
This test sequence accesses the server endpoint at `/metadata` using a
|
32
|
+
`GET` request. It parses the Capability Statement and verifies that:
|
33
|
+
|
34
|
+
* The endpoint is secured by an appropriate cryptographic protocol
|
35
|
+
* The resource matches the expected FHIR version defined by the tests
|
36
|
+
* The resource is a valid FHIR resource
|
37
|
+
* The server claims support for JSON encoding of resources
|
38
|
+
* The server claims support for the Patient resource and one other
|
39
|
+
resource
|
40
|
+
|
41
|
+
It collects the following information that is saved in the testing session
|
42
|
+
for use by later tests:
|
43
|
+
|
44
|
+
* List of resources supported
|
45
|
+
* List of queries parameters supported
|
46
|
+
)
|
47
|
+
run_as_group
|
48
|
+
|
49
|
+
test from: :tls_version_test,
|
50
|
+
id: :standalone_auth_tls,
|
51
|
+
title: 'FHIR server secured by transport layer security',
|
52
|
+
description: %(
|
53
|
+
Systems **SHALL** use TLS version 1.2 or higher for all transmissions
|
54
|
+
not taking place over a secure network connection.
|
55
|
+
),
|
56
|
+
config: {
|
57
|
+
options: { minimum_allowed_version: OpenSSL::SSL::TLS1_2_VERSION }
|
58
|
+
}
|
59
|
+
test from: :us_core_311_conformance_support
|
60
|
+
test from: :us_core_311_fhir_version
|
61
|
+
test from: :us_core_311_json_support
|
62
|
+
test from: :us_core_311_profile_support
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,208 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require_relative '../search_test'
|
3
|
+
|
4
|
+
module USCoreTestKit
|
5
|
+
class ClinicalNotesGuidanceGroup < Inferno::TestGroup
|
6
|
+
id :us_core_311_clinical_notes_guidance
|
7
|
+
title 'Clinical Notes Guidance'
|
8
|
+
short_description 'Verify DiagnosticReport and DocumentReference resources support the US Core Clinical Notes Guidance.'
|
9
|
+
description %(
|
10
|
+
The #{title} Sequence tests DiagnosticReport and DocumentReference
|
11
|
+
resources associated with the provided patient. The resources returned
|
12
|
+
will be checked for consistency against the [US Core Clinical Notes
|
13
|
+
Guidance](https://www.hl7.org/fhir/us/core/clinical-notes-guidance.html)
|
14
|
+
|
15
|
+
In this set of tests, Inferno serves as a FHIR client that attempts to
|
16
|
+
access the different types of Clinical Notes specified in the guidance.
|
17
|
+
The provided patient needs to have the following five common clinical
|
18
|
+
notes as DocumentReference resources:
|
19
|
+
|
20
|
+
* Consultation Note (11488-4)
|
21
|
+
* Discharge Summary (18842-5)
|
22
|
+
* History & Physical Note (34117-2)
|
23
|
+
* Procedures Note (28570-0)
|
24
|
+
* Progress Note (11506-3)
|
25
|
+
|
26
|
+
The provided patient also needs to have the following three common
|
27
|
+
diagnostic reports as DiagnosticReport resources:
|
28
|
+
|
29
|
+
* Cardiology (LP29708-2)
|
30
|
+
* Pathology (LP7839-6)
|
31
|
+
* Radiology (LP29684-5)
|
32
|
+
|
33
|
+
In order to enable consistent access to scanned narrative-only clinical
|
34
|
+
reports, the US Core server shall expose these reports through both
|
35
|
+
DiagnosticReport and DocumentReference by representing the same attachment
|
36
|
+
url.
|
37
|
+
)
|
38
|
+
run_as_group
|
39
|
+
|
40
|
+
test do
|
41
|
+
include SearchTest
|
42
|
+
|
43
|
+
id :us_core_311_clinical_note_types
|
44
|
+
title 'Server demonstrates support for the required DocumentReference types and DiagnosticReport categories.'
|
45
|
+
description %(
|
46
|
+
[The US Core Clinical Notes
|
47
|
+
Guidance](https://www.hl7.org/fhir/us/core/clinical-notes-guidance.html)
|
48
|
+
states that systems SHALL support the following five "Common Clinical
|
49
|
+
Notes":
|
50
|
+
|
51
|
+
* Consultation Note (11488-4)
|
52
|
+
* Discharge Summary (18842-5)
|
53
|
+
* History & Physical Note (34117-2)
|
54
|
+
* Procedures Note (28570-0)
|
55
|
+
* Progress Note (11506-3)
|
56
|
+
|
57
|
+
and three DiagnosticReport categories:
|
58
|
+
|
59
|
+
* Cardiology (LP29708-2)
|
60
|
+
* Pathology (LP7839-6)
|
61
|
+
* Radiology (LP29684-5)
|
62
|
+
)
|
63
|
+
input :patient_ids,
|
64
|
+
title: 'Patient IDs',
|
65
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
66
|
+
|
67
|
+
REQUIRED_TYPES = ['11488-4', '18842-5', '34117-2', '28570-0', '11506-3'].freeze
|
68
|
+
REQUIRED_CATEGORIES = ['LP29708-2', 'LP7839-6', 'LP29684-5'].freeze
|
69
|
+
|
70
|
+
def document_reference_types_found(patient_id)
|
71
|
+
search_params = { patient: patient_id }
|
72
|
+
status_values = ['current,superseded,entered-in-error']
|
73
|
+
|
74
|
+
search_and_check_response(search_params, 'DocumentReference')
|
75
|
+
|
76
|
+
if response[:status] == 400
|
77
|
+
perform_search_with_status(
|
78
|
+
params,
|
79
|
+
patient_id,
|
80
|
+
status_search_values: status_values,
|
81
|
+
resource_type: 'DocumentReference'
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
resources = fetch_all_bundled_resources(resource_type: 'DocumentReference')
|
86
|
+
.select { |resource| resource.resourceType == 'DocumentReference' }
|
87
|
+
|
88
|
+
scratch[:document_reference_attachments] ||= {}
|
89
|
+
scratch[:document_reference_attachments][patient_id] ||= {}
|
90
|
+
attachments = scratch[:document_reference_attachments][patient_id]
|
91
|
+
|
92
|
+
codes_found =
|
93
|
+
resources.flat_map do |resource|
|
94
|
+
resource.content
|
95
|
+
&.select { |content| !attachments.key? content.attachment&.url}
|
96
|
+
&.each { |content| attachments[content.attachment.url] = resource.id }
|
97
|
+
|
98
|
+
resource.type&.coding&.map { |coding| coding.code }
|
99
|
+
end
|
100
|
+
|
101
|
+
codes_found.compact.uniq
|
102
|
+
end
|
103
|
+
|
104
|
+
def diagnostic_report_categories_found(patient_id)
|
105
|
+
search_params = { patient: patient_id }
|
106
|
+
status_values = ['registered,partial,preliminary,final,amended,corrected,appended,cancelled,entered-in-error,unknown']
|
107
|
+
|
108
|
+
search_and_check_response(search_params, 'DiagnosticReport')
|
109
|
+
|
110
|
+
if response[:status] == 400
|
111
|
+
perform_search_with_status(
|
112
|
+
params,
|
113
|
+
patient_id,
|
114
|
+
status_search_values: status_values,
|
115
|
+
resource_type: 'DiagnosticReport'
|
116
|
+
)
|
117
|
+
end
|
118
|
+
|
119
|
+
resources = fetch_all_bundled_resources(resource_type: 'DiagnosticReport')
|
120
|
+
.select { |resource| resource.resourceType == 'DiagnosticReport' }
|
121
|
+
|
122
|
+
scratch[:diagnostic_report_attachments] ||= {}
|
123
|
+
scratch[:diagnostic_report_attachments][patient_id] ||= {}
|
124
|
+
attachments = scratch[:diagnostic_report_attachments][patient_id]
|
125
|
+
|
126
|
+
codes_found =
|
127
|
+
resources.flat_map do |resource|
|
128
|
+
resource.presentedForm
|
129
|
+
&.select { |attachment| !attachments.key? attachment&.url}
|
130
|
+
&.each { |attachment| attachments[attachment.url] = resource.id }
|
131
|
+
|
132
|
+
resource.category&.flat_map { |category| category.coding&.map { |coding| coding.code } }
|
133
|
+
end
|
134
|
+
|
135
|
+
codes_found.compact.uniq
|
136
|
+
end
|
137
|
+
|
138
|
+
run do
|
139
|
+
missing_types = REQUIRED_TYPES.dup
|
140
|
+
missing_categories = REQUIRED_CATEGORIES.dup
|
141
|
+
|
142
|
+
patient_id_list.each do |patient_id|
|
143
|
+
missing_types -= document_reference_types_found(patient_id)
|
144
|
+
missing_categories -= diagnostic_report_categories_found(patient_id)
|
145
|
+
end
|
146
|
+
|
147
|
+
pass if missing_types.empty? && missing_categories.empty?
|
148
|
+
|
149
|
+
message = 'Could not find these '
|
150
|
+
|
151
|
+
if missing_types.present?
|
152
|
+
message += "DocumentReference types: #{missing_types.join(', ')}"
|
153
|
+
message += ' and ' if missing_categories.present?
|
154
|
+
end
|
155
|
+
|
156
|
+
if missing_categories.present?
|
157
|
+
message += "DiagnosticReport categories #{missing_categories.join(', ')}."
|
158
|
+
end
|
159
|
+
|
160
|
+
skip message
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
test do
|
165
|
+
id :us_core_311_clinical_note_attachments
|
166
|
+
title 'DiagnosticReport and DocumentReference reference the same attachment'
|
167
|
+
description %(
|
168
|
+
All presentedForms urls referenced in DiagnosticReports shall have
|
169
|
+
corresponding content attachment urls referenced in DocumentReference.
|
170
|
+
|
171
|
+
There is no single best practice for representing a scanned, or
|
172
|
+
narrative-only report due to the overlapping scope of the underlying
|
173
|
+
resources and variability in system implementation. Reports may be
|
174
|
+
represented by either a DocumentReference or a DiagnosticReport. To
|
175
|
+
require Clients query both DocumentReference and DiagnosticReport to get
|
176
|
+
all the information for a patient is potentially dangerous if a client
|
177
|
+
doesn’t understand or follow this requirement.
|
178
|
+
|
179
|
+
To simplify the requirement, US Core IG requires servers implement the
|
180
|
+
duplicate reference to allow a client to find a Pathology report, or
|
181
|
+
other Diagnostic Reports, in either Resource.
|
182
|
+
)
|
183
|
+
|
184
|
+
run do
|
185
|
+
skip_if scratch[:document_reference_attachments].blank?,
|
186
|
+
"No DocumentReference attachments found"
|
187
|
+
skip_if scratch[:diagnostic_report_attachments].blank?,
|
188
|
+
"No DiagnosticReport attachments found"
|
189
|
+
|
190
|
+
unmatched_attachment_messages =
|
191
|
+
scratch[:diagnostic_report_attachments].flat_map do |patient_id, report_attachments|
|
192
|
+
unmatched_urls = report_attachments.keys
|
193
|
+
|
194
|
+
if scratch[:document_reference_attachments].key? patient_id
|
195
|
+
unmatched_urls -= scratch[:document_reference_attachments][patient_id].keys
|
196
|
+
end
|
197
|
+
|
198
|
+
unmatched_urls.map do |url|
|
199
|
+
"#{url} in DiagnosticReport/#{report_attachments[patient_id][url]} for Patient #{patient_id}"
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
assert unmatched_attachment_messages.empty?,
|
204
|
+
"Attachments #{unmatched_attachment_messages.join(', ')} are not referenced in any DocumentReference"
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|