ipa_test_kit 0.2.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/ipa_test_kit/custom_groups/capability_statement/conformance_support_test.rb +41 -0
- data/lib/ipa_test_kit/custom_groups/capability_statement/fhir_version_test.rb +15 -0
- data/lib/ipa_test_kit/custom_groups/capability_statement/json_support_test.rb +39 -0
- data/lib/ipa_test_kit/custom_groups/capability_statement/profile_support_test.rb +76 -0
- data/lib/ipa_test_kit/custom_groups/capability_statement_group.rb +64 -0
- data/lib/ipa_test_kit/date_search_validation.rb +101 -0
- data/lib/ipa_test_kit/ext/fhir_models.rb +59 -0
- data/lib/ipa_test_kit/fhir_resource_navigation.rb +63 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_must_support_test.rb +40 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_patient_clinical_status_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_patient_search_test.rb +60 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_provenance_revinclude_search_test.rb +49 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/allergy_intolerance_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance/metadata.yml +165 -0
- data/lib/ipa_test_kit/generated/allergy_intolerance_group.rb +85 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/bmi/bmi_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/bmi/metadata.yml +322 -0
- data/lib/ipa_test_kit/generated/bmi_group.rb +93 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/bodyheight/bodyheight_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/bodyheight/metadata.yml +328 -0
- data/lib/ipa_test_kit/generated/bodyheight_group.rb +93 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/bodytemp/bodytemp_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/bodytemp/metadata.yml +328 -0
- data/lib/ipa_test_kit/generated/bodytemp_group.rb +93 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/bodyweight/bodyweight_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/bodyweight/metadata.yml +328 -0
- data/lib/ipa_test_kit/generated/bodyweight_group.rb +93 -0
- data/lib/ipa_test_kit/generated/bp/bp_must_support_test.rb +52 -0
- data/lib/ipa_test_kit/generated/bp/bp_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/bp/bp_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/bp/bp_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/bp/bp_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/bp/bp_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/bp/bp_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/bp/bp_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/bp/bp_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/bp/bp_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/bp/metadata.yml +379 -0
- data/lib/ipa_test_kit/generated/bp_group.rb +93 -0
- data/lib/ipa_test_kit/generated/condition/condition_must_support_test.rb +39 -0
- data/lib/ipa_test_kit/generated/condition/condition_patient_category_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/condition/condition_patient_clinical_status_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/condition/condition_patient_code_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/condition/condition_patient_onset_date_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/condition/condition_patient_search_test.rb +60 -0
- data/lib/ipa_test_kit/generated/condition/condition_provenance_revinclude_search_test.rb +49 -0
- data/lib/ipa_test_kit/generated/condition/condition_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/condition/condition_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/condition/condition_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/condition/metadata.yml +231 -0
- data/lib/ipa_test_kit/generated/condition_group.rb +91 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_id_search_test.rb +40 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_patient_search_test.rb +61 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_patient_status_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_patient_type_period_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_patient_type_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_provenance_revinclude_search_test.rb +50 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/document_reference/document_reference_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/document_reference/metadata.yml +356 -0
- data/lib/ipa_test_kit/generated/document_reference_group.rb +99 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/head_circumference/head_circumference_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/head_circumference/metadata.yml +324 -0
- data/lib/ipa_test_kit/generated/head_circumference_group.rb +93 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/heartrate/heartrate_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/heartrate/metadata.yml +325 -0
- data/lib/ipa_test_kit/generated/heartrate_group.rb +93 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_must_support_test.rb +40 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_patient_date_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_patient_search_test.rb +60 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_patient_status_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_provenance_revinclude_search_test.rb +50 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/immunization/immunization_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/immunization/metadata.yml +210 -0
- data/lib/ipa_test_kit/generated/immunization_group.rb +87 -0
- data/lib/ipa_test_kit/generated/ipa_test_suite.rb +88 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_must_support_test.rb +44 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_patient_intent_authoredon_search_test.rb +53 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_patient_intent_encounter_search_test.rb +52 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_patient_intent_search_test.rb +68 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_patient_intent_status_search_test.rb +49 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_request_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/medication_request/medication_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/medication_request/metadata.yml +307 -0
- data/lib/ipa_test_kit/generated/medication_request_group.rb +92 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_must_support_test.rb +43 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_patient_context_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_patient_effective_search_test.rb +52 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_patient_search_test.rb +68 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_patient_status_search_test.rb +49 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_statement_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/medication_statement/medication_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/medication_statement/metadata.yml +230 -0
- data/lib/ipa_test_kit/generated/medication_statement_group.rb +92 -0
- data/lib/ipa_test_kit/generated/metadata.yml +6230 -0
- data/lib/ipa_test_kit/generated/observation/metadata.yml +1280 -0
- data/lib/ipa_test_kit/generated/observation/observation_must_support_test.rb +41 -0
- data/lib/ipa_test_kit/generated/observation/observation_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/observation/observation_patient_category_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/observation/observation_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/observation/observation_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/observation/observation_patient_code_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/observation/observation_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/observation/observation_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/observation/observation_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/observation/observation_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/observation_group.rb +93 -0
- data/lib/ipa_test_kit/generated/oxygensat/metadata.yml +366 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_must_support_test.rb +65 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/oxygensat/oxygensat_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/oxygensat_group.rb +93 -0
- data/lib/ipa_test_kit/generated/patient/metadata.yml +320 -0
- data/lib/ipa_test_kit/generated/patient/patient_birthdate_family_search_test.rb +41 -0
- data/lib/ipa_test_kit/generated/patient/patient_birthdate_name_search_test.rb +39 -0
- data/lib/ipa_test_kit/generated/patient/patient_family_gender_search_test.rb +41 -0
- data/lib/ipa_test_kit/generated/patient/patient_gender_name_search_test.rb +39 -0
- data/lib/ipa_test_kit/generated/patient/patient_id_search_test.rb +53 -0
- data/lib/ipa_test_kit/generated/patient/patient_identifier_search_test.rb +40 -0
- data/lib/ipa_test_kit/generated/patient/patient_must_support_test.rb +57 -0
- data/lib/ipa_test_kit/generated/patient/patient_name_search_test.rb +39 -0
- data/lib/ipa_test_kit/generated/patient/patient_provenance_revinclude_search_test.rb +49 -0
- data/lib/ipa_test_kit/generated/patient/patient_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/patient/patient_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/patient/patient_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/patient_group.rb +99 -0
- data/lib/ipa_test_kit/generated/practitioner/metadata.yml +124 -0
- data/lib/ipa_test_kit/generated/practitioner/practitioner_identifier_search_test.rb +40 -0
- data/lib/ipa_test_kit/generated/practitioner/practitioner_must_support_test.rb +40 -0
- data/lib/ipa_test_kit/generated/practitioner/practitioner_name_search_test.rb +49 -0
- data/lib/ipa_test_kit/generated/practitioner/practitioner_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/practitioner/practitioner_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/practitioner/practitioner_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/practitioner_group.rb +84 -0
- data/lib/ipa_test_kit/generated/practitioner_role/metadata.yml +141 -0
- data/lib/ipa_test_kit/generated/practitioner_role/practitioner_role_identifier_search_test.rb +40 -0
- data/lib/ipa_test_kit/generated/practitioner_role/practitioner_role_must_support_test.rb +40 -0
- data/lib/ipa_test_kit/generated/practitioner_role/practitioner_role_practitioner_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/practitioner_role/practitioner_role_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/practitioner_role/practitioner_role_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/practitioner_role/practitioner_role_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/practitioner_role_group.rb +84 -0
- data/lib/ipa_test_kit/generated/provenance/metadata.yml +114 -0
- data/lib/ipa_test_kit/generated/provenance/provenance_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/provenance/provenance_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/provenance/provenance_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/provenance_group.rb +53 -0
- data/lib/ipa_test_kit/generated/resource_list.rb +18 -0
- data/lib/ipa_test_kit/generated/resprate/metadata.yml +325 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_must_support_test.rb +49 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_patient_category_date_search_test.rb +46 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_patient_category_search_test.rb +45 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_patient_category_status_search_test.rb +47 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_patient_code_date_search_test.rb +48 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_patient_code_search_test.rb +62 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_provenance_revinclude_search_test.rb +51 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_read_test.rb +24 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_reference_resolution_test.rb +28 -0
- data/lib/ipa_test_kit/generated/resprate/resprate_validation_test.rb +34 -0
- data/lib/ipa_test_kit/generated/resprate_group.rb +93 -0
- data/lib/ipa_test_kit/generator/group_generator.rb +171 -0
- data/lib/ipa_test_kit/generator/group_metadata.rb +98 -0
- data/lib/ipa_test_kit/generator/group_metadata_extractor.rb +278 -0
- data/lib/ipa_test_kit/generator/ig_loader.rb +63 -0
- data/lib/ipa_test_kit/generator/ig_metadata.rb +49 -0
- data/lib/ipa_test_kit/generator/ig_metadata_extractor.rb +56 -0
- data/lib/ipa_test_kit/generator/ig_resources.rb +48 -0
- data/lib/ipa_test_kit/generator/must_support_metadata_extractor.rb +221 -0
- data/lib/ipa_test_kit/generator/must_support_test_generator.rb +86 -0
- data/lib/ipa_test_kit/generator/naming.rb +46 -0
- data/lib/ipa_test_kit/generator/provenance_revinclude_search_test_generator.rb +186 -0
- data/lib/ipa_test_kit/generator/read_test_generator.rb +89 -0
- data/lib/ipa_test_kit/generator/reference_resolution_test_generator.rb +72 -0
- data/lib/ipa_test_kit/generator/resource_list_generator.rb +46 -0
- data/lib/ipa_test_kit/generator/search_definition_metadata_extractor.rb +181 -0
- data/lib/ipa_test_kit/generator/search_metadata_extractor.rb +74 -0
- data/lib/ipa_test_kit/generator/search_test_generator.rb +295 -0
- data/lib/ipa_test_kit/generator/special_cases.rb +16 -0
- data/lib/ipa_test_kit/generator/suite_generator.rb +67 -0
- data/lib/ipa_test_kit/generator/terminology_binding_metadata_extractor.rb +105 -0
- data/lib/ipa_test_kit/generator/validation_test_generator.rb +124 -0
- data/lib/ipa_test_kit/generator.rb +86 -0
- data/lib/ipa_test_kit/igs/package.tgz +0 -0
- data/lib/ipa_test_kit/must_support_test.rb +146 -0
- data/lib/ipa_test_kit/read_test.rb +62 -0
- data/lib/ipa_test_kit/reference_resolution_test.rb +111 -0
- data/lib/ipa_test_kit/request_logger.rb +46 -0
- data/lib/ipa_test_kit/search_test.rb +728 -0
- data/lib/ipa_test_kit/search_test_properties.rb +61 -0
- data/lib/ipa_test_kit/validation_test.rb +48 -0
- data/lib/ipa_test_kit/version.rb +3 -0
- data/lib/ipa_test_kit.rb +2 -0
- metadata +397 -0
@@ -0,0 +1,356 @@
|
|
1
|
+
---
|
2
|
+
:name: ipa_documentreference
|
3
|
+
:class_name: Ipav010DocumentreferenceSequence
|
4
|
+
:version: v0.1.0
|
5
|
+
:reformatted_version: v010
|
6
|
+
:resource: DocumentReference
|
7
|
+
:profile_url: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-documentreference
|
8
|
+
:profile_name: IPA DocumentReference Profile
|
9
|
+
:title: DocumentReference
|
10
|
+
:short_description: Verify support for the server capabilities required by the IPA
|
11
|
+
DocumentReference Profile.
|
12
|
+
:interactions:
|
13
|
+
- :code: create
|
14
|
+
:expectation: SHALL
|
15
|
+
- :code: search-type
|
16
|
+
:expectation: SHALL
|
17
|
+
- :code: read
|
18
|
+
:expectation: SHALL
|
19
|
+
- :code: vread
|
20
|
+
:expectation: SHOULD
|
21
|
+
- :code: update
|
22
|
+
:expectation: MAY
|
23
|
+
- :code: patch
|
24
|
+
:expectation: MAY
|
25
|
+
- :code: delete
|
26
|
+
:expectation: MAY
|
27
|
+
- :code: history-instance
|
28
|
+
:expectation: SHOULD
|
29
|
+
- :code: history-type
|
30
|
+
:expectation: MAY
|
31
|
+
:operations:
|
32
|
+
- :code: docref
|
33
|
+
:expectation: SHALL
|
34
|
+
:searches:
|
35
|
+
- :names:
|
36
|
+
- patient
|
37
|
+
:expectation: SHALL
|
38
|
+
:names_not_must_support_or_mandatory: []
|
39
|
+
:must_support_or_mandatory: true
|
40
|
+
- :names:
|
41
|
+
- _id
|
42
|
+
:expectation: SHALL
|
43
|
+
:names_not_must_support_or_mandatory: []
|
44
|
+
:must_support_or_mandatory: true
|
45
|
+
- :expectation: SHOULD
|
46
|
+
:names:
|
47
|
+
- patient
|
48
|
+
- type
|
49
|
+
- period
|
50
|
+
:names_not_must_support_or_mandatory: []
|
51
|
+
:must_support_or_mandatory: true
|
52
|
+
- :expectation: SHALL
|
53
|
+
:names:
|
54
|
+
- patient
|
55
|
+
- type
|
56
|
+
:names_not_must_support_or_mandatory: []
|
57
|
+
:must_support_or_mandatory: true
|
58
|
+
- :expectation: SHALL
|
59
|
+
:names:
|
60
|
+
- patient
|
61
|
+
- category
|
62
|
+
- date
|
63
|
+
:names_not_must_support_or_mandatory: []
|
64
|
+
:must_support_or_mandatory: true
|
65
|
+
- :expectation: SHOULD
|
66
|
+
:names:
|
67
|
+
- patient
|
68
|
+
- status
|
69
|
+
:names_not_must_support_or_mandatory: []
|
70
|
+
:must_support_or_mandatory: true
|
71
|
+
- :expectation: SHALL
|
72
|
+
:names:
|
73
|
+
- patient
|
74
|
+
- category
|
75
|
+
:names_not_must_support_or_mandatory: []
|
76
|
+
:must_support_or_mandatory: true
|
77
|
+
:search_definitions:
|
78
|
+
:_id:
|
79
|
+
:path: id
|
80
|
+
:full_path: DocumentReference.id
|
81
|
+
:comparators: {}
|
82
|
+
:values: []
|
83
|
+
:type: http://hl7.org/fhirpath/System.String
|
84
|
+
:contains_multiple: false
|
85
|
+
:multiple_or: MAY
|
86
|
+
:patient:
|
87
|
+
:path: subject
|
88
|
+
:full_path: DocumentReference.subject
|
89
|
+
:comparators: {}
|
90
|
+
:values: []
|
91
|
+
:type: Reference
|
92
|
+
:contains_multiple: false
|
93
|
+
:multiple_or: MAY
|
94
|
+
:type:
|
95
|
+
:path: type
|
96
|
+
:full_path: DocumentReference.type
|
97
|
+
:comparators: {}
|
98
|
+
:values:
|
99
|
+
- UNK
|
100
|
+
:type: CodeableConcept
|
101
|
+
:contains_multiple: false
|
102
|
+
:multiple_or: MAY
|
103
|
+
:period:
|
104
|
+
:path: context.period
|
105
|
+
:full_path: DocumentReference.context.period
|
106
|
+
:comparators:
|
107
|
+
:eq: MAY
|
108
|
+
:ne: MAY
|
109
|
+
:gt: SHALL
|
110
|
+
:ge: SHALL
|
111
|
+
:lt: SHALL
|
112
|
+
:le: SHALL
|
113
|
+
:sa: MAY
|
114
|
+
:eb: MAY
|
115
|
+
:ap: MAY
|
116
|
+
:values: []
|
117
|
+
:type: Period
|
118
|
+
:contains_multiple: false
|
119
|
+
:multiple_or: MAY
|
120
|
+
:category:
|
121
|
+
:path: category
|
122
|
+
:full_path: DocumentReference.category
|
123
|
+
:comparators: {}
|
124
|
+
:values:
|
125
|
+
- 11369-6
|
126
|
+
- 11485-0
|
127
|
+
- 11486-8
|
128
|
+
- 11488-4
|
129
|
+
- 11506-3
|
130
|
+
- 11543-6
|
131
|
+
- 15508-5
|
132
|
+
- 18726-0
|
133
|
+
- 18761-7
|
134
|
+
- 18842-5
|
135
|
+
- 26436-6
|
136
|
+
- 26441-6
|
137
|
+
- 26442-4
|
138
|
+
- 27895-2
|
139
|
+
- 27896-0
|
140
|
+
- 27897-8
|
141
|
+
- 27898-6
|
142
|
+
- 28570-0
|
143
|
+
- 28619-5
|
144
|
+
- 28634-4
|
145
|
+
- 29749-9
|
146
|
+
- 29750-7
|
147
|
+
- 29751-5
|
148
|
+
- 29752-3
|
149
|
+
- 34109-9
|
150
|
+
- 34117-2
|
151
|
+
- 34121-4
|
152
|
+
- 34122-2
|
153
|
+
- 34133-9
|
154
|
+
- 34140-4
|
155
|
+
- 34748-4
|
156
|
+
- 34775-7
|
157
|
+
- 47039-3
|
158
|
+
- 47042-7
|
159
|
+
- 47045-0
|
160
|
+
- 47046-8
|
161
|
+
- 47049-2
|
162
|
+
- 57017-6
|
163
|
+
- 57016-8
|
164
|
+
- 56445-0
|
165
|
+
- 53576-5
|
166
|
+
- 56447-6
|
167
|
+
- 18748-4
|
168
|
+
- 11504-8
|
169
|
+
- 57133-1
|
170
|
+
:type: CodeableConcept
|
171
|
+
:contains_multiple: true
|
172
|
+
:multiple_or: MAY
|
173
|
+
:date:
|
174
|
+
:path: date
|
175
|
+
:full_path: DocumentReference.date
|
176
|
+
:comparators:
|
177
|
+
:eq: MAY
|
178
|
+
:ne: MAY
|
179
|
+
:gt: SHALL
|
180
|
+
:ge: SHALL
|
181
|
+
:lt: SHALL
|
182
|
+
:le: SHALL
|
183
|
+
:sa: MAY
|
184
|
+
:eb: MAY
|
185
|
+
:ap: MAY
|
186
|
+
:values: []
|
187
|
+
:type: instant
|
188
|
+
:contains_multiple: false
|
189
|
+
:multiple_or: MAY
|
190
|
+
:status:
|
191
|
+
:path: status
|
192
|
+
:full_path: DocumentReference.status
|
193
|
+
:comparators: {}
|
194
|
+
:values:
|
195
|
+
- current
|
196
|
+
- superseded
|
197
|
+
- entered-in-error
|
198
|
+
:type: code
|
199
|
+
:contains_multiple: false
|
200
|
+
:multiple_or: SHALL
|
201
|
+
:include_params: []
|
202
|
+
:revincludes:
|
203
|
+
- Provenance:target
|
204
|
+
:required_concepts:
|
205
|
+
- type
|
206
|
+
:must_supports:
|
207
|
+
:extensions: []
|
208
|
+
:slices: []
|
209
|
+
:elements:
|
210
|
+
- :path: identifier
|
211
|
+
- :path: status
|
212
|
+
- :path: type
|
213
|
+
- :path: category
|
214
|
+
- :path: subject
|
215
|
+
- :path: date
|
216
|
+
- :path: author
|
217
|
+
- :path: custodian
|
218
|
+
- :path: content
|
219
|
+
- :path: content.attachment
|
220
|
+
- :path: content.attachment.contentType
|
221
|
+
- :path: content.format
|
222
|
+
- :path: context
|
223
|
+
- :path: context.encounter
|
224
|
+
- :path: context.period
|
225
|
+
:mandatory_elements:
|
226
|
+
- DocumentReference.status
|
227
|
+
- DocumentReference.type
|
228
|
+
- DocumentReference.category
|
229
|
+
- DocumentReference.subject
|
230
|
+
- DocumentReference.relatesTo.code
|
231
|
+
- DocumentReference.relatesTo.target
|
232
|
+
- DocumentReference.content
|
233
|
+
- DocumentReference.content.attachment
|
234
|
+
- DocumentReference.content.attachment.contentType
|
235
|
+
:bindings:
|
236
|
+
- :type: code
|
237
|
+
:strength: preferred
|
238
|
+
:system: http://hl7.org/fhir/ValueSet/languages
|
239
|
+
:path: language
|
240
|
+
- :type: code
|
241
|
+
:strength: required
|
242
|
+
:system: http://hl7.org/fhir/ValueSet/document-reference-status
|
243
|
+
:path: status
|
244
|
+
- :type: code
|
245
|
+
:strength: required
|
246
|
+
:system: http://hl7.org/fhir/ValueSet/composition-status
|
247
|
+
:path: docStatus
|
248
|
+
- :type: CodeableConcept
|
249
|
+
:strength: required
|
250
|
+
:system: http://hl7.org/fhir/uv/ipa/ValueSet/ipa-documentreference-type
|
251
|
+
:path: type
|
252
|
+
- :type: CodeableConcept
|
253
|
+
:strength: extensible
|
254
|
+
:system: http://hl7.org/fhir/uv/ipa/ValueSet/ipa-documentreference-category
|
255
|
+
:path: category
|
256
|
+
- :type: code
|
257
|
+
:strength: required
|
258
|
+
:system: http://hl7.org/fhir/ValueSet/document-relationship-type
|
259
|
+
:path: relatesTo.code
|
260
|
+
- :type: CodeableConcept
|
261
|
+
:strength: extensible
|
262
|
+
:system: http://hl7.org/fhir/ValueSet/security-labels
|
263
|
+
:path: securityLabel
|
264
|
+
- :type: code
|
265
|
+
:strength: required
|
266
|
+
:system: http://hl7.org/fhir/ValueSet/mimetypes
|
267
|
+
:path: content.attachment.contentType
|
268
|
+
- :type: code
|
269
|
+
:strength: preferred
|
270
|
+
:system: http://hl7.org/fhir/ValueSet/languages
|
271
|
+
:path: content.attachment.language
|
272
|
+
- :type: Coding
|
273
|
+
:strength: extensible
|
274
|
+
:system: http://hl7.org/fhir/ValueSet/formatcodes
|
275
|
+
:path: content.format
|
276
|
+
- :type: CodeableConcept
|
277
|
+
:strength: example
|
278
|
+
:system: http://terminology.hl7.org/ValueSet/v3-ActCode
|
279
|
+
:path: context.event
|
280
|
+
- :type: CodeableConcept
|
281
|
+
:strength: example
|
282
|
+
:system: http://hl7.org/fhir/ValueSet/c80-facilitycodes
|
283
|
+
:path: context.facilityType
|
284
|
+
- :type: CodeableConcept
|
285
|
+
:strength: example
|
286
|
+
:system: http://hl7.org/fhir/ValueSet/c80-practice-codes
|
287
|
+
:path: context.practiceSetting
|
288
|
+
:references:
|
289
|
+
- :path: DocumentReference.subject
|
290
|
+
:profiles:
|
291
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-patient
|
292
|
+
- :path: DocumentReference.author
|
293
|
+
:profiles:
|
294
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-practitioner
|
295
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-practitionerrole
|
296
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-organization
|
297
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-patient
|
298
|
+
- :path: DocumentReference.authenticator
|
299
|
+
:profiles:
|
300
|
+
- http://hl7.org/fhir/StructureDefinition/Practitioner
|
301
|
+
- http://hl7.org/fhir/StructureDefinition/PractitionerRole
|
302
|
+
- http://hl7.org/fhir/StructureDefinition/Organization
|
303
|
+
- :path: DocumentReference.custodian
|
304
|
+
:profiles:
|
305
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-organization
|
306
|
+
- :path: DocumentReference.relatesTo.target
|
307
|
+
:profiles:
|
308
|
+
- http://hl7.org/fhir/StructureDefinition/DocumentReference
|
309
|
+
- :path: DocumentReference.context.encounter
|
310
|
+
:profiles:
|
311
|
+
- http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-encounter
|
312
|
+
- :path: DocumentReference.context.sourcePatientInfo
|
313
|
+
:profiles:
|
314
|
+
- http://hl7.org/fhir/StructureDefinition/Patient
|
315
|
+
- :path: DocumentReference.context.related
|
316
|
+
:profiles:
|
317
|
+
- http://hl7.org/fhir/StructureDefinition/Resource
|
318
|
+
:tests:
|
319
|
+
- :id: ipa_010_document_reference_patient_search_test
|
320
|
+
:file_name: document_reference_patient_search_test.rb
|
321
|
+
- :id: ipa_010_document_reference__id_search_test
|
322
|
+
:file_name: document_reference_id_search_test.rb
|
323
|
+
- :id: ipa_010_document_reference_patient_type_period_search_test
|
324
|
+
:file_name: document_reference_patient_type_period_search_test.rb
|
325
|
+
- :id: ipa_010_document_reference_patient_type_search_test
|
326
|
+
:file_name: document_reference_patient_type_search_test.rb
|
327
|
+
- :id: ipa_010_document_reference_patient_category_date_search_test
|
328
|
+
:file_name: document_reference_patient_category_date_search_test.rb
|
329
|
+
- :id: ipa_010_document_reference_patient_status_search_test
|
330
|
+
:file_name: document_reference_patient_status_search_test.rb
|
331
|
+
- :id: ipa_010_document_reference_patient_category_search_test
|
332
|
+
:file_name: document_reference_patient_category_search_test.rb
|
333
|
+
- :id: ipa_010_document_reference_read_test
|
334
|
+
:file_name: document_reference_read_test.rb
|
335
|
+
- :id: ipa_010_document_reference_provenance_revinclude_search_test
|
336
|
+
:file_name: document_reference_provenance_revinclude_search_test.rb
|
337
|
+
- :id: ipa_010_document_reference_validation_test
|
338
|
+
:file_name: document_reference_validation_test.rb
|
339
|
+
- :id: ipa_010_document_reference_must_support_test
|
340
|
+
:file_name: document_reference_must_support_test.rb
|
341
|
+
- :id: ipa_010_document_reference_reference_resolution_test
|
342
|
+
:file_name: document_reference_reference_resolution_test.rb
|
343
|
+
:id: ipa_010_document_reference
|
344
|
+
:file_name: document_reference_group.rb
|
345
|
+
:delayed_references:
|
346
|
+
- :path: author
|
347
|
+
:resources:
|
348
|
+
- Practitioner
|
349
|
+
- PractitionerRole
|
350
|
+
- Organization
|
351
|
+
- :path: custodian
|
352
|
+
:resources:
|
353
|
+
- Organization
|
354
|
+
- :path: context.encounter
|
355
|
+
:resources:
|
356
|
+
- Encounter
|
@@ -0,0 +1,99 @@
|
|
1
|
+
require_relative 'document_reference/document_reference_patient_search_test'
|
2
|
+
require_relative 'document_reference/document_reference_id_search_test'
|
3
|
+
require_relative 'document_reference/document_reference_patient_type_period_search_test'
|
4
|
+
require_relative 'document_reference/document_reference_patient_type_search_test'
|
5
|
+
require_relative 'document_reference/document_reference_patient_category_date_search_test'
|
6
|
+
require_relative 'document_reference/document_reference_patient_status_search_test'
|
7
|
+
require_relative 'document_reference/document_reference_patient_category_search_test'
|
8
|
+
require_relative 'document_reference/document_reference_read_test'
|
9
|
+
require_relative 'document_reference/document_reference_provenance_revinclude_search_test'
|
10
|
+
require_relative 'document_reference/document_reference_validation_test'
|
11
|
+
require_relative 'document_reference/document_reference_must_support_test'
|
12
|
+
require_relative 'document_reference/document_reference_reference_resolution_test'
|
13
|
+
|
14
|
+
module IpaTestKit
|
15
|
+
class DocumentReferenceGroup < Inferno::TestGroup
|
16
|
+
title 'DocumentReference Tests'
|
17
|
+
short_description 'Verify support for the server capabilities required by the IPA DocumentReference Profile.'
|
18
|
+
description %(
|
19
|
+
# Background
|
20
|
+
|
21
|
+
The IPA DocumentReference sequence verifies that the system under test is
|
22
|
+
able to provide correct responses for DocumentReference queries. These queries
|
23
|
+
must contain resources conforming to the IPA DocumentReference Profile as
|
24
|
+
specified in the IPA v0.1.0 Implementation Guide.
|
25
|
+
|
26
|
+
# Testing Methodology
|
27
|
+
## Searching
|
28
|
+
This test sequence will first perform each required search associated
|
29
|
+
with this resource. This sequence will perform searches with the
|
30
|
+
following parameters:
|
31
|
+
|
32
|
+
* patient
|
33
|
+
* _id
|
34
|
+
* patient + type
|
35
|
+
* patient + category + date
|
36
|
+
* patient + category
|
37
|
+
|
38
|
+
### Search Parameters
|
39
|
+
The first search uses the selected patient(s) from the prior launch
|
40
|
+
sequence. Any subsequent searches will look for its parameter values
|
41
|
+
from the results of the first search. For example, the `identifier`
|
42
|
+
search in the patient sequence is performed by looking for an existing
|
43
|
+
`Patient.identifier` from any of the resources returned in the `_id`
|
44
|
+
search. If a value cannot be found this way, the search is skipped.
|
45
|
+
|
46
|
+
### Search Validation
|
47
|
+
Inferno will retrieve up to the first 20 bundle pages of the reply for
|
48
|
+
DocumentReference resources and save them for subsequent tests. Each of
|
49
|
+
these resources is then checked to see if it matches the searched
|
50
|
+
parameters in accordance with [FHIR search
|
51
|
+
guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
|
52
|
+
for example, if a Patient search for `gender=male` returns a `female`
|
53
|
+
patient.
|
54
|
+
|
55
|
+
|
56
|
+
## Must Support
|
57
|
+
Each profile contains elements marked as "must support". This test
|
58
|
+
sequence expects to see each of these elements at least once. If at
|
59
|
+
least one cannot be found, the test will fail. The test will look
|
60
|
+
through the DocumentReference resources found in the first test for these
|
61
|
+
elements.
|
62
|
+
|
63
|
+
## Profile Validation
|
64
|
+
Each resource returned from the first search is expected to conform to
|
65
|
+
the [IPA DocumentReference Profile](http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-documentreference). Each element is checked against
|
66
|
+
teminology binding and cardinality requirements.
|
67
|
+
|
68
|
+
Elements with a required binding are validated against their bound
|
69
|
+
ValueSet. If the code/system in the element is not part of the ValueSet,
|
70
|
+
then the test will fail.
|
71
|
+
|
72
|
+
## Reference Validation
|
73
|
+
Each reference within the resources found from the previous tests must
|
74
|
+
resolve. The test will attempt to read each reference found and will
|
75
|
+
fail if any attempted read fails.
|
76
|
+
|
77
|
+
)
|
78
|
+
|
79
|
+
id :ipa_010_document_reference
|
80
|
+
run_as_group
|
81
|
+
|
82
|
+
def self.metadata
|
83
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'document_reference', 'metadata.yml')))
|
84
|
+
end
|
85
|
+
|
86
|
+
test from: :ipa_010_document_reference_patient_search_test
|
87
|
+
test from: :ipa_010_document_reference__id_search_test
|
88
|
+
test from: :ipa_010_document_reference_patient_type_period_search_test
|
89
|
+
test from: :ipa_010_document_reference_patient_type_search_test
|
90
|
+
test from: :ipa_010_document_reference_patient_category_date_search_test
|
91
|
+
test from: :ipa_010_document_reference_patient_status_search_test
|
92
|
+
test from: :ipa_010_document_reference_patient_category_search_test
|
93
|
+
test from: :ipa_010_document_reference_read_test
|
94
|
+
test from: :ipa_010_document_reference_provenance_revinclude_search_test
|
95
|
+
test from: :ipa_010_document_reference_validation_test
|
96
|
+
test from: :ipa_010_document_reference_must_support_test
|
97
|
+
test from: :ipa_010_document_reference_reference_resolution_test
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require_relative '../../must_support_test'
|
2
|
+
|
3
|
+
module IpaTestKit
|
4
|
+
class HeadCircumferenceMustSupportTest < Inferno::Test
|
5
|
+
include IpaTestKit::MustSupportTest
|
6
|
+
|
7
|
+
title 'All must support elements are provided in the Observation resources returned'
|
8
|
+
description %(
|
9
|
+
IPA Responders SHALL be capable of populating all data elements as
|
10
|
+
part of the query results as specified by the IPA Server Capability
|
11
|
+
Statement. This test will look through the Observation resources
|
12
|
+
found previously for the following must support elements:
|
13
|
+
|
14
|
+
* Observation.category
|
15
|
+
* Observation.category.coding
|
16
|
+
* Observation.category.coding.code
|
17
|
+
* Observation.category.coding.system
|
18
|
+
* Observation.category:VSCat
|
19
|
+
* Observation.code.coding.code
|
20
|
+
* Observation.effective[x]
|
21
|
+
* Observation.status
|
22
|
+
* Observation.subject
|
23
|
+
* Observation.value[x]
|
24
|
+
* Observation.value[x].code
|
25
|
+
* Observation.value[x].system
|
26
|
+
* Observation.value[x].unit
|
27
|
+
* Observation.value[x].value
|
28
|
+
* Observation.value[x]:valueQuantity
|
29
|
+
)
|
30
|
+
|
31
|
+
id :ipa_010_head_circumference_must_support_test
|
32
|
+
|
33
|
+
def resource_type
|
34
|
+
'Observation'
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.metadata
|
38
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
39
|
+
end
|
40
|
+
|
41
|
+
def scratch_resources
|
42
|
+
scratch[:head_circumference_resources] ||= {}
|
43
|
+
end
|
44
|
+
|
45
|
+
run do
|
46
|
+
perform_must_support_test(all_scratch_resources)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module IpaTestKit
|
5
|
+
class HeadCircumferencePatientCategoryDateSearchTest < Inferno::Test
|
6
|
+
include IpaTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for Observation search by patient + category + date'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient + category + date on the Observation resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[IPA Server CapabilityStatement](https://build.fhir.org/ig/HL7/fhir-ipa/CapabilityStatement-ipa-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :ipa_010_head_circumference_patient_category_date_search_test
|
20
|
+
input :patient_ids,
|
21
|
+
title: 'Patient IDs',
|
22
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
23
|
+
|
24
|
+
def self.properties
|
25
|
+
@properties ||= SearchTestProperties.new(
|
26
|
+
resource_type: 'Observation',
|
27
|
+
search_param_names: ['patient', 'category', 'date'],
|
28
|
+
possible_status_search: true,
|
29
|
+
token_search_params: ['category'],
|
30
|
+
params_with_comparators: ['date']
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.metadata
|
35
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
36
|
+
end
|
37
|
+
|
38
|
+
def scratch_resources
|
39
|
+
scratch[:head_circumference_resources] ||= {}
|
40
|
+
end
|
41
|
+
|
42
|
+
run do
|
43
|
+
run_search_test
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module IpaTestKit
|
5
|
+
class HeadCircumferencePatientCategorySearchTest < Inferno::Test
|
6
|
+
include IpaTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for Observation search by patient + category'
|
9
|
+
description %(
|
10
|
+
A server SHALL support searching by
|
11
|
+
patient + category on the Observation resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[IPA Server CapabilityStatement](https://build.fhir.org/ig/HL7/fhir-ipa/CapabilityStatement-ipa-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :ipa_010_head_circumference_patient_category_search_test
|
20
|
+
input :patient_ids,
|
21
|
+
title: 'Patient IDs',
|
22
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
23
|
+
|
24
|
+
def self.properties
|
25
|
+
@properties ||= SearchTestProperties.new(
|
26
|
+
resource_type: 'Observation',
|
27
|
+
search_param_names: ['patient', 'category'],
|
28
|
+
possible_status_search: true,
|
29
|
+
token_search_params: ['category']
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.metadata
|
34
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
35
|
+
end
|
36
|
+
|
37
|
+
def scratch_resources
|
38
|
+
scratch[:head_circumference_resources] ||= {}
|
39
|
+
end
|
40
|
+
|
41
|
+
run do
|
42
|
+
run_search_test
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module IpaTestKit
|
5
|
+
class HeadCircumferencePatientCategoryStatusSearchTest < Inferno::Test
|
6
|
+
include IpaTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for Observation search by patient + category + status'
|
9
|
+
description %(
|
10
|
+
A server SHOULD support searching by
|
11
|
+
patient + category + status on the Observation resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[IPA Server CapabilityStatement](https://build.fhir.org/ig/HL7/fhir-ipa/CapabilityStatement-ipa-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :ipa_010_head_circumference_patient_category_status_search_test
|
20
|
+
optional
|
21
|
+
|
22
|
+
input :patient_ids,
|
23
|
+
title: 'Patient IDs',
|
24
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
25
|
+
|
26
|
+
def self.properties
|
27
|
+
@properties ||= SearchTestProperties.new(
|
28
|
+
resource_type: 'Observation',
|
29
|
+
search_param_names: ['patient', 'category', 'status'],
|
30
|
+
token_search_params: ['category'],
|
31
|
+
multiple_or_search_params: ['status']
|
32
|
+
)
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.metadata
|
36
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
37
|
+
end
|
38
|
+
|
39
|
+
def scratch_resources
|
40
|
+
scratch[:head_circumference_resources] ||= {}
|
41
|
+
end
|
42
|
+
|
43
|
+
run do
|
44
|
+
run_search_test
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require_relative '../../search_test'
|
2
|
+
require_relative '../../generator/group_metadata'
|
3
|
+
|
4
|
+
module IpaTestKit
|
5
|
+
class HeadCircumferencePatientCodeDateSearchTest < Inferno::Test
|
6
|
+
include IpaTestKit::SearchTest
|
7
|
+
|
8
|
+
title 'Server returns valid results for Observation search by patient + code + date'
|
9
|
+
description %(
|
10
|
+
A server SHOULD support searching by
|
11
|
+
patient + code + date on the Observation resource. This test
|
12
|
+
will pass if resources are returned and match the search criteria. If
|
13
|
+
none are returned, the test is skipped.
|
14
|
+
|
15
|
+
[IPA Server CapabilityStatement](https://build.fhir.org/ig/HL7/fhir-ipa/CapabilityStatement-ipa-server.html)
|
16
|
+
|
17
|
+
)
|
18
|
+
|
19
|
+
id :ipa_010_head_circumference_patient_code_date_search_test
|
20
|
+
optional
|
21
|
+
|
22
|
+
input :patient_ids,
|
23
|
+
title: 'Patient IDs',
|
24
|
+
description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
|
25
|
+
|
26
|
+
def self.properties
|
27
|
+
@properties ||= SearchTestProperties.new(
|
28
|
+
resource_type: 'Observation',
|
29
|
+
search_param_names: ['patient', 'code', 'date'],
|
30
|
+
possible_status_search: true,
|
31
|
+
token_search_params: ['code'],
|
32
|
+
params_with_comparators: ['date']
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.metadata
|
37
|
+
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
|
38
|
+
end
|
39
|
+
|
40
|
+
def scratch_resources
|
41
|
+
scratch[:head_circumference_resources] ||= {}
|
42
|
+
end
|
43
|
+
|
44
|
+
run do
|
45
|
+
run_search_test
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|