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

项目:openMAXIMS    文件:Logic.java   
private String getHospitalNo(PatientIdListVoCollection identifiers)
{
    String HospNo = "";

    if (identifiers == null || identifiers.size() == 0)
    {
        return HospNo;
    }

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (PatIdType.HOSPNUM.equals(identifiers.get(i).getType()))
        {
            HospNo = identifiers.get(i).getValue();
            break;
        }
    }

    return HospNo;
}
项目:AvoinApotti    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:AvoinApotti    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}
项目:openMAXIMS    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openMAXIMS    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}
项目:openmaxims-linux    文件:Logic.java   
private void addPatientClericalTaskDetailsRow(PatientClericalTaskVo record) 
{
    if(record == null)
        return;

     grdClericalTaskRow row = form.grdClericalTask().getRows().newRow();

      PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

     for (int i=0;i<identifiers.size();i++)
     {
        if (identifiers.get(i).getType().equals(PatIdType.HOSPNUM))
            row.setcolHospitalNo(identifiers.get(i).getValue().toString());
        if (identifiers.get(i).getType().equals(PatIdType.NHSN))
            row.setcolNHSNumber(identifiers.get(i).getValue().toString());  
     }  

     row.setcolSurname(record.getPatient().getName().getSurname()); 
     row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

     row.setcolForname(record.getPatient().getName().getForename());
     row.setTooltipForcolForname(record.getPatient().getName().getForename());

     row.setcolDOB(record.getPatient().getDob());

     row.setcolRequestor(record.getRequestor().toString());
     row.setTooltipForcolRequestor(record.getRequestor().toString());

     row.setcolAllocated(record.getAllocatedTo().toString());
     row.setTooltipForcolAllocated(record.getAllocatedTo().toString());

     row.setcolRequestedDateTime(record.getRequestedDateTime().toString());

     row.setcolStatus(record.getStatus().toString());

     if (record.getStatus().equals(PatientClericalTaskStatus.COMPLETED) && record.getCompletedBy() != null)
     {
         row.setTooltipForcolStatus("Completed By: "+record.getCompletedBy().toString()+"<br>Completed On: "+record.getCompletedDateTime().toString());//
     }
    row.setValue(record);
}
项目:openmaxims-linux    文件:Logic.java   
private void addCarePlanWorklistRow(SurgicalAuditTheatreWorklistVo record)
{
    if (record == null)
        return;

    grdResultsRow row = form.grdResults().getRows().newRow();

    row.setcolSurname(record.getPatient().getName().getSurname());
    row.setTooltipForcolSurname(record.getPatient().getName().getSurname());

    row.setcolForname(record.getPatient().getName().getForename());
    row.setTooltipForcolForname(record.getPatient().getName().getForename());

    PatientIdListVoCollection identifiers = record.getPatient().getIdentifiers();

    for (int i = 0; i < identifiers.size(); i++)
    {
        if (identifiers.get(i).getType().equals(PatIdType.MRNNUM))
        {
            row.setcolMRNo(identifiers.get(i).getValue().toString());
            row.setTooltipForcolMRNo(identifiers.get(i).getValue().toString());
        }
    }

    row.setcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());
    row.setTooltipForcolStatus(record.getCurrentStatus().getOperationStatus().getText()+" - "+record.getCurrentStatus().getStatusDateTime());

    // Populate Procedure Column & Primary Procedure Column
    PatientProcedureForSurgicalAuditPreOpChecksVoCollection collProcedure = null;
    if (record.getActualProcedureIsNotNull())
        collProcedure = record.getActualProcedure().getPlannedActualProcedures();
    else
        collProcedure = record.getPreOpChecks().getPlannedProcedures();

    StringBuffer textForColProcedure = new StringBuffer();
    StringBuffer tooltipForColProcedure = new StringBuffer();
    PatientProcedureForSurgicalAuditPreOpChecksVo primaryProcedure = null;

    for (int i = 0; i < collProcedure.size(); i++)
    {
        textForColProcedure.append((i != 0 ? "," : "") + collProcedure.get(i).getProcedureDescription());
        tooltipForColProcedure.append(collProcedure.get(i).getProcedureDescription() + "<br>");

        if (collProcedure.get(i).getIsPrimary() !=null && collProcedure.get(i).getIsPrimary())
            primaryProcedure = collProcedure.get(i);

    }

    row.setcolProcedure(textForColProcedure.toString());
    row.setTooltipForcolProcedure(tooltipForColProcedure.toString());
    if (primaryProcedure != null)
    {
        row.setcolPrimaryProc(primaryProcedure.getProcedureDescription());
        row.setTooltipForcolPrimaryProc(primaryProcedure.getProcedureDescription());
    }
    row.setValue(record);

}