public TestScriptMetadataCapabilityComponent copy() { TestScriptMetadataCapabilityComponent dst = new TestScriptMetadataCapabilityComponent(); copyValues(dst); dst.required = required == null ? null : required.copy(); dst.validated = validated == null ? null : validated.copy(); dst.description = description == null ? null : description.copy(); if (origin != null) { dst.origin = new ArrayList<IntegerType>(); for (IntegerType i : origin) dst.origin.add(i.copy()); }; dst.destination = destination == null ? null : destination.copy(); if (link != null) { dst.link = new ArrayList<UriType>(); for (UriType i : link) dst.link.add(i.copy()); }; dst.capabilities = capabilities == null ? null : capabilities.copy(); return dst; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -393139297: // required this.required = castToBoolean(value); // BooleanType return value; case -1109784050: // validated this.validated = castToBoolean(value); // BooleanType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1008619738: // origin this.getOrigin().add(castToInteger(value)); // IntegerType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case 3321850: // link this.getLink().add(castToUri(value)); // UriType return value; case -1487597642: // capabilities this.capabilities = castToCanonical(value); // CanonicalType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -393139297: // required this.required = castToBoolean(value); // BooleanType return value; case -1109784050: // validated this.validated = castToBoolean(value); // BooleanType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1008619738: // origin this.getOrigin().add(castToInteger(value)); // IntegerType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case 3321850: // link this.getLink().add(castToUri(value)); // UriType return value; case -1487597642: // capabilities this.capabilities = castToCanonical(value); // CanonicalType return value; default: return super.setProperty(hash, name, value); } }
public TestScriptMetadataCapabilityComponent copy() { TestScriptMetadataCapabilityComponent dst = new TestScriptMetadataCapabilityComponent(); copyValues(dst); dst.required = required == null ? null : required.copy(); dst.validated = validated == null ? null : validated.copy(); dst.description = description == null ? null : description.copy(); if (origin != null) { dst.origin = new ArrayList<IntegerType>(); for (IntegerType i : origin) dst.origin.add(i.copy()); }; dst.destination = destination == null ? null : destination.copy(); if (link != null) { dst.link = new ArrayList<UriType>(); for (UriType i : link) dst.link.add(i.copy()); }; dst.capabilities = capabilities == null ? null : capabilities.copy(); return dst; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("required")) { this.required = castToBoolean(value); // BooleanType } else if (name.equals("validated")) { this.validated = castToBoolean(value); // BooleanType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("origin")) { this.getOrigin().add(castToInteger(value)); } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("link")) { this.getLink().add(castToUri(value)); } else if (name.equals("capabilities")) { this.capabilities = castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; }
public org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r4.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.instance.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); tgt.setCapabilitiesElement(convertReferenceToCanonical(src.getConformance())); return tgt; }
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 boolean hasCapability() { if (this.capability == null) return false; for (TestScriptMetadataCapabilityComponent item : this.capability) if (!item.isEmpty()) return true; return false; }
public TestScriptMetadataCapabilityComponent addCapability() { //3 TestScriptMetadataCapabilityComponent t = new TestScriptMetadataCapabilityComponent(); if (this.capability == null) this.capability = new ArrayList<TestScriptMetadataCapabilityComponent>(); this.capability.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("required")) { this.required = castToBoolean(value); // BooleanType } else if (name.equals("validated")) { this.validated = castToBoolean(value); // BooleanType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("origin")) { this.getOrigin().add(castToInteger(value)); } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("link")) { this.getLink().add(castToUri(value)); } else if (name.equals("capabilities")) { this.capabilities = castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; }
public org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.r4.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.instance.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); tgt.setCapabilitiesElement(convertReferenceToCanonical(src.getConformance())); return tgt; }
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 boolean hasCapability() { if (this.capability == null) return false; for (TestScriptMetadataCapabilityComponent item : this.capability) if (!item.isEmpty()) return true; return false; }
public TestScriptMetadataCapabilityComponent addCapability() { //3 TestScriptMetadataCapabilityComponent t = new TestScriptMetadataCapabilityComponent(); if (this.capability == null) this.capability = new ArrayList<TestScriptMetadataCapabilityComponent>(); this.capability.add(t); return t; }