Skip to content

Instantly share code, notes, and snippets.

@darmawan01
Last active August 3, 2022 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darmawan01/728b3050b23a476c6f1cfcccd29c1241 to your computer and use it in GitHub Desktop.
Save darmawan01/728b3050b23a476c6f1cfcccd29c1241 to your computer and use it in GitHub Desktop.
IBM FHIR Server

https://github.com/LinuxForHealth/FHIR/

FHIR Server config

fhir-server-config.json

{
  "__comment": "config for internal fhir-server deployments",
  "fhirServer": {
    "core": {
      "conditionalDeleteMaxNumber": 100,
      "defaultPrettyPrint": true,
      "serverRegistryResourceProviderEnabled": false,
      "ifNoneMatchReturnsNotModified": true
    },
    "security": {
      "cors": true,
      "basic": {
        "enabled": false
      },
      "certificates": {
        "enabled": false,
        "authFilter": {
          "enabled": false,
          "authorizedClientCertClientCN": "",
          "authorizedClientCertIssuerOU": ""
        }
      },
      "oauth": {
        "enabled": true,
        "regUrl": "https://<host>/auth/realms/master/clients-registrations/openid-connect",
        "authUrl": "https://<host>/auth/realms/master/protocol/openid-connect/auth",
        "tokenUrl": "https://<host>/auth/realms/master/protocol/openid-connect/token",
        "smart": {
          "enabled": true,
          "scopes": ["openid", "profile", "fhirUser", "launch/patient", "offline_access",
            "patient/*.read",
            "patient/AllergyIntolerance.read",
            "patient/CarePlan.read",
            "patient/CareTeam.read",
            "patient/Condition.read",
            "patient/Device.read",
            "patient/DiagnosticReport.read",
            "patient/DocumentReference.read",
            "patient/Encounter.read",
            "patient/ExplanationOfBenefit.read",
            "patient/Goal.read",
            "patient/Immunization.read",
            "patient/Location.read",
            "patient/Medication.read",
            "patient/MedicationRequest.read",
            "patient/Observation.read",
            "patient/Organization.read",
            "patient/Patient.read",
            "patient/Practitioner.read",
            "patient/PractitionerRole.read",
            "patient/Procedure.read",
            "patient/Provenance.read",
            "patient/RelatedPerson.read"],
          "capabilities": [
            "sso-openid-connect",
            "launch-standalone",
            "client-public",
            "client-confidential-symmetric",
            "permission-offline",
            "context-standalone-patient",
            "permission-patient"
          ]
        }
      }
    },
    "audit": {
      "serviceClassName": "com.ibm.fhir.audit.impl.NopService",
      "serviceProperties": {
      }
    },
    "persistence": {
      "factoryClassname": "com.ibm.fhir.persistence.jdbc.FHIRPersistenceJDBCFactory",
      "common": {
        "__comment": "Configuration properties common to all persistence layer implementations",
        "updateCreateEnabled": true
      },
      "datasources": {
        "default": {
          "type": "postgresql",
          "currentSchema": "fhirdata"
        }
      }
    },
    "bulkdata": {
      "enabled": true,
      "core": {
        "api": {
          "url": "https://localhost:9443/ibm/api/batch",
          "user": "fhiradmin",
          "password": "change-password",
          "truststore": "resources/security/fhirTrustStore.p12",
          "truststorePassword": "change-password",
          "trustAll": true
        },
        "defaultImportProvider": "in",
        "defaultExportProvider": "out"
      },
      "storageProviders": {
        "in" : {
          "type": "file",
          "fileBase": "/output/bulkdata/in",
          "duplicationCheck": false,
          "validateResources": false
        },
        "out" : {
          "type": "file",
          "fileBase": "/output/bulkdata/out"
        }
      }
    },
    "operations": {
      "erase": {
        "enabled": true,
        "allowedRoles": [
            "FHIROperationAdmin",
            "FHIRUsers"
        ]
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment