Java 类ims.nursing.vo.domain.AdmissionDetailForClinicalAdmissionVoAssembler 实例源码

项目:AvoinApotti    文件:ClinicalAdmissionImpl.java   
public AdmissionDetailForClinicalAdmissionVo getPASAdmissionDetails(PASEventRefVo pasEvent) 
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    DomainFactory factory = getDomainFactory();
    String query = "from AdmissionDetail as ad where ad.pasEvent.id = :PASEvent";

    List<?> list = factory.find(query, new String[] {"PASEvent"}, new Object[] {pasEvent.getID_PASEvent()});

    if(list != null && list.size() > 0)
        return AdmissionDetailForClinicalAdmissionVoAssembler.create((AdmissionDetail) list.get(0));

    return null;
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public AdmissionDetailForClinicalAdmissionVo getPASAdmissionDetails(PASEventRefVo pasEvent) 
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    DomainFactory factory = getDomainFactory();
    String query = "from AdmissionDetail as ad where ad.pasEvent.id = :PASEvent";

    List<?> list = factory.find(query, new String[] {"PASEvent"}, new Object[] {pasEvent.getID_PASEvent()});

    if(list != null && list.size() > 0)
        return AdmissionDetailForClinicalAdmissionVoAssembler.create((AdmissionDetail) list.get(0));

    return null;
}
项目:openMAXIMS    文件:ClinicalAdmissionImpl.java   
public AdmissionDetailForClinicalAdmissionVo getPASAdmissionDetails(PASEventRefVo pasEvent) 
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    DomainFactory factory = getDomainFactory();
    String query = "from AdmissionDetail as ad where ad.pasEvent.id = :PASEvent";

    List<?> list = factory.find(query, new String[] {"PASEvent"}, new Object[] {pasEvent.getID_PASEvent()});

    if(list != null && list.size() > 0)
        return AdmissionDetailForClinicalAdmissionVoAssembler.create((AdmissionDetail) list.get(0));

    return null;
}
项目:openmaxims-linux    文件:ClinicalAdmissionImpl.java   
public AdmissionDetailForClinicalAdmissionVo getPASAdmissionDetails(PASEventRefVo pasEvent) 
{
    if(pasEvent == null || pasEvent.getID_PASEvent() == null)
        throw new CodingRuntimeException("Can not get AdmissionDetail on null PASEvent Id.");

    DomainFactory factory = getDomainFactory();
    String query = "from AdmissionDetail as ad where ad.pasEvent.id = :PASEvent";

    List<?> list = factory.find(query, new String[] {"PASEvent"}, new Object[] {pasEvent.getID_PASEvent()});

    if(list != null && list.size() > 0)
        return AdmissionDetailForClinicalAdmissionVoAssembler.create((AdmissionDetail) list.get(0));

    return null;
}