Java 类ims.clinical.vo.KeyDatesVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private KeyDatesVo getOrCreateNextGoalPlanDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }


    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.NEXTGOALPLANDATE);

    return date;
}
项目:AvoinApotti    文件:Logic.java   
private KeyDatesVo getOrCreateProposedDischargedDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }

    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.PROPOSEDDISCHARGEDATE);

    return date;
}
项目:openMAXIMS    文件:Logic.java   
private KeyDatesVo getOrCreateNextGoalPlanDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }


    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.NEXTGOALPLANDATE);

    return date;
}
项目:openMAXIMS    文件:Logic.java   
private KeyDatesVo getOrCreateProposedDischargedDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }

    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.PROPOSEDDISCHARGEDATE);

    return date;
}
项目:openMAXIMS    文件:Logic.java   
private KeyDatesVo getOrCreateNextGoalPlanDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }


    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.NEXTGOALPLANDATE);

    return date;
}
项目:openMAXIMS    文件:Logic.java   
private KeyDatesVo getOrCreateProposedDischargedDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }

    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.PROPOSEDDISCHARGEDATE);

    return date;
}
项目:openmaxims-linux    文件:Logic.java   
private KeyDatesVo getOrCreateNextGoalPlanDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }


    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.NEXTGOALPLANDATE);

    return date;
}
项目:openmaxims-linux    文件:Logic.java   
private KeyDatesVo getOrCreateProposedDischargedDate(KeyDatesVoCollection keyDates)
{
    if (keyDates != null)
    {
        for (KeyDatesVo keyDate : keyDates)
        {
            if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
                return keyDate;
        }
    }

    KeyDatesVo date = new KeyDatesVo();
    date.setDateType(KeyDateType.PROPOSEDDISCHARGEDATE);

    return date;
}
项目:AvoinApotti    文件:Logic.java   
/**
 * Function used to set values to labels in the header of the form
 */
private void populateHeaderControls(MDTListAndDatesVo mdtDetails, AdmisSummary admissionSummary)
{
    // Clear header details
    clearHeaderControls();

    // Check parameter
    if (mdtDetails == null)
        return;

    // Fill in 'MDT List' name
    form.lblMDTList().setValue(mdtDetails.getListPatientisOn().getText());

    KeyDatesVoCollection keyDates = mdtDetails.getKeyDates();

    // Fill in 'Next Goal Plan' date and 'Proposed Discharge Date' 
    for (KeyDatesVo keyDate : keyDates)
    {
        if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            form.lblNextGoalPlanDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));

        if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            form.lblProposedDischageDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));
    }


    form.lblClassification().setValue(getClassification(admissionSummary));

    form.lblPrimaryPathology().setValue(getPrimaryPathology(admissionSummary));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to set values to labels in the header of the form
 */
private void populateHeaderControls(MDTListAndDatesVo mdtDetails, AdmisSummary admissionSummary)
{
    // Clear header details
    clearHeaderControls();

    // Check parameter
    if (mdtDetails == null)
        return;

    // Fill in 'MDT List' name
    form.lblMDTList().setValue(mdtDetails.getListPatientisOn().getText());

    KeyDatesVoCollection keyDates = mdtDetails.getKeyDates();

    // Fill in 'Next Goal Plan' date and 'Proposed Discharge Date' 
    for (KeyDatesVo keyDate : keyDates)
    {
        if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            form.lblNextGoalPlanDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));

        if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            form.lblProposedDischageDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));
    }


    form.lblClassification().setValue(getClassification(admissionSummary));

    form.lblPrimaryPathology().setValue(getPrimaryPathology(admissionSummary));
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to set values to labels in the header of the form
 */
