public Dosage setDose(Type value) throws FHIRFormatError { 
      if (value != null && !(value instanceof Range || value instanceof Quantity))
        throw new FHIRFormatError("Not the right type for Dosage.dose[x]: "+value.fhirType());
      this.dose = value;
      return this;
    }
public Dosage setDose ( Type value ) throws FHIRFormatError { if ( value != null && ! ( value instanceof Range || value instanceof Quantity ) ) throw new FHIRFormatError ( "Not the right type for Dosage.dose[x]: " + value . fhirType ( ) ) ; this . dose = value ; return this ; }
@param value {@link #dose} (Amount of medication per dose.)