Skip to content

Conversation

@projkov
Copy link
Member

@projkov projkov commented Aug 23, 2025

No description provided.

projkov added 30 commits August 23, 2025 11:47
…liminating redundancy in `patch_test_generator.rb`
…h_test` and update `patch_test_generator` to use `create_fhirpath_patch_data` instead of `create_patch_data`
…test` and comment out `fhir_operation` implementation
…esource` and update `create_patch_data` to include `patchset_data` logic
…Parameter`, and update `patch_test_generator` to simplify `create_patch_data` logic using decorators
… update `Content-Type` to `application/fhir+json`.
… support multiple patch options (XML, JSON, FHIRPath). Streamline path conversion and patch execution logic.
…eusing extracted variables for `parameters_resource` and `patchset`
…arily disable XML patch test with a placeholder
…tch_json_test` and streamline `fhir_fhirpath_patch` execution
…integrate it into `fhir_fhirpath_patch` for enhanced FHIR client functionality
…and `tags` options for enhanced customization
…t patch options to JSON, and update tests with placeholders for unimplemented functionality
… `patch.rb.erb`, update `create_patch_data` logic, and include `GenericUtils` in `PatchTestGenerator`
…g resource ID handling, and improving payload retrieval
…erform_json_patch_test` for improved encapsulation
…ion, improve attempt logic, and enhance debug logs
…ameter, ensuring thorough resource version validation
…ic, and streamline resource version validation
…ersion validation, and enhance attempt logic
…on workflows

- Integrate `jsonpath` gem for advanced filtering capabilities.
- Implement `filter_set` to enable JSONPath-based filtering logic in validation tests.
- Update resource filtering to support complex conditions using JSONPath expressions.
- Modify Gemfile and Gemfile.lock to include `jsonpath` dependency.
…ng in suite generator

- Allow `extra_imports` to be defined and processed dynamically.
- Add `rewrite_igs` configuration for overriding IG identifiers.
- Extend getter methods in config to support the new settings.
- Use `positive?` for `filter_set` length checks to enhance readability.
- Standardize and clean up version validation logic across PATCH and UPDATE tests.
- Improve block formatting in `create_interaction_exists?` for consistency.
- Remove redundant `else nil` clause in update test generator.
- Ensure `jsonpath` gem dependency is correctly formatted in Gemfile.
- Address `nil` handling issue in `filtered_resources` assignment.
- Simplify conditional logic for `filter_set` in resource selection.
- Ensure consistent handling of empty `filter_set` across modules.
- Simplify conditional logic and improve readability.
- Fix assignment issue for filtered resources.
- Introduce `BasicTestHelpers` module for shared test utilities.
- Refactor `filterset_on_resource` to use consistent naming with `?` suffix.
- Replace `demo_resources` accessors with `existing_demo_resources` for clarity.
- Simplify teardown candidate and resource ID registration with helper methods.
- Use `default_patch_body_list` for cleaner patch body initialization.
- Add private helper methods to streamline code readability and reuse.
…rivate methods for improved readability and reuse.
… error handling for unsupported operations
… test data handling

- Extract test data generation methods (`xml_test_data`, `json_test_data`, `fhirpath_xml_data`, `fhirpath_json_data`) for better organization.
- Simplify `current_test_data` logic using a mapping structure.
- Add helper methods for `transaction_bundles` and `bundle_entries` to streamline resource handling.
- Improve `patch_entry` and `parameters_resource` consistency with modular methods.
- Extract `initiate_empty_result`, `initiate_empty_arrays_for_resource_types`, and `update_result` as helper methods.
- Simplify result initialization and resource type handling logic.
- Improve clarity and reduce duplication in patch body processing.
… handling and normalization logic

- Add new test modules to `.rubocop.yml` exclusions.
- Replace `each_with_index` with manual index handling in `patch_test` and `update_test` to simplify iteration.
…ng in `inferno_suite_generator`

- Add `extra_imports`, `rewrite_igs`, and `filter_set` methods to extend functionality.
- Update module definitions to reflect new capabilities.
@projkov projkov merged commit c3a6695 into main Nov 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants