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

项目:AvoinApotti    文件:Logic.java   
protected SupportNetworkFamily populateInstanceData() 
{
    SupportNetworkFamily vo = super.populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    vo.setPatient(form.getGlobalContext().Core.getPatientShort());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.ctnFamilySupport().customControlAuth().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnFamilySupport().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:AvoinApotti    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:AvoinApotti    文件:Logic.java   
protected SupportNetworkFamily populateFamilyInstanceData() 
{
    SupportNetworkFamily vo = populateFamilyDataFromScreen(form.getLocalContext().getSelectedFamilyRecord());

    vo.setPatient(form.getLocalContext().getPatientRef());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.lyrSupportServices().tabPageFamily().customControlAuthFamily().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null)
    {
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.lyrSupportServices().tabPageFamily().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:AvoinApotti    文件:Logic.java   
private AdminEventVo populateDataFromScreen()
{
    AdminEventVo adminEvent = new AdminEventVo();

    RecordingUserInformationVo recordingInformation = new RecordingUserInformationVo();

    recordingInformation.setRecordingUser((MemberOfStaffLiteVo) form.ccRecordingUser().getValue());
    recordingInformation.setRecordingDateTime(form.dtimRecording().getValue());

    adminEvent.setRecordingDetails(recordingInformation);
    adminEvent.setOutcome(form.cmbOutcome().getValue());
    adminEvent.setEventMethod(form.cmbEventMethod().getValue());
    adminEvent.setEventDetails(form.txtEventDetails().getValue());

    return adminEvent;
}
项目:openMAXIMS    文件:Logic.java   
protected SupportNetworkFamily populateInstanceData() 
{
    SupportNetworkFamily vo = super.populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    vo.setPatient(form.getGlobalContext().Core.getPatientShort());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.ctnFamilySupport().customControlAuth().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnFamilySupport().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:openMAXIMS    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:openMAXIMS    文件:Logic.java   
protected SupportNetworkFamily populateFamilyInstanceData() 
{
    SupportNetworkFamily vo = populateFamilyDataFromScreen(form.getLocalContext().getSelectedFamilyRecord());

    vo.setPatient(form.getLocalContext().getPatientRef());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.lyrSupportServices().tabPageFamily().customControlAuthFamily().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null)
    {
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.lyrSupportServices().tabPageFamily().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:openMAXIMS    文件:Logic.java   
private AdminEventVo populateDataFromScreen()
{
    AdminEventVo adminEvent = new AdminEventVo();

    RecordingUserInformationVo recordingInformation = new RecordingUserInformationVo();

    recordingInformation.setRecordingUser((MemberOfStaffLiteVo) form.ccRecordingUser().getValue());
    recordingInformation.setRecordingDateTime(form.dtimRecording().getValue());

    adminEvent.setRecordingDetails(recordingInformation);
    adminEvent.setOutcomeReason(form.cmbOutcomeReason().getValue()); //WDEV-20059
    adminEvent.setOutcome(form.cmbOutcome().getValue());
    adminEvent.setEventMethod(form.cmbEventMethod().getValue());
    adminEvent.setEventDetails(form.txtEventDetails().getValue());
    adminEvent.setAdmittedStop(form.chkAdmittedStop().getValue());

    return adminEvent;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralStatusVo createStatus() 
{
    ClinicalReferralStatusVo status = new ClinicalReferralStatusVo();

    RecordingUserInformationVo userInfo = new RecordingUserInformationVo();
    userInfo.setRecordingUser(form.qmbRecordingUser().getValue());
    userInfo.setRecordingDateTime(form.dtimRecordingDate().getValue());

    status.setRecordingInfo(userInfo);

    status.setReferralStatus(InternalReferralStatus.REJECTED);

    status.setRejectionReason(form.cmbRejectionReason().getValue());
    status.setRejectionReasonText(form.txtRejectionReason().getValue());

    return status;
}
项目:openMAXIMS    文件:Logic.java   
private boolean addNoteToClinicalNotesCollection() 
{
    ClinicalReferralNotesVoCollection clinNotes = form.getGlobalContext().Clinical.getClinicalReferraNotes();
    RecordingUserInformationVo recInfo = populateRecordingUserInfo();
    ClinicalReferralNotesVo note = populateNoteDataFromScreen(recInfo);

    if (note.validate() != null && note.validate().length > 0)
    {
        engine.showErrors(note.validate());
        return false;
    }

    if (clinNotes == null)
        clinNotes = new ClinicalReferralNotesVoCollection(); 

    clinNotes.add(note);
    form.getGlobalContext().Clinical.setClinicalReferraNotes(clinNotes);

    return true;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralStatusVo createStatus(InternalReferralStatus status, Boolean bookedAppt) 
{
    ClinicalReferralStatusVo currentStatus = new ClinicalReferralStatusVo();

    RecordingUserInformationVo userInfo = new RecordingUserInformationVo();
    userInfo.setRecordingUser(form.getLocalContext().getCurrentMosUser());
    userInfo.setRecordingDateTime(new DateTime());

    currentStatus.setRecordingInfo(userInfo);
    currentStatus.setReferralStatus(status);

    if(Boolean.TRUE.equals(bookedAppt))
    {
        currentStatus.setInternalReferralStatusChangeReason(InternalReferralStatusChangeReason.BOOKING_MADE);
        currentStatus.setAppointmentBooked(true);
        currentStatus.setAppointmentRequired(false);
    }

    return currentStatus;
}
项目:openMAXIMS    文件:Logic.java   
protected SupportNetworkFamily populateInstanceData() 
{
    SupportNetworkFamily vo = super.populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    vo.setPatient(form.getGlobalContext().Core.getPatientShort());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.ctnFamilySupport().customControlAuth().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnFamilySupport().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:openMAXIMS    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:openMAXIMS    文件:Logic.java   
protected SupportNetworkFamily populateFamilyInstanceData() 
{
    SupportNetworkFamily vo = populateFamilyDataFromScreen(form.getLocalContext().getSelectedFamilyRecord());

    vo.setPatient(form.getLocalContext().getPatientRef());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.lyrSupportServices().tabPageFamily().customControlAuthFamily().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null)
    {
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.lyrSupportServices().tabPageFamily().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:openMAXIMS    文件:Logic.java   
private AdminEventVo populateDataFromScreen()
{
    AdminEventVo adminEvent = new AdminEventVo();

    RecordingUserInformationVo recordingInformation = new RecordingUserInformationVo();

    recordingInformation.setRecordingUser((MemberOfStaffLiteVo) form.ccRecordingUser().getValue());
    recordingInformation.setRecordingDateTime(form.dtimRecording().getValue());

    adminEvent.setRecordingDetails(recordingInformation);
    adminEvent.setOutcome(form.cmbOutcome().getValue());
    adminEvent.setEventMethod(form.cmbEventMethod().getValue());
    adminEvent.setEventDetails(form.txtEventDetails().getValue());

    return adminEvent;
}
项目:openmaxims-linux    文件:Logic.java   
protected SupportNetworkFamily populateInstanceData() 
{
    SupportNetworkFamily vo = super.populateDataFromScreen(form.getLocalContext().getSelectedRecord());

    vo.setPatient(form.getGlobalContext().Core.getPatientShort());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.ctnFamilySupport().customControlAuth().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnFamilySupport().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:openmaxims-linux    文件:Logic.java   
protected PatientAlert populateDataFromScreen(PatientAlert voPatientAlert)
{
    super.populateDataFromScreen(voPatientAlert);

    if(voPatientAlert.getIsCurrentlyActiveAlert() == null)
        voPatientAlert.setIsCurrentlyActiveAlert(Boolean.TRUE); 

    voPatientAlert.setAuthoringInformation(form.ctnDetails().customControlAuthoringInfo().getValue());
    //WDEV-12901 set Recording Information
    if(voPatientAlert.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.ctnDetails().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        voPatientAlert.setRecordingInformation(voRecordingUserInformation);
    }

    voPatientAlert.setPatient(form.getGlobalContext().Core.getPatientShort());

    return voPatientAlert;
}
项目:openmaxims-linux    文件:Logic.java   
protected SupportNetworkFamily populateFamilyInstanceData() 
{
    SupportNetworkFamily vo = populateFamilyDataFromScreen(form.getLocalContext().getSelectedFamilyRecord());

    vo.setPatient(form.getLocalContext().getPatientRef());
    //default currently active to true
    if(vo.getIsCurrentlyActiveFamilySupport() == null)
        vo.setIsCurrentlyActiveFamilySupport(Boolean.TRUE);

    //set authoring information only for new records.
    if (vo.getID_SupportNetworkFamily() == null)
        vo.setAuthoringInfo(form.lyrSupportServices().tabPageFamily().customControlAuthFamily().getValue());

    //WDEV-12901 set Recording Information
    if(vo.getRecordingInformation()==null)
    {
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.lyrSupportServices().tabPageFamily().cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        vo.setRecordingInformation(voRecordingUserInformation);
    }

    return vo;
}
项目:openmaxims-linux    文件:Logic.java   
private AdminEventVo populateDataFromScreen()
{
    AdminEventVo adminEvent = new AdminEventVo();

    RecordingUserInformationVo recordingInformation = new RecordingUserInformationVo();

    recordingInformation.setRecordingUser((MemberOfStaffLiteVo) form.ccRecordingUser().getValue());
    recordingInformation.setRecordingDateTime(form.dtimRecording().getValue());

    adminEvent.setRecordingDetails(recordingInformation);
    adminEvent.setOutcome(form.cmbOutcome().getValue());
    adminEvent.setEventMethod(form.cmbEventMethod().getValue());
    adminEvent.setEventDetails(form.txtEventDetails().getValue());

    return adminEvent;
}
项目:openMAXIMS    文件:Logic.java   
private void populateAuthorisedControls(MemberOfStaffRefVo authorisedBy,
                                         DateTime authorisedDateTime,
                                         RecordingUserInformationVo recordingInfo) 
{

    form.txtAuthorisedBy().setValue(authorisedBy!=null?authorisedBy.toString():"");
    form.dteDateAuthorised().setValue(authorisedDateTime!=null?authorisedDateTime.getDate():null);
    if (recordingInfo != null)
    {
        form.txtRecordingMos().setValue(recordingInfo.getRecordingUserIsNotNull()?recordingInfo.getRecordingUser().getNameIsNotNull()?recordingInfo.getRecordingUser().getName().toString():"":"");
    }
}
项目:openMAXIMS    文件:AppointmentOutcomeDialogImpl.java   
private PatientJourneyBreachForTransferOfCareVoCollection getPatientJourneyBreach( PatientJourneyBreachForTransferOfCareVoCollection parentColl)
{
    if( parentColl == null || parentColl.size() == 0)
        return null;

    PatientJourneyBreachForTransferOfCareVoCollection tempColl = new PatientJourneyBreachForTransferOfCareVoCollection();
    for( PatientJourneyBreachForTransferOfCareVo breachparent: parentColl)
    {
        if( breachparent != null )
        {
            PatientJourneyBreachForTransferOfCareVo tempVo = new PatientJourneyBreachForTransferOfCareVo();
            tempVo.setBreachReason(breachparent.getBreachReason());
            tempVo.setBreachReasonComment(breachparent.getBreachReasonComment());
            tempVo.setBreachReasonDate(breachparent.getBreachReasonDate());
            tempVo.setBreachReasonRecordingMOS(breachparent.getBreachReasonRecordingMOS());
            tempVo.setCorrectionComments(breachparent.getCorrectionComments());
            if( breachparent.getCorrectionAuthoringInfoIsNotNull())
            {
                RecordingUserInformationVo recVo = new RecordingUserInformationVo();
                recVo.setRecordingDateTime(breachparent.getCorrectionAuthoringInfo().getRecordingDateTime());
                recVo.setRecordingUser(breachparent.getCorrectionAuthoringInfo().getRecordingUser());
                tempVo.setCorrectionAuthoringInfo(recVo);
            }
            tempVo.setCorrected(breachparent.getCorrected());

            tempColl.add(tempVo);


        }
    }

    return tempColl;


}
项目:openMAXIMS    文件:Logic.java   
private RecordingUserInformationVo getRecordingInfo()
{
    Object currentLoggedInUser = domain.getMosUser();
    if (currentLoggedInUser == null || !(currentLoggedInUser instanceof MemberOfStaffLiteVo))
        return null;    
    RecordingUserInformationVo recInfoVo = new RecordingUserInformationVo();
    recInfoVo.setRecordingUser((MemberOfStaffLiteVo) currentLoggedInUser);
    recInfoVo.setRecordingDateTime(new DateTime());

    return recInfoVo;
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordingInfoLabels(RecordingUserInformationVo recInfoVo)
{
    if (recInfoVo == null)
        return;

    String hcp = recInfoVo.getRecordingUser() != null ? recInfoVo.getRecordingUser().getIMosName() : " ";
    form.lyrCommentWizard().tabPageDetails().lblRecordedByValue().setValue(hcp != null && hcp.length() > 30 ? hcp.substring(0, 30) : hcp);
    form.lyrCommentWizard().tabPageDetails().lblRecordedByValue().setTooltip(hcp);

    form.lyrCommentWizard().tabPageDetails().lblRecDateTimValue().setValue(recInfoVo.getRecordingDateTime() != null ? recInfoVo.getRecordingDateTime().toString() : " ");
}
项目:openMAXIMS    文件:Logic.java   
private DischargedEpisodeForClinicalCodingWorklistVo populateDataFromScreen(DischargedEpisodeForClinicalCodingWorklistVo dischargedEpisode)
{

    CodingDelayVo codingDelay=null;
    if (dischargedEpisode.getCodingDelay()==null)
        codingDelay = new CodingDelayVo();
    else
        codingDelay = (CodingDelayVo) dischargedEpisode.getCodingDelay().clone();

    codingDelay.setPatient(form.getGlobalContext().Core.getPatientShort());
    codingDelay.setCodingDelayReason(form.cmbCodingDelayReason().getValue());
    codingDelay.setCodingDelayReasonText(form.txtCodingDelayReason().getValue());

    if (codingDelay.getRecordingInfo()==null)
    {
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingDateTime(form.dtimRecordingDateTime().getValue());
        voRecordingUserInformation.setRecordingUser(form.cmbRecordingUser().getValue());
        codingDelay.setRecordingInfo(voRecordingUserInformation);
    }
    else
    {
        codingDelay.getRecordingInfo().setRecordingDateTime(form.dtimRecordingDateTime().getValue());
        codingDelay.getRecordingInfo().setRecordingUser(form.cmbRecordingUser().getValue());
    }

    dischargedEpisode.setCodingDelay(codingDelay);

    return dischargedEpisode;

}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralForRejectionVo populateDataFromScreen(ClinicalReferralForRejectionVo clinicalReferral) 
{
    if(clinicalReferral instanceof ClinicalReferralForRejectionVo)
    {
        clinicalReferral = (ClinicalReferralForRejectionVo) clinicalReferral.clone();

        //wdev-20312
        RecordingUserInformationVo recInfo = populateRecordingUserInfo();

        ClinicalReferralNotesVo note = populateNoteDataFromScreen(recInfo);

        if( clinicalReferral.getClinicalReferralNotes() == null)
            clinicalReferral.setClinicalReferralNotes(new ClinicalReferralNotesVoCollection()); 
        clinicalReferral.getClinicalReferralNotes().add(note);

        //----------

        ClinicalReferralStatusVo status = createStatus();
        clinicalReferral.setCurrentReferralStatus(status);

        if(clinicalReferral.getHistoryOfReferralStatus() == null)
        {
            clinicalReferral.setHistoryOfReferralStatus(new ClinicalReferralStatusVoCollection());
        }

        clinicalReferral.getHistoryOfReferralStatus().add(status);

        clinicalReferral.setAcknowledgeRejection(Boolean.FALSE);
    }

    return clinicalReferral;
}
项目:openMAXIMS    文件:Logic.java   
private RecordingUserInformationVo populateRecordingUserInfo()
{
    RecordingUserInformationVo recInfoVo = new RecordingUserInformationVo();
    recInfoVo.setRecordingUser(getRecordingUser());
    recInfoVo.setRecordingDateTime(new DateTime());
    return recInfoVo;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralNotesVo populateNoteDataFromScreen(RecordingUserInformationVo recordingInfoVo)
{
    ClinicalReferralNotesVo note = new ClinicalReferralNotesVo();
    String noteRejection = new String();

    if( form.cmbRejectionReason().getValue() != null  )
    {
        noteRejection += "Rejection Reason: " +  form.cmbRejectionReason().getValue().getIItemText() ;
    }

    if( form.txtRejectionReason().getValue() != null && !form.txtRejectionReason().getValue().equals(""))
    {
        if( form.cmbRejectionReason().getValue() != null)
            noteRejection += " , Rejection Reason Comment: " + form.txtRejectionReason().getValue();
        else
            noteRejection += " Rejection Reason Comment: " + form.txtRejectionReason().getValue();
    }
    //else
    //{
    //  note.setNote(form.cmbRejectionReason().getValue() != null ? form.cmbRejectionReason().getValue().getIItemText():null);
    //}
    note.setNote(noteRejection);
    note.setNoteType(ClinicalReferralNoteType.REFERRAL_REJECTION);
    note.setRecordingInfo(recordingInfoVo);

    return note;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralsVo populateDataFromArgumentAndScreen(ClinicalReferralsVo referral, boolean isReferralStatusUpdated)
{
    if (referral == null)
        return null;

    ClinicalReferralsVo argsReferralToSave = (ClinicalReferralsVo) referral.clone(); //WDEV-18975

    RecordingUserInformationVo recInfo = populateRecordingUserInfo();

    ClinicalReferralNotesVo note = populateNoteDataFromScreen(recInfo);

    if (argsReferralToSave.getClinicalReferralNotes() == null)
        argsReferralToSave.setClinicalReferralNotes(new ClinicalReferralNotesVoCollection()); 
    argsReferralToSave.getClinicalReferralNotes().add(note);

    if (isReferralStatusUpdated)
    {
        ClinicalReferralStatusVo status = populateFullStatusData(recInfo);
        if (argsReferralToSave.getHistoryOfReferralStatus() == null)
            argsReferralToSave.setHistoryOfReferralStatus(new ClinicalReferralStatusVoCollection());

        argsReferralToSave.setCurrentReferralStatus(status);
        argsReferralToSave.getHistoryOfReferralStatus().add(status);
    }

    return argsReferralToSave;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralToUpdateForClinicalReferralNoteVo populateDataFromScreen(ClinicalReferralsRefVo clinicalReferralRef, boolean isReferralStatusUpdated)
{
    if (clinicalReferralRef == null)
        return null;
    if (form.getLocalContext().getClinicalReferralToUpdateForClinicalReferralNoteVo() == null)
        return null;
    ClinicalReferralToUpdateForClinicalReferralNoteVo referralToSave = (ClinicalReferralToUpdateForClinicalReferralNoteVo) form.getLocalContext().getClinicalReferralToUpdateForClinicalReferralNoteVo().clone(); //wdev-18961 //WDEV-18975

    boolean isOutpatientReferral = referralToSave != null && (ClinicalReferralType.IP_TO_BE_SEEN_AS_OUTPATIENT.equals(referralToSave.getReferralType()) || ClinicalReferralType.OP_TO_BE_SEEN_AS_OUTPATIENT.equals(referralToSave.getReferralType()));

    RecordingUserInformationVo recInfo = populateRecordingUserInfo();

    ClinicalReferralNotesVo note = populateNoteDataFromScreen(recInfo);

    if (referralToSave.getClinicalReferralNotes() == null)
        referralToSave.setClinicalReferralNotes(new ClinicalReferralNotesVoCollection()); 
    referralToSave.getClinicalReferralNotes().add(note);

    if (isReferralStatusUpdated)
    {
        ClinicalReferralStatusLiteVo status = populateLiteStatusData(recInfo, isOutpatientReferral);
        if (referralToSave.getHistoryOfReferralStatus() == null)
            referralToSave.setHistoryOfReferralStatus(new ClinicalReferralStatusLiteVoCollection());

        referralToSave.setCurrentReferralStatus(status);
        referralToSave.getHistoryOfReferralStatus().add(status);
    }

    return referralToSave;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralNotesVo populateNoteDataFromScreen(RecordingUserInformationVo recordingInfoVo)
{
    ClinicalReferralNotesVo note = new ClinicalReferralNotesVo();
    note.setNote(form.txtNote().getValue());
    note.setNoteType(form.cmbNoteType().getValue());
    note.setRecordingInfo(recordingInfoVo);

    return note;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralStatusVo populateFullStatusData(RecordingUserInformationVo recordingInfoVo) 
{
    ClinicalReferralStatusVo newStatus = new ClinicalReferralStatusVo();
    newStatus.setRecordingInfo(recordingInfoVo);
    newStatus.setReferralStatus(form.getLocalContext().getReferralStatusToSave());
    return newStatus;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralStatusLiteVo populateLiteStatusData(RecordingUserInformationVo recordingInfoVo, boolean isOutpatientReferral) 
{
    ClinicalReferralStatusLiteVo newStatus = new ClinicalReferralStatusLiteVo();
    newStatus.setRecordingInfo(recordingInfoVo);
    newStatus.setReferralStatus(form.getLocalContext().getReferralStatusToSave());

    //WDEV-18948
    if (InternalReferralStatus.ACCEPTED.equals(form.getLocalContext().getReferralStatusToSave()))
        newStatus.setAppointmentRequired(isOutpatientReferral ? Boolean.TRUE : Boolean.FALSE);

    return newStatus;
}
项目:openMAXIMS    文件:Logic.java   
private RecordingUserInformationVo populateRecordingUserInfo()
{
    RecordingUserInformationVo recInfoVo = new RecordingUserInformationVo();
    recInfoVo.setRecordingUser(getRecordingUser());
    recInfoVo.setRecordingDateTime(new DateTime());
    return recInfoVo;
}
项目:openMAXIMS    文件:Logic.java   
private ClinicalReferralStatusForEventDialogVo createNewCurrentStatus()
{
    ClinicalReferralStatusForEventDialogVo newStatus = new ClinicalReferralStatusForEventDialogVo();

    newStatus.setReferralStatus(form.cmbNewStatus().getValue());

    newStatus.setInternalReferralStatusChangeReason(form.cmbCangeReason().getValue());

    RecordingUserInformationVo recordingInformation = new RecordingUserInformationVo();
    recordingInformation.setRecordingDateTime(new DateTime());
    recordingInformation.setRecordingUser((MemberOfStaffLiteVo) domain.getMosUser());
    newStatus.setRecordingInfo(recordingInformation);

    return newStatus;
}
项目:openMAXIMS    文件:Logic.java   
private RecordingUserInformationVo getRecordinguser()
{
    RecordingUserInformationVo recordingInfo = new RecordingUserInformationVo();
    recordingInfo.setRecordingDateTime(form.dtimRecordingDateTime().getValue());
    recordingInfo.setRecordingUser((MemberOfStaffLiteVo) form.ccRecordingUser().getValue());

    return recordingInfo;
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException {

    PatientSECSVo patientSecs = new PatientSECSVo();

    patientSecs.setAuthoringInformation(form.customControlAuthoringInfo().getValue());
    if(patientSecs.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        patientSecs.setRecordingInformation(voRecordingUserInformation);
    }
    patientSecs.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    patientSecs.setVitalSign(form.getGlobalContext().Core.getVitalSign());
    if(form.GroupEscalated().getValue().equals(GenForm.GroupEscalatedEnumeration.rdoEscYes))
        patientSecs.setEscalated(Boolean.TRUE);
    else if(form.GroupEscalated().getValue().equals(GenForm.GroupEscalatedEnumeration.rdoEscNo))
        patientSecs.setEscalated(Boolean.FALSE);
    if(form.txtScore().getValue()!=null)
        patientSecs.setSECSScore(Integer.valueOf(form.txtScore().getValue()));
    patientSecs.setScoreDetails(form.lblOriginOfScore().getValue());
    patientSecs.setActionTaken(form.txtActionTaken().getValue());


    String[] arrErrors = patientSecs.validate();
    if(arrErrors == null)
    {
        try {
            domain.savePatientSECS(patientSecs);
        } catch (StaleObjectException e) {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return;
        }
    }
    else
    {
        engine.showErrors("Validation Errors", arrErrors);
        return; 
    }

    engine.close(DialogResult.OK);

}
项目:AvoinApotti    文件:Logic.java   
protected SocialHistoryVo populateDataFromScreen(SocialHistoryVo value)
{
    if(validateMaritalDate())
        return null;


    value = super.populateDataFromScreen(value);

    //SystemInformation sysInfo = new SystemInformation();
    //sysInfo.setCreationDateTime(new DateTime());

    value.setSocialHistoryNotes(this.form.txtGeneralNotes().getValue());

    // ----- Start of grdSmokingDetails Grid --------------------------
    value.setSmokingDetails(new ims.core.vo.SmokingDetailsCollection());
    for (int x = 0; x < this.form.grdSmokingDetails().getRows().size(); x++)
    {
        boolean bAddVO = false;
        ims.core.vo.SmokingDetails rowValue = this.form.grdSmokingDetails().getRows().get(x).getValue();
        if (rowValue == null)
            rowValue = new ims.core.vo.SmokingDetails();

        rowValue.setStatus(this.form.grdSmokingDetails().getRows().get(x).getColStatus());
        bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColStatus() != null ? true : false;

        rowValue.setSmokingWhat(this.form.grdSmokingDetails().getRows().get(x).getColWhat());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColWhat() != null ? true : false;

        rowValue.setAmountPerDay(this.form.grdSmokingDetails().getRows().get(x).getColAmt());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColAmt() != null ? true : false;

        rowValue.setNumberOfYears(this.form.grdSmokingDetails().getRows().get(x).getColNrYrs());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColNrYrs() != null ? true : false;

        rowValue.setWhenStopped(this.form.grdSmokingDetails().getRows().get(x).getColWhenStopped());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColWhenStopped() != null ? true : false;

        if (bAddVO && value.getSmokingDetailsIsNotNull())
            value.getSmokingDetails().add(rowValue);
    }
    // ----- End of grdSmokingDetails Grid ----------------------------
    value.setAuthoringInformation(form.customControlAuth().getValue());

    AlcoholVo alcohol = new AlcoholVo();
    alcohol.setDoYouDrinkAlcohol(form.cmbAlcoholStatus().getValue());
    alcohol.setUnitsPerDay(form.intUnitsPerDay().getValue());
    alcohol.setDescriptiveHistory(form.txtTakenLastWeek().getValue());

    value.setAlcohol(alcohol);

    // Save Marital Status Info
    SocialHistoryMaritalStatusVo voMaritalStatus = new SocialHistoryMaritalStatusVo();
    voMaritalStatus.setMaritalStatus(form.cmbMaritalStat().getValue());

    voMaritalStatus.setStatusDate(form.pdtMaritalStatus().getValue());
    value.setMaritalStatus(voMaritalStatus);

    if(value.getIllicitDrugsList() == null)
        value.setIllicitDrugsList(new IllicitDrugsVo());

    value = populateDataFromIllicitDrugsGrid(value);
    value.getIllicitDrugsList().setDrugsUsedIntravenously(form.ansIVUser().getValue());

    //WDEV-12901 set Recording Information
    if(value.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        value.setRecordingInformation(voRecordingUserInformation);
    }

    return value;
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws PresentationLogicException {

    PatientSECSVo patientSecs = new PatientSECSVo();

    patientSecs.setAuthoringInformation(form.customControlAuthoringInfo().getValue());
    if(patientSecs.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        patientSecs.setRecordingInformation(voRecordingUserInformation);
    }
    patientSecs.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
    patientSecs.setVitalSign(form.getGlobalContext().Core.getVitalSign());
    if(form.GroupEscalated().getValue().equals(GenForm.GroupEscalatedEnumeration.rdoEscYes))
        patientSecs.setEscalated(Boolean.TRUE);
    else if(form.GroupEscalated().getValue().equals(GenForm.GroupEscalatedEnumeration.rdoEscNo))
        patientSecs.setEscalated(Boolean.FALSE);
    if(form.txtScore().getValue()!=null)
        patientSecs.setSECSScore(Integer.valueOf(form.txtScore().getValue()));
    patientSecs.setScoreDetails(form.getGlobalContext().Core.getVitalSignsEscalationText());
    patientSecs.setActionTaken(form.txtActionTaken().getValue());

    //WDEV-20311
    patientSecs.setOBSProtocolType(form.getLocalContext().getSECSVo()!=null ? form.getLocalContext().getSECSVo().getOBSProtocolType() : null);

    String[] arrErrors = patientSecs.validate();
    if(arrErrors == null)
    {
        try {
            domain.savePatientSECS(patientSecs);
        } catch (StaleObjectException e) {
            engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            return;
        }
    }
    else
    {
        engine.showErrors("Validation Errors", arrErrors);
        return; 
    }

    engine.close(DialogResult.OK);

}
项目:openMAXIMS    文件:Logic.java   
protected SocialHistoryVo populateDataFromScreen(SocialHistoryVo value)
{
    if(validateMaritalDate())
        return null;


    value = super.populateDataFromScreen(value);

    //SystemInformation sysInfo = new SystemInformation();
    //sysInfo.setCreationDateTime(new DateTime());

    value.setSocialHistoryNotes(this.form.txtGeneralNotes().getValue());

    // ----- Start of grdSmokingDetails Grid --------------------------
    value.setSmokingDetails(new ims.core.vo.SmokingDetailsCollection());
    for (int x = 0; x < this.form.grdSmokingDetails().getRows().size(); x++)
    {
        boolean bAddVO = false;
        ims.core.vo.SmokingDetails rowValue = this.form.grdSmokingDetails().getRows().get(x).getValue();
        if (rowValue == null)
            rowValue = new ims.core.vo.SmokingDetails();

        rowValue.setStatus(this.form.grdSmokingDetails().getRows().get(x).getColStatus());
        bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColStatus() != null ? true : false;

        rowValue.setSmokingWhat(this.form.grdSmokingDetails().getRows().get(x).getColWhat());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColWhat() != null ? true : false;

        rowValue.setAmountPerDay(this.form.grdSmokingDetails().getRows().get(x).getColAmt());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColAmt() != null ? true : false;

        rowValue.setNumberOfYears(this.form.grdSmokingDetails().getRows().get(x).getColNrYrs());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColNrYrs() != null ? true : false;

        rowValue.setWhenStopped(this.form.grdSmokingDetails().getRows().get(x).getColWhenStopped());
        if (bAddVO == false)
            bAddVO = this.form.grdSmokingDetails().getRows().get(x).getColWhenStopped() != null ? true : false;

        if (bAddVO && value.getSmokingDetailsIsNotNull())
            value.getSmokingDetails().add(rowValue);
    }
    // ----- End of grdSmokingDetails Grid ----------------------------
    value.setAuthoringInformation(form.customControlAuth().getValue());

    AlcoholVo alcohol = new AlcoholVo();
    alcohol.setDoYouDrinkAlcohol(form.cmbAlcoholStatus().getValue());
    alcohol.setUnitsPerDay(form.intUnitsPerDay().getValue());
    alcohol.setDescriptiveHistory(form.txtTakenLastWeek().getValue());

    value.setAlcohol(alcohol);

    // Save Marital Status Info
    SocialHistoryMaritalStatusVo voMaritalStatus = new SocialHistoryMaritalStatusVo();
    voMaritalStatus.setMaritalStatus(form.cmbMaritalStat().getValue());

    voMaritalStatus.setStatusDate(form.pdtMaritalStatus().getValue());
    value.setMaritalStatus(voMaritalStatus);

    if(value.getIllicitDrugsList() == null)
        value.setIllicitDrugsList(new IllicitDrugsVo());

    value = populateDataFromIllicitDrugsGrid(value);
    value.getIllicitDrugsList().setDrugsUsedIntravenously(form.ansIVUser().getValue());

    //WDEV-12901 set Recording Information
    if(value.getRecordingInformation()==null){
        RecordingUserInformationVo voRecordingUserInformation = new RecordingUserInformationVo();
        voRecordingUserInformation.setRecordingUser(form.cmbRecordingHCP().getValue());
        voRecordingUserInformation.setRecordingDateTime(new DateTime());
        value.setRecordingInformation(voRecordingUserInformation);
    }

    return value;
}
项目:openMAXIMS    文件:Logic.java   
private void populateGlobalContext()
{

    String[] errors = validateUiRules();

    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return;
    }

    BreachReasonCorrectionVo correctionDetails = new BreachReasonCorrectionVo();

    RecordingUserInformationVo recordingInfo = new RecordingUserInformationVo();

    recordingInfo.setRecordingUser((MemberOfStaffLiteVo) form.ccMOS().getValue());
    recordingInfo.setRecordingDateTime(form.dtimAuthoring().getValue());

    correctionDetails.setAuthoringInformation(recordingInfo);
    correctionDetails.setCorrectionComments(form.richTextCorrectionComments().getValue());

    form.getGlobalContext().Pathways.setBreachReasonCorrectionData(correctionDetails);

    engine.close(DialogResult.OK);

}