GVKun编程网logo

ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码(@transactional源码解析)

30

如果您想了解ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码和@transactional源码解析的知识,那么本篇

如果您想了解ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码@transactional源码解析的知识,那么本篇文章将是您的不二之选。我们将深入剖析ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码的各个方面,并为您解答@transactional源码解析的疑在这篇文章中,我们将为您介绍ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码的相关知识,同时也会详细的解释@transactional源码解析的运用方法,并给出实际的案例分析,希望能帮助到您!

本文目录一览:

ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码(@transactional源码解析)

ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码(@transactional源码解析)

项目:AvoinApotti    文件:ClinicLetterBatchCreateImpl.java   
public PatientSummaryNoteByHcpshortVo getLastSummaryNote(PatientRefVo patient) 
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());
    List summarynotes = getDomainFactory().find(query,paramNames,paramValues);
    if(summarynotes != null && summarynotes.size() > 0)
    {
        PatientSummaryNoteByHcpshortVoCollection coll = PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(summarynotes);
        if(coll != null && coll.size() > 0)
            return coll.get(0);
    }
    return null;
}
项目:openMAXims    文件:ClinicLetterBatchCreateImpl.java   
public PatientSummaryNoteByHcpshortVo getLastSummaryNote(PatientRefVo patient) 
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());
    List summarynotes = getDomainFactory().find(query,paramValues);
    if(summarynotes != null && summarynotes.size() > 0)
    {
        PatientSummaryNoteByHcpshortVoCollection coll = PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(summarynotes);
        if(coll != null && coll.size() > 0)
            return coll.get(0);
    }
    return null;
}
项目:openmaxims-linux    文件:ClinicLetterBatchCreateImpl.java   
public PatientSummaryNoteByHcpshortVo getLastSummaryNote(PatientRefVo patient) 
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());
    List summarynotes = getDomainFactory().find(query,paramValues);
    if(summarynotes != null && summarynotes.size() > 0)
    {
        PatientSummaryNoteByHcpshortVoCollection coll = PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(summarynotes);
        if(coll != null && coll.size() > 0)
            return coll.get(0);
    }
    return null;
}
项目:AvoinApotti    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVoCollection listSummaryNotes(PatientRefVo patient)
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());

    return PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(getDomainFactory().find(query,paramValues));
}
项目:AvoinApotti    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVo getSummaryNote(PatientSummaryNoteByHCPRefVo summaryNote)
{
    if (summaryNote == null || !summaryNote.getID_PatientSummaryNoteByHCPIsNotNull())
        return null;

    return PatientSummaryNoteByHcpshortVoAssembler.create((PatientSummaryNoteByHCP) getDomainFactory().getDomainObject(PatientSummaryNoteByHCP.class,summaryNote.getID_PatientSummaryNoteByHCP()));
}
项目:AvoinApotti    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVo saveSummaryNote(PatientSummaryNoteByHcpshortVo summaryNote) throws DomainInterfaceException,StaleObjectException,ForeignkeyviolationException,UniquekeyviolationException
{
    if (summaryNote == null)
        throw new DomainRuntimeException("Can not save null object");

    if (!summaryNote.isValidated())
        throw new DomainRuntimeException("Can not save not validated object");

    DomainFactory factory = getDomainFactory();

    if (!summaryNote.getID_PatientSummaryNoteByHCPIsNotNull())
    {
        // Check for prevIoUsly saved notes by the same HCP for the same patient
        String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID_PAT and sumNote.authoringinformation.authoringHcp.id = :ID_HCP and sumNote.isRIE is null";

        ArrayList<String> paramNames = new ArrayList<String>();
        ArrayList<Object> paramValues = new ArrayList<Object>();

        paramNames.add("ID_PAT");
        paramValues.add(summaryNote.getPatient().getID_Patient());
        paramNames.add("ID_HCP");
        paramValues.add(summaryNote.getAuthoringinformation().getAuthoringHcp().getID_Hcp());

        PatientSummaryNoteByHcpshortVo existingNote = PatientSummaryNoteByHcpshortVoAssembler.create((PatientSummaryNoteByHCP) factory.findFirst(query,paramValues));

        if (existingNote != null)
            throw new DomainInterfaceException("A record for current patient and selected HCP already exists");
    }

    // Get domain object
    PatientSummaryNoteByHCP domObj = PatientSummaryNoteByHcpshortVoAssembler.extractPatientSummaryNoteByHCP(factory,summaryNote);

    // Attempt save
    factory.save(domObj);

    // Return saved object VO
    return PatientSummaryNoteByHcpshortVoAssembler.create(domObj);
}
项目:openMAXims    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVoCollection listSummaryNotes(PatientRefVo patient)
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());

    return PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(getDomainFactory().find(query,paramValues));
}
项目:openMAXims    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVo getSummaryNote(PatientSummaryNoteByHCPRefVo summaryNote)
{
    if (summaryNote == null || !summaryNote.getID_PatientSummaryNoteByHCPIsNotNull())
        return null;

    return PatientSummaryNoteByHcpshortVoAssembler.create((PatientSummaryNoteByHCP) getDomainFactory().getDomainObject(PatientSummaryNoteByHCP.class,summaryNote.getID_PatientSummaryNoteByHCP()));
}
项目:openMAXims    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVo saveSummaryNote(PatientSummaryNoteByHcpshortVo summaryNote) throws DomainInterfaceException,summaryNote);

    // Attempt save
    factory.save(domObj);

    // Return saved object VO
    return PatientSummaryNoteByHcpshortVoAssembler.create(domObj);
}
项目:openmaxims-linux    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVoCollection listSummaryNotes(PatientRefVo patient)
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());

    return PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(getDomainFactory().find(query,paramValues));
}
项目:openmaxims-linux    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVo getSummaryNote(PatientSummaryNoteByHCPRefVo summaryNote)
{
    if (summaryNote == null || !summaryNote.getID_PatientSummaryNoteByHCPIsNotNull())
        return null;

    return PatientSummaryNoteByHcpshortVoAssembler.create((PatientSummaryNoteByHCP) getDomainFactory().getDomainObject(PatientSummaryNoteByHCP.class,summaryNote.getID_PatientSummaryNoteByHCP()));
}
项目:openmaxims-linux    文件:PatientSummaryNoteByHCPImpl.java   
public PatientSummaryNoteByHcpshortVo saveSummaryNote(PatientSummaryNoteByHcpshortVo summaryNote) throws DomainInterfaceException,summaryNote);

    // Attempt save
    factory.save(domObj);

    // Return saved object VO
    return PatientSummaryNoteByHcpshortVoAssembler.create(domObj);
}
项目:AvoinApotti    文件:ClinicLetterBatchCreateImpl.java   
public PatientSummaryNoteByHcpshortVoCollection listSummaryNotes(PatientRefVo patient) 
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());

    return PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(getDomainFactory().find(query,paramValues));

}
项目:openMAXims    文件:ClinicLetterBatchCreateImpl.java   
public PatientSummaryNoteByHcpshortVoCollection listSummaryNotes(PatientRefVo patient) 
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());

    return PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(getDomainFactory().find(query,paramValues));

}
项目:openmaxims-linux    文件:ClinicLetterBatchCreateImpl.java   
public PatientSummaryNoteByHcpshortVoCollection listSummaryNotes(PatientRefVo patient) 
{
    if (patient == null || !patient.getID_PatientIsNotNull())
        throw new DomainRuntimeException("Can not search after null patient");

    String query = " from PatientSummaryNoteByHCP as sumNote where sumNote.patient.id = :ID order by sumNote.authoringinformation.authoringDateTime desc";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("ID");
    paramValues.add(patient.getID_Patient());

    return PatientSummaryNoteByHcpshortVoAssembler.createPatientSummaryNoteByHcpshortVoCollectionFromPatientSummaryNoteByHCP(getDomainFactory().find(query,paramValues));

}

