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


Java PRPAIN201310UV02類代碼示例

本文整理匯總了Java中org.hl7.v3.PRPAIN201310UV02的典型用法代碼示例。如果您正苦於以下問題:Java PRPAIN201310UV02類的具體用法?Java PRPAIN201310UV02怎麽用?Java PRPAIN201310UV02使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PRPAIN201310UV02類屬於org.hl7.v3包,在下文中一共展示了PRPAIN201310UV02類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: queryPatientRecord

import org.hl7.v3.PRPAIN201310UV02; //導入依賴的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.PRPAIN201310UV02; //導入依賴的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: setQueryMessage

import org.hl7.v3.PRPAIN201310UV02; //導入依賴的package包/類
/**
 * Sets the query message.
 *
 * @param response   the response
 * @param pixMgrBean the pix mgr bean
 * @return the PixManagerBean
 */
@SuppressWarnings("unchecked")
public PixManagerBean setQueryMessage(PRPAIN201310UV02 response,
                                      PixManagerBean pixMgrBean) {

    log.debug("Response Ack Code:" + response.getAcceptAckCode());
    log.debug("Response Type Id: " + response.getTypeId());

    final JXPathContext context = JXPathContext.newContext(response);
    final Iterator<MCCIMT000300UV01Acknowledgement> acknowledgementList = context
            .iterate("/acknowledgement");

    while (acknowledgementList.hasNext()) {
        final MCCIMT000300UV01Acknowledgement acknowledgement = acknowledgementList.next();

        if (acknowledgement.getTypeCode().getCode().equals(PixPdqConstants.RESPONSE_AA.getMsg())) {
            final Map<String, String> idMap = new HashMap<>();

            final Iterator<II> ptIdList = context
                    .iterate("/controlActProcess/subject[1]/registrationEvent/subject1[typeCode='SBJ']/patient[classCode='PAT']/id");

            while (ptIdList.hasNext()) {
                final II pId = ptIdList.next();
                idMap.put(pId.getRoot(), pId.getExtension());
            }

            pixMgrBean.setQueryMessage("Query Success!");
            pixMgrBean.setQueryIdMap(idMap);
            pixMgrBean.setSuccess(true);
            break;
        } else if (acknowledgement.getTypeCode().getCode().equals(PixPdqConstants.RESPONSE_AE.getMsg())) {
            final List<MCCIMT000300UV01AcknowledgementDetail> acknowledgementDetailList = acknowledgement
                    .getAcknowledgementDetail();
            MCCIMT000300UV01AcknowledgementDetail acknowledgementDetail = acknowledgementDetailList.get(0);
            log.error("Query Failure! " + acknowledgementDetail.getText().toString());
            pixMgrBean.setQueryMessage("Query Failure! " + acknowledgementDetail.getText().toString());
            pixMgrBean.setQueryIdMap(null);
            pixMgrBean.setSuccess(false);
        } else {
            pixMgrBean.setQueryMessage("Query Failure! ");
            pixMgrBean.setQueryIdMap(null);
            pixMgrBean.setSuccess(false);
        }
    }
    return pixMgrBean;
}
 
開發者ID:bhits,項目名稱:common-libraries,代碼行數:53,代碼來源:PixManagerMessageHelper.java

示例4: getCorrespondingIds

import org.hl7.v3.PRPAIN201310UV02; //導入依賴的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.PRPAIN201310UV02; //導入依賴的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: pixManagerPRPAIN201309UV02

import org.hl7.v3.PRPAIN201310UV02; //導入依賴的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.PRPAIN201310UV02類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。