/** * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist */ public Annotation getNoteFirstRep() { if (getNote().isEmpty()) { addNote(); } return getNote().get(0); }
return addNote();
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -332612366: return getBasedOn(); case -995424086: return getParent(); case -892481550: return getStatusElement(); case -1077554975: return getMethod(); case 3059181: return getCode(); case -1867885268: return getSubject(); case 1524132147: return getEncounter(); case -2022646513: return getOccurrence(); case 1687874001: return getOccurrence(); case -861311717: return getCondition(); case 481140686: return getPerformer(); case 722137681: return addReasonCode(); case -1146218137: return addReasonReference(); case 93508670: return addBasis(); case 1161234575: return addPrediction(); case 1293793087: return getMitigationElement(); case 3387378: return addNote(); default: return super.makeProperty(hash, name); } }
/** * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist */ public Annotation getNoteFirstRep() { if (getNote().isEmpty()) { addNote(); } return getNote().get(0); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -332612366: return getBasedOn(); case -995424086: return getParent(); case -892481550: return getStatusElement(); case -1077554975: return getMethod(); case 3059181: return getCode(); case -1867885268: return getSubject(); case 1524132147: return getEncounter(); case -2022646513: return getOccurrence(); case 1687874001: return getOccurrence(); case -861311717: return getCondition(); case 481140686: return getPerformer(); case 722137681: return addReasonCode(); case -1146218137: return addReasonReference(); case 93508670: return addBasis(); case 1161234575: return addPrediction(); case 1293793087: return getMitigationElement(); case 3387378: return addNote(); default: return super.makeProperty(hash, name); } }