List of usage examples for org.apache.commons.collections4 MapUtils getString
public static <K> String getString(final Map<? super K, ?> map, final K key)
From source file:org.craftercms.studio.impl.v1.image.transformation.ImageMagickTransformer.java
private String createCmdLine(Path sourcePath, Path targetPath, Map<String, String> parameters) { StringBuilder cmdLine = new StringBuilder(imgMgkPath); cmdLine.append(" ").append(sourcePath.toAbsolutePath().toString()); String options = MapUtils.getString(parameters, PARAM_OPTIONS); if (StringUtils.isNotEmpty(options)) { cmdLine.append(" ").append(options); }//from w w w.jav a 2s. c o m cmdLine.append(" ").append(targetPath.toAbsolutePath().toString()); return cmdLine.toString(); }
From source file:org.rippleosi.patient.allergies.search.AllergyDetailsTransformer.java
@Override public AllergyDetails transform(Map<String, Object> input) { AllergyDetails allergy = new AllergyDetails(); allergy.setSource("Marand"); allergy.setSourceId(MapUtils.getString(input, "uid")); allergy.setCause(MapUtils.getString(input, "cause")); allergy.setReaction(MapUtils.getString(input, "reaction")); allergy.setCauseCode(MapUtils.getString(input, "cause_code")); allergy.setCauseTerminology(MapUtils.getString(input, "cause_terminology")); allergy.setTerminologyCode(MapUtils.getString(input, "cause_code")); allergy.setAuthor(MapUtils.getString(input, "author")); String dateCreated = MapUtils.getString(input, "date_created"); allergy.setDateCreated(DateFormatter.toDate(dateCreated)); return allergy; }
From source file:org.rippleosi.patient.allergies.search.AllergyHeadlineTransformer.java
@Override public AllergyHeadline transform(Map<String, Object> input) { AllergyHeadline allergy = new AllergyHeadline(); allergy.setSource("Marand"); allergy.setSourceId(MapUtils.getString(input, "uid")); allergy.setCause(MapUtils.getString(input, "cause")); return allergy; }
From source file:org.rippleosi.patient.allergies.search.AllergySummaryTransformer.java
@Override public AllergySummary transform(Map<String, Object> input) { AllergySummary allergy = new AllergySummary(); allergy.setSource("Marand"); allergy.setSourceId(MapUtils.getString(input, "uid")); allergy.setCause(MapUtils.getString(input, "cause")); allergy.setReaction(MapUtils.getString(input, "reaction")); return allergy; }
From source file:org.rippleosi.patient.allergies.search.EtherCISAllergyDetailsTransformer.java
@Override public AllergyDetails transform(Map<String, Object> input) { AllergyDetails allergy = new AllergyDetails(); allergy.setSource("EtherCIS"); allergy.setSourceId(MapUtils.getString(input, "uid")); allergy.setCause(MapUtils.getString(input, "cause")); allergy.setCauseCode(MapUtils.getString(input, "reaction_code")); // need to be replaced with cause_code allergy.setCauseTerminology(MapUtils.getString(input, "reaction_terminology")); // need to be replaced with cause_terminology allergy.setReaction(MapUtils.getString(input, "reaction")); allergy.setTerminologyCode(MapUtils.getString(input, "reaction_code")); allergy.setAuthor(MapUtils.getString(input, "author")); String dateCreated = MapUtils.getString(input, "date_created"); allergy.setDateCreated(DateFormatter.toDate(dateCreated)); return allergy; }
From source file:org.rippleosi.patient.allergies.search.EtherCISAllergyHeadlineTransformer.java
@Override public AllergyHeadline transform(Map<String, Object> input) { AllergyHeadline allergy = new AllergyHeadline(); allergy.setSource("EtherCIS"); allergy.setSourceId(MapUtils.getString(input, "uid")); allergy.setCause(MapUtils.getString(input, "cause")); return allergy; }
From source file:org.rippleosi.patient.allergies.search.EtherCISAllergySummaryTransformer.java
@Override public AllergySummary transform(Map<String, Object> input) { AllergySummary allergy = new AllergySummary(); allergy.setSource("EtherCIS"); allergy.setSourceId(MapUtils.getString(input, "uid")); allergy.setCause(MapUtils.getString(input, "cause")); allergy.setReaction(MapUtils.getString(input, "reaction")); return allergy; }
From source file:org.rippleosi.patient.appointments.search.AppointmentDetailsTransformer.java
@Override public AppointmentDetails transform(Map<String, Object> input) { Date dateCreated = DateFormatter.toDate(MapUtils.getString(input, "date_created")); Date appointmentDate = DateFormatter.toDateOnly(MapUtils.getString(input, "appointment_date")); Date appointmentTime = DateFormatter.toTimeOnly(MapUtils.getString(input, "appointment_date")); AppointmentDetails appointment = new AppointmentDetails(); appointment.setSource("Marand"); appointment.setSourceId(MapUtils.getString(input, "uid")); appointment.setAuthor(MapUtils.getString(input, "author")); appointment.setDateCreated(dateCreated); appointment.setDateOfAppointment(appointmentDate); appointment.setTimeOfAppointment(appointmentTime); appointment.setLocation(MapUtils.getString(input, "location")); appointment.setServiceTeam(MapUtils.getString(input, "service_team")); appointment.setStatus(MapUtils.getString(input, "status")); return appointment; }
From source file:org.rippleosi.patient.appointments.search.AppointmentSummaryTransformer.java
@Override public AppointmentSummary transform(Map<String, Object> input) { Date appointmentDate = DateFormatter.toDateOnly(MapUtils.getString(input, "appointment_date")); Date appointmentTime = DateFormatter.toTimeOnly(MapUtils.getString(input, "appointment_date")); AppointmentSummary appointment = new AppointmentSummary(); appointment.setSource("Marand"); appointment.setSourceId(MapUtils.getString(input, "uid")); appointment.setServiceTeam(MapUtils.getString(input, "service_team")); appointment.setDateOfAppointment(appointmentDate); appointment.setTimeOfAppointment(appointmentTime); return appointment; }
From source file:org.rippleosi.patient.careplans.search.CarePlanDetailsTransformer.java
@Override public CarePlanDetails transform(Map<String, Object> input) { CarePlanDetails carePlan = new CarePlanDetails(); carePlan.setSource("Marand"); carePlan.setSourceId(MapUtils.getString(input, "uid")); carePlan.setCareDocument(extractCareDocument(input)); carePlan.setCprDecision(extractCPRDecision(input)); carePlan.setPrioritiesOfCare(extractPrioritiesOfCare(input)); carePlan.setTreatmentDecision(extractTreatmentDecision(input)); return carePlan; }