本文整理汇总了Java中ca.uhn.hl7v2.model.v24.segment.PID.getPatientID方法的典型用法代码示例。如果您正苦于以下问题:Java PID.getPatientID方法的具体用法?Java PID.getPatientID怎么用?Java PID.getPatientID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ca.uhn.hl7v2.model.v24.segment.PID
的用法示例。
在下文中一共展示了PID.getPatientID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: renderPatidCollectionToIdList
import ca.uhn.hl7v2.model.v24.segment.PID; //导入方法依赖的package包/类
protected final void renderPatidCollectionToIdList(PatientIdCollection coll, String pasidPrefix,PID pid, ProviderSystemVo providerSystem) throws Exception
{
if (coll == null)
return;
LOG.debug("VoMapper renderPatidCollectionToIdList: entry");
int posInMsg=0;
for (int i = 0; i < coll.size(); i++)
{
PatientId patId = coll.get(i);
if(patId.getTypeIsNotNull()&&patId.getType().equals(PatIdType.PASID)&&pasidPrefix!=null)
{
if (!patId.getValue().toUpperCase().startsWith(pasidPrefix.toUpperCase()))
{
continue;
}
}
//http://jira/browse/WDEV-10022
if(ConfigFlag.HL7.SEND_ONLY_VERIFIED_NHSN.getValue()==true
&&patId.getTypeIsNotNull()&&patId.getType().equals(PatIdType.NHSN)
&&(!patId.getVerifiedIsNotNull()||patId.getVerified()==false))
{
continue;
}
CX idSingle = pid.getPatientID();
if (patId.getTypeIsNotNull())
{
String patIdType = svc.getRemoteLookup(patId.getType().getID(), providerSystem.getCodeSystem().getText());
if (patIdType != null)
{
CX id1 = pid.getPatientIdentifierList(posInMsg); //WDEV-12137
posInMsg++; //WDEV-12137
if (patId.getType().equals(PatIdType.NHSN))
id1.getID().setValue((patId.getValue()!=null)?patId.getValue().replace(" ", ""):null);
else
id1.getID().setValue(patId.getValue());
if (providerSystem.getIdtypeComponent().intValue() == 4)
id1.getAssigningAuthority().getNamespaceID().setValue(patIdType);
else
id1.getIdentifierTypeCode().setValue(patIdType);
if (patId.getType().equals(PatIdType.NHSN))
{
idSingle.getID().setValue((patId.getValue()!=null)?patId.getValue().replace(" ", ""):null);
if (providerSystem.getIdtypeComponent().intValue() == 4)
idSingle.getAssigningAuthority().getNamespaceID().setValue(patIdType);
else
idSingle.getIdentifierTypeCode().setValue(patIdType);
//MN 10-Mar-09 http://jira/browse/WDEV-6401
if(patId.getVerifiedIsNotNull()&&patId.getVerified())
{
id1.getCheckDigit().setValue("V");
id1.getCodeIdentifyingTheCheckDigitSchemeEmployed().setValue("MAXIMS");
}
}
}
}
}
LOG.debug("VoMapper renderPatidCollectionToIdList: exit");
}
示例2: getResDemoVoFromSeg
import ca.uhn.hl7v2.model.v24.segment.PID; //导入方法依赖的package包/类
private ResultDemographicsVo getResDemoVoFromSeg(PID pid, ProviderSystemVo providerSystem) throws Exception
{
LOG.debug("R01VoMapper getResDemoVoFromSeg: entry");
ResultDemographicsVo demoVo = new ResultDemographicsVo();
// wdev-2117
DateTime dob = populateDateTimeVoFromTS(pid.getDateTimeOfBirth());
if (dob != null)
demoVo.setDob(new PartialDate(dob.getDate()));
PatientIdCollection patColl = populatePatidCollectionFromIdList(pid.getPatientIdentifierList(), providerSystem);
for (int i = 0; i < patColl.size(); i++)
{
if (patColl.get(i).getType().equals(PatIdType.NHSN))
{
// demoVo.setNhsNumber(pid.getPatientIdentifierList(i).getID().getValue());
demoVo.setNhsNumber(patColl.get(i).getValue());
}
else if (patColl.get(i).getType().equals(PatIdType.HOSPNUM) ||
patColl.get(i).getType().equals(PatIdType.DISTRICT)||
patColl.get(i).getType().equals(PatIdType.EMPI)) // http://jira/browse/WDEV-10137
{
// demoVo.setHospNum(pid.getPatientIdentifierList(i).getID().getValue());
demoVo.setHospNum(patColl.get(i).getValue());
}
}
//WDEV-4822, JP
CX patid = pid.getPatientID();
String pid2Val = patid.getID().getValue();
if (pid2Val != null && pid2Val.length() > 0)
{
PatientId patIdVo = populatePatidFromIdField(patid,providerSystem);
if (patIdVo != null && patIdVo.getValue() != null && patIdVo.getValue().length() > 0)
{
if (patIdVo.getType().equals(PatIdType.NHSN) && demoVo.getNhsNumber() == null)
demoVo.setNhsNumber(patIdVo.getValue());
else if(patIdVo.getType().equals(PatIdType.HOSPNUM) && demoVo.getHospNum() == null)
demoVo.setHospNum(patIdVo.getValue());
}
}
demoVo.setSex((Sex) svc.getLocalLookup(Sex.class, Sex.TYPE_ID, providerSystem.getCodeSystem().getText(), pid.getAdministrativeSex().getValue()));
demoVo.setName(populateNameVoFromXPN(demoVo.getName(), pid.getPatientName(0),providerSystem));
demoVo.getName().setUppers();
LOG.debug("R01VoMapper getResDemoVoFromSeg: exit");
return demoVo;
}
示例3: getResDemoVoFromSeg
import ca.uhn.hl7v2.model.v24.segment.PID; //导入方法依赖的package包/类
private ResultDemographicsVo getResDemoVoFromSeg(PID pid, ProviderSystemVo providerSystem,String matchingID) throws Exception//http://jira/browse/WDEV-18798
{
LOG.debug("R01VoMapper getResDemoVoFromSeg: entry");
ResultDemographicsVo demoVo = new ResultDemographicsVo();
// wdev-2117
DateTime dob = populateDateTimeVoFromTS(pid.getDateTimeOfBirth());
if (dob != null)
demoVo.setDob(new PartialDate(dob.getDate()));
PatientIdCollection patColl = populatePatidCollectionFromIdList(pid.getPatientIdentifierList(), providerSystem);
for (int i = 0; i < patColl.size(); i++)
{
if (patColl.get(i).getType().equals(PatIdType.NHSN))
{
// demoVo.setNhsNumber(pid.getPatientIdentifierList(i).getID().getValue());
demoVo.setNhsNumber(patColl.get(i).getValue());
}
else if (patColl.get(i).getType().equals(PatIdType.HOSPNUM) ||
patColl.get(i).getType().equals(PatIdType.DISTRICT)||
patColl.get(i).getType().equals(PatIdType.EMPI)) // http://jira/browse/WDEV-10137
{
demoVo.setHospNum(patColl.get(i).getValue());//http://jira/browse/WDEV-18798
}
}
//WDEV-4822, JP
CX patid = pid.getPatientID();
String pid2Val = patid.getID().getValue();
if (pid2Val != null && pid2Val.length() > 0)
{
PatientId patIdVo = populatePatidFromIdField(patid,providerSystem);
if (patIdVo != null && patIdVo.getValue() != null && patIdVo.getValue().length() > 0)
{
if (patIdVo.getType().equals(PatIdType.NHSN) && demoVo.getNhsNumber() == null)
demoVo.setNhsNumber(patIdVo.getValue());
else if(patIdVo.getType().equals(PatIdType.HOSPNUM) && demoVo.getHospNum() == null)
demoVo.setHospNum(patIdVo.getValue());
}
}
if(matchingID!=null)//http://jira/browse/WDEV-18798
{
demoVo.setHospNum(matchingID);
}
demoVo.setSex((Sex) svc.getLocalLookup(Sex.class, Sex.TYPE_ID, providerSystem.getCodeSystem().getText(), pid.getAdministrativeSex().getValue()));
demoVo.setName(populateNameVoFromXPN(demoVo.getName(), pid.getPatientName(0),providerSystem));
demoVo.getName().setUppers();
LOG.debug("R01VoMapper getResDemoVoFromSeg: exit");
return demoVo;
}