public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getIpAddress() != null) {
     sb.append("<ipAddress>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getIpAddress().toString()));
     sb.append("</ipAddress>");
   }
   if (this.getRegDateTime() != null) {
     sb.append("<regDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getRegDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</regDateTime>");
   }
   if (this.getServletContext() != null) {
     sb.append("<servletContext>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getServletContext().toString()));
     sb.append("</servletContext>");
   }
   if (this.getLastUpdated() != null) {
     sb.append("<lastUpdated>");
     sb.append(
         new ims.framework.utils.DateTime(this.getLastUpdated())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</lastUpdated>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getStartPosition() != null) {
     sb.append("<startPosition>");
     sb.append(this.getStartPosition().toXMLString());
     sb.append("</startPosition>");
   }
   if (this.getStartHeight() != null) {
     sb.append("<startHeight>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getStartHeight().toString()));
     sb.append("</startHeight>");
   }
   if (this.getStartTarget() != null) {
     sb.append("<startTarget>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getStartTarget().toString()));
     sb.append("</startTarget>");
   }
   if (this.getFinishPosition() != null) {
     sb.append("<finishPosition>");
     sb.append(this.getFinishPosition().toXMLString());
     sb.append("</finishPosition>");
   }
   if (this.getFinishHeight() != null) {
     sb.append("<finishHeight>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFinishHeight().toString()));
     sb.append("</finishHeight>");
   }
   if (this.getFinishTarget() != null) {
     sb.append("<finishTarget>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFinishTarget().toString()));
     sb.append("</finishTarget>");
   }
   if (this.getFIMScore() != null) {
     sb.append("<fIMScore>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFIMScore().toString()));
     sb.append("</fIMScore>");
   }
   if (this.getRisk() != null) {
     sb.append("<risk>");
     sb.append(this.getRisk().toXMLString());
     sb.append("</risk>");
   }
   if (this.getEquipment() != null) {
     if (this.getEquipment().size() > 0) {
       sb.append("<equipment>");
       sb.append(ims.domain.lookups.LookupInstance.toXMLString(this.getEquipment()));
       sb.append("</equipment>");
     }
   }
   if (this.getTechnique() != null) {
     if (this.getTechnique().size() > 0) {
       sb.append("<technique>");
       sb.append(ims.domain.lookups.LookupInstance.toXMLString(this.getTechnique()));
       sb.append("</technique>");
     }
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getProviderSystem() != null) {
     sb.append("<providerSystem>");
     sb.append(this.getProviderSystem().toXMLString(domMap));
     sb.append("</providerSystem>");
   }
   if (this.isWasProcessed() != null) {
     sb.append("<wasProcessed>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isWasProcessed().toString()));
     sb.append("</wasProcessed>");
   }
   if (this.isWasDiscarded() != null) {
     sb.append("<wasDiscarded>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isWasDiscarded().toString()));
     sb.append("</wasDiscarded>");
   }
   if (this.getMsgText() != null) {
     sb.append("<msgText>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getMsgText().toString()));
     sb.append("</msgText>");
   }
   if (this.getAckText() != null) {
     sb.append("<ackText>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getAckText().toString()));
     sb.append("</ackText>");
   }
   if (this.getFailureMsg() != null) {
     sb.append("<failureMsg>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFailureMsg().toString()));
     sb.append("</failureMsg>");
   }
   if (this.getMessageStatus() != null) {
     sb.append("<messageStatus>");
     sb.append(this.getMessageStatus().toXMLString());
     sb.append("</messageStatus>");
   }
   if (this.getMsgType() != null) {
     sb.append("<msgType>");
     sb.append(this.getMsgType().toXMLString());
     sb.append("</msgType>");
   }
   if (this.getQueueType() != null) {
     sb.append("<queueType>");
     sb.append(this.getQueueType().toXMLString());
     sb.append("</queueType>");
   }
   if (this.getMOS() != null) {
     sb.append("<mOS>");
     sb.append(this.getMOS().toXMLString(domMap));
     sb.append("</mOS>");
   }
   return sb.toString();
 }
Beispiel #4
0
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getLkp_provisiontype() != null) {
     sb.append("<lkp_provisiontype>");
     sb.append(this.getLkp_provisiontype().toXMLString());
     sb.append("</lkp_provisiontype>");
   }
   if (this.getPrimaryCareIdentifier() != null) {
     sb.append("<primaryCareIdentifier>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getPrimaryCareIdentifier().toString()));
     sb.append("</primaryCareIdentifier>");
   }
   if (this.getObjectidentifier() != null) {
     sb.append("<objectidentifier>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getObjectidentifier().toString()));
     sb.append("</objectidentifier>");
   }
   if (this.getBeffdate() != null) {
     sb.append("<beffdate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getBeffdate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</beffdate>");
   }
   if (this.isBeffdatecnf() != null) {
     sb.append("<beffdatecnf>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isBeffdatecnf().toString()));
     sb.append("</beffdatecnf>");
   }
   if (this.getBetdate() != null) {
     sb.append("<betdate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getBetdate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</betdate>");
   }
   if (this.isBetdatecnf() != null) {
     sb.append("<betdatecnf>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isBetdatecnf().toString()));
     sb.append("</betdatecnf>");
   }
   if (this.getGp() != null) {
     sb.append("<gp>");
     sb.append(this.getGp().toXMLString(domMap));
     sb.append("</gp>");
   }
   if (this.getPractice() != null) {
     sb.append("<practice>");
     sb.append(this.getPractice().toXMLString(domMap));
     sb.append("</practice>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getWaitingListName() != null) {
     sb.append("<waitingListName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getWaitingListName().toString()));
     sb.append("</waitingListName>");
   }
   if (this.getStartDate() != null) {
     sb.append("<startDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getStartDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</startDate>");
   }
   if (this.getEndDate() != null) {
     sb.append("<endDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getEndDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</endDate>");
   }
   if (this.getService() != null) {
     sb.append("<service>");
     sb.append(this.getService().toXMLString(domMap));
     sb.append("</service>");
   }
   if (this.getHCPs() != null) {
     if (this.getHCPs().size() > 0) {
       sb.append("<hCPs>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getHCPs(), domMap));
       sb.append("</hCPs>");
     }
   }
   if (this.getListLocations() != null) {
     if (this.getListLocations().size() > 0) {
       sb.append("<listLocations>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getListLocations(), domMap));
       sb.append("</listLocations>");
     }
   }
   if (this.getWaitingListCode() != null) {
     sb.append("<waitingListCode>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getWaitingListCode().toString()));
     sb.append("</waitingListCode>");
   }
   if (this.isIsActive() != null) {
     sb.append("<isActive>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsActive().toString()));
     sb.append("</isActive>");
   }
   return sb.toString();
 }
Beispiel #6
0
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getPatient() != null) {
     sb.append("<patient>");
     sb.append(this.getPatient().toXMLString(domMap));
     sb.append("</patient>");
   }
   if (this.getProviderSystem() != null) {
     sb.append("<providerSystem>");
     sb.append(this.getProviderSystem().toXMLString(domMap));
     sb.append("</providerSystem>");
   }
   if (this.getHL7Message() != null) {
     sb.append("<hL7Message>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getHL7Message().toString()));
     sb.append("</hL7Message>");
   }
   if (this.getMessageType() != null) {
     sb.append("<messageType>");
     sb.append(this.getMessageType().toXMLString());
     sb.append("</messageType>");
   }
   if (this.getMessageCategory() != null) {
     sb.append("<messageCategory>");
     sb.append(this.getMessageCategory().toXMLString());
     sb.append("</messageCategory>");
   }
   if (this.getFailureMessage() != null) {
     sb.append("<failureMessage>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFailureMessage().toString()));
     sb.append("</failureMessage>");
   }
   if (this.getMessageSentDateTime() != null) {
     sb.append("<messageSentDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getMessageSentDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</messageSentDateTime>");
   }
   if (this.isSuccessfulOutcome() != null) {
     sb.append("<successfulOutcome>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isSuccessfulOutcome().toString()));
     sb.append("</successfulOutcome>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getPSAName() != null) {
     sb.append("<pSAName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getPSAName().toString()));
     sb.append("</pSAName>");
   }
   if (this.getPSADescription() != null) {
     sb.append("<pSADescription>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getPSADescription().toString()));
     sb.append("</pSADescription>");
   }
   if (this.isIsActive() != null) {
     sb.append("<isActive>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsActive().toString()));
     sb.append("</isActive>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getName() != null) {
     sb.append("<name>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getName().toString()));
     sb.append("</name>");
   }
   if (this.isActiveStatus() != null) {
     sb.append("<activeStatus>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isActiveStatus().toString()));
     sb.append("</activeStatus>");
   }
   if (this.getUpperName() != null) {
     sb.append("<upperName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getUpperName().toString()));
     sb.append("</upperName>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getSpecialNeed() != null) {
     sb.append("<specialNeed>");
     sb.append(this.getSpecialNeed().toXMLString());
     sb.append("</specialNeed>");
   }
   if (this.getDetails() != null) {
     sb.append("<details>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getDetails().toString()));
     sb.append("</details>");
   }
   if (this.isIsActive() != null) {
     sb.append("<isActive>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsActive().toString()));
     sb.append("</isActive>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getPropertyBookComplete() != null) {
     sb.append("<propertyBookComplete>");
     sb.append(this.getPropertyBookComplete().toXMLString());
     sb.append("</propertyBookComplete>");
   }
   if (this.getSerialNumber() != null) {
     sb.append("<serialNumber>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getSerialNumber().toString()));
     sb.append("</serialNumber>");
   }
   return sb.toString();
 }
Beispiel #11
0
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getTableDevice() != null) {
     sb.append("<tableDevice>");
     sb.append(this.getTableDevice().toXMLString());
     sb.append("</tableDevice>");
   }
   if (this.getOtherTableDevice() != null) {
     sb.append("<otherTableDevice>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getOtherTableDevice().toString()));
     sb.append("</otherTableDevice>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.isAnswerAll() != null) {
     sb.append("<answerAll>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isAnswerAll().toString()));
     sb.append("</answerAll>");
   }
   if (this.getAppRole() != null) {
     sb.append("<appRole>");
     sb.append(this.getAppRole().toXMLString(domMap));
     sb.append("</appRole>");
   }
   return sb.toString();
 }
Beispiel #13
0
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getGp() != null) {
     sb.append("<gp>");
     sb.append(this.getGp().toXMLString(domMap));
     sb.append("</gp>");
   }
   if (this.getPractice() != null) {
     sb.append("<practice>");
     sb.append(this.getPractice().toXMLString(domMap));
     sb.append("</practice>");
   }
   if (this.isIsPrimaryPractice() != null) {
     sb.append("<isPrimaryPractice>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsPrimaryPractice().toString()));
     sb.append("</isPrimaryPractice>");
   }
   if (this.getGpCode() != null) {
     sb.append("<gpCode>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getGpCode().toString()));
     sb.append("</gpCode>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getClinicName() != null) {
     sb.append("<clinicName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getClinicName().toString()));
     sb.append("</clinicName>");
   }
   if (this.getClinicLocation() != null) {
     sb.append("<clinicLocation>");
     sb.append(this.getClinicLocation().toXMLString(domMap));
     sb.append("</clinicLocation>");
   }
   if (this.isIsActive() != null) {
     sb.append("<isActive>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsActive().toString()));
     sb.append("</isActive>");
   }
   if (this.getUpperName() != null) {
     sb.append("<upperName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getUpperName().toString()));
     sb.append("</upperName>");
   }
   if (this.getCodeMappings() != null) {
     if (this.getCodeMappings().size() > 0) {
       sb.append("<codeMappings>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getCodeMappings(), domMap));
       sb.append("</codeMappings>");
     }
   }
   if (this.getOutpatientDept() != null) {
     sb.append("<outpatientDept>");
     sb.append(this.getOutpatientDept().toXMLString(domMap));
     sb.append("</outpatientDept>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getComponentSeq() != null) {
     sb.append("<componentSeq>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getComponentSeq().toString()));
     sb.append("</componentSeq>");
   }
   if (this.getInvestigation() != null) {
     sb.append("<investigation>");
     sb.append(this.getInvestigation().toXMLString(domMap));
     sb.append("</investigation>");
   }
   if (this.getOrderSet() != null) {
     sb.append("<orderSet>");
     sb.append(this.getOrderSet().toXMLString(domMap));
     sb.append("</orderSet>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getTreatment() != null) {
     sb.append("<treatment>");
     sb.append(this.getTreatment().toXMLString());
     sb.append("</treatment>");
   }
   if (this.getStatus() != null) {
     sb.append("<status>");
     sb.append(this.getStatus().toXMLString());
     sb.append("</status>");
   }
   if (this.getDetails() != null) {
     sb.append("<details>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getDetails().toString()));
     sb.append("</details>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getVitalSignType() != null) {
     sb.append("<vitalSignType>");
     sb.append(this.getVitalSignType().toXMLString());
     sb.append("</vitalSignType>");
   }
   if (this.getFrequency() != null) {
     sb.append("<frequency>");
     sb.append(this.getFrequency().toXMLString());
     sb.append("</frequency>");
   }
   if (this.isIsSelected() != null) {
     sb.append("<isSelected>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsSelected().toString()));
     sb.append("</isSelected>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getCatsReferral() != null) {
     sb.append("<catsReferral>");
     sb.append(this.getCatsReferral().toXMLString(domMap));
     sb.append("</catsReferral>");
   }
   if (this.getAuthoringInformation() != null) {
     sb.append("<authoringInformation>");
     sb.append(this.getAuthoringInformation().toXMLString(domMap));
     sb.append("</authoringInformation>");
   }
   if (this.getFinalNote() != null) {
     sb.append("<finalNote>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFinalNote().toString()));
     sb.append("</finalNote>");
   }
   if (this.getRecordingInformation() != null) {
     sb.append("<recordingInformation>");
     sb.append(this.getRecordingInformation().toXMLString(domMap));
     sb.append("</recordingInformation>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getDatasetType() != null) {
     sb.append("<datasetType>");
     sb.append(this.getDatasetType().toXMLString(domMap));
     sb.append("</datasetType>");
   }
   if (this.getLineType() != null) {
     sb.append("<lineType>");
     sb.append(this.getLineType().toXMLString());
     sb.append("</lineType>");
   }
   if (this.getLineColourPointIcon() != null) {
     sb.append("<lineColourPointIcon>");
     sb.append(this.getLineColourPointIcon().toXMLString());
     sb.append("</lineColourPointIcon>");
   }
   if (this.getSortOrder() != null) {
     sb.append("<sortOrder>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getSortOrder().toString()));
     sb.append("</sortOrder>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getAppointmentDateTime() != null) {
     sb.append("<appointmentDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getAppointmentDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</appointmentDateTime>");
   }
   if (this.getAppointmentStatus() != null) {
     sb.append("<appointmentStatus>");
     sb.append(this.getAppointmentStatus().toXMLString());
     sb.append("</appointmentStatus>");
   }
   if (this.getCancellationReason() != null) {
     sb.append("<cancellationReason>");
     sb.append(this.getCancellationReason().toXMLString());
     sb.append("</cancellationReason>");
   }
   if (this.getPasEvent() != null) {
     sb.append("<pasEvent>");
     sb.append(this.getPasEvent().toXMLString(domMap));
     sb.append("</pasEvent>");
   }
   if (this.isIsActive() != null) {
     sb.append("<isActive>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsActive().toString()));
     sb.append("</isActive>");
   }
   if (this.getClinic() != null) {
     sb.append("<clinic>");
     sb.append(this.getClinic().toXMLString(domMap));
     sb.append("</clinic>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getFormName() != null) {
     sb.append("<formName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFormName().toString()));
     sb.append("</formName>");
   }
   if (this.getMenuName() != null) {
     sb.append("<menuName>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getMenuName().toString()));
     sb.append("</menuName>");
   }
   if (this.getDescription() != null) {
     sb.append("<description>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getDescription().toString()));
     sb.append("</description>");
   }
   if (this.getComponents() != null) {
     if (this.getComponents().size() > 0) {
       sb.append("<components>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getComponents(), domMap));
       sb.append("</components>");
     }
   }
   if (this.getTemplateCategory() != null) {
     sb.append("<templateCategory>");
     sb.append(this.getTemplateCategory().toXMLString());
     sb.append("</templateCategory>");
   }
   if (this.getActiveStatus() != null) {
     sb.append("<activeStatus>");
     sb.append(this.getActiveStatus().toXMLString());
     sb.append("</activeStatus>");
   }
   if (this.getTemplatesLocations() != null) {
     if (this.getTemplatesLocations().size() > 0) {
       sb.append("<templatesLocations>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getTemplatesLocations(), domMap));
       sb.append("</templatesLocations>");
     }
   }
   if (this.getColumns() != null) {
     if (this.getColumns().size() > 0) {
       sb.append("<columns>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getColumns(), domMap));
       sb.append("</columns>");
     }
   }
   if (this.getTemplateRoles() != null) {
     if (this.getTemplateRoles().size() > 0) {
       sb.append("<templateRoles>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getTemplateRoles(), domMap));
       sb.append("</templateRoles>");
     }
   }
   if (this.getFormText() != null) {
     sb.append("<formText>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFormText().toString()));
     sb.append("</formText>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getCareContext() != null) {
     sb.append("<careContext>");
     sb.append(this.getCareContext().toXMLString(domMap));
     sb.append("</careContext>");
   }
   if (this.getAuthoringInformation() != null) {
     sb.append("<authoringInformation>");
     sb.append(this.getAuthoringInformation().toXMLString(domMap));
     sb.append("</authoringInformation>");
   }
   if (this.getIntraOperativeCareRecord() != null) {
     sb.append("<intraOperativeCareRecord>");
     sb.append(this.getIntraOperativeCareRecord().toXMLString(domMap));
     sb.append("</intraOperativeCareRecord>");
   }
   if (this.getPreOperativeDiagnosis() != null) {
     sb.append("<preOperativeDiagnosis>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getPreOperativeDiagnosis().toString()));
     sb.append("</preOperativeDiagnosis>");
   }
   if (this.getAntibiotics() != null) {
     sb.append("<antibiotics>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getAntibiotics().toString()));
     sb.append("</antibiotics>");
   }
   if (this.getVTE() != null) {
     sb.append("<vTE>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getVTE().toString()));
     sb.append("</vTE>");
   }
   if (this.getIncision() != null) {
     sb.append("<incision>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getIncision().toString()));
     sb.append("</incision>");
   }
   if (this.getFindings() != null) {
     sb.append("<findings>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getFindings().toString()));
     sb.append("</findings>");
   }
   if (this.getProcedure() != null) {
     sb.append("<procedure>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getProcedure().toString()));
     sb.append("</procedure>");
   }
   if (this.getComplications() != null) {
     sb.append("<complications>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getComplications().toString()));
     sb.append("</complications>");
   }
   if (this.getClosure() != null) {
     sb.append("<closure>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getClosure().toString()));
     sb.append("</closure>");
   }
   if (this.getLAInfiltration() != null) {
     sb.append("<lAInfiltration>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getLAInfiltration().toString()));
     sb.append("</lAInfiltration>");
   }
   if (this.getPostOpInstructions() != null) {
     sb.append("<postOpInstructions>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getPostOpInstructions().toString()));
     sb.append("</postOpInstructions>");
   }
   if (this.getEBI() != null) {
     sb.append("<eBI>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getEBI().toString()));
     sb.append("</eBI>");
   }
   if (this.getFollowUpType() != null) {
     sb.append("<followUpType>");
     sb.append(this.getFollowUpType().toXMLString());
     sb.append("</followUpType>");
   }
   if (this.getFollowUpTypeIn() != null) {
     sb.append("<followUpTypeIn>");
     sb.append(this.getFollowUpTypeIn().toXMLString());
     sb.append("</followUpTypeIn>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getCareContext() != null) {
     sb.append("<careContext>");
     sb.append(this.getCareContext().toXMLString(domMap));
     sb.append("</careContext>");
   }
   if (this.getDischargingNurse() != null) {
     sb.append("<dischargingNurse>");
     sb.append(this.getDischargingNurse().toXMLString(domMap));
     sb.append("</dischargingNurse>");
   }
   if (this.getGestationWeeks() != null) {
     sb.append("<gestationWeeks>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getGestationWeeks().toString()));
     sb.append("</gestationWeeks>");
   }
   if (this.isIsMidwife() != null) {
     sb.append("<isMidwife>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsMidwife().toString()));
     sb.append("</isMidwife>");
   }
   if (this.isIsHealthVisitor() != null) {
     sb.append("<isHealthVisitor>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsHealthVisitor().toString()));
     sb.append("</isHealthVisitor>");
   }
   if (this.getFeeding() != null) {
     sb.append("<feeding>");
     sb.append(this.getFeeding().toXMLString());
     sb.append("</feeding>");
   }
   if (this.isIsVitaminKGiven() != null) {
     sb.append("<isVitaminKGiven>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsVitaminKGiven().toString()));
     sb.append("</isVitaminKGiven>");
   }
   if (this.getRoute() != null) {
     sb.append("<route>");
     sb.append(this.getRoute().toXMLString());
     sb.append("</route>");
   }
   if (this.get_1stPKUTestDate() != null) {
     sb.append("<_1stPKUTestDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.get_1stPKUTestDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</_1stPKUTestDate>");
   }
   if (this.get_2ndPKUTestDate() != null) {
     sb.append("<_2ndPKUTestDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.get_2ndPKUTestDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</_2ndPKUTestDate>");
   }
   if (this.getApgar1Minute() != null) {
     sb.append("<apgar1Minute>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getApgar1Minute().toString()));
     sb.append("</apgar1Minute>");
   }
   if (this.getApgar5Minute() != null) {
     sb.append("<apgar5Minute>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getApgar5Minute().toString()));
     sb.append("</apgar5Minute>");
   }
   if (this.getBirthWeight() != null) {
     sb.append("<birthWeight>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getBirthWeight().toString()));
     sb.append("</birthWeight>");
   }
   if (this.getLength() != null) {
     sb.append("<length>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getLength().toString()));
     sb.append("</length>");
   }
   if (this.getDischargeWeight() != null) {
     sb.append("<dischargeWeight>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getDischargeWeight().toString()));
     sb.append("</dischargeWeight>");
   }
   if (this.isIsComplete() != null) {
     sb.append("<isComplete>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsComplete().toString()));
     sb.append("</isComplete>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getInjuryDate() != null) {
     sb.append("<injuryDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getInjuryDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</injuryDate>");
   }
   if (this.getInjuryTime() != null) {
     sb.append("<injuryTime>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getInjuryTime().toString()));
     sb.append("</injuryTime>");
   }
   if (this.getReferralDate() != null) {
     sb.append("<referralDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getReferralDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</referralDate>");
   }
   if (this.getTransferDate() != null) {
     sb.append("<transferDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getTransferDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</transferDate>");
   }
   if (this.isSufferedLOC() != null) {
     sb.append("<sufferedLOC>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isSufferedLOC().toString()));
     sb.append("</sufferedLOC>");
   }
   if (this.getDurLOC() != null) {
     sb.append("<durLOC>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getDurLOC().toString()));
     sb.append("</durLOC>");
   }
   if (this.getDurLOCUnit() != null) {
     sb.append("<durLOCUnit>");
     sb.append(this.getDurLOCUnit().toXMLString());
     sb.append("</durLOCUnit>");
   }
   if (this.getRequiresVentillation() != null) {
     sb.append("<requiresVentillation>");
     sb.append(this.getRequiresVentillation().toXMLString());
     sb.append("</requiresVentillation>");
   }
   if (this.getDescriptionOfInjury() != null) {
     sb.append("<descriptionOfInjury>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getDescriptionOfInjury().toString()));
     sb.append("</descriptionOfInjury>");
   }
   if (this.getPresentingComplaints() != null) {
     sb.append("<presentingComplaints>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getPresentingComplaints().toString()));
     sb.append("</presentingComplaints>");
   }
   if (this.getAssociatedFactor() != null) {
     if (this.getAssociatedFactor().size() > 0) {
       sb.append("<associatedFactor>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getAssociatedFactor(), domMap));
       sb.append("</associatedFactor>");
     }
   }
   if (this.getModeOfInjury() != null) {
     sb.append("<modeOfInjury>");
     sb.append(this.getModeOfInjury().toXMLString());
     sb.append("</modeOfInjury>");
   }
   if (this.getCauseOfInjury() != null) {
     sb.append("<causeOfInjury>");
     sb.append(this.getCauseOfInjury().toXMLString());
     sb.append("</causeOfInjury>");
   }
   if (this.getMechanismOfInjury() != null) {
     sb.append("<mechanismOfInjury>");
     sb.append(this.getMechanismOfInjury().toXMLString());
     sb.append("</mechanismOfInjury>");
   }
   if (this.getClinicalContact() != null) {
     sb.append("<clinicalContact>");
     sb.append(this.getClinicalContact().toXMLString(domMap));
     sb.append("</clinicalContact>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getSpeciality() != null) {
     sb.append("<speciality>");
     sb.append(this.getSpeciality().toXMLString(domMap));
     sb.append("</speciality>");
   }
   if (this.getProcedure() != null) {
     sb.append("<procedure>");
     sb.append(this.getProcedure().toXMLString(domMap));
     sb.append("</procedure>");
   }
   if (this.getProcedureText() != null) {
     sb.append("<procedureText>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getProcedureText().toString()));
     sb.append("</procedureText>");
   }
   if (this.getReferringHospital() != null) {
     sb.append("<referringHospital>");
     sb.append(this.getReferringHospital().toXMLString(domMap));
     sb.append("</referringHospital>");
   }
   if (this.getReferringConsultant() != null) {
     sb.append("<referringConsultant>");
     sb.append(this.getReferringConsultant().toXMLString(domMap));
     sb.append("</referringConsultant>");
   }
   if (this.getReferringConsultantText() != null) {
     sb.append("<referringConsultantText>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getReferringConsultantText().toString()));
     sb.append("</referringConsultantText>");
   }
   if (this.getCategory() != null) {
     sb.append("<category>");
     sb.append(this.getCategory().toXMLString());
     sb.append("</category>");
   }
   if (this.getWaitingListType() != null) {
     sb.append("<waitingListType>");
     sb.append(this.getWaitingListType().toXMLString());
     sb.append("</waitingListType>");
   }
   if (this.getWaitingListDate() != null) {
     sb.append("<waitingListDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getWaitingListDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</waitingListDate>");
   }
   if (this.getWaitingListMonthInterval() != null) {
     sb.append("<waitingListMonthInterval>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getWaitingListMonthInterval().toString()));
     sb.append("</waitingListMonthInterval>");
   }
   if (this.getWaitingListLengthQualifier() != null) {
     sb.append("<waitingListLengthQualifier>");
     sb.append(this.getWaitingListLengthQualifier().toXMLString());
     sb.append("</waitingListLengthQualifier>");
   }
   if (this.getFaxTo() != null) {
     sb.append("<faxTo>");
     sb.append(this.getFaxTo().toXMLString(domMap));
     sb.append("</faxTo>");
   }
   if (this.getFaxDate() != null) {
     sb.append("<faxDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getFaxDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</faxDate>");
   }
   if (this.getLiaisonQuery() != null) {
     sb.append("<liaisonQuery>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getLiaisonQuery().toString()));
     sb.append("</liaisonQuery>");
   }
   if (this.getStatusHistory() != null) {
     if (this.getStatusHistory().size() > 0) {
       sb.append("<statusHistory>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getStatusHistory(), domMap));
       sb.append("</statusHistory>");
     }
   }
   if (this.getCurrentStatus() != null) {
     sb.append("<currentStatus>");
     sb.append(this.getCurrentStatus().toXMLString());
     sb.append("</currentStatus>");
   }
   if (this.getCurrentStatusReason() != null) {
     sb.append("<currentStatusReason>");
     sb.append(this.getCurrentStatusReason().toXMLString());
     sb.append("</currentStatusReason>");
   }
   if (this.isIsLinkedtoCase() != null) {
     sb.append("<isLinkedtoCase>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isIsLinkedtoCase().toString()));
     sb.append("</isLinkedtoCase>");
   }
   if (this.getAssocCase() != null) {
     sb.append("<assocCase>");
     sb.append(this.getAssocCase().toXMLString(domMap));
     sb.append("</assocCase>");
   }
   if (this.getAssocLocall() != null) {
     sb.append("<assocLocall>");
     sb.append(this.getAssocLocall().toXMLString(domMap));
     sb.append("</assocLocall>");
   }
   if (this.getHospital() != null) {
     sb.append("<hospital>");
     sb.append(this.getHospital().toXMLString(domMap));
     sb.append("</hospital>");
   }
   if (this.getMrn() != null) {
     sb.append("<mrn>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getMrn().toString()));
     sb.append("</mrn>");
   }
   if (this.getEpisodeNumber() != null) {
     sb.append("<episodeNumber>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getEpisodeNumber().toString()));
     sb.append("</episodeNumber>");
   }
   return sb.toString();
 }
Beispiel #26
0
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getClinicalContact() != null) {
     sb.append("<clinicalContact>");
     sb.append(this.getClinicalContact().toXMLString(domMap));
     sb.append("</clinicalContact>");
   }
   if (this.getCareContext() != null) {
     sb.append("<careContext>");
     sb.append(this.getCareContext().toXMLString(domMap));
     sb.append("</careContext>");
   }
   if (this.getAuthoringInformation() != null) {
     sb.append("<authoringInformation>");
     sb.append(this.getAuthoringInformation().toXMLString(domMap));
     sb.append("</authoringInformation>");
   }
   if (this.getStartDateTime() != null) {
     sb.append("<startDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getStartDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</startDateTime>");
   }
   if (this.getStartHCP() != null) {
     sb.append("<startHCP>");
     sb.append(this.getStartHCP().toXMLString(domMap));
     sb.append("</startHCP>");
   }
   if (this.getLevelOfIntervention() != null) {
     sb.append("<levelOfIntervention>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getLevelOfIntervention().toString()));
     sb.append("</levelOfIntervention>");
   }
   if (this.getGroup() != null) {
     sb.append("<group>");
     sb.append(this.getGroup().toXMLString());
     sb.append("</group>");
   }
   if (this.getTitle() != null) {
     sb.append("<title>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getTitle().toString()));
     sb.append("</title>");
   }
   if (this.getStatus() != null) {
     sb.append("<status>");
     sb.append(this.getStatus().toXMLString());
     sb.append("</status>");
   }
   if (this.getResolvedDateTime() != null) {
     sb.append("<resolvedDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getResolvedDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</resolvedDateTime>");
   }
   if (this.getResolvingHCP() != null) {
     sb.append("<resolvingHCP>");
     sb.append(this.getResolvingHCP().toXMLString(domMap));
     sb.append("</resolvingHCP>");
   }
   if (this.getConfirmingDateTime() != null) {
     sb.append("<confirmingDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getConfirmingDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</confirmingDateTime>");
   }
   if (this.getConfirmingHCP() != null) {
     sb.append("<confirmingHCP>");
     sb.append(this.getConfirmingHCP().toXMLString(domMap));
     sb.append("</confirmingHCP>");
   }
   if (this.getActions() != null) {
     if (this.getActions().size() > 0) {
       sb.append("<actions>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getActions(), domMap));
       sb.append("</actions>");
     }
   }
   if (this.getAssessmentQuestion() != null) {
     sb.append("<assessmentQuestion>");
     sb.append(this.getAssessmentQuestion().toXMLString(domMap));
     sb.append("</assessmentQuestion>");
   }
   if (this.getAnswerHistory() != null) {
     if (this.getAnswerHistory().size() > 0) {
       sb.append("<answerHistory>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getAnswerHistory(), domMap));
       sb.append("</answerHistory>");
     }
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getClinicalContact() != null) {
     sb.append("<clinicalContact>");
     sb.append(this.getClinicalContact().toXMLString(domMap));
     sb.append("</clinicalContact>");
   }
   if (this.getPatient() != null) {
     sb.append("<patient>");
     sb.append(this.getPatient().toXMLString(domMap));
     sb.append("</patient>");
   }
   if (this.getInvestigations() != null) {
     if (this.getInvestigations().size() > 0) {
       sb.append("<investigations>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getInvestigations(), domMap));
       sb.append("</investigations>");
     }
   }
   if (this.getOrderedBy() != null) {
     sb.append("<orderedBy>");
     sb.append(this.getOrderedBy().toXMLString(domMap));
     sb.append("</orderedBy>");
   }
   if (this.getResponsibleClinician() != null) {
     sb.append("<responsibleClinician>");
     sb.append(this.getResponsibleClinician().toXMLString(domMap));
     sb.append("</responsibleClinician>");
   }
   if (this.getResponsibleGp() != null) {
     sb.append("<responsibleGp>");
     sb.append(this.getResponsibleGp().toXMLString(domMap));
     sb.append("</responsibleGp>");
   }
   if (this.getPatientLocation() != null) {
     sb.append("<patientLocation>");
     sb.append(this.getPatientLocation().toXMLString(domMap));
     sb.append("</patientLocation>");
   }
   if (this.getPatientClinic() != null) {
     sb.append("<patientClinic>");
     sb.append(this.getPatientClinic().toXMLString(domMap));
     sb.append("</patientClinic>");
   }
   if (this.getHcpAlerts() != null) {
     if (this.getHcpAlerts().size() > 0) {
       sb.append("<hcpAlerts>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getHcpAlerts(), domMap));
       sb.append("</hcpAlerts>");
     }
   }
   if (this.isClinicalTrial() != null) {
     sb.append("<clinicalTrial>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isClinicalTrial().toString()));
     sb.append("</clinicalTrial>");
   }
   if (this.getClinicalTrialTxt() != null) {
     sb.append("<clinicalTrialTxt>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getClinicalTrialTxt().toString()));
     sb.append("</clinicalTrialTxt>");
   }
   if (this.getClinicalInfo() != null) {
     sb.append("<clinicalInfo>");
     sb.append(this.getClinicalInfo().toXMLString(domMap));
     sb.append("</clinicalInfo>");
   }
   if (this.getAdditClinNotes() != null) {
     sb.append("<additClinNotes>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getAdditClinNotes().toString()));
     sb.append("</additClinNotes>");
   }
   if (this.getPatMobility() != null) {
     sb.append("<patMobility>");
     sb.append(this.getPatMobility().toXMLString());
     sb.append("</patMobility>");
   }
   if (this.getOrderCategory() != null) {
     sb.append("<orderCategory>");
     sb.append(this.getOrderCategory().toXMLString());
     sb.append("</orderCategory>");
   }
   if (this.getReportTo() != null) {
     if (this.getReportTo().size() > 0) {
       sb.append("<reportTo>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getReportTo(), domMap));
       sb.append("</reportTo>");
     }
   }
   if (this.getSpecimens() != null) {
     if (this.getSpecimens().size() > 0) {
       sb.append("<specimens>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getSpecimens(), domMap));
       sb.append("</specimens>");
     }
   }
   if (this.isWasProcessed() != null) {
     sb.append("<wasProcessed>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isWasProcessed().toString()));
     sb.append("</wasProcessed>");
   }
   if (this.getAuthorisationOrderStatus() != null) {
     sb.append("<authorisationOrderStatus>");
     sb.append(this.getAuthorisationOrderStatus().toXMLString());
     sb.append("</authorisationOrderStatus>");
   }
   if (this.isWasDiscarded() != null) {
     sb.append("<wasDiscarded>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isWasDiscarded().toString()));
     sb.append("</wasDiscarded>");
   }
   if (this.getCareContext() != null) {
     sb.append("<careContext>");
     sb.append(this.getCareContext().toXMLString(domMap));
     sb.append("</careContext>");
   }
   if (this.getOrderingHospital() != null) {
     sb.append("<orderingHospital>");
     sb.append(this.getOrderingHospital().toXMLString(domMap));
     sb.append("</orderingHospital>");
   }
   if (this.isHasNewOrUpdatedResults() != null) {
     sb.append("<hasNewOrUpdatedResults>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.isHasNewOrUpdatedResults().toString()));
     sb.append("</hasNewOrUpdatedResults>");
   }
   if (this.getBedNumber() != null) {
     sb.append("<bedNumber>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getBedNumber().toString()));
     sb.append("</bedNumber>");
   }
   if (this.isSendNumber() != null) {
     sb.append("<sendNumber>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isSendNumber().toString()));
     sb.append("</sendNumber>");
   }
   if (this.getOutpatientDept() != null) {
     sb.append("<outpatientDept>");
     sb.append(this.getOutpatientDept().toXMLString(domMap));
     sb.append("</outpatientDept>");
   }
   if (this.getSummaryClinicalInformation() != null) {
     sb.append("<summaryClinicalInformation>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(
             this.getSummaryClinicalInformation().toString()));
     sb.append("</summaryClinicalInformation>");
   }
   if (this.getBleepExtNumber() != null) {
     sb.append("<bleepExtNumber>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getBleepExtNumber().toString()));
     sb.append("</bleepExtNumber>");
   }
   return sb.toString();
 }
Beispiel #28
0
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getCareContext() != null) {
     sb.append("<careContext>");
     sb.append(this.getCareContext().toXMLString(domMap));
     sb.append("</careContext>");
   }
   if (this.getDischargeLetterStatus() != null) {
     sb.append("<dischargeLetterStatus>");
     sb.append(this.getDischargeLetterStatus().toXMLString());
     sb.append("</dischargeLetterStatus>");
   }
   if (this.getAdmissionDateTime() != null) {
     sb.append("<admissionDateTime>");
     sb.append(
         new ims.framework.utils.DateTime(this.getAdmissionDateTime())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</admissionDateTime>");
   }
   if (this.getTTAStatus() != null) {
     sb.append("<tTAStatus>");
     sb.append(this.getTTAStatus().toXMLString());
     sb.append("</tTAStatus>");
   }
   if (this.getHasHadAnyProceduresPerformed() != null) {
     sb.append("<hasHadAnyProceduresPerformed>");
     sb.append(this.getHasHadAnyProceduresPerformed().toXMLString());
     sb.append("</hasHadAnyProceduresPerformed>");
   }
   if (this.getAdditonalClinicalInfo() != null) {
     sb.append("<additonalClinicalInfo>");
     sb.append(this.getAdditonalClinicalInfo().toXMLString());
     sb.append("</additonalClinicalInfo>");
   }
   if (this.getDischargeSupplementaryLetterStatus() != null) {
     sb.append("<dischargeSupplementaryLetterStatus>");
     sb.append(this.getDischargeSupplementaryLetterStatus().toXMLString());
     sb.append("</dischargeSupplementaryLetterStatus>");
   }
   if (this.getSummaryDetails() != null) {
     if (this.getSummaryDetails().size() > 0) {
       sb.append("<summaryDetails>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getSummaryDetails(), domMap));
       sb.append("</summaryDetails>");
     }
   }
   if (this.getDischargeDocuments() != null) {
     if (this.getDischargeDocuments().size() > 0) {
       sb.append("<dischargeDocuments>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getDischargeDocuments(), domMap));
       sb.append("</dischargeDocuments>");
     }
   }
   if (this.getDischargeDetails() != null) {
     sb.append("<dischargeDetails>");
     sb.append(this.getDischargeDetails().toXMLString(domMap));
     sb.append("</dischargeDetails>");
   }
   if (this.isWasPatientDischargedThenUndone() != null) {
     sb.append("<wasPatientDischargedThenUndone>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(
             this.isWasPatientDischargedThenUndone().toString()));
     sb.append("</wasPatientDischargedThenUndone>");
   }
   return sb.toString();
 }
 public String fieldsToXMLString(java.util.HashMap domMap) {
   StringBuffer sb = new StringBuffer();
   if (this.getCareContext() != null) {
     sb.append("<careContext>");
     sb.append(this.getCareContext().toXMLString(domMap));
     sb.append("</careContext>");
   }
   if (this.getAuthoringInformation() != null) {
     sb.append("<authoringInformation>");
     sb.append(this.getAuthoringInformation().toXMLString(domMap));
     sb.append("</authoringInformation>");
   }
   if (this.getProcedure() != null) {
     sb.append("<procedure>");
     sb.append(this.getProcedure().toXMLString(domMap));
     sb.append("</procedure>");
   }
   if (this.getTheatreType() != null) {
     sb.append("<theatreType>");
     sb.append(this.getTheatreType().toXMLString());
     sb.append("</theatreType>");
   }
   if (this.getHistoryPresComplaint() != null) {
     sb.append("<historyPresComplaint>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getHistoryPresComplaint().toString()));
     sb.append("</historyPresComplaint>");
   }
   if (this.getExamination() != null) {
     sb.append("<examination>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getExamination().toString()));
     sb.append("</examination>");
   }
   if (this.getConclusions() != null) {
     sb.append("<conclusions>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.getConclusions().toString()));
     sb.append("</conclusions>");
   }
   if (this.getSuitableForSurgery() != null) {
     sb.append("<suitableForSurgery>");
     sb.append(this.getSuitableForSurgery().toXMLString());
     sb.append("</suitableForSurgery>");
   }
   if (this.getReasonNotSuitable() != null) {
     sb.append("<reasonNotSuitable>");
     sb.append(this.getReasonNotSuitable().toXMLString());
     sb.append("</reasonNotSuitable>");
   }
   if (this.getNotSuitableForSurgeyComments() != null) {
     sb.append("<notSuitableForSurgeyComments>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(
             this.getNotSuitableForSurgeyComments().toString()));
     sb.append("</notSuitableForSurgeyComments>");
   }
   if (this.getSuitableForSurgeryAssessment() != null) {
     sb.append("<suitableForSurgeryAssessment>");
     sb.append(this.getSuitableForSurgeryAssessment().toXMLString(domMap));
     sb.append("</suitableForSurgeryAssessment>");
   }
   if (this.getComments() != null) {
     if (this.getComments().size() > 0) {
       sb.append("<comments>");
       sb.append(ims.domain.DomainObject.toXMLString(this.getComments(), domMap));
       sb.append("</comments>");
     }
   }
   if (this.isProcedurePerformed() != null) {
     sb.append("<procedurePerformed>");
     sb.append(ims.framework.utils.StringUtils.encodeXML(this.isProcedurePerformed().toString()));
     sb.append("</procedurePerformed>");
   }
   if (this.getSuitableForSurgeryDate() != null) {
     sb.append("<suitableForSurgeryDate>");
     sb.append(
         new ims.framework.utils.DateTime(this.getSuitableForSurgeryDate())
             .toString(ims.framework.utils.DateTimeFormat.MILLI));
     sb.append("</suitableForSurgeryDate>");
   }
   if (this.getRequiredDurationInMins() != null) {
     sb.append("<requiredDurationInMins>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getRequiredDurationInMins().toString()));
     sb.append("</requiredDurationInMins>");
   }
   if (this.getAnaestheticType() != null) {
     sb.append("<anaestheticType>");
     sb.append(this.getAnaestheticType().toXMLString());
     sb.append("</anaestheticType>");
   }
   if (this.getNamedSurgeon() != null) {
     sb.append("<namedSurgeon>");
     sb.append(this.getNamedSurgeon().toXMLString(domMap));
     sb.append("</namedSurgeon>");
   }
   if (this.isSpecialEquipmentRequired() != null) {
     sb.append("<specialEquipmentRequired>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.isSpecialEquipmentRequired().toString()));
     sb.append("</specialEquipmentRequired>");
   }
   if (this.getSpecialEquipmentComments() != null) {
     sb.append("<specialEquipmentComments>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(this.getSpecialEquipmentComments().toString()));
     sb.append("</specialEquipmentComments>");
   }
   if (this.isSpecialInstructionsRequired() != null) {
     sb.append("<specialInstructionsRequired>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(
             this.isSpecialInstructionsRequired().toString()));
     sb.append("</specialInstructionsRequired>");
   }
   if (this.getSpecialInstructionsComments() != null) {
     sb.append("<specialInstructionsComments>");
     sb.append(
         ims.framework.utils.StringUtils.encodeXML(
             this.getSpecialInstructionsComments().toString()));
     sb.append("</specialInstructionsComments>");
   }
   return sb.toString();
 }