Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
chore: Update interface and pass values to AuthZ (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmayda committed Jan 27, 2021
1 parent 0bce1fb commit 93a7933
Show file tree
Hide file tree
Showing 3 changed files with 494 additions and 530 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"cors": "^2.8.5",
"errorhandler": "^1.5.1",
"express": "^4.17.1",
"fhir-works-on-aws-interface": "^7.0.0",
"fhir-works-on-aws-interface": "^7.0.1",
"flat": "^5.0.0",
"http-errors": "^1.8.0",
"lodash": "^4.17.15",
Expand Down
4 changes: 4 additions & 0 deletions src/router/handlers/resourceHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class ResourceHandler implements CrudHandlerInterface {
const searchFilters = await this.authService.getSearchFilterBasedOnIdentity({
userIdentity,
operation: 'search-type',
resourceType,
});

const searchResponse = await this.searchService.typeSearch({
Expand All @@ -90,6 +91,7 @@ export default class ResourceHandler implements CrudHandlerInterface {
const searchFilters = await this.authService.getSearchFilterBasedOnIdentity({
userIdentity,
operation: 'history-type',
resourceType,
});

const historyResponse = await this.historyService.typeHistory({
Expand All @@ -111,6 +113,8 @@ export default class ResourceHandler implements CrudHandlerInterface {
const searchFilters = await this.authService.getSearchFilterBasedOnIdentity({
userIdentity,
operation: 'history-instance',
resourceType,
id,
});

const historyResponse = await this.historyService.instanceHistory({
Expand Down
Loading

0 comments on commit 93a7933

Please sign in to comment.