From f8254a452c9f6358e6dafca94166b3a1b81cde42 Mon Sep 17 00:00:00 2001 From: Gorovoi <98281622+Gorovoi@users.noreply.github.com> Date: Mon, 30 Dec 2024 14:24:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Aidbox/e?= =?UTF-8?q?xamples@ec93d924063bab63c7a1c98c27aae0bfa8b40e80=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ips_ig_cl/README.MD | 7 +++- ips_ig_cl/idxs_init_bundle.json | 61 +++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 ips_ig_cl/idxs_init_bundle.json diff --git a/ips_ig_cl/README.MD b/ips_ig_cl/README.MD index ec2dde1..434c4ba 100644 --- a/ips_ig_cl/README.MD +++ b/ips_ig_cl/README.MD @@ -197,4 +197,9 @@ stringData: AIDBOX_CLIENT_ID: AIDBOX_CLIENT_SECRET: APP_SECRET: # allows aidbox safely communicate with this app -``` \ No newline at end of file +``` + +## Indexes + +If your requests spend to much time on getting patient's resources, you may apply the [bundle](./idxs_init_bundle.json) +to create indexes that will improve performance of your requests. \ No newline at end of file diff --git a/ips_ig_cl/idxs_init_bundle.json b/ips_ig_cl/idxs_init_bundle.json new file mode 100644 index 0000000..39d6445 --- /dev/null +++ b/ips_ig_cl/idxs_init_bundle.json @@ -0,0 +1,61 @@ +{ + "type": "batch", + "entry": [ + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS observation_resource_idx ON observation USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS explanationofbenefit_resource_idx ON explanationofbenefit USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS procedure_resource_idx ON procedure USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS allergyintolerance_resource_idx ON allergyintolerance USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS immunization_resource_idx ON immunization USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS careplan_resource_idx ON careplan USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS diagnosticreport_resource_idx ON diagnosticreport USING gin ((resource))" + }, + { + "request": { + "method": "POST", + "url": "/$sql" + }, + "resource": "CREATE INDEX IF NOT EXISTS medicationrequest_resource_idx ON medicationrequest USING gin ((resource))" + } + ] +}