this.multipleBirth = castToType(value); // Type } else if (name.equals("photo")) { this.getPhoto().add(castToAttachment(value)); } else if (name.equals("contact")) { this.getContact().add((ContactComponent) value);
tgt.setMaritalStatus(convertCodeableConcept(src.getMaritalStatus())); tgt.setMultipleBirth(convertType(src.getMultipleBirth())); for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(convertAttachment(t)); for (org.hl7.fhir.dstu3.model.Patient.ContactComponent t : src.getContact())
return value; case 106642994: // photo this.getPhoto().add(castToAttachment(value)); // Attachment return value; case 951526432: // contact
Image photo = new Image(); photo.setStyles("max-height:300px;max-width:300px;padding-bottom:10px"); photo.setSrc(Util.getImage(patient.getPhoto(), Util.SILHOUETTE_IMAGE).getSrc()); root.addChild(photo); addDemographic(root, null, FhirUtil.formatName(patient.getName()), "font-weight: bold");
@Override public void committed() { Patient patient = PatientContext.getActivePatient(); AImage image = patient == null ? null : Util.getImage(patient.getPhoto()); if (patient == null) { imgPhoto.setSrc(Util.NOPATIENT_IMAGE); imgPhoto.setTooltip((Popup) null); imgPhoto.setTooltiptext(Labels.getLabel("patientphoto.no.patient")); } else if (image == null) { imgPhoto.setSrc(Util.SILHOUETTE_IMAGE); imgPhoto.setTooltip((Popup) null); imgPhoto.setTooltiptext(Labels.getLabel("patientphoto.no.photo")); } else { imgPhoto.setContent(image); imgPhoto.setTooltiptext(null); imgPhoto.setTooltip(popup); imgFullPhoto.setContent(image); lblCaption.setValue( patient == null ? "" : FhirUtil.formatName(patient.getName(), NameUse.USUAL, NameUse.OFFICIAL, null)); } }
tgt.setMaritalStatus(convertCodeableConcept(src.getMaritalStatus())); tgt.setMultipleBirth(convertType(src.getMultipleBirth())); for (org.hl7.fhir.dstu3.model.Attachment t : src.getPhoto()) tgt.addPhoto(convertAttachment(t)); for (org.hl7.fhir.dstu3.model.Patient.ContactComponent t : src.getContact())