this.response = new MessageHeaderResponseComponent(); return this.response;
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.identifier = castToId(value); // IdType } else if (name.equals("code")) { value = new ResponseTypeEnumFactory().fromType(castToCode(value)); this.code = (Enumeration) value; // Enumeration<ResponseType> } else if (name.equals("details")) { this.details = castToReference(value); // Reference } else return super.setProperty(name, value); return value; }
public MessageHeader copy() { MessageHeader dst = new MessageHeader(); copyValues(dst); dst.event = event == null ? null : event.copy(); if (destination != null) { dst.destination = new ArrayList<MessageDestinationComponent>(); for (MessageDestinationComponent i : destination) dst.destination.add(i.copy()); }; dst.receiver = receiver == null ? null : receiver.copy(); dst.sender = sender == null ? null : sender.copy(); dst.timestamp = timestamp == null ? null : timestamp.copy(); dst.enterer = enterer == null ? null : enterer.copy(); dst.author = author == null ? null : author.copy(); dst.source = source == null ? null : source.copy(); dst.responsible = responsible == null ? null : responsible.copy(); dst.reason = reason == null ? null : reason.copy(); dst.response = response == null ? null : response.copy(); if (focus != null) { dst.focus = new ArrayList<Reference>(); for (Reference i : focus) dst.focus.add(i.copy()); }; return dst; }
public boolean hasResponse() { return this.response != null && !this.response.isEmpty(); }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1618432855: // identifier this.identifier = castToId(value); // IdType return value; case 3059181: // code value = new ResponseTypeEnumFactory().fromType(castToCode(value)); this.code = (Enumeration) value; // Enumeration<ResponseType> return value; case 1557721666: // details this.details = castToReference(value); // Reference return value; default: return super.setProperty(hash, name, value); } }
/** * @return {@link #response} (Information about the message that this message is a response to. Only present if this message is a response.) */ public MessageHeaderResponseComponent getResponse() { if (this.response == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MessageHeader.response"); else if (Configuration.doAutoCreate()) this.response = new MessageHeaderResponseComponent(); // cc return this.response; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof MessageHeaderResponseComponent)) return false; MessageHeaderResponseComponent o = (MessageHeaderResponseComponent) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(details, o.details, true) ; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof MessageHeaderResponseComponent)) return false; MessageHeaderResponseComponent o = (MessageHeaderResponseComponent) other_; return compareValues(identifier, o.identifier, true) && compareValues(code, o.code, true); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return getIdentifierElement(); case 3059181: return getCodeElement(); case 1557721666: return getDetails(); default: return super.makeProperty(hash, name); } }
public MessageHeaderResponseComponent copy() { MessageHeaderResponseComponent dst = new MessageHeaderResponseComponent(); copyValues(dst); dst.identifier = identifier == null ? null : identifier.copy(); dst.code = code == null ? null : code.copy(); dst.details = details == null ? null : details.copy(); return dst; }
public org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent convertMessageHeaderResponseComponent(org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent(); copyElement(src, tgt); tgt.setIdentifier(src.getIdentifier()); tgt.setCode(convertResponseType(src.getCode())); tgt.setDetails(convertReference(src.getDetails())); return tgt; }
public org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent convertMessageHeaderResponseComponent(org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent(); copyElement(src, tgt); tgt.setIdentifier(src.getIdentifier()); tgt.setCode(convertResponseType(src.getCode())); tgt.setDetails(convertReference(src.getDetails())); return tgt; }
public org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent convertMessageHeaderResponseComponent(org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent(); copyElement(src, tgt); tgt.setIdentifier(src.getIdentifier()); tgt.setCode(convertResponseType(src.getCode())); tgt.setDetails(convertReference(src.getDetails())); return tgt; }
public org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent convertMessageHeaderResponseComponent(org.hl7.fhir.instance.model.MessageHeader.MessageHeaderResponseComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent(); copyElement(src, tgt); tgt.setIdentifier(src.getIdentifier()); tgt.setCode(convertResponseType(src.getCode())); tgt.setDetails(convertReference(src.getDetails())); return tgt; }