ims.clinical.vo.domain.ClinicalProblemShortVoAssembler的实例源码

ims.clinical.vo.domain.ClinicalProblemShortVoAssembler的实例源码

项目:AvoinApotti    文件:TriageImpl.java   
public ClinicalProblemShortVoCollection listClinicalProblems(String searchText) 
{
    if(searchText == null)
        return null;

    searchText = searchText.trim().toupperCase();

    if(searchText == null || searchText.length() == 0)
        return null;

    DomainFactory factory = getDomainFactory();

    String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (upper(cp.pCName) like :ClinicalProblemSearchText or upper(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc";
    List<?> clinicalProblemsList = factory.find(query,new String[] {"ClinicalProblemSearchText"},new Object[] {searchText + "%"});

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(clinicalProblemsList);
}
项目:AvoinApotti    文件:ICPConfigImpl.java   
public ClinicalProblemShortVoCollection listProblems(String name)
{
    // Use StringBuilder to build the HQL query
    StringBuilder hqlQuery = new StringBuilder();
    hqlQuery.append("SELECT problem ");
    hqlQuery.append(" FROM ClinicalProblem AS problem LEFT JOIN problem.keywords AS keyw ");

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    // Create parameters string
    if (name != null && name.length() > 0)
    {
        hqlQuery.append(" WHERE (UPPER(problem.pCName) LIKE :NAME");
        hqlQuery.append(" OR UPPER(keyw.keyword) LIKE :NAME) AND problem.isActive = 1 ");

        paramNames.add("NAME");
        paramValues.add("%" + name.toupperCase() + "%");
    }

    // Set order mode
    hqlQuery.append(" ORDER BY UPPER(problem.pCName) ASC");

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(getDomainFactory().find(hqlQuery.toString(),paramNames,paramValues));
}
项目:AvoinApotti    文件:ClinicalCodingImpl.java   
public ims.clinical.vo.ClinicalProblemShortVoCollection listConfiguredProblemsShort(String pcName,Boolean activeOnly) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem p join p.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    if (activeOnly.booleanValue() == true)
    {
        hql.append(" where p.isActive = :isActive");
        names.add("isActive");
        values.add(Boolean.TRUE);   
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(Keywords.searchByKeywords(factory,pcName,hql.toString(),names,values));        
}
项目:openMAXims    文件:TriageImpl.java   
public ClinicalProblemShortVoCollection listClinicalProblems(String searchText) 
{
    if(searchText == null)
        return null;

    searchText = searchText.trim().toupperCase();

    if(searchText == null || searchText.length() == 0)
        return null;

    DomainFactory factory = getDomainFactory();

    String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (upper(cp.pCName) like :ClinicalProblemSearchText or upper(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc";
    List<?> clinicalProblemsList = factory.find(query,new Object[] {searchText + "%"});

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(clinicalProblemsList);
}
项目:openMAXims    文件:ProblemSelectDialogImpl.java   
@Override
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (problemName == null || (problemName != null && problemName.trim().length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toupperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(factory.find(hql.toString(),markers,values));
}
项目:openMAXims    文件:ICPConfigImpl.java   
public ClinicalProblemShortVoCollection listProblems(String name)
{
    // Use StringBuilder to build the HQL query
    StringBuilder hqlQuery = new StringBuilder();
    hqlQuery.append("SELECT problem ");
    hqlQuery.append(" FROM ClinicalProblem AS problem LEFT JOIN problem.keywords AS keyw ");

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    // Create parameters string
    if (name != null && name.length() > 0)
    {
        hqlQuery.append(" WHERE (UPPER(problem.pCName) LIKE :NAME");
        hqlQuery.append(" OR UPPER(keyw.keyword) LIKE :NAME) AND problem.isActive = 1 ");

        paramNames.add("NAME");
        paramValues.add("%" + name.toupperCase() + "%");
    }

    // Set order mode
    hqlQuery.append(" ORDER BY UPPER(problem.pCName) ASC");

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(getDomainFactory().find(hqlQuery.toString(),paramValues));
}
项目:openMAXims    文件:ClinicalCodingImpl.java   
public ims.clinical.vo.ClinicalProblemShortVoCollection listConfiguredProblemsShort(String pcName,values));        
}
项目:openmaxims-linux    文件:TriageImpl.java   
public ClinicalProblemShortVoCollection listClinicalProblems(String searchText) 
{
    if(searchText == null)
        return null;

    searchText = searchText.trim().toupperCase();

    if(searchText == null || searchText.length() == 0)
        return null;

    DomainFactory factory = getDomainFactory();

    String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (upper(cp.pCName) like :ClinicalProblemSearchText or upper(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc";
    List<?> clinicalProblemsList = factory.find(query,new Object[] {searchText + "%"});

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(clinicalProblemsList);
}
项目:openmaxims-linux    文件:ICPConfigImpl.java   
public ClinicalProblemShortVoCollection listProblems(String name)
{
    // Use StringBuilder to build the HQL query
    StringBuilder hqlQuery = new StringBuilder();
    hqlQuery.append("SELECT problem ");
    hqlQuery.append(" FROM ClinicalProblem AS problem LEFT JOIN problem.keywords AS keyw ");

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    // Create parameters string
    if (name != null && name.length() > 0)
    {
        hqlQuery.append(" WHERE (UPPER(problem.pCName) LIKE :NAME");
        hqlQuery.append(" OR UPPER(keyw.keyword) LIKE :NAME) AND problem.isActive = 1 ");

        paramNames.add("NAME");
        paramValues.add("%" + name.toupperCase() + "%");
    }

    // Set order mode
    hqlQuery.append(" ORDER BY UPPER(problem.pCName) ASC");

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(getDomainFactory().find(hqlQuery.toString(),paramValues));
}
项目:openmaxims-linux    文件:ClinicalCodingImpl.java   
public ims.clinical.vo.ClinicalProblemShortVoCollection listConfiguredProblemsShort(String pcName,values));        
}
项目:AvoinApotti    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ims.clinical.vo.ClinicalProblemShortVoCollection listActiveProblems(String pcName) throws ims.domain.exceptions.DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List resultsList = Keywords.searchByKeywords(factory,values);
    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList);
}
项目:AvoinApotti    文件:EDAssessmentComponentImpl.java   
public ims.clinical.vo.ClinicalProblemShortVo getClinicalProblemShortVo(ims.clinical.configuration.vo.ClinicalProblemRefVo clinicalRef)
{
    if( clinicalRef == null )
        throw new CodingRuntimeException("TrackingRefVo cannot be null");

    return ClinicalProblemShortVoAssembler.create((ClinicalProblem) getDomainFactory().getDomainObject(ClinicalProblem.class,clinicalRef.getID_ClinicalProblem()));

}
项目:AvoinApotti    文件:ClinicalCodingImpl.java   
/**
* listHotlistProblemsShort
 * @throws DomainInterfaceException 
*/
public ims.clinical.vo.ClinicalProblemShortVoCollection listHotlistProblemsShort(String pcName,ims.core.vo.lookups.Specialty lkpSpecialty) throws DomainInterfaceException
{
    if(pcName == null)
        throw new DomainRuntimeException("Invalid Search criteria. Clinical Problem name filter must be supplied.");

    if(lkpSpecialty == null)
        throw new DomainRuntimeException("Invalid Search criteria. Specialty must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select distinct probHotListItem from ProblemHotlist as probHotList left join probHotList.hotlistItem as probHotListItem left join probHotListItem.problem as prob left join prob.keywords as kw "); 

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where prob.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    hql.append(" and probHotList.specialty = :spec");
    names.add("spec");
    values.add(getDomLookup(lkpSpecialty));         

    List hits = Keywords.searchByKeywords(factory,values);      

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((ProblemHotlistItem)hits.get(i)).getProblem());
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(ret);
}
项目:AvoinApotti    文件:PatientProblemsImpl.java   
public ClinicalProblemShortVoCollection listHotlistProblemsShort(String pcName,Specialty specialty) throws DomainInterfaceException
{
    if(pcName == null)
        throw new DomainRuntimeException("Invalid Search criteria. Clinical Problem name filter must be supplied.");

    if(specialty == null)
        throw new DomainRuntimeException("Invalid Search criteria. Specialty must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer(" select distinct item from ProblemHotlistItem item join item.problem as prob join prob.keywords as kw "); 
    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where prob.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    hql.append(" and item.hotlist.specialty = :spec");
    names.add("spec");
    values.add(getDomLookup(specialty));            

    List hits = Keywords.searchByKeywords(factory,values);      

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((ProblemHotlistItem)hits.get(i)).getProblem());
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(ret);
}
项目:openMAXims    文件:EDAssessmentComponentImpl.java   
public ims.clinical.vo.ClinicalProblemShortVo getClinicalProblemShortVo(ims.clinical.configuration.vo.ClinicalProblemRefVo clinicalRef)
{
    if( clinicalRef == null )
        throw new CodingRuntimeException("TrackingRefVo cannot be null");

    return ClinicalProblemShortVoAssembler.create((ClinicalProblem) getDomainFactory().getDomainObject(ClinicalProblem.class,clinicalRef.getID_ClinicalProblem()));

}
项目:openMAXims    文件:ClinicalCodingImpl.java   
/**
* listHotlistProblemsShort
 * @throws DomainInterfaceException 
*/
public ims.clinical.vo.ClinicalProblemShortVoCollection listHotlistProblemsShort(String pcName,values);      

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((ProblemHotlistItem)hits.get(i)).getProblem());
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(ret);
}
项目:openMAXims    文件:PatientProblemsImpl.java   
public ClinicalProblemShortVoCollection listHotlistProblemsShort(String pcName,values);      

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((ProblemHotlistItem)hits.get(i)).getProblem());
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(ret);
}
项目:openMAXims    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ims.clinical.vo.ClinicalProblemShortVoCollection listActiveProblems(String pcName) throws ims.domain.exceptions.DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List resultsList = Keywords.searchByKeywords(factory,values);
    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList);
}
项目:openmaxims-linux    文件:ManchesterTreatmentProtocolAdminImpl.java   
public ims.clinical.vo.ClinicalProblemShortVoCollection listActiveProblems(String pcName) throws ims.domain.exceptions.DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List resultsList = Keywords.searchByKeywords(factory,values);
    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList);
}
项目:openmaxims-linux    文件:EDAssessmentComponentImpl.java   
public ims.clinical.vo.ClinicalProblemShortVo getClinicalProblemShortVo(ims.clinical.configuration.vo.ClinicalProblemRefVo clinicalRef)
{
    if( clinicalRef == null )
        throw new CodingRuntimeException("TrackingRefVo cannot be null");

    return ClinicalProblemShortVoAssembler.create((ClinicalProblem) getDomainFactory().getDomainObject(ClinicalProblem.class,clinicalRef.getID_ClinicalProblem()));

}
项目:openmaxims-linux    文件:ClinicalCodingImpl.java   
/**
* listHotlistProblemsShort
 * @throws DomainInterfaceException 
*/
public ims.clinical.vo.ClinicalProblemShortVoCollection listHotlistProblemsShort(String pcName,values);      

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((ProblemHotlistItem)hits.get(i)).getProblem());
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(ret);
}
项目:openmaxims-linux    文件:PatientProblemsImpl.java   
public ClinicalProblemShortVoCollection listHotlistProblemsShort(String pcName,values);      

    List ret = new ArrayList();     
    for (int i = 0; i < hits.size(); i++)
    {
        ret.add(((ProblemHotlistItem)hits.get(i)).getProblem());
    }

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(ret);
}
项目:AvoinApotti    文件:CCIAdminImpl.java   
public IGenericItem[] listIGenericItems(String filter,CciType cciType,Boolean activeOnly)
{
    List resultsList;

    try
    {
        resultsList = listDomIGenericItemInfo(filter,cciType,activeOnly.booleanValue());
    }
    catch (DomainInterfaceException e)
    {
        return null;
    }

    if (resultsList.size() > 0)
    {
        if (cciType.equals(CciType.ALLERGEN)) 
        {
            return AllergenVoAssembler.createallergenVoCollectionFromAllergen(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.MEDICATION)) 
        {
            return MedicationLiteVoAssembler.createMedicationLiteVoCollectionFromMedication(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.DIAGNOSIS)) 
        {
            return DiagLiteVoAssembler.createDiagLiteVoCollectionFromDiagnosis(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROBLEM)) 
        {
            return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROCEDURE)) 
        {
            return ProcedureLiteVoAssembler.createProcedureLiteVoCollectionFromProcedure(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.CANCERIMAGE)) 
        {
            return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.VACCINE)) 
        {
            return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(resultsList).toIGenericItemArray();
        }
        else if(cciType.equals(CciType.PRESENTING_ISSUE))
        {

            return PresentingComplaintVoAssembler.createPresentingComplaintVoCollectionFromPresentingComplaint(resultsList).toICciFullArray();

        }
        else if(cciType.equals(CciType.TREATMENT_INTERVENTION))//WDEV-17060
        {   
            return TreatmentInterventionVoAssembler.createTreatmentInterventionVoCollectionFromTreatmentIntervention(resultsList).toICciFullArray();    
        }
        else
        {
            throw new DomainRuntimeException("UnkNown CCI Type in 'listCciLite' = " + cciType.toString());
        }
    }
    return null;
}
项目:AvoinApotti    文件:TriageProtocolAssessmentImpl.java   
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    if(problemName == null)
        return null;

    problemName = problemName.trim().toupperCase();

    if(problemName == null || problemName.length() == 0)
        return null;

    DomainFactory factory = getDomainFactory();

    String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (UPPER(cp.pCName) like :ClinicalProblemSearchText or UPPER(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc";

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem((List<?>) factory.find(query,"ClinicalProblemSearchText",problemName + "%"));
}
项目:AvoinApotti    文件:ProblemSelectDialogImpl.java   
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (problemName == null || (problemName != null && problemName.trim().length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toupperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(factory.find(hql.toString(),values));
}
项目:AvoinApotti    文件:ManchesterTriageProtocolConfigImpl.java   
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toupperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(factory.find(hql.toString(),values));
}
项目:openMAXims    文件:CCIAdminImpl.java   
public IGenericItem[] listIGenericItems(String filter,activeOnly.booleanValue());
    }
    catch (DomainInterfaceException e)
    {
        return null;
    }

    if (resultsList.size() > 0)
    {
        if (cciType.equals(CciType.ALLERGEN)) 
        {
            return AllergenVoAssembler.createallergenVoCollectionFromAllergen(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.MEDICATION)) 
        {
            return MedicationLiteVoAssembler.createMedicationLiteVoCollectionFromMedication(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.DIAGNOSIS)) 
        {
            return DiagLiteVoAssembler.createDiagLiteVoCollectionFromDiagnosis(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROBLEM)) 
        {
            return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.PROCEDURE)) 
        {
            return ProcedureLiteVoAssembler.createProcedureLiteVoCollectionFromProcedure(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.CANCERIMAGE)) 
        {
            return CancerImagingEventLiteVoAssembler.createCancerImagingEventLiteVoCollectionFromCancerImagingEvent(resultsList).toIGenericItemArray();
        }
        else if (cciType.equals(CciType.VACCINE)) 
        {
            return VaccineLiteVoAssembler.createVaccineLiteVoCollectionFromVaccine(resultsList).toIGenericItemArray();
        }
        else if(cciType.equals(CciType.PRESENTING_ISSUE))
        {

            return PresentingComplaintVoAssembler.createPresentingComplaintVoCollectionFromPresentingComplaint(resultsList).toICciFullArray();

        }
        else if(cciType.equals(CciType.TREATMENT_INTERVENTION))//WDEV-17060
        {   
            return TreatmentInterventionVoAssembler.createTreatmentInterventionVoCollectionFromTreatmentIntervention(resultsList).toICciFullArray();    
        }
        else
        {
            throw new DomainRuntimeException("UnkNown CCI Type in 'listCciLite' = " + cciType.toString());
        }
    }
    return null;
}
项目:openMAXims    文件:ProblemsConfigImpl.java   
private ClinicalProblemShortVoCollection listConfiguredProblems(String filter,boolean activeOnly) throws DomainInterfaceException
{
    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(listDomConfiguredProblems(filter,activeOnly)).sort();
}
项目:openMAXims    文件:TriageProtocolAssessmentImpl.java   
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    if(problemName == null)
        return null;

    problemName = problemName.trim().toupperCase();

    if(problemName == null || problemName.length() == 0)
        return null;

    DomainFactory factory = getDomainFactory();

    String query = "select cp from ClinicalProblem as cp left join cp.keywords as k where (UPPER(cp.pCName) like :ClinicalProblemSearchText or UPPER(k.keyword) like :ClinicalProblemSearchText) and cp.isActive = 1 order by upper(cp.pCName) asc";

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem((List<?>) factory.find(query,problemName + "%"));
}
项目:openMAXims    文件:ManchesterTriageProtocolConfigImpl.java   
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toupperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(factory.find(hql.toString(),values));
}
项目:openMAXims    文件:ProblemSelectDialogImpl.java   
public ClinicalProblemShortVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (problemName == null || (problemName != null && problemName.trim().length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toupperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemShortVoAssembler.createClinicalProblemShortVoCollectionFromClinicalProblem(factory.find(hql.toString(),values));
}

ims.clinical.vo.domain.DementiaForWorklistVoAssembler的实例源码

ims.clinical.vo.domain.DementiaForWorklistVoAssembler的实例源码

项目:openMAXims    文件:InpatientListImpl.java   
public DementiaForWorklistVo getDementia(PatientRefVo patRef) 
{
    if( patRef == null )
        return null;

DomainFactory factory = getDomainFactory();

List lst = factory.find("select d1_1 from Dementia as d1_1 left join d1_1.patient as p1_1 where (p1_1.id = :patId and d1_1.isRIE is null ) order by d1_1.systeminformation.creationDateTime desc",new String[] {"patId"},new Object[] {patRef.getID_Patient()});
if( lst != null && lst.size() > 0)
{
    DementiaForWorklistVoCollection tempColl = DementiaForWorklistVoAssembler.createDementiaForWorklistVoCollectionFromDementia(lst);
    if( tempColl != null && tempColl.size() > 0)
        return tempColl.get(0);

}

return null;
}
项目:openMAXims    文件:EdischargePreViewComponentImpl.java   
public DementiaForWorklistVo getDementia(PatientRefVo patRef) 
{
    if( patRef == null )
        return null;

    DomainFactory factory = getDomainFactory();

    List lst = factory.find("select d1_1 from Dementia as d1_1 left join d1_1.patient as p1_1 where (p1_1.id = :patId and d1_1.isRIE is null ) order by d1_1.systeminformation.creationDateTime desc",new Object[] {patRef.getID_Patient()});
    if( lst != null && lst.size() > 0)
    {
        DementiaForWorklistVoCollection tempColl = DementiaForWorklistVoAssembler.createDementiaForWorklistVoCollectionFromDementia(lst);
        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);

    }

    return null;
}
项目:AvoinApotti    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaWorklistImpl.java   
public DementiaForWorklistVo getDementiaForWorklist(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaForWorklistVoAssembler.create(domainDementia);
}

