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

set indices in json #42

Open
kapsner opened this issue May 4, 2022 · 0 comments
Open

set indices in json #42

kapsner opened this issue May 4, 2022 · 0 comments

Comments

@kapsner
Copy link
Member

kapsner commented May 4, 2022

For better performance, set indices on json-items to enhance user-experience and speed when joining:

Patient-ID, e.g.:

  • Patient.DATA ->> 'id'
  • REPLACE(jsonb_path_query(Encounter.DATA, '$.subject') ->> 'reference', 'Patient/', '')

Encounter-ID, e.g.:

  • Encounter.DATA ->> 'id'
  • REPLACE(Condition.DATA -> 'encounter' ->> 'reference', 'Encounter/', '')
  • REPLACE(Procedure.DATA -> 'encounter' ->> 'reference', 'Encounter/', '')
  • REPLACE(Observation.DATA -> 'encounter' ->> 'reference', 'Encounter/', '')
kapsner added a commit to kapsner/fhir-gateway that referenced this issue May 10, 2022
makampf pushed a commit to kapsner/fhir-gateway that referenced this issue Aug 18, 2022
makampf pushed a commit to kapsner/fhir-gateway that referenced this issue Aug 19, 2022
makampf pushed a commit to kapsner/fhir-gateway that referenced this issue Aug 19, 2022
makampf pushed a commit to kapsner/fhir-gateway that referenced this issue Aug 19, 2022
makampf pushed a commit to kapsner/fhir-gateway that referenced this issue Aug 19, 2022
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

1 participant