public org.hl7.fhir.instance.model.DateType convertDate(org.hl7.fhir.dstu3.model.DateType 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 static org.hl7.fhir.dstu2016may.model.DateType convertDate(org.hl7.fhir.dstu3.model.DateType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.DateType tgt = new org.hl7.fhir.dstu2016may.model.DateType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
private void checkDateOption( List<ValidationMessage> errors, Element answer, NodeStack stack, Questionnaire qSrc, QuestionnaireItemComponent qItem, boolean openChoice) { Element v = answer.getNamedChild("valueDate"); NodeStack ns = stack.push(v, -1, null, null); if (qItem.getOption().size() > 0) { List<DateType> list = new ArrayList<DateType>(); for (QuestionnaireItemOptionComponent components : qItem.getOption()) { try { list.add(components.getValueDateType()); } catch (FHIRException e) { // If it's the wrong type, just keep going } } if (list.isEmpty() && !openChoice) { rule(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), false, "Option list has no option values of type date"); } else { boolean found = false; for (DateType item : list) { if (item.getValue().equals(v.primitiveValue())) { found = true; break; } } if (!found) { rule(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), found, "The date "+v.primitiveValue()+" is not a valid option"); } } } else hint(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), false, "Cannot validate date answer option because no option list is provided"); }
/** * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ public Date getApprovalDate() { return this.approvalDate == null ? null : this.approvalDate.getValue(); }
/** * @return The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. */ public Date getLastReviewDate() { return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); }
/** * @return The birth date for the person. */ public Date getBirthDate() { return this.birthDate == null ? null : this.birthDate.getValue(); }
/** * @return The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. */ public Date getLastReviewDate() { return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); }
/** * @return If a locked date is defined, then the Content Logical Definition must be evaluated using the current version as of the locked date for referenced code system(s) and value set instances where ValueSet.compose.include.version is not defined. */ public Date getLockedDate() { return this.lockedDate == null ? null : this.lockedDate.getValue(); }
/** * @return Identifies when the resource was first created. */ public Date getCreated() { return this.created == null ? null : this.created.getValue(); }
/** * @return Date of an accident which these services are addressing. */ public Date getDate() { return this.date == null ? null : this.date.getValue(); }
/** * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ public Date getApprovalDate() { return this.approvalDate == null ? null : this.approvalDate.getValue(); }
/** * @return The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. */ public Date getLastReviewDate() { return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); }
/** * @return The date on which the related person was born. */ public Date getBirthDate() { return this.birthDate == null ? null : this.birthDate.getValue(); }
/** * @return Date of an accident which these services are addressing. */ public Date getDate() { return this.date == null ? null : this.date.getValue(); }
/** * @return Date vaccine batch expires. */ public Date getExpirationDate() { return this.expirationDate == null ? null : this.expirationDate.getValue(); }
/** * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ public Date getApprovalDate() { return this.approvalDate == null ? null : this.approvalDate.getValue(); }
/** * @return The date on which the resource content was last reviewed. Review happens periodically after approval, but doesn't change the original approval date. */ public Date getLastReviewDate() { return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); }
/** * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ public Date getApprovalDate() { return this.approvalDate == null ? null : this.approvalDate.getValue(); }
"Value is '" + value + "' but must be '" + ((org.hl7.fhir.dstu3.model.UriType) fixed).getValue() + "'"); else if (fixed instanceof org.hl7.fhir.dstu3.model.DateType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.dstu3.model.DateType) fixed).getValue().toString(), value), "Value is '" + value + "' but must be '" + ((org.hl7.fhir.dstu3.model.DateType) fixed).getValue() + "'"); else if (fixed instanceof org.hl7.fhir.dstu3.model.DateTimeType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.dstu3.model.DateTimeType) fixed).getValue().toString(), value),