Java 类ims.core.vo.AuthoringInformationVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateContactInfo(NeuroSenastionFindingsVo voNeuroSenastionFindings) 
{
    if(voNeuroSenastionFindings != null && voNeuroSenastionFindings.getAuthoringCPIsNotNull())
    {
        //WDEV-15172
        AuthoringInformationVo authoringInfo = new AuthoringInformationVo(); 
        authoringInfo.setAuthoringHcp(voNeuroSenastionFindings.getAuthoringCP());
        authoringInfo.setAuthoringDateTime(voNeuroSenastionFindings.getAuthoringDateTime());
        form.ccAuthoring().setValue(authoringInfo);

        return;
    }

    if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
    {
        ClinicalContactShortVo voClinicalContactShort = form.getGlobalContext().Core.getCurrentClinicalContact();

        if(voClinicalContactShort != null)
        {
            if(voClinicalContactShort.getStartDateTimeIsNotNull())
            {
                form.ccAuthoring().initializeComponent(false); //WDEV-15172 
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateContactInfo(ClinicalContactShortVo voClinicalContactShort) 
{
    if(voClinicalContactShort != null)
    {
        AuthoringInformationVo voAuthoringInfo = new AuthoringInformationVo();
        voAuthoringInfo.setAuthoringDateTime(voClinicalContactShort.getStartDateTime());


        if(voClinicalContactShort.getSeenByIsNotNull())
        {
            voAuthoringInfo.setAuthoringHcp(voClinicalContactShort.getSeenBy());
        }

        form.customControlAuthoring().setValue(voAuthoringInfo);
    }       
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    AuthoringInformationVo voAuthoringInformation=new AuthoringInformationVo();
    voAuthoringInformation.setAuthoringDateTime(new DateTime());
    if (domain.getHcpLiteUser()!=null)
        voAuthoringInformation.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    form.cc2().setValue(voAuthoringInformation);

    form.grpFilter().setValue(grpFilterEnumeration.rdoAll); //wdev-13763

    if (domain.getHcpLiteUser() == null)
    {           
        form.cmbSourceOfInformation().setEnabled(false);
        form.setcc1Enabled(false);
        form.setcc2Enabled(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setCustomCompomentValue(IComponent customControl, PlanOfCareVo record) 
{
    AuthoringInformationVo voAuthoringStart = new AuthoringInformationVo();
    if (customControl.equals(form.lyrPOC().tabPocDetails().customStart()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getStartDateTime());
        voAuthoringStart.setAuthoringHcp(record.getStartHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customResolved()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getResolvedDateTime());
        voAuthoringStart.setAuthoringHcp(record.getResolvingHCP());
    }
    if (customControl.equals(form.lyrPOC().tabPocDetails().customConfirming()))
    {
        voAuthoringStart.setAuthoringDateTime(record.getConfirmingDateTime());
        voAuthoringStart.setAuthoringHcp(record.getConfirmingHCP());
    }

    customControl.setValue(voAuthoringStart);
}
项目:AvoinApotti    文件:Logic.java   
private PlanOfCareNotingVo populateDataFromScreenForNoting(PlanOfCareActionsVoCollection recordColl) 
    {
        PlanOfCareNotingVo pocNoting = form.getGlobalContext().getPlanOfCareActionsReview();
//      POCNoting CareContext
        pocNoting.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());

        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());
        pocNoting.setAuthoringInformation(voAuthoringInformation);

        //POCNoting ReviewingHCP ReviewingDateTime
        pocNoting.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
        pocNoting.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());

        pocNoting.setActionStatus(PlanOfCareActionStatus.ACTIVE);

        pocNoting.setActions(recordColl);

        return pocNoting;
    }
项目:AvoinApotti    文件:Logic.java   
private AuthoringInformationVo getAuthoringInfoForMultiSelectAnswer(PatientAssessmentQuestionVo voAssessQuestion)
{
    if(voAssessQuestion == null)
        return null;

    for (int i = 0; i < voAssessQuestion.getPatientAnswers().size(); i++)
    {
        for (int j = 0; j < voAssessQuestion.getPatientAnswers().get(i).getAnswerDetails().size(); j++)
        {
            AnswerDetailsVo answerDetail = voAssessQuestion.getPatientAnswers().get(i).getAnswerDetails().get(j);
            if(isMultiSelectAnswer(answerDetail))
            {
                return voAssessQuestion.getPatientAnswers().get(i).getAuthoringInfo();
            }
        }
    }
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private String getInitialsTooltip(PatientAssessmentQuestionVo voPatAssQuestion)
{
    if (voPatAssQuestion != null && voPatAssQuestion.getPatientAnswers().size() > 0)
    {
        StringBuffer tooltip = new StringBuffer();
        PatientAssessmentAnswerVo voPatAssessmentAnswer = getMultiSelectAnswer(voPatAssQuestion);
        if (voPatAssessmentAnswer != null)
        {
            AuthoringInformationVo voAuthoring = voPatAssessmentAnswer.getAuthoringInfo();
            if (voAuthoring != null)
            {
                tooltip.append("*Authoring Information:* ");
                tooltip.append(voAuthoring.toString(", "));
            }
            AuthoringInformationVo voConfirming = voPatAssessmentAnswer.getConfirmingInfo();
            if (voConfirming != null)
            {
                tooltip.append("\n");
                tooltip.append("*Confirming Information:* ");
                tooltip.append(voConfirming.toString(", "));
            }
            return new Textile().process(tooltip.toString());
        }
    }
    return "";
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());
    patientProcedure.setCareContext(careContext);
    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyrMain().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyrMain().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:AvoinApotti    文件:Logic.java   
private void setDefaultValuesToControls(boolean ignoreClinicalContact)//WDEV-11523
{
    AuthoringInformationVo voAuthoring = new AuthoringInformationVo();

    if(!ignoreClinicalContact && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())//WDEV-11523
    {
        voAuthoring.setAuthoringDateTime(form.getGlobalContext().Core.getCurrentClinicalContact().getStartDateTime() == null ? new DateTime() : form.getGlobalContext().Core.getCurrentClinicalContact().getStartDateTime());
        voAuthoring.setAuthoringHcp(form.getGlobalContext().Core.getCurrentClinicalContact().getSeenBy());          
    }
    else
    {
        voAuthoring.setAuthoringDateTime(new DateTime());
        voAuthoring.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    }

    populateControlsFromData(voAuthoring);
}
项目:AvoinApotti    文件:Logic.java   
private PatientProcedureLiteVo newPatientProcedure(ProcedureLiteVo procedure, String description, CareContextShortVo careContext, AuthoringInformationVo authoringInformation, SourceofInformation sourceOfInformation)
{
    if (description == null || careContext == null || sourceOfInformation == null)
        return null;

    PatientProcedureLiteVo patientProcedure = new PatientProcedureLiteVo();

    patientProcedure.setProcedure(procedure);
    patientProcedure.setProcedureDescription(description);

    patientProcedure.setCareContext(careContext);
    patientProcedure.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

    patientProcedure.setAuthoringInformation(authoringInformation);
    patientProcedure.setInfoSource(sourceOfInformation);
    patientProcedure.setProcedureStatus(PatientProcedureStatus.PLANNED);
    patientProcedure.setProcDate(form.lyr1().tabCareRecord().dteDate().getValue() != null ? new PartialDate(form.lyr1().tabCareRecord().dteDate().getValue()) : null);// wdev-8393

    return patientProcedure;
}
项目:AvoinApotti    文件:Logic.java   
private void setDefaultValuesToControls(boolean ignoreClinicalContact)//WDEV-11523
{
    AuthoringInformationVo voAuthoring = new AuthoringInformationVo();

    if(!ignoreClinicalContact && form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())//WDEV-11523
    {
        voAuthoring.setAuthoringDateTime(form.getGlobalContext().Core.getCurrentClinicalContact().getStartDateTime() == null ? new DateTime() : form.getGlobalContext().Core.getCurrentClinicalContact().getStartDateTime());
        voAuthoring.setAuthoringHcp(form.getGlobalContext().Core.getCurrentClinicalContact().getSeenBy());          
    }
    else
    {
        voAuthoring.setAuthoringDateTime(new DateTime());
        voAuthoring.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    }

    populateControlsFromData(voAuthoring);
}
项目:AvoinApotti    文件:Logic.java   
protected ims.assessment.vo.PatientAssessmentDataVo populateDataFromScreen(ims.assessment.vo.PatientAssessmentDataVo voPatientAssessmentData, PatientAssessmentVo voPatientAssessment)
{
    populateAssociatedQuestionsData(voPatientAssessmentData);

    PatientAssessmentStatusReason status = form.cmbStatus().getValue();
    voPatientAssessment.setAuthoringInformation(form.customControlAuthoringInfo().getValue());
    voPatientAssessment.setStatus(status);
    voPatientAssessment.setStatusReason(form.cmbReason().getValue());
    if(status != null && status.equals(PatientAssessmentStatusReason.COMPLETED))
    {
        AuthoringInformationVo confirmingInfo = form.customControlCompleted().getValue();
        if(confirmingInfo != null)
        {
            voPatientAssessment.setCompletedHCP(confirmingInfo.getAuthoringHcp());
            voPatientAssessment.setCompletedDateTime(confirmingInfo.getAuthoringDateTime());
        }
    }

    return voPatientAssessmentData;
}
项目:AvoinApotti    文件:Logic.java   
private void populateControls()
{
    PatientAssessmentVo voPatientAssessment = form.getLocalContext().getCurrentPatientAssessment();
    if(voPatientAssessment == null)
        return;

    //Status
    form.cmbStatus().setValue(voPatientAssessment.getStatus());

    //Reason
    cmbStatusValueChanged();
    form.cmbReason().setValue(voPatientAssessment != null?voPatientAssessment.getStatusReason():null);

    //Authoring Informations
    form.customControlAuthoringInfo().setValue(voPatientAssessment.getAuthoringInfo());

    //Completing Info
    AuthoringInformationVo voCompleted = new AuthoringInformationVo();
    voCompleted.setAuthoringDateTime(voPatientAssessment.getCompletedDateTime());
    voCompleted.setAuthoringHcp(voPatientAssessment.getCompletedHCP());
    form.customControlCompleted().setValue(voCompleted);
}
项目:AvoinApotti    文件:DynamicAssessmentHelper.java   
public static PatientAssessmentVo populateHCPDataForAnswers(PatientAssessmentVo initialData, PatientAssessmentVo updatedData, AuthoringInformationVo author)
{
    if(updatedData == null || updatedData.getAssessmentData() == null)
        throw new CodingRuntimeException("Invalid assessment data to update");      


    // Answer Groups
    if(updatedData.getAssessmentData().getAnswerGroups() != null)
    {
        populateHCPDataForAnswerGroups(initialData, updatedData, author);
    }

    //Associated Graphic Questions
    if(updatedData.getAssessmentData().getGraphicQuestion() != null)
    {
        populateHCPDataForGraphicQuestions(initialData, updatedData, author);
    }

    // Findings
    if(updatedData.getAssessmentData().getGraphicFindings() != null)
    {
        populateHCPDataForGraphicFindings(initialData, updatedData, author);
    }

    return updatedData;
}
项目:AvoinApotti    文件:DynamicAssessmentHelper.java   
public static Patient_AssessmentVo populateHCPDataForAnswers(Patient_AssessmentVo initialData, Patient_AssessmentVo updatedData, AuthoringInformationVo author)
{
    if(updatedData == null || updatedData.getAssessmentData() == null)
        throw new CodingRuntimeException("Invalid assessment data to update");      


    // Answer Groups
    if(updatedData.getAssessmentData().getAnswerGroups() != null)
    {
        populateHCPDataForAnswerGroups(initialData, updatedData, author);
    }

    //Associated Graphic Questions
    if(updatedData.getAssessmentData().getGraphicQuestion() != null)
    {
        populateHCPDataForGraphicQuestions(initialData, updatedData, author);
    }

    // Findings
    if(updatedData.getAssessmentData().getGraphicFindings() != null)
    {
        populateHCPDataForGraphicFindings(initialData, updatedData, author);
    }

    return updatedData;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected SurgicalOperationDetailsVo populateDataFromScreen(SurgicalOperationDetailsVo value) {
    SurgicalOperationDetailsVo result = super.populateDataFromScreen(value);
    if (!result.getAuthoringInformationIsNotNull())
    {
        result.setAuthoringInformation(new AuthoringInformationVo());
        result.getAuthoringInformation().setAuthoringDateTime(new DateTime());
        result.getAuthoringInformation().setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    }
    if (!result.getCareContextIsNotNull())
    {
        result.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    }
    //wdev-13658
    result.setProsthesis(form.txtProsthesis().getValue());
    result.setDrain(form.txtDrain().getValue());

    //--------
    return result;
}
项目:AvoinApotti    文件:Logic.java   
private void initialize()
{
    AuthoringInformationVo voAuthoringInformation=new AuthoringInformationVo();
    voAuthoringInformation.setAuthoringDateTime(new DateTime());
    if (domain.getHcpLiteUser()!=null)
        voAuthoringInformation.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    form.cc2().setValue(voAuthoringInformation);
    form.pdt1().setValue(new PartialDate(new Date()));

    form.grpFilter().setValue(grpFilterEnumeration.rdoSpecialty);

    if (domain.getHcpLiteUser() == null)
    {           
        form.pdt1().setEnabled(false);
        form.setcc1Enabled(false);
        form.setcc2Enabled(false);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void clearData(TTAMedicationDetailVo ttaMedicationDetailVo)
{
    if (ttaMedicationDetailVo == null)
        return;
    ttaMedicationDetailVo.clearIDAndVersion();
    ttaMedicationDetailVo.setCommencedDate(null);
    ttaMedicationDetailVo.setClinicalCommentsForPharmacy(null);
    ttaMedicationDetailVo.setMedicationInstructionsForPatient(null);
    ttaMedicationDetailVo.setPrescriberContacted(null);
    ttaMedicationDetailVo.setDurationValue(null);
    ttaMedicationDetailVo.setDurationUnit(null);
    AuthoringInformationVo auth = new AuthoringInformationVo();
    auth.setAuthoringDateTime(new DateTime());
    if (domain.getHcpLiteUser() instanceof HcpLiteVo)
        auth.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    ttaMedicationDetailVo.setAuthoringInformation(auth);

}
项目:AvoinApotti    文件:Logic.java   
private void populateAuthoringInfo(StrengtheningProgramVo voStrengtheningProgram)
{
    if (voStrengtheningProgram != null)
    {
        AuthoringInformationVo voAuthoringInformation = voStrengtheningProgram.getAuthoringInformation();
        if (voAuthoringInformation != null)
        {
            form.dtimAuthoring().setValue(voAuthoringInformation.getAuthoringDateTime());
            if (voAuthoringInformation.getAuthoringHcpIsNotNull())
            {
                form.qmbHCP().newRow(voAuthoringInformation.getAuthoringHcp(), voAuthoringInformation.getAuthoringHcp().toString());
                form.qmbHCP().setValue(voAuthoringInformation.getAuthoringHcp());
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private PatientAssessmentVo populatePatientAssessmentFromGraphicalUserAssessmentShort(GraphicAssessmentVo voGA) {
    if(voGA == null)
        throw new CodingRuntimeException("No GraphicAssessmentShortVo provided");

    PatientAssessmentVo voPatientAssessment = new PatientAssessmentVo();
    voPatientAssessment.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    voPatientAssessment.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact());
    voPatientAssessment.setStatus(PatientAssessmentStatusReason.NOTCOMMENCED);
    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo(); 
    voAuthoringInformation.setAuthoringDateTime(new DateTime());
    if (domain.getHcpUser() != null)
    {
        Hcp hcpVo = (Hcp) domain.getHcpUser();
        HcpLiteVo liteVo = domain.getHcpLiteById(hcpVo);
        voAuthoringInformation.setAuthoringHcp(liteVo);
    }
    voPatientAssessment.setAuthoringInformation(voAuthoringInformation);

    //Patient Assessment Data
    PatientAssessmentDataVo voPatientAssessmentData = new PatientAssessmentDataVo();
    voPatientAssessmentData.setGraphic(voGA);
    voPatientAssessmentData.setUserAssessment(null);
    voPatientAssessment.setAssessmentData(voPatientAssessmentData);

    return voPatientAssessment;
}
项目:AvoinApotti    文件:Logic.java   
private FollowUpNoteVo populateDataFromScreen() 
{   
    FollowUpNoteVo editedFollowUpNote = form.getLocalContext().getEditedRecord();
    if (editedFollowUpNote == null) {
        editedFollowUpNote = new FollowUpNoteVo();
    }       

    editedFollowUpNote.setAuthoringInformation(form.ccAuthoring().getValue());
    editedFollowUpNote.setCatsReferral(form.getGlobalContext().RefMan.getCatsReferral());
    editedFollowUpNote.setFollowUpType(form.cmbType().getValue());
    editedFollowUpNote.setFollowUpNote(form.richTextNote().getValue());
    editedFollowUpNote.setIncludeInCatsReport(form.chkIncludeNoteInCATSReport().getValue());

    AuthoringInformationVo recording = new AuthoringInformationVo();
    recording.setAuthoringDateTime(new DateTime());
    HcpLiteVo hcp = new HcpLiteVo();
    hcp.setID_Hcp(engine.getLoggedInUser().getHcpId());
    hcp.setMos(domain.getMosUser() != null ? (MemberOfStaffLiteVo) domain.getMosUser() : null);
    recording.setAuthoringHcp(hcp);                 
    editedFollowUpNote.setRecordingInformation(recording);      

    return editedFollowUpNote;
}
项目:AvoinApotti    文件:Logic.java   
private String getDisplayText(PatientAssessmentShortVo patientAssessment)
{
    StringBuilder displayText = new StringBuilder();


    // Build the Authoring Information part of display text
    AuthoringInformationVo authoringInfo = patientAssessment.getAuthoringInfo();

    if (authoringInfo != null)
    {
        // Put authoring date / time into display string
        if (authoringInfo.getAuthoringDateTime() != null)
            displayText.append(authoringInfo.getAuthoringDateTime().toString()).append(" - ");

        // Put authoring HCP into display string
        if (authoringInfo.getAuthoringHcp() != null)
            displayText.append(authoringInfo.getAuthoringHcp().toString()).append(" - ");
    }


    // Build the assessment name part of display text
    displayText.append(patientAssessment.getAssessmentName());

    // Return the display text
    return displayText.toString();
}
项目:AvoinApotti    文件:Logic.java   
private void populateAuthoringData(StrengtheningProgramVo voStrengtheningProgram)
{
    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
    voAuthoringInformation.setAuthoringDateTime(form.dtimAuthoring().getValue());
    voAuthoringInformation.setAuthoringHcp(form.qmbHCP().getValue());
    voStrengtheningProgram.setAuthoringInformation(voAuthoringInformation);
}
项目:AvoinApotti    文件:Logic.java   
private void populateControlInfo(AdmisSpineExamVo voAdmisSpineExam)
{
    displayButtons();


    if(voAdmisSpineExam != null)
    {
        if(voAdmisSpineExam.getMskExamIsNotNull())
        {
            MskSpineExaminationVo voSpineExam = voAdmisSpineExam.getMskExam();
            //WDEV-15172
            AuthoringInformationVo authoringInfo = new AuthoringInformationVo(); 
            authoringInfo.setAuthoringHcp(voSpineExam.getAuthoringCP());
            authoringInfo.setAuthoringDateTime(voSpineExam.getAuthoringDateTime());
            form.ccAuthoring().setValue(authoringInfo);
            return;
        }
    }

    if(!engine.getFormName().equals(form.getForms().SpinalInjuries.MedMskSpineExamInpatient))
    {
        if(form.getGlobalContext().Core.getCurrentClinicalContactIsNotNull())
        {
            ClinicalContactShortVo voClinicalContactShort = form.getGlobalContext().Core.getCurrentClinicalContact();

            if(voClinicalContactShort != null)
            {
                form.ccAuthoring().initializeComponent(false); //WDEV-15172
            }
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.setMode(FormMode.EDIT);
    AuthoringInformationVo voAuthoring = new AuthoringInformationVo();
    voAuthoring.setAuthoringDateTime(new DateTime());
    voAuthoring.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    form.customControlAuthoringInfo().setValue(voAuthoring);

    updateButtonsStatus();
}
项目:AvoinApotti    文件:Logic.java   
private void populateContactInfo(MSKSpinePathologyFindingVo voSpinePathologyFinding) 
{ 
    if(voSpinePathologyFinding != null)
    {
        //WDEV-15172
        AuthoringInformationVo authoringInfo = new AuthoringInformationVo(); 
        authoringInfo.setAuthoringHcp(voSpinePathologyFinding.getAuthoringHCP());
        authoringInfo.setAuthoringDateTime(voSpinePathologyFinding.getAuthoringDateTime());
        form.ccAuthoring().setValue(authoringInfo);
    }
}
项目:AvoinApotti    文件:Logic.java   
/**
 * function used to populate instance controls with selected finding
 */
private void populateInstanceControls(NeuroMotorFindingsVo finding)
{
    clearInstanceControls();

    if (finding == null)
        return;

    updateBrowseInformation(form.recNeuro().getRecordState("Assessment", "Assessments"));

    // Populate authoring information
    AuthoringInformationVo authoring = new AuthoringInformationVo();
    authoring.setAuthoringDateTime(finding.getAuthoringDateTime());
    authoring.setAuthoringHcp(finding.getAuthoringCP());

    form.ccAuthoring().setValue(authoring);

    // Populate combo-boxes
    form.cmbMotorLeft().setValue(finding.getLeftMotorLevel());
    form.cmbMotorRight().setValue(finding.getRightMotorLevel());

    // Populate is problem
    form.chkProblem().setValue(finding.getIsProblem());

    // Populate dynamic grid
    if (finding.getRootFindingIsNotNull() && finding.getRootFinding().size() > 0)
    {
        form.getLocalContext().setValueType(VALUE_TYPE_ROOT_FINDINGS);

        setDynamicGridRootFindings(finding.getRootFinding());
    }
    else
    {
        form.getLocalContext().setValueType(VALUE_TYPE_MOTOR_AREA_FINDINGS);

        setDynamicGridMotorAreaFindings(finding.getMotorAreaFindings());
    }

    calculateScore();
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentInstanceControls(MskBoneJointVo voMskBoneJoint)
{
    if (voMskBoneJoint != null)
    {
        //WDEV-15172
        AuthoringInformationVo authoringInfo = new AuthoringInformationVo(); 
        authoringInfo.setAuthoringHcp(voMskBoneJoint.getAuthoringCP());
        authoringInfo.setAuthoringDateTime(voMskBoneJoint.getAuthoringDateTime());
        form.ccAuthoring().setValue(authoringInfo);
    }
}
项目:AvoinApotti    文件:Logic.java   
private AuthoringInformationVo getPatientAssessmentAuthoring()
{
    AuthoringInformationVo voAuthoring = new AuthoringInformationVo();
    voAuthoring.setAuthoringDateTime(form.dteStarted().getValue());
    voAuthoring.setAuthoringHcp(domain.getHcpLite(form.qmbHCP().getValue()));
    return voAuthoring;
}
项目:AvoinApotti    文件:Logic.java   
private void displayHeaderRecord(MRSAAssessmentVo voMRSA) 
{
    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
    voAuthoringInformation.setAuthoringDateTime(voMRSA.getDateTimeInitiated());
    if(voMRSA.getHcpInitiatedIsNotNull())
    {
        HcpLiteVo voHcpLite = new HcpLiteVo();
        voHcpLite.setMos(voMRSA.getHcpInitiated().getMos());
        voHcpLite.setHcpType(voMRSA.getHcpInitiated().getHcpType());
        voHcpLite.setID_Hcp(voMRSA.getHcpInitiated().getID_Hcp());
        voAuthoringInformation.setAuthoringHcp(voHcpLite);
    }
    form.customControlAuth().setValue(voAuthoringInformation);
    form.dteScreening().setValue(voMRSA.getDateScreening());
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasUIErrors()
{
    ArrayList errors = new ArrayList();
    AuthoringInformationVo authoringInfo = form.lyrTabs().tabCurrent().customControlAuthoring().getValue();
    if (authoringInfo == null)
    {
        errors.add("Authoring Information is mandatory");
    }
    else
    {
        if (authoringInfo.getAuthoringDateTime() == null)
            errors.add("Authoring Date/Time is mandatory");
        if (authoringInfo.getAuthoringHcp() == null)
            errors.add("Authoring HCP is mandatory");
    }

    if (form.lyrTabs().tabCurrent().cmbAssessment().getValue() == null)
    {
        ContextType contextType = getContextType();
        boolean isInpatientOrOutpatient = contextType != null && (contextType.equals(ContextType.INPATIENT) || contextType.equals(ContextType.OUTPATIENT));
        if(isInpatientOrOutpatient)
            errors.add("Assessment is mandatory");
    }

    if (form.lyrTabs().tabCurrent().cmbStatus().getValue() == null)
        errors.add("Status is mandatory");

    if (errors.size() > 0)
    {
        String[] uiErrors = new String[errors.size()];
        errors.toArray(uiErrors);
        engine.showErrors(uiErrors);
        return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private AuthoringInformationVo getLoggedInUserAuthoringInformation()
{
    AuthoringInformationVo voAuthoringInfo = new AuthoringInformationVo();
    voAuthoringInfo.setAuthoringDateTime(new DateTime());
    voAuthoringInfo.setAuthoringHcp((HcpLiteVo)domain.getHcpLiteUser());
    return voAuthoringInfo;
}
项目:AvoinApotti    文件:Logic.java   
private AuthoringInformationVo getAuthoringHCP()
{
    AuthoringInformationVo voAuthoring = new AuthoringInformationVo();
    voAuthoring.setAuthoringDateTime(new DateTime());
    voAuthoring.setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser());
    return voAuthoring;
}
项目:AvoinApotti    文件:Logic.java   
private void populateCustomControls() 
{
    PlanOfCareNotingVo voItem = form.getGlobalContext().getPlanOfCareActionsReview();

    if (voItem.getAuthoringInformationIsNotNull())
    {
        AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
        voAuthoringInformation.setAuthoringDateTime(voItem.getAuthoringInformation().getAuthoringDateTime());
        voAuthoringInformation.setAuthoringHcp(voItem.getAuthoringInformation().getAuthoringHcp());
        form.customAuthoring().setValue(voAuthoringInformation);
    }

    if (voItem.getReviewingDateTimeIsNotNull() &&
            voItem.getReviewingHCPIsNotNull())
    {
        AuthoringInformationVo voReviewingInformation = new AuthoringInformationVo();
        voReviewingInformation.setAuthoringDateTime(voItem.getReviewingDateTime());
        voReviewingInformation.setAuthoringHcp(voItem.getReviewingHCP());
        form.customReviewing().setValue(voReviewingInformation);
    }   
    else
    {
        form.customReviewing().initializeComponent();
    }
    form.setcustomAuthoringEnabled(false);
    form.setcustomReviewingEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
private PlanOfCareActionsVoCollection populateDataFromScreen() 
    {
        PlanOfCareActionsVoCollection voColl = form.getGlobalContext().getPlanOfCareActionsReview().getActions();

        for(int x = 0; x <form.grdActionReview().getRows().size(); x++)
        {
            PlanOfCareActionsVo rowValue = form.grdActionReview().getRows().get(x).getValue();
            String actionReview = form.grdActionReview().getRows().get(x).getColReview();

            if (rowValue != null && actionReview != null && actionReview.length() > 0)
            {
                AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
                voAuthoringInformation.setAuthoringDateTime(form.customAuthoring().getValue().getAuthoringDateTime());
                voAuthoringInformation.setAuthoringHcp(form.customAuthoring().getValue().getAuthoringHcp());

                rowValue.setAuthoringInformation(voAuthoringInformation);
                rowValue.setReview(actionReview);
//              POCNoting ReviewingHCP ReviewingDateTime
                rowValue.setReviewingDateTime(form.customReviewing().getValue().getAuthoringDateTime());
                rowValue.setReviewingHCP(form.customReviewing().getValue().getAuthoringHcp());


                voColl.add(rowValue);
            }               
        }   

        return voColl;
    }
项目:AvoinApotti    文件:Logic.java   
private void open()
{
    form.ccGraphicAssesment().clear(true);

    form.txtName().setValue(null);
    form.chkComplete().setValue(null);                      // WDEV-13973
    form.ccCompletingAuthInfo().setValue(null);             // WDEV-13973
    form.pnl1().setValue("Select a Graphical Assessment");
    form.getLocalContext().setCurentSurgicalOpNotes(domain.getSurgicalOperationNotes(form.getGlobalContext().Core.getCurrentCareContext()));
    if (form.getLocalContext().getCurentSurgicalOpNotesIsNotNull()&& form.getLocalContext().getCurentSurgicalOpNotes().getDiagramIsNotNull())
    {
        form.pnl1().setValue("Graphical Assessment");
        form.txtName().setValue(form.getLocalContext().getCurentSurgicalOpNotes().getDiagram().getAssessmentData().getGraphic().getName());
        form.ccGraphicAssesment().setPatientAssessment(form.getLocalContext().getCurentSurgicalOpNotes().getDiagram());

        // WDEV-13973
        if (PatientAssessmentStatusReason.COMPLETED.equals(form.getLocalContext().getCurentSurgicalOpNotes().getDiagram().getStatus()))
        {
            form.chkComplete().setValue(Boolean.TRUE);

            AuthoringInformationVo completingAuthoring = new AuthoringInformationVo();
            completingAuthoring.setAuthoringHcp(form.getLocalContext().getCurentSurgicalOpNotes().getDiagram().getCompletedHCP());
            completingAuthoring.setAuthoringDateTime(form.getLocalContext().getCurentSurgicalOpNotes().getDiagram().getCompletedDateTime());

            form.ccCompletingAuthInfo().setValue(completingAuthoring);
        }
    }
    form.setMode(FormMode.VIEW);

    //
}
项目:AvoinApotti    文件:Logic.java   
private String getInitials(PatientAssessmentQuestionVo voPatAssessment)
{
    if(voPatAssessment == null)
        return null;

    StringBuffer text = new StringBuffer();

    AuthoringInformationVo voAuthoringInfoVo = getAuthoringInfoForMultiSelectAnswer(voPatAssessment);
    if(voAuthoringInfoVo != null)
    {
        HcpLiteVo hcp = voAuthoringInfoVo.getAuthoringHcp();
        if(hcp != null)
        {
            text.append(hcp.getMosIsNotNull() && hcp.getMos().getInitialsIsNotNull()?hcp.getMos().getInitials() + " ":"");
        }
    }

    if(hasMultipleAnswers(voPatAssessment.getPatientAnswers()))
    {
        text.append("/* ");
    }

    if(isConfirmed(voPatAssessment) == false)
        text.append("/***");

    return text.toString();
}
项目:AvoinApotti    文件:Logic.java   
private void setCustomAuthoring(VitalSignsVo voVitalSign)
{
    DateTime voDateTime = new DateTime();
    voDateTime.setDateTime(voVitalSign.getVitalsTakenDateTime().getDate(), voVitalSign.getVitalsTakenDateTime().getTime());

    AuthoringInformationVo voAuthoring = new AuthoringInformationVo();
    voAuthoring.setAuthoringDateTime(voDateTime);
    voAuthoring.setAuthoringHcp(voVitalSign.getAuthoringInformation().getAuthoringHcp() != null ? voVitalSign.getAuthoringInformation().getAuthoringHcp() : null);
    form.customAuthoring().setValue(voAuthoring);
}
项目:AvoinApotti    文件:Logic.java   
public AuthoringInformationVo getValue()
{
    AuthoringInformationVo voAuthoringInformation = new AuthoringInformationVo();
    voAuthoringInformation.setAuthoringDateTime(form.dtimAuthoring().getValue());
    voAuthoringInformation.setAuthoringHcp(form.qmbAuthoringHcp().getValue());

    //WDEV-4628
    if(isRequired() &&  voAuthoringInformation.countFieldsWithValue() < voAuthoringInformation.countValueObjectFields())
        return null;

    return voAuthoringInformation;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    clearScreen();

    SocialHistoryVo socialHistory = domain.getSocialHistoryByPatient(form.getGlobalContext().Core.getPatientShort());
    populateScreenFromData(deleteIdForChildren(socialHistory == null ? null:(SocialHistoryVo)socialHistory.clone()),false);
    if(engine.getFormName().equals(form.getForms().Core.SocialHistory))
    {
        ClinicalContactShortVo voClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact();
        if(voClinicalContact != null)
        {
            AuthoringInformationVo voAuth = new AuthoringInformationVo();
            voAuth.setAuthoringDateTime(voClinicalContact.getStartDateTime());
            voAuth.setAuthoringHcp(voClinicalContact.getSeenBy());
            form.customControlAuth().setValue(voAuth);

            //WDEV-12901 
            Object mos = domain.getMosUser();
            if(mos != null){
                form.cmbRecordingHCP().newRow((MemberOfStaffLiteVo)mos, mos.toString());
                form.cmbRecordingHCP().setValue((MemberOfStaffLiteVo)mos);
            }
            form.dtimRecordingDateTime().setValue(new DateTime());
        }
        else
            setDefaultValues();//wdev-1930
    }
    else
    {
        setDefaultValues();
    }

    form.getLocalContext().setvoSocialHistory(null);
    form.setMode(FormMode.EDIT);
    form.customControlAuth().setIsRequiredPropertyToControls(true);
    updateControlsState();
    updateContextMenus();
}