private void populateHeaderControls(MDTListAndDatesVo mdtDetails, AdmisSummary admissionSummary)
{
    // Clear header details
    clearHeaderControls();

    // Check parameter
    if (mdtDetails == null)
        return;

    // Fill in 'MDT List' name
    form.lblMDTList().setValue(mdtDetails.getListPatientisOn().getText());

    KeyDatesVoCollection keyDates = mdtDetails.getKeyDates();

    // Fill in 'Next Goal Plan' date and 'Proposed Discharge Date' 
    for (KeyDatesVo keyDate : keyDates)
    {
        if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            form.lblNextGoalPlanDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));

        if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            form.lblProposedDischageDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));
    }


    form.lblClassification().setValue(getClassification(admissionSummary));

    form.lblPrimaryPathology().setValue(getPrimaryPathology(admissionSummary));
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * Function used to set values to labels in the header of the form
 */
private void populateHeaderControls(MDTListAndDatesVo mdtDetails, AdmisSummary admissionSummary)
{
    // Clear header details
    clearHeaderControls();

    // Check parameter
    if (mdtDetails == null)
        return;

    // Fill in 'MDT List' name
    form.lblMDTList().setValue(mdtDetails.getListPatientisOn().getText());

    KeyDatesVoCollection keyDates = mdtDetails.getKeyDates();

    // Fill in 'Next Goal Plan' date and 'Proposed Discharge Date' 
    for (KeyDatesVo keyDate : keyDates)
    {
        if (KeyDateType.NEXTGOALPLANDATE.equals(keyDate.getDateType()))
            form.lblNextGoalPlanDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));

        if (KeyDateType.PROPOSEDDISCHARGEDATE.equals(keyDate.getDateType()))
            form.lblProposedDischageDate().setValue(keyDate.getDate().toString(DateFormat.STANDARD));
    }


    form.lblClassification().setValue(getClassification(admissionSummary));

    form.lblPrimaryPathology().setValue(getPrimaryPathology(admissionSummary));
}
项目:AvoinApotti    文件:MDTNotesImpl.java   
public MDTMeetingVo save(MDTMeetingVo mdtMeeting, MDTListAndDatesVo mdtList) throws StaleObjectException
{
    if (!mdtMeeting.isValidated())
        throw new DomainRuntimeException("MDT Meeting has not beed validated.");

    if (!mdtList.isValidated())
        throw new DomainRuntimeException("MDT List has not been validate.");


    DomainFactory factory = getDomainFactory();

    MDTMeeting domMDTMeeting = MDTMeetingVoAssembler.extractMDTMeeting(factory, mdtMeeting);

    // Check mdtMeeting to be the latest (if it was already saved)
    if (mdtMeeting.getID_MDTMeeting() != null)
    {
        MDTMeetingVo latest = getLatest(mdtMeeting);

        if (latest != null)
        {
            mdtList.setListPatientisOn(latest.getListPatientisOn());

            mdtList.setKeyDates(new KeyDatesVoCollection());

            for (KeyDatesVo keyDate : latest.getKeyDates())
            {
                    KeyDatesVo date = new KeyDatesVo();
                    date.setDate(keyDate.getDate());
                    date.setDateType(keyDate.getDateType());

                    mdtList.getKeyDates().add(date);
            }
        }
    }

    MDTListandDates domMDTList = MDTListAndDatesVoAssembler.extractMDTListandDates(factory, mdtList);

    factory.save(domMDTMeeting);
    factory.save(domMDTList);

    return MDTMeetingVoAssembler.create(domMDTMeeting);
}
项目:openMAXIMS    文件:MDTNotesImpl.java   
public MDTMeetingVo save(MDTMeetingVo mdtMeeting, MDTListAndDatesVo mdtList) throws StaleObjectException
{
    if (!mdtMeeting.isValidated())
        throw new DomainRuntimeException("MDT Meeting has not beed validated.");

    if (!mdtList.isValidated())
        throw new DomainRuntimeException("MDT List has not been validate.");


    DomainFactory factory = getDomainFactory();

    MDTMeeting domMDTMeeting = MDTMeetingVoAssembler.extractMDTMeeting(factory, mdtMeeting);

    // Check mdtMeeting to be the latest (if it was already saved)
    if (mdtMeeting.getID_MDTMeeting() != null)
    {
        MDTMeetingVo latest = getLatest(mdtMeeting);

        if (latest != null)
        {
            mdtList.setListPatientisOn(latest.getListPatientisOn());

            mdtList.setKeyDates(new KeyDatesVoCollection());

            for (KeyDatesVo keyDate : latest.getKeyDates())
            {
                    KeyDatesVo date = new KeyDatesVo();
                    date.setDate(keyDate.getDate());
                    date.setDateType(keyDate.getDateType());

                    mdtList.getKeyDates().add(date);
            }
        }
    }

    MDTListandDates domMDTList = MDTListAndDatesVoAssembler.extractMDTListandDates(factory, mdtList);

    factory.save(domMDTMeeting);
    factory.save(domMDTList);

    return MDTMeetingVoAssembler.create(domMDTMeeting);
}
项目:openMAXIMS    文件:MDTNotesImpl.java   
public MDTMeetingVo save(MDTMeetingVo mdtMeeting, MDTListAndDatesVo mdtList) throws StaleObjectException
{
    if (!mdtMeeting.isValidated())
        throw new DomainRuntimeException("MDT Meeting has not beed validated.");

    if (!mdtList.isValidated())
        throw new DomainRuntimeException("MDT List has not been validate.");


    DomainFactory factory = getDomainFactory();

    MDTMeeting domMDTMeeting = MDTMeetingVoAssembler.extractMDTMeeting(factory, mdtMeeting);

    // Check mdtMeeting to be the latest (if it was already saved)
    if (mdtMeeting.getID_MDTMeeting() != null)
    {
        MDTMeetingVo latest = getLatest(mdtMeeting);

        if (latest != null)
        {
            mdtList.setListPatientisOn(latest.getListPatientisOn());

            mdtList.setKeyDates(new KeyDatesVoCollection());

            for (KeyDatesVo keyDate : latest.getKeyDates())
            {
                    KeyDatesVo date = new KeyDatesVo();
                    date.setDate(keyDate.getDate());
                    date.setDateType(keyDate.getDateType());

                    mdtList.getKeyDates().add(date);
            }
        }
    }

    MDTListandDates domMDTList = MDTListAndDatesVoAssembler.extractMDTListandDates(factory, mdtList);

    factory.save(domMDTMeeting);
    factory.save(domMDTList);

    return MDTMeetingVoAssembler.create(domMDTMeeting);
}
项目:openmaxims-linux    文件:MDTNotesImpl.java   
public MDTMeetingVo save(MDTMeetingVo mdtMeeting, MDTListAndDatesVo mdtList) throws StaleObjectException
{
    if (!mdtMeeting.isValidated())
        throw new DomainRuntimeException("MDT Meeting has not beed validated.");

    if (!mdtList.isValidated())
        throw new DomainRuntimeException("MDT List has not been validate.");


    DomainFactory factory = getDomainFactory();

    MDTMeeting domMDTMeeting = MDTMeetingVoAssembler.extractMDTMeeting(factory, mdtMeeting);

    // Check mdtMeeting to be the latest (if it was already saved)
    if (mdtMeeting.getID_MDTMeeting() != null)
    {
        MDTMeetingVo latest = getLatest(mdtMeeting);

        if (latest != null)
        {
            mdtList.setListPatientisOn(latest.getListPatientisOn());

            mdtList.setKeyDates(new KeyDatesVoCollection());

            for (KeyDatesVo keyDate : latest.getKeyDates())
            {
                    KeyDatesVo date = new KeyDatesVo();
                    date.setDate(keyDate.getDate());
                    date.setDateType(keyDate.getDateType());

                    mdtList.getKeyDates().add(date);
            }
        }
    }

    MDTListandDates domMDTList = MDTListAndDatesVoAssembler.extractMDTListandDates(factory, mdtList);

    factory.save(domMDTMeeting);
    factory.save(domMDTList);

    return MDTMeetingVoAssembler.create(domMDTMeeting);
}