fhir-py icon indicating copy to clipboard operation
fhir-py copied to clipboard

Don't pass _count if _id is specified

Open ir4y opened this issue 1 year ago • 1 comments

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.

ir4y avatar Mar 15 '23 13:03 ir4y

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

ruscoder avatar Aug 19 '23 12:08 ruscoder