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

ca.uhn.hl7v2.model.GenericPrimitive Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
package ca.uhn.hl7v2.model;

/**
 * An unspecified Primitive datatype that imposes no constraints on its string 
 * value.  This is used to store Varies data, when the data type is unknown.  It is also 
 * used to store unrecognized message constituents.  
 * @author Bryan Tripp
 */
@SuppressWarnings("serial")
public class GenericPrimitive extends AbstractPrimitive implements Primitive {

    /**
     * Create a generic primitive
     * @param message message to which the primitive is linked to
     */
    public GenericPrimitive(Message message) {
        super(message);
    }

    public String getName() {
        return "UNKNOWN";
    }

    /**
     * As this is a generic primitive, this method returns null to
     * inidicate that it is not associated with a dedicated HL7 version
     * @return null
     */
    public String getVersion() {
        return null;
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy