/** * @return {@link #link} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Reference to the image source.) */ public Media getLinkTarget() { if (this.linkTarget == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DiagnosticReportImageComponent.link"); else if (Configuration.doAutoCreate()) this.linkTarget = new Media(); // aa return this.linkTarget; }
public org.hl7.fhir.dstu3.model.Media convertMedia(org.hl7.fhir.instance.model.Media src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Media tgt = new org.hl7.fhir.dstu3.model.Media(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setType(convertDigitalMediaType(src.getType())); tgt.setSubtype(convertCodeableConcept(src.getSubtype())); tgt.setView(convertCodeableConcept(src.getView())); tgt.setSubject(convertReference(src.getSubject())); tgt.setOperator(convertReference(src.getOperator())); tgt.getDevice().setDisplay(src.getDeviceName()); tgt.setHeight(src.getHeight()); tgt.setWidth(src.getWidth()); tgt.setFrames(src.getFrames()); tgt.setDuration(src.getDuration()); tgt.setContent(convertAttachment(src.getContent())); return tgt; }
public Media copy() { Media dst = new Media(); copyValues(dst); if (identifier != null) {
return new VisionPrescription(); if ("Media".equals(name)) return new Media(); if ("ProcedureRequest".equals(name)) return new ProcedureRequest();
public org.hl7.fhir.dstu3.model.Media convertMedia(org.hl7.fhir.instance.model.Media src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Media tgt = new org.hl7.fhir.dstu3.model.Media(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setType(convertDigitalMediaType(src.getType())); tgt.setSubtype(convertCodeableConcept(src.getSubtype())); tgt.setView(convertCodeableConcept(src.getView())); tgt.setSubject(convertReference(src.getSubject())); tgt.setOperator(convertReference(src.getOperator())); tgt.getDevice().setDisplay(src.getDeviceName()); tgt.setHeight(src.getHeight()); tgt.setWidth(src.getWidth()); tgt.setFrames(src.getFrames()); tgt.setDuration(src.getDuration()); tgt.setContent(convertAttachment(src.getContent())); return tgt; }
case -1691992770: return new Measure(); case 1681397778: return new MeasureReport(); case 74219460: return new Media(); case -302536977: return new Medication(); case -342579923: return new MedicationAdministration();