ims.clinical.vo.domain.DementiaVoAssembler的实例源码

ims.clinical.vo.domain.DementiaVoAssembler的实例源码

项目:openMAXims    文件:DementiaAssessmentFormImpl.java   
public DementiaVo getDementiaForPatient(PatientRefVo patient)
{
    if (patient == null || patient.getID_Patient() == null)
        return null;

    String query = "SELECT dem FROM Dementia AS dem LEFT JOIN dem.patient AS pat LEFT JOIN dem.currentWorklistStatus AS curStatus LEFT JOIN curStatus.status AS status WHERE pat.id = :PAT_ID AND (dem.isRIE is null OR dem.isRIE = 0) AND status.id <> :EXCLUDED";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("PAT_ID");
    paramValues.add(patient.getID_Patient());

    paramNames.add("EXCLUDED");
    paramValues.add(DementiaWorklistStatus.EXCLUDED.getID());

    return DementiaVoAssembler.create((Dementia) getDomainFactory().findFirst(query,paramNames,paramValues));
}
项目:AvoinApotti    文件:DementiaAssessmentFormImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaConfirmPatientwillBePutOnDementiaPathwayDialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaConfirmPatientwillBePutOnDementiaPathwayDialogImpl.java   
public void saveDementia(ims.clinical.vo.DementiaVo dementiaToSave) throws ims.domain.exceptions.StaleObjectException
{
    if (dementiaToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = DementiaVoAssembler.extractDementia(factory,dementiaToSave);
    factory.save(domainDementia);
}
项目:AvoinApotti    文件:DementiaWorklistImpl.java   
public DementiaVo getDementia(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaAssessmentFINDComponentImpl.java   
public ims.clinical.vo.DementiaVo saveDementia(ims.clinical.vo.DementiaVo dementiaToSave,FormName formName) throws ims.domain.exceptions.StaleObjectException
{
    if (dementiaToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    //WDEV-16247
    if (dementiaToSave.getID_DementiaIsNotNull() && dementiaToSave.getStepOneFindisNotNull() && dementiaToSave.getStepOneFind().getID_DementiaFindisNotNull()
            && (YesNo.YES.equals(dementiaToSave.getStepOneFind().getHasFormalDiagnosisOfDementia()) || (YesNo.NO.equals(dementiaToSave.getStepOneFind().getHasFormalDiagnosisOfDementia())&& YesNo.NO.equals(dementiaToSave.getStepOneFind().getDeliriumConfirmed()) && YesNo.NO.equals(dementiaToSave.getStepOneFind().getAwarenessQuestion())))
            && (dementiaToSave.getStepTwoAssessIsNotNull() && dementiaToSave.getStepTwoAssess().getID_DementiaAssessAndInvestigateIsNotNull()))
    {
        String rieMessage = "THIS RECORD HAS BEEN MARKED AS RECORDED IN ERROR BY MAXims DEMENTIA - REASON : record is not relevant because of Edit to FIND record";
        Integer patientId = dementiaToSave.getPatient().getID_Patient();

        if (dementiaToSave.getStepTwoAssess().getStepTwoAssessNoteIsNotNull()) 
        {
            markAsRie(dementiaToSave.getStepTwoAssess().getStepTwoAssessNote(),formName,patientId,null,rieMessage);
        }
        markAsRie(dementiaToSave.getStepTwoAssess(),rieMessage);

        dementiaToSave.setStepTwoAssess(null);
        dementiaToSave.setAMTSscore(null);
    //  dementiaToSave.setDeliriumConfirmed(null);
    //  dementiaToSave.setDementiaConfirmed(null);
        dementiaToSave.setConfirmedPatientPutOnDementiaPathway(null);

    }

    String[] arrErrors = dementiaToSave.validate();

    if( arrErrors != null)
        throw new DomainRuntimeException("Error saving voDementia - not validated correctly");

    DomainFactory factory = getDomainFactory();
    Dementia domainDementia = DementiaVoAssembler.extractDementia(factory,dementiaToSave);
    factory.save(domainDementia);
    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaAssessmentFINDComponentImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaAssessmentAMTSComponentImpl.java   
public DementiaVo saveDementia(DementiaVo voDementia) throws DomainInterfaceException,StaleObjectException
{
    if(voDementia == null)
        throw new CodingRuntimeException("DementiaVo is null");

    if(!voDementia.isValidated())
        throw new CodingRuntimeException("DementiaVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    Dementia doD = DementiaVoAssembler.extractDementia(factory,voDementia);

    factory.save(doD);
    return DementiaVoAssembler.create(doD);
}
项目:AvoinApotti    文件:DementiaCorrectCompletionDateStep1DialogImpl.java   
public DementiaVo getDementia(DementiaRefVo dementiaRef) 
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaExcludefromDementiaScreeningDialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:AvoinApotti    文件:DementiaExcludefromDementiaScreeningDialogImpl.java   
public void saveDementia(ims.clinical.vo.DementiaVo dementiaToSave) throws ims.domain.exceptions.StaleObjectException
{
    if (dementiaToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaAssessAndInvestigateVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = DementiaVoAssembler.extractDementia(factory,dementiaToSave);
    factory.save(domainDementia);   
}
项目:AvoinApotti    文件:DementiaCorrectCompletionDateStep2DialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaConfirmPatientwillBePutOnDementiaPathwayDialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaConfirmPatientwillBePutOnDementiaPathwayDialogImpl.java   
public void saveDementia(ims.clinical.vo.DementiaVo dementiaToSave) throws ims.domain.exceptions.StaleObjectException
{
    if (dementiaToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = DementiaVoAssembler.extractDementia(factory,dementiaToSave);
    factory.save(domainDementia);
}
项目:openMAXims    文件:DementiaWorklistImpl.java   
public DementiaVo getDementia(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaAssessmentFINDComponentImpl.java   
public ims.clinical.vo.DementiaVo saveDementia(ims.clinical.vo.DementiaVo dementiaToSave,dementiaToSave);
    factory.save(domainDementia);
    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaAssessmentFINDComponentImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaAssessmentAMTSComponentImpl.java   
public DementiaVo saveDementia(DementiaVo voDementia) throws DomainInterfaceException,voDementia);

    factory.save(doD);
    return DementiaVoAssembler.create(doD);
}
项目:openMAXims    文件:DementiaCorrectCompletionDateStep1DialogImpl.java   
public DementiaVo getDementia(DementiaRefVo dementiaRef) 
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaExcludefromDementiaScreeningDialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaExcludefromDementiaScreeningDialogImpl.java   
public void saveDementia(ims.clinical.vo.DementiaVo dementiaToSave) throws ims.domain.exceptions.StaleObjectException
{
    if (dementiaToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaAssessAndInvestigateVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = DementiaVoAssembler.extractDementia(factory,dementiaToSave);
    factory.save(domainDementia);   
}
项目:openMAXims    文件:DementiaCorrectCompletionDateStep2DialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openMAXims    文件:DementiaAssessmentFormImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaAssessmentFormImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaConfirmPatientwillBePutOnDementiaPathwayDialogImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaConfirmPatientwillBePutOnDementiaPathwayDialogImpl.java   
public void saveDementia(ims.clinical.vo.DementiaVo dementiaToSave) throws ims.domain.exceptions.StaleObjectException
{
    if (dementiaToSave == null )
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = DementiaVoAssembler.extractDementia(factory,dementiaToSave);
    factory.save(domainDementia);
}
项目:openmaxims-linux    文件:DementiaWorklistImpl.java   
public DementiaVo getDementia(DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaAssessmentFINDComponentImpl.java   
public ims.clinical.vo.DementiaVo saveDementia(ims.clinical.vo.DementiaVo dementiaToSave,dementiaToSave);
    factory.save(domainDementia);
    return DementiaVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaAssessmentFINDComponentImpl.java   
public ims.clinical.vo.DementiaVo getDementia(ims.core.clinical.vo.DementiaRefVo dementiaRef)
{
    if (dementiaRef == null || dementiaRef.getID_Dementia()== null)
    {
        throw new CodingRuntimeException("Cannot get DementiaVo on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    Dementia domainDementia = (Dementia) factory.getDomainObject(Dementia.class,dementiaRef.getID_Dementia());

    return DementiaVoAssembler.create(domainDementia);
}
项目:openmaxims-linux    文件:DementiaAssessmentAMTSComponentImpl.java   
public DementiaVo saveDementia(DementiaVo voDementia) throws DomainInterfaceException,voDementia);

    factory.save(doD);
    return DementiaVoAssembler.create(doD);
}

ims.clinical.vo.domain.DischargeSupplementaryNotesVoAssembler的实例源码

ims.clinical.vo.domain.DischargeSupplementaryNotesVoAssembler的实例源码

项目:AvoinApotti    文件:EdischargeSTHKImpl.java   
public dischargeSupplementaryNotesVo getSupplementary(CareContextRefVo voCareContextRefVo) 
{
    if(voCareContextRefVo == null)
        throw new CodingRuntimeException("voCareContextRefVo Filter not provided for list call. ");

    if(voCareContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from dischargeSupplementaryNotes ds where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ds.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(voCareContextRefVo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(),markers,values);
        if(list != null && list.size() > 0)
        { 
            dischargeSupplementaryNotesVoCollection voColl = dischargeSupplementaryNotesVoAssembler.createdischargeSupplementaryNotesVoCollectionFromdischargeSupplementaryNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:AvoinApotti    文件:EdischargeImpl.java   
public dischargeSupplementaryNotesVo getSupplementary(CareContextRefVo voCareContextRefVo) 
{
    if(voCareContextRefVo == null)
        throw new CodingRuntimeException("voCareContextRefVo Filter not provided for list call. ");

    if(voCareContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from dischargeSupplementaryNotes ds where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ds.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(voCareContextRefVo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(),values);
        if(list != null && list.size() > 0)
        { 
            dischargeSupplementaryNotesVoCollection voColl = dischargeSupplementaryNotesVoAssembler.createdischargeSupplementaryNotesVoCollectionFromdischargeSupplementaryNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:AvoinApotti    文件:EdischargeImpl.java   
public dischargeSupplementaryNotesVo saveSupplementaryAndDD(dischargeSupplementaryNotesVo vodischSupp,dischargeDetailsVo voDD) throws DomainInterfaceException,StaleObjectException 
{
    if(vodischSupp == null)
        throw new CodingRuntimeException("dischargeSupplementaryNotesVo is null");

    if(!vodischSupp.isValidated())
        throw new CodingRuntimeException("dischargeSupplementaryNotesVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    dischargeSupplementaryNotes doDSN = dischargeSupplementaryNotesVoAssembler.extractdischargeSupplementaryNotes(factory,vodischSupp);

    //WDEV-8813
    // Workaround for the case when 2 users save in the same time a new dischargeSupplementaryNotesVO
    //In this case the domain.save call doesn't throw a StaleObjectExeption,even if it is the case
    if (!vodischSupp.getID_dischargeSupplementaryNotesIsNotNull())
    {
        dischargeSupplementaryNotesVo vodischargeSupp = getSupplementary(vodischSupp.getCareContext());
        if (vodischargeSupp!=null)
        {
            throw new StaleObjectException(doDSN,"A dischargeSupplementaryNotesVo was already saved by another user");
        }
    }


    factory.save(doDSN);


    if (voDD != null)
    {
        dischargeDetails doDD = dischargeDetailsVoAssembler.extractdischargeDetails(factory,voDD);
        factory.save(doDD);
    }
    return dischargeSupplementaryNotesVoAssembler.create(doDSN);
}
项目:openMAXims    文件:EdischargeSTHKImpl.java   
public dischargeSupplementaryNotesVo getSupplementary(CareContextRefVo voCareContextRefVo) 
{
    if(voCareContextRefVo == null)
        throw new CodingRuntimeException("voCareContextRefVo Filter not provided for list call. ");

    if(voCareContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from dischargeSupplementaryNotes ds where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ds.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(voCareContextRefVo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(),values);
        if(list != null && list.size() > 0)
        { 
            dischargeSupplementaryNotesVoCollection voColl = dischargeSupplementaryNotesVoAssembler.createdischargeSupplementaryNotesVoCollectionFromdischargeSupplementaryNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXims    文件:EdischargeImpl.java   
public dischargeSupplementaryNotesVo getSupplementary(CareContextRefVo voCareContextRefVo) 
{
    if(voCareContextRefVo == null)
        throw new CodingRuntimeException("voCareContextRefVo Filter not provided for list call. ");

    if(voCareContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from dischargeSupplementaryNotes ds where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ds.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(voCareContextRefVo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(),values);
        if(list != null && list.size() > 0)
        { 
            dischargeSupplementaryNotesVoCollection voColl = dischargeSupplementaryNotesVoAssembler.createdischargeSupplementaryNotesVoCollectionFromdischargeSupplementaryNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXims    文件:EdischargeImpl.java   
public dischargeSupplementaryNotesVo saveSupplementaryAndDD(dischargeSupplementaryNotesVo vodischSupp,voDD);
        factory.save(doDD);
    }
    return dischargeSupplementaryNotesVoAssembler.create(doDSN);
}
项目:openmaxims-linux    文件:EdischargeSTHKImpl.java   
public dischargeSupplementaryNotesVo getSupplementary(CareContextRefVo voCareContextRefVo) 
{
    if(voCareContextRefVo == null)
        throw new CodingRuntimeException("voCareContextRefVo Filter not provided for list call. ");

    if(voCareContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from dischargeSupplementaryNotes ds where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ds.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(voCareContextRefVo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(),values);
        if(list != null && list.size() > 0)
        { 
            dischargeSupplementaryNotesVoCollection voColl = dischargeSupplementaryNotesVoAssembler.createdischargeSupplementaryNotesVoCollectionFromdischargeSupplementaryNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:EdischargeImpl.java   
public dischargeSupplementaryNotesVo getSupplementary(CareContextRefVo voCareContextRefVo) 
{
    if(voCareContextRefVo == null)
        throw new CodingRuntimeException("voCareContextRefVo Filter not provided for list call. ");

    if(voCareContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from dischargeSupplementaryNotes ds where "); 
        String andStr = " ";

        ArrayList<String> markers = new ArrayList<String>();
        ArrayList<Serializable> values = new ArrayList<Serializable>();

        hql.append(andStr + " ds.careContext.id = :careContextId");
            markers.add("careContextId");
        values.add(voCareContextRefVo.getID_CareContext());
        andStr = " and ";   

        List list = factory.find(hql.toString(),values);
        if(list != null && list.size() > 0)
        { 
            dischargeSupplementaryNotesVoCollection voColl = dischargeSupplementaryNotesVoAssembler.createdischargeSupplementaryNotesVoCollectionFromdischargeSupplementaryNotes(list);
            if(voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:EdischargeImpl.java   
public dischargeSupplementaryNotesVo saveSupplementaryAndDD(dischargeSupplementaryNotesVo vodischSupp,voDD);
        factory.save(doDD);
    }
    return dischargeSupplementaryNotesVoAssembler.create(doDSN);
}
项目:AvoinApotti    文件:EdischargeSTHKImpl.java   
public dischargeSupplementaryNotesVo saveSupplementaryAndDDAndSummary(dischargeSupplementaryNotesVo vodischSupp,dischargeDetailsVo voDD,EdischargeSTHKSummaryVo voSumm) throws DomainInterfaceException,StaleObjectException
{
    if(vodischSupp == null)
        throw new CodingRuntimeException("dischargeSupplementaryNotesVo is null");

    if(!vodischSupp.isValidated())
        throw new CodingRuntimeException("dischargeSupplementaryNotesVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    dischargeSupplementaryNotes doDSN = dischargeSupplementaryNotesVoAssembler.extractdischargeSupplementaryNotes(factory,voDD);
        factory.save(doDD);
    }

    if (voSumm != null)
    {
        Summary doSumm = EdischargeSTHKSummaryVoAssembler.extractSummary(factory,voSumm);
        factory.save(doSumm);
    }

    return dischargeSupplementaryNotesVoAssembler.create(doDSN);
}
项目:openMAXims    文件:EdischargeSTHKImpl.java   
public dischargeSupplementaryNotesVo saveSupplementaryAndDDAndSummary(dischargeSupplementaryNotesVo vodischSupp,voSumm);
        factory.save(doSumm);
    }

    return dischargeSupplementaryNotesVoAssembler.create(doDSN);
}
项目:openmaxims-linux    文件:EdischargeSTHKImpl.java   
public dischargeSupplementaryNotesVo saveSupplementaryAndDDAndSummary(dischargeSupplementaryNotesVo vodischSupp,voSumm);
        factory.save(doSumm);
    }

    return dischargeSupplementaryNotesVoAssembler.create(doDSN);
}

今天关于ims.clinical.vo.domain.PatientSummaryNoteByHcpShortVoAssembler的实例源码@transactional源码解析的讲解已经结束,谢谢您的阅读,如果想了解更多关于ims.clinical.vo.domain.ClinicalProblemShortVoAssembler的实例源码、ims.clinical.vo.domain.DementiaForWorklistVoAssembler的实例源码、ims.clinical.vo.domain.DementiaVoAssembler的实例源码、ims.clinical.vo.domain.DischargeSupplementaryNotesVoAssembler的实例源码的相关知识,请在本站搜索。

本文标签: