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; }
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; }