-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit-schema.ps1
More file actions
29 lines (24 loc) · 977 Bytes
/
Copy pathinit-schema.ps1
File metadata and controls
29 lines (24 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Script based on instructions from https://github.com/LinuxForHealth/FHIR/tree/main/fhir-persistence-schema
# Prerequisites:
# - FHIR server is NOT running
# - Postgres server is running (`docker-run-postgres.ps1`)
# CD to git repo root
Set-Location "$(git rev-parse --show-toplevel)" -ErrorAction Stop
.\postgres\docker-build-fhir-server.ps1
if (-Not $?) { Exit }
.\postgres\docker-run-fhir-server.ps1 java -jar `
/opt/fhir-server/tools/fhir-persistence-schema-5.1.1-cli.jar `
--db-type postgresql `
--prop-file postgres-fhir-db.properties `
--schema-name fhirdata `
--create-schemas
if (-not $?) { Exit 1 }
# Note: Use `--grant-to` to allow a non-admin user to access the schema
.\postgres\docker-run-fhir-server.ps1 java -jar `
/opt/fhir-server/tools/fhir-persistence-schema-5.1.1-cli.jar `
--db-type postgresql `
--prop-file postgres-fhir-db.properties `
--schema-name fhirdata `
--update-schema `
--pool-size 1
if (-not $? ) { Exit 1 }