cancer_registry_reporting_test_kit 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/config/presets/hdea_report_preset.json +14 -0
- data/config/presets/inferno_reference_server_preset.json.erb +84 -0
- data/lib/cancer_registry_reporting_test_kit/bundle_parse.rb +161 -0
- data/lib/cancer_registry_reporting_test_kit/docs/ehr_suite_description.md +134 -0
- data/lib/cancer_registry_reporting_test_kit/docs/hdea_suite_description.md +108 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/ehr_capability_statement/mcode_capability_statement_profile_support.rb +40 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/ehr_data_access_group.rb +131 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_administration/medication_administration_must_support_test.rb +43 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_administration/medication_administration_search_test.rb +51 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_administration/medication_administration_validation_test.rb +41 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_administration/metadata.yml +72 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_administration_group.rb +72 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_request/medication_request_must_support_test.rb +55 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_request/medication_request_search_test.rb +55 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_request/medication_request_validation_test.rb +38 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_request/metadata.yml +94 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/medication_request_group.rb +73 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/primary_cancer_condition_group.rb +73 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/primary_condition/metadata.yml +100 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/primary_condition/primary_cancer_condition_must_support_test.rb +50 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/primary_condition/primary_cancer_condition_search_test.rb +70 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/primary_condition/primary_cancer_condition_validation_test.rb +39 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/radiotherapy_procedure/metadata.yml +99 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/radiotherapy_procedure/radiotherapy_procedure_must_support_test.rb +46 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/radiotherapy_procedure/radiotherapy_procedure_search_test.rb +51 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/radiotherapy_procedure/radiotherapy_procedure_validation_test.rb +37 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/radiotherapy_procedure_group.rb +83 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/secondary_cancer_condition_group.rb +68 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/secondary_condition/metadata.yml +102 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/secondary_condition/secondary_cancer_condition_must_support_test.rb +50 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/secondary_condition/secondary_cancer_condition_search_test.rb +70 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/secondary_condition/secondary_cancer_condition_validation_test.rb +39 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_distant_metastases_category/metadata.yml +65 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_distant_metastases_category/tnm_distant_metastases_category_must_support_test.rb +44 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_distant_metastases_category/tnm_distant_metastases_category_search_test.rb +69 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_distant_metastases_category/tnm_distant_metastases_category_validation_test.rb +39 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_distant_metastases_category_group.rb +74 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_primary_tumor_category/metadata.yml +64 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_primary_tumor_category/tnm_primary_tumor_category_must_support_test.rb +44 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_primary_tumor_category/tnm_primary_tumor_category_search_test.rb +69 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_primary_tumor_category/tnm_primary_tumor_category_validation_test.rb +39 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_primary_tumor_category_group.rb +73 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_regional_nodes_category/metadata.yml +64 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_regional_nodes_category/tnm_regional_nodes_category_must_support_test.rb +44 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_regional_nodes_category/tnm_regional_nodes_category_search_test.rb +69 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_regional_nodes_category/tnm_regional_nodes_category_validation_test.rb +39 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_regional_nodes_category_group.rb +73 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_stage_group/metadata.yml +68 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_stage_group/tnm_stage_group_must_support_test.rb +45 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_stage_group/tnm_stage_group_search_test.rb +69 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_stage_group/tnm_stage_group_validation_test.rb +39 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite/mcode_data_access_resources/tnm_stage_group_group.rb +72 -0
- data/lib/cancer_registry_reporting_test_kit/ehr_suite.rb +69 -0
- data/lib/cancer_registry_reporting_test_kit/fhir_resource_navigation.rb +174 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/group_generator.rb +47 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/group_metadata.rb +86 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/group_metadata_extractor.rb +205 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/ig_loader.rb +78 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/ig_metadata.rb +26 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/ig_metadata_extractor.rb +78 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/ig_resources.rb +56 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/must_support_metadata_extractor.rb +399 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/must_support_test_generator.rb +134 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/naming.rb +168 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/special_cases.rb +43 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/templates/must_support.rb.erb +41 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/templates/validation.rb.erb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/terminology_binding_metadata_extractor.rb +118 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/validation_test_generator.rb +125 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator/value_extractor.rb +134 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_generator.rb +66 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/author_validation_test.rb +61 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/organization_metadata.yml +47 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/organization_must_support_test.rb +73 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/practitioner_metadata.yml +51 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/practitioner_must_support_test.rb +73 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/practitioner_role_metadata.yml +48 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/author/practitioner_role_must_support_test.rb +66 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/bundle_resources_group.rb +213 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/ccrr_content_bundle_parse_and_validation_test.rb +67 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/allergy_intolerance/allergy_intolerance_must_support_test.rb +46 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/allergy_intolerance/allergy_intolerance_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/allergy_intolerance/metadata.yml +36 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/care_plan/care_plan_must_support_test.rb +48 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/care_plan/care_plan_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/care_plan/metadata.yml +50 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/ccrr_content_bundle/ccrr_content_bundle_must_support_test.rb +43 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/ccrr_content_bundle/metadata.yml +36 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/central_cancer_registry_primary_cancer_condition/central_cancer_registry_primary_cancer_condition_must_support_test.rb +59 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/central_cancer_registry_primary_cancer_condition/central_cancer_registry_primary_cancer_condition_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/central_cancer_registry_primary_cancer_condition/metadata.yml +86 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/composition/composition_must_support_test.rb +109 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/composition/composition_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/composition/metadata.yml +272 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/condition/condition_must_support_test.rb +45 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/condition/condition_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/condition/metadata.yml +33 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/diagnostic_report_lab/diagnostic_report_lab_must_support_test.rb +49 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/diagnostic_report_lab/diagnostic_report_lab_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/diagnostic_report_lab/metadata.yml +57 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/diagnostic_report_note/diagnostic_report_note_must_support_test.rb +53 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/diagnostic_report_note/diagnostic_report_note_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/diagnostic_report_note/metadata.yml +75 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/document_reference/document_reference_must_support_test.rb +57 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/document_reference/document_reference_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/document_reference/metadata.yml +68 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/encounter/encounter_must_support_test.rb +59 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/encounter/encounter_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/encounter/metadata.yml +73 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_radiotherapy_course_summary/mcode_radiotherapy_course_summary_must_support_test.rb +52 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_radiotherapy_course_summary/mcode_radiotherapy_course_summary_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_radiotherapy_course_summary/metadata.yml +59 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_secondary_cancer_condition/mcode_secondary_cancer_condition_must_support_test.rb +56 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_secondary_cancer_condition/mcode_secondary_cancer_condition_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_secondary_cancer_condition/metadata.yml +77 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_tnm_stage_group/mcode_tnm_stage_group_must_support_test.rb +48 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_tnm_stage_group/mcode_tnm_stage_group_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/mcode_tnm_stage_group/metadata.yml +46 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication/medication_must_support_test.rb +41 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication/medication_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication/metadata.yml +26 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_administration/medication_administration_must_support_test.rb +48 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_administration/medication_administration_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_administration/metadata.yml +48 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_request/medication_request_must_support_test.rb +57 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_request/medication_request_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_request/metadata.yml +86 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_statement/medication_statement_must_support_test.rb +41 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_statement/medication_statement_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/medication_statement/metadata.yml +26 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation/metadata.yml +26 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation/observation_must_support_test.rb +41 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation/observation_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation_lab/metadata.yml +53 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation_lab/observation_lab_must_support_test.rb +50 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation_lab/observation_lab_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/odh_usual_work/metadata.yml +81 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/odh_usual_work/odh_usual_work_must_support_test.rb +49 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/odh_usual_work/odh_usual_work_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/organization/metadata.yml +46 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/organization/organization_must_support_test.rb +55 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/organization/organization_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/patient/metadata.yml +51 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/patient/patient_must_support_test.rb +58 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/patient/patient_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/practitioner/metadata.yml +50 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/practitioner/practitioner_must_support_test.rb +55 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/practitioner/practitioner_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/practitioner_role/metadata.yml +47 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/practitioner_role/practitioner_role_must_support_test.rb +49 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/practitioner_role/practitioner_role_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/procedure/metadata.yml +37 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/procedure/procedure_must_support_test.rb +44 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/procedure/procedure_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/service_request/metadata.yml +26 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/service_request/service_request_must_support_test.rb +41 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/service_request/service_request_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/smokingstatus/metadata.yml +58 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/smokingstatus/smokingstatus_must_support_test.rb +47 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/smokingstatus/smokingstatus_validation_test.rb +35 -0
- data/lib/cancer_registry_reporting_test_kit/hdea_suite.rb +80 -0
- data/lib/cancer_registry_reporting_test_kit/igs/README.md +21 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-cancer-related-medication-administration.json +1905 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-cancer-related-medication-request.json +3611 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-primary-cancer-condition.json +2246 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-radiotherapy-course-summary.json +2700 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-secondary-cancer-condition.json +2419 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-tnm-distant-metastases-category.json +2320 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-tnm-primary-tumor-category.json +2320 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-tnm-regional-nodes-category.json +2320 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-mcode-tnm-stage-group.json +2414 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-medicationstatement.profile.json +1578 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-observation.profile.json +3510 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-odh-UsualWork.json +7248 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-servicerequest.profile.json +3048 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-allergyintolerance.json +1842 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-careplan.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-condition.json +2154 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-diagnosticreport-lab.json +2002 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-diagnosticreport-note.json +2049 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-documentreference.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-encounter.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-medication.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-observation-lab.json +3153 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-organization.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-patient.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-practitioner.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-practitionerrole.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-procedure.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100/StructureDefinition-us-core-smokingstatus.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/ccrr_v100.tgz +0 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/.index.db +0 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/.index.json +4 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/CapabilityStatement-central-cancer-registry-reporting-ehr.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/ImplementationGuide-hl7.fhir.us.central-cancer-registry-reporting.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-cancer-encounter.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-cancer-patient.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-ccrr-composition.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-ccrr-content-bundle.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-ccrr-plandefinition.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-ccrr-reporting-bundle.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-central-cancer-registry-primary-cancer-condition.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-central-cancer-registry-reporting-messageheader.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-us-ph-patient.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/StructureDefinition-us-ph-tribal-affiliation-extension.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/ValueSet-cancer-core-reportability-codes.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/AllergyIntolerance-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/BodyStructure-jenny-m-chest-wall-lymph-nodes-treatment-volume.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/BodyStructure-jenny-m-chest-wall-treatment-volume.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Bundle-ccrr-content-bundle-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Bundle-central-cancer-registry-reporting-specification-bundle-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Bundle-reporting-bundle-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Composition-ccrr-composition-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Condition-primary-cancer-condition-breast.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Encounter-encounter-cancer-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Endpoint-example-healthcare-endpoint.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Endpoint-example-ph-endpoint.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/MedicationAdministration-cancer-related-medication-administration-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/MessageHeader-messageheader-example-reportheader.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Observation-cancer-stage-group-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Observation-tnm-clinical-distant-metastases-category-cM0.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Observation-tnm-clinical-primary-tumor-category-cT3.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Observation-tnm-clinical-regional-nodes-category-cN3.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Organization-example-healthcare-org.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Organization-example-pha-org.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Patient-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/PlanDefinition-plandefinition-central-cancer-registry-reporting-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Practitioner-1.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/example/Procedure-radiotherapy-example.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/openapi/central-cancer-registry-reporting-ehr.openapi.json +364 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/other/ig-r4.jsonX +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/other/spec.internals +293 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/other/validation-oo.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/other/validation-summary.json +1 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/package.json +30 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-cancer-encounter.sch +19 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-cancer-patient.sch +175 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-ccrr-composition.sch +61 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-ccrr-content-bundle.sch +12 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-ccrr-plandefinition.sch +331 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-ccrr-reporting-bundle.sch +12 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-central-cancer-registry-primary-cancer-condition.sch +31 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-central-cancer-registry-reporting-messageheader.sch +27 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-us-ph-patient.sch +217 -0
- data/lib/cancer_registry_reporting_test_kit/igs/package/xml/StructureDefinition-us-ph-tribal-affiliation-extension.sch +36 -0
- data/lib/cancer_registry_reporting_test_kit/metadata.rb +71 -0
- data/lib/cancer_registry_reporting_test_kit/must_support_test.rb +263 -0
- data/lib/cancer_registry_reporting_test_kit/primitive_type.rb +7 -0
- data/lib/cancer_registry_reporting_test_kit/requirements/cancer-registry-reporting-test-kit_out_of_scope_requirements.csv +77 -0
- data/lib/cancer_registry_reporting_test_kit/requirements/cancer-registry-reporting-test-kit_requirements.csv +162 -0
- data/lib/cancer_registry_reporting_test_kit/requirements/generated/cancer-registry-reporting-test-kit_requirements_coverage.csv +161 -0
- data/lib/cancer_registry_reporting_test_kit/search_test.rb +897 -0
- data/lib/cancer_registry_reporting_test_kit/search_test_properties.rb +58 -0
- data/lib/cancer_registry_reporting_test_kit/validation_test.rb +68 -0
- data/lib/cancer_registry_reporting_test_kit/version.rb +6 -0
- data/lib/cancer_registry_reporting_test_kit.rb +6 -0
- data/lib/inferno_requirements_tools/ext/inferno_core/runnable.rb +22 -0
- data/lib/inferno_requirements_tools/tasks/requirements_coverage.rb +284 -0
- data/lib/requirements_config.yaml +22 -0
- metadata +341 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
:name: mcode_cancer_related_medication_administration
|
3
|
+
:class_name: McodeCancerRelatedMedicationAdministrationSequence
|
4
|
+
:version: v1.0.0
|
5
|
+
:reformatted_version: v100
|
6
|
+
:resource: MedicationAdministration
|
7
|
+
:profile_url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-administration
|
8
|
+
:profile_name: Cancer-Related Medication Administration Profile
|
9
|
+
:profile_version: 3.0.0
|
10
|
+
:title: Cancer-Related Medication Administration
|
11
|
+
:short_description: Verify support for the server capabilities required by the Cancer-Related
|
12
|
+
Medication Administration Profile.
|
13
|
+
:must_supports:
|
14
|
+
:extensions:
|
15
|
+
- :id: MedicationAdministration.extension:treatmentIntent
|
16
|
+
:path: extension
|
17
|
+
:url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-procedure-intent
|
18
|
+
:slices: []
|
19
|
+
:elements:
|
20
|
+
- :path: status
|
21
|
+
- :path: statusReason
|
22
|
+
- :path: medication[x]
|
23
|
+
:types:
|
24
|
+
- Reference
|
25
|
+
- :path: subject
|
26
|
+
:types:
|
27
|
+
- Reference
|
28
|
+
:target_profiles:
|
29
|
+
- http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-patient
|
30
|
+
- :path: effective[x]
|
31
|
+
- :path: reasonCode
|
32
|
+
- :path: reasonReference
|
33
|
+
:types:
|
34
|
+
- Reference
|
35
|
+
:target_profiles:
|
36
|
+
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns
|
37
|
+
:mandatory_elements:
|
38
|
+
- MedicationAdministration.status
|
39
|
+
- MedicationAdministration.medication[x]
|
40
|
+
- MedicationAdministration.subject
|
41
|
+
- MedicationAdministration.effective[x]
|
42
|
+
- MedicationAdministration.performer.actor
|
43
|
+
:tests:
|
44
|
+
- :id: ccrr_v100_medication_administration_must_support_test
|
45
|
+
:file_name: medication_administration_must_support_test.rb
|
46
|
+
- :id: ccrr_v100_medication_administration_validation_test
|
47
|
+
:file_name: medication_administration_validation_test.rb
|
48
|
+
:id: ccrr_v100_medication_administration
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../must_support_test'
|
4
|
+
require_relative '../../../../hdea_generator/group_metadata'
|
5
|
+
|
6
|
+
module CancerRegistryReportingTestKit
|
7
|
+
module HDEAV100
|
8
|
+
class MedicationRequestMustSupportTest < Inferno::Test
|
9
|
+
include CancerRegistryReportingTestKit::MustSupportTest
|
10
|
+
|
11
|
+
title 'Cancer-Related Medication Request profile must support element coverage'
|
12
|
+
description %(
|
13
|
+
This test looks across all instances
|
14
|
+
associated with the [Cancer-Related Medication Request profile](http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request|3.0.0)
|
15
|
+
found in the provided report Bundles and verifies that they
|
16
|
+
contain populated examples of the following must support elements
|
17
|
+
defined in the profile:
|
18
|
+
|
19
|
+
* MedicationRequest.authoredOn
|
20
|
+
* MedicationRequest.category
|
21
|
+
* MedicationRequest.category:us-core
|
22
|
+
* MedicationRequest.dosageInstruction
|
23
|
+
* MedicationRequest.dosageInstruction.text
|
24
|
+
* MedicationRequest.encounter
|
25
|
+
* MedicationRequest.extension:treatmentIntent
|
26
|
+
* MedicationRequest.intent
|
27
|
+
* MedicationRequest.medication[x]
|
28
|
+
* MedicationRequest.reasonCode
|
29
|
+
* MedicationRequest.reasonReference
|
30
|
+
* MedicationRequest.reportedBoolean
|
31
|
+
* MedicationRequest.reportedReference
|
32
|
+
* MedicationRequest.requester
|
33
|
+
* MedicationRequest.status
|
34
|
+
* MedicationRequest.statusReason
|
35
|
+
* MedicationRequest.subject
|
36
|
+
)
|
37
|
+
|
38
|
+
id :ccrr_v100_medication_request_must_support_test
|
39
|
+
|
40
|
+
def resource_type
|
41
|
+
'MedicationRequest'
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.metadata
|
45
|
+
@metadata ||= HdeaGenerator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
46
|
+
end
|
47
|
+
|
48
|
+
def scratch_resources
|
49
|
+
scratch[:medication_request_resources] ||= {}
|
50
|
+
end
|
51
|
+
|
52
|
+
run do
|
53
|
+
perform_must_support_test(all_scratch_resources)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../validation_test'
|
4
|
+
|
5
|
+
module CancerRegistryReportingTestKit
|
6
|
+
module HDEAV100
|
7
|
+
class MedicationRequestValidationTest < Inferno::Test
|
8
|
+
include CancerRegistryReportingTestKit::ValidationTest
|
9
|
+
|
10
|
+
id :ccrr_v100_medication_request_validation_test
|
11
|
+
title 'Cancer-Related Medication Request profile conformance'
|
12
|
+
description %(
|
13
|
+
This test verifies that MedicationRequest instances
|
14
|
+
found in the Plan of Treatment sections of the provided reports conform to the
|
15
|
+
[Cancer-Related Medication Request profile](http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request|3.0.0).
|
16
|
+
)
|
17
|
+
|
18
|
+
|
19
|
+
def resource_type
|
20
|
+
'MedicationRequest'
|
21
|
+
end
|
22
|
+
|
23
|
+
def scratch_resources
|
24
|
+
scratch[:medication_request_resources] ||= {}
|
25
|
+
end
|
26
|
+
|
27
|
+
run do
|
28
|
+
perform_validation_test(scratch_resources[:all] || [],
|
29
|
+
'http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request',
|
30
|
+
'3.0.0',
|
31
|
+
skip_if_empty: true)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
:name: mcode_cancer_related_medication_request
|
3
|
+
:class_name: McodeCancerRelatedMedicationRequestSequence
|
4
|
+
:version: v1.0.0
|
5
|
+
:reformatted_version: v100
|
6
|
+
:resource: MedicationRequest
|
7
|
+
:profile_url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-related-medication-request
|
8
|
+
:profile_name: Cancer-Related Medication Request Profile
|
9
|
+
:profile_version: 3.0.0
|
10
|
+
:title: Cancer-Related Medication Request
|
11
|
+
:short_description: Verify support for the server capabilities required by the Cancer-Related
|
12
|
+
Medication Request Profile.
|
13
|
+
:must_supports:
|
14
|
+
:extensions:
|
15
|
+
- :id: MedicationRequest.extension:treatmentIntent
|
16
|
+
:path: extension
|
17
|
+
:url: http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-procedure-intent
|
18
|
+
:slices:
|
19
|
+
- :slice_id: MedicationRequest.category:us-core
|
20
|
+
:slice_name: us-core
|
21
|
+
:path: category
|
22
|
+
:discriminator:
|
23
|
+
:type: requiredBinding
|
24
|
+
:path: ''
|
25
|
+
:values:
|
26
|
+
- :system: http://terminology.hl7.org/CodeSystem/medicationrequest-category
|
27
|
+
:code: inpatient
|
28
|
+
- :system: http://terminology.hl7.org/CodeSystem/medicationrequest-category
|
29
|
+
:code: outpatient
|
30
|
+
- :system: http://terminology.hl7.org/CodeSystem/medicationrequest-category
|
31
|
+
:code: community
|
32
|
+
- :system: http://terminology.hl7.org/CodeSystem/medicationrequest-category
|
33
|
+
:code: discharge
|
34
|
+
:elements:
|
35
|
+
- :path: status
|
36
|
+
- :path: statusReason
|
37
|
+
- :path: intent
|
38
|
+
- :path: category
|
39
|
+
- :path: reportedBoolean
|
40
|
+
:original_path: reported[x]
|
41
|
+
- :path: reportedReference
|
42
|
+
:original_path: reported[x]
|
43
|
+
:types:
|
44
|
+
- Reference
|
45
|
+
:target_profiles:
|
46
|
+
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
|
47
|
+
- :path: medication[x]
|
48
|
+
:types:
|
49
|
+
- Reference
|
50
|
+
- :path: subject
|
51
|
+
:types:
|
52
|
+
- Reference
|
53
|
+
:target_profiles:
|
54
|
+
- http://hl7.org/fhir/us/mcode/StructureDefinition/mcode-cancer-patient
|
55
|
+
- :path: encounter
|
56
|
+
:types:
|
57
|
+
- Reference
|
58
|
+
:target_profiles:
|
59
|
+
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter
|
60
|
+
- :path: authoredOn
|
61
|
+
- :path: requester
|
62
|
+
:types:
|
63
|
+
- Reference
|
64
|
+
:target_profiles:
|
65
|
+
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner
|
66
|
+
- :path: reasonCode
|
67
|
+
- :path: reasonReference
|
68
|
+
:types:
|
69
|
+
- Reference
|
70
|
+
:target_profiles:
|
71
|
+
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-problems-health-concerns
|
72
|
+
- :path: dosageInstruction
|
73
|
+
- :path: dosageInstruction.text
|
74
|
+
:mandatory_elements:
|
75
|
+
- MedicationRequest.status
|
76
|
+
- MedicationRequest.intent
|
77
|
+
- MedicationRequest.medication[x]
|
78
|
+
- MedicationRequest.subject
|
79
|
+
- MedicationRequest.requester
|
80
|
+
- MedicationRequest.substitution.allowed[x]
|
81
|
+
:tests:
|
82
|
+
- :id: ccrr_v100_medication_request_must_support_test
|
83
|
+
:file_name: medication_request_must_support_test.rb
|
84
|
+
- :id: ccrr_v100_medication_request_validation_test
|
85
|
+
:file_name: medication_request_validation_test.rb
|
86
|
+
:id: ccrr_v100_medication_request
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../must_support_test'
|
4
|
+
require_relative '../../../../hdea_generator/group_metadata'
|
5
|
+
|
6
|
+
module CancerRegistryReportingTestKit
|
7
|
+
module HDEAV100
|
8
|
+
class MedicationStatementMustSupportTest < Inferno::Test
|
9
|
+
include CancerRegistryReportingTestKit::MustSupportTest
|
10
|
+
|
11
|
+
title 'Base MedicationStatement profile must support element coverage'
|
12
|
+
description %(
|
13
|
+
This test looks across all instances
|
14
|
+
associated with the [Base MedicationStatement profile](http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1)
|
15
|
+
found in the provided report Bundles and verifies that they
|
16
|
+
contain populated examples of the following must support elements
|
17
|
+
defined in the profile:
|
18
|
+
|
19
|
+
|
20
|
+
)
|
21
|
+
|
22
|
+
id :ccrr_v100_medication_statement_must_support_test
|
23
|
+
|
24
|
+
def resource_type
|
25
|
+
'MedicationStatement'
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.metadata
|
29
|
+
@metadata ||= HdeaGenerator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
30
|
+
end
|
31
|
+
|
32
|
+
def scratch_resources
|
33
|
+
scratch[:medication_statement_resources] ||= {}
|
34
|
+
end
|
35
|
+
|
36
|
+
run do
|
37
|
+
perform_must_support_test(all_scratch_resources)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../validation_test'
|
4
|
+
|
5
|
+
module CancerRegistryReportingTestKit
|
6
|
+
module HDEAV100
|
7
|
+
class MedicationStatementValidationTest < Inferno::Test
|
8
|
+
include CancerRegistryReportingTestKit::ValidationTest
|
9
|
+
|
10
|
+
id :ccrr_v100_medication_statement_validation_test
|
11
|
+
title 'Base MedicationStatement profile conformance'
|
12
|
+
description %(
|
13
|
+
This test verifies that MedicationStatement instances
|
14
|
+
found in the Medications and Medications Administered sections of the provided reports conform to the
|
15
|
+
[Base MedicationStatement profile](http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1).
|
16
|
+
)
|
17
|
+
|
18
|
+
|
19
|
+
def resource_type
|
20
|
+
'MedicationStatement'
|
21
|
+
end
|
22
|
+
|
23
|
+
def scratch_resources
|
24
|
+
scratch[:medication_statement_resources] ||= {}
|
25
|
+
end
|
26
|
+
|
27
|
+
run do
|
28
|
+
perform_validation_test(scratch_resources[:all] || [],
|
29
|
+
'http://hl7.org/fhir/StructureDefinition/MedicationStatement',
|
30
|
+
'4.0.1',
|
31
|
+
skip_if_empty: true)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
:name: MedicationStatement
|
3
|
+
:class_name: MedicationstatementSequence
|
4
|
+
:version: v1.0.0
|
5
|
+
:reformatted_version: v100
|
6
|
+
:resource: MedicationStatement
|
7
|
+
:profile_url: http://hl7.org/fhir/StructureDefinition/MedicationStatement
|
8
|
+
:profile_name: Base MedicationStatement
|
9
|
+
:profile_version: 4.0.1
|
10
|
+
:title: Base MedicationStatement
|
11
|
+
:short_description: Verify support for the server capabilities required by the Base
|
12
|
+
MedicationStatement.
|
13
|
+
:must_supports:
|
14
|
+
:extensions: []
|
15
|
+
:slices: []
|
16
|
+
:elements: []
|
17
|
+
:mandatory_elements:
|
18
|
+
- MedicationStatement.status
|
19
|
+
- MedicationStatement.medication[x]
|
20
|
+
- MedicationStatement.subject
|
21
|
+
:tests:
|
22
|
+
- :id: ccrr_v100_medication_statement_must_support_test
|
23
|
+
:file_name: medication_statement_must_support_test.rb
|
24
|
+
- :id: ccrr_v100_medication_statement_validation_test
|
25
|
+
:file_name: medication_statement_validation_test.rb
|
26
|
+
:id: ccrr_v100_medication_statement
|
data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation/metadata.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
:name: Observation
|
3
|
+
:class_name: ObservationSequence
|
4
|
+
:version: v1.0.0
|
5
|
+
:reformatted_version: v100
|
6
|
+
:resource: Observation
|
7
|
+
:profile_url: http://hl7.org/fhir/StructureDefinition/Observation
|
8
|
+
:profile_name: Base Observation
|
9
|
+
:profile_version: 4.0.1
|
10
|
+
:title: Observation Base
|
11
|
+
:short_description: Verify support for the server capabilities required by the Base
|
12
|
+
Observation.
|
13
|
+
:must_supports:
|
14
|
+
:extensions: []
|
15
|
+
:slices: []
|
16
|
+
:elements: []
|
17
|
+
:mandatory_elements:
|
18
|
+
- Observation.status
|
19
|
+
- Observation.code
|
20
|
+
- Observation.component.code
|
21
|
+
:tests:
|
22
|
+
- :id: ccrr_v100_observation_must_support_test
|
23
|
+
:file_name: observation_must_support_test.rb
|
24
|
+
- :id: ccrr_v100_observation_validation_test
|
25
|
+
:file_name: observation_validation_test.rb
|
26
|
+
:id: ccrr_v100_observation
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../must_support_test'
|
4
|
+
require_relative '../../../../hdea_generator/group_metadata'
|
5
|
+
|
6
|
+
module CancerRegistryReportingTestKit
|
7
|
+
module HDEAV100
|
8
|
+
class ObservationMustSupportTest < Inferno::Test
|
9
|
+
include CancerRegistryReportingTestKit::MustSupportTest
|
10
|
+
|
11
|
+
title 'Base Observation profile must support element coverage'
|
12
|
+
description %(
|
13
|
+
This test looks across all instances
|
14
|
+
associated with the [Base Observation profile](http://hl7.org/fhir/StructureDefinition/Observation|4.0.1)
|
15
|
+
found in the provided report Bundles and verifies that they
|
16
|
+
contain populated examples of the following must support elements
|
17
|
+
defined in the profile:
|
18
|
+
|
19
|
+
|
20
|
+
)
|
21
|
+
|
22
|
+
id :ccrr_v100_observation_must_support_test
|
23
|
+
|
24
|
+
def resource_type
|
25
|
+
'Observation'
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.metadata
|
29
|
+
@metadata ||= HdeaGenerator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
30
|
+
end
|
31
|
+
|
32
|
+
def scratch_resources
|
33
|
+
scratch[:observation_resources] ||= {}
|
34
|
+
end
|
35
|
+
|
36
|
+
run do
|
37
|
+
perform_must_support_test(all_scratch_resources)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../validation_test'
|
4
|
+
|
5
|
+
module CancerRegistryReportingTestKit
|
6
|
+
module HDEAV100
|
7
|
+
class ObservationValidationTest < Inferno::Test
|
8
|
+
include CancerRegistryReportingTestKit::ValidationTest
|
9
|
+
|
10
|
+
id :ccrr_v100_observation_validation_test
|
11
|
+
title 'Base Observation profile conformance'
|
12
|
+
description %(
|
13
|
+
This test verifies that Observation instances
|
14
|
+
found in the Vital Signs sections of the provided reports conform to the
|
15
|
+
[Base Observation profile](http://hl7.org/fhir/StructureDefinition/Observation|4.0.1).
|
16
|
+
)
|
17
|
+
|
18
|
+
|
19
|
+
def resource_type
|
20
|
+
'Observation'
|
21
|
+
end
|
22
|
+
|
23
|
+
def scratch_resources
|
24
|
+
scratch[:observation_resources] ||= {}
|
25
|
+
end
|
26
|
+
|
27
|
+
run do
|
28
|
+
perform_validation_test(scratch_resources[:all] || [],
|
29
|
+
'http://hl7.org/fhir/StructureDefinition/Observation',
|
30
|
+
'4.0.1',
|
31
|
+
skip_if_empty: true)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/observation_lab/metadata.yml
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
:name: us_core_observation_lab
|
3
|
+
:class_name: UsCoreObservationLabSequence
|
4
|
+
:version: v1.0.0
|
5
|
+
:reformatted_version: v100
|
6
|
+
:resource: Observation
|
7
|
+
:profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab
|
8
|
+
:profile_name: US Core Laboratory Result Observation Profile
|
9
|
+
:profile_version: 5.0.1
|
10
|
+
:title: Observation US Core Laboratory Result
|
11
|
+
:short_description: Verify support for the server capabilities required by the US
|
12
|
+
Core Laboratory Result Observation Profile.
|
13
|
+
:must_supports:
|
14
|
+
:extensions: []
|
15
|
+
:slices:
|
16
|
+
- :slice_id: Observation.category:Laboratory
|
17
|
+
:slice_name: Laboratory
|
18
|
+
:path: category
|
19
|
+
:discriminator:
|
20
|
+
:type: patternCodeableConcept
|
21
|
+
:path: ''
|
22
|
+
:code: laboratory
|
23
|
+
:system: http://terminology.hl7.org/CodeSystem/observation-category
|
24
|
+
:elements:
|
25
|
+
- :path: status
|
26
|
+
- :path: category
|
27
|
+
- :path: code
|
28
|
+
- :path: subject
|
29
|
+
:types:
|
30
|
+
- Reference
|
31
|
+
:target_profiles:
|
32
|
+
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
|
33
|
+
- :path: effectiveDateTime
|
34
|
+
:original_path: effective[x]
|
35
|
+
- :path: valueQuantity
|
36
|
+
:original_path: value[x]
|
37
|
+
- :path: valueCodeableConcept
|
38
|
+
:original_path: value[x]
|
39
|
+
- :path: valueString
|
40
|
+
:original_path: value[x]
|
41
|
+
- :path: dataAbsentReason
|
42
|
+
:mandatory_elements:
|
43
|
+
- Observation.status
|
44
|
+
- Observation.category
|
45
|
+
- Observation.code
|
46
|
+
- Observation.subject
|
47
|
+
- Observation.component.code
|
48
|
+
:tests:
|
49
|
+
- :id: ccrr_v100_observation_lab_must_support_test
|
50
|
+
:file_name: observation_lab_must_support_test.rb
|
51
|
+
- :id: ccrr_v100_observation_lab_validation_test
|
52
|
+
:file_name: observation_lab_validation_test.rb
|
53
|
+
:id: ccrr_v100_observation_lab
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../must_support_test'
|
4
|
+
require_relative '../../../../hdea_generator/group_metadata'
|
5
|
+
|
6
|
+
module CancerRegistryReportingTestKit
|
7
|
+
module HDEAV100
|
8
|
+
class ObservationLabMustSupportTest < Inferno::Test
|
9
|
+
include CancerRegistryReportingTestKit::MustSupportTest
|
10
|
+
|
11
|
+
title 'US Core Laboratory Result Observation profile must support element coverage'
|
12
|
+
description %(
|
13
|
+
This test looks across all instances
|
14
|
+
associated with the [US Core Laboratory Result Observation profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|5.0.1)
|
15
|
+
found in the provided report Bundles and verifies that they
|
16
|
+
contain populated examples of the following must support elements
|
17
|
+
defined in the profile:
|
18
|
+
|
19
|
+
* Observation.category
|
20
|
+
* Observation.category:Laboratory
|
21
|
+
* Observation.code
|
22
|
+
* Observation.dataAbsentReason
|
23
|
+
* Observation.effectiveDateTime
|
24
|
+
* Observation.status
|
25
|
+
* Observation.subject
|
26
|
+
* Observation.valueCodeableConcept
|
27
|
+
* Observation.valueQuantity
|
28
|
+
* Observation.valueString
|
29
|
+
)
|
30
|
+
|
31
|
+
id :ccrr_v100_observation_lab_must_support_test
|
32
|
+
|
33
|
+
def resource_type
|
34
|
+
'Observation'
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.metadata
|
38
|
+
@metadata ||= HdeaGenerator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
|
39
|
+
end
|
40
|
+
|
41
|
+
def scratch_resources
|
42
|
+
scratch[:observation_lab_resources] ||= {}
|
43
|
+
end
|
44
|
+
|
45
|
+
run do
|
46
|
+
perform_must_support_test(all_scratch_resources)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../../../../validation_test'
|
4
|
+
|
5
|
+
module CancerRegistryReportingTestKit
|
6
|
+
module HDEAV100
|
7
|
+
class ObservationLabValidationTest < Inferno::Test
|
8
|
+
include CancerRegistryReportingTestKit::ValidationTest
|
9
|
+
|
10
|
+
id :ccrr_v100_observation_lab_validation_test
|
11
|
+
title 'US Core Laboratory Result Observation profile conformance'
|
12
|
+
description %(
|
13
|
+
This test verifies that Observation instances
|
14
|
+
found in the Results sections of the provided reports conform to the
|
15
|
+
[US Core Laboratory Result Observation profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab|5.0.1).
|
16
|
+
)
|
17
|
+
|
18
|
+
|
19
|
+
def resource_type
|
20
|
+
'Observation'
|
21
|
+
end
|
22
|
+
|
23
|
+
def scratch_resources
|
24
|
+
scratch[:observation_lab_resources] ||= {}
|
25
|
+
end
|
26
|
+
|
27
|
+
run do
|
28
|
+
perform_validation_test(scratch_resources[:all] || [],
|
29
|
+
'http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab',
|
30
|
+
'5.0.1',
|
31
|
+
skip_if_empty: true)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/cancer_registry_reporting_test_kit/hdea_suite/generated/v1.0.0/odh_usual_work/metadata.yml
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
:name: odh_UsualWork
|
3
|
+
:class_name: OdhUsualworkSequence
|
4
|
+
:version: v1.0.0
|
5
|
+
:reformatted_version: v100
|
6
|
+
:resource: Observation
|
7
|
+
:profile_url: http://hl7.org/fhir/us/odh/StructureDefinition/odh-UsualWork
|
8
|
+
:profile_name: Usual Work
|
9
|
+
:profile_version: 1.1.0
|
10
|
+
:title: Observation Usual Work
|
11
|
+
:short_description: Verify support for the server capabilities required by the Usual
|
12
|
+
Work.
|
13
|
+
:must_supports:
|
14
|
+
:extensions: []
|
15
|
+
:slices:
|
16
|
+
- :slice_id: Observation.value[x]:valueCodeableConcept.coding:occupationCDCCensus2010
|
17
|
+
:slice_name: occupationCDCCensus2010
|
18
|
+
:path: value[x].coding
|
19
|
+
:discriminator:
|
20
|
+
:type: requiredBinding
|
21
|
+
:path: ''
|
22
|
+
:values:
|
23
|
+
- :system: 2.16.840.1.114222.4.11.7186
|
24
|
+
:code: ''
|
25
|
+
- :slice_id: Observation.value[x]:valueCodeableConcept.coding:occupationONETSOCDetailODH
|
26
|
+
:slice_name: occupationONETSOCDetailODH
|
27
|
+
:path: value[x].coding
|
28
|
+
:discriminator:
|
29
|
+
:type: requiredBinding
|
30
|
+
:path: ''
|
31
|
+
:values:
|
32
|
+
- :system: 2.16.840.1.114222.4.11.7901
|
33
|
+
:code: ''
|
34
|
+
- :slice_id: Observation.component:odh-UsualIndustry.value[x].coding:industryCDCCensus2010
|
35
|
+
:slice_name: industryCDCCensus2010
|
36
|
+
:path: component.value[x].coding
|
37
|
+
:discriminator:
|
38
|
+
:type: requiredBinding
|
39
|
+
:path: component.value[x]
|
40
|
+
:values:
|
41
|
+
- :system: 2.16.840.1.114222.4.11.7187
|
42
|
+
:code: ''
|
43
|
+
- :slice_id: Observation.component:odh-UsualIndustry.value[x].coding:industryONETSOCDetailODH
|
44
|
+
:slice_name: industryONETSOCDetailODH
|
45
|
+
:path: component.value[x].coding
|
46
|
+
:discriminator:
|
47
|
+
:type: requiredBinding
|
48
|
+
:path: ''
|
49
|
+
:values:
|
50
|
+
- :system: 2.16.840.1.114222.4.11.7900
|
51
|
+
:code: ''
|
52
|
+
- :slice_id: Observation.value[x]:valueCodeableConcept
|
53
|
+
:slice_name: valueCodeableConcept
|
54
|
+
:path: value[x]
|
55
|
+
:discriminator:
|
56
|
+
:type: type
|
57
|
+
:code: CodeableConcept
|
58
|
+
:elements:
|
59
|
+
- :path: component:odh-UsualIndustry.value[x].coding
|
60
|
+
- :path: value[x]:valueCodeableConcept.coding
|
61
|
+
:mandatory_elements:
|
62
|
+
- Observation.status
|
63
|
+
- Observation.category.coding
|
64
|
+
- Observation.category.coding.system
|
65
|
+
- Observation.category.coding.code
|
66
|
+
- Observation.code
|
67
|
+
- Observation.code.coding
|
68
|
+
- Observation.code.coding.system
|
69
|
+
- Observation.code.coding.code
|
70
|
+
- Observation.subject
|
71
|
+
- Observation.effective[x]
|
72
|
+
- Observation.value[x].coding
|
73
|
+
- Observation.component
|
74
|
+
- Observation.component.code
|
75
|
+
- Observation.component.value[x].coding
|
76
|
+
:tests:
|
77
|
+
- :id: ccrr_v100_odh_usual_work_must_support_test
|
78
|
+
:file_name: odh_usual_work_must_support_test.rb
|
79
|
+
- :id: ccrr_v100_odh_usual_work_validation_test
|
80
|
+
:file_name: odh_usual_work_validation_test.rb
|
81
|
+
:id: ccrr_v100_odh_usual_work
|