public Consent setSource(Type value) { 
      if (value != null && !(value instanceof Attachment || value instanceof Reference))
        throw new Error("Not the right type for Consent.source[x]: "+value.fhirType());
      this.source = value;
      return this;
    }
public Consent setSource ( Type value ) { if ( value != null && ! ( value instanceof Attachment || value instanceof Reference ) ) throw new Error ( "Not the right type for Consent.source[x]: " + value . fhirType ( ) ) ; this . source = value ; return this ; }
@param value {@link #source} (The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document.)