* The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. *
*/ private java.util.List
* If the result of the previous request to InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
*
* The version of the model used to analyze the documents, in the format n.n.n You can use this * information to track the model used for a particular batch of documents. *
*/ private String modelVersion; /** ** The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. *
* * @return The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, * the service sends back an HTTP 200 response, as well as the entities detected. */ public java.util.List* The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. *
* * @param entities * The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. */ public void setEntities(java.util.Collection* The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override * the existing values. *
* * @param entities * The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. * @return Returns a reference to this object so that method calls can be chained together. */ public InferICD10CMResult withEntities(ICD10CMEntity... entities) { if (this.entities == null) { setEntities(new java.util.ArrayList* The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. *
* * @param entities * The medical conditions detected in the text linked to ICD-10-CM concepts. If the action is successful, the * service sends back an HTTP 200 response, as well as the entities detected. * @return Returns a reference to this object so that method calls can be chained together. */ public InferICD10CMResult withEntities(java.util.Collection
* If the result of the previous request to InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
*
InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
*/
public void setPaginationToken(String paginationToken) {
this.paginationToken = paginationToken;
}
/**
*
* If the result of the previous request to InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
*
InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
*/
public String getPaginationToken() {
return this.paginationToken;
}
/**
*
* If the result of the previous request to InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
*
InferICD10CM
was truncated, include the
* PaginationToken
to fetch the next page of medical condition entities.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InferICD10CMResult withPaginationToken(String paginationToken) {
setPaginationToken(paginationToken);
return this;
}
/**
* * The version of the model used to analyze the documents, in the format n.n.n You can use this * information to track the model used for a particular batch of documents. *
* * @param modelVersion * The version of the model used to analyze the documents, in the format n.n.n You can * use this information to track the model used for a particular batch of documents. */ public void setModelVersion(String modelVersion) { this.modelVersion = modelVersion; } /** ** The version of the model used to analyze the documents, in the format n.n.n You can use this * information to track the model used for a particular batch of documents. *
* * @return The version of the model used to analyze the documents, in the format n.n.n You can * use this information to track the model used for a particular batch of documents. */ public String getModelVersion() { return this.modelVersion; } /** ** The version of the model used to analyze the documents, in the format n.n.n You can use this * information to track the model used for a particular batch of documents. *
* * @param modelVersion * The version of the model used to analyze the documents, in the format n.n.n You can * use this information to track the model used for a particular batch of documents. * @return Returns a reference to this object so that method calls can be chained together. */ public InferICD10CMResult withModelVersion(String modelVersion) { setModelVersion(modelVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEntities() != null) sb.append("Entities: ").append(getEntities()).append(","); if (getPaginationToken() != null) sb.append("PaginationToken: ").append(getPaginationToken()).append(","); if (getModelVersion() != null) sb.append("ModelVersion: ").append(getModelVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InferICD10CMResult == false) return false; InferICD10CMResult other = (InferICD10CMResult) obj; if (other.getEntities() == null ^ this.getEntities() == null) return false; if (other.getEntities() != null && other.getEntities().equals(this.getEntities()) == false) return false; if (other.getPaginationToken() == null ^ this.getPaginationToken() == null) return false; if (other.getPaginationToken() != null && other.getPaginationToken().equals(this.getPaginationToken()) == false) return false; if (other.getModelVersion() == null ^ this.getModelVersion() == null) return false; if (other.getModelVersion() != null && other.getModelVersion().equals(this.getModelVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEntities() == null) ? 0 : getEntities().hashCode()); hashCode = prime * hashCode + ((getPaginationToken() == null) ? 0 : getPaginationToken().hashCode()); hashCode = prime * hashCode + ((getModelVersion() == null) ? 0 : getModelVersion().hashCode()); return hashCode; } @Override public InferICD10CMResult clone() { try { return (InferICD10CMResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }