[openempi~source-repository:62] Web application support for the PIX/PDQ server.
- From: odysseas@kenai.com
- To: commits@openempi.kenai.com
- Subject: [openempi~source-repository:62] Web application support for the PIX/PDQ server.
- Date: Thu, 18 Mar 2010 14:47:31 +0000
Project: openempi
Repository: source-repository
Revision: 62
Author: odysseas
Date: 2010-03-18 14:47:29 UTC
Link:
Log Message:
------------
Web application support for the PIX/PDQ server.
Revisions:
----------
62
Added Paths:
------------
branches/2.0.4-development/openempi/webapp-web/src/main/resources/AuditRepositoryConnections.xml
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixPdqClientDomains.xml
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PdSupplierConnections.xml
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixManagerConnections.xml
branches/2.0.4-development/openempi/webapp-web/src/main/java/org/openempi/webapp/client/mvc/admin/AdminController.java
branches/2.0.4-development/openempi/webapp-web/src/main/java/org/openempi/webapp/client/mvc/admin
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminServiceAsync.java
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixConsumerConnections.xml
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PdSupplierConnections.xml
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixConsumerConnections.xml
branches/2.0.4-development/openempi/webapp-server/src/test/resources/IheActors.xml
branches/2.0.4-development/openempi/webapp-server/src/test/resources/AuditRepositoryConnections.xml
branches/2.0.4-development/openempi/webapp-server/src/test/java/org/openempi/webapp/server/PixPdqServiceTest.java
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/server/AdminServiceImpl.java
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminService.java
branches/2.0.4-development/openempi/webapp-web/src/main/resources/log4j.xml
branches/2.0.4-development/openempi/webapp-web/src/main/resources/IheActors.xml
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixManagerConnections.xml
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixPdqClientDomains.xml
Diffs:
------
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/java/org/openempi/webapp/server/PixPdqServiceTest.java
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/java/org/openempi/webapp/server/PixPdqServiceTest.java
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/java/org/openempi/webapp/server/PixPdqServiceTest.java
(revision 62)
@@ -0,0 +1,20 @@
+package org.openempi.webapp.server;
+
+import org.openempi.webapp.client.AdminService;
+
+public class PixPdqServiceTest extends BaseServiceTestCase
+{
+ private AdminService adminService = new AdminServiceImpl();
+
+ @Override
+ protected void onSetUp() throws Exception {
+ }
+
+ public void testStartServer() {
+ adminService.startPixPdqServer();
+ }
+
+ public void testStopServer() {
+ adminService.stopPixPdqServer();
+ }
+}
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/java/org/openempi/webapp/server/PixPdqServiceTest.java
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/IheActors.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/resources/IheActors.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/resources/IheActors.xml
(revision 62)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--Note: This file is the starting point of All the Actor configuration;
+ all other config files should be linked from here. -->
+
+<!--Each configuration file has a root Configuration tag-->
+<Configuration>
+
+ <!--Defines the configuration of Audit Repository Server for Audit
Client-->
+ <ConnectionFile file="AuditRepositoryConnections.xml" />
+ <!--Defines the configuration of local system as PD Supplier-->
+ <ConnectionFile file="PdSupplierConnections.xml" />
+ <!--Defines the configuration of local system as PIX Manager-->
+ <ConnectionFile file="PixManagerConnections.xml" />
+ <!--Defines the configuration of PIX Consumers-->
+ <ConnectionFile file="PixConsumerConnections.xml" />
+
+ <!--The PIX Manager actor configuration-->
+ <Actor name="pixman" type="PixManager">
+ <Description>OpenEMPI PIX Manager</Description>
+ <Connection source="openempi-pix-manager" />
+ <!--Define 0 or more PIX Consumers that subscribe to PIX Update
Notification -->
+ <Pixconsumer connection="test1" />
+ </Actor>
+
+ <!--The PD Supplier actor configuration-->
+ <Actor name="pdsup" type="PdSupplier">
+ <Description>OpenEMPI PDQ Supplier</Description>
+ <Connection source="openempi-pd-supplier" />
+ </Actor>
+
+ <!-- Audit Repository Actor -->
+ <!--
+ <Actor name="audit" type="SecureNode">
+ <Description>AUDIT TRAILS</Description>
+ <AuditTrail consumer="log4j_audittrail" />
+ </Actor>
+
+ <Actor name="localaudit" type="SecureNode">
+ <Description>LOCAL AUDIT</Description>
+ <AuditTrail consumer="log4j_audittrail" />
+ </Actor>
+ -->
+
+ </Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/IheActors.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/AuditRepositoryConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/resources/AuditRepositoryConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/resources/AuditRepositoryConnections.xml
(revision 62)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The Audit Record Repository Actor Connections -->
+<!-- For IHE Actor Test -->
+
+<Configuration>
+
+ <StandardConnection name="ibm-arr-bsd">
+ <!--The hostname for the audit repository sever -->
+ <HostName>lswin10.dfw.ibm.com</HostName>
+ <!--The port for BSD log-->
+ <Port>515</Port>
+ <!--Specifies the type of the log. Three types are possible:
+ 1. BSD SYSLOG - Send Audit Trail using RFC 3164;
+ 2. RELIABLE SYSLOG - Send Audit Trail using RFC 3195;
+ 3. LOG4J LOGGER - Send Audit Trail to local host for debug
purpose. -->
+ <Property name="TYPE" value="BSD SYSLOG" />
+ <!--Specifies the properties of the local host.-->
+ <PropertySet name="localhost">
+ <!--The machine name-->
+ <Entry name="HOSTNAME" value="allscripts4" />
+ <!--The host name-->
+ <Entry name="HOSTNAME" value="allscripts4" />
+ <!--The ip address of the local machine -->
+ <Entry name="IP" value="10.242.0.51" />
+ <!--The web site of the application-->
+ <Entry name="SITE" value="ALLSCRIPTS" />
+ <!--The source of the application-->
+ <Entry name="SOURCE" value="ALLSCRIPTS" />
+ <!--The sending application name-->
+ <Entry name="APPNAME" value="PAT_IDENTITY_X_REF_MGR_MISYS" />
+ <!--The sending facility name-->
+ <Entry name="FACILITY" value="ALLSCRIPTS" />
+ </PropertySet>
+ <!--Specifies the properties of ParticipantObject used in the log
message.-->
+ <PropertySet name="ParticipantObject">
+ <!--Optional: Defines the format patient name. Default is
standard, HL7 is a good option.-->
+ <Entry name="PatientNameEncoding" value="HL7" />
+ <!--Optional: Defines the format patient id. Default is
standard, HL7 is a good option.-->
+ <Entry name="PatientIdEncoding" value="HL7" />
+ </PropertySet>
+ </StandardConnection>
+
+ <StandardConnection name="log4j_audittrail">
+ <Property name="TYPE" value="LOG4J LOGGER" />
+ <PropertySet name="localhost">
+ <Entry name="MACHINENAME" value="allscripts4" />
+ <Entry name="HOSTNAME" value="allscripts4" />
+ <Entry name="IP" value="10.242.0.51" />
+ <Entry name="SITE" value="ALLSCRIPTS" />
+ <Entry name="SOURCE" value="ALLSCRIPTS" />
+ <Entry name="APPNAME" value="PAT_IDENTITY_X_REF_MGR_MISYS" />
+ <Entry name="FACILITY" value="ALLSCRIPTS" />
+ </PropertySet>
+ <PropertySet name="ParticipantObject">
+ <Entry name="PatientNameEncoding" value="HL7" />
+ <Entry name="PatientIdEncoding" value="HL7" />
+ </PropertySet>
+ </StandardConnection>
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/AuditRepositoryConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PdSupplierConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PdSupplierConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PdSupplierConnections.xml
(revision 62)
@@ -0,0 +1,67 @@
+
+<!-- The PDQ Server Actor Connections -->
+
+<Configuration>
+ <StandardConnection name="openempi-pd-supplier">
+ <!--The host name of the PDQ Server-->
+ <HostName>localhost</HostName>
+ <!--The port for PDQ Query transaction-->
+ <Port>3700</Port>
+ <Identifier name="ReceivingApplication">
+ <NamespaceId>MESA_PD_SUPPLIER</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingFacility">
+ <NamespaceId>XYZ_HOSPITAL</NamespaceId>
+ </Identifier>
+
+ <!-- PdSupplierAdapter - required:
+ The java adapter class that provides the patient data source for
this Patient Demographics Supplier
+ This class must implement
org.openhealthexchange.openpixpdq.ihe.IPdSupplierAdapter -->
+ <Property name="PdSupplierAdapter"
value="org.openhie.openempi.openpixpdqadapter.PdqSupplierAdapter" />
+
+ <!--To configure each PDQ client, always use type="domain" -->
+ <Identifier type="domain" name="CPR">
+ <NamespaceId>CPR</NamespaceId>
+ <UniversalId></UniversalId>
+ <UniversalIdType></UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="HOMECARE">
+ <NamespaceId>HomeCare</NamespaceId>
+ <UniversalId></UniversalId>
+ <UniversalIdType></UniversalIdType>
+ </Identifier>
+
+ <!--QueryProperties - (PropertySet) optional:
+ This set of properties specifies global characteristics of the
PDQ
+ server over this connection. The allowed parts are:
+ WildcardAfter - (String) optional: Specifies the wildcard
value this connection
+ expects at the end of a value. If this value is not supplied,
it defaults to *.
+ WildcardBefore - (String) optional: Specifies the wildcard
value this connection
+ expects at the end of a value. If this value is not supplied,
it defaults to *.
+ ContinuationQueryByOpenPIXPDQ - (boolean) optional: If
value=true, the continuation
+ query is handled by OpenPIXPDQ, otherwise by pluggable EMPI. If
this value is not
+ supplier, it defaults to true.
+ ContinuationPointerTimeout - (Long) optional: Specifies the
timeout in milliseconds
+ of a continuation pointer. Defaults to 600000 milliseconds(10
minutes). This property
+ is used only when ContinuationQueryByOpenPIXPDQ is set to true.
+ -->
+ <PropertySet name="QueryProperties">
+ <Entry name="WildcardBefore" value="*"/>
+ <Entry name="WildcardAfter" value="*"/>
+ <Entry name="ContinuationQueryByOpenPIXPDQ" value="true"/>
+ <Entry name="ContinuationPointerTimeout" value="6"/>
+ </PropertySet>
+
+
+ <!--DateTimeFormat -(PropertySet) optional:
+ BirthdateFormat - (String) optional: Specifies the format of
birthdate this connection
+ expects for a birthdate field. If this value is not supplied, it
defaults to "yyyyMMdd".
+ -->
+ <PropertySet name="DateTimeFormat">
+ <Entry name="Birthdate" value="yyyyMMdd"/>
+ </PropertySet>
+ </StandardConnection>
+
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PdSupplierConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixManagerConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixManagerConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixManagerConnections.xml
(revision 62)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The PIX Manager Actor Connections -->
+
+<Configuration>
+ <StandardConnection name="openempi-pix-manager">
+ <!--The host name of the PIX Manager Server-->
+ <HostName>localhost</HostName>
+ <!--The port for PIX transaction-->
+ <Port>3600</Port>
+ <Identifier name="ReceivingApplication">
+ <NamespaceId>MESA_XREF</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingFacility">
+ <NamespaceId>XYZ_HOSPITAL</NamespaceId>
+ </Identifier>
+
+ <!-- pixManagerAdapter - required :
+ The java adapter class that provides the patient data source for
this Pix Manager (required).
+ This class must implement
org.openhealthexchange.openpixpdq.ihe.IPixManagerAdapter -->
+ <Property name="pixManagerAdapter"
value="org.openhie.openempi.openpixpdqadapter.PixManagerAdapter" />
+
+ <!-- Configuration file for each client domains -->
+ <IncludeFile name="PixPdqClientDomains.xml" />
+ </StandardConnection>
+
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixManagerConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixConsumerConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixConsumerConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixConsumerConnections.xml
(revision 62)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The PIX Consumer Connections for PIX Update Notification Transaction -->
+
+<Configuration>
+ <StandardConnection name="test1">
+ <!--The host name of the PIX Consumer-->
+ <HostName>localhost</HostName>
+ <!--The port for PIX Update Notification-->
+ <Port>3600</Port>
+ <Identifier name="SendingApplication">
+ <NamespaceId>PAT_IDENTITY_X_REF_MGR_MISYS</NamespaceId>
+ </Identifier>
+ <Identifier name="SendingFacility">
+ <NamespaceId>ALLSCRIPTS</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingApplication">
+ <NamespaceId>EHR_MISYS</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingFacility">
+ <NamespaceId>MISYS</NamespaceId>
+ </Identifier>
+
+ <!-- This property is for test purpose, which would not actually
+ submit PIX Update Notification. It defaults to false. -->
+ <Property name="DoNotNotify" value="false" />
+
+ <IncludeFile name="PixPdqClientDomains.xml" />
+
+ </StandardConnection>
+
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixConsumerConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixPdqClientDomains.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixPdqClientDomains.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixPdqClientDomains.xml
(revision 62)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The Domain of Each PIX and PDQ Client -->
+
+<Configuration>
+ <!--To configure each PIX/PDQ client, always use type="domain" -->
+ <Identifier type="domain" name="CPR">
+ <NamespaceId>CPR</NamespaceId>
+ <UniversalId>1</UniversalId>
+ <UniversalIdType>2</UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="HOMECARE">
+ <NamespaceId>HomeCare</NamespaceId>
+ <UniversalId>5</UniversalId>
+ <UniversalIdType>6</UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="WESTCLINIC">
+ <NamespaceId>WESTCLINIC</NamespaceId>
+ <UniversalId>1.2234.634325.5734</UniversalId>
+ <UniversalIdType>ISO</UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="SOUTHLAB">
+ <NamespaceId>SOUTH LAB</NamespaceId>
+ <UniversalId>1.2234.634325.74325</UniversalId>
+ <UniversalIdType>ISO</UniversalIdType>
+ </Identifier>
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/test/resources/PixPdqClientDomains.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/server/AdminServiceImpl.java
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/server/AdminServiceImpl.java
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/server/AdminServiceImpl.java
(revision 62)
@@ -0,0 +1,56 @@
+package org.openempi.webapp.server;
+
+import org.apache.log4j.Logger;
+import org.openempi.webapp.client.AdminService;
+import
org.openhealthexchange.openpixpdq.ihe.configuration.ConfigurationLoader;
+import org.springframework.core.io.Resource;
+import
org.springframework.core.io.support.PathMatchingResourcePatternResolver;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+
+public class AdminServiceImpl extends RemoteServiceServlet implements
AdminService
+{
+ private Logger log = Logger.getLogger(getClass());
+ private static boolean initialized = false;
+ private ConfigurationLoader loader;
+
+ public String startPixPdqServer() {
+ log.debug("Starting the PIX/PDQ Service");
+ String message=null;
+ if (!isInitialized()) {
+ PathMatchingResourcePatternResolver resolver = new
PathMatchingResourcePatternResolver();
+ Resource resource =
resolver.getResource("classpath:/IheActors.xml");
+ loader = ConfigurationLoader.getInstance();
+ try {
+
loader.loadConfiguration(resource.getFile().getAbsolutePath(), true);
+ setInitialized(true);
+ } catch (Exception e) {
+ log.error("Unable to start the PIX/PDQ server
due to : " + e, e);
+ message = e.getMessage();
+ }
+ }
+ return message;
+ }
+
+ public String stopPixPdqServer() {
+ log.debug("Stopping the PIX/PDQ Service");
+ String message=null;
+ if (!isInitialized()) {
+ return message;
+ }
+ if (loader != null) {
+ loader.resetAllBrokers();
+ setInitialized(false);
+ }
+ return message;
+ }
+
+ public static boolean isInitialized() {
+ return initialized;
+ }
+
+ public static void setInitialized(boolean initialized) {
+ AdminServiceImpl.initialized = initialized;
+ }
+
+}
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/server/AdminServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminServiceAsync.java
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminServiceAsync.java
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminServiceAsync.java
(revision 62)
@@ -0,0 +1,10 @@
+package org.openempi.webapp.client;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public interface AdminServiceAsync
+{
+ public void startPixPdqServer(AsyncCallback<String> callback);
+
+ public void stopPixPdqServer(AsyncCallback<String> callback);
+}
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminServiceAsync.java
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminService.java
===================================================================
---
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminService.java
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminService.java
(revision 62)
@@ -0,0 +1,10 @@
+package org.openempi.webapp.client;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+
+public interface AdminService extends RemoteService
+{
+ public String startPixPdqServer();
+
+ public String stopPixPdqServer();
+}
Property changes on:
branches/2.0.4-development/openempi/webapp-server/src/main/java/org/openempi/webapp/client/AdminService.java
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/java/org/openempi/webapp/client/mvc/admin/AdminController.java
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/java/org/openempi/webapp/client/mvc/admin/AdminController.java
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/java/org/openempi/webapp/client/mvc/admin/AdminController.java
(revision 62)
@@ -0,0 +1,60 @@
+package org.openempi.webapp.client.mvc.admin;
+
+import org.openempi.webapp.client.AppEvents;
+import org.openempi.webapp.client.mvc.AbstractController;
+
+import com.extjs.gxt.ui.client.mvc.AppEvent;
+import com.extjs.gxt.ui.client.mvc.Dispatcher;
+import com.extjs.gxt.ui.client.widget.Info;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+public class AdminController extends AbstractController
+{
+
+ public AdminController() {
+ this.registerEventTypes(AppEvents.AdminStartPixPdqServer);
+ this.registerEventTypes(AppEvents.AdminStopPixPdqServer);
+ }
+
+
+ @Override
+ protected void initialize() {
+ super.initialize();
+ }
+
+
+ @Override
+ public void handleEvent(AppEvent event) {
+ if (event.getType() == AppEvents.AdminStartPixPdqServer) {
+ Info.display("Information", "Attempting to start the
PIX/PDQ server; please wait...");
+ getAdminService().startPixPdqServer(new
AsyncCallback<String>() {
+ public void onFailure(Throwable caught) {
+ Dispatcher.forwardEvent(AppEvents.Error,
caught);
+ }
+
+ public void onSuccess(String message) {
+ if (message == null) {
+ Info.display("Information",
"The PIX/PDQ server started successfuly.");
+ } else {
+ Info.display("Warning", "The
PIX/PDQ server did not start successfuly: " + message);
+ }
+ }
+ });
+ } else if (event.getType() ==
AppEvents.AdminStopPixPdqServer) {
+ getAdminService().stopPixPdqServer(new
AsyncCallback<String>() {
+ public void onFailure(Throwable caught) {
+ Dispatcher.forwardEvent(AppEvents.Error,
caught);
+ }
+
+ public void onSuccess(String message) {
+ if (message == null) {
+ Info.display("Information",
"The PIX/PDQ server stopped successfuly.");
+ } else {
+ Info.display("Warning", "The
PIX/PDQ server did not stop successfuly: " + message);
+ }
+ }
+ });
+ }
+ }
+
+}
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/java/org/openempi/webapp/client/mvc/admin/AdminController.java
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/IheActors.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/IheActors.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/IheActors.xml
(revision 62)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--Note: This file is the starting point of All the Actor configuration;
+ all other config files should be linked from here. -->
+
+<!--Each configuration file has a root Configuration tag-->
+<Configuration>
+
+ <!--Defines the configuration of Audit Repository Server for Audit
Client-->
+ <ConnectionFile file="AuditRepositoryConnections.xml" />
+ <!--Defines the configuration of local system as PD Supplier-->
+ <ConnectionFile file="PdSupplierConnections.xml" />
+ <!--Defines the configuration of local system as PIX Manager-->
+ <ConnectionFile file="PixManagerConnections.xml" />
+ <!--Defines the configuration of PIX Consumers-->
+ <ConnectionFile file="PixConsumerConnections.xml" />
+
+ <!--The PIX Manager actor configuration-->
+ <Actor name="pixman" type="PixManager">
+ <Description>OpenEMPI PIX Manager</Description>
+ <Connection source="openempi-pix-manager" />
+ <!--Define 0 or more PIX Consumers that subscribe to PIX Update
Notification -->
+ <Pixconsumer connection="test1" />
+ </Actor>
+
+ <!--The PD Supplier actor configuration-->
+ <Actor name="pdsup" type="PdSupplier">
+ <Description>OpenEMPI PDQ Supplier</Description>
+ <Connection source="openempi-pd-supplier" />
+ </Actor>
+
+ <!-- Audit Repository Actor -->
+ <!--
+ <Actor name="audit" type="SecureNode">
+ <Description>AUDIT TRAILS</Description>
+ <AuditTrail consumer="log4j_audittrail" />
+ </Actor>
+
+ <Actor name="localaudit" type="SecureNode">
+ <Description>LOCAL AUDIT</Description>
+ <AuditTrail consumer="log4j_audittrail" />
+ </Actor>
+ -->
+
+ </Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/IheActors.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/AuditRepositoryConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/AuditRepositoryConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/AuditRepositoryConnections.xml
(revision 62)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The Audit Record Repository Actor Connections -->
+<!-- For IHE Actor Test -->
+
+<Configuration>
+
+ <StandardConnection name="ibm-arr-bsd">
+ <!--The hostname for the audit repository sever -->
+ <HostName>lswin10.dfw.ibm.com</HostName>
+ <!--The port for BSD log-->
+ <Port>515</Port>
+ <!--Specifies the type of the log. Three types are possible:
+ 1. BSD SYSLOG - Send Audit Trail using RFC 3164;
+ 2. RELIABLE SYSLOG - Send Audit Trail using RFC 3195;
+ 3. LOG4J LOGGER - Send Audit Trail to local host for debug
purpose. -->
+ <Property name="TYPE" value="BSD SYSLOG" />
+ <!--Specifies the properties of the local host.-->
+ <PropertySet name="localhost">
+ <!--The machine name-->
+ <Entry name="HOSTNAME" value="allscripts4" />
+ <!--The host name-->
+ <Entry name="HOSTNAME" value="allscripts4" />
+ <!--The ip address of the local machine -->
+ <Entry name="IP" value="10.242.0.51" />
+ <!--The web site of the application-->
+ <Entry name="SITE" value="ALLSCRIPTS" />
+ <!--The source of the application-->
+ <Entry name="SOURCE" value="ALLSCRIPTS" />
+ <!--The sending application name-->
+ <Entry name="APPNAME" value="PAT_IDENTITY_X_REF_MGR_MISYS" />
+ <!--The sending facility name-->
+ <Entry name="FACILITY" value="ALLSCRIPTS" />
+ </PropertySet>
+ <!--Specifies the properties of ParticipantObject used in the log
message.-->
+ <PropertySet name="ParticipantObject">
+ <!--Optional: Defines the format patient name. Default is
standard, HL7 is a good option.-->
+ <Entry name="PatientNameEncoding" value="HL7" />
+ <!--Optional: Defines the format patient id. Default is
standard, HL7 is a good option.-->
+ <Entry name="PatientIdEncoding" value="HL7" />
+ </PropertySet>
+ </StandardConnection>
+
+ <StandardConnection name="log4j_audittrail">
+ <Property name="TYPE" value="LOG4J LOGGER" />
+ <PropertySet name="localhost">
+ <Entry name="MACHINENAME" value="allscripts4" />
+ <Entry name="HOSTNAME" value="allscripts4" />
+ <Entry name="IP" value="10.242.0.51" />
+ <Entry name="SITE" value="ALLSCRIPTS" />
+ <Entry name="SOURCE" value="ALLSCRIPTS" />
+ <Entry name="APPNAME" value="PAT_IDENTITY_X_REF_MGR_MISYS" />
+ <Entry name="FACILITY" value="ALLSCRIPTS" />
+ </PropertySet>
+ <PropertySet name="ParticipantObject">
+ <Entry name="PatientNameEncoding" value="HL7" />
+ <Entry name="PatientIdEncoding" value="HL7" />
+ </PropertySet>
+ </StandardConnection>
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/AuditRepositoryConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PdSupplierConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PdSupplierConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PdSupplierConnections.xml
(revision 62)
@@ -0,0 +1,67 @@
+
+<!-- The PDQ Server Actor Connections -->
+
+<Configuration>
+ <StandardConnection name="openempi-pd-supplier">
+ <!--The host name of the PDQ Server-->
+ <HostName>localhost</HostName>
+ <!--The port for PDQ Query transaction-->
+ <Port>3700</Port>
+ <Identifier name="ReceivingApplication">
+ <NamespaceId>MESA_PD_SUPPLIER</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingFacility">
+ <NamespaceId>XYZ_HOSPITAL</NamespaceId>
+ </Identifier>
+
+ <!-- PdSupplierAdapter - required:
+ The java adapter class that provides the patient data source for
this Patient Demographics Supplier
+ This class must implement
org.openhealthexchange.openpixpdq.ihe.IPdSupplierAdapter -->
+ <Property name="PdSupplierAdapter"
value="org.openhie.openempi.openpixpdqadapter.PdqSupplierAdapter" />
+
+ <!--To configure each PDQ client, always use type="domain" -->
+ <Identifier type="domain" name="CPR">
+ <NamespaceId>CPR</NamespaceId>
+ <UniversalId></UniversalId>
+ <UniversalIdType></UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="HOMECARE">
+ <NamespaceId>HomeCare</NamespaceId>
+ <UniversalId></UniversalId>
+ <UniversalIdType></UniversalIdType>
+ </Identifier>
+
+ <!--QueryProperties - (PropertySet) optional:
+ This set of properties specifies global characteristics of the
PDQ
+ server over this connection. The allowed parts are:
+ WildcardAfter - (String) optional: Specifies the wildcard
value this connection
+ expects at the end of a value. If this value is not supplied,
it defaults to *.
+ WildcardBefore - (String) optional: Specifies the wildcard
value this connection
+ expects at the end of a value. If this value is not supplied,
it defaults to *.
+ ContinuationQueryByOpenPIXPDQ - (boolean) optional: If
value=true, the continuation
+ query is handled by OpenPIXPDQ, otherwise by pluggable EMPI. If
this value is not
+ supplier, it defaults to true.
+ ContinuationPointerTimeout - (Long) optional: Specifies the
timeout in milliseconds
+ of a continuation pointer. Defaults to 600000 milliseconds(10
minutes). This property
+ is used only when ContinuationQueryByOpenPIXPDQ is set to true.
+ -->
+ <PropertySet name="QueryProperties">
+ <Entry name="WildcardBefore" value="*"/>
+ <Entry name="WildcardAfter" value="*"/>
+ <Entry name="ContinuationQueryByOpenPIXPDQ" value="true"/>
+ <Entry name="ContinuationPointerTimeout" value="6"/>
+ </PropertySet>
+
+
+ <!--DateTimeFormat -(PropertySet) optional:
+ BirthdateFormat - (String) optional: Specifies the format of
birthdate this connection
+ expects for a birthdate field. If this value is not supplied, it
defaults to "yyyyMMdd".
+ -->
+ <PropertySet name="DateTimeFormat">
+ <Entry name="Birthdate" value="yyyyMMdd"/>
+ </PropertySet>
+ </StandardConnection>
+
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PdSupplierConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixManagerConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixManagerConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixManagerConnections.xml
(revision 62)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The PIX Manager Actor Connections -->
+
+<Configuration>
+ <StandardConnection name="openempi-pix-manager">
+ <!--The host name of the PIX Manager Server-->
+ <HostName>localhost</HostName>
+ <!--The port for PIX transaction-->
+ <Port>3600</Port>
+ <Identifier name="ReceivingApplication">
+ <NamespaceId>MESA_XREF</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingFacility">
+ <NamespaceId>XYZ_HOSPITAL</NamespaceId>
+ </Identifier>
+
+ <!-- pixManagerAdapter - required :
+ The java adapter class that provides the patient data source for
this Pix Manager (required).
+ This class must implement
org.openhealthexchange.openpixpdq.ihe.IPixManagerAdapter -->
+ <Property name="pixManagerAdapter"
value="org.openhie.openempi.openpixpdqadapter.PixManagerAdapter" />
+
+ <!-- Configuration file for each client domains -->
+ <IncludeFile name="PixPdqClientDomains.xml" />
+ </StandardConnection>
+
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixManagerConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixConsumerConnections.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixConsumerConnections.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixConsumerConnections.xml
(revision 62)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The PIX Consumer Connections for PIX Update Notification Transaction -->
+
+<Configuration>
+ <StandardConnection name="test1">
+ <!--The host name of the PIX Consumer-->
+ <HostName>localhost</HostName>
+ <!--The port for PIX Update Notification-->
+ <Port>3600</Port>
+ <Identifier name="SendingApplication">
+ <NamespaceId>PAT_IDENTITY_X_REF_MGR_MISYS</NamespaceId>
+ </Identifier>
+ <Identifier name="SendingFacility">
+ <NamespaceId>ALLSCRIPTS</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingApplication">
+ <NamespaceId>EHR_MISYS</NamespaceId>
+ </Identifier>
+ <Identifier name="ReceivingFacility">
+ <NamespaceId>MISYS</NamespaceId>
+ </Identifier>
+
+ <!-- This property is for test purpose, which would not actually
+ submit PIX Update Notification. It defaults to false. -->
+ <Property name="DoNotNotify" value="false" />
+
+ <IncludeFile name="PixPdqClientDomains.xml" />
+
+ </StandardConnection>
+
+
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixConsumerConnections.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixPdqClientDomains.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixPdqClientDomains.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixPdqClientDomains.xml
(revision 62)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The Domain of Each PIX and PDQ Client -->
+
+<Configuration>
+ <!--To configure each PIX/PDQ client, always use type="domain" -->
+ <Identifier type="domain" name="CPR">
+ <NamespaceId>CPR</NamespaceId>
+ <UniversalId>1</UniversalId>
+ <UniversalIdType>2</UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="HOMECARE">
+ <NamespaceId>HomeCare</NamespaceId>
+ <UniversalId>5</UniversalId>
+ <UniversalIdType>6</UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="WESTCLINIC">
+ <NamespaceId>WESTCLINIC</NamespaceId>
+ <UniversalId>1.2234.634325.5734</UniversalId>
+ <UniversalIdType>ISO</UniversalIdType>
+ </Identifier>
+
+ <Identifier type="domain" name="SOUTHLAB">
+ <NamespaceId>SOUTH LAB</NamespaceId>
+ <UniversalId>1.2234.634325.74325</UniversalId>
+ <UniversalIdType>ISO</UniversalIdType>
+ </Identifier>
+</Configuration>
\ No newline at end of file
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/PixPdqClientDomains.xml
___________________________________________________________________
Added: svn:eol-style
+ native
Index:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/log4j.xml
===================================================================
---
branches/2.0.4-development/openempi/webapp-web/src/main/resources/log4j.xml
(revision 0)
+++
branches/2.0.4-development/openempi/webapp-web/src/main/resources/log4j.xml
(revision 62)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+
+ Copyright (C) 2009 SYSNET International, Inc. <support@sysnetint.com>
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+
+
+-->
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%p - %C.%M(%L) | %m%n"/>
+ </layout>
+ </appender>
+
+ <appender name="FILE" class="org.apache.log4j.FileAppender">
+ <param name="File" value="openempi.log" />
+ <param name="Append" value="true" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%t - %-5p - %C.%M(%L)
%c{2} - %m%n"/>
+ </layout>
+ </appender>
+<!--
+ <logger name="net.sf.ehcache">
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.springframework.security">
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.apache">
+ <level value="WARN"/>
+ </logger>
+
+ <logger name="org.apache.velocity">
+ <level value="FATAL"/>
+ </logger>
+
+ <logger name="org.hibernate">
+ <level value="WARN"/>
+ </logger>
+
+ <logger name="org.hibernate.SQL">
+ <level value="DEBUG"/>
+ </logger>
+
+ <logger name="org.hibernate.transaction">
+ <level value="DEBUG"/>
+ </logger>
+
+ <logger name="org.springframework">
+ <level value="ERROR"/>
+ </logger>
+
+ <logger name="org.springframework.transaction">
+ <level value="WARN"/>
+ </logger>
+
+ <logger name="org.openhie.openempi">
+ <level value="TRACE"/>
+ </logger>
+
+ <logger name="org.openempi">
+ <level value="TRACE"/>
+ </logger>
+ -->
+ <root>
+ <level value="TRACE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Property changes on:
branches/2.0.4-development/openempi/webapp-web/src/main/resources/log4j.xml
___________________________________________________________________
Added: svn:eol-style
+ native
|
[openempi~source-repository:62] Web application support for the PIX/PDQ server. |
odysseas | 03/18/2010 |





