Skip to content

Commit

Permalink
enable liberty dev mode for fhir-server-webapp
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Surprenant <[email protected]>
  • Loading branch information
lmsurpre committed Sep 13, 2021
1 parent af70782 commit 4e4cdf6
Show file tree
Hide file tree
Showing 30 changed files with 1,643 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*.iml
.idea/

# VS Code
.vscode/

# Mac OS X
.DS_Store

Expand Down
37 changes: 37 additions & 0 deletions fhir-server-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,53 @@
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>${derby.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<finalName>${fhir.server.war.name}</finalName>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>${fhir.server.war.name}</warName>
</configuration>
</plugin>
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.3.4</version>
<configuration>
<!-- <verifyTimeout>120</verifyTimeout> -->
<!-- <bootstrapProperties>
<default.http.port>9080</default.http.port>
<default.https.port>9443</default.https.port>
</bootstrapProperties> -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>copy-derby-dependency</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>derby</includeArtifactIds>
<outputDirectory>${project.build.directory}/liberty/wlp/usr/shared/lib/derby/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
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": []
}
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.
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
}
}
}
Loading

0 comments on commit 4e4cdf6

Please sign in to comment.