public static DateType newDate(String value) throws ParseException { if (value == null) return null; return new DateType(value); }
private List<Base> funcToday(ExecutionContext context, List<Base> focus, ExpressionNode exp) { List<Base> result = new ArrayList<Base>(); result.add(new DateType(new Date(), TemporalPrecisionEnum.DAY)); return result; }
/** * @param value Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc. */ public Goal setStatusDate(Date value) { if (value == null) this.statusDate = null; else { if (this.statusDate == null) this.statusDate = new DateType(); this.statusDate.setValue(value); } return this; }
/** * @param value Date of the initial placement. */ public ProsthesisComponent setPriorDate(Date value) { if (value == null) this.priorDate = null; else { if (this.priorDate == null) this.priorDate = new DateType(); this.priorDate.setValue(value); } return this; }
/** * @param value The date of the invoice or financial resource. */ public DetailsComponent setDate(Date value) { if (value == null) this.date = null; else { if (this.date == null) this.date = new DateType(); this.date.setValue(value); } return this; }
/** * @param value The date of the extraction either known from records or patient reported estimate. */ public MissingTeethComponent setExtractionDate(Date value) { if (value == null) this.extractionDate = null; else { if (this.extractionDate == null) this.extractionDate = new DateType(); this.extractionDate.setValue(value); } return this; }
/** * @param value Date of an accident which these services are addressing. */ public Claim setAccident(Date value) { if (value == null) this.accident = null; else { if (this.accident == null) this.accident = new DateType(); this.accident.setValue(value); } return this; }
/** * @return {@link #serviceDate} (The date when the enclosed suite of services were performed or completed.). This is the underlying object with id, value and extensions. The accessor "getServiceDate" gives direct access to the value */ public DateType getServiceDateElement() { if (this.serviceDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ItemsComponent.serviceDate"); else if (Configuration.doAutoCreate()) this.serviceDate = new DateType(); // bb return this.serviceDate; }
/** * @return {@link #birthDate} (The date on which the related person was born.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value */ public DateType getBirthDateElement() { if (this.birthDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.birthDate"); else if (Configuration.doAutoCreate()) this.birthDate = new DateType(); // bb return this.birthDate; }
/** * @return {@link #birthDate} (The birth date for the person.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value */ public DateType getBirthDateElement() { if (this.birthDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Person.birthDate"); else if (Configuration.doAutoCreate()) this.birthDate = new DateType(); // bb return this.birthDate; }
/** * @return {@link #birthDate} (The date of birth for the individual.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value */ public DateType getBirthDateElement() { if (this.birthDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Patient.birthDate"); else if (Configuration.doAutoCreate()) this.birthDate = new DateType(); // bb return this.birthDate; }
/** * @return {@link #created} (Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value */ public DateType getCreatedElement() { if (this.created == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Basic.created"); else if (Configuration.doAutoCreate()) this.created = new DateType(); // bb return this.created; }
/** * @return {@link #accident} (Date of an accident which these services are addressing.). This is the underlying object with id, value and extensions. The accessor "getAccident" gives direct access to the value */ public DateType getAccidentElement() { if (this.accident == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Claim.accident"); else if (Configuration.doAutoCreate()) this.accident = new DateType(); // bb return this.accident; }
/** * @return {@link #expirationDate} (Date vaccine batch expires.). This is the underlying object with id, value and extensions. The accessor "getExpirationDate" gives direct access to the value */ public DateType getExpirationDateElement() { if (this.expirationDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Immunization.expirationDate"); else if (Configuration.doAutoCreate()) this.expirationDate = new DateType(); // bb return this.expirationDate; }
/** * @return {@link #paymentDate} (Estimated payment data.). This is the underlying object with id, value and extensions. The accessor "getPaymentDate" gives direct access to the value */ public DateType getPaymentDateElement() { if (this.paymentDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClaimResponse.paymentDate"); else if (Configuration.doAutoCreate()) this.paymentDate = new DateType(); // bb return this.paymentDate; }
/** * @return {@link #extractionDate} (The date of the extraction either known from records or patient reported estimate.). This is the underlying object with id, value and extensions. The accessor "getExtractionDate" gives direct access to the value */ public DateType getExtractionDateElement() { if (this.extractionDate == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MissingTeethComponent.extractionDate"); else if (Configuration.doAutoCreate()) this.extractionDate = new DateType(); // bb return this.extractionDate; }
public org.hl7.fhir.instance.model.DateType convertDate(org.hl7.fhir.dstu3.model.DateTimeType src) throws FHIRException { org.hl7.fhir.instance.model.DateType tgt = new org.hl7.fhir.instance.model.DateType(src.getValue()); copyElement(src, tgt); return tgt; }
public org.hl7.fhir.instance.model.DateType convertDate(org.hl7.fhir.r4.model.DateType src) throws FHIRException { org.hl7.fhir.instance.model.DateType tgt = new org.hl7.fhir.instance.model.DateType(src.getValueAsString()); copyElement(src, tgt); return tgt; }
public org.hl7.fhir.instance.model.DateType convertDateTimeToDate(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException { org.hl7.fhir.instance.model.DateType tgt = new org.hl7.fhir.instance.model.DateType(src.getValueAsString()); copyElement(src, tgt); return tgt; }
public org.hl7.fhir.instance.model.DateType convertDate(org.hl7.fhir.r4.model.DateTimeType src) throws FHIRException { org.hl7.fhir.instance.model.DateType tgt = new org.hl7.fhir.instance.model.DateType(src.getValueAsString()); copyElement(src, tgt); return tgt; }