/** * @param value {@link #time} (A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.) */ public SpecimenProcessingComponent setTime(Type value) { if (value != null && !(value instanceof DateTimeType || value instanceof Period)) throw new Error("Not the right type for Specimen.processing.time[x]: "+value.fhirType()); this.time = value; return this; }
/** * @param value {@link #module} (An identifier, CodeableConcept or canonical reference to the guidance that was requested.) */ public GuidanceResponse setModule(Type value) { if (value != null && !(value instanceof UriType || value instanceof CanonicalType || value instanceof CodeableConcept)) throw new Error("Not the right type for GuidanceResponse.module[x]: "+value.fhirType()); this.module = value; return this; }
/** * @param value {@link #value} (The actual value to for an initial answer.) */ public QuestionnaireItemInitialComponent setValue(Type value) { if (value != null && !(value instanceof BooleanType || value instanceof DecimalType || value instanceof IntegerType || value instanceof DateType || value instanceof DateTimeType || value instanceof TimeType || value instanceof StringType || value instanceof UriType || value instanceof Attachment || value instanceof Coding || value instanceof Quantity || value instanceof Reference)) throw new Error("Not the right type for Questionnaire.item.initial.value[x]: "+value.fhirType()); this.value = value; return this; }
/** * @param value {@link #time} (Time of processing.) */ public BiologicallyDerivedProductProcessingComponent setTime(Type value) { if (value != null && !(value instanceof DateTimeType || value instanceof Period)) throw new Error("Not the right type for BiologicallyDerivedProduct.processing.time[x]: "+value.fhirType()); this.time = value; return this; }
/** * @param value {@link #allowed} (The quantity of the benefit which is permitted under the coverage.) */ public BenefitComponent setAllowed(Type value) { if (value != null && !(value instanceof UnsignedIntType || value instanceof StringType || value instanceof Money)) throw new Error("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.allowed[x]: "+value.fhirType()); this.allowed = value; return this; }
/** * @param value {@link #amount} (Quantitative value for this moiety.) */ public SubstanceSpecificationMoietyComponent setAmount(Type value) { if (value != null && !(value instanceof Quantity || value instanceof StringType)) throw new Error("Not the right type for SubstanceSpecification.moiety.amount[x]: "+value.fhirType()); this.amount = value; return this; }
/** * @param value {@link #timing} (The timing of the event (if this is a periodic trigger).) */ public TriggerDefinition setTiming(Type value) { if (value != null && !(value instanceof Timing || value instanceof Reference || value instanceof DateType || value instanceof DateTimeType)) throw new Error("Not the right type for TriggerDefinition.timing[x]: "+value.fhirType()); this.timing = value; return this; }
/** * @param value {@link #participantEffective} (Indicates what effective period the study covers.) */ public EvidenceVariableCharacteristicComponent setParticipantEffective(Type value) { if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Duration || value instanceof Timing)) throw new Error("Not the right type for EvidenceVariable.characteristic.participantEffective[x]: "+value.fhirType()); this.participantEffective = value; return this; }
/** * @param value {@link #serviced} (The date or dates when the service or product was supplied, performed or completed.) */ public ItemComponent setServiced(Type value) { if (value != null && !(value instanceof DateType || value instanceof Period)) throw new Error("Not the right type for Claim.item.serviced[x]: "+value.fhirType()); this.serviced = value; return this; }
/** * @param value {@link #location} (Where the product or service was provided.) */ public ItemComponent setLocation(Type value) { if (value != null && !(value instanceof CodeableConcept || value instanceof Address || value instanceof Reference)) throw new Error("Not the right type for Claim.item.location[x]: "+value.fhirType()); this.location = value; return this; }
/** * @param value {@link #product} (Identifies the food, drug or other product being consumed or supplied in the activity.) */ public ActivityDefinition setProduct(Type value) { if (value != null && !(value instanceof Reference || value instanceof CodeableConcept)) throw new Error("Not the right type for ActivityDefinition.product[x]: "+value.fhirType()); this.product = value; return this; }
/** * @param value {@link #serviced} (The date or dates when the enclosed suite of services were performed or completed.) */ public CoverageEligibilityRequest setServiced(Type value) { if (value != null && !(value instanceof DateType || value instanceof Period)) throw new Error("Not the right type for CoverageEligibilityRequest.serviced[x]: "+value.fhirType()); this.serviced = value; return this; }
/** * @param value {@link #deceased} (Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record.) */ public FamilyMemberHistory setDeceased(Type value) { if (value != null && !(value instanceof BooleanType || value instanceof Age || value instanceof Range || value instanceof DateType || value instanceof StringType)) throw new Error("Not the right type for FamilyMemberHistory.deceased[x]: "+value.fhirType()); this.deceased = value; return this; }
/** * @param value {@link #topic} (The entity that the term applies to.) */ public TermComponent setTopic(Type value) { if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) throw new Error("Not the right type for Contract.term.topic[x]: "+value.fhirType()); this.topic = value; return this; }
/** * @param value {@link #content} (Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal).) */ public ComputableLanguageComponent setContent(Type value) { if (value != null && !(value instanceof Attachment || value instanceof Reference)) throw new Error("Not the right type for Contract.rule.content[x]: "+value.fhirType()); this.content = value; return this; }
/** * @param value {@link #topic} (Narrows the range of legal concerns to focus on the achievement of specific contractual objectives.) */ public Contract setTopic(Type value) { if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) throw new Error("Not the right type for Contract.topic[x]: "+value.fhirType()); this.topic = value; return this; }
/** * @param value {@link #minValue} (The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.) */ public ElementDefinition setMinValue(Type value) { if (value != null && !(value instanceof DateType || value instanceof DateTimeType || value instanceof InstantType || value instanceof TimeType || value instanceof DecimalType || value instanceof IntegerType || value instanceof PositiveIntType || value instanceof UnsignedIntType || value instanceof Quantity)) throw new Error("Not the right type for ElementDefinition.minValue[x]: "+value.fhirType()); this.minValue = value; return this; }
/** * @param value {@link #maxValue} (The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.) */ public ElementDefinition setMaxValue(Type value) { if (value != null && !(value instanceof DateType || value instanceof DateTimeType || value instanceof InstantType || value instanceof TimeType || value instanceof DecimalType || value instanceof IntegerType || value instanceof PositiveIntType || value instanceof UnsignedIntType || value instanceof Quantity)) throw new Error("Not the right type for ElementDefinition.maxValue[x]: "+value.fhirType()); this.maxValue = value; return this; }
/** * @param value {@link #location} (Where the product or service was provided.) */ public AddedItemComponent setLocation(Type value) { if (value != null && !(value instanceof CodeableConcept || value instanceof Address || value instanceof Reference)) throw new Error("Not the right type for ClaimResponse.addItem.location[x]: "+value.fhirType()); this.location = value; return this; }
/** * @param value {@link #procedure} (The code or reference to a Procedure resource which identifies the clinical intervention performed.) */ public ProcedureComponent setProcedure(Type value) { if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) throw new Error("Not the right type for ExplanationOfBenefit.procedure.procedure[x]: "+value.fhirType()); this.procedure = value; return this; }