org.openhealthexchange.openpixpdq.util
Class AssigningAuthorityUtil
java.lang.Object
org.openhealthexchange.openpixpdq.util.AssigningAuthorityUtil
public class AssigningAuthorityUtil
- extends java.lang.Object
This class contains the utility methods for
assigning authority.
- Version:
- 1.0, Nov 27, 2008
- Author:
- Wenzhi Li
Method Summary |
static com.misyshealthcare.connect.net.Identifier |
reconcileIdentifier(com.misyshealthcare.connect.net.Identifier authority,
com.misyshealthcare.connect.net.IConnectionDescription connection)
Reconciles authority with the ConnectionDescritpion configuration. |
static boolean |
validateDomain(com.misyshealthcare.connect.net.Identifier id,
com.misyshealthcare.connect.net.IConnectionDescription description)
Validates whether an ID domain is valid against the connection configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssigningAuthorityUtil
public AssigningAuthorityUtil()
reconcileIdentifier
public static com.misyshealthcare.connect.net.Identifier reconcileIdentifier(com.misyshealthcare.connect.net.Identifier authority,
com.misyshealthcare.connect.net.IConnectionDescription connection)
- Reconciles authority with the ConnectionDescritpion configuration. An authority
can have NameSpace and/or UniversalId/UniversalIdType. For example, in the data source such as
database, if an authority is represented by NameSpace only, while in the xml configuration, the authority is configured
with both NameSpace and UnviersalId/UniversalIdType. The authority in the datasource has to be mapped
to the authority configured in the XML files.
- Parameters:
authority
- The authorityconnection
-
- Returns:
- The authority according the configuration
validateDomain
public static boolean validateDomain(com.misyshealthcare.connect.net.Identifier id,
com.misyshealthcare.connect.net.IConnectionDescription description)
- Validates whether an ID domain is valid against the connection configuration.
- Parameters:
id
- the feed or request ID domain to be validateddescription
-
- Returns:
true
if the idDomain is valid.