Java 类ims.core.vo.lookups.BedTypeRequested 实例源码

项目:openMAXIMS    文件:TrackingImpl.java   
private PendingEmergencyAdmissionForTrackingFormVo assemblePendingEmergencyAddmission(PendingEmergencyAdmissionForTrackingFormVo associatedPendingEmergencyAdmission,
                                                                                Date dtaDateTime, 
                                                                                String bedTypeRequest, 
                                                                                String dtaHospitalName, 
                                                                                String dtaWardName, 
                                                                                String dtaComments)
{
    if (associatedPendingEmergencyAdmission == null)
    {
        associatedPendingEmergencyAdmission = new PendingEmergencyAdmissionForTrackingFormVo();
    }

    if (dtaDateTime != null)
    {
        associatedPendingEmergencyAdmission.setDTADateTime(new DateTime(dtaDateTime));
    }

    if (bedTypeRequest != null)
    {
        BedTypeRequested bedType = new BedTypeRequested();
        bedType.setText(bedTypeRequest);
        associatedPendingEmergencyAdmission.setBedTypeRequested(bedType);
    }

    if (dtaHospitalName != null)
    {
        LocationLiteVo hospital = new LocationLiteVo();
        hospital.setName(dtaHospitalName);
        associatedPendingEmergencyAdmission.setHospital(hospital);
    }

    if (dtaWardName != null)
    {
        LocationLiteVo ward = new LocationLiteVo();
        ward.setName(dtaWardName);
        associatedPendingEmergencyAdmission.setAllocatedWard(ward);
    }

    associatedPendingEmergencyAdmission.setComments(dtaComments);

    return associatedPendingEmergencyAdmission;
}