Skip to content

Commit 2e401b9

Browse files
committed
Updated initBundle generation
1 parent 4d8fee9 commit 2e401b9

File tree

13 files changed

+2825
-295
lines changed

13 files changed

+2825
-295
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ contrib/emr-config/config.js
3434
*storybook.log
3535
storybook-static
3636

37-
.env
37+
.env
38+
resources/seeds/initBundle.json

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
up:
2+
docker compose pull
3+
docker compose build
4+
COMPOSE_PROFILES=dev docker compose up -d
5+
6+
stop:
7+
COMPOSE_PROFILES=dev docker compose stop
8+
9+
down:
10+
COMPOSE_PROFILES=dev docker compose down
11+
12+
aidbox:
13+
docker compose up --build -d aidbox

compose.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
- ./env/aidbox
2323
- .env
2424
volumes:
25-
- ./seeds:/seeds
25+
- ./resources:/resources
2626
devbox-db:
2727
image: "healthsamurai/aidboxdb:13.2"
2828
environment:
@@ -41,7 +41,6 @@ services:
4141
interval: 5s
4242
timeout: 30s
4343
retries: 100
44-
4544
jute:
4645
image: bedasoftware/jute-microservice:latest
4746
ports:
@@ -50,3 +49,19 @@ services:
5049
image: bedasoftware/fhirpath-extract:main
5150
ports:
5251
- "8091:8090"
52+
build-seeds:
53+
image: bedasoftware/fhirsnake:latest
54+
command:
55+
- export
56+
- --output
57+
- /app/resources/initBundle.json
58+
volumes:
59+
- ./resources/seeds:/app/resources
60+
watch-seeds:
61+
image: bedasoftware/fhirsnake:latest
62+
command:
63+
- watch
64+
- --external-fhir-server-url
65+
- http://root:secret@devbox:8080
66+
volumes:
67+
- ./resources/seeds:/app/resources

env/aidbox

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ SDC_IDE_AUTH_URL="http://localhost:3001/auth"
2424

2525
BOX_FEATURES_FTR_PULL_ENABLE=false
2626
AIDBOX_SDC_ENABLED=false
27+
28+
AIDBOX_FHIR_SCHEMA_VALIDATION=true
29+
AIDBOX_FHIR_PACKAGES=hl7.fhir.r4b.core#4.3.0
30+
AIDBOX_TERMINOLOGY_SERVICE_BASE_URL="https://tx.health-samurai.io/fhir"
31+
32+
BOX_INIT_BUNDLE="file:///resources/seeds/initBundle.json"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
engine: allow
2+
roleName: admin
3+
id: admin-policy
4+
resourceType: AccessPolicy

resources/seeds/Client/web.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
auth:
2+
implicit:
3+
redirect_uri: "http://localhost:3000/auth"
4+
first_party: true
5+
grant_types:
6+
- implicit
7+
id: web
8+
resourceType: Client
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
meta:
2+
profile:
3+
- https://beda.software/beda-emr-healthcare-service
4+
extension:
5+
- url: ex:createdAt
6+
valueInstant: "2025-02-06T14:18:01.676748Z"
7+
name: The first appointment
8+
type:
9+
- text: The first appointment
10+
coding:
11+
- code: consultation
12+
system: http://beda.software/custom-healthcare-service-list
13+
display: The first appointment
14+
resourceType: HealthcareService
15+
extension:
16+
- url: urn:extensions:healthcare-service-duration
17+
valueInteger: 45
18+
active: true
19+
id: consultation
20+
comment: >-
21+
A first appointment, often called an initial consultation, is the preliminary
22+
meeting between an individual and a professional. This session allows both
23+
parties to get acquainted, assess the individual's needs and goals, and set
24+
expectations for future interactions. It's a crucial step in building trust
25+
and outlining the course of action or treatment. The specifics of the
26+
appointment can vary based on the context, from medical assessments to
27+
financial planning discussions.
28+
appointmentRequired: true
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
meta:
2+
profile:
3+
- https://beda.software/beda-emr-healthcare-service
4+
extension:
5+
- url: ex:createdAt
6+
valueInstant: "2025-02-06T14:18:01.676748Z"
7+
name: A follow up visit
8+
type:
9+
- text: A follow up visit
10+
coding:
11+
- code: follow-up
12+
system: http://fhir.org/guides/argonaut-scheduling/CodeSystem/visit-type
13+
display: A follow up visit
14+
resourceType: HealthcareService
15+
extension:
16+
- url: urn:extensions:healthcare-service-duration
17+
valueInteger: 30
18+
active: true
19+
id: follow-up
20+
comment: >-
21+
A follow-up appointment is a subsequent meeting after an initial consultation
22+
or session. It allows professionals and individuals to review progress,
23+
address any concerns, and adjust plans or treatments as necessary. These
24+
appointments are essential for ensuring continuity of care, monitoring
25+
outcomes, and reinforcing the steps or actions discussed during the first
26+
meeting. They often serve as checkpoints to gauge effectiveness and make
27+
informed decisions moving forward.
28+
appointmentRequired: true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resourceType: Organization
2+
id: beda-emr
3+
name: "Beda EMR"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name:
2+
- given: ["First", "Jr."]
3+
family: "Patient"
4+
active: true
5+
gender: "male"
6+
birthDate: "1989-01-01"
7+
resourceType: "Patient"
8+
id: patient1

0 commit comments

Comments
 (0)