@SuppressWarnings("unused") public void nonNull() { // START SNIPPET: nonNull Observation observation = new Observation(); // None of these calls will not return null, but instead create their // respective // child elements. List<IdentifierDt> identifierList = observation.getIdentifier(); CodeableConceptDt code = observation.getCode(); StringDt textElement = observation.getCode().getTextElement(); // DateTimeDt is a FHIR primitive however, so the following will return // null // unless a value has been placed there. Date active = observation.addIdentifier().getPeriod().getStartElement().getValue(); // END SNIPPET: nonNull }
continue; nextEntity = new ResourceIndexedSearchParamDate(nextSpDef.getName(), nextValue.getStart(), nextValue.getEnd(), nextValue.getStartElement().getValueAsString()); } else { if (!multiType) {
/** * Gets the value(s) for <b>start</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The start of the period. The boundary is inclusive. * </p> */ public Date getStart() { return getStartElement().getValue(); }