All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redox.datamodel.common.Identifier Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version

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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy