Stream: hapi
Topic: error with Post/Get
Ait Tete (Jul 07 2020 at 19:59):
I post a bundle transaction (this example: https://www.hl7.org/fhir/bundle-transaction.xml.html) to my root directory (http://localhost:7080/hapi-fhir-jpaserver/) with response 200 OK.
When I do a GET query to this directory: http://localhost:7080/hapi-fhir-jpaserver/fhir/Patient?name=peter
I also interestingly get status 200 OK. but with the following response:
{
"resourceType": "Bundle",
"id": "00977a77-b1e0-4ec7-bfb7-b6975b0b3adc",
"meta": {
"lastUpdated": "2020-07-07T18:35:36.814+00:00"
},
"type": "searchset",
"total": 0,
"link": [
{
"relation": "self",
"url": "http://localhost:8080/hapi-fhir-jpaserver/fhir/Patient?name=peter"
}
]
}
I hope someone can point me to what could be happening here.
Jose Costa Teixeira (Jul 07 2020 at 20:51):
if you get a 200 when you do a POST, I would start there. (POST should give you a 201)
Ait Tete (Jul 07 2020 at 22:18):
Well, you should explain what you mean you'll by "start there". An informative answer would surely be helpful.
René Spronk (Jul 08 2020 at 06:23):
If you POST a transaction, please have a look at the body of the response. It should be a bundle of type transaction-response, which contains the HTTP result codes for all posts/gets/deletes/.. contained in your transaction bundle. Was Patient Peter created successfully (HTTP 201) ?
Last updated: Apr 12 2022 at 19:14 UTC