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

fhirbase_update removes id #28

Open
myungchoi opened this issue Jul 2, 2020 · 2 comments
Open

fhirbase_update removes id #28

myungchoi opened this issue Jul 2, 2020 · 2 comments

Comments

@myungchoi
Copy link

myungchoi commented Jul 2, 2020

When I issue SELECT fhirbase_update(''::json);, txid increases,. And, the resource is updated. But, the resource id is removed. Why is the id being removed? Is there a way to keep the id inside resource?

@m4rcelofs
Copy link

m4rcelofs commented Aug 28, 2020

We are also affected by this:

select fhirbase_create('{"resourceType": "Appointment"}'::jsonb)

{
"id": "78abb01c-6075-418c-91b9-6f5e46e5076c",
"resourceType": "Appointment"
}

select fhirbase_update('{"id": "78abb01c-6075-418c-91b9-6f5e46e5076c","resourceType": "Appointment", "test": "42"}'::jsonb)

{
"test": "42",
"resourceType": "Appointment"
}

@datadevopscloud
Copy link

#31

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

3 participants