public org.hl7.fhir.instance.model.List_ convertList(org.hl7.fhir.dstu3.model.ListResource src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.List_ tgt = new org.hl7.fhir.instance.model.List_(); copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.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())); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText()); for (org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); return tgt; }
this.orderedBy = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("note")) { this.getNote().add(castToAnnotation(value)); } else if (name.equals("entry")) { this.getEntry().add((ListEntryComponent) value);
return value; case 3387378: // note this.getNote().add(castToAnnotation(value)); // Annotation return value; case 96667762: // entry
public org.hl7.fhir.instance.model.List_ convertList(org.hl7.fhir.dstu3.model.ListResource src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.List_ tgt = new org.hl7.fhir.instance.model.List_(); copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.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())); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.setNote(t.getText()); for (org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent t : src.getEntry()) tgt.addEntry(convertListEntry(t)); return tgt; }