Skip to content

NPA-5608: IOPS amendments for get consent and get consent ID#259

Merged
LeoKHoward merged 24 commits into
masterfrom
task/NPA-5608/consent-id-spec-fixes
Nov 3, 2025
Merged

NPA-5608: IOPS amendments for get consent and get consent ID#259
LeoKHoward merged 24 commits into
masterfrom
task/NPA-5608/consent-id-spec-fixes

Conversation

@ChristopherBacon

Copy link
Copy Markdown
Contributor

Pull Request

🧾 Ticket Link

https://nhsd-jira.digital.nhs.uk/browse/NPA-5608


📄 Description/Summary of Changes

  • Updated specification with postman and schema changes for get constent and get consent ID
  • Updated examples for get consent and get consent ID

🧪 Developer Testing Carried Out

  • Ran Postman testing to check that responses were correct

🧪 Reviewer Testing Required


✅ Developer Checklist

  • PR title follows the format: NPA-XXXX: <short-description>
  • Branch name follows the convention: <type>/NPA-XXXX/<short-description>
  • Commit messages follow the template: NPA-XXXX: <short-description>
  • All acceptance criteria from the Jira ticket are addressed
  • Automated tests (unit/integration/API/infrastructure etc. tests) are added or updated
  • Assignees and appropriate labels (e.g. terraform, documentation) are added

👀 Reviewer Checklist

  • Changes meet the acceptance criteria of the Jira ticket
  • Code is able to be merged (no conflicts and adheres to coding standards)
  • Sufficient test evidence is provided (manual and/or automated)
  • Infrastructure/operational/build changes are validated (if applicable)

🚀 Post-merge

After merging and deploying changes to the sandbox, Postman collection or spec examples please run the Run Postman
collection workflow.

This will run the tests within the collection to check that the sandbox is working as expected once deployed.

@ChristopherBacon ChristopherBacon self-assigned this Sep 29, 2025
@ChristopherBacon ChristopherBacon added documentation Improvements or additions to documentation postman Changes to the postman collection OAS Updated the OpenAPI Specification (OAS) labels Sep 29, 2025
@github-actions

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@simonstead simonstead requested a review from Copilot September 29, 2025 15:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the Validated Relationship Service API specification to align with FHIR standards by removing redundant type references and fixing schema inconsistencies across consent response examples.

  • Removed redundant type fields from reference objects in schema and examples
  • Updated Postman collection references and metadata
  • Fixed malformed JSON structures in consent response examples

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 20 comments.

File Description
specification/validated-relationships-service-api.yaml Removed redundant type field from schema definition and updated Postman collection URL
specification/examples/responses/GET_Consent/*.yaml Removed redundant type references and fixed JSON structure issues across all consent response examples
postman/Validated Relationship Service Sandbox.postman_collection.json Updated collection metadata and removed redundant type references throughout test responses

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
code: PRN
display: parent
- coding:

Copilot AI Sep 29, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The role array structure is malformed. This line should be indented to align with the previous coding array entry within the same role object.

Suggested change
- coding:

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated spacing

- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
code: PRN
display: parent
- coding:

Copilot AI Sep 29, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The role array structure is malformed. This line should be indented to align with the previous coding array entry within the same role object.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the spacing

Comment on lines 63 to 64
value: ODS12345
system: 'https://fhir.nhs.uk/Id/ods-organization-code'

Copilot AI Sep 29, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generalPractitioner array structure is malformed. This line should be indented correctly as an array element.

Suggested change
value: ODS12345
system: 'https://fhir.nhs.uk/Id/ods-organization-code'
system: 'https://fhir.nhs.uk/Id/ods-organization-code'
value: ODS12345

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spacing

- system: "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
code: PRN
display: parent
- coding:

Copilot AI Sep 29, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The role array structure is malformed. This line should be indented to align with the previous coding array entry within the same role object.

Copilot uses AI. Check for mistakes.

@ChristopherBacon ChristopherBacon Oct 1, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied indentation fixes from line 33

…ld-relationship-include-performer-patient.yaml


NPA-5608: Altered generalPractitioner structure

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-status-active-include-details.yaml


NPA-5608: commit structure change for generalPractioner remove spaces

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-status-active-include-details.yaml


NPA-5608: Remove the spaces for generalPractitioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-include-patient.yaml


NPA-5608: remove spaces from generalPractioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-include-patient.yaml


NPA-5608: remove spacing from generalPractioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-include-patient.yaml


NPDA-5608: remove spacing from generalPractitioner

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-include-performer-patient.yaml


NPA-5608: remove spacing from generalPractitioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-include-performer-patient.yaml


NPA-5608: remove spacing from generalPractitioner

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-include-performer-patient.yaml


NPA-5608: remove spaces from generalPracitioner

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-single-patient-include-patient.yaml


NPA-5608: remove spaces from generalPractitioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…ships-single-patient-include-performer-patient.yaml


NPA-5608: remove spaces from generalPractitioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

…-adult-relationship-include-patient.yaml


NPA-5608: remove spaces from generalPractitioner object

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Nov 3, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@github-actions

github-actions Bot commented Nov 3, 2025

Copy link
Copy Markdown

This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket:

NPA-5608

@LeoKHoward LeoKHoward merged commit 682e850 into master Nov 3, 2025
17 checks passed
@LeoKHoward LeoKHoward deleted the task/NPA-5608/consent-id-spec-fixes branch November 3, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation OAS Updated the OpenAPI Specification (OAS) postman Changes to the postman collection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants