当前位置: 首页>>代码示例>>Java>>正文


Java PRPAIN201309UV02类代码示例

本文整理汇总了Java中org.hl7.v3.PRPAIN201309UV02的典型用法代码示例。如果您正苦于以下问题:Java PRPAIN201309UV02类的具体用法?Java PRPAIN201309UV02怎么用?Java PRPAIN201309UV02使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PRPAIN201309UV02类属于org.hl7.v3包,在下文中一共展示了PRPAIN201309UV02类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: queryPatientRecord

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
@Test
public void queryPatientRecord() throws Exception {
    PRPAIN201309UV02 request;
    PRPAIN201310UV02 response;

    PixManagerBean pixManagerBean = new PixManagerBean();
    // Delegate to webServiceTemplate for the actual pixadd
    try {
        request = requestXMLToJava.getPIXQueryReqObject(getRequest(QUERY_REQUEST_XML));
        response = pixManagerService.pixManagerPRPAIN201309UV02(request);
        pixManagerMessageHelper.setQueryMessage(response, pixManagerBean);
    } catch (JAXBException | IOException e) {
        pixManagerMessageHelper.getGeneralExpMessage(e, pixManagerBean,
                PixPdqConstants.PIX_QUERY.getMsg());
        log.error(e.getMessage());
    }
    log.debug("response" + pixManagerBean.getQueryMessage() + pixManagerBean.getQueryIdMap());
    String eid = pixManagerBean.getQueryIdMap().entrySet().stream()
            .filter(map -> GLOBAL_DOMAIN_ID.equals(map.getKey()))
            .map(Map.Entry::getValue)
            .collect(Collectors.joining());
    log.info("Eid \t" + eid);
}
 
开发者ID:bhits,项目名称:common-libraries,代码行数:24,代码来源:PixManagerServiceImplTestIT.java

示例2: send1309Message

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
public PRPAIN201310UV02 send1309Message(PRPAIN201309UV02 message) {
	LOG.debug("Starting send1309Message");
	SOAPMessage request = makeSOAPMessage(message);
	LOG.debug("SOAP body built");
	try {
		LOG.debug("Making connection to MVI");
		SOAPConnection connection = factory.createConnection(); 
		
           LOG.debug("Invoking MVI call to " + getMviUri());
		SOAPMessage response = connection.call(request, getMviUri());
		NodeList children = response.getSOAPBody().getChildNodes();
		Node responseBody = null;
		for(int i = 0; i < children.getLength(); i++) {
			Node currentNode = children.item(i);
			if("PRPA_IN201310UV02".equals(currentNode.getLocalName())) {
				responseBody = currentNode;
				break;
			}
		}
		return makePOJOFromBody(responseBody, PRPAIN201310UV02.class);
	} catch (UnsupportedOperationException | SOAPException e) {
		LOG.error("Unable to successfully communicate with MVI",e);
	}
	
	return null;
}
 
开发者ID:KRMAssociatesInc,项目名称:eHMP,代码行数:27,代码来源:MviSoapConnection.java

示例3: getCorrespondingIds

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
public PRPAIN201309UV02 getCorrespondingIds(MviId pid) {
	LOG.debug("Start building 1309 request - get corresponding ids");
	LOG.info("Building 1309 SOAP message for " + pid.toString());
	UUID messageId = UUID.randomUUID();
	LOG.debug("Assigning message id " + messageId.toString());
	
	PRPAIN201309UV02 message = factory.createPRPAIN201309UV02();

	//Set root level parameters
	message.setId(createId(ROOT_CODE_1, "MCID-"+messageId.toString()));
	message.setCreationTime(getTimestamp(null));
	message.setVersionCode(createCode("3.0"));
	message.setInteractionId(createId(ROOT_CODE_2, null));
	message.setProcessingCode(createCode("T"));
	message.setProcessingModeCode(createCode("T"));
	message.setAcceptAckCode(createCode("AL"));
	
	//Set Receiver not available via API
	//Set Sender
	message.setSender(getSender());
	
	//Build controlActProcess
	PRPAIN201309UV02QUQIMT021001UV01ControlActProcess controlActProcess = factory.createPRPAIN201309UV02QUQIMT021001UV01ControlActProcess();
	message.setControlActProcess(controlActProcess);
	
	controlActProcess.setMoodCode(XActMoodIntentEvent.EVN);
	controlActProcess.setClassCode(ActClassControlAct.CACT);
	controlActProcess.setCode(createCodeElement("PRPA_TE201309UV02",ROOT_CODE_2));
	//data enterer not available via API
	controlActProcess.setQueryByParameter(getQueryByParam(pid, messageId));
	
	LOG.debug("Finished building 1309 message " + messageId.toString());
	return message;
}
 
