Skip to content

Feature/Replace ODS ORD API with ODS FIHR R4 API - jira ndrs2 2282#13

Merged
Rikki-Dev merged 28 commits intomainfrom
feature/jira-ndrs2-2282
Sep 19, 2025
Merged

Feature/Replace ODS ORD API with ODS FIHR R4 API - jira ndrs2 2282#13
Rikki-Dev merged 28 commits intomainfrom
feature/jira-ndrs2-2282

Conversation

@Rikki-Dev
Copy link
Copy Markdown
Contributor

Replacing a lot of the old ODS code with ODT frame work to make this more generic. Updating the tests and generally getting this ready to replace the ODS API.

Rikki-Dev and others added 22 commits December 20, 2024 14:54
Rails.logger is not available in test env, so instead create a new Logger and print straight to the console. This displays in the test console and also stops the test crashing from the lack of Rails.
Tests that find works properly when it gets a good response and returns the right org. Also tests that when the org doesn't exist it returns nil instead of crashing.
Changed Base to inherit from ActiveResource::Base and then Organisation and Client still have access to ActiveResource::Base via Base. This should give the best of both worlds and fix the duplication issues in Base and Organisation (and the inheritance issues)
Add Organisation Sync using the search function.
Comment thread lib/ndr_lookup/fhir/base.rb Outdated
Comment thread lib/ndr_lookup/fhir/odt/organisation.rb
@Rikki-Dev Rikki-Dev marked this pull request as draft August 5, 2025 10:15
@Rikki-Dev Rikki-Dev marked this pull request as ready for review August 5, 2025 10:15
@Rikki-Dev Rikki-Dev marked this pull request as draft August 6, 2025 13:14
@Rikki-Dev Rikki-Dev marked this pull request as ready for review August 6, 2025 13:15
Comment thread lib/ndr_lookup/fhir/odt/organisation.rb
Comment thread lib/ndr_lookup/fhir/odt/client.rb
Comment thread test/test_helper.rb
These overrides were needed before inheriting from ActiveResource::Base
but are now redundant with proper inheritance.
…2282.

- Explain endpoint method wrapper for test stubbing
- Document Organisation/Organization naming used in NHS API paths

PR Feedback.
@Rikki-Dev Rikki-Dev marked this pull request as draft August 12, 2025 13:21
@Rikki-Dev Rikki-Dev marked this pull request as ready for review August 12, 2025 13:21
@Rikki-Dev Rikki-Dev merged commit ba7ce83 into main Sep 19, 2025
14 checks passed
@bshand bshand mentioned this pull request Sep 22, 2025
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