org.hl7.fhir.instance.model.Conformance tgt = new org.hl7.fhir.instance.model.Conformance(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setVersion(src.getVersion()); tgt.setName(src.getName());
copyDomainResource(src, tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasVersion()) tgt.setVersion(src.getVersion());
org.hl7.fhir.instance.model.Conformance tgt = new org.hl7.fhir.instance.model.Conformance(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setVersion(src.getVersion()); tgt.setName(src.getName());
copyDomainResource(src, tgt); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasVersion()) tgt.setVersion(src.getVersion());