Java 类ims.emergency.vo.lookups.PresentingComplaint 实例源码

项目:AvoinApotti    文件:Logic.java   
protected void onCmbPatientCategoryValueChanged() throws PresentationLogicException
{
    //WDEV-17268
    bindcmbPresComplaintLookup();
    if (PatientCategory.RTA.equals(form.cmbPatientCategory().getValue()))
    {
        form.cmbPresComplaint().removeRow(PresentingComplaint.ASSAULT);
    }
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbPatientCategoryValueChanged() throws PresentationLogicException
{
    //WDEV-17268
    bindcmbPresComplaintLookup();
    if (PatientCategory.RTA.equals(form.cmbPatientCategory().getValue()))
    {
        form.cmbPresComplaint().removeRow(PresentingComplaint.ASSAULT);
    }
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbPatientCategoryValueChanged() throws PresentationLogicException
{
    //WDEV-17268
    bindcmbPresComplaintLookup();
    if (PatientCategory.RTA.equals(form.cmbPatientCategory().getValue()))
    {
        form.cmbPresComplaint().removeRow(PresentingComplaint.ASSAULT);
    }
    updateControlState();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onCmbPatientCategoryValueChanged() throws PresentationLogicException
{
    //WDEV-17268
    bindcmbPresComplaintLookup();
    if (PatientCategory.RTA.equals(form.cmbPatientCategory().getValue()))
    {
        form.cmbPresComplaint().removeRow(PresentingComplaint.ASSAULT);
    }
    updateControlState();
}
项目:AvoinApotti    文件:Logic.java   
private void displayRecord(ims.vo.ValueObject selectedRow)
{
    if (selectedRow != null)
    {
        clearEpisodeControls();
        clearEmergencyAttendanceDischargeDetails();
        if (selectedRow instanceof EpisodeDetailsVo)
        {
            EpisodeDetailsVo episode = (EpisodeDetailsVo) selectedRow;

            // Populate EpisodeDetails
            form.cmbPatientCategory().setValue(episode.getCategory());
            form.cmbPresComplaint().setValue(episode.getPresentingComplaint());
            form.imbLocDetails().setTooltip("Location details: " + episode.getLocationDetails());
            form.cmbSourceOfReferral().setValue(episode.getSourceOfReferral());
            form.cmbIncidentLocation().setValue(episode.getIncidentLocation());
            form.dtimInjury().setValue(episode.getInjuryDateTime());

            form.cmbOccupationStatus().setValue(episode.getOccupationStatus());
            form.cmbOcupation().setValue(episode.getOccupation());
            form.cmbSchool().setValue(episode.getSchool());
            form.cmbTriageCategory().setValue(episode.getTriageCategoryType());
            form.txtPlaceOfEmployment().setValue(episode.getPlaceofEmployment());
            form.chkGPMedicationDetailsPatientConsents().setValue(episode.getMedPatientConsent());  //wdev-17819
            // wdev-14582
            if (PatientCategory.ASSAULT.equals(episode.getCategory()) || PresentingComplaint.ASSAULT.equals(episode.getPresentingComplaint()))
                form.btnTIIG().setVisible(true);
            else
                form.btnTIIG().setVisible(false);
            // -----------------------------------
            // wdev-14615
            if (PatientCategory.RTA.equals(episode.getCategory()))
            {
                if (form.btnTIIG().isVisible())
                {
                    form.btnRTA1().setVisible(true);
                    form.btnRTA().setVisible(false);
                }
                else
                {
                    form.btnRTA().setVisible(true);
                    form.btnRTA1().setVisible(false);
                }

            }
            else
            {
                form.btnRTA1().setVisible(false);
                form.btnRTA().setVisible(false);
            }
            // ------------
            if (episode.getReferringGPIsNotNull())
            {
                form.txtReferralGP().setValue(domain.getGP(episode.getReferringGP().getID_Gp()).getName().toString());
            }
            // wdev-14420
            if (episode != null)
            {
                if (episode.getSpecialInterestDetails() != null && episode.getSpecialInterestDetails().size() > 0)
                {
                    // populate SpecialInterest Button Tooltip
                }
                else
                {
                    form.btnSpecialInterest().setTooltip(null);

                }
            }

            hideOrDisableDischargeDetails(false);
        }
        updateControlState();
    }
    else
    {
        clearAttendanceDetails();
    }

}
项目:AvoinApotti    文件:TrackingImpl.java   
private PresentingComplaint assemblePresentingComplaintLookupItem(LookupInstance presentingComplaint) 
{
    if(presentingComplaint == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (presentingComplaint.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(presentingComplaint.getImage().getImageId(), presentingComplaint.getImage().getImagePath());
    }

    color = presentingComplaint.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.PresentingComplaint voLookup = new ims.emergency.vo.lookups.PresentingComplaint(presentingComplaint.getId(),presentingComplaint.getText(), presentingComplaint.isActive(), null, img, color);
    ims.emergency.vo.lookups.PresentingComplaint parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = presentingComplaint.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.PresentingComplaint(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openMAXIMS    文件:TrackingImpl.java   
private PresentingComplaint assemblePresentingComplaintLookupItem(LookupInstance presentingComplaint) 
{
    if(presentingComplaint == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (presentingComplaint.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(presentingComplaint.getImage().getImageId(), presentingComplaint.getImage().getImagePath());
    }

    color = presentingComplaint.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.PresentingComplaint voLookup = new ims.emergency.vo.lookups.PresentingComplaint(presentingComplaint.getId(),presentingComplaint.getText(), presentingComplaint.isActive(), null, img, color);
    ims.emergency.vo.lookups.PresentingComplaint parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = presentingComplaint.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.PresentingComplaint(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openMAXIMS    文件:Logic.java   
private void displayRecord(ims.vo.ValueObject selectedRow)
{
    if (selectedRow != null)
    {
        clearEpisodeControls();
        clearEmergencyAttendanceDischargeDetails();
        if (selectedRow instanceof EpisodeDetailsVo)
        {
            EpisodeDetailsVo episode = (EpisodeDetailsVo) selectedRow;

            // Populate EpisodeDetails
            form.cmbPatientCategory().setValue(episode.getCategory());
            form.cmbPresComplaint().setValue(episode.getPresentingComplaint());
            form.imbLocDetails().setTooltip("Location details: " + episode.getLocationDetails());
            form.cmbSourceOfReferral().setValue(episode.getSourceOfReferral());
            form.cmbIncidentLocation().setValue(episode.getIncidentLocation());
            form.dtimInjury().setValue(episode.getInjuryDateTime());

            form.cmbOccupationStatus().setValue(episode.getOccupationStatus());
            form.cmbOcupation().setValue(episode.getOccupation());
            form.cmbSchool().setValue(episode.getSchool());
            form.cmbTriageCategory().setValue(episode.getTriageCategoryType());
            form.txtPlaceOfEmployment().setValue(episode.getPlaceofEmployment());
            form.chkGPMedicationDetailsPatientConsents().setValue(episode.getMedPatientConsent());  //wdev-17819
            // wdev-14582
            if (PatientCategory.ASSAULT.equals(episode.getCategory()) || PresentingComplaint.ASSAULT.equals(episode.getPresentingComplaint()))
                form.btnTIIG().setVisible(true);
            else
                form.btnTIIG().setVisible(false);
            // -----------------------------------
            // wdev-14615
            if (PatientCategory.RTA.equals(episode.getCategory()))
            {
                if (form.btnTIIG().isVisible())
                {
                    form.btnRTA1().setVisible(true);
                    form.btnRTA().setVisible(false);
                }
                else
                {
                    form.btnRTA().setVisible(true);
                    form.btnRTA1().setVisible(false);
                }

            }
            else
            {
                form.btnRTA1().setVisible(false);
                form.btnRTA().setVisible(false);
            }
            // ------------
            if (episode.getReferringGPIsNotNull())
            {
                form.txtReferralGP().setValue(domain.getGP(episode.getReferringGP().getID_Gp()).getName().toString());
            }
            // wdev-14420
            if (episode != null)
            {
                if (episode.getSpecialInterestDetails() != null && episode.getSpecialInterestDetails().size() > 0)
                {
                    // populate SpecialInterest Button Tooltip
                }
                else
                {
                    form.btnSpecialInterest().setTooltip(null);

                }
            }

            hideOrDisableDischargeDetails(false);
        }
        updateControlState();
    }
    else
    {
        clearAttendanceDetails();
    }

}
项目:openMAXIMS    文件:TrackingImpl.java   
private PresentingComplaint assemblePresentingComplaintLookupItem(LookupInstance presentingComplaint) 
{
    if(presentingComplaint == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (presentingComplaint.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(presentingComplaint.getImage().getImageId(), presentingComplaint.getImage().getImagePath());
    }

    color = presentingComplaint.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.PresentingComplaint voLookup = new ims.emergency.vo.lookups.PresentingComplaint(presentingComplaint.getId(),presentingComplaint.getText(), presentingComplaint.isActive(), null, img, color);
    ims.emergency.vo.lookups.PresentingComplaint parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = presentingComplaint.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.PresentingComplaint(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openmaxims-linux    文件:Logic.java   
private void displayRecord(ims.vo.ValueObject selectedRow)
{
    if (selectedRow != null)
    {
        clearEpisodeControls();
        clearEmergencyAttendanceDischargeDetails();
        if (selectedRow instanceof EpisodeDetailsVo)
        {
            EpisodeDetailsVo episode = (EpisodeDetailsVo) selectedRow;

            // Populate EpisodeDetails
            form.cmbPatientCategory().setValue(episode.getCategory());
            form.cmbPresComplaint().setValue(episode.getPresentingComplaint());
            form.imbLocDetails().setTooltip("Location details: " + episode.getLocationDetails());
            form.cmbSourceOfReferral().setValue(episode.getSourceOfReferral());
            form.cmbIncidentLocation().setValue(episode.getIncidentLocation());
            form.dtimInjury().setValue(episode.getInjuryDateTime());

            form.cmbOccupationStatus().setValue(episode.getOccupationStatus());
            form.cmbOcupation().setValue(episode.getOccupation());
            form.cmbSchool().setValue(episode.getSchool());
            form.cmbTriageCategory().setValue(episode.getTriageCategoryType());
            form.txtPlaceOfEmployment().setValue(episode.getPlaceofEmployment());
            form.chkGPMedicationDetailsPatientConsents().setValue(episode.getMedPatientConsent());  //wdev-17819
            // wdev-14582
            if (PatientCategory.ASSAULT.equals(episode.getCategory()) || PresentingComplaint.ASSAULT.equals(episode.getPresentingComplaint()))
                form.btnTIIG().setVisible(true);
            else
                form.btnTIIG().setVisible(false);
            // -----------------------------------
            // wdev-14615
            if (PatientCategory.RTA.equals(episode.getCategory()))
            {
                if (form.btnTIIG().isVisible())
                {
                    form.btnRTA1().setVisible(true);
                    form.btnRTA().setVisible(false);
                }
                else
                {
                    form.btnRTA().setVisible(true);
                    form.btnRTA1().setVisible(false);
                }

            }
            else
            {
                form.btnRTA1().setVisible(false);
                form.btnRTA().setVisible(false);
            }
            // ------------
            if (episode.getReferringGPIsNotNull())
            {
                form.txtReferralGP().setValue(domain.getGP(episode.getReferringGP().getID_Gp()).getName().toString());
            }
            // wdev-14420
            if (episode != null)
            {
                if (episode.getSpecialInterestDetails() != null && episode.getSpecialInterestDetails().size() > 0)
                {
                    // populate SpecialInterest Button Tooltip
                }
                else
                {
                    form.btnSpecialInterest().setTooltip(null);

                }
            }

            hideOrDisableDischargeDetails(false);
        }
        updateControlState();
    }
    else
    {
        clearAttendanceDetails();
    }

}
项目:openmaxims-linux    文件:TrackingImpl.java   
private PresentingComplaint assemblePresentingComplaintLookupItem(LookupInstance presentingComplaint) 
{
    if(presentingComplaint == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (presentingComplaint.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(presentingComplaint.getImage().getImageId(), presentingComplaint.getImage().getImagePath());
    }

    color = presentingComplaint.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.PresentingComplaint voLookup = new ims.emergency.vo.lookups.PresentingComplaint(presentingComplaint.getId(),presentingComplaint.getText(), presentingComplaint.isActive(), null, img, color);
    ims.emergency.vo.lookups.PresentingComplaint parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = presentingComplaint.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.PresentingComplaint(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}