本文整理匯總了Java中org.hl7.v3.PRPAIN201304UV02類的典型用法代碼示例。如果您正苦於以下問題:Java PRPAIN201304UV02類的具體用法?Java PRPAIN201304UV02怎麽用?Java PRPAIN201304UV02使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PRPAIN201304UV02類屬於org.hl7.v3包,在下文中一共展示了PRPAIN201304UV02類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testResolvePatientRegistryDuplicates
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Test
public void testResolvePatientRegistryDuplicates() throws Throwable {
// Arrange
String eIdMock = "eIdMock";
String eIdDomainMock = "eIdDomainMock";
sut.setMarshaller(marshallerMock);
sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock);
PRPAIN201304UV02 requestMock = mock(PRPAIN201304UV02.class);
String hl7v3XmlMock = "hl7v3XmlMock";
when(
marshallerMock.unmarshallFromXml(PRPAIN201304UV02.class,
hl7v3XmlMock)).thenReturn(requestMock);
when(
xdsbRegistryWebServiceClientMock
.resolvePatientRegistryDuplicates(requestMock))
.thenReturn(hl7v3XmlMock);
doNothing().when(sut).setEidValues(requestMock, eIdMock, eIdDomainMock);
// Act
String actRetResponse = sut.resolvePatientRegistryDuplicates(
hl7v3XmlMock, eIdMock, eIdDomainMock);
// Asset
assertEquals(hl7v3XmlMock, actRetResponse);
}
示例2: testResolvePatientRegistryDuplicates_Throws_AcsShowCaseException
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Test
public void testResolvePatientRegistryDuplicates_Throws_AcsShowCaseException()
throws Throwable {
// Arrange
sut.setMarshaller(marshallerMock);
sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock);
PRPAIN201304UV02 requestMock = mock(PRPAIN201304UV02.class);
String hl7v3XmlMock = "hl7v3XmlMock";
thrown.expect(AcsShowCaseException.class);
// Act
when(
marshallerMock.unmarshallFromXml(PRPAIN201304UV02.class,
hl7v3XmlMock)).thenReturn(requestMock);
when(
xdsbRegistryWebServiceClientMock
.resolvePatientRegistryDuplicates(requestMock))
.thenThrow(AcsShowCaseException.class);
sut.resolvePatientRegistryDuplicates(hl7v3XmlMock, "", "");
}
示例3: testResolvePatientRegistryDuplicates_Throws_JAXBException
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Test
public void testResolvePatientRegistryDuplicates_Throws_JAXBException()
throws Throwable {
// Arrange
sut.setMarshaller(marshallerMock);
sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock);
String hl7v3XmlMock = "hl7v3XmlMock";
thrown.expect(AcsShowCaseException.class);
// Act
when(
marshallerMock.unmarshallFromXml(PRPAIN201304UV02.class,
hl7v3XmlMock)).thenThrow(JAXBException.class);
sut.resolvePatientRegistryDuplicates(hl7v3XmlMock, "", "");
}
示例4: patientRegistryDuplicatesResolved
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Override
public MCCIIN000002UV01 patientRegistryDuplicatesResolved(
PRPAIN201304UV02 input) {
LOG.info("Executing operation patientRegistryDuplicatesResolved");
System.out.println(input);
try {
MCCIIN000002UV01 _return = null;
return _return;
} catch (java.lang.Exception ex) {
ex.printStackTrace();
throw new RuntimeException(ex);
}
}
示例5: getMessage
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
/**
* Gets the message.
*
* @param <T>
* the generic type
* @param clazz
* the clazz
* @param hl7v3Xml
* the hl7v3 xml
* @param eId
* the e id
* @param eIdDomain
* the e id domain
* @return the message
*/
private <T> String getMessage(Class<T> clazz, String hl7v3Xml, String eId,
String eIdDomain) {
assertInputs(hl7v3Xml, eId, eIdDomain);
String msg = "";
try {
T input = marshaller.unmarshallFromXml(clazz, hl7v3Xml);
// set eid values
setEidValues((PatientIdentityFeedRequestType) input, eId, eIdDomain);
if (PRPAIN201301UV02.class == clazz) {
msg = xdsbRegistryWebServiceClient
.addPatientRegistryRecord((PRPAIN201301UV02) input);
} else if (PRPAIN201302UV02.class == clazz) {
msg = xdsbRegistryWebServiceClient
.revisePatientRegistryRecord((PRPAIN201302UV02) input);
} else if (PRPAIN201304UV02.class == clazz) {
msg = xdsbRegistryWebServiceClient
.resolvePatientRegistryDuplicates((PRPAIN201304UV02) input);
} else {
String errorMsg = "Invalid request type for XDS.b PIDFEED operations.";
logger.error(errorMsg);
throw new AcsShowCaseException(errorMsg);
}
} catch (Throwable e) {
// Expect the unexpected
logger.error("Unexpected exception", e);
// Add error
logger.error("error",
"Query Failure! Server error! A unexpected error has occured");
throw new AcsShowCaseException(e.toString(), e);
}
return msg;
}
示例6: resolveOperation
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
/**
* Resolve operation.
*
* @param operation
* the operation
* @return the class
*/
@SuppressWarnings("rawtypes")
private Class resolveOperation(PixOperation operation) {
switch (operation) {
case ADD:
return PRPAIN201301UV02.class;
case UPDATE:
return PRPAIN201302UV02.class;
case MERGE:
return PRPAIN201304UV02.class;
default:
break;
}
return null;
}
示例7: testPidFeed_Merge
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Test
public void testPidFeed_Merge() throws Throwable {
// Arrange
String hl7v3XmlMock = "hl7v3XmlMock";
String eIdMock = "eIdMock";
String eIdDomainMock = "eIdDomainMock";
String msgMock = "msgMock";
PRPAIN201304UV02 mockPRPAIN201304UV02 = mock(PRPAIN201304UV02.class);
sut.setMarshaller(marshallerMock);
sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock);
when(
marshallerMock.unmarshallFromXml(PRPAIN201304UV02.class,
hl7v3XmlMock)).thenReturn(mockPRPAIN201304UV02);
doNothing().when(sut).setEidValues(mockPRPAIN201304UV02, eIdMock,
eIdDomainMock);
when(
xdsbRegistryWebServiceClientMock
.resolvePatientRegistryDuplicates(mockPRPAIN201304UV02))
.thenReturn(msgMock);
// Act
String actualResponse = sut.pidFeed(PixOperation.MERGE, hl7v3XmlMock,
eIdMock, eIdDomainMock);
// Assert
assertEquals(msgMock, actualResponse);
}
示例8: testPidFeed_Throws_AcsShowCaseException
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Test
public void testPidFeed_Throws_AcsShowCaseException() throws Throwable {
// Arrange
String hl7v3XmlMock = "hl7v3XmlMock";
String eIdMock = "eIdMock";
String eIdDomainMock = "eIdDomainMock";
String msgMock = "msgMock";
PRPAIN201304UV02 mockPRPAIN201304UV02 = mock(PRPAIN201304UV02.class);
sut.setMarshaller(marshallerMock);
sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock);
thrown.expect(AcsShowCaseException.class);
when(
marshallerMock.unmarshallFromXml(PRPAIN201304UV02.class,
hl7v3XmlMock)).thenReturn(mockPRPAIN201304UV02);
doNothing().when(sut).setEidValues(mockPRPAIN201304UV02, eIdMock,
eIdDomainMock);
when(
xdsbRegistryWebServiceClientMock
.resolvePatientRegistryDuplicates(mockPRPAIN201304UV02))
.thenReturn(msgMock);
// Act
String actualResponse = sut.pidFeed(PixOperation.QUERY, hl7v3XmlMock,
eIdMock, eIdDomainMock);
// Assert
assertEquals(msgMock, actualResponse);
}
示例9: resolvePatientRegistryDuplicates
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
@Override
public String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId,
String eIdDomain) {
return getMessage(PRPAIN201304UV02.class, hl7v3Xml, eId, eIdDomain);
}
示例10: pixManagerPRPAIN201304UV02
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
/**
* Pix manager PRPAIN201304UV02 (Merge).
*
* @param body the body
* @return the MCCIIN000002UV01 (Acknowledgement)
*/
MCCIIN000002UV01 pixManagerPRPAIN201304UV02(
PRPAIN201304UV02 body);
示例11: pixManagerPRPAIN201304UV02
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
/**
*
* @param body
* @return
* returns org.hl7.v3.MCCIIN000002UV01
*/
@WebMethod(operationName = "PIXManager_PRPA_IN201304UV02", action = "urn:hl7-org:v3:PRPA_IN201304UV02")
@WebResult(name = "MCCI_IN000002UV01", targetNamespace = "urn:hl7-org:v3", partName = "Body")
public MCCIIN000002UV01 pixManagerPRPAIN201304UV02(
@WebParam(name = "PRPA_IN201304UV02", targetNamespace = "urn:hl7-org:v3", partName = "Body")
PRPAIN201304UV02 body);
示例12: resolvePatientRegistryDuplicates
import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
/**
* Resolve patient registry duplicates.
*
* @param input
* the input
* @return the string
* @throws Throwable
* the throwable
*/
public String resolvePatientRegistryDuplicates(PRPAIN201304UV02 input)
throws Throwable {
XDSRegistry port = createPort();
return marshall(port.patientRegistryDuplicatesResolved(input));
}