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); } }
switch (hash) { case -1618432855: // identifier this.getIdentifier().add(castToIdentifier(value)); // Identifier return value; case -332612366: // basedOn this.getBasedOn().add(castToReference(value)); // Reference return value; case -995410646: // partOf this.getPartOf().add(castToReference(value)); // Reference return value; case -892481550: // status value = new SupplyDeliveryStatusEnumFactory().fromType(castToCode(value)); this.status = (Enumeration) value; // Enumeration<SupplyDeliveryStatus> return value; case -791418107: // patient this.patient = castToReference(value); // Reference return value; case 3575610: // type this.type = castToCodeableConcept(value); // CodeableConcept return value; case 1993333233: // suppliedItem return value; case 1687874001: // occurrence this.occurrence = castToType(value); // Type return value; case -1663305268: // supplier this.supplier = castToReference(value); // Reference return value;
/** * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist */ public Reference getBasedOnFirstRep() { if (getBasedOn().isEmpty()) { addBasedOn(); } return getBasedOn().get(0); }
public org.hl7.fhir.instance.model.SupplyDelivery convertSupplyDelivery(org.hl7.fhir.r4.model.SupplyDelivery src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SupplyDelivery tgt = new org.hl7.fhir.instance.model.SupplyDelivery(); copyDomainResource(src, tgt); tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep())); 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.r4.model.Reference t : src.getReceiver()) tgt.addReceiver(convertReference(t)); return tgt; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); return addBasedOn(); return addPartOf(); return addReceiver();
/** * @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 The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
public SupplyDelivery copy() { SupplyDelivery dst = new SupplyDelivery(); copyValues(dst); if (identifier != null) { dst.identifier = new ArrayList<Identifier>();
return new Schedule(); if ("SupplyDelivery".equals(name)) return new SupplyDelivery(); if ("ClinicalImpression".equals(name)) return new ClinicalImpression();
public org.hl7.fhir.instance.model.SupplyDelivery convertSupplyDelivery(org.hl7.fhir.r4.model.SupplyDelivery src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SupplyDelivery tgt = new org.hl7.fhir.instance.model.SupplyDelivery(); copyDomainResource(src, tgt); tgt.setIdentifier(convertIdentifier(src.getIdentifierFirstRep())); 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.r4.model.Reference t : src.getReceiver()) tgt.addReceiver(convertReference(t)); return tgt; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); return addBasedOn(); return addPartOf(); return addReceiver();
/** * @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 The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
public SupplyDelivery copy() { SupplyDelivery dst = new SupplyDelivery(); copyValues(dst); if (identifier != null) { dst.identifier = new ArrayList<Identifier>();
return new Schedule(); if ("SupplyDelivery".equals(name)) return new SupplyDelivery(); if ("ClinicalImpression".equals(name)) return new ClinicalImpression();
/** * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist */ public Reference getBasedOnFirstRep() { if (getBasedOn().isEmpty()) { addBasedOn(); } return getBasedOn().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); } }