docker
commands with sudo
prefix, i.e. sudo docker pull
Ctrl+C
.-d
) mode:34b55aae4b2538b3a51b87a125bba93f667dc5ddf67aec95d0cb6da6b953993e
. Copy this ID to the clipboard. Now we're ready to get Bash shell inside running container. Do following command and paste ID from the clipboard instead of ID placeholder:[email protected]:/$
bash prompt, you can use psql
command to create a new database. After invoking psql
command your terminal should look like this:CREATE DABATASE fb;
statement into the prompt and press Enter. Do not forget to put semicolon at the end of the statement. fb
here is the name of new database, you can change it to anything you want, but don't forget to change it in all command examples in this tutorial as well.CREATE DATABASE
, your new database is created and now you can quit psql
with typing \q
and pressing Enter.psql
, an standard command-line PostgreSQL client.fhirbase init
command for that:-d fb
specifies name of the database (don't forget to change it if you named database differently in previous step). --fhir=3.0.1
sets a FHIR version you're going to use.fhirbase load
command. Fhirbade Docker image comes with sample NDJSON file containing 127454 Synthea-generated FHIR resources. This bundle is located at /bundle.ndjson.gzip
. Invoke following command to load it:psql
providing database name:fb=#
prompt. Copy-and-paste examples below to see some trivial SQL magic.