當前位置: 首頁>>代碼示例>>Java>>正文


Java PRPAIN201304UV02類代碼示例

本文整理匯總了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);
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:27,代碼來源:XdsbRegistryGetterImplTest.java

示例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, "", "");
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:22,代碼來源:XdsbRegistryGetterImplTest.java

示例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, "", "");
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:17,代碼來源:XdsbRegistryGetterImplTest.java

示例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);
	}
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:14,代碼來源:XdsbRegistryServiceImpl.java

示例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;
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:49,代碼來源:XdsbRegistryGetterImpl.java

示例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;
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:22,代碼來源:XdsbRegistryGetterImpl.java

示例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);
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:29,代碼來源:XdsbRegistryGetterImplTest.java

示例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);
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:30,代碼來源:XdsbRegistryGetterImplTest.java

示例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);
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:7,代碼來源:XdsbRegistryGetterImpl.java

示例10: pixManagerPRPAIN201304UV02

import org.hl7.v3.PRPAIN201304UV02; //導入依賴的package包/類
/**
 * Pix manager PRPAIN201304UV02 (Merge).
 *
 * @param body the body
 * @return the MCCIIN000002UV01 (Acknowledgement)
 */
MCCIIN000002UV01 pixManagerPRPAIN201304UV02(
        PRPAIN201304UV02 body);
 
開發者ID:bhits,項目名稱:common-libraries,代碼行數:9,代碼來源:PixManagerService.java

示例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);
 
開發者ID:flaviociaware,項目名稱:cwEnsaiosWeb,代碼行數:12,代碼來源:PIXManagerPortType.java

示例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));
}
 
開發者ID:tlin-fei,項目名稱:ds4p,代碼行數:15,代碼來源:XdsbRegistryWebServiceClient.java


注:本文中的org.hl7.v3.PRPAIN201304UV02類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。