public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*suitableForSurgeryAssessment* :"); if (suitableForSurgeryAssessment != null) { auditStr.append(toShortClassName(suitableForSurgeryAssessment)); auditStr.append(suitableForSurgeryAssessment.getId()); } auditStr.append("; "); auditStr.append("\r\n*fitForSurgeryAssesment* :"); if (fitForSurgeryAssesment != null) { auditStr.append(toShortClassName(fitForSurgeryAssesment)); auditStr.append(fitForSurgeryAssesment.getId()); } auditStr.append("; "); return auditStr.toString(); }
/** * Update the ValueObject with the Domain Object. * * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param valueObject to be updated * @param domainObject ims.core.admin.domain.objects.CareContext */ public static ims.core.vo.CareContextMinVo insert( DomainObjectMap map, ims.core.vo.CareContextMinVo valueObject, ims.core.admin.domain.objects.CareContext domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } valueObject.setID_CareContext(domainObject.getId()); valueObject.setIsRIE(domainObject.getIsRIE()); // If this is a recordedInError record, and the domainObject // value isIncludeRecord has not been set, then we return null and // not the value object if (valueObject.getIsRIE() != null && valueObject.getIsRIE().booleanValue() == true && !domainObject.isIncludeRecord()) return null; // If this is not a recordedInError record, and the domainObject // value isIncludeRecord has been set, then we return null and // not the value object if ((valueObject.getIsRIE() == null || valueObject.getIsRIE().booleanValue() == false) && domainObject.isIncludeRecord()) return null; // EpisodeOfCare valueObject.setEpisodeOfCare( ims.core.vo.domain.EpisodeOfCareForPatientDocumentsVoAssembler.create( map, domainObject.getEpisodeOfCare())); // StartDateTime java.util.Date StartDateTime = domainObject.getStartDateTime(); if (null != StartDateTime) { valueObject.setStartDateTime(new ims.framework.utils.DateTime(StartDateTime)); } // ResponsibleHCP if (domainObject.getResponsibleHCP() != null) { if (domainObject.getResponsibleHCP() instanceof HibernateProxy) // If the proxy is set, there is no need to lazy load, the proxy knows the // id already. { HibernateProxy p = (HibernateProxy) domainObject.getResponsibleHCP(); int id = Integer.parseInt(p.getHibernateLazyInitializer().getIdentifier().toString()); valueObject.setResponsibleHCP(new ims.core.resource.people.vo.HcpRefVo(id, -1)); } else { valueObject.setResponsibleHCP( new ims.core.resource.people.vo.HcpRefVo( domainObject.getResponsibleHCP().getId(), domainObject.getResponsibleHCP().getVersion())); } } return valueObject; }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*patient* :"); if (patient != null) { auditStr.append(toShortClassName(patient)); auditStr.append(patient.getId()); } auditStr.append("; "); auditStr.append("\r\n*episode* :"); if (episode != null) { auditStr.append(toShortClassName(episode)); auditStr.append(episode.getId()); } auditStr.append("; "); auditStr.append("\r\n*attendance* :"); if (attendance != null) { auditStr.append(toShortClassName(attendance)); auditStr.append(attendance.getId()); } auditStr.append("; "); auditStr.append("\r\n*trackingArea* :"); if (trackingArea != null) { auditStr.append(toShortClassName(trackingArea)); auditStr.append(trackingArea.getId()); } auditStr.append("; "); auditStr.append("\r\n*sentDateTime* :"); auditStr.append(sentDateTime); auditStr.append("; "); auditStr.append("\r\n*sentBy* :"); if (sentBy != null) { auditStr.append(toShortClassName(sentBy)); auditStr.append(sentBy.getId()); } auditStr.append("; "); auditStr.append("\r\n*returnedDateTime* :"); auditStr.append(returnedDateTime); auditStr.append("; "); return auditStr.toString(); }
/** * Create the ValueObject from the ims.core.admin.domain.objects.CareContext object. * * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param domainObject */ public static ims.core.vo.CareContextSmallVo create( DomainObjectMap map, ims.core.admin.domain.objects.CareContext domainObject) { if (null == domainObject) { return null; } // check if the domainObject already has a valueObject created for it ims.core.vo.CareContextSmallVo valueObject = (ims.core.vo.CareContextSmallVo) map.getValueObject(domainObject, ims.core.vo.CareContextSmallVo.class); if (null == valueObject) { valueObject = new ims.core.vo.CareContextSmallVo(domainObject.getId(), domainObject.getVersion()); map.addValueObject(domainObject, valueObject); valueObject = insert(map, valueObject, domainObject); } return valueObject; }
private MedicationDetails getMedicationDetailsFromCareContext(CareContext careContext) { DomainFactory factory = getDomainFactory(); MedicationDetails md; List<?> medicationDetailsList = factory.find( "select md from MedicationDetails md left join md.careContext cc where cc.id = :CC", new String[] {"CC"}, new Object[] {careContext.getId()}); if (medicationDetailsList == null || medicationDetailsList.size() == 0 || medicationDetailsList.get(0) == null) { // Create one md = new MedicationDetails(); md.setCareContext(careContext); md.setTTARequired(getDomLookup(TTORequired.REQUIRED)); return md; } return (MedicationDetails) medicationDetailsList.get(0); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*itemCategory* :"); if (itemCategory != null) auditStr.append(itemCategory.getText()); auditStr.append("; "); auditStr.append("\r\n*itemType* :"); if (itemType != null) auditStr.append(itemType.getText()); auditStr.append("; "); auditStr.append("\r\n*supplier* :"); if (supplier != null) auditStr.append(supplier.getText()); auditStr.append("; "); auditStr.append("\r\n*dateRequired* :"); auditStr.append(dateRequired); auditStr.append("; "); auditStr.append("\r\n*dateSupplied* :"); auditStr.append(dateSupplied); auditStr.append("; "); auditStr.append("\r\n*suppliedFor* :"); if (suppliedFor != null) auditStr.append(suppliedFor.getText()); auditStr.append("; "); auditStr.append("\r\n*loan* :"); if (loan != null) auditStr.append(loan.getText()); auditStr.append("; "); auditStr.append("\r\n*fundedBy* :"); if (fundedBy != null) auditStr.append(fundedBy.getText()); auditStr.append("; "); auditStr.append("\r\n*clinicalContact* :"); if (clinicalContact != null) { auditStr.append(toShortClassName(clinicalContact)); auditStr.append(clinicalContact.getId()); } auditStr.append("; "); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); return auditStr.toString(); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*dischargeLetterStatus* :"); if (dischargeLetterStatus != null) auditStr.append(dischargeLetterStatus.getText()); auditStr.append("; "); auditStr.append("\r\n*admissionDateTime* :"); auditStr.append(admissionDateTime); auditStr.append("; "); auditStr.append("\r\n*tTAStatus* :"); if (tTAStatus != null) auditStr.append(tTAStatus.getText()); auditStr.append("; "); auditStr.append("\r\n*hasHadAnyProceduresPerformed* :"); if (hasHadAnyProceduresPerformed != null) auditStr.append(hasHadAnyProceduresPerformed.getText()); auditStr.append("; "); auditStr.append("\r\n*additonalClinicalInfo* :"); if (additonalClinicalInfo != null) auditStr.append(additonalClinicalInfo.getText()); auditStr.append("; "); auditStr.append("\r\n*dischargeSupplementaryLetterStatus* :"); if (dischargeSupplementaryLetterStatus != null) auditStr.append(dischargeSupplementaryLetterStatus.getText()); auditStr.append("; "); auditStr.append("\r\n*summaryDetails* :"); if (summaryDetails != null) { int i8 = 0; for (i8 = 0; i8 < summaryDetails.size(); i8++) { if (i8 > 0) auditStr.append(","); ims.edischarge.domain.objects.SummaryDetail obj = (ims.edischarge.domain.objects.SummaryDetail) summaryDetails.get(i8); if (obj != null) { if (i8 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } } if (i8 > 0) auditStr.append("] " + i8); } auditStr.append("; "); auditStr.append("\r\n*dischargeDocuments* :"); if (dischargeDocuments != null) { java.util.Iterator it9 = dischargeDocuments.iterator(); int i9 = 0; while (it9.hasNext()) { if (i9 > 0) auditStr.append(","); ims.core.documents.domain.objects.PatientDocument obj = (ims.core.documents.domain.objects.PatientDocument) it9.next(); if (obj != null) { if (i9 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i9++; } if (i9 > 0) auditStr.append("] " + i9); } auditStr.append("; "); auditStr.append("\r\n*dischargeDetails* :"); if (dischargeDetails != null) { auditStr.append(toShortClassName(dischargeDetails)); auditStr.append(dischargeDetails.getId()); } auditStr.append("; "); auditStr.append("\r\n*wasPatientDischargedThenUndone* :"); auditStr.append(wasPatientDischargedThenUndone); auditStr.append("; "); return auditStr.toString(); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*clinicalContact* :"); if (clinicalContact != null) { auditStr.append(toShortClassName(clinicalContact)); auditStr.append(clinicalContact.getId()); } auditStr.append("; "); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*authoringInformation* :"); if (authoringInformation != null) { auditStr.append(toShortClassName(authoringInformation)); auditStr.append(authoringInformation.toString()); } auditStr.append("; "); auditStr.append("\r\n*startDateTime* :"); auditStr.append(startDateTime); auditStr.append("; "); auditStr.append("\r\n*startHCP* :"); if (startHCP != null) { auditStr.append(toShortClassName(startHCP)); auditStr.append(startHCP.getId()); } auditStr.append("; "); auditStr.append("\r\n*levelOfIntervention* :"); auditStr.append(levelOfIntervention); auditStr.append("; "); auditStr.append("\r\n*group* :"); if (group != null) auditStr.append(group.getText()); auditStr.append("; "); auditStr.append("\r\n*title* :"); auditStr.append(title); auditStr.append("; "); auditStr.append("\r\n*status* :"); if (status != null) auditStr.append(status.getText()); auditStr.append("; "); auditStr.append("\r\n*resolvedDateTime* :"); auditStr.append(resolvedDateTime); auditStr.append("; "); auditStr.append("\r\n*resolvingHCP* :"); if (resolvingHCP != null) { auditStr.append(toShortClassName(resolvingHCP)); auditStr.append(resolvingHCP.getId()); } auditStr.append("; "); auditStr.append("\r\n*confirmingDateTime* :"); auditStr.append(confirmingDateTime); auditStr.append("; "); auditStr.append("\r\n*confirmingHCP* :"); if (confirmingHCP != null) { auditStr.append(toShortClassName(confirmingHCP)); auditStr.append(confirmingHCP.getId()); } auditStr.append("; "); auditStr.append("\r\n*actions* :"); if (actions != null) { java.util.Iterator it14 = actions.iterator(); int i14 = 0; while (it14.hasNext()) { if (i14 > 0) auditStr.append(","); ims.nursing.domain.objects.PlanOfCareActions obj = (ims.nursing.domain.objects.PlanOfCareActions) it14.next(); if (obj != null) { if (i14 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i14++; } if (i14 > 0) auditStr.append("] " + i14); } auditStr.append("; "); auditStr.append("\r\n*assessmentQuestion* :"); if (assessmentQuestion != null) { auditStr.append(toShortClassName(assessmentQuestion)); auditStr.append(assessmentQuestion.getId()); } auditStr.append("; "); auditStr.append("\r\n*answerHistory* :"); if (answerHistory != null) { java.util.Iterator it16 = answerHistory.iterator(); int i16 = 0; while (it16.hasNext()) { if (i16 > 0) auditStr.append(","); ims.nursing.domain.objects.PlanOfCareHistory obj = (ims.nursing.domain.objects.PlanOfCareHistory) it16.next(); if (obj != null) { if (i16 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i16++; } if (i16 > 0) auditStr.append("] " + i16); } auditStr.append("; "); return auditStr.toString(); }
/** * Update the ValueObject with the Domain Object. * * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param valueObject to be updated * @param domainObject ims.core.admin.domain.objects.CareContext */ public static ims.core.vo.CareContextSmallVo insert( DomainObjectMap map, ims.core.vo.CareContextSmallVo valueObject, ims.core.admin.domain.objects.CareContext domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } valueObject.setID_CareContext(domainObject.getId()); valueObject.setIsRIE(domainObject.getIsRIE()); // If this is a recordedInError record, and the domainObject // value isIncludeRecord has not been set, then we return null and // not the value object if (valueObject.getIsRIE() != null && valueObject.getIsRIE().booleanValue() == true && !domainObject.isIncludeRecord()) return null; // If this is not a recordedInError record, and the domainObject // value isIncludeRecord has been set, then we return null and // not the value object if ((valueObject.getIsRIE() == null || valueObject.getIsRIE().booleanValue() == false) && domainObject.isIncludeRecord()) return null; // Context ims.domain.lookups.LookupInstance instance1 = domainObject.getContext(); if (null != instance1) { ims.framework.utils.ImagePath img = null; ims.framework.utils.Color color = null; img = null; if (instance1.getImage() != null) { img = new ims.framework.utils.ImagePath( instance1.getImage().getImageId(), instance1.getImage().getImagePath()); } color = instance1.getColor(); if (color != null) color.getValue(); ims.core.vo.lookups.ContextType voLookup1 = new ims.core.vo.lookups.ContextType( instance1.getId(), instance1.getText(), instance1.isActive(), null, img, color); ims.core.vo.lookups.ContextType parentVoLookup1 = voLookup1; ims.domain.lookups.LookupInstance parent1 = instance1.getParent(); while (parent1 != null) { if (parent1.getImage() != null) { img = new ims.framework.utils.ImagePath( parent1.getImage().getImageId(), parent1.getImage().getImagePath()); } else { img = null; } color = parent1.getColor(); if (color != null) color.getValue(); parentVoLookup1.setParent( new ims.core.vo.lookups.ContextType( parent1.getId(), parent1.getText(), parent1.isActive(), null, img, color)); parentVoLookup1 = parentVoLookup1.getParent(); parent1 = parent1.getParent(); } valueObject.setContext(voLookup1); } // StartDateTime java.util.Date StartDateTime = domainObject.getStartDateTime(); if (null != StartDateTime) { valueObject.setStartDateTime(new ims.framework.utils.DateTime(StartDateTime)); } // EndDateTime java.util.Date EndDateTime = domainObject.getEndDateTime(); if (null != EndDateTime) { valueObject.setEndDateTime(new ims.framework.utils.DateTime(EndDateTime)); } // CareContextHistory valueObject.setCareContextHistory( ims.core.vo.domain.CareContextHistVoAssembler .createCareContextHistVoCollectionFromCareContextHistory( map, domainObject.getCareContextHistory())); return valueObject; }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*authoringInformation* :"); if (authoringInformation != null) { auditStr.append(toShortClassName(authoringInformation)); auditStr.append(authoringInformation.toString()); } auditStr.append("; "); auditStr.append("\r\n*intraOperativeCareRecord* :"); if (intraOperativeCareRecord != null) { auditStr.append(toShortClassName(intraOperativeCareRecord)); auditStr.append(intraOperativeCareRecord.getId()); } auditStr.append("; "); auditStr.append("\r\n*preOperativeDiagnosis* :"); auditStr.append(preOperativeDiagnosis); auditStr.append("; "); auditStr.append("\r\n*antibiotics* :"); auditStr.append(antibiotics); auditStr.append("; "); auditStr.append("\r\n*vTE* :"); auditStr.append(vTE); auditStr.append("; "); auditStr.append("\r\n*incision* :"); auditStr.append(incision); auditStr.append("; "); auditStr.append("\r\n*findings* :"); auditStr.append(findings); auditStr.append("; "); auditStr.append("\r\n*procedure* :"); auditStr.append(procedure); auditStr.append("; "); auditStr.append("\r\n*complications* :"); auditStr.append(complications); auditStr.append("; "); auditStr.append("\r\n*closure* :"); auditStr.append(closure); auditStr.append("; "); auditStr.append("\r\n*lAInfiltration* :"); auditStr.append(lAInfiltration); auditStr.append("; "); auditStr.append("\r\n*postOpInstructions* :"); auditStr.append(postOpInstructions); auditStr.append("; "); auditStr.append("\r\n*eBI* :"); auditStr.append(eBI); auditStr.append("; "); auditStr.append("\r\n*followUpType* :"); if (followUpType != null) auditStr.append(followUpType.getText()); auditStr.append("; "); auditStr.append("\r\n*followUpTypeIn* :"); if (followUpTypeIn != null) auditStr.append(followUpTypeIn.getText()); auditStr.append("; "); return auditStr.toString(); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*authoringInformation* :"); if (authoringInformation != null) { auditStr.append(toShortClassName(authoringInformation)); auditStr.append(authoringInformation.toString()); } auditStr.append("; "); auditStr.append("\r\n*procedure* :"); if (procedure != null) { auditStr.append(toShortClassName(procedure)); auditStr.append(procedure.getId()); } auditStr.append("; "); auditStr.append("\r\n*theatreType* :"); if (theatreType != null) auditStr.append(theatreType.getText()); auditStr.append("; "); auditStr.append("\r\n*historyPresComplaint* :"); auditStr.append(historyPresComplaint); auditStr.append("; "); auditStr.append("\r\n*examination* :"); auditStr.append(examination); auditStr.append("; "); auditStr.append("\r\n*conclusions* :"); auditStr.append(conclusions); auditStr.append("; "); auditStr.append("\r\n*suitableForSurgery* :"); if (suitableForSurgery != null) auditStr.append(suitableForSurgery.getText()); auditStr.append("; "); auditStr.append("\r\n*reasonNotSuitable* :"); if (reasonNotSuitable != null) auditStr.append(reasonNotSuitable.getText()); auditStr.append("; "); auditStr.append("\r\n*notSuitableForSurgeyComments* :"); auditStr.append(notSuitableForSurgeyComments); auditStr.append("; "); auditStr.append("\r\n*suitableForSurgeryAssessment* :"); if (suitableForSurgeryAssessment != null) { auditStr.append(toShortClassName(suitableForSurgeryAssessment)); auditStr.append(suitableForSurgeryAssessment.getId()); } auditStr.append("; "); auditStr.append("\r\n*comments* :"); if (comments != null) { java.util.Iterator it12 = comments.iterator(); int i12 = 0; while (it12.hasNext()) { if (i12 > 0) auditStr.append(","); ims.RefMan.domain.objects.SuitableForSurgeryComment obj = (ims.RefMan.domain.objects.SuitableForSurgeryComment) it12.next(); if (obj != null) { if (i12 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i12++; } if (i12 > 0) auditStr.append("] " + i12); } auditStr.append("; "); auditStr.append("\r\n*procedurePerformed* :"); auditStr.append(procedurePerformed); auditStr.append("; "); auditStr.append("\r\n*suitableForSurgeryDate* :"); auditStr.append(suitableForSurgeryDate); auditStr.append("; "); auditStr.append("\r\n*requiredDurationInMins* :"); auditStr.append(requiredDurationInMins); auditStr.append("; "); auditStr.append("\r\n*anaestheticType* :"); if (anaestheticType != null) auditStr.append(anaestheticType.getText()); auditStr.append("; "); auditStr.append("\r\n*namedSurgeon* :"); if (namedSurgeon != null) { auditStr.append(toShortClassName(namedSurgeon)); auditStr.append(namedSurgeon.getId()); } auditStr.append("; "); auditStr.append("\r\n*specialEquipmentRequired* :"); auditStr.append(specialEquipmentRequired); auditStr.append("; "); auditStr.append("\r\n*specialEquipmentComments* :"); auditStr.append(specialEquipmentComments); auditStr.append("; "); auditStr.append("\r\n*specialInstructionsRequired* :"); auditStr.append(specialInstructionsRequired); auditStr.append("; "); auditStr.append("\r\n*specialInstructionsComments* :"); auditStr.append(specialInstructionsComments); auditStr.append("; "); return auditStr.toString(); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*clinicalContact* :"); if (clinicalContact != null) { auditStr.append(toShortClassName(clinicalContact)); auditStr.append(clinicalContact.getId()); } auditStr.append("; "); auditStr.append("\r\n*patient* :"); if (patient != null) { auditStr.append(toShortClassName(patient)); auditStr.append(patient.getId()); } auditStr.append("; "); auditStr.append("\r\n*investigations* :"); if (investigations != null) { java.util.Iterator it3 = investigations.iterator(); int i3 = 0; while (it3.hasNext()) { if (i3 > 0) auditStr.append(","); ims.ocrr.orderingresults.domain.objects.OrderInvestigation obj = (ims.ocrr.orderingresults.domain.objects.OrderInvestigation) it3.next(); if (obj != null) { if (i3 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i3++; } if (i3 > 0) auditStr.append("] " + i3); } auditStr.append("; "); auditStr.append("\r\n*orderedBy* :"); if (orderedBy != null) { auditStr.append(toShortClassName(orderedBy)); auditStr.append(orderedBy.getId()); } auditStr.append("; "); auditStr.append("\r\n*responsibleClinician* :"); if (responsibleClinician != null) { auditStr.append(toShortClassName(responsibleClinician)); auditStr.append(responsibleClinician.getId()); } auditStr.append("; "); auditStr.append("\r\n*responsibleGp* :"); if (responsibleGp != null) { auditStr.append(toShortClassName(responsibleGp)); auditStr.append(responsibleGp.getId()); } auditStr.append("; "); auditStr.append("\r\n*patientLocation* :"); if (patientLocation != null) { auditStr.append(toShortClassName(patientLocation)); auditStr.append(patientLocation.getId()); } auditStr.append("; "); auditStr.append("\r\n*patientClinic* :"); if (patientClinic != null) { auditStr.append(toShortClassName(patientClinic)); auditStr.append(patientClinic.getId()); } auditStr.append("; "); auditStr.append("\r\n*hcpAlerts* :"); if (hcpAlerts != null) { java.util.Iterator it9 = hcpAlerts.iterator(); int i9 = 0; while (it9.hasNext()) { if (i9 > 0) auditStr.append(","); ims.ocrr.orderingresults.domain.objects.OrderHCPAlert obj = (ims.ocrr.orderingresults.domain.objects.OrderHCPAlert) it9.next(); if (obj != null) { if (i9 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i9++; } if (i9 > 0) auditStr.append("] " + i9); } auditStr.append("; "); auditStr.append("\r\n*clinicalTrial* :"); auditStr.append(clinicalTrial); auditStr.append("; "); auditStr.append("\r\n*clinicalTrialTxt* :"); auditStr.append(clinicalTrialTxt); auditStr.append("; "); auditStr.append("\r\n*clinicalInfo* :"); if (clinicalInfo != null) { auditStr.append(toShortClassName(clinicalInfo)); auditStr.append(clinicalInfo.getId()); } auditStr.append("; "); auditStr.append("\r\n*additClinNotes* :"); auditStr.append(additClinNotes); auditStr.append("; "); auditStr.append("\r\n*patMobility* :"); if (patMobility != null) auditStr.append(patMobility.getText()); auditStr.append("; "); auditStr.append("\r\n*orderCategory* :"); if (orderCategory != null) auditStr.append(orderCategory.getText()); auditStr.append("; "); auditStr.append("\r\n*reportTo* :"); if (reportTo != null) { int i16 = 0; for (i16 = 0; i16 < reportTo.size(); i16++) { if (i16 > 0) auditStr.append(","); ims.ocrr.orderingresults.domain.objects.OcsReportTo obj = (ims.ocrr.orderingresults.domain.objects.OcsReportTo) reportTo.get(i16); if (obj != null) { if (i16 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.toString()); } } if (i16 > 0) auditStr.append("] " + i16); } auditStr.append("; "); auditStr.append("\r\n*specimens* :"); if (specimens != null) { java.util.Iterator it17 = specimens.iterator(); int i17 = 0; while (it17.hasNext()) { if (i17 > 0) auditStr.append(","); ims.ocrr.orderingresults.domain.objects.OrderSpecimen obj = (ims.ocrr.orderingresults.domain.objects.OrderSpecimen) it17.next(); if (obj != null) { if (i17 == 0) { auditStr.append(toShortClassName(obj)); auditStr.append("["); } auditStr.append(obj.getId()); } i17++; } if (i17 > 0) auditStr.append("] " + i17); } auditStr.append("; "); auditStr.append("\r\n*wasProcessed* :"); auditStr.append(wasProcessed); auditStr.append("; "); auditStr.append("\r\n*authorisationOrderStatus* :"); if (authorisationOrderStatus != null) auditStr.append(authorisationOrderStatus.getText()); auditStr.append("; "); auditStr.append("\r\n*wasDiscarded* :"); auditStr.append(wasDiscarded); auditStr.append("; "); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*orderingHospital* :"); if (orderingHospital != null) { auditStr.append(toShortClassName(orderingHospital)); auditStr.append(orderingHospital.getId()); } auditStr.append("; "); auditStr.append("\r\n*hasNewOrUpdatedResults* :"); auditStr.append(hasNewOrUpdatedResults); auditStr.append("; "); auditStr.append("\r\n*bedNumber* :"); auditStr.append(bedNumber); auditStr.append("; "); auditStr.append("\r\n*sendNumber* :"); auditStr.append(sendNumber); auditStr.append("; "); auditStr.append("\r\n*outpatientDept* :"); if (outpatientDept != null) { auditStr.append(toShortClassName(outpatientDept)); auditStr.append(outpatientDept.getId()); } auditStr.append("; "); auditStr.append("\r\n*summaryClinicalInformation* :"); auditStr.append(summaryClinicalInformation); auditStr.append("; "); auditStr.append("\r\n*bleepExtNumber* :"); auditStr.append(bleepExtNumber); auditStr.append("; "); return auditStr.toString(); }
public String toAuditString() { StringBuffer auditStr = new StringBuffer(); auditStr.append("\r\n*careContext* :"); if (careContext != null) { auditStr.append(toShortClassName(careContext)); auditStr.append(careContext.getId()); } auditStr.append("; "); auditStr.append("\r\n*dischargingNurse* :"); if (dischargingNurse != null) { auditStr.append(toShortClassName(dischargingNurse)); auditStr.append(dischargingNurse.getId()); } auditStr.append("; "); auditStr.append("\r\n*gestationWeeks* :"); auditStr.append(gestationWeeks); auditStr.append("; "); auditStr.append("\r\n*isMidwife* :"); auditStr.append(isMidwife); auditStr.append("; "); auditStr.append("\r\n*isHealthVisitor* :"); auditStr.append(isHealthVisitor); auditStr.append("; "); auditStr.append("\r\n*feeding* :"); if (feeding != null) auditStr.append(feeding.getText()); auditStr.append("; "); auditStr.append("\r\n*isVitaminKGiven* :"); auditStr.append(isVitaminKGiven); auditStr.append("; "); auditStr.append("\r\n*route* :"); if (route != null) auditStr.append(route.getText()); auditStr.append("; "); auditStr.append("\r\n*_1stPKUTestDate* :"); auditStr.append(_1stPKUTestDate); auditStr.append("; "); auditStr.append("\r\n*_2ndPKUTestDate* :"); auditStr.append(_2ndPKUTestDate); auditStr.append("; "); auditStr.append("\r\n*apgar1Minute* :"); auditStr.append(apgar1Minute); auditStr.append("; "); auditStr.append("\r\n*apgar5Minute* :"); auditStr.append(apgar5Minute); auditStr.append("; "); auditStr.append("\r\n*birthWeight* :"); auditStr.append(birthWeight); auditStr.append("; "); auditStr.append("\r\n*length* :"); auditStr.append(length); auditStr.append("; "); auditStr.append("\r\n*dischargeWeight* :"); auditStr.append(dischargeWeight); auditStr.append("; "); auditStr.append("\r\n*isComplete* :"); auditStr.append(isComplete); auditStr.append("; "); return auditStr.toString(); }