Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't pass _count if _id is specified #100

Open
ir4y opened this issue Mar 15, 2023 · 1 comment
Open

Don't pass _count if _id is specified #100

ir4y opened this issue Mar 15, 2023 · 1 comment

Comments

@ir4y
Copy link
Member

ir4y commented Mar 15, 2023

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants