Pathling is distributed in two forms: as a JAR file, and a Docker image. Both forms are configured in the same way, through environment variables.
8080) The port which the server should bind to and listen for HTTP connections.
"") A prefix to add to the API endpoint, e.g. a value of
/foowould cause the FHIR endpoint to be changed to
false) Setting this option to
truewill enable additional logging of the details of requests to the server, and between the server and the terminology service.
-Xmx2g) Allows for the configuration of arbitrary options on the Java VM that Pathling runs within.
file:///usr/share/warehouse) The base URL at which Pathling will look for data files, and where it will save data received within import requests. Can be an Amazon S3 (
s3://), HDFS (
hdfs://) or filesystem (
default) The subdirectory within the warehouse path used to read and write data.
PATHLING_AWS_ACCESS_KEY_ID- Authentication details for connecting to a protected Amazon S3 bucket.
PATHLING_AWS_SECRET_ACCESS_KEY- Authentication details for connecting to a protected Amazon S3 bucket.
local[*]) Address of the master node of an Apache Spark cluster to use for processing data, see Master URLs.
1g) The quantity of memory available for each child task to process data within, in the same format as JVM memory strings with a size unit suffix (
false) Setting this option to
truewill enable additional logging relating to the query plan used to execute queries.
2) This option controls the number of data partitions used to distribute data between child tasks. This can be tuned to higher numbers for larger data sets. It also controls the granularity of requests made to the configured terminology service.
https://r4.ontoserver.csiro.au/fhir) The endpoint of a FHIR terminology service (R4) that the server can use to resolve terminology queries. Terminology functionality can be disabled by setting this variable to an empty string.
60000) The maximum period (in milliseconds) that the server should wait for incoming data from the terminology service.
false) Enables SMART authorisation. If this option is set to
PATHLING_AUTH_AUDIENCEoptions must also be set.
PATHLING_AUTH_JWKS_URL- Provides the URL of a JSON Web Key Set from which the signing key for incoming bearer tokens can be retrieved, e.g.
PATHLING_AUTH_ISSUER- Configures the issuing domain for bearer tokens, which will be checked against the claims within incoming bearer tokens, e.g.
PATHLING_AUTH_AUDIENCE- Configures the audience for bearer tokens, which is the FHIR endpoint that tokens are intended to be authorised for, e.g.
PATHLING_AUTH_AUTHORIZE_URL- Provides the URL which will be advertised as the authorization endpoint, e.g.
PATHLING_AUTH_TOKEN_URL- Provides the URL which will be advertised as the token endpoint, e.g.
PATHLING_AUTH_REVOKE_URL- Provides the URL which will be advertised as the token revocation endpoint, e.g.
*) This is a comma-delimited list of domain names that controls which domains are permitted to access the server per the
Access-Control-Allow-Originheader within the Cross-Origin Resource Sharing specification.
SENTRY_DSN- If this variable is set, all errors will be reported to a Sentry service, e.g.
There are a number of operations within the Pathling FHIR API that pass back URLs referring back to API endpoints. The host and protocol components of these URLs are automatically detected based upon the details of the incoming request.
In some cases it might be desirable to override the hostname and protocol, particularly where Pathling is being hosted behind some sort of proxy. To account for this, Pathling also supports the use of the X-Forwarded-Host and X-Forwarded-Proto headers to override the hostname and protocol within URLs sent back by the API.
When authorisation is enabled through configuration, Pathling will refuse any requests which are not accompanied by a valid bearer token. Tokens must meet the following requirements:
- Conforms to the JSON Web Token specification
- Signed using the RSA-256 signing algorithm
- Signed using a public signing key accessible from the configured JSON Web Key Set URL
- Contains an audience claim that matches the configured value
- Contains an issuer claim that matches the configured value
- Contains a value of
user/*.readwithin the scope claim
Pathling currently only supports the
user/*.read scope. Future work is planned to expand this to enable control over the access of individual resource types, aggregate vs individual record data, and more.
Pathling can also be run directly within an Apache Spark cluster as a persistent application.
For compatibility, Pathling runs Spark 2.4.5 (Scala 2.11), with Hadoop version 2.7.7.