Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ test-cases-summary.txt
tx/data/CodeSystem-cpt.db

coverage/
/be
docker-compose.override.yml
/defaults/data/terminology-cache
/defaults/data/logs
36 changes: 36 additions & 0 deletions defaults/config/library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Default Terminology Library Configuration
# License-free terminology sources only
#
# For licensed systems (SNOMED CT, LOINC, RxNorm, CPT, etc.),
# mount your own config/ volume with a customized library.yml.

base:
url: https://storage.googleapis.com/tx-fhir-org

sources:
# Built-in code systems
- internal:lang
- internal:country
- internal:currency
- internal:mimetypes

# UCUM - Unified Code for Units of Measure
# - ucum:data/terminology-cache/ucum-essence-2.2.xml

# FHIR Packages (downloaded from packages.fhir.org)
# HL7 Terminology
- npm:hl7.terminology.r4
- npm:hl7.terminology.r3#4.0.0

# FHIR Extensions
- npm:hl7.fhir.uv.extensions.r4#5.1.0
- npm:hl7.fhir.uv.extensions.r4#1.0.0

# IHE Format Codes
- npm:ihe.formatcode.fhir#1.3.0
- npm:ihe.formatcode.fhir#1.1.0

# Other FHIR packages
- npm:hl7.fhir.uv.sdc#3.0.0
- npm:hl7.fhir.uv.bulkdata#2.0.0
- npm:hl7.fhir.uv.smart-app-launch#2.1.0
36 changes: 36 additions & 0 deletions defaults/data/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"server": {
"port": 3000,
"cors": {
"origin": true,
"credentials": true
}
},
"modules": {
"shl": { "enabled": false },
"vcl": { "enabled": false },
"xig": { "enabled": false },
"packages": { "enabled": false },
"registry": { "enabled": false },
"publisher": { "enabled": false },
"npmprojector": { "enabled": false },
"token": { "enabled": false },
"tx": {
"enabled": true,
"librarySource": "/app/config/library.yml",
"cacheTimeout": 30,
"expansionCacheSize": 1000,
"expansionCacheMemoryThreshold": 0,
"endpoints": [
{
"path": "/tx/r4",
"fhirVersion": "4.0.1"
},
{
"path": "/tx/r5",
"fhirVersion": "5.0.0"
}
]
}
}
}
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
nodeserver:
build: .
image: ghcr.io/healthintersections/fhirsmith/fhirsmith:latest
volumes:
- ./defaults/config:/app/config
- ./defaults/data:/app/data
ports:
- "3000:3000"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/health || exit 1"]
interval: 10s
timeout: 3s
retries: 12
Loading