Skip to content

Commit

Permalink
test: mock PractitionerRole history resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu101 committed Dec 31, 2024
1 parent 0c945ce commit fbb2b54
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/workflow/test/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ const practitionerRoleHandler = rest.get(
}
)

const practitionerRoleHistoryHandler = rest.get(
'http://localhost:3447/fhir/PractitionerRole/:practitionerId/_history',
(_, res, ctx) => {
return res(
ctx.json({
resourceType: 'Bundle',
type: 'history',
entry: []
})
)
}
)

const hierarchyHandler = rest.get(
'http://localhost:2021/locations/ce73938d-a188-4a78-9d19-35dfd4ca6957/hierarchy',
(_req, res, ctx) => {
Expand Down Expand Up @@ -155,6 +168,7 @@ const handlers = [
userHandler,
practitionerHandler,
practitionerRoleHandler,
practitionerRoleHistoryHandler,
hierarchyHandler,
locationHandler,
notificationFlagsHandler,
Expand Down

0 comments on commit fbb2b54

Please sign in to comment.