本文整理汇总了Java中ca.uhn.hl7v2.model.v24.segment.OBR.getRequestedDateTime方法的典型用法代码示例。如果您正苦于以下问题:Java OBR.getRequestedDateTime方法的具体用法?Java OBR.getRequestedDateTime怎么用?Java OBR.getRequestedDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ca.uhn.hl7v2.model.v24.segment.OBR
的用法示例。
在下文中一共展示了OBR.getRequestedDateTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fillPATHInvestigationFromOBR
import ca.uhn.hl7v2.model.v24.segment.OBR; //导入方法依赖的package包/类
private void fillPATHInvestigationFromOBR(IfOrderInvestigationVo invVo, OBR obr, IfInvestigationLiteVo cfgInv,ProviderSystemVo providerSystem) throws Exception
{
LOG.debug("R01VoMapper fillPATHInvestigationFromOBR: entry");
invVo.setInvestigation(cfgInv);
invVo.setFillerOrdNum(obr.getFillerOrderNumber().getEntityIdentifier().getValue());
invVo.setResultStatus((ResultStatus) svc.getLocalLookup(ResultStatus.class, ResultStatus.TYPE_ID, providerSystem.getCodeSystem().getText(), obr.getResultStatus().getValue()));
//http://jira/browse/WDEV-15552
SPS sps = obr.getSpecimenSource();
LookupInstVo resultSpecimenSource=svc.getLocalLookup(LookupInstVo.class, ResultSpecimenTypes.TYPE_ID, providerSystem.getCodeSystem().getText(), sps.getSpecimenSourceNameOrCode().getIdentifier().getValue().trim());
invVo.setResultSpecimenType(resultSpecimenSource);
//End http://jira/browse/WDEV-15552
// wdev-2746 ResultStatus must map to a valid lookup value
if (obr.getResultStatus().getValue() != null && !invVo.getResultStatusIsNotNull())
throw new HL7Exception("ResultStatus (OBR-25) does not map to a valid local lookup (ResultStatus) - Message Rejected");
if (obr.getRequestedDateTime() != null && obr.getRequestedDateTime().getTimeOfAnEvent().getValue() != null)
{
invVo.setDisplayDateTime(populateDateTimeVoFromTS(obr.getRequestedDateTime()));
invVo.setDisplayTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getRequestedDateTime())));
invVo.setDisplayFlag(OcsDisplayFlag.REQUESTED);
}
if (obr.getResultsRptStatusChngDateTime() != null && obr.getResultsRptStatusChngDateTime().getTimeOfAnEvent().getValue() != null)
{
DateTime dt = populateDateTimeVoFromTS(obr.getResultsRptStatusChngDateTime());
//JME: 20061205: Change to handle WinPath sending 189912300000 in OBR.22 instead of a null date/time
if (!dt.equals(new DateTime("189912300000")))
{
invVo.setDisplayDateTime(dt);
invVo.setRepDateTime(dt);
invVo.setResultSortDate(dt);//http://jira/browse/WDEV-18025
invVo.setRepTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getResultsRptStatusChngDateTime())));
invVo.setDisplayFlag(OcsDisplayFlag.REPORTED);
invVo.setDisplayTimeSupplied(invVo.getRepTimeSupplied());
}
}
if (obr.getSpecimenReceivedDateTime() != null && obr.getSpecimenReceivedDateTime().getTimeOfAnEvent().getValue() != null)
{
invVo.setDisplayDateTime(populateDateTimeVoFromTS(obr.getSpecimenReceivedDateTime()));
invVo.setDisplayFlag(OcsDisplayFlag.SPEC_RECVD);
invVo.setDisplayTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getSpecimenReceivedDateTime())));
// WDEV-16384 - Check if expected turnaround values configured. If they are, calculated the expected result datetime
invVo.setExpectedDateTime(ocsIfInbound.calculateExpectedDateTime(invVo.getInvestigation(), invVo.getDisplayDateTime()));
}
if (obr.getObservationDateTime() != null && obr.getObservationDateTime().getTimeOfAnEvent().getValue() != null)
{
invVo.setDisplayDateTime(populateDateTimeVoFromTS(obr.getObservationDateTime()));
invVo.setDisplayFlag(OcsDisplayFlag.SPEC_COLL);
invVo.setDisplayTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getObservationDateTime())));
}
/*
* etc investVo.setOrderPriority(); investVo.setOrdInvCurrentStatus();
*/
LOG.debug("R01VoMapper fillPATHInvestigationFromOBR: exit");
}
示例2: fillRADInvestigationFromOBR
import ca.uhn.hl7v2.model.v24.segment.OBR; //导入方法依赖的package包/类
private void fillRADInvestigationFromOBR(IfOrderInvestigationVo invVo, OBR obr, IfInvestigationLiteVo cfgInv,ProviderSystemVo providerSystem) throws Exception
{
LOG.debug("R01VoMapper fillRADInvestigationFromOBR: entry");
invVo.setInvestigation(cfgInv);
invVo.setFillerOrdNum(obr.getFillerOrderNumber().getEntityIdentifier().getValue());
invVo.setResultStatus((ResultStatus) svc.getLocalLookup(ResultStatus.class, ResultStatus.TYPE_ID, providerSystem.getCodeSystem().getText(), obr.getResultStatus().getValue()));
// http://jira/browse/WDEV-9727
String accession = obr.getFillerField2().getValue();
if (accession!=null && !Hl7Null.equals(accession))
{
invVo.setAccessionNumber(accession);
}
// wdev-2746 ResultStatus must map to a valid lookup value
if (obr.getResultStatus().getValue() != null && !invVo.getResultStatusIsNotNull())
throw new HL7Exception("ResultStatus (OBR-25) does not map to a valid local lookup (ResultStatus) - Message Rejected");
if (obr.getRequestedDateTime() != null && obr.getRequestedDateTime().getTimeOfAnEvent().getValue() !=null)
{
invVo.setDisplayDateTime(populateDateTimeVoFromTS(obr.getRequestedDateTime()));
invVo.setDisplayFlag(OcsDisplayFlag.REQUESTED);
invVo.setDisplayTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getRequestedDateTime())));
}
if (obr.getObservationDateTime() != null && obr.getObservationDateTime().getTimeOfAnEvent().getValue() != null)
{
invVo.setDisplayDateTime(populateDateTimeVoFromTS(obr.getObservationDateTime()));
invVo.setDisplayFlag(OcsDisplayFlag.EXAMINED);
invVo.setDisplayTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getObservationDateTime())));
// WDEV-16384 - Check if expected turnaround values configured. If they are, calculated the expected result datetime
invVo.setExpectedDateTime(ocsIfInbound.calculateExpectedDateTime(invVo.getInvestigation(), invVo.getDisplayDateTime()));
}
if (obr.getResultsRptStatusChngDateTime() != null && obr.getResultsRptStatusChngDateTime().getTimeOfAnEvent().getValue() != null)
{
invVo.setRepDateTime(populateDateTimeVoFromTS(obr.getResultsRptStatusChngDateTime()));
invVo.setResultSortDate(populateDateTimeVoFromTS(obr.getResultsRptStatusChngDateTime())); //http://jira/browse/WDEV-18025
invVo.setRepTimeSupplied( Boolean.valueOf(isTimeSupplied(obr.getResultsRptStatusChngDateTime())));
}
else
{
invVo.setRepDateTime(null);
invVo.setResultSortDate(null); //http://jira/browse/WDEV-18025
invVo.setRepTimeSupplied(Boolean.FALSE);
// invVo.setDisplayFlag(OcsDisplayFlag.REQUESTED);
// invVo.setDisplayTimeSupplied(false);
// invVo.setDisplayDateTime(populateDateTimeVoFromTS(obr.getObservationDateTime()));
}
/*
* etc investVo.setOrderPriority(); investVo.setOrdInvCurrentStatus();
*/
LOG.debug("R01VoMapper fillRADInvestigationFromOBR: exit");
}