-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable liberty dev mode for fhir-server-webapp
Signed-off-by: Lee Surprenant <[email protected]>
- Loading branch information
Showing
30 changed files
with
1,643 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ | |
*.iml | ||
.idea/ | ||
|
||
# VS Code | ||
.vscode/ | ||
|
||
# Mac OS X | ||
.DS_Store | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
fhir-server-webapp/src/main/liberty/config/config/default/extension-search-parameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"id": "searchParams", | ||
"meta": { | ||
"lastUpdated": "2018-12-27T22:37:54.724+11:00" | ||
}, | ||
"type": "collection", | ||
"entry": [] | ||
} |
52 changes: 52 additions & 0 deletions
52
...er-webapp/src/main/liberty/config/config/default/extension-search-parameters.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Modify the Bundle to add your Search Parameter definitions. | ||
|
||
An example as follows: | ||
|
||
{ | ||
"resourceType": "Bundle", | ||
"id": "searchParams", | ||
"meta": { | ||
"lastUpdated": "2019-07-12T22:37:54.724+11:00" | ||
}, | ||
"type": "collection", | ||
"entry": [{ | ||
"fullUrl": "http://ibm.com/fhir/SearchParameter/Patient-favorite-color", | ||
"resource": { | ||
"resourceType": "SearchParameter", | ||
"id": "Patient-favorite-color", | ||
"url": "http://ibm.com/fhir/SearchParameter/Patient-favorite-color", | ||
"version": "4.0.0", | ||
"name": "favorite-color", | ||
"status": "draft", | ||
"experimental": false, | ||
"date": "2018-12-27T22:37:54+11:00", | ||
"publisher": "IBM FHIR Server Test", | ||
"contact": [{ | ||
"telecom": [{ | ||
"system": "url", | ||
"value": "http://ibm.com/fhir" | ||
}] | ||
}, | ||
{ | ||
"telecom": [{ | ||
"system": "url", | ||
"value": "http://ibm.com/fhir" | ||
}] | ||
}], | ||
"description": "the patient's favorite color", | ||
"code": "favorite-color", | ||
"base": ["Patient"], | ||
"type": "string", | ||
"xpathUsage": "normal", | ||
"xpath": "f:Patient/f:extension[@url='http://ibm.com/fhir/extension/Patient/favorite-color']/f:valueString", | ||
"expression": "Patient.extension.where(url='http://ibm.com/fhir/extension/Patient/favorite-color').valueString", | ||
"multipleOr": true, | ||
"multipleAnd": true, | ||
"modifier": [] | ||
} | ||
}] | ||
} | ||
|
||
|
||
|
||
FHIR® is the registered trademark of HL7 and is used with the permission of HL7. |
146 changes: 146 additions & 0 deletions
146
fhir-server-webapp/src/main/liberty/config/config/default/fhir-server-config-audit-cicd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
{ | ||
"__comment": "FHIR Server configuration", | ||
"fhirServer": { | ||
"core": { | ||
"tenantIdHeaderName": "X-FHIR-TENANT-ID", | ||
"datastoreIdHeaderName": "X-FHIR-DSID", | ||
"checkReferenceTypes": true, | ||
"conditionalDeleteMaxNumber": 10, | ||
"serverRegistryResourceProviderEnabled": true, | ||
"disabledOperations": "" | ||
}, | ||
"security": { | ||
"cors": true, | ||
"basic": { | ||
"enabled": true | ||
}, | ||
"certificates": { | ||
"enabled": true | ||
}, | ||
"oauth": { | ||
"enabled": false, | ||
"regUrl": "https://<host>:9443/oauth2/endpoint/oauth2-provider/registration", | ||
"authUrl": "https://<host>:9443/oauth2/endpoint/oauth2-provider/authorize", | ||
"tokenUrl": "https://<host>:9443/oauth2/endpoint/oauth2-provider/token", | ||
"smart": { | ||
"enabled": false, | ||
"scopes": ["openid", | ||
"profile", | ||
"fhirUser", | ||
"launch/patient", | ||
"patient/*.*", | ||
"offline_access"], | ||
"capabilities": ["sso-openid-connect", | ||
"launch-standalone", | ||
"client-public", | ||
"client-confidential-symmetric", | ||
"permission-offline", | ||
"context-standalone-patient", | ||
"permission-patient"] | ||
} | ||
} | ||
}, | ||
"notifications": { | ||
"common": { | ||
"__comment_includeResourceTypes": ["QuestionnaireResponse", | ||
"CarePlan", | ||
"MedicationAdministration", | ||
"Device", | ||
"DeviceComponent", | ||
"DeviceMetric", | ||
"MedicationOrder", | ||
"Observation"] | ||
}, | ||
"websocket": { | ||
"__comment": "only enable this for single-tenant, single-server deployments", | ||
"enabled": false | ||
}, | ||
"kafka": { | ||
"enabled": false, | ||
"topicName": "fhirNotifications", | ||
"connectionProperties": { | ||
"group.id": "securing-kafka-group", | ||
"bootstrap.servers": "localhost:9093", | ||
"security.protocol": "SSL", | ||
"ssl.truststore.location": "resources/security/kafka.client.truststore.p12", | ||
"ssl.truststore.password": "change-password", | ||
"ssl.keystore.location": "resources/security/kafka.client.keystore.p12", | ||
"ssl.keystore.password": "change-password", | ||
"ssl.key.password": "change-password", | ||
"ssl.truststore.type": "PKCS12", | ||
"ssl.keystore.type": "PKCS12", | ||
"acks": "all", | ||
"retries": "60", | ||
"request.timeout.ms": "10000", | ||
"max.block.ms": "60000", | ||
"max.in.flight.requests.per.connection": "5" | ||
} | ||
}, | ||
"nats": { | ||
"enabled": false, | ||
"cluster": "nats-streaming", | ||
"channel": "fhirNotifications", | ||
"clientId": "fhir-server", | ||
"servers": "nats://nats-node1:4222,nats://nats-node2:4222,nats://nats-node3:4222", | ||
"useTLS": false, | ||
"truststoreLocation": "resources/security/nats.client.truststore.jks", | ||
"truststorePassword": "change-password", | ||
"keystoreLocation": "resources/security/nats.client.keystore.jks", | ||
"keystorePassword": "change-password" | ||
} | ||
}, | ||
"audit": { | ||
"serviceClassName": "com.ibm.fhir.audit.impl.KafkaService", | ||
"serviceProperties": { | ||
"load": "config", | ||
"mapper": "cadf", | ||
"auditTopic": "FHIR_AUDIT", | ||
"geoCity": "Hamil", | ||
"geoState": "Texas", | ||
"geoCounty": "USA", | ||
"kafka": { | ||
"bootstrap.servers": "kafka-1:19092,kafka-2:29092", | ||
"security.protocol": "SSL", | ||
"ssl.protocol": "TLSv1.2", | ||
"ssl.enabled.protocols": "TLSv1.2", | ||
"ssl.endpoint.identification.algorithm": "", | ||
"ssl.keystore.filename": "/config/config/default/kafka.producer.keystore.jks", | ||
"ssl.key.credentials": "/config/config/default/producer_sslkey_creds", | ||
"ssl.keystore.location": "/config/config/default/kafka.producer.keystore.jks", | ||
"ssl.truststore.location": "/config/config/default/kafka.producer.truststore.jks", | ||
"ssl.client.auth": "requested", | ||
"ssl.keystore.credentials": "/config/config/default/producer_keystore_creds", | ||
"ssl.keystore.password": "change-password", | ||
"security.inter.broker.protocol": "SSL", | ||
"ssl.key.password": "change-password", | ||
"ssl.truststore.password": "change-password", | ||
"ssl.truststore.filename": "/config/config/default/kafka.producer.truststore.jks", | ||
"ssl.truststore.credentials": "/config/config/default/producer_truststore_creds" | ||
} | ||
} | ||
}, | ||
"persistence": { | ||
"factoryClassname": "com.ibm.fhir.persistence.jdbc.FHIRPersistenceJDBCFactory", | ||
"common": { | ||
"__comment": "Configuration properties common to all persistence layer implementations", | ||
"updateCreateEnabled": true | ||
}, | ||
"jdbc": { | ||
"__comment": "Configuration properties for the JDBC persistence implementation", | ||
"enableCodeSystemsCache": true, | ||
"enableParameterNamesCache": true, | ||
"enableResourceTypesCache": true | ||
}, | ||
"datasources": { | ||
"default": { | ||
"jndiName": "jdbc/bootstrap_default_default", | ||
"type": "derby", | ||
"currentSchema": "APP" | ||
} | ||
} | ||
}, | ||
"bulkdata": { | ||
"enabled": false | ||
} | ||
} | ||
} |
Oops, something went wrong.