public org.hl7.fhir.dstu3.model.ListResource convertList(org.hl7.fhir.instance.model.List_ src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ListResource tgt = new org.hl7.fhir.dstu3.model.ListResource(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setTitle(src.getTitle()); tgt.setCode(convertCodeableConcept(src.getCode())); tgt.setSubject(convertReference(src.getSubject())); tgt.setSource(convertReference(src.getSource())); tgt.setEncounter(convertReference(src.getEncounter())); tgt.setStatus(convertListStatus(src.getStatus())); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setOrderedBy(convertCodeableConcept(src.getOrderedBy())); tgt.setMode(convertListMode(src.getMode())); if (src.hasNote()) tgt.addNote(new org.hl7.fhir.dstu3.model.Annotation().setText(src.getNote())); for (org.hl7.fhir.instance.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); return tgt; }
public org.hl7.fhir.dstu3.model.ListResource convertList(org.hl7.fhir.instance.model.List_ src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ListResource tgt = new org.hl7.fhir.dstu3.model.ListResource(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setTitle(src.getTitle()); tgt.setCode(convertCodeableConcept(src.getCode())); tgt.setSubject(convertReference(src.getSubject())); tgt.setSource(convertReference(src.getSource())); tgt.setEncounter(convertReference(src.getEncounter())); tgt.setStatus(convertListStatus(src.getStatus())); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setOrderedBy(convertCodeableConcept(src.getOrderedBy())); tgt.setMode(convertListMode(src.getMode())); if (src.hasNote()) tgt.addNote(new org.hl7.fhir.dstu3.model.Annotation().setText(src.getNote())); for (org.hl7.fhir.instance.model.List_.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); return tgt; }