public static void fillFieldsfromXML( org.dom4j.Element el, ims.domain.DomainFactory factory, SentToXray obj, java.util.HashMap domMap) throws Exception { org.dom4j.Element fldEl; fldEl = el.element("patient"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setPatient( ims.core.patient.domain.objects.Patient.getPatientfromXML(fldEl, factory, domMap)); } fldEl = el.element("episode"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setEpisode( ims.core.admin.domain.objects.EpisodeOfCare.getEpisodeOfCarefromXML( fldEl, factory, domMap)); } fldEl = el.element("attendance"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setAttendance( ims.core.admin.domain.objects.CareContext.getCareContextfromXML(fldEl, factory, domMap)); } fldEl = el.element("trackingArea"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setTrackingArea( ims.emergency.configuration.domain.objects.TrackingArea.getTrackingAreafromXML( fldEl, factory, domMap)); } fldEl = el.element("sentDateTime"); if (fldEl != null) { obj.setSentDateTime( new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim())); } fldEl = el.element("sentBy"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setSentBy( ims.core.resource.people.domain.objects.MemberOfStaff.getMemberOfStafffromXML( fldEl, factory, domMap)); } fldEl = el.element("returnedDateTime"); if (fldEl != null) { obj.setReturnedDateTime( new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim())); } }
public static void fillFieldsfromXML( org.dom4j.Element el, ims.domain.DomainFactory factory, TrackingAreaCubicles obj, java.util.HashMap domMap) throws Exception { org.dom4j.Element fldEl; fldEl = el.element("trackingArea"); if (fldEl != null) { fldEl = fldEl.element("class"); obj.setTrackingArea( ims.emergency.configuration.domain.objects.TrackingArea.getTrackingAreafromXML( fldEl, factory, domMap)); } fldEl = el.element("cubiclesRoomsBeds"); if (fldEl != null) { fldEl = fldEl.element("list"); obj.setCubiclesRoomsBeds( ims.emergency.configuration.domain.objects.TrackingCubicleRoomBed.fromListXMLString( fldEl, factory, obj.getCubiclesRoomsBeds(), domMap)); } }