public org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent(); 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.r4.model.TestScript.SetupActionOperationRequestHeaderComponent 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; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); case -341064690: return getResourceElement(); case 102727412: return getLabelElement(); case -1724546052: return getDescriptionElement(); case -1423461112: return getAcceptElement(); case -389131437: return getContentTypeElement(); case -1429847026: return getDestinationElement(); case -1760554218: return getEncodeRequestUrlElement(); case -1077554975: return getMethodElement(); case -1008619738: return getOriginElement(); case -995427962: return getParamsElement(); case 1074158076: return addRequestHeader(); case 693933066: return getRequestIdElement(); case -633138884: return getResponseIdElement(); case 1746327190: return getSourceIdElement(); case -441951604: return getTargetIdElement(); case 116079: return getUrlElement(); default: return super.makeProperty(hash, name); } }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); case -341064690: return getResourceElement(); case 102727412: return getLabelElement(); case -1724546052: return getDescriptionElement(); case -1423461112: return getAcceptElement(); case -389131437: return getContentTypeElement(); case -1429847026: return getDestinationElement(); case -1760554218: return getEncodeRequestUrlElement(); case -1077554975: return getMethodElement(); case -1008619738: return getOriginElement(); case -995427962: return getParamsElement(); case 1074158076: return addRequestHeader(); case 693933066: return getRequestIdElement(); case -633138884: return getResponseIdElement(); case 1746327190: return getSourceIdElement(); case -441951604: return getTargetIdElement(); case 116079: return getUrlElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent(); 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.r4.model.TestScript.SetupActionOperationRequestHeaderComponent 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; }