public org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent(); copyElement(src, tgt); tgt.setRequired(src.getRequired()); tgt.setValidated(src.getValidated()); tgt.setDescription(src.getDescription()); tgt.setDestination(src.getDestination()); for (org.hl7.fhir.r4.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); tgt.setConformance(convertCanonicalToReference(src.getCapabilitiesElement())); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -393139297: return getRequiredElement(); case -1109784050: return getValidatedElement(); case -1724546052: return getDescriptionElement(); case -1008619738: return addOriginElement(); case -1429847026: return getDestinationElement(); case 3321850: return addLinkElement(); case -1487597642: return getCapabilitiesElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent(); copyElement(src, tgt); tgt.setRequired(src.getRequired()); tgt.setValidated(src.getValidated()); tgt.setDescription(src.getDescription()); tgt.setDestination(src.getDestination()); for (org.hl7.fhir.r4.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); tgt.setConformance(convertCanonicalToReference(src.getCapabilitiesElement())); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -393139297: return getRequiredElement(); case -1109784050: return getValidatedElement(); case -1724546052: return getDescriptionElement(); case -1008619738: return addOriginElement(); case -1429847026: return getDestinationElement(); case 3321850: return addLinkElement(); case -1487597642: return getCapabilitiesElement(); default: return super.makeProperty(hash, name); } }