开发者ID:KRMAssociatesInc,项目名称:eHMP,代码行数:35,代码来源:MessageBuilder.java

示例4: getCorrespondingIds

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
@Path("/correspondingIds")
@GET
@Produces("application/json")
@Timed
/** 
 * Only one of the parameters is required. The first non-null value will be used.
 * If the first value is invalid for the specified type, an error will be returned.
 * 
 * @param edipi
 * @param icn
 * @param dfn
 * @param pid
 * @return
 */
public String getCorrespondingIds(@QueryParam("edipi") String edipi,
								  @QueryParam("icn") String icn,
								  @QueryParam("dfn") String dfn,
								  @QueryParam("pid") String pid) {
	LOG.debug("Received request to getCorrespondingIds");
	PatientIdentifier id = null;
	if (edipi != null) {
		if(Edipi.isIdType(edipi)) {
			id = new Edipi(edipi);
		}
	} else if (icn != null) {
		if(Icn.isIdType(icn)){
			id = new Icn(icn);
		}
	} else if (dfn != null) {
		if(Dfn.isIdType(dfn)) {
			id = new Dfn(dfn);
		}
	} else if (pid != null) {
		id = PatientIdentifier.getPatientId(pid);
	}
	
	if(id != null) {
		if(!(id instanceof MviId)) {
			LOG.debug("Converting standard pid "+id.toString()+" to MVI compatible format");
			if(id instanceof Dfn) {
				id = new MviDfn((Dfn)id);
			}
			if(id instanceof Icn) {
				id = new MviIcn((Icn)id);
			}
			if(id instanceof Edipi) {
				id = new MviEdipi((Edipi)id);
			}
		}
		PRPAIN201309UV02 payload = mviMessageBuilder.getCorrespondingIds((MviId)id);
		PRPAIN201310UV02 response = connection.send1309Message(payload);
		if(response != null) {
			try {
                   LOG.debug("Converting response to JSON...");
                   String answer = DataConverter.convertObjectToJSON(response);
                   LOG.debug("replying: " + answer);
                   return answer;
			} catch (JsonProcessingException e) {
				e.printStackTrace();
			}
		} else {
			LOG.error("There was a problem processing the SOAP response");
		}
	} else {
		LOG.warn("No valid pid parameter found");
	}
	return null;
}
 
开发者ID:KRMAssociatesInc,项目名称:eHMP,代码行数:69,代码来源:MviRestEndpoint.java

示例5: pixManagerPRPAIN201309UV02

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
/**
 * Pix manager PRPAIN201309UV02 (Query).
 *
 * @param body the body
 * @return the PRPAIN201310UV02 (Query Response)
 */
PRPAIN201310UV02 pixManagerPRPAIN201309UV02(
        PRPAIN201309UV02 body);
 
开发者ID:bhits,项目名称:common-libraries,代码行数:9,代码来源:PixManagerService.java

示例6: getPIXQueryReqObject

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
/**
 * Gets the pIX query req object.
 *
 * @param reqXMLFilePath the req xml file path
 * @return PRPAIN201309UV02 the pIX query req object
 * @throws JAXBException the jAXB exception
 * @throws IOException   Signals that an I/O exception has occurred.
 */
public PRPAIN201309UV02 getPIXQueryReqObject(String reqXMLFilePath) throws JAXBException, IOException {
    return getPIXReqObject(PRPAIN201309UV02.class, reqXMLFilePath);
}
 
开发者ID:bhits,项目名称:common-libraries,代码行数:12,代码来源:PixManagerRequestXMLToJava.java

示例7: pixManagerPRPAIN201309UV02

import org.hl7.v3.PRPAIN201309UV02; //导入依赖的package包/类
/**
 * 
 * @param body
 * @return
 *     returns org.hl7.v3.PRPAIN201310UV02
 */
@WebMethod(operationName = "PIXManager_PRPA_IN201309UV02", action = "urn:hl7-org:v3:PRPA_IN201309UV02")
@WebResult(name = "PRPA_IN201310UV02", targetNamespace = "urn:hl7-org:v3", partName = "Body")
public PRPAIN201310UV02 pixManagerPRPAIN201309UV02(
    @WebParam(name = "PRPA_IN201309UV02", targetNamespace = "urn:hl7-org:v3", partName = "Body")
    PRPAIN201309UV02 body);
 
开发者ID:flaviociaware,项目名称:cwEnsaiosWeb,代码行数:12,代码来源:PIXManagerPortType.java


注:本文中的org.hl7.v3.PRPAIN201309UV02类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。