redox.datamodel.common.Identifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redox-java-data-model Show documentation
Show all versions of redox-java-data-model Show documentation
This project contains Java POJOs representing the data model of Redox API
package redox.datamodel.common;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"ID",
"IDType",
//type is optional for patientpush, never present for patientquery
"Type"
})
public class Identifier {
@JsonProperty("ID")
private String iD;
@JsonProperty("IDType")
private String iDType;
// type is optional
@JsonProperty("Type")
private Object type;
@JsonIgnore
private Map additionalProperties = new HashMap();
@JsonProperty("ID")
public String getID() {
return iD;
}
@JsonProperty("ID")
public void setID(String iD) {
this.iD = iD;
}
@JsonProperty("IDType")
public String getIDType() {
return iDType;
}
@JsonProperty("IDType")
public void setIDType(String iDType) {
this.iDType = iDType;
}
//optional
@JsonProperty("Type")
public Object getType() {
return type;
}
//optional
@JsonProperty("Type")
public void setType(Object type) {
this.type = type;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}