You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## π« Ticket
https://jira.cms.gov/browse/BCDA-9021
## π Changes
This PR:
* updates the BCDA `/demo` API to point to BFD V2. (temporary until v3
is released)
* adds the _typeFilter parameter for the `/demo` API. (while we are
pointing at BFD v2, only the service-date subquery on the EOB resource
will work)
## βΉοΈ Context
For Connectathon, we want to get a demo api up and running for people to
test against. This way we can preview BFD V3 and the _typeFilter
parameter
## π§ͺ Validation
### Test 1: /demo with _typefilter
Make an $export request to the `/demo` API and include the _typeFilter
parameter for service-date (example:
`/api/demo/Patient/$export?_typeFilter=ExplanationOfBenefit%3Fservice-date%3Dgt2001-07-01`)
- When you pull the EOB file, make sure only EOBs from the specified
date range are included (ex above: after July 1, 2001)
### Test 2: demo without _typefilter
Make an $export request to the `/demo` API and do not include any
_typeFilter param:
- When you pull the EOB file, there should not be any extra filtering
### Test 3: demo with invalid _typefilter
Make an $export request to the `/demo` API and include an invalid
_typeFilter parameter
- ([examples of bad query
parameters](https://github.com/CMSgov/bcda-app/blob/2b8a9aace01f9f563ab0ef3c3a7a3a521c60fdc9/bcda/web/middleware/validation_test.go#L62-L67)):
- `_typeFilter=MedicationRequest%%3Fstatus%%3Dactive` - invalid resource
type
- `_typeFilter=ExplanationOfBenefit%%3Fservice-dateactive` - invalid
parameter/value
- ` _typeFilter=ExplanationOfBenefit%%3Fstatus%%3Dactive` - invalid
subquery parameter
- When you make the $export request, you should see an OperationOutcome
response with an appropriate error
### Test 4: v2 with (ignored) _typefilter
[*regression*] Make an $export request to the `/v2` API and include the
_typeFilter parameter for service-date (example:
`/api/demo/Patient/$export?_typeFilter=ExplanationOfBenefit%3Fservice-date%3Dgt2001-07-01`)
- When you pull the EOB file, there should not be any extra filtering
0 commit comments