/** * @return The first repetition of repeating field {@link #partOf}, creating it if it does not already exist */ public Reference getPartOfFirstRep() { if (getPartOf().isEmpty()) { addPartOf(); } return getPartOf().get(0); }
return addPartOf();
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -332612366: return addBasedOn(); case -995410646: return addPartOf(); case -892481550: return getStatusElement(); case -791418107: return getPatient(); case 3575610: return getType(); case 1993333233: return getSuppliedItem(); case -2022646513: return getOccurrence(); case 1687874001: return getOccurrence(); case -1663305268: return getSupplier(); case -1429847026: return getDestination(); case -808719889: return addReceiver(); default: return super.makeProperty(hash, name); } }
/** * @return The first repetition of repeating field {@link #partOf}, creating it if it does not already exist */ public Reference getPartOfFirstRep() { if (getPartOf().isEmpty()) { addPartOf(); } return getPartOf().get(0); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -332612366: return addBasedOn(); case -995410646: return addPartOf(); case -892481550: return getStatusElement(); case -791418107: return getPatient(); case 3575610: return getType(); case 1993333233: return getSuppliedItem(); case -2022646513: return getOccurrence(); case 1687874001: return getOccurrence(); case -1663305268: return getSupplier(); case -1429847026: return getDestination(); case -808719889: return addReceiver(); default: return super.makeProperty(hash, name); } }