Skip to content

Commit

Permalink
Merge pull request #47 from gematik/feature/mount-local-fhir-cache
Browse files Browse the repository at this point in the history
Mount local FHIR cache
  • Loading branch information
cybernop authored Feb 27, 2024
2 parents 9795b95 + a4ee6f8 commit bba1c00
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 31 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ RUN apk update && apk add --no-cache jq findutils curl ca-certificates
RUN mkdir -p /home/vscode/.fhir/validators/
RUN wget -q https://github.com/hapifhir/org.hl7.fhir.core/releases/download/$JAVA_VALIDATOR_VERSION/validator_cli.jar -O /home/vscode/.fhir/validators/validator_cli.jar

# Set ownership
RUN mkdir -p /home/vscode/.fhir/packages && \
chown -R vscode:vscode /home/vscode/.fhir/packages

RUN mkdir -p /home/vscode/.fhir/settings/
COPY codfsh-config.yaml /home/vscode/.fhir/settings/codfsh-config.yaml

Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"codfsh.HapiValidator.Settings.SettingsFile": "/home/vscode/.fhir/settings/codfsh-config.yaml"
}
}
}
},
"mounts": [
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.fhir/packages,target=/home/vscode/.fhir/packages,type=bind"
]

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
"type": {
"coding": [
{
"system": "http://fhir.de/CodeSystem/identifier-type-de-basis",
"code": "GKV"
"code": "MR",
"system": "http://terminology.hl7.org/CodeSystem/v2-0203"
},
{
"code": "GKV",
"system": "http://fhir.de/CodeSystem/identifier-type-de-basis"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"resourceType": "StructureDefinition",
"id": "ExamplePatient",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
"valueString": "Base.Individuals"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
"valueCode": "patient"
}
],
"url": "https://gematik.de/fhir/isik/v2/Basismodul/StructureDefinition/ExamplePatient",
"name": "ExamplePatient",
"status": "active",
Expand Down Expand Up @@ -305,14 +295,12 @@
"id": "Patient.name:Name.family.extension:nachname",
"path": "Patient.name.family.extension",
"sliceName": "nachname",
"max": "1",
"mustSupport": true
},
{
"id": "Patient.name:Name.family.extension:vorsatzwort",
"path": "Patient.name.family.extension",
"sliceName": "vorsatzwort",
"max": "1",
"mustSupport": true
},
{
Expand Down Expand Up @@ -379,14 +367,12 @@
"id": "Patient.name:Geburtsname.family.extension:nachname",
"path": "Patient.name.family.extension",
"sliceName": "nachname",
"max": "1",
"mustSupport": true
},
{
"id": "Patient.name:Geburtsname.family.extension:vorsatzwort",
"path": "Patient.name.family.extension",
"sliceName": "vorsatzwort",
"max": "1",
"mustSupport": true
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"resourceType": "StructureDefinition",
"id": "ExampleValueSet",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
"valueString": "Foundation.Terminology"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
"valueCode": "anonymous"
}
],
"url": "https://gematik.de/fhir/isik/v2/Basismodul/StructureDefinition/ExampleValueSet",
"name": "ExampleValueSet",
"status": "active",
Expand Down

0 comments on commit bba1c00

Please sign in to comment.