public org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent(); copyElement(src, tgt); tgt.setType(convertCoding(src.getType())); tgt.setResource(src.getResource()); tgt.setLabel(src.getLabel()); tgt.setDescription(src.getDescription()); tgt.setAccept(convertContentType(src.getAccept())); tgt.setContentType(convertContentType(src.getContentType())); tgt.setDestination(src.getDestination()); tgt.setEncodeRequestUrl(src.getEncodeRequestUrl()); tgt.setParams(src.getParams()); for (org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t)); tgt.setResponseId(src.getResponseId()); tgt.setSourceId(src.getSourceId()); tgt.setTargetId(src.getTargetId()); tgt.setUrl(src.getUrl()); return tgt; }
public org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent(); copyElement(src, tgt); tgt.setType(convertCoding(src.getType())); tgt.setResource(src.getResource()); tgt.setLabel(src.getLabel()); tgt.setDescription(src.getDescription()); tgt.setAccept(convertContentType(src.getAccept())); tgt.setContentType(convertContentType(src.getContentType())); tgt.setDestination(src.getDestination()); tgt.setEncodeRequestUrl(src.getEncodeRequestUrl()); tgt.setParams(src.getParams()); for (org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t)); tgt.setResponseId(src.getResponseId()); tgt.setSourceId(src.getSourceId()); tgt.setTargetId(src.getTargetId()); tgt.setUrl(src.getUrl()); return tgt; }