Java 类ims.ocrr.vo.ResultDemographicsVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateResultDemographics(ResultDemographicsVo demog) 
{
    if(demog == null)
        return;

        if(demog.getNameIsNotNull())
        {
            form.txtName().setValue(demog.getName().toShortForm().toString());
        }
        if(demog.getDobIsNotNull())
        {
            form.txtDOB().setValue(demog.getDob().toString(DateFormat.STANDARD));
        }
        if(demog.getHospNumIsNotNull())
        {
            form.txtHospnum().setValue(demog.getHospNum());
        }
        if(demog.getNhsNumberIsNotNull())
        {
            form.txtNHSNo().setValue(demog.getNhsNumber());
        }
        if (demog.getSex() != null)
        {
            form.txtSex().setValue(demog.getSex().getText());
        }
}
项目:openMAXIMS    文件:Logic.java   
private void populateResultDemographics(ResultDemographicsVo demog) 
{
    if(demog == null)
        return;

        if(demog.getNameIsNotNull())
        {
            form.txtName().setValue(demog.getName().toShortForm().toString());
        }
        if(demog.getDobIsNotNull())
        {
            form.txtDOB().setValue(demog.getDob().toString(DateFormat.STANDARD));
        }
        if(demog.getHospNumIsNotNull())
        {
            form.txtHospnum().setValue(demog.getHospNum());
        }
        if(demog.getNhsNumberIsNotNull())
        {
            form.txtNHSNo().setValue(demog.getNhsNumber());
        }
        if (demog.getSex() != null)
        {
            form.txtSex().setValue(demog.getSex().getText());
        }
}
项目:openMAXIMS    文件:Logic.java   
private void populateResultDemographics(ResultDemographicsVo demog) 
{
    if(demog == null)
        return;

        if(demog.getNameIsNotNull())
        {
            form.txtName().setValue(demog.getName().toShortForm().toString());
        }
        if(demog.getDobIsNotNull())
        {
            form.txtDOB().setValue(demog.getDob().toString(DateFormat.STANDARD));
        }
        if(demog.getHospNumIsNotNull())
        {
            form.txtHospnum().setValue(demog.getHospNum());
        }
        if(demog.getNhsNumberIsNotNull())
        {
            form.txtNHSNo().setValue(demog.getNhsNumber());
        }
        if (demog.getSex() != null)
        {
            form.txtSex().setValue(demog.getSex().getText());
        }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateResultDemographics(ResultDemographicsVo demog) 
{
    if(demog == null)
        return;

        if(demog.getNameIsNotNull())
        {
            form.txtName().setValue(demog.getName().toShortForm().toString());
        }
        if(demog.getDobIsNotNull())
        {
            form.txtDOB().setValue(demog.getDob().toString(DateFormat.STANDARD));
        }
        if(demog.getHospNumIsNotNull())
        {
            form.txtHospnum().setValue(demog.getHospNum());
        }
        if(demog.getNhsNumberIsNotNull())
        {
            form.txtNHSNo().setValue(demog.getNhsNumber());
        }
        if (demog.getSex() != null)
        {
            form.txtSex().setValue(demog.getSex().getText());
        }
}
项目:AvoinApotti    文件:R01VoMapper.java   
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;
    }
项目:openMAXIMS    文件:R01VoMapper.java   
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;
    }
项目:openMAXIMS    文件:R01VoMapper.java   
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;
    }
项目:openmaxims-linux    文件:R01VoMapper.java   
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;
    }