Java 类ims.core.vo.PatientDocumentforDocumentWorklistVo 实例源码

项目:AvoinApotti    文件:Logic.java   
public int compare(PatientDocumentforDocumentWorklistVo o1, PatientDocumentforDocumentWorklistVo o2)
{
    if (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getAuthoringHCPIsNotNull() && o2 != null && o2.getAuthoringHCPIsNotNull())
            return order*o1.getAuthoringHCP().compareTo(o2.getAuthoringHCP());
    }
    else if(!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getResponsibleHCPIsNotNull() && o2 != null && o2.getResponsibleHCPIsNotNull())
            return order*o1.getResponsibleHCP().compareTo(o2.getResponsibleHCP());
    }

    if (o1 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getResponsibleHCPIsNotNull()))
        return -1 * order;

    if (o2 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getResponsibleHCPIsNotNull()))
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(PatientDocumentforDocumentWorklistVo o1, PatientDocumentforDocumentWorklistVo o2)
{
    if (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getAuthoringHCPIsNotNull() && o2 != null && o2.getAuthoringHCPIsNotNull())
            return order*o1.getAuthoringHCP().compareTo(o2.getAuthoringHCP());
    }
    else if(!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getResponsibleHCPIsNotNull() && o2 != null && o2.getResponsibleHCPIsNotNull())
            return order*o1.getResponsibleHCP().compareTo(o2.getResponsibleHCP());
    }

    if (o1 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getResponsibleHCPIsNotNull()))
        return -1 * order;

    if (o2 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getResponsibleHCPIsNotNull()))
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(PatientDocumentforDocumentWorklistVo o1, PatientDocumentforDocumentWorklistVo o2)
{
    if (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getAuthoringHCPIsNotNull() && o2 != null && o2.getAuthoringHCPIsNotNull())
            return order*o1.getAuthoringHCP().compareTo(o2.getAuthoringHCP());
    }
    else if(!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getResponsibleHCPIsNotNull() && o2 != null && o2.getResponsibleHCPIsNotNull())
            return order*o1.getResponsibleHCP().compareTo(o2.getResponsibleHCP());
    }

    if (o1 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getResponsibleHCPIsNotNull()))
        return -1 * order;

    if (o2 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getResponsibleHCPIsNotNull()))
        return order;

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
public int compare(PatientDocumentforDocumentWorklistVo o1, PatientDocumentforDocumentWorklistVo o2)
{
    if (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getAuthoringHCPIsNotNull() && o2 != null && o2.getAuthoringHCPIsNotNull())
            return order*o1.getAuthoringHCP().compareTo(o2.getAuthoringHCP());
    }
    else if(!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()))
    {
        if(o1 != null && o1.getResponsibleHCPIsNotNull() && o2 != null && o2.getResponsibleHCPIsNotNull())
            return order*o1.getResponsibleHCP().compareTo(o2.getResponsibleHCP());
    }

    if (o1 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o1.getResponsibleHCPIsNotNull()))
        return -1 * order;

    if (o2 == null || (AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getAuthoringHCPIsNotNull()) || (!AUTHORING_HCP.equals(ConfigFlag.UI.DISPLAYED_HCP_ON_PATIENT_DOCUMENT_FORM.getValue()) && !o2.getResponsibleHCPIsNotNull()))
        return order;

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
private void newDocument() throws PresentationLogicException 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo || form.getGlobalContext().Core.getPatientShortIsNotNull())// WDEV-13794
    {
        selectPatient(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo ? form.grdDocuments().getValue().getPatient() : form.getGlobalContext().Core.getPatientShort());
        newInstance();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void viewDemographic() 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo)
    {
        selectPatient(form.grdDocuments().getValue().getPatient());
        engine.open(ConfigFlag.UI.DEMOGRAPHICS_FORM.getValue());
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean isDocumentFinal(PatientDocumentforDocumentWorklistVo value)
{
    if (value == null || !value.getCurrentDocumentStatusIsNotNull())
        return false;

    return DocumentStatus.COMPLETED.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus()) || DocumentStatus.READY_TO_SEND.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus());
}
项目:AvoinApotti    文件:Logic.java   
private PatientDocumentforDocumentWorklistVo getRowValueFromGrid(PatientDocumentVo selectedDocument)
{
    for (int i = 0; i < form.grdDocuments().getRows().size(); i++)
    {
        PatientDocumentforDocumentWorklistVo value = form.grdDocuments().getRows().get(i).getValue();
        if (value.equals(selectedDocument))
            return value;
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean isPatientDocumentReallyChanged(PatientDocumentforDocumentWorklistVo oldSelectedDocument, PatientDocumentVo selectedDocument) 
{
    if(oldSelectedDocument == null || selectedDocument == null)
        return false;

    if(oldSelectedDocument.getCurrentDocumentStatusIsNotNull() && !oldSelectedDocument.getCurrentDocumentStatus().equals(selectedDocument.getCurrentDocumentStatus()))
        return true;

    if((oldSelectedDocument.getNoOfCopies() == null && selectedDocument.getNoOfCopiesIsNotNull()) 
        || (oldSelectedDocument.getNoOfCopiesIsNotNull() && !oldSelectedDocument.getNoOfCopies().equals(selectedDocument.getNoOfCopies())))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void newDocument() throws PresentationLogicException 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo || form.getGlobalContext().Core.getPatientShortIsNotNull())// WDEV-13794
    {
        selectPatient(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo ? form.grdDocuments().getValue().getPatient() : form.getGlobalContext().Core.getPatientShort());
        newInstance();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void viewDemographic() 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo)
    {
        selectPatient(form.grdDocuments().getValue().getPatient());
        engine.open(ConfigFlag.UI.DEMOGRAPHICS_FORM.getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDocumentFinal(PatientDocumentforDocumentWorklistVo value)
{
    if (value == null || !value.getCurrentDocumentStatusIsNotNull())
        return false;

    return DocumentStatus.COMPLETED.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus()) || DocumentStatus.READY_TO_SEND.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus());
}
项目:openMAXIMS    文件:Logic.java   
private PatientDocumentforDocumentWorklistVo getRowValueFromGrid(PatientDocumentVo selectedDocument)
{
    for (int i = 0; i < form.grdDocuments().getRows().size(); i++)
    {
        PatientDocumentforDocumentWorklistVo value = form.grdDocuments().getRows().get(i).getValue();
        if (value.equals(selectedDocument))
            return value;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPatientDocumentReallyChanged(PatientDocumentforDocumentWorklistVo oldSelectedDocument, PatientDocumentVo selectedDocument) 
{
    if(oldSelectedDocument == null || selectedDocument == null)
        return false;

    if(oldSelectedDocument.getCurrentDocumentStatusIsNotNull() && !oldSelectedDocument.getCurrentDocumentStatus().equals(selectedDocument.getCurrentDocumentStatus()))
        return true;

    if((oldSelectedDocument.getNoOfCopies() == null && selectedDocument.getNoOfCopiesIsNotNull()) 
        || (oldSelectedDocument.getNoOfCopiesIsNotNull() && !oldSelectedDocument.getNoOfCopies().equals(selectedDocument.getNoOfCopies())))
        return true;

    return false;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    String rez1 = null;
    String rez2 = null;

    if(ob1 instanceof PatientDocumentforDocumentWorklistVo )
    {
        PatientDocumentforDocumentWorklistVo ps1 = (PatientDocumentforDocumentWorklistVo)ob1;
        rez1 = (ps1.getPatient() != null && ps1.getPatient().getName() != null) ? ps1.getPatient().getName().getSurname():null;
    }
    if(ob2 instanceof PatientDocumentforDocumentWorklistVo)
    {
        PatientDocumentforDocumentWorklistVo ps2 = (PatientDocumentforDocumentWorklistVo)ob2;
        rez2 = (ps2.getPatient() != null && ps2.getPatient().getName() != null) ? ps2.getPatient().getName().getSurname():null;
    }

    if(rez1 != null && rez2 != null)
        return  rez1.compareToIgnoreCase(rez2)*direction;

    if(rez1 != null && rez2 == null)
        return  direction;

    if(rez2 != null && rez1 == null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    String rez1 = null;
    String rez2 = null;

    if(ob1 instanceof PatientDocumentforDocumentWorklistVo )
    {
        PatientDocumentforDocumentWorklistVo ps1 = (PatientDocumentforDocumentWorklistVo)ob1;
        rez1 = (ps1.getPatient() != null && ps1.getPatient().getName() != null) ? ps1.getPatient().getName().getForename():null;
    }
    if(ob2 instanceof PatientDocumentforDocumentWorklistVo)
    {
        PatientDocumentforDocumentWorklistVo ps2 = (PatientDocumentforDocumentWorklistVo)ob2;
        rez2 = (ps2.getPatient() != null && ps2.getPatient().getName() != null) ? ps2.getPatient().getName().getForename():null;
    }

    if(rez1 != null && rez2 != null)
        return  rez1.compareToIgnoreCase(rez2)*direction;

    if(rez1 != null && rez2 == null)
        return  direction;

    if(rez2 != null && rez1 == null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    String rez1 = null;
    String rez2 = null;

    if(ob1 instanceof PatientDocumentforDocumentWorklistVo )
    {
        PatientDocumentforDocumentWorklistVo ps1 = (PatientDocumentforDocumentWorklistVo)ob1;
        rez1 = getNHSNumber(ps1.getPatient());
    }
    if(ob2 instanceof PatientDocumentforDocumentWorklistVo)
    {
        PatientDocumentforDocumentWorklistVo ps2 = (PatientDocumentforDocumentWorklistVo)ob2;
        rez2 = getNHSNumber(ps2.getPatient());
    }

    if(rez1 != null && rez2 != null)
        return  rez1.compareToIgnoreCase(rez2)*direction;

    if(rez1 != null && rez2 == null)
        return  direction;

    if(rez2 != null && rez1 == null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    Date rez1 = null;
    Date rez2 = null;

    if(ob1 instanceof PatientDocumentforDocumentWorklistVo )
    {
        PatientDocumentforDocumentWorklistVo ps1 = (PatientDocumentforDocumentWorklistVo)ob1;
        rez1 =  ps1.getDocumentDate();
    }
    if(ob2 instanceof PatientDocumentforDocumentWorklistVo)
    {
        PatientDocumentforDocumentWorklistVo ps2 = (PatientDocumentforDocumentWorklistVo)ob2;
        rez2 = ps2.getDocumentDate();
    }

    if(rez1 != null && rez2 != null)
        return  rez1.compareTo(rez2)*direction;

    if(rez1 != null && rez2 == null)
        return  direction;

    if(rez2 != null && rez1 == null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(Object ob1, Object ob2) 
{
    String rez1 = null;
    String rez2 = null;

    if(ob1 instanceof PatientDocumentforDocumentWorklistVo )
    {
        PatientDocumentforDocumentWorklistVo ps1 = (PatientDocumentforDocumentWorklistVo)ob1;
        rez1 = (ps1.getCurrentDocumentStatus() != null && ps1.getCurrentDocumentStatus().getCorrespondenceStatus() != null) ? ps1.getCurrentDocumentStatus().getCorrespondenceStatus().getText():null;
    }
    if(ob2 instanceof PatientDocumentforDocumentWorklistVo)
    {
        PatientDocumentforDocumentWorklistVo ps2 = (PatientDocumentforDocumentWorklistVo)ob2;
        rez2 = (ps2.getCurrentDocumentStatus() != null && ps2.getCurrentDocumentStatus().getCorrespondenceStatus() != null) ? ps2.getCurrentDocumentStatus().getCorrespondenceStatus().getText():null;
    }

    if(rez1 != null && rez2 != null)
        return  rez1.compareToIgnoreCase(rez2)*direction;

    if(rez1 != null && rez2 == null)
        return  direction;

    if(rez2 != null && rez1 == null)
        return (-1)*direction;

    return 0;
}
项目:openMAXIMS    文件:PatientDocumentEditImpl.java   
public PatientDocumentforDocumentWorklistVo getPatientDocumentforDocumentWorklist(PatientDocumentRefVo patientDocumentRef)
{
    if (patientDocumentRef == null || patientDocumentRef.getID_PatientDocument() == null)
    {
        throw new CodingRuntimeException("Cannot get PatientDocument on null Id ");
    }

    DomainObject domainObject = getDomainFactory().getDomainObject(PatientDocument.class, patientDocumentRef.getID_PatientDocument());
    return PatientDocumentforDocumentWorklistVoAssembler.create((PatientDocument) domainObject);
}
项目:openMAXIMS    文件:Logic.java   
private void newDocument() throws PresentationLogicException 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo || form.getGlobalContext().Core.getPatientShortIsNotNull())// WDEV-13794
    {
        selectPatient(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo ? form.grdDocuments().getValue().getPatient() : form.getGlobalContext().Core.getPatientShort());
        newInstance();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void viewDemographic() 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo)
    {
        selectPatient(form.grdDocuments().getValue().getPatient());
        engine.open(ConfigFlag.UI.DEMOGRAPHICS_FORM.getValue());
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean isDocumentFinal(PatientDocumentforDocumentWorklistVo value)
{
    if (value == null || !value.getCurrentDocumentStatusIsNotNull())
        return false;

    return DocumentStatus.COMPLETED.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus()) || DocumentStatus.READY_TO_SEND.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus());
}
项目:openMAXIMS    文件:Logic.java   
private PatientDocumentforDocumentWorklistVo getRowValueFromGrid(PatientDocumentVo selectedDocument)
{
    for (int i = 0; i < form.grdDocuments().getRows().size(); i++)
    {
        PatientDocumentforDocumentWorklistVo value = form.grdDocuments().getRows().get(i).getValue();
        if (value.equals(selectedDocument))
            return value;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPatientDocumentReallyChanged(PatientDocumentforDocumentWorklistVo oldSelectedDocument, PatientDocumentVo selectedDocument) 
{
    if(oldSelectedDocument == null || selectedDocument == null)
        return false;

    if(oldSelectedDocument.getCurrentDocumentStatusIsNotNull() && !oldSelectedDocument.getCurrentDocumentStatus().equals(selectedDocument.getCurrentDocumentStatus()))
        return true;

    if((oldSelectedDocument.getNoOfCopies() == null && selectedDocument.getNoOfCopiesIsNotNull()) 
        || (oldSelectedDocument.getNoOfCopiesIsNotNull() && !oldSelectedDocument.getNoOfCopies().equals(selectedDocument.getNoOfCopies())))
        return true;

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void newDocument() throws PresentationLogicException 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo || form.getGlobalContext().Core.getPatientShortIsNotNull())// WDEV-13794
    {
        selectPatient(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo ? form.grdDocuments().getValue().getPatient() : form.getGlobalContext().Core.getPatientShort());
        newInstance();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void viewDemographic() 
{
    if(form.grdDocuments().getValue() instanceof PatientDocumentforDocumentWorklistVo)
    {
        selectPatient(form.grdDocuments().getValue().getPatient());
        engine.open(ConfigFlag.UI.DEMOGRAPHICS_FORM.getValue());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isDocumentFinal(PatientDocumentforDocumentWorklistVo value)
{
    if (value == null || !value.getCurrentDocumentStatusIsNotNull())
        return false;

    return DocumentStatus.COMPLETED.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus()) || DocumentStatus.READY_TO_SEND.equals(value.getCurrentDocumentStatus().getCorrespondenceStatus());
}
项目:openmaxims-linux    文件:Logic.java   
private PatientDocumentforDocumentWorklistVo getRowValueFromGrid(PatientDocumentVo selectedDocument)
{
    for (int i = 0; i < form.grdDocuments().getRows().size(); i++)
    {
        PatientDocumentforDocumentWorklistVo value = form.grdDocuments().getRows().get(i).getValue();
        if (value.equals(selectedDocument))
            return value;
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isPatientDocumentReallyChanged(PatientDocumentforDocumentWorklistVo oldSelectedDocument, PatientDocumentVo selectedDocument) 
{
    if(oldSelectedDocument == null || selectedDocument == null)
        return false;

    if(oldSelectedDocument.getCurrentDocumentStatusIsNotNull() && !oldSelectedDocument.getCurrentDocumentStatus().equals(selectedDocument.getCurrentDocumentStatus()))
        return true;

    if((oldSelectedDocument.getNoOfCopies() == null && selectedDocument.getNoOfCopiesIsNotNull()) 
        || (oldSelectedDocument.getNoOfCopiesIsNotNull() && !oldSelectedDocument.getNoOfCopies().equals(selectedDocument.getNoOfCopies())))
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void newPatDocRow(PatientDocumentforDocumentWorklistVo patientDocument)
{
    if (patientDocument == null)
        return;

    grdDocumentsRow newRow = form.grdDocuments().getRows().newRow();
    newRow.setValue(patientDocument);

    boolean nameNotNull = patientDocument.getPatientIsNotNull() && patientDocument.getPatient().getNameIsNotNull();
    newRow.setSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");
    //WDEV-12012
    newRow.setTooltipForSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");

    newRow.setForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");
    //WDEV-12012
    newRow.setTooltipForForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");

    newRow.setNHSNo(getNHSNumber(patientDocument.getPatient()));
    //WDEV-12012
    newRow.setTooltipForNHSNo(getNHSNumber(patientDocument.getPatient()));

    //WDEV-12012 - starts here
    String documentTitle = "";

    if(patientDocument.getCategoryIsNotNull())
        documentTitle += patientDocument.getCategory().getText();

    if(patientDocument.getNameIsNotNull())
        documentTitle += " - " + patientDocument.getName();

    newRow.setColTitle(documentTitle);
    newRow.setTooltipForColTitle(documentTitle);

    String typistInitials = patientDocument.getRecordingUser() != null ? patientDocument.getRecordingUser().getInitials() : null;//WDEV-14174

    //WDEV-12012 - ends here
    if (ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP"))
    {
        String responsable = (patientDocument.getResponsibleHCP() != null ? patientDocument.getResponsibleHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(responsable);//WDEV-14174
        newRow.setTooltipForAuthor(responsable);//WDEV-12319, WDEV-14174

    }
    else
    {
        String authoring = (patientDocument.getAuthoringHCP() != null ? patientDocument.getAuthoringHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(authoring);//WDEV-14174
        newRow.setTooltipForAuthor(authoring);  //WDEV-12319, WDEV-14174
    }

    newRow.setDate(patientDocument.getDocumentDate());
    //WDEV-12012
    newRow.setTooltipForDate(patientDocument.getDocumentDate() != null ? patientDocument.getDocumentDate().toString() : null);

    newRow.setStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    //WDEV-12012, WDEV-15957
    if(patientDocument.getCopyPatientOnCorrespondenceIsNotNull())
    {
        newRow.setTooltipForStatus((patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "") + ", Copy Letter to Patient: " + (Boolean.TRUE.equals(patientDocument.getCopyPatientOnCorrespondence()) ? "Yes" : "No"));
    }
    else
    {
        newRow.setTooltipForStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    }

    //WDEV-11714
    newRow.setColNoOfCopies(patientDocument.getNoOfCopies());

    newRow.setColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? form.getImages().Correspondence.FinaliseAndPrint16 : null);//  WDEV-14174
    newRow.setTooltipForColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? "Printed" : null);// WDEV-14174

    newRow.setColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.FinaliseAndEmail16 : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.Email_not_send : null));//   WDEV-14174
    newRow.setTooltipForColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.SENT.getText() : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.NOT_SENT.getText() : null));// WDEV-14174
}
项目:openMAXIMS    文件:Logic.java   
private void newPatDocRow(PatientDocumentforDocumentWorklistVo patientDocument)
{
    if (patientDocument == null)
        return;

    grdDocumentsRow newRow = form.grdDocuments().getRows().newRow();
    newRow.setValue(patientDocument);

    boolean nameNotNull = patientDocument.getPatientIsNotNull() && patientDocument.getPatient().getNameIsNotNull();
    newRow.setSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");
    //WDEV-12012
    newRow.setTooltipForSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");

    newRow.setForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");
    //WDEV-12012
    newRow.setTooltipForForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");

    newRow.setNHSNo(getNHSNumber(patientDocument.getPatient()));
    //WDEV-12012
    newRow.setTooltipForNHSNo(getNHSNumber(patientDocument.getPatient()));

    //WDEV-12012 - starts here
    String documentTitle = "";

    if(patientDocument.getCategoryIsNotNull())
        documentTitle += patientDocument.getCategory().getText();

    if(patientDocument.getNameIsNotNull())
        documentTitle += " - " + patientDocument.getName();

    newRow.setColTitle(documentTitle);
    newRow.setTooltipForColTitle(documentTitle);

    String typistInitials = patientDocument.getRecordingUser() != null ? patientDocument.getRecordingUser().getInitials() : null;//WDEV-14174

    //WDEV-12012 - ends here
    if (ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP"))
    {
        String responsable = (patientDocument.getResponsibleHCP() != null ? patientDocument.getResponsibleHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(responsable);//WDEV-14174
        newRow.setTooltipForAuthor(responsable);//WDEV-12319, WDEV-14174

    }
    else
    {
        String authoring = (patientDocument.getAuthoringHCP() != null ? patientDocument.getAuthoringHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(authoring);//WDEV-14174
        newRow.setTooltipForAuthor(authoring);  //WDEV-12319, WDEV-14174
    }

    newRow.setDate(patientDocument.getDocumentDate());
    //WDEV-12012
    newRow.setTooltipForDate(patientDocument.getDocumentDate() != null ? patientDocument.getDocumentDate().toString() : null);

    newRow.setStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    //WDEV-12012, WDEV-15957
    if(patientDocument.getCopyPatientOnCorrespondenceIsNotNull())
    {
        newRow.setTooltipForStatus((patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "") + ", Copy Letter to Patient: " + (Boolean.TRUE.equals(patientDocument.getCopyPatientOnCorrespondence()) ? "Yes" : "No"));
    }
    else
    {
        newRow.setTooltipForStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    }

    //WDEV-11714
    newRow.setColNoOfCopies(patientDocument.getNoOfCopies());

    newRow.setColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? form.getImages().Correspondence.FinaliseAndPrint16 : null);//  WDEV-14174
    newRow.setTooltipForColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? "Printed" : null);// WDEV-14174

    newRow.setColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.FinaliseAndEmail16 : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.Email_not_send : null));//   WDEV-14174
    newRow.setTooltipForColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.SENT.getText() : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.NOT_SENT.getText() : null));// WDEV-14174

    //WDEV-18815
    newRow.setColEnclosure(Boolean.TRUE.equals(patientDocument.getHasEnclosure()) ? form.getImages().Core.OpenLetter16 : null);
}
项目:openMAXIMS    文件:Logic.java   
private void newPatDocRow(PatientDocumentforDocumentWorklistVo patientDocument)
{
    if (patientDocument == null)
        return;

    grdDocumentsRow newRow = form.grdDocuments().getRows().newRow();
    newRow.setValue(patientDocument);

    boolean nameNotNull = patientDocument.getPatientIsNotNull() && patientDocument.getPatient().getNameIsNotNull();
    newRow.setSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");
    //WDEV-12012
    newRow.setTooltipForSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");

    newRow.setForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");
    //WDEV-12012
    newRow.setTooltipForForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");

    newRow.setNHSNo(getNHSNumber(patientDocument.getPatient()));
    //WDEV-12012
    newRow.setTooltipForNHSNo(getNHSNumber(patientDocument.getPatient()));

    //WDEV-12012 - starts here
    String documentTitle = "";

    if(patientDocument.getCategoryIsNotNull())
        documentTitle += patientDocument.getCategory().getText();

    if(patientDocument.getNameIsNotNull())
        documentTitle += " - " + patientDocument.getName();

    newRow.setColTitle(documentTitle);
    newRow.setTooltipForColTitle(documentTitle);

    String typistInitials = patientDocument.getRecordingUser() != null ? patientDocument.getRecordingUser().getInitials() : null;//WDEV-14174

    //WDEV-12012 - ends here
    if (ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP"))
    {
        String responsable = (patientDocument.getResponsibleHCP() != null ? patientDocument.getResponsibleHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(responsable);//WDEV-14174
        newRow.setTooltipForAuthor(responsable);//WDEV-12319, WDEV-14174

    }
    else
    {
        String authoring = (patientDocument.getAuthoringHCP() != null ? patientDocument.getAuthoringHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(authoring);//WDEV-14174
        newRow.setTooltipForAuthor(authoring);  //WDEV-12319, WDEV-14174
    }

    newRow.setDate(patientDocument.getDocumentDate());
    //WDEV-12012
    newRow.setTooltipForDate(patientDocument.getDocumentDate() != null ? patientDocument.getDocumentDate().toString() : null);

    newRow.setStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    //WDEV-12012, WDEV-15957
    if(patientDocument.getCopyPatientOnCorrespondenceIsNotNull())
    {
        newRow.setTooltipForStatus((patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "") + ", Copy Letter to Patient: " + (Boolean.TRUE.equals(patientDocument.getCopyPatientOnCorrespondence()) ? "Yes" : "No"));
    }
    else
    {
        newRow.setTooltipForStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    }

    //WDEV-11714
    newRow.setColNoOfCopies(patientDocument.getNoOfCopies());

    newRow.setColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? form.getImages().Correspondence.FinaliseAndPrint16 : null);//  WDEV-14174
    newRow.setTooltipForColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? "Printed" : null);// WDEV-14174

    newRow.setColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.FinaliseAndEmail16 : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.Email_not_send : null));//   WDEV-14174
    newRow.setTooltipForColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.SENT.getText() : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.NOT_SENT.getText() : null));// WDEV-14174
}
项目:openmaxims-linux    文件:Logic.java   
private void newPatDocRow(PatientDocumentforDocumentWorklistVo patientDocument)
{
    if (patientDocument == null)
        return;

    grdDocumentsRow newRow = form.grdDocuments().getRows().newRow();
    newRow.setValue(patientDocument);

    boolean nameNotNull = patientDocument.getPatientIsNotNull() && patientDocument.getPatient().getNameIsNotNull();
    newRow.setSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");
    //WDEV-12012
    newRow.setTooltipForSurname(nameNotNull && patientDocument.getPatient().getName().getSurnameIsNotNull() ? patientDocument.getPatient().getName().getSurname() : "");

    newRow.setForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");
    //WDEV-12012
    newRow.setTooltipForForename(nameNotNull && patientDocument.getPatient().getName().getForenameIsNotNull() ? patientDocument.getPatient().getName().getForename() : "");

    newRow.setNHSNo(getNHSNumber(patientDocument.getPatient()));
    //WDEV-12012
    newRow.setTooltipForNHSNo(getNHSNumber(patientDocument.getPatient()));

    //WDEV-12012 - starts here
    String documentTitle = "";

    if(patientDocument.getCategoryIsNotNull())
        documentTitle += patientDocument.getCategory().getText();

    if(patientDocument.getNameIsNotNull())
        documentTitle += " - " + patientDocument.getName();

    newRow.setColTitle(documentTitle);
    newRow.setTooltipForColTitle(documentTitle);

    String typistInitials = patientDocument.getRecordingUser() != null ? patientDocument.getRecordingUser().getInitials() : null;//WDEV-14174

    //WDEV-12012 - ends here
    if (ConfigFlag.UI.DISPLAY_AUTHORINGHCP_OR_RESPHCP_ON_DOCUMENT_WORKLIST.getValue().equals("Responsible HCP"))
    {
        String responsable = (patientDocument.getResponsibleHCP() != null ? patientDocument.getResponsibleHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(responsable);//WDEV-14174
        newRow.setTooltipForAuthor(responsable);//WDEV-12319, WDEV-14174

    }
    else
    {
        String authoring = (patientDocument.getAuthoringHCP() != null ? patientDocument.getAuthoringHCP().getIHcpName() : "") + (typistInitials != null ? " (" + typistInitials + ")": "");//WDEV-14174
        newRow.setAuthor(authoring);//WDEV-14174
        newRow.setTooltipForAuthor(authoring);  //WDEV-12319, WDEV-14174
    }

    newRow.setDate(patientDocument.getDocumentDate());
    //WDEV-12012
    newRow.setTooltipForDate(patientDocument.getDocumentDate() != null ? patientDocument.getDocumentDate().toString() : null);

    newRow.setStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    //WDEV-12012, WDEV-15957
    if(patientDocument.getCopyPatientOnCorrespondenceIsNotNull())
    {
        newRow.setTooltipForStatus((patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "") + ", Copy Letter to Patient: " + (Boolean.TRUE.equals(patientDocument.getCopyPatientOnCorrespondence()) ? "Yes" : "No"));
    }
    else
    {
        newRow.setTooltipForStatus(patientDocument.getCurrentDocumentStatusIsNotNull() && patientDocument.getCurrentDocumentStatus().getCorrespondenceStatusIsNotNull() ? patientDocument.getCurrentDocumentStatus().getCorrespondenceStatus().getText() : "");
    }

    //WDEV-11714
    newRow.setColNoOfCopies(patientDocument.getNoOfCopies());

    newRow.setColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? form.getImages().Correspondence.FinaliseAndPrint16 : null);//  WDEV-14174
    newRow.setTooltipForColPrinted((patientDocument.getWasPrintedIsNotNull() && patientDocument.getWasPrinted()) ? "Printed" : null);// WDEV-14174

    newRow.setColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.FinaliseAndEmail16 : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? form.getImages().Correspondence.Email_not_send : null));//   WDEV-14174
    newRow.setTooltipForColEmailed(DocumentEmailStatus.SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.SENT.getText() : (DocumentEmailStatus.NOT_SENT.equals(patientDocument.getEmailStatus()) ? DocumentEmailStatus.NOT_SENT.getText() : null));// WDEV-14174
}