code: public Reference setType(String value) { 
        if (Utilities.noString(value))
          this.type = null;
        else {
          if (this.type == null)
            this.type = new UriType();
          this.type.setValue(value);
        }
        return this;
      }
docs: @param value The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.
  
  The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).