You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+85-23Lines changed: 85 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
**fhirsnake** is a minimalistic FHIR server that serve yaml and json files as FHIR resources
9
9
10
10
## How it works?
11
-
The server reads all `yaml` and `json` files from `resources`directory.
12
-
Resources directory should have subdirectories with names equal resource types:
11
+
The server reads all `yaml` and `json` files from an input directory (`resources`by default).
12
+
The input directory should have subdirectories with names equal to resource types:
13
13
```markdown
14
14
resources/
15
15
├── Patient/
@@ -19,10 +19,12 @@ resources/
19
19
├── Questionnaire/
20
20
│ ├── questionnaire1.yaml
21
21
│ ├── questionnaire2.yaml
22
-
│ └── sudbir/
22
+
│ └── subdir/
23
23
│ └── questionnaire3.yaml
24
24
```
25
25
26
+
Use the `--input` flag to specify a custom input directory. For `export` and `watch` commands, `--input` can be passed multiple times to load resources from several directories.
27
+
26
28
## Environment variable substitution
27
29
28
30
To use environment variables in resources, you can use the syntax `${VAR_NAME}`.
@@ -44,32 +46,92 @@ NOTE: The syntax `$VAR` without braces is not supported because it might be used
44
46
1. Organize resources in a directory
45
47
46
48
### Server
47
-
1. Option A: Run a container
48
-
```bash
49
-
docker run -p 8002:8000 -v ./resources:/app/resources bedasoftware/fhirsnake
There's an image `bedasoftware/questionnaire-fce-fhir-converter:latest` available that provides `/to-fhir` endpoint that can be used along with `--external-questionnaire-fce-fhir-converter-url` args for watch and export commands.
134
+
The image `bedasoftware/questionnaire-fce-fhir-converter:latest` provides a `/to-fhir` endpoint that can be used with the `--external-questionnaire-fce-fhir-converter-url`flag in `export` and `watch` commands.
0 commit comments