Skip to content

Commit 0e1245b

Browse files
committed
Move tsconfig.json files together with examples.
1 parent 6f020cd commit 0e1245b

8 files changed

Lines changed: 73 additions & 16 deletions

File tree

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ prepare-aidbox-runme:
4545

4646
test-typescript-r4-example: typecheck format lint
4747
bun run examples/typescript-r4/generate.ts
48-
$(TYPECHECK) --project tsconfig.example-typescript-r4.json
48+
$(TYPECHECK) --project examples/typescript-r4/tsconfig.json
4949
cd examples/typescript-r4 && bun run demo.ts > /dev/null
5050

5151
test-typescript-sql-on-fhir-example: typecheck format lint
@@ -55,11 +55,10 @@ test-typescript-sql-on-fhir-example: typecheck format lint
5555
test-typescript-ccda-example: typecheck format lint
5656
$(TEST) test/unit/typeschema/transformer/ccda.test.ts
5757
bun run examples/typescript-ccda/generate.ts
58-
$(TYPECHECK) --project tsconfig.example-ccda.json
59-
# cd examples/typescript-r4 && bun run demo.ts > /dev/null
58+
$(TYPECHECK) --project examples/typescript-ccda/tsconfig.json
6059

6160
test-csharp-sdk: typecheck format prepare-aidbox-runme lint
62-
$(TYPECHECK) --project tsconfig.example-csharp.json
61+
$(TYPECHECK) --project examples/csharp/tsconfig.json
6362
bun run examples/csharp/generate.ts
6463
cd examples/csharp && dotnet restore
6564
cd examples/csharp && dotnet build

examples/csharp/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["."]
4+
}

examples/docker-compose.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
volumes:
2+
postgres_data: {}
3+
services:
4+
postgres:
5+
image: docker.io/library/postgres:18
6+
volumes:
7+
- postgres_data:/var/lib/postgresql/18/docker:delegated
8+
command:
9+
- postgres
10+
- -c
11+
- shared_preload_libraries=pg_stat_statements
12+
environment:
13+
POSTGRES_USER: aidbox
14+
POSTGRES_PORT: '5432'
15+
POSTGRES_DB: aidbox
16+
POSTGRES_PASSWORD: dUlxYF5hJp
17+
aidbox:
18+
image: docker.io/healthsamurai/aidboxone:edge
19+
pull_policy: always
20+
depends_on:
21+
- postgres
22+
ports:
23+
- 8080:8080
24+
environment:
25+
BOX_ADMIN_PASSWORD: 7PfrTz0cDj
26+
BOX_BOOTSTRAP_FHIR_PACKAGES: hl7.fhir.r4.core#4.0.1
27+
BOX_COMPATIBILITY_VALIDATION_JSON__SCHEMA_REGEX: '#{:fhir-datetime}'
28+
BOX_DB_DATABASE: aidbox
29+
BOX_DB_HOST: postgres
30+
BOX_DB_PASSWORD: dUlxYF5hJp
31+
BOX_DB_PORT: '5432'
32+
BOX_DB_USER: aidbox
33+
BOX_FHIR_BUNDLE_EXECUTION_VALIDATION_MODE: limited
34+
BOX_FHIR_COMPLIANT_MODE: 'true'
35+
BOX_FHIR_CORRECT_AIDBOX_FORMAT: 'true'
36+
BOX_FHIR_CREATEDAT_URL: https://aidbox.app/ex/createdAt
37+
BOX_FHIR_SCHEMA_VALIDATION: 'true'
38+
BOX_FHIR_SEARCH_AUTHORIZE_INLINE_REQUESTS: 'true'
39+
BOX_FHIR_SEARCH_CHAIN_SUBSELECT: 'true'
40+
BOX_FHIR_SEARCH_COMPARISONS: 'true'
41+
BOX_FHIR_TERMINOLOGY_ENGINE: hybrid
42+
BOX_FHIR_TERMINOLOGY_ENGINE_HYBRID_EXTERNAL_TX_SERVER: https://tx.health-samurai.io/fhir
43+
BOX_FHIR_TERMINOLOGY_SERVICE_BASE_URL: https://tx.health-samurai.io/fhir
44+
BOX_LICENSE: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im5vdC1mb3VuZCIsImtleSI6Im9ubGluZS0yMDIyMDUyNC0xNDM2NDcifQ.QbmO04sb9N_gSkFnO76y2ouTxIRvoJx6WOLKi3mVPCRBGLWDSAxZjGO1jXoVMwUfqCJUKrONbwXX0zIuFhzKx01DbJvZj44EN_i6R-t6X44i_QGB5reOqyDj2oYrtab-uBieLaeh165K0ExkS7-iPKItcsGoC9n0yOuRmKSUGIg
45+
BOX_MODULE_SDC_STRICT_ACCESS_CONTROL: 'true'
46+
BOX_ROOT_CLIENT_SECRET: <SECRET>
47+
BOX_SEARCH_INCLUDE_CONFORMANT: 'true'
48+
BOX_SECURITY_AUDIT_LOG_ENABLED: 'true'
49+
BOX_SECURITY_DEV_MODE: 'true'
50+
BOX_SETTINGS_MODE: read-write
51+
BOX_WEB_BASE_URL: http://localhost:8080
52+
BOX_WEB_PORT: 8080
53+
healthcheck:
54+
test: curl -f http://localhost:8080/health || exit 1
55+
interval: 5s
56+
timeout: 5s
57+
retries: 90
58+
start_period: 30s
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["."]
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["."]
4+
}

tsconfig.example-ccda.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

tsconfig.example-csharp.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

tsconfig.example-typescript-r4.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)