private void displayDetails(DemographicFeedVo details) { clearDetails(); if(details.getMsgTextIsNotNull()) form.lyrHL7().tabDemographicFeed().txtMessage().setValue(details.getMsgText()); if(details.getAckTextIsNotNull()) { form.lyrHL7().tabDemographicFeed().txtResponse().setValue(details.getAckText()); } else if (details.getFailureMsgIsNotNull()) { form.lyrHL7().tabDemographicFeed().txtResponse().setValue(details.getFailureMsg()); } // else // { // form.lyrHL7().tabDemographicFeed().txtResponse().setVisible(false); // form.lyrHL7().tabDemographicFeed().lblresponse().setVisible(false); // } }
private void populate(DemographicFeedVoCollection entries) { form.lyrHL7().tabDemographicFeed().grdList().getRows().clear(); form.lyrHL7().tabDemographicFeed().grdList().resetScrollPosition(); form.lyrHL7().tabDemographicFeed().txtMessage().setValue(null); form.lyrHL7().tabDemographicFeed().txtResponse().setValue(null); if (entries==null) return; //WDEV-14647 if (entries.size()==0) { engine.showMessage("There are no Records for the Search Criteria Provided"); return; } for (DemographicFeedVo demographicFeedVo : entries) { grdListRow row = form.lyrHL7().tabDemographicFeed().grdList().getRows().newRow(); row.setValue(demographicFeedVo); if(demographicFeedVo.getPatientIsNotNull() && demographicFeedVo.getPatient().getNameIsNotNull()) row.setPatient(demographicFeedVo.getPatient().getName().toString()); if(demographicFeedVo.getSystemInformationIsNotNull()&&demographicFeedVo.getSystemInformation().getCreationDateTime()!=null) row.setCreated(demographicFeedVo.getSystemInformation().getCreationDateTime().toString()); if(demographicFeedVo.getSystemInformationIsNotNull()&& demographicFeedVo.getSystemInformation().getLastupdateDateTime()!=null) row.setUpdated(demographicFeedVo.getSystemInformation().getLastupdateDateTime().toString()); if(demographicFeedVo.getMsgTextIsNotNull()) row.setmsgType(demographicFeedVo.getMsgType().getText()); if (demographicFeedVo.getProviderSystemIsNotNull()) row.setProviderSystem(demographicFeedVo.getProviderSystem().getSystemName()); if(demographicFeedVo.getMessageStatusIsNotNull()) row.setstatus(demographicFeedVo.getMessageStatus().getText()); } }
public IHL7OutboundMessageHandler saveMessage(IHL7OutboundMessageHandler iEvent) throws StaleObjectException { if (iEvent == null) throw new RuntimeException("Cannot save null Event"); DomainFactory factory = getDomainFactory(); if(iEvent instanceof ExternalEventVo) { ExternalEventVo event = (ExternalEventVo)iEvent; String[] errors = event.validate(); if (errors != null) throw new RuntimeException("Validation errors - " + Arrays.toString(errors)); //Find bugs recommendation if (!event.isValidated()) throw new CodingRuntimeException("Event has not been validated!"); ExternalSystemEvent domEvent = ExternalEventVoAssembler .extractExternalSystemEvent(factory, event); factory.save(domEvent); return ExternalEventVoAssembler.create(domEvent); } else if(iEvent instanceof DemographicFeedVo) { IQueueHandler ocsif = (IQueueHandler)getDomainImpl(OcsIfImpl.class); return ocsif.saveMessage(iEvent); } else { throw new RuntimeException("Cannot determine event type for saving"); } }