コード例 #1
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     Mobilisations obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("clinicalContact");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalContact(
         ims.core.admin.domain.objects.ClinicalContact.getClinicalContactfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("authoringCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAuthoringCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("authoringDateTime");
   if (fldEl != null) {
     obj.setAuthoringDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("mobilisationTreatment");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setMobilisationTreatment(
         ims.therapies.treatment.domain.objects.MobilisationsTreatment.fromSetXMLString(
             fldEl, factory, obj.getMobilisationTreatment(), domMap));
   }
 }
コード例 #2
0
ファイル: PlanOfCare.java プロジェクト: HobbesFNM/openMAXIMS
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     PlanOfCare obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("clinicalContact");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalContact(
         ims.core.admin.domain.objects.ClinicalContact.getClinicalContactfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("careContext");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setCareContext(
         ims.core.admin.domain.objects.CareContext.getCareContextfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("authoringInformation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAuthoringInformation(
         ims.core.clinical.domain.objects.AuthoringInformation.getAuthoringInformationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("startDateTime");
   if (fldEl != null) {
     obj.setStartDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("startHCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setStartHCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("levelOfIntervention");
   if (fldEl != null) {
     obj.setLevelOfIntervention(ims.framework.utils.Color.getColor(fldEl.getTextTrim()));
   }
   fldEl = el.element("group");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setGroup(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("title");
   if (fldEl != null) {
     obj.setTitle(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("status");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setStatus(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("resolvedDateTime");
   if (fldEl != null) {
     obj.setResolvedDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("resolvingHCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setResolvingHCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("confirmingDateTime");
   if (fldEl != null) {
     obj.setConfirmingDateTime(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("confirmingHCP");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setConfirmingHCP(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("actions");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setActions(
         ims.nursing.domain.objects.PlanOfCareActions.fromSetXMLString(
             fldEl, factory, obj.getActions(), domMap));
   }
   fldEl = el.element("assessmentQuestion");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setAssessmentQuestion(
         ims.assessment.configuration.domain.objects.AssessmentQuestion
             .getAssessmentQuestionfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("answerHistory");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setAnswerHistory(
         ims.nursing.domain.objects.PlanOfCareHistory.fromSetXMLString(
             fldEl, factory, obj.getAnswerHistory(), domMap));
   }
 }
コード例 #3
0
ファイル: Adaptations.java プロジェクト: HobbesFNM/openMAXIMS
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     Adaptations obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("itemCategory");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setItemCategory(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("itemType");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setItemType(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("supplier");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setSupplier(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("dateRequired");
   if (fldEl != null) {
     obj.setDateRequired(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("dateSupplied");
   if (fldEl != null) {
     obj.setDateSupplied(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("suppliedFor");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setSuppliedFor(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("loan");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setLoan(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("fundedBy");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setFundedBy(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("clinicalContact");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalContact(
         ims.core.admin.domain.objects.ClinicalContact.getClinicalContactfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("careContext");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setCareContext(
         ims.core.admin.domain.objects.CareContext.getCareContextfromXML(fldEl, factory, domMap));
   }
 }
コード例 #4
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     InjuryDetails obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("injuryDate");
   if (fldEl != null) {
     obj.setInjuryDate(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("injuryTime");
   if (fldEl != null) {
     obj.setInjuryTime(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("referralDate");
   if (fldEl != null) {
     obj.setReferralDate(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("transferDate");
   if (fldEl != null) {
     obj.setTransferDate(
         new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS").parse(fldEl.getTextTrim()));
   }
   fldEl = el.element("sufferedLOC");
   if (fldEl != null) {
     obj.setSufferedLOC(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("durLOC");
   if (fldEl != null) {
     obj.setDurLOC(new Integer(fldEl.getTextTrim()));
   }
   fldEl = el.element("durLOCUnit");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setDurLOCUnit(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("requiresVentillation");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setRequiresVentillation(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("descriptionOfInjury");
   if (fldEl != null) {
     obj.setDescriptionOfInjury(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("presentingComplaints");
   if (fldEl != null) {
     obj.setPresentingComplaints(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("associatedFactor");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setAssociatedFactor(
         ims.medical.domain.objects.InjuryAssocFactor.fromSetXMLString(
             fldEl, factory, obj.getAssociatedFactor(), domMap));
   }
   fldEl = el.element("modeOfInjury");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setModeOfInjury(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("causeOfInjury");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setCauseOfInjury(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("mechanismOfInjury");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setMechanismOfInjury(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("clinicalContact");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalContact(
         ims.core.admin.domain.objects.ClinicalContact.getClinicalContactfromXML(
             fldEl, factory, domMap));
   }
 }
コード例 #5
0
 public static void fillFieldsfromXML(
     org.dom4j.Element el,
     ims.domain.DomainFactory factory,
     OcsOrderSession obj,
     java.util.HashMap domMap)
     throws Exception {
   org.dom4j.Element fldEl;
   fldEl = el.element("clinicalContact");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalContact(
         ims.core.admin.domain.objects.ClinicalContact.getClinicalContactfromXML(
             fldEl, factory, domMap));
   }
   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("investigations");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setInvestigations(
         ims.ocrr.orderingresults.domain.objects.OrderInvestigation.fromSetXMLString(
             fldEl, factory, obj.getInvestigations(), domMap));
   }
   fldEl = el.element("orderedBy");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setOrderedBy(
         ims.core.resource.people.domain.objects.MemberOfStaff.getMemberOfStafffromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("responsibleClinician");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setResponsibleClinician(
         ims.core.resource.people.domain.objects.Hcp.getHcpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("responsibleGp");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setResponsibleGp(
         ims.core.resource.people.domain.objects.Gp.getGpfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("patientLocation");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setPatientLocation(
         ims.core.resource.place.domain.objects.Location.getLocationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("patientClinic");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setPatientClinic(
         ims.core.resource.place.domain.objects.Clinic.getClinicfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("hcpAlerts");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setHcpAlerts(
         ims.ocrr.orderingresults.domain.objects.OrderHCPAlert.fromSetXMLString(
             fldEl, factory, obj.getHcpAlerts(), domMap));
   }
   fldEl = el.element("clinicalTrial");
   if (fldEl != null) {
     obj.setClinicalTrial(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("clinicalTrialTxt");
   if (fldEl != null) {
     obj.setClinicalTrialTxt(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("clinicalInfo");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setClinicalInfo(
         ims.ocrr.orderingresults.domain.objects.OcsQASession.getOcsQASessionfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("additClinNotes");
   if (fldEl != null) {
     obj.setAdditClinNotes(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("patMobility");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setPatMobility(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("orderCategory");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setOrderCategory(ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("reportTo");
   if (fldEl != null) {
     fldEl = fldEl.element("list");
     obj.setReportTo(
         ims.ocrr.orderingresults.domain.objects.OcsReportTo.fromListXMLString(
             fldEl, factory, obj.getReportTo(), domMap));
   }
   fldEl = el.element("specimens");
   if (fldEl != null) {
     fldEl = fldEl.element("set");
     obj.setSpecimens(
         ims.ocrr.orderingresults.domain.objects.OrderSpecimen.fromSetXMLString(
             fldEl, factory, obj.getSpecimens(), domMap));
   }
   fldEl = el.element("wasProcessed");
   if (fldEl != null) {
     obj.setWasProcessed(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("authorisationOrderStatus");
   if (fldEl != null) {
     fldEl = fldEl.element("lki");
     obj.setAuthorisationOrderStatus(
         ims.domain.lookups.LookupInstance.fromXMLString(fldEl, factory));
   }
   fldEl = el.element("wasDiscarded");
   if (fldEl != null) {
     obj.setWasDiscarded(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("careContext");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setCareContext(
         ims.core.admin.domain.objects.CareContext.getCareContextfromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("orderingHospital");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setOrderingHospital(
         ims.core.resource.place.domain.objects.LocSite.getLocSitefromXML(fldEl, factory, domMap));
   }
   fldEl = el.element("hasNewOrUpdatedResults");
   if (fldEl != null) {
     obj.setHasNewOrUpdatedResults(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("bedNumber");
   if (fldEl != null) {
     obj.setBedNumber(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("sendNumber");
   if (fldEl != null) {
     obj.setSendNumber(new Boolean(fldEl.getTextTrim()));
   }
   fldEl = el.element("outpatientDept");
   if (fldEl != null) {
     fldEl = fldEl.element("class");
     obj.setOutpatientDept(
         ims.core.resource.place.domain.objects.Location.getLocationfromXML(
             fldEl, factory, domMap));
   }
   fldEl = el.element("summaryClinicalInformation");
   if (fldEl != null) {
     obj.setSummaryClinicalInformation(new String(fldEl.getTextTrim()));
   }
   fldEl = el.element("bleepExtNumber");
   if (fldEl != null) {
     obj.setBleepExtNumber(new String(fldEl.getTextTrim()));
   }
 }