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

项目:AvoinApotti    文件:Logic.java   
private void populateAreaOfNeedGridFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    AreaOfNeedCollection lkpCollection = voSoapNote.getAreaofNeed();
    for (int i = 0; lkpCollection != null && i < lkpCollection.size(); i++)
    {
        GenForm.gridNeedsRow row = form.gridNeeds().getRowByValue(lkpCollection.get(i));
        if(row != null)
        {
            row.setColSelect(true);
            //TODO - clarify with analysts
            //row.setColNotes(????)
        }
    }

    voSoapNote.setAreaofNeed(lkpCollection);
}
项目:AvoinApotti    文件:ContactListImpl.java   
public SoapNoteVo saveSoapNoteVo(SoapNoteVo soapNoteVo) throws StaleObjectException
{
    if(soapNoteVo == null)
        throw new RuntimeException("Cannot save null value for SoapNoteVo");

    if (!soapNoteVo.isValidated())
        throw new CodingRuntimeException("SoapNoteVo value object has not been validated");

    //if a new SoapNoteVo record must be save check if already exist a SoapNoteVo record for selected clinical contact
    if(soapNoteVo != null && !soapNoteVo.getID_SoapNoteIsNotNull())
    {           
        if(soapNoteVo.getClinicalContactIsNotNull())
        {
            SoapNoteVo tempVo = getSoapNoteVo(soapNoteVo.getClinicalContact()); 

            if(tempVo != null)
                throw new DomainRuntimeException("A Therapy Contact record already exists for this clinical contact");
        }
    }

    DomainFactory factory = getDomainFactory();
    SoapNote doSoapNote = SoapNoteVoAssembler.extractSoapNote(factory, soapNoteVo);
    factory.save(doSoapNote);

    return SoapNoteVoAssembler.create(doSoapNote);
}
项目:openMAXIMS    文件:Logic.java   
private void populateAreaOfNeedGridFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    AreaOfNeedCollection lkpCollection = voSoapNote.getAreaofNeed();
    for (int i = 0; lkpCollection != null && i < lkpCollection.size(); i++)
    {
        GenForm.gridNeedsRow row = form.gridNeeds().getRowByValue(lkpCollection.get(i));
        if(row != null)
        {
            row.setColSelect(true);
            //TODO - clarify with analysts
            //row.setColNotes(????)
        }
    }

    voSoapNote.setAreaofNeed(lkpCollection);
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVo saveSoapNoteVo(SoapNoteVo soapNoteVo) throws StaleObjectException
{
    if(soapNoteVo == null)
        throw new RuntimeException("Cannot save null value for SoapNoteVo");

    if (!soapNoteVo.isValidated())
        throw new CodingRuntimeException("SoapNoteVo value object has not been validated");

    //if a new SoapNoteVo record must be save check if already exist a SoapNoteVo record for selected clinical contact
    if(soapNoteVo != null && !soapNoteVo.getID_SoapNoteIsNotNull())
    {           
        if(soapNoteVo.getClinicalContactIsNotNull())
        {
            SoapNoteVo tempVo = getSoapNoteVo(soapNoteVo.getClinicalContact()); 

            if(tempVo != null)
                throw new DomainRuntimeException("A Therapy Contact record already exists for this clinical contact");
        }
    }

    DomainFactory factory = getDomainFactory();
    SoapNote doSoapNote = SoapNoteVoAssembler.extractSoapNote(factory, soapNoteVo);
    factory.save(doSoapNote);

    return SoapNoteVoAssembler.create(doSoapNote);
}
项目:openMAXIMS    文件:Logic.java   
private void populateAreaOfNeedGridFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    AreaOfNeedCollection lkpCollection = voSoapNote.getAreaofNeed();
    for (int i = 0; lkpCollection != null && i < lkpCollection.size(); i++)
    {
        GenForm.gridNeedsRow row = form.gridNeeds().getRowByValue(lkpCollection.get(i));
        if(row != null)
        {
            row.setColSelect(true);
            //TODO - clarify with analysts
            //row.setColNotes(????)
        }
    }

    voSoapNote.setAreaofNeed(lkpCollection);
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVo saveSoapNoteVo(SoapNoteVo soapNoteVo) throws StaleObjectException
{
    if(soapNoteVo == null)
        throw new RuntimeException("Cannot save null value for SoapNoteVo");

    if (!soapNoteVo.isValidated())
        throw new CodingRuntimeException("SoapNoteVo value object has not been validated");

    //if a new SoapNoteVo record must be save check if already exist a SoapNoteVo record for selected clinical contact
    if(soapNoteVo != null && !soapNoteVo.getID_SoapNoteIsNotNull())
    {           
        if(soapNoteVo.getClinicalContactIsNotNull())
        {
            SoapNoteVo tempVo = getSoapNoteVo(soapNoteVo.getClinicalContact()); 

            if(tempVo != null)
                throw new DomainRuntimeException("A Therapy Contact record already exists for this clinical contact");
        }
    }

    DomainFactory factory = getDomainFactory();
    SoapNote doSoapNote = SoapNoteVoAssembler.extractSoapNote(factory, soapNoteVo);
    factory.save(doSoapNote);

    return SoapNoteVoAssembler.create(doSoapNote);
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAreaOfNeedGridFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    AreaOfNeedCollection lkpCollection = voSoapNote.getAreaofNeed();
    for (int i = 0; lkpCollection != null && i < lkpCollection.size(); i++)
    {
        GenForm.gridNeedsRow row = form.gridNeeds().getRowByValue(lkpCollection.get(i));
        if(row != null)
        {
            row.setColSelect(true);
            //TODO - clarify with analysts
            //row.setColNotes(????)
        }
    }

    voSoapNote.setAreaofNeed(lkpCollection);
}
项目:openmaxims-linux    文件:ContactListImpl.java   
public SoapNoteVo saveSoapNoteVo(SoapNoteVo soapNoteVo) throws StaleObjectException
{
    if(soapNoteVo == null)
        throw new RuntimeException("Cannot save null value for SoapNoteVo");

    if (!soapNoteVo.isValidated())
        throw new CodingRuntimeException("SoapNoteVo value object has not been validated");

    //if a new SoapNoteVo record must be save check if already exist a SoapNoteVo record for selected clinical contact
    if(soapNoteVo != null && !soapNoteVo.getID_SoapNoteIsNotNull())
    {           
        if(soapNoteVo.getClinicalContactIsNotNull())
        {
            SoapNoteVo tempVo = getSoapNoteVo(soapNoteVo.getClinicalContact()); 

            if(tempVo != null)
                throw new DomainRuntimeException("A Therapy Contact record already exists for this clinical contact");
        }
    }

    DomainFactory factory = getDomainFactory();
    SoapNote doSoapNote = SoapNoteVoAssembler.extractSoapNote(factory, soapNoteVo);
    factory.save(doSoapNote);

    return SoapNoteVoAssembler.create(doSoapNote);
}
项目:AvoinApotti    文件:Logic.java   
private void populateAuthoringControlsFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    if (voSoapNote.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voSoapNote.getAuthoringInformation());
}
项目:AvoinApotti    文件:Logic.java   
private void populateAreaOfNeedDataFromScreen(SoapNoteVo voSoapNote)
{
    AreaOfNeedCollection collAreaOfNeed = new AreaOfNeedCollection();
    for (int i = 0; i < form.gridNeeds().getRows().size(); i++)
    {
        if (form.gridNeeds().getRows().get(i).getColSelect())
            collAreaOfNeed.add(form.gridNeeds().getRows().get(i).getValue());
    }
    voSoapNote.setAreaofNeed(collAreaOfNeed);
}
项目:AvoinApotti    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateAuthoringControlsFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    if (voSoapNote.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voSoapNote.getAuthoringInformation());
}
项目:openMAXIMS    文件:Logic.java   
private void populateAreaOfNeedDataFromScreen(SoapNoteVo voSoapNote)
{
    AreaOfNeedCollection collAreaOfNeed = new AreaOfNeedCollection();
    for (int i = 0; i < form.gridNeeds().getRows().size(); i++)
    {
        if (form.gridNeeds().getRows().get(i).getColSelect())
            collAreaOfNeed.add(form.gridNeeds().getRows().get(i).getValue());
    }
    voSoapNote.setAreaofNeed(collAreaOfNeed);
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateAuthoringControlsFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    if (voSoapNote.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voSoapNote.getAuthoringInformation());
}
项目:openMAXIMS    文件:Logic.java   
private void populateAreaOfNeedDataFromScreen(SoapNoteVo voSoapNote)
{
    AreaOfNeedCollection collAreaOfNeed = new AreaOfNeedCollection();
    for (int i = 0; i < form.gridNeeds().getRows().size(); i++)
    {
        if (form.gridNeeds().getRows().get(i).getColSelect())
            collAreaOfNeed.add(form.gridNeeds().getRows().get(i).getValue());
    }
    voSoapNote.setAreaofNeed(collAreaOfNeed);
}
项目:openMAXIMS    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAuthoringControlsFromData(SoapNoteVo voSoapNote)
{
    if(voSoapNote == null)
        return;

    if (voSoapNote.getAuthoringInformationIsNotNull())
        form.customControlAuthoringInfo().setValue(voSoapNote.getAuthoringInformation());
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAreaOfNeedDataFromScreen(SoapNoteVo voSoapNote)
{
    AreaOfNeedCollection collAreaOfNeed = new AreaOfNeedCollection();
    for (int i = 0; i < form.gridNeeds().getRows().size(); i++)
    {
        if (form.gridNeeds().getRows().get(i).getColSelect())
            collAreaOfNeed.add(form.gridNeeds().getRows().get(i).getValue());
    }
    voSoapNote.setAreaofNeed(collAreaOfNeed);
}
项目:openmaxims-linux    文件:ContactListImpl.java   
public SoapNoteVo getSoapNoteVo(ClinicalContactShortVo clinicalContactShortVo)
{
    if (clinicalContactShortVo == null)
        throw new CodingRuntimeException("Cannot get SoapNoteVo for null Clinical Contact");

    DomainFactory factory = getDomainFactory();
    String hql = " from SoapNote sn ";
    StringBuffer condStr = new StringBuffer();
    String andStr = " ";

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    if (clinicalContactShortVo != null)
    {
        condStr.append(andStr + " sn.clinicalContact.id = :id_ClinicalContact");
        markers.add("id_ClinicalContact");
        values.add(clinicalContactShortVo.getID_ClinicalContact());
        andStr = " and ";
    }

    if (andStr.equals(" and "))
        hql += " where ";

    hql += condStr.toString();
    hql +=  " order by sn.systemInformation.creationDateTime desc";
    SoapNoteVoCollection collSoapNoteVo = SoapNoteVoAssembler.createSoapNoteVoCollectionFromSoapNote(factory.find(hql, markers, values));
    if (collSoapNoteVo != null)
    {
        if (collSoapNoteVo.size() >= 1)
            return collSoapNoteVo.get(0);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(SoapNoteVo voSoapNote)
{
    super.populateScreenFromData(voSoapNote);
    populateAuthoringControlsFromData(voSoapNote);
    populateAreaOfNeedGridFromData(voSoapNote);
}
项目:AvoinApotti    文件:Logic.java   
private boolean isAuthDateTimeDataSaved()
{
    SoapNoteVo voSoapNote = form.getLocalContext().getSoapNoteVo();
    return voSoapNote != null && voSoapNote.getAuthoringInformationIsNotNull() && voSoapNote.getAuthoringInformation().getAuthoringDateTimeIsNotNull();
}
项目:AvoinApotti    文件:Logic.java   
private boolean populateDataFromScreen(OutpatientNotesOutcomeVo voOutpatientNotesOutcome)
{
    if(form.customControlAuthoringInfo().getValue() == null || form.customControlAuthoringInfo().getValue().getAuthoringHcp() == null || form.customControlAuthoringInfo().getValue().getAuthoringDateTime() == null) //wdev-12315
    {
        engine.showMessage("The Authoring HCP and Authoring Date/Time are mandatory !");    //wdev-12315
        return false;
    }

    if(voOutpatientNotesOutcome.getClinicalNote() == null)
        voOutpatientNotesOutcome.setClinicalNote(new SoapNoteVo());

    if(voOutpatientNotesOutcome.getClinicalNote().getClinicalNote() == null)
        voOutpatientNotesOutcome.getClinicalNote().setClinicalNote(new ClinicalNotesVo());

    AuthoringInformationVo voAuthor = new AuthoringInformationVo();
    voAuthor.setAuthoringDateTime(form.customControlAuthoringInfo().getValue().getAuthoringDateTime());
    voAuthor.setAuthoringHcp(form.customControlAuthoringInfo().getValue().getAuthoringHcp());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setAuthoringInfo(voAuthor);

    voOutpatientNotesOutcome.getClinicalNote().setAuthoringInformation(form.customControlAuthoringInfo().getValue());

    if ( (voOutpatientNotesOutcome.getClinicalNote().getCareContext() == null) && (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()))
        voOutpatientNotesOutcome.getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.setInstructionNextClinic(form.richTextInstructions().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setObjectiveNote(form.richTextObjective().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setPlanNote(form.richTextPlan().getValue());

    voOutpatientNotesOutcome.setOutcome(form.cmbFollowUp().getValue());
    voOutpatientNotesOutcome.setReviewinUnits(form.cmbReview().getValue());
    voOutpatientNotesOutcome.setReviewIn(form.intReview().getValue());

    voOutpatientNotesOutcome.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());      
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setIsDerivedNote(Boolean.TRUE);

    StringBuffer sb = new StringBuffer();
    sb.append("<b>Objective Note</b><br>");
    sb.append(form.richTextObjective().getValue());
    sb.append("<br><br><b>Plan Note</b><br>");
    sb.append(form.richTextPlan().getValue());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalNote(sb.toString());

    return true;
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(SoapNoteVo voSoapNote)
{
    super.populateScreenFromData(voSoapNote);
    populateAuthoringControlsFromData(voSoapNote);
    populateAreaOfNeedGridFromData(voSoapNote);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isAuthDateTimeDataSaved()
{
    SoapNoteVo voSoapNote = form.getLocalContext().getSoapNoteVo();
    return voSoapNote != null && voSoapNote.getAuthoringInformationIsNotNull() && voSoapNote.getAuthoringInformation().getAuthoringDateTimeIsNotNull();
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateDataFromScreen(OutpatientNotesOutcomeVo voOutpatientNotesOutcome)
{
    if(form.customControlAuthoringInfo().getValue() == null || form.customControlAuthoringInfo().getValue().getAuthoringHcp() == null || form.customControlAuthoringInfo().getValue().getAuthoringDateTime() == null) //wdev-12315
    {
        engine.showMessage("The Authoring HCP and Authoring Date/Time are mandatory !");    //wdev-12315
        return false;
    }

    if(voOutpatientNotesOutcome.getClinicalNote() == null)
        voOutpatientNotesOutcome.setClinicalNote(new SoapNoteVo());

    if(voOutpatientNotesOutcome.getClinicalNote().getClinicalNote() == null)
        voOutpatientNotesOutcome.getClinicalNote().setClinicalNote(new ClinicalNotesVo());

    AuthoringInformationVo voAuthor = new AuthoringInformationVo();
    voAuthor.setAuthoringDateTime(form.customControlAuthoringInfo().getValue().getAuthoringDateTime());
    voAuthor.setAuthoringHcp(form.customControlAuthoringInfo().getValue().getAuthoringHcp());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setAuthoringInfo(voAuthor);

    voOutpatientNotesOutcome.getClinicalNote().setAuthoringInformation(form.customControlAuthoringInfo().getValue());

    if ( (voOutpatientNotesOutcome.getClinicalNote().getCareContext() == null) && (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()))
        voOutpatientNotesOutcome.getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.setInstructionNextClinic(form.richTextInstructions().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setObjectiveNote(form.richTextObjective().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setPlanNote(form.richTextPlan().getValue());

    voOutpatientNotesOutcome.setOutcome(form.cmbFollowUp().getValue());
    voOutpatientNotesOutcome.setReviewinUnits(form.cmbReview().getValue());
    voOutpatientNotesOutcome.setReviewIn(form.intReview().getValue());

    voOutpatientNotesOutcome.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());      
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setIsDerivedNote(Boolean.TRUE);

    StringBuffer sb = new StringBuffer();
    sb.append("<b>Objective Note</b><br>");
    sb.append(form.richTextObjective().getValue());
    sb.append("<br><br><b>Plan Note</b><br>");
    sb.append(form.richTextPlan().getValue());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalNote(sb.toString());

    return true;
}
项目:openMAXIMS    文件:Logic.java   
protected void populateScreenFromData(SoapNoteVo voSoapNote)
{
    super.populateScreenFromData(voSoapNote);
    populateAuthoringControlsFromData(voSoapNote);
    populateAreaOfNeedGridFromData(voSoapNote);
}
项目:openMAXIMS    文件:Logic.java   
private boolean isAuthDateTimeDataSaved()
{
    SoapNoteVo voSoapNote = form.getLocalContext().getSoapNoteVo();
    return voSoapNote != null && voSoapNote.getAuthoringInformationIsNotNull() && voSoapNote.getAuthoringInformation().getAuthoringDateTimeIsNotNull();
}
项目:openMAXIMS    文件:Logic.java   
private boolean populateDataFromScreen(OutpatientNotesOutcomeVo voOutpatientNotesOutcome)
{
    if(form.customControlAuthoringInfo().getValue() == null || form.customControlAuthoringInfo().getValue().getAuthoringHcp() == null || form.customControlAuthoringInfo().getValue().getAuthoringDateTime() == null) //wdev-12315
    {
        engine.showMessage("The Authoring HCP and Authoring Date/Time are mandatory !");    //wdev-12315
        return false;
    }

    if(voOutpatientNotesOutcome.getClinicalNote() == null)
        voOutpatientNotesOutcome.setClinicalNote(new SoapNoteVo());

    if(voOutpatientNotesOutcome.getClinicalNote().getClinicalNote() == null)
        voOutpatientNotesOutcome.getClinicalNote().setClinicalNote(new ClinicalNotesVo());

    AuthoringInformationVo voAuthor = new AuthoringInformationVo();
    voAuthor.setAuthoringDateTime(form.customControlAuthoringInfo().getValue().getAuthoringDateTime());
    voAuthor.setAuthoringHcp(form.customControlAuthoringInfo().getValue().getAuthoringHcp());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setAuthoringInfo(voAuthor);

    voOutpatientNotesOutcome.getClinicalNote().setAuthoringInformation(form.customControlAuthoringInfo().getValue());

    if ( (voOutpatientNotesOutcome.getClinicalNote().getCareContext() == null) && (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()))
        voOutpatientNotesOutcome.getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.setInstructionNextClinic(form.richTextInstructions().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setObjectiveNote(form.richTextObjective().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setPlanNote(form.richTextPlan().getValue());

    voOutpatientNotesOutcome.setOutcome(form.cmbFollowUp().getValue());
    voOutpatientNotesOutcome.setReviewinUnits(form.cmbReview().getValue());
    voOutpatientNotesOutcome.setReviewIn(form.intReview().getValue());

    voOutpatientNotesOutcome.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());      
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setIsDerivedNote(Boolean.TRUE);

    StringBuffer sb = new StringBuffer();
    sb.append("<b>Objective Note</b><br>");
    sb.append(form.richTextObjective().getValue());
    sb.append("<br><br><b>Plan Note</b><br>");
    sb.append(form.richTextPlan().getValue());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalNote(sb.toString());

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
protected void populateScreenFromData(SoapNoteVo voSoapNote)
{
    super.populateScreenFromData(voSoapNote);
    populateAuthoringControlsFromData(voSoapNote);
    populateAreaOfNeedGridFromData(voSoapNote);
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isAuthDateTimeDataSaved()
{
    SoapNoteVo voSoapNote = form.getLocalContext().getSoapNoteVo();
    return voSoapNote != null && voSoapNote.getAuthoringInformationIsNotNull() && voSoapNote.getAuthoringInformation().getAuthoringDateTimeIsNotNull();
}
项目:openmaxims-linux    文件:Logic.java   
private boolean populateDataFromScreen(OutpatientNotesOutcomeVo voOutpatientNotesOutcome)
{
    if(form.customControlAuthoringInfo().getValue() == null || form.customControlAuthoringInfo().getValue().getAuthoringHcp() == null || form.customControlAuthoringInfo().getValue().getAuthoringDateTime() == null) //wdev-12315
    {
        engine.showMessage("The Authoring HCP and Authoring Date/Time are mandatory !");    //wdev-12315
        return false;
    }

    if(voOutpatientNotesOutcome.getClinicalNote() == null)
        voOutpatientNotesOutcome.setClinicalNote(new SoapNoteVo());

    if(voOutpatientNotesOutcome.getClinicalNote().getClinicalNote() == null)
        voOutpatientNotesOutcome.getClinicalNote().setClinicalNote(new ClinicalNotesVo());

    AuthoringInformationVo voAuthor = new AuthoringInformationVo();
    voAuthor.setAuthoringDateTime(form.customControlAuthoringInfo().getValue().getAuthoringDateTime());
    voAuthor.setAuthoringHcp(form.customControlAuthoringInfo().getValue().getAuthoringHcp());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setAuthoringInfo(voAuthor);

    voOutpatientNotesOutcome.getClinicalNote().setAuthoringInformation(form.customControlAuthoringInfo().getValue());

    if ( (voOutpatientNotesOutcome.getClinicalNote().getCareContext() == null) && (form.getGlobalContext().Core.getCurrentCareContextIsNotNull()))
        voOutpatientNotesOutcome.getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.setInstructionNextClinic(form.richTextInstructions().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setObjectiveNote(form.richTextObjective().getValue());
    voOutpatientNotesOutcome.getClinicalNote().setPlanNote(form.richTextPlan().getValue());

    voOutpatientNotesOutcome.setOutcome(form.cmbFollowUp().getValue());
    voOutpatientNotesOutcome.setReviewinUnits(form.cmbReview().getValue());
    voOutpatientNotesOutcome.setReviewIn(form.intReview().getValue());

    voOutpatientNotesOutcome.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

    voOutpatientNotesOutcome.getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());

    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setCareContext(form.getGlobalContext().Core.getCurrentCareContext());      
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setIsDerivedNote(Boolean.TRUE);

    StringBuffer sb = new StringBuffer();
    sb.append("<b>Objective Note</b><br>");
    sb.append(form.richTextObjective().getValue());
    sb.append("<br><br><b>Plan Note</b><br>");
    sb.append(form.richTextPlan().getValue());
    voOutpatientNotesOutcome.getClinicalNote().getClinicalNote().setClinicalNote(sb.toString());

    return true;
}