-
Notifications
You must be signed in to change notification settings - Fork 7
Add cancellation process #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
trawlinson-kainos
merged 19 commits into
NHSDigital:main
from
trawlinson-kainos:feat/add-cancellation-process
Jun 26, 2026
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9810d93
Add order rejected and cancelled states, add Mermaid diagram
trawlinson-kainos 0a96612
First draft of order accepted, rejected and cancelled FHIR structures.
trawlinson-kainos 9bbe90f
Adding statusReasons, and using full UUIDs in examples.
trawlinson-kainos 2813c1d
Remove order rejection
trawlinson-kainos 5f05e40
Syntax errors / spacing in YAML files.
trawlinson-kainos 717aa17
Model statusReason as a codeable concept (text field) rather than jus…
trawlinson-kainos ca14d25
Fix typos that error the pre-commit
trawlinson-kainos 08a125b
Another extra markdown empty line
trawlinson-kainos 224a17d
Remove bussinessStatus enum - this is being modified in another PR
trawlinson-kainos c82ed27
Removing of order accepted and rejected examples, replace with receiv…
trawlinson-kainos 6f7e68e
Update changelog.md
trawlinson-kainos 8d8635d
Move order cancellation to a different verb on the same endpoint
trawlinson-kainos bc36317
Fix whitespace
trawlinson-kainos 383760b
Apply suggestion from @lewisbirks
trawlinson-kainos 2e14b5d
Correct name of order cancelled file
trawlinson-kainos c4d47dd
Change to use 'PATCH' as the HTTP verb for cancelling
trawlinson-kainos 1db4b13
Use 'delete' as the HTTP verb
trawlinson-kainos 9251fee
Update changelog
lewisbirks b6b8943
Merge branch 'main' into feat/add-cancellation-process
lewisbirks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
|
trawlinson-kainos marked this conversation as resolved.
|
||
| "resourceType": "ServiceRequest", | ||
| "id": "7cb0623e-9cd7-4495-aa66-715c04a81903", | ||
| "text": { | ||
| "status": "generated", | ||
| "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">ServiceRequest: HIV antigen test order cancelled by user</div>" | ||
|
trawlinson-kainos marked this conversation as resolved.
|
||
| }, | ||
| "status": "revoked", | ||
| "intent": "order", | ||
| "code": { | ||
| "coding": [ | ||
| { | ||
| "system": "http://snomed.info/sct", | ||
| "code": "31676001", | ||
| "display": "HIV antigen test" | ||
| } | ||
| ], | ||
| "text": "HIV antigen test" | ||
| }, | ||
| "subject": { | ||
| "reference": "Patient/1d6efc98-78e7-4049-9d4f-e651a95d9727" | ||
| }, | ||
| "requester": { | ||
| "reference": "Organization/ORG001" | ||
| }, | ||
| "performer": [ | ||
| { | ||
| "reference": "Organization/SUP001" | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "resourceType": "Task", | ||
| "identifier": [ | ||
| { | ||
| "system": "https://fhir.hometest.nhs.uk/Id/order-uid", | ||
| "value": "550e8400-e29b-41d4-a716-446655440000", | ||
| "use": "official" | ||
| } | ||
| ], | ||
| "basedOn": [ | ||
| { | ||
| "reference": "ServiceRequest/550e8400-e29b-41d4-a716-446655440000" | ||
| } | ||
| ], | ||
| "status": "in-progress", | ||
| "intent": "order", | ||
| "for": { | ||
| "reference": "Patient/123e4567-e89b-12d3-a456-426614174000" | ||
| }, | ||
| "lastModified": "2025-11-04T10:35:00Z", | ||
| "businessStatus": { | ||
| "text": "received-at-lab" | ||
| }, | ||
| "statusReason" : { | ||
| "text": " Test kit has been received at the lab and is being processed" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "resourceType": "Task", | ||
| "identifier": [ | ||
| { | ||
| "system": "https://fhir.hometest.nhs.uk/Id/order-uid", | ||
| "value": "550e8400-e29b-41d4-a716-446655440000", | ||
| "use": "official" | ||
| } | ||
| ], | ||
| "basedOn": [ | ||
| { | ||
| "reference": "ServiceRequest/550e8400-e29b-41d4-a716-446655440000" | ||
| } | ||
| ], | ||
| "status": "in-progress", | ||
| "intent": "order", | ||
| "for": { | ||
| "reference": "Patient/123e4567-e89b-12d3-a456-426614174000" | ||
| }, | ||
| "lastModified": "2025-11-04T10:35:00Z", | ||
| "businessStatus": { | ||
| "text": "test-processed" | ||
| }, | ||
| "statusReason" : { | ||
| "text": " Test kit has been processed" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.