Skip to content

Commit

Permalink
Retain failed transfers for 12 weeks / 84 days (#1025)
Browse files Browse the repository at this point in the history
Retain failed transfers for 12 weeks / 84 days as per spec
  • Loading branch information
stevenmccullaghmadetech authored Dec 6, 2024
1 parent 0ac0be2 commit 06d0ad4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
* When a transfer fails, the transfer should remain available in the db for at least 12 weeks (84 days), as per spec.
* When mapping a `DocumentReference` which contains a `NOPAT` `meta.security` or `NOPAT` `securityLabel` tag the resultant XML for that resource
will contain a `NOPAT` `confidentialityCode` element.
* When mapping `AllergyIntolerances` which contain a `NOPAT` `meta.security` tag the resultant XML for that resource
Expand Down
4 changes: 2 additions & 2 deletions OPERATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The adaptor requires a Mongodb-compatible database to manage its internal state.
| GP2GP_MONGO_PASSWORD | | Mongo database password. Leave undefined if GP2GP_MONGO_URI is used. |
| GP2GP_MONGO_OPTIONS | | Mongodb URL encoded parameters for the connection string without a leading "?". Leave undefined if GP2GP_MONGO_URI is used. |
| GP2GP_MONGO_AUTO_INDEX_CREATION | true | (Optional) Should auto index for Mongo database be created. |
| GP2GP_MONGO_TTL | P7D | (Optional) Time-to-live value for inbound and outbound state collection documents as an [ISO 8601 Duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). |
| GP2GP_MONGO_TTL | P84D | (Optional) Time-to-live value for inbound and outbound state collection documents as an [ISO 8601 Duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). |
| GP2GP_COSMOS_DB_ENABLED | false | (Optional) If true the adaptor will enable features and workarounds to support Azure Cosmos DB. |

**Trust Store Configuration Options**
Expand Down Expand Up @@ -266,7 +266,7 @@ The adaptor's database records:
* metadata about the transfer process

The supplier MUST configure the `GP2GP_MONGO_TTL` variable to remove the database records
after a reasonable time period.
after a reasonable time period. The specs say 12 weeks (84 days), so this is our suggestion.

The adaptor's queued messages contain:
* the patient's NHS number
Expand Down
2 changes: 1 addition & 1 deletion service/src/intTest/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ gp2gp:
password: ${GP2GP_MONGO_PASSWORD:}
options: ${GP2GP_MONGO_OPTIONS:}
autoIndexCreation: ${GP2GP_MONGO_AUTO_INDEX_CREATION:true}
ttl: ${GP2GP_MONGO_TTL:P7D}
ttl: ${GP2GP_MONGO_TTL:P84D}
cosmosDbEnabled: ${GP2GP_COSMOS_DB_ENABLED:false}
gpc:
url: ${GP2GP_GPC_GET_URL:http://localhost:8090/@ODS_CODE@/STU3/1/gpconnect}
Expand Down
2 changes: 1 addition & 1 deletion service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gp2gp:
password: ${GP2GP_MONGO_PASSWORD:}
options: ${GP2GP_MONGO_OPTIONS:}
autoIndexCreation: ${GP2GP_MONGO_AUTO_INDEX_CREATION:true}
ttl: ${GP2GP_MONGO_TTL:P7D}
ttl: ${GP2GP_MONGO_TTL:P84D}
cosmosDbEnabled: ${GP2GP_COSMOS_DB_ENABLED:false}
gpc:
url: ${GP2GP_GPC_GET_URL:http://localhost:8090/@ODS_CODE@/STU3/1/gpconnect}
Expand Down

0 comments on commit 06d0ad4

Please sign in to comment.