/** * @return The first repetition of repeating field {@link #receiver}, creating it if it does not already exist */ public Reference getReceiverFirstRep() { if (getReceiver().isEmpty()) { addReceiver(); } return getReceiver().get(0); }
return addReceiver();
@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 #receiver}, creating it if it does not already exist */ public Reference getReceiverFirstRep() { if (getReceiver().isEmpty()) { addReceiver(); } return getReceiver().get(0); }
public org.hl7.fhir.r4.model.SupplyDelivery convertSupplyDelivery(org.hl7.fhir.instance.model.SupplyDelivery src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.SupplyDelivery tgt = new org.hl7.fhir.r4.model.SupplyDelivery(); copyDomainResource(src, tgt); tgt.addIdentifier(convertIdentifier(src.getIdentifier())); tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus())); tgt.setPatient(convertReference(src.getPatient())); tgt.setType(convertCodeableConcept(src.getType())); // tgt.setQuantity(convertSimpleQuantity(src.getQuantity())); // tgt.setSuppliedItem(convertReference(src.getSuppliedItem())); tgt.setSupplier(convertReference(src.getSupplier())); // tgt.setWhenPrepared(convertPeriod(src.getWhenPrepared())); // tgt.setTime(src.getTime()); tgt.setDestination(convertReference(src.getDestination())); for (org.hl7.fhir.instance.model.Reference t : src.getReceiver()) tgt.addReceiver(convertReference(t)); return tgt; }
@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); } }
public org.hl7.fhir.r4.model.SupplyDelivery convertSupplyDelivery(org.hl7.fhir.instance.model.SupplyDelivery src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.SupplyDelivery tgt = new org.hl7.fhir.r4.model.SupplyDelivery(); copyDomainResource(src, tgt); tgt.addIdentifier(convertIdentifier(src.getIdentifier())); tgt.setStatus(convertSupplyDeliveryStatus(src.getStatus())); tgt.setPatient(convertReference(src.getPatient())); tgt.setType(convertCodeableConcept(src.getType())); // tgt.setQuantity(convertSimpleQuantity(src.getQuantity())); // tgt.setSuppliedItem(convertReference(src.getSuppliedItem())); tgt.setSupplier(convertReference(src.getSupplier())); // tgt.setWhenPrepared(convertPeriod(src.getWhenPrepared())); // tgt.setTime(src.getTime()); tgt.setDestination(convertReference(src.getDestination())); for (org.hl7.fhir.instance.model.Reference t : src.getReceiver()) tgt.addReceiver(convertReference(t)); return tgt; }