public void copyDomainResource(org.hl7.fhir.dstu3.model.DomainResource src, org.hl7.fhir.instance.model.DomainResource tgt) throws FHIRException { copyResource(src, tgt); tgt.setText(convertNarrative(src.getText())); for (org.hl7.fhir.dstu3.model.Resource t : src.getContained()) tgt.addContained(convertResource(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getExtension()) tgt.addExtension(convertExtension(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getModifierExtension()) tgt.addModifierExtension(convertExtension(t)); }
private static void copyDomainResource(org.hl7.fhir.dstu3.model.DomainResource src, org.hl7.fhir.dstu2016may.model.DomainResource tgt) throws FHIRException { copyResource(src, tgt); if (src.hasText()) tgt.setText(convertNarrative(src.getText())); for (org.hl7.fhir.dstu3.model.Resource t : src.getContained()) tgt.addContained(convertResource(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getExtension()) tgt.addExtension(convertExtension(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getModifierExtension()) tgt.addModifierExtension(convertExtension(t)); } public static org.hl7.fhir.dstu3.model.Parameters convertParameters(org.hl7.fhir.dstu2016may.model.Parameters src) throws FHIRException {
/** * Returns a list of modifier extensions from this element which have the given URL. Note that * this list may not be modified (you can not add or remove elements from it) */ public List<Extension> getModifierExtensionsByUrl(String theUrl) { org.apache.commons.lang3.Validate.notBlank(theUrl, "theUrl must be provided with a value"); ArrayList<Extension> retVal = new ArrayList<Extension>(); for (Extension next : getModifierExtension()) { if (theUrl.equals(next.getUrl())) { retVal.add(next); } } return Collections.unmodifiableList(retVal); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("text")) { this.text = castToNarrative(value); // Narrative } else if (name.equals("contained")) { this.getContained().add(castToResource(value)); } else if (name.equals("extension")) { this.getExtension().add(castToExtension(value)); } else if (name.equals("modifierExtension")) { this.getModifierExtension().add(castToExtension(value)); } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3556653: // text this.text = castToNarrative(value); // Narrative return value; case -410956685: // contained this.getContained().add(castToResource(value)); // Resource return value; case -612557761: // extension this.getExtension().add(castToExtension(value)); // Extension return value; case -298878168: // modifierExtension this.getModifierExtension().add(castToExtension(value)); // Extension return value; default: return super.setProperty(hash, name, value); } }
public void copyDomainResource(org.hl7.fhir.dstu3.model.DomainResource src, org.hl7.fhir.instance.model.DomainResource tgt) throws FHIRException { copyResource(src, tgt); tgt.setText(convertNarrative(src.getText())); for (org.hl7.fhir.dstu3.model.Resource t : src.getContained()) tgt.addContained(convertResource(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getExtension()) tgt.addExtension(convertExtension(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getModifierExtension()) tgt.addModifierExtension(convertExtension(t)); }
private static void copyDomainResource(org.hl7.fhir.dstu3.model.DomainResource src, org.hl7.fhir.dstu2016may.model.DomainResource tgt) throws FHIRException { copyResource(src, tgt); if (src.hasText()) tgt.setText(convertNarrative(src.getText())); for (org.hl7.fhir.dstu3.model.Resource t : src.getContained()) tgt.addContained(convertResource(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getExtension()) tgt.addExtension(convertExtension(t)); for (org.hl7.fhir.dstu3.model.Extension t : src.getModifierExtension()) tgt.addModifierExtension(convertExtension(t)); } public static org.hl7.fhir.dstu3.model.Parameters convertParameters(org.hl7.fhir.dstu2016may.model.Parameters src) throws FHIRException {