PBS data not present
Closed this issue · 4 comments
Originally reported by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)
There doesn't seem to be PBS data on medserve.online, dionmcm/medserve, or my locally built copy.
At least, the example for searching by subsidy code in the Postman collection doesn't return anything, and searches of other PBS codes seem to yield the same result.
Original comment by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)
I've added the Postman collection to source control in pull request #1.
Original comment by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)
Ah, I see it.
The PBS URI in yours is different.
Would you mind posting an updated Postman collection, just to make sure I have the latest?
Original comment by John Grimes (Bitbucket: j0hngr1mes, GitHub: Unknown)
This is definitely strange, I'm not sure why I am getting a different result to you.
Here is the full account of my request and response:
curl -v http://medserve.online/fhir/Medication?subsidy-code=http%3A%2F%2Fpbs.gov.au%2Fschedule%7C10001J
* Trying 139.59.219.112...
* TCP_NODELAY set
* Connected to medserve.online (139.59.219.112) port 80 (#0)
> GET /fhir/Medication?subsidy-code=http%3A%2F%2Fpbs.gov.au%2Fschedule%7C10001J HTTP/1.1
> Host: medserve.online
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Powered-By: HAPI FHIR 2.4 REST Server (FHIR Server; FHIR 3.0.1/DSTU3)
< Last-Modified: Thu, 05 Oct 2017 19:48:24 GMT
< Content-Type: application/fhir+json;charset=utf-8
< Transfer-Encoding: chunked
< Server: Jetty(9.4.3.v20170317)
<
* Connection #0 to host medserve.online left intact
{"resourceType":"Bundle","id":"fc1ce93e-1971-4413-8d3f-af37d41b20fb","meta":{"lastUpdated":"2017-10-05T19:48:24.979+00:00"},"type":"searchset","total":0,"link":[{"relation":"self","url":"http://medserve.online/fhir/Medication?subsidy-code=http%3A%2F%2Fpbs.gov.au%2Fschedule%7C10001J"}]}
Original comment by Dion McMurtrie (Bitbucket: dion_mcmurtrie, GitHub: Unknown)
hmmm...that works for me. The example in the postman collection is
GET /fhir/Medication?subsidy-code=http://pbs.gov.au/code/item|10001J
Which returns a bundle with two entries.
The same for
GET /fhir/Medication?subsidy-code=10001J
Are you sure this is a problem?