beda-software / fhir-py

FHIR Client for python
MIT License
177 stars 33 forks source link

Don't pass _count if _id is specified #100

Open ir4y opened 1 year ago

ir4y commented 1 year ago

This code

client.resources("Patient").search(_id="12724066").get()

returns

OperationOutcome: {
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "invalid",
      "details": {
        "text": "_count: unsupported when _id is provided"
      }
    }
  ]
}

for Cerner sandbox.

ruscoder commented 1 year ago

After #111 there's a workaround for this particular issue: client.reference("Patient", "12724066").to_resource()

But for conditional update it still might